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

122 lines
413 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[221,6,7],{"+NIl":function(nt,ze,g){(function(W){W(g("VrN/"))})(function(W){"use strict";W.defineMode("stex",function(be,te){"use strict";function ve(re,H){re.cmdState.push(H)}function P(re){return re.cmdState.length>0?re.cmdState[re.cmdState.length-1]:null}function J(re){var H=re.cmdState.pop();H&&H.closeBracket()}function R(re){for(var H=re.cmdState,N=H.length-1;N>=0;N--){var j=H[N];if(j.name=="DEFAULT")continue;return j}return{styleIdentifier:function(){return null}}}function S(re,H,N){return function(){this.name=re,this.bracketNo=0,this.style=H,this.styles=N,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var O={};O.importmodule=S("importmodule","tag",["string","builtin"]),O.documentclass=S("documentclass","tag",["","atom"]),O.usepackage=S("usepackage","tag",["atom"]),O.begin=S("begin","tag",["atom"]),O.end=S("end","tag",["atom"]),O.label=S("label","tag",["atom"]),O.ref=S("ref","tag",["atom"]),O.eqref=S("eqref","tag",["atom"]),O.cite=S("cite","tag",["atom"]),O.bibitem=S("bibitem","tag",["atom"]),O.Bibitem=S("Bibitem","tag",["atom"]),O.RBibitem=S("RBibitem","tag",["atom"]),O.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function z(re,H){re.f=H}function G(re,H){var N;if(re.match(/^\\[a-zA-Z@]+/)){var j=re.current().slice(1);return N=O.hasOwnProperty(j)?O[j]:O.DEFAULT,N=new N,ve(H,N),z(H,ye),N.style}if(re.match(/^\\[$&%#{}_]/))return"tag";if(re.match(/^\\[,;!\/\\]/))return"tag";if(re.match("\\["))return z(H,function(K,ke){return B(K,ke,"\\]")}),"keyword";if(re.match("\\("))return z(H,function(K,ke){return B(K,ke,"\\)")}),"keyword";if(re.match("$$"))return z(H,function(K,ke){return B(K,ke,"$$")}),"keyword";if(re.match("$"))return z(H,function(K,ke){return B(K,ke,"$")}),"keyword";var ae=re.next();if(ae=="%")return re.skipToEnd(),"comment";if(ae=="}"||ae=="]"){if(N=P(H),N)N.closeBracket(ae),z(H,ye);else return"error";return"bracket"}else return ae=="{"||ae=="["?(N=O.DEFAULT,N=new N,ve(H,N),"bracket"):/\d/.test(ae)?(re.eatWhile(/[\w.%]/),"atom"):(re.eatWhile(/[\w\-_]/),N=R(H),N.name=="begin"&&(N.argument=re.current()),N.styleIdentifier())}function B(re,H,N){if(re.eatSpace())return null;if(N&&re.match(N))return z(H,G),"keyword";if(re.match(/^\\[a-zA-Z@]+/))return"tag";if(re.match(/^[a-zA-Z]+/))return"variable-2";if(re.match(/^\\[$&%#{}_]/))return"tag";if(re.match(/^\\[,;!\/]/))return"tag";if(re.match(/^[\^_&]/))return"tag";if(re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var j=re.next();return j=="{"||j=="}"||j=="["||j=="]"||j=="("||j==")"?"bracket":j=="%"?(re.skipToEnd(),"comment"):"error"}function ye(re,H){var N=re.peek(),j;return N=="{"||N=="["?(j=P(H),j.openBracket(N),re.eat(N),z(H,G),"bracket"):/[ \t\r]/.test(N)?(re.eat(N),null):(z(H,G),J(H),G(re,H))}return{startState:function(){var re=te.inMathMode?function(H,N){return B(H,N)}:G;return{cmdState:[],f:re}},copyState:function(re){return{cmdState:re.cmdState.slice(),f:re.f}},token:function(re,H){return H.f(re,H)},blankLine:function(re){re.f=G,re.cmdState.length=0},lineComment:"%"}}),W.defineMIME("text/x-stex","stex"),W.defineMIME("text/x-latex","stex")})},"19Vz":function(nt,ze,g){(function(W){W(g("VrN/"))})(function(W){W.defineOption("placeholder","",function(S,O,z){var G=z&&z!=W.Init;if(O&&!G)S.on("blur",P),S.on("change",J),S.on("swapDoc",J),W.on(S.getInputField(),"compositionupdate",S.state.placeholderCompose=function(){ve(S)}),J(S);else if(!O&&G){S.off("blur",P),S.off("change",J),S.off("swapDoc",J),W.off(S.getInputField(),"compositionupdate",S.state.placeholderCompose),be(S);var B=S.getWrapperElement();B.className=B.className.replace(" CodeMirror-empty","")}O&&!S.hasFocus()&&P(S)});function be(S){S.state.placeholder&&(S.state.placeholder.parentNode.removeChild(S.state.placeholder),S.state.placeholder=null)}function te(S){be(S);var O=S.state.placeholder=document.createElement("pre");O.style.cssText="height: 0; overflow: visible",O.style.direction=S.getOption("direction"),O.className="CodeMirror-placeholder CodeMirror-line-like";var z=S.getOption("placeholder");typeof z=="string"&&(z=document.createTextNode(z)),O.appendChild(z),S.display.lineSpace.insertBefore(O,S.display.lineSpace.firstChild)}function ve(S){setTimeout(function(){var O=!1,z=S.getInputField();z.nodeName=="TEXTAREA"?O=!z.value:S.lineCount()==1&&(O=!/[^\u200b]/.test(z.querySelector(".CodeMirror-line").textContent)),O?te(S):be(S)},20)}function P(S){R(S)&&te(S)}function J(S){var O=S.getWrapperElement(),z=R(S);O.className=O.className.replace(" CodeMirror-empty","")+(z?" CodeMirror-empty":""),z?te(S):be(S)}function R(S){return S.lineCount()===1&&S.getLine(0)===""}})},"1eCo":function(nt,ze,g){(function(W){W(g("VrN/"))})(function(W){"use strict";var be={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},te={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};W.defineMode("xml",function(ve,P){var J=ve.indentUnit,R={},S=P.htmlMode?be:te;for(var O in S)R[O]=S[O];for(var O in P)R[O]=P[O];var z,G;function B(v,ee){function $(I){return ee.tokenize=I,I(v,ee)}var w=v.next();if(w=="<")return v.eat("!")?v.eat("[")?v.match("CDATA[")?$(H("atom","]]>")):null:v.match("--")?$(H("comment","-->")):v.match("DOCTYPE",!0,!0)?(v.eatWhile(/[\w\._\-]/),$(N(1))):null:v.eat("?")?(v.eatWhile(/[\w\._\-]/),ee.tokenize=H("meta","?>"),"meta"):(z=v.eat("/")?"closeTag":"openTag",ee.tokenize=ye,"tag bracket");if(w=="&"){var ie;return v.eat("#")?v.eat("x")?ie=v.eatWhile(/[a-fA-F\d]/)&&v.eat(";"):ie=v.eatWhile(/[\d]/)&&v.eat(";"):ie=v.eatWhile(/[\w\.\-:]/)&&v.eat(";"),ie?"atom":"error"}else return v.eatWhile(/[^&<]/),null}B.isInText=!0;function ye(v,ee){var $=v.next();if($==">"||$=="/"&&v.eat(">"))return ee.tokenize=B,z=$==">"?"endTag":"selfcloseTag","tag bracket";if($=="=")return z="equals",null;if($=="<"){ee.tokenize=B,ee.state=ke,ee.tagName=ee.tagStart=null;var w=ee.tokenize(v,ee);return w?w+" tag error":"tag error"}else return/[\'\"]/.test($)?(ee.tokenize=re($),ee.stringStartCol=v.column(),ee.tokenize(v,ee)):(v.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(v){var ee=function($,w){for(;!$.eol();)if($.next()==v){w.tokenize=ye;break}return"string"};return ee.isInAttribute=!0,ee}function H(v,ee){return function($,w){for(;!$.eol();){if($.match(ee)){w.tokenize=B;break}$.next()}return v}}function N(v){return function(ee,$){for(var w;(w=ee.next())!=null;){if(w=="<")return $.tokenize=N(v+1),$.tokenize(ee,$);if(w==">")if(v==1){$.tokenize=B;break}else return $.tokenize=N(v-1),$.tokenize(ee,$)}return"meta"}}function j(v,ee,$){this.prev=v.context,this.tagName=ee,this.indent=v.indented,this.startOfLine=$,(R.doNotIndent.hasOwnProperty(ee)||v.context&&v.context.noIndent)&&(this.noIndent=!0)}function ae(v){v.context&&(v.context=v.context.prev)}function K(v,ee){for(var $;;){if(!v.context)return;if($=v.context.tagName,!R.contextGrabbers.hasOwnProperty($)||!R.contextGrabbers[$].hasOwnProperty(ee))return;ae(v)}}function ke(v,ee,$){return v=="openTag"?($.tagStart=ee.column(),Be):v=="closeTag"?oe:ke}function Be(v,ee,$){return v=="word"?($.tagName=ee.current(),G="tag",de):R.allowMissingTagName&&v=="endTag"?(G="tag bracket",de(v,ee,$)):(G="error",Be)}function oe(v,ee,$){if(v=="word"){var w=ee.current();return $.context&&$.context.tagName!=w&&R.implicitlyClosed.hasOwnProperty($.context.tagName)&&ae($),$.context&&$.context.tagName==w||R.matchClosing===!1?(G="tag",Te):(G="tag error",Pe)}else return R.allowMissingTagName&&v=="endTag"?(G="tag bracket",Te(v,ee,$)):(G="error",Pe)}function Te(v,ee,$){return v!="endTag"?(G="error",Te):(ae($),ke)}function Pe(v,ee,$){return G="error",Te(v,ee,$)}function de(v,ee,$){if(v=="word")return G="attribute",me;if(v=="endTag"||v=="selfcloseTag"){var w=$.tagName,ie=$.tagStart;return $.tagName=$.tagStart=null,v=="selfcloseTag"||R.autoSelfClosers.hasOwnProperty(w)?K($,w):(K($,w),$.context=new j($,w,ie==$.indented)),ke}return G="error",de}function me(v,ee,$){return v=="equals"?Oe:(R.allowMissing||(G="error"),de(v,ee,$))}function Oe(v,ee,$){return v=="string"?pe:v=="word"&&R.allowUnquoted?(G="string",de):(G="error",de(v,ee,$))}function pe(v,ee,$){return v=="string"?pe:de(v,ee,$)}return{startState:function(v){var ee={tokenize:B,state:ke,indented:v||0,tagName:null,tagStart:null,context:null};return v!=null&&(ee.baseIndent=v),ee},token:function(v,ee){if(!ee.tagName&&v.sol()&&(ee.indented=v.indentation()),v.eatSpace())return null;z=null;var $=ee.tokenize(v,ee);return($||z)&&$!="comment"&&(G=null,ee.state=ee.state(z||$,v,ee),G&&($=G=="error"?$+" error":G)),$},indent:function(v,ee,$){var w=v.context;if(v.tokenize.isInAttribute)return v.tagStart==v.indented?v.stringStartCol+1:v.indented+J;if(w&&w.noIndent)return W.Pass;if(v.tokenize!=ye&&v.tokenize!=B)return $?$.match(/^(\s*)/)[0].length:0;if(v.tagName)return R.multilineTagIndentPastTag!==!1?v.tagStart+v.tagName.length+2:v.tagStart+J*(R.multilineTagIndentFactor||1);if(R.alignCDATA&&/<!\[CDATA\[/.test(ee))return 0;var ie=ee&&/^<(\/)?([\w_:\.-]*)/.exec(ee);if(ie&&ie[1])for(;w;)if(w.tagName==ie[2]){w=w.prev;break}else if(R.implicitlyClosed.hasOwnProperty(w.tagName))w=w.prev;else break;else if(ie)for(;w;){var I=R.contextGrabbers[w.tagName];if(I&&I.hasOwnProperty(ie[2]))w=w.prev;else break}for(;w&&w.prev&&!w.startOfLine;)w=w.prev;return w?w.indent+J:v.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:R.htmlMode?"html":"xml",helperType:R.htmlMode?"html":"xml",skipAttribute:function(v){v.state==Oe&&(v.state=de)},xmlCurrentTag:function(v){return v.tagName?{name:v.tagName,close:v.type=="closeTag"}:null},xmlCurrentContext:function(v){for(var ee=[],$=v.context;$;$=$.prev)$.tagName&&ee.push($.tagName);return ee.reverse()}}}),W.defineMIME("text/xml","xml"),W.defineMIME("application/xml","xml"),W.mimeModes.hasOwnProperty("text/html")||W.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"6f40":function(nt,ze,g){nt.exports={practicalTraining:"practicalTraining___14zoU",titleWrap:"titleWrap___2awze",title:"title___3BF26",line:"line___wXl6Y",dec:"dec___ZXNkn"}},"7ahc":function(nt,ze,g){"use strict";g.d(ze,"a",function(){return Be});var W=g("k1fw"),be=g("0Owb"),te=g("+L6B"),ve=g("2/Rp"),P=g("y8nQ"),J=g("Vl3Y"),R=g("tJVT"),S=g("OaEy"),O=g("2fM7"),z=g("q1tI"),G=g.n(z),B=g("VrN/"),ye=g.n(B),re=g("p77/"),H=g.n(re),N=g("c5Ni"),j=g.n(N),ae=O.a.Option,K={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"]};ze.b=function(oe){var Te=oe.callback,Pe=oe.onCancel,de=Object(z.useState)("python"),me=Object(R.a)(de,2),Oe=me[0],pe=me[1];function v($){pe(ke[$][1])}function ee($){Te($)}return G.a.createElement(J.a,Object(be.a)({},K,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ee}),G.a.createElement(J.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},G.a.createElement(O.a,{onChange:v},Object.keys(ke).map(function($){return G.a.createElement(ae,{key:$,value:$},ke[$][0])}))),G.a.createElement(J.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},G.a.createElement(Be,{mode:Oe})),G.a.createElement("div",{className:"flex-container flex-end"},G.a.createElement(ve.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),G.a.createElement(ve.a,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))};function Be(oe){var Te=oe.value,Pe=oe.onChange,de=oe.mode,me=oe.options,Oe=me===void 0?{}:me,pe=Object(z.useRef)(),v=Object(z.useState)(),ee=Object(R.a)(v,2),$=ee[0],w=ee[1];return Object(z.useEffect)(function(){if($){function ie(I){var D=I.getValue();Pe&&Pe(D)}return $.on("change",ie),function(){$.off("change",ie)}}},[$,Pe]),Object(z.useEffect)(function(){$&&$.setOption("mode",de)},[$,de]),Object(z.useEffect)(function(){$&&((Te!==$.getValue()||Te==="")&&setTimeout(function(){$.setValue(Te||" ")},300))},[$,Te]),Object(z.useEffect)(function(){if(pe.current&&!$){var ie=ye.a.fromTextArea(pe.current,Object(W.a)({mode:de,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Oe));w(ie)}},[pe.current,$]),G.a.createElement("div",{className:"my-codemirror-container"},G.a.createElement("textarea",{ref:pe}))}},"7ixt":function(nt,ze,g){"use strict";g.d(ze,"a",function(){return te});var W={adjustX:1,adjustY:1},be=[0,0],te={left:{points:["cr","cl"],overflow:W,offset:[-4,0],targetOffset:be},right:{points:["cl","cr"],overflow:W,offset:[4,0],targetOffset:be},top:{points:["bc","tc"],overflow:W,offset:[0,-4],targetOffset:be},bottom:{points:["tc","bc"],overflow:W,offset:[0,4],targetOffset:be},topLeft:{points:["bl","tl"],overflow:W,offset:[0,-4],targetOffset:be},leftTop:{points:["tr","tl"],overflow:W,offset:[-4,0],targetOffset:be},topRight:{points:["br","tr"],overflow:W,offset:[0,-4],targetOffset:be},rightTop:{points:["tl","tr"],overflow:W,offset:[4,0],targetOffset:be},bottomRight:{points:["tr","br"],overflow:W,offset:[0,4],targetOffset:be},rightBottom:{points:["bl","br"],overflow:W,offset:[4,0],targetOffset:be},bottomLeft:{points:["tl","bl"],overflow:W,offset:[0,4],targetOffset:be},leftBottom:{points:["br","bl"],overflow:W,offset:[-4,0],targetOffset:be}},ve=te},"8EBN":function(nt,ze,g){(function(W){W(g("VrN/"))})(function(W){"use strict";W.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var be=0;be<W.modeInfo.length;be++){var te=W.modeInfo[be];te.mimes&&(te.mime=te.mimes[0])}W.findModeByMIME=function(ve){ve=ve.toLowerCase();for(var P=0;P<W.modeInfo.length;P++){var J=W.modeInfo[P];if(J.mime==ve)return J;if(J.mimes){for(var R=0;R<J.mimes.length;R++)if(J.mimes[R]==ve)return J}}if(/\+xml$/.test(ve))return W.findModeByMIME("application/xml");if(/\+json$/.test(ve))return W.findModeByMIME("application/json")},W.findModeByExtension=function(ve){ve=ve.toLowerCase();for(var P=0;P<W.modeInfo.length;P++){var J=W.modeInfo[P];if(J.ext){for(var R=0;R<J.ext.length;R++)if(J.ext[R]==ve)return J}}},W.findModeByFileName=function(ve){for(var P=0;P<W.modeInfo.length;P++){var J=W.modeInfo[P];if(J.file&&J.file.test(ve))return J}var R=ve.lastIndexOf("."),S=R>-1&&ve.substring(R+1,ve.length);if(S)return W.findModeByExtension(S)},W.findModeByName=function(ve){ve=ve.toLowerCase();for(var P=0;P<W.modeInfo.length;P++){var J=W.modeInfo[P];if(J.name.toLowerCase()==ve)return J;if(J.alias){for(var R=0;R<J.alias.length;R++)if(J.alias[R].toLowerCase()==ve)return J}}}})},"9Bee":function(nt,ze,g){"use strict";var W=g("k1fw"),be=g("tJVT"),te=g("q1tI"),ve=g.n(te),P=g("vg9a"),J=g("DlQD"),R=g.n(J),S=g("rUJ1");function O(p,_){var U=p.match(/^(\s+)(?:```)/);if(U===null)return _;var le=U[1];return _.split(`
`).map(function(Ee){var q=Ee.match(/^\s+/);if(q===null)return Ee;var Ae=Object(be.a)(q,1),se=Ae[0];return se.length>=le.length?Ee.slice(le.length):Ee}).join(`
`)}var z=[],G=["<ul>"],B=new R.a.Renderer,ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function re(){z.length=0,G=["<ul>"]}var H={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function N(p,_,U,le){if(_>=p.length||p[_].level<=U)return _;var Ee=p[_];le.push("<li><a href='#"+Ee.anchor+"'>"+Ee.text+"</a>"),_++;var q=[];return _=N(p,_,Ee.level,q),q.length>0&&(le.push("<ul>"),q.forEach(function(Ae){le.push(Ae)}),le.push("</ul>")),le.push("</li>"),_=N(p,_,U,le),_}function j(){return N(z,0,0,G),G.push("</ul>"),G.join("")}var ae={heading:function(_){var U=ye.exec(_);if(U)return{type:"heading",raw:U[0],depth:U[1].length,text:U[2]}},fences:function(_){var U=this.rules.block.fences.exec(_);if(U){var le=U[0],Ee=O(le,U[3]||""),q=U[2]?U[2].trim():U[2];if(["latex","katex","math"].indexOf(q)>=0){var Ae=Be(),se=Ee;Ee=Ae,oe[Ae]={type:"block",expression:se}}return{type:"code",raw:le,lang:q,text:Ee}}}},K=/(?:\${2})([^\n`]+?)(?:\${2})/gi,ke=0,Be=function(){return"__special_katext_id_".concat(ke++,"__")},oe={};function Te(){return oe}function Pe(){ke=0,oe={}}function de(p){return p=p.replace(K,function(_,U){var le=Be();return oe[le]={type:"inline",expression:U},le}),p}var me=B.listitem;B.listitem=function(p){return me(de(p))};var Oe=B.paragraph;B.paragraph=function(p){return Oe(de(p))};var pe=B.tablecell;B.tablecell=function(p,_){return pe(de(p),_)},B.code=function(p,_,U){var le=(_||"").match(/\S*/)[0];return le?["latex","katex","math"].indexOf(le)>=0?"<p class='editormd-tex'>".concat(p,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(_,'">').concat(U?p:Object(S.escape)(p,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(U?p:Object(S.escape)(p,!0))+"</code></pre>"},B.heading=function(p,_,U){var le=this.options.headerPrefix+U.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return z.push({anchor:le,level:_,text:p}),"<h"+_+' id="'+le+'">'+p+"</h"+_+">"},R.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),R.a.use({tokenizer:ae,renderer:B});var v=R.a,ee=g("SJMd"),$=g("ulZh"),w=g.n($),ie=g("m3rI"),I=g("Oy/b"),D=g("p5ED"),A=/<pre[^>]*>/g;function c(p){var _=document.createElement("div");return _.innerHTML=p,_.childNodes.length===0?"":_.childNodes[0].nodeValue}var l=ze.a=function(p){var _=p.value,U=_===void 0?"":_,le=p.className,Ee=p.showTextOnly,q=p.showLines,Ae=p.style,se=Ae===void 0?{}:Ae,fe=p.stylesPrev,F=fe===void 0?{}:fe,Z=String(U),h=Object(te.useState)(""),k=Object(be.a)(h,2),y=k[0],ne=k[1],ce=Object(te.useMemo)(function(){try{var Re=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,De=/\"\/api\/attachments\/|\"\/attachments\/download\//g,we=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Z=Z.replace(Re,"("+ie.a.API_SERVER+"/api/attachments/").replace(De,'"'+ie.a.API_SERVER+"/api/attachments/").replace(we,'"'+ie.a.API_SERVER+"/files/uploads/").replace(/\r\n/g,`
`),Z=Z.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
`)}catch(Ye){}var Ce=v(Z),et=Te();if(Z.match(/\[TOC\]/)&&(Ce=Ce.replace("<p>[TOC]</p>",j()),re()),Ce=Ce.replace(/(__special_katext_id_\d+__)/g,function(Ye,$e){var We=et[$e],Ne=We.type,Ue=We.expression;return Object(I.renderToString)(c(Ue)||"",{displayMode:Ne==="block",throwOnError:!1,output:"html"})}),Ce=Ce.replace(/▁/g,"\u2581\u2581\u2581"),Pe(),Ee){var qe=document.createElement("div");return qe.innerHTML=Ce,qe.innerText}return setTimeout(function(){return _e()},500),Ce},[Z]),X=Object(te.useRef)();H.WebkitLineClamp=q,q&&(se=Object(W.a)(Object(W.a)({},se),H));function ue(Re){var De=Re.target;if(De.tagName.toUpperCase()==="A"){var we=De.getAttribute("href");if(we.indexOf("office")>-1)Re.preventDefault(),ne(we);else if(we.startsWith("#")){Re.preventDefault();var Ce=document.getElementById(we.replace("#",""));Ce&&Ce.scrollIntoView(!0)}}}var _e=function(){var De,we=(De=X.current)===null||De===void 0?void 0:De.querySelectorAll("video");we==null||we.forEach(function(Ce){if(Ce.oncontextmenu=function(){return!1},Ce.src.indexOf(".m3u8")>-1&&!Ce.canPlayType("application/vnd.apple.mpegurl")){if(w.a.isSupported()){var et=new w.a;et.loadSource(Ce.src),et.attachMedia(Ce)}}})};return Object(te.useEffect)(function(){if(X.current&&ce&&(ce.match(A)&&window.PR.prettyPrint()),X.current)return X.current.addEventListener("click",ue),function(){X.current.removeEventListener("click",ue),Pe(),re()}},[ce,X.current,ue]),ve.a.createElement(ve.a.Fragment,null,ve.a.createElement("div",{ref:X,style:Object(W.a)({},se),className:"".concat(le||""," markdown-body "),dangerouslySetInnerHTML:{__html:ce}}),ve.a.createElement(D.a,{close:!0,data:y,type:y!=null&&y.length?"office":"",style:Object(W.a)({},F),onClose:function(){return ne("")}}))}},"9VGf":function(nt,ze,g){"use strict";g.d(ze,"a",function(){return te});var W=g("q1tI"),be=g.n(W);function te(ve,P){var J=Object(W.useRef)();Object(W.useEffect)(function(){J.current=ve}),Object(W.useEffect)(function(){function R(){J.current()}if(P!==null){var S=setInterval(R,P);return function(){return clearInterval(S)}}},[P])}},Bd2K:function(nt,ze,g){(function(W){W(g("VrN/"),g("osHv"))})(function(W){W.defineOption("autoCloseTags",!1,function(O,z,G){if(G!=W.Init&&G&&O.removeKeyMap("autoCloseTags"),!z)return;var B={name:"autoCloseTags"};(typeof z!="object"||z.whenClosing!==!1)&&(B["'/'"]=function(ye){return J(ye)}),(typeof z!="object"||z.whenOpening!==!1)&&(B["'>'"]=function(ye){return ve(ye)}),O.addKeyMap(B)});var be=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],te=["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 ve(O){if(O.getOption("disableInput"))return W.Pass;for(var z=O.listSelections(),G=[],B=O.getOption("autoCloseTags"),ye=0;ye<z.length;ye++){if(!z[ye].empty())return W.Pass;var re=z[ye].head,H=O.getTokenAt(re),N=W.innerMode(O.getMode(),H.state),j=N.state,ae=N.mode.xmlCurrentTag&&N.mode.xmlCurrentTag(j),K=ae&&ae.name;if(!K)return W.Pass;var ke=N.mode.configuration=="html",Be=typeof B=="object"&&B.dontCloseTags||ke&&be,oe=typeof B=="object"&&B.indentTags||ke&&te;H.end>re.ch&&(K=K.slice(0,K.length-H.end+re.ch));var Te=K.toLowerCase();if(!K||H.type=="string"&&(H.end!=re.ch||!/[\"\']/.test(H.string.charAt(H.string.length-1))||H.string.length==1)||H.type=="tag"&&ae.close||H.string.indexOf("/")==re.ch-H.start-1||Be&&R(Be,Te)>-1||S(O,N.mode.xmlCurrentContext&&N.mode.xmlCurrentContext(j)||[],K,re,!0))return W.Pass;var Pe=typeof B=="object"&&B.emptyTags;if(Pe&&R(Pe,K)>-1){G[ye]={text:"/>",newPos:W.Pos(re.line,re.ch+2)};continue}var de=oe&&R(oe,Te)>-1;G[ye]={indent:de,text:">"+(de?`
`:"")+"</"+K+">",newPos:de?W.Pos(re.line+1,0):W.Pos(re.line,re.ch+1)}}for(var me=typeof B=="object"&&B.dontIndentOnAutoClose,ye=z.length-1;ye>=0;ye--){var Oe=G[ye];O.replaceRange(Oe.text,z[ye].head,z[ye].anchor,"+insert");var pe=O.listSelections().slice(0);pe[ye]={head:Oe.newPos,anchor:Oe.newPos},O.setSelections(pe),!me&&Oe.indent&&(O.indentLine(Oe.newPos.line,null,!0),O.indentLine(Oe.newPos.line+1,null,!0))}}function P(O,z){for(var G=O.listSelections(),B=[],ye=z?"/":"</",re=O.getOption("autoCloseTags"),H=typeof re=="object"&&re.dontIndentOnSlash,N=0;N<G.length;N++){if(!G[N].empty())return W.Pass;var j=G[N].head,ae=O.getTokenAt(j),K=W.innerMode(O.getMode(),ae.state),ke=K.state;if(z&&(ae.type=="string"||ae.string.charAt(0)!="<"||ae.start!=j.ch-1))return W.Pass;var Be,oe=K.mode.name!="xml"&&O.getMode().name=="htmlmixed";if(oe&&K.mode.name=="javascript")Be=ye+"script";else if(oe&&K.mode.name=="css")Be=ye+"style";else{var Te=K.mode.xmlCurrentContext&&K.mode.xmlCurrentContext(ke);if(!Te||Te.length&&S(O,Te,Te[Te.length-1],j))return W.Pass;Be=ye+Te[Te.length-1]}O.getLine(j.line).charAt(ae.end)!=">"&&(Be+=">"),B[N]=Be}if(O.replaceSelections(B),G=O.listSelections(),!H)for(var N=0;N<G.length;N++)(N==G.length-1||G[N].head.line<G[N+1].head.line)&&O.indentLine(G[N].head.line)}function J(O){return O.getOption("disableInput")?W.Pass:P(O,!0)}W.commands.closeTag=function(O){return P(O)};function R(O,z){if(O.indexOf)return O.indexOf(z);for(var G=0,B=O.length;G<B;++G)if(O[G]==z)return G;return-1}function S(O,z,G,B,ye){if(!W.scanForClosingTag)return!1;var re=Math.min(O.lastLine()+1,B.line+500),H=W.scanForClosingTag(O,B,null,re);if(!H||H.tag!=G)return!1;for(var N=ye?1:0,j=z.length-1;j>=0&&z[j]==G;j--)++N;B=H.to;for(var j=1;j<N;j++){var ae=W.scanForClosingTag(O,B,null,re);if(!ae||ae.tag!=G)return!1;B=ae.to}return!0}})},BjJ7:function(nt,ze,g){"use strict";g.d(ze,"d",function(){return be}),g.d(ze,"c",function(){return te}),g.d(ze,"e",function(){return ve}),g.d(ze,"b",function(){return P}),g.d(ze,"a",function(){return R});var W=g("m3rI");function be(S){var O=!0;if(S.length>0){for(var z=0;z<S.length;z++)if(S[z].compile_success==0||!S[z].compile_success){O=!1;break}}else O=!1;return O}function te(S){for(var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=[],G=0;G<S.length;G++){var B=S[G],ye=O?"".concat(O,"/").concat(B.name):"".concat(B.name);z.push({title:B.name,isLeaf:!(B.type==="tree"),key:ye})}return z}function ve(S,O,z){for(var G=0;G<S.length;G++){var B=S[G];if(B.key===O){B.children=z;break}B.children&&ve(B.children,O,z)}return S}function P(S,O,z){var G;return function(){var B=this,ye=arguments,re=function(){G=null,z||S.apply(B,ye)},H=z&&!G;clearTimeout(G),G=setTimeout(re,O),H&&S.apply(B,ye)}}var J=!0,R=W.a.API_SERVER},"C+DQ":function(nt,ze,g){},DlQD:function(nt,ze,g){(function(W,be){nt.exports=be()})(this,function(){"use strict";function W(E,T){for(var M=0;M<T.length;M++){var f=T[M];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(E,f.key,f)}}function be(E,T,M){return T&&W(E.prototype,T),M&&W(E,M),E}function te(E,T){if(!E)return;if(typeof E=="string")return ve(E,T);var M=Object.prototype.toString.call(E).slice(8,-1);if(M==="Object"&&E.constructor&&(M=E.constructor.name),M==="Map"||M==="Set")return Array.from(E);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return ve(E,T)}function ve(E,T){(T==null||T>E.length)&&(T=E.length);for(var M=0,f=new Array(T);M<T;M++)f[M]=E[M];return f}function P(E,T){var M;if(typeof Symbol=="undefined"||E[Symbol.iterator]==null){if(Array.isArray(E)||(M=te(E))||T&&E&&typeof E.length=="number"){M&&(E=M);var f=0;return function(){return f>=E.length?{done:!0}:{done:!1,value:E[f++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return M=E[Symbol.iterator](),M.next.bind(M)}function J(E,T){return T={exports:{}},E(T,T.exports),T.exports}var R=J(function(E){function T(){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 M(f){E.exports.defaults=f}E.exports={defaults:T(),getDefaults:T,changeDefaults:M}}),S=R.defaults,O=R.getDefaults,z=R.changeDefaults,G=/[&<>"']/,B=/[&<>"']/g,ye=/[<>"']|&(?!#?\w+;)/,re=/[<>"']|&(?!#?\w+;)/g,H={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},N=function(T){return H[T]};function j(E,T){if(T){if(G.test(E))return E.replace(B,N)}else if(ye.test(E))return E.replace(re,N);return E}var ae=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function K(E){return E.replace(ae,function(T,M){return M=M.toLowerCase(),M==="colon"?":":M.charAt(0)==="#"?M.charAt(1)==="x"?String.fromCharCode(parseInt(M.substring(2),16)):String.fromCharCode(+M.substring(1)):""})}var ke=/(^|[^\[])\^/g;function Be(E,T){E=E.source||E,T=T||"";var M={replace:function(m,b){return b=b.source||b,b=b.replace(ke,"$1"),E=E.replace(m,b),M},getRegex:function(){return new RegExp(E,T)}};return M}var oe=/[^\w:]/g,Te=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Pe(E,T,M){if(E){var f;try{f=decodeURIComponent(K(M)).replace(oe,"").toLowerCase()}catch(m){return null}if(f.indexOf("javascript:")===0||f.indexOf("vbscript:")===0||f.indexOf("data:")===0)return null}T&&!Te.test(M)&&(M=v(T,M));try{M=encodeURI(M).replace(/%25/g,"%")}catch(m){return null}return M}var de={},me=/^[^:]+:\/*[^/]*$/,Oe=/^([^:]+:)[\s\S]*$/,pe=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(E,T){de[" "+E]||(me.test(E)?de[" "+E]=E+"/":de[" "+E]=ie(E,"/",!0)),E=de[" "+E];var M=E.indexOf(":")===-1;return T.substring(0,2)==="//"?M?T:E.replace(Oe,"$1")+T:T.charAt(0)==="/"?M?T:E.replace(pe,"$1")+T:E+T}var ee={exec:function(){}};function $(E){for(var T=1,M,f;T<arguments.length;T++){M=arguments[T];for(f in M)Object.prototype.hasOwnProperty.call(M,f)&&(E[f]=M[f])}return E}function w(E,T){var M=E.replace(/\|/g,function(b,x,V){for(var he=!1,Le=x;--Le>=0&&V[Le]==="\\";)he=!he;return he?"|":" |"}),f=M.split(/ \|/),m=0;if(f.length>T)f.splice(T);else for(;f.length<T;)f.push("");for(;m<f.length;m++)f[m]=f[m].trim().replace(/\\\|/g,"|");return f}function ie(E,T,M){var f=E.length;if(f===0)return"";for(var m=0;m<f;){var b=E.charAt(f-m-1);if(b===T&&!M)m++;else if(b!==T&&M)m++;else break}return E.substr(0,f-m)}function I(E,T){if(E.indexOf(T[1])===-1)return-1;for(var M=E.length,f=0,m=0;m<M;m++)if(E[m]==="\\")m++;else if(E[m]===T[0])f++;else if(E[m]===T[1]&&(f--,f<0))return m;return-1}function D(E){E&&E.sanitize&&!E.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 A={escape:j,unescape:K,edit:Be,cleanUrl:Pe,resolveUrl:v,noopTest:ee,merge:$,splitCells:w,rtrim:ie,findClosingBracket:I,checkSanitizeDeprecation:D},c=R.defaults,l=A.rtrim,p=A.splitCells,_=A.escape,U=A.findClosingBracket;function le(E,T,M){var f=T.href,m=T.title?_(T.title):null,b=E[1].replace(/\\([\[\]])/g,"$1");return E[0].charAt(0)!=="!"?{type:"link",raw:M,href:f,title:m,text:b}:{type:"image",raw:M,href:f,title:m,text:_(b)}}function Ee(E,T){var M=E.match(/^(\s+)(?:```)/);if(M===null)return T;var f=M[1];return T.split(`
`).map(function(m){var b=m.match(/^\s+/);if(b===null)return m;var x=b[0];return x.length>=f.length?m.slice(f.length):m}).join(`
`)}var q=function(){function E(M){this.options=M||c}var T=E.prototype;return T.space=function(f){var m=this.rules.block.newline.exec(f);if(m)return m[0].length>1?{type:"space",raw:m[0]}:{raw:`
`}},T.code=function(f,m){var b=this.rules.block.code.exec(f);if(b){var x=m[m.length-1];if(x&&x.type==="paragraph")return{raw:b[0],text:b[0].trimRight()};var V=b[0].replace(/^ {4}/gm,"");return{type:"code",raw:b[0],codeBlockStyle:"indented",text:this.options.pedantic?V:l(V,`
`)}}},T.fences=function(f){var m=this.rules.block.fences.exec(f);if(m){var b=m[0],x=Ee(b,m[3]||"");return{type:"code",raw:b,lang:m[2]?m[2].trim():m[2],text:x}}},T.heading=function(f){var m=this.rules.block.heading.exec(f);if(m)return{type:"heading",raw:m[0],depth:m[1].length,text:m[2]}},T.nptable=function(f){var m=this.rules.block.nptable.exec(f);if(m){var b={type:"table",header:p(m[1].replace(/^ *| *\| *$/g,"")),align:m[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:m[3]?m[3].replace(/\n$/,"").split(`
`):[],raw:m[0]};if(b.header.length===b.align.length){var x=b.align.length,V;for(V=0;V<x;V++)/^ *-+: *$/.test(b.align[V])?b.align[V]="right":/^ *:-+: *$/.test(b.align[V])?b.align[V]="center":/^ *:-+ *$/.test(b.align[V])?b.align[V]="left":b.align[V]=null;for(x=b.cells.length,V=0;V<x;V++)b.cells[V]=p(b.cells[V],b.header.length);return b}}},T.hr=function(f){var m=this.rules.block.hr.exec(f);if(m)return{type:"hr",raw:m[0]}},T.blockquote=function(f){var m=this.rules.block.blockquote.exec(f);if(m){var b=m[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:m[0],text:b}}},T.list=function(f){var m=this.rules.block.list.exec(f);if(m){for(var b=m[0],x=m[2],V=x.length>1,he=x[x.length-1]===")",Le={type:"list",raw:b,ordered:V,start:V?+x.slice(0,-1):"",loose:!1,items:[]},at=m[0].match(this.rules.block.item),dt=!1,Ve,vt,lt,rt,Ct,gt,_t,Ot=at.length,ft=0;ft<Ot;ft++)Ve=at[ft],b=Ve,vt=Ve.length,Ve=Ve.replace(/^ *([*+-]|\d+[.)]) */,""),~Ve.indexOf(`
`)&&(vt-=Ve.length,Ve=this.options.pedantic?Ve.replace(/^ {1,4}/gm,""):Ve.replace(new RegExp("^ {1,"+vt+"}","gm"),"")),ft!==Ot-1&&(lt=this.rules.block.bullet.exec(at[ft+1])[0],(V?lt.length===1||!he&&lt[lt.length-1]===")":lt.length>1||this.options.smartLists&&lt!==x)&&(rt=at.slice(ft+1).join(`
`),Le.raw=Le.raw.substring(0,Le.raw.length-rt.length),ft=Ot-1)),Ct=dt||/\n\n(?!\s*$)/.test(Ve),ft!==Ot-1&&(dt=Ve.charAt(Ve.length-1)===`
`,Ct||(Ct=dt)),Ct&&(Le.loose=!0),gt=/^\[[ xX]\] /.test(Ve),_t=void 0,gt&&(_t=Ve[1]!==" ",Ve=Ve.replace(/^\[[ xX]\] +/,"")),Le.items.push({type:"list_item",raw:b,task:gt,checked:_t,loose:Ct,text:Ve});return Le}},T.html=function(f){var m=this.rules.block.html.exec(f);if(m)return{type:this.options.sanitize?"paragraph":"html",raw:m[0],pre:!this.options.sanitizer&&(m[1]==="pre"||m[1]==="script"||m[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(m[0]):_(m[0]):m[0]}},T.def=function(f){var m=this.rules.block.def.exec(f);if(m){m[3]&&(m[3]=m[3].substring(1,m[3].length-1));var b=m[1].toLowerCase().replace(/\s+/g," ");return{tag:b,raw:m[0],href:m[2],title:m[3]}}},T.table=function(f){var m=this.rules.block.table.exec(f);if(m){var b={type:"table",header:p(m[1].replace(/^ *| *\| *$/g,"")),align:m[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:m[3]?m[3].replace(/\n$/,"").split(`
`):[]};if(b.header.length===b.align.length){b.raw=m[0];var x=b.align.length,V;for(V=0;V<x;V++)/^ *-+: *$/.test(b.align[V])?b.align[V]="right":/^ *:-+: *$/.test(b.align[V])?b.align[V]="center":/^ *:-+ *$/.test(b.align[V])?b.align[V]="left":b.align[V]=null;for(x=b.cells.length,V=0;V<x;V++)b.cells[V]=p(b.cells[V].replace(/^ *\| *| *\| *$/g,""),b.header.length);return b}}},T.lheading=function(f){var m=this.rules.block.lheading.exec(f);if(m)return{type:"heading",raw:m[0],depth:m[2].charAt(0)==="="?1:2,text:m[1]}},T.paragraph=function(f){var m=this.rules.block.paragraph.exec(f);if(m)return{type:"paragraph",raw:m[0],text:m[1].charAt(m[1].length-1)===`
`?m[1].slice(0,-1):m[1]}},T.text=function(f,m){var b=this.rules.block.text.exec(f);if(b){var x=m[m.length-1];return x&&x.type==="text"?{raw:b[0],text:b[0]}:{type:"text",raw:b[0],text:b[0]}}},T.escape=function(f){var m=this.rules.inline.escape.exec(f);if(m)return{type:"escape",raw:m[0],text:_(m[1])}},T.tag=function(f,m,b){var x=this.rules.inline.tag.exec(f);if(x)return!m&&/^<a /i.test(x[0])?m=!0:m&&/^<\/a>/i.test(x[0])&&(m=!1),!b&&/^<(pre|code|kbd|script)(\s|>)/i.test(x[0])?b=!0:b&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(x[0])&&(b=!1),{type:this.options.sanitize?"text":"html",raw:x[0],inLink:m,inRawBlock:b,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(x[0]):_(x[0]):x[0]}},T.link=function(f){var m=this.rules.inline.link.exec(f);if(m){var b=U(m[2],"()");if(b>-1){var x=m[0].indexOf("!")===0?5:4,V=x+m[1].length+b;m[2]=m[2].substring(0,b),m[0]=m[0].substring(0,V).trim(),m[3]=""}var he=m[2],Le="";if(this.options.pedantic){var at=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(he);at?(he=at[1],Le=at[3]):Le=""}else Le=m[3]?m[3].slice(1,-1):"";he=he.trim().replace(/^<([\s\S]*)>$/,"$1");var dt=le(m,{href:he&&he.replace(this.rules.inline._escapes,"$1"),title:Le&&Le.replace(this.rules.inline._escapes,"$1")},m[0]);return dt}},T.reflink=function(f,m){var b;if((b=this.rules.inline.reflink.exec(f))||(b=this.rules.inline.nolink.exec(f))){var x=(b[2]||b[1]).replace(/\s+/g," ");if(x=m[x.toLowerCase()],!x||!x.href){var V=b[0].charAt(0);return{type:"text",raw:V,text:V}}var he=le(b,x,b[0]);return he}},T.strong=function(f,m,b){b===void 0&&(b="");var x=this.rules.inline.strong.start.exec(f);if(x&&(!x[1]||x[1]&&(b===""||this.rules.inline.punctuation.exec(b)))){m=m.slice(-1*f.length);var V=x[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;V.lastIndex=0;for(var he;(x=V.exec(m))!=null;)if(he=this.rules.inline.strong.middle.exec(m.slice(0,x.index+3)),he)return{type:"strong",raw:f.slice(0,he[0].length),text:f.slice(2,he[0].length-2)}}},T.em=function(f,m,b){b===void 0&&(b="");var x=this.rules.inline.em.start.exec(f);if(x&&(!x[1]||x[1]&&(b===""||this.rules.inline.punctuation.exec(b)))){m=m.slice(-1*f.length);var V=x[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;V.lastIndex=0;for(var he;(x=V.exec(m))!=null;)if(he=this.rules.inline.em.middle.exec(m.slice(0,x.index+2)),he)return{type:"em",raw:f.slice(0,he[0].length),text:f.slice(1,he[0].length-1)}}},T.codespan=function(f){var m=this.rules.inline.code.exec(f);if(m){var b=m[2].replace(/\n/g," "),x=/[^ ]/.test(b),V=b.startsWith(" ")&&b.endsWith(" ");return x&&V&&(b=b.substring(1,b.length-1)),b=_(b,!0),{type:"codespan",raw:m[0],text:b}}},T.br=function(f){var m=this.rules.inline.br.exec(f);if(m)return{type:"br",raw:m[0]}},T.del=function(f){var m=this.rules.inline.del.exec(f);if(m)return{type:"del",raw:m[0],text:m[1]}},T.autolink=function(f,m){var b=this.rules.inline.autolink.exec(f);if(b){var x,V;return b[2]==="@"?(x=_(this.options.mangle?m(b[1]):b[1]),V="mailto:"+x):(x=_(b[1]),V=x),{type:"link",raw:b[0],text:x,href:V,tokens:[{type:"text",raw:x,text:x}]}}},T.url=function(f,m){var b;if(b=this.rules.inline.url.exec(f)){var x,V;if(b[2]==="@")x=_(this.options.mangle?m(b[0]):b[0]),V="mailto:"+x;else{var he;do he=b[0],b[0]=this.rules.inline._backpedal.exec(b[0])[0];while(he!==b[0]);x=_(b[0]),b[1]==="www."?V="http://"+x:V=x}return{type:"link",raw:b[0],text:x,href:V,tokens:[{type:"text",raw:x,text:x}]}}},T.inlineText=function(f,m,b){var x=this.rules.inline.text.exec(f);if(x){var V;return m?V=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(x[0]):_(x[0]):x[0]:V=_(this.options.smartypants?b(x[0]):x[0]),{type:"text",raw:x[0],text:V}}},E}(),Ae=A.noopTest,se=A.edit,fe=A.merge,F={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:Ae,table:Ae,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};F._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,F._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,F.def=se(F.def).replace("label",F._label).replace("title",F._title).getRegex(),F.bullet=/(?:[*+-]|\d{1,9}[.)])/,F.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,F.item=se(F.item,"gm").replace(/bull/g,F.bullet).getRegex(),F.list=se(F.list).replace(/bull/g,F.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+F.def.source+")").getRegex(),F._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",F._comment=/<!--(?!-?>)[\s\S]*?-->/,F.html=se(F.html,"i").replace("comment",F._comment).replace("tag",F._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),F.paragraph=se(F._paragraph).replace("hr",F.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",F._tag).getRegex(),F.blockquote=se(F.blockquote).replace("paragraph",F.paragraph).getRegex(),F.normal=fe({},F),F.gfm=fe({},F.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*|$)"}),F.gfm.nptable=se(F.gfm.nptable).replace("hr",F.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",F._tag).getRegex(),F.gfm.table=se(F.gfm.table).replace("hr",F.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",F._tag).getRegex(),F.pedantic=fe({},F.normal,{html:se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",F._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:Ae,paragraph:se(F.normal._paragraph).replace("hr",F.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",F.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Z={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ae,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:Ae,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Z._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Z.punctuation=se(Z.punctuation).replace(/punctuation/g,Z._punctuation).getRegex(),Z._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Z._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Z.em.start=se(Z.em.start).replace(/punctuation/g,Z._punctuation).getRegex(),Z.em.middle=se(Z.em.middle).replace(/punctuation/g,Z._punctuation).replace(/overlapSkip/g,Z._overlapSkip).getRegex(),Z.em.endAst=se(Z.em.endAst,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.em.endUnd=se(Z.em.endUnd,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.start=se(Z.strong.start).replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.middle=se(Z.strong.middle).replace(/punctuation/g,Z._punctuation).replace(/blockSkip/g,Z._blockSkip).getRegex(),Z.strong.endAst=se(Z.strong.endAst,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.endUnd=se(Z.strong.endUnd,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.blockSkip=se(Z._blockSkip,"g").getRegex(),Z.overlapSkip=se(Z._overlapSkip,"g").getRegex(),Z._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Z._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Z._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])?)+(?![-_])/,Z.autolink=se(Z.autolink).replace("scheme",Z._scheme).replace("email",Z._email).getRegex(),Z._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Z.tag=se(Z.tag).replace("comment",F._comment).replace("attribute",Z._attribute).getRegex(),Z._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Z._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Z._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Z.link=se(Z.link).replace("label",Z._label).replace("href",Z._href).replace("title",Z._title).getRegex(),Z.reflink=se(Z.reflink).replace("label",Z._label).getRegex(),Z.reflinkSearch=se(Z.reflinkSearch,"g").replace("reflink",Z.reflink).replace("nolink",Z.nolink).getRegex(),Z.normal=fe({},Z),Z.pedantic=fe({},Z.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:se(/^!?\[(label)\]\((.*?)\)/).replace("label",Z._label).getRegex(),reflink:se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z._label).getRegex()}),Z.gfm=fe({},Z.normal,{escape:se(Z.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Z.gfm.url=se(Z.gfm.url,"i").replace("email",Z.gfm._extended_email).getRegex(),Z.breaks=fe({},Z.gfm,{br:se(Z.br).replace("{2,}","*").getRegex(),text:se(Z.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var h={block:F,inline:Z},k=R.defaults,y=h.block,ne=h.inline;function ce(E){return E.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 X(E){var T="",M,f,m=E.length;for(M=0;M<m;M++)f=E.charCodeAt(M),Math.random()>.5&&(f="x"+f.toString(16)),T+="&#"+f+";";return T}var ue=function(){function E(M){this.tokens=[],this.tokens.links=Object.create(null),this.options=M||k,this.options.tokenizer=this.options.tokenizer||new q,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var f={block:y.normal,inline:ne.normal};this.options.pedantic?(f.block=y.pedantic,f.inline=ne.pedantic):this.options.gfm&&(f.block=y.gfm,this.options.breaks?f.inline=ne.breaks:f.inline=ne.gfm),this.tokenizer.rules=f}E.lex=function(f,m){var b=new E(m);return b.lex(f)};var T=E.prototype;return T.lex=function(f){return f=f.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(f,this.tokens,!0),this.inline(this.tokens),this.tokens},T.blockTokens=function(f,m,b){m===void 0&&(m=[]),b===void 0&&(b=!0),f=f.replace(/^ +$/gm,"");for(var x,V,he,Le;f;){if(x=this.tokenizer.space(f)){f=f.substring(x.raw.length),x.type&&m.push(x);continue}if(x=this.tokenizer.code(f,m)){f=f.substring(x.raw.length),x.type?m.push(x):(Le=m[m.length-1],Le.raw+=`
`+x.raw,Le.text+=`
`+x.text);continue}if(x=this.tokenizer.fences(f)){f=f.substring(x.raw.length),m.push(x);continue}if(x=this.tokenizer.heading(f)){f=f.substring(x.raw.length),m.push(x);continue}if(x=this.tokenizer.nptable(f)){f=f.substring(x.raw.length),m.push(x);continue}if(x=this.tokenizer.hr(f)){f=f.substring(x.raw.length),m.push(x);continue}if(x=this.tokenizer.blockquote(f)){f=f.substring(x.raw.length),x.tokens=this.blockTokens(x.text,[],b),m.push(x);continue}if(x=this.tokenizer.list(f)){for(f=f.substring(x.raw.length),he=x.items.length,V=0;V<he;V++)x.items[V].tokens=this.blockTokens(x.items[V].text,[],!1);m.push(x);continue}if(x=this.tokenizer.html(f)){f=f.substring(x.raw.length),m.push(x);continue}if(b&&(x=this.tokenizer.def(f))){f=f.substring(x.raw.length),this.tokens.links[x.tag]||(this.tokens.links[x.tag]={href:x.href,title:x.title});continue}if(x=this.tokenizer.table(f)){f=f.substring(x.raw.length),m.push(x);continue}if(x=this.tokenizer.lheading(f)){f=f.substring(x.raw.length),m.push(x);continue}if(b&&(x=this.tokenizer.paragraph(f))){f=f.substring(x.raw.length),m.push(x);continue}if(x=this.tokenizer.text(f,m)){f=f.substring(x.raw.length),x.type?m.push(x):(Le=m[m.length-1],Le.raw+=`
`+x.raw,Le.text+=`
`+x.text);continue}if(f){var at="Infinite loop on byte: "+f.charCodeAt(0);if(this.options.silent){console.error(at);break}else throw new Error(at)}}return m},T.inline=function(f){var m,b,x,V,he,Le,at=f.length;for(m=0;m<at;m++){Le=f[m];switch(Le.type){case"paragraph":case"text":case"heading":{Le.tokens=[],this.inlineTokens(Le.text,Le.tokens);break}case"table":{for(Le.tokens={header:[],cells:[]},V=Le.header.length,b=0;b<V;b++)Le.tokens.header[b]=[],this.inlineTokens(Le.header[b],Le.tokens.header[b]);for(V=Le.cells.length,b=0;b<V;b++)for(he=Le.cells[b],Le.tokens.cells[b]=[],x=0;x<he.length;x++)Le.tokens.cells[b][x]=[],this.inlineTokens(he[x],Le.tokens.cells[b][x]);break}case"blockquote":{this.inline(Le.tokens);break}case"list":{for(V=Le.items.length,b=0;b<V;b++)this.inline(Le.items[b].tokens);break}}}return f},T.inlineTokens=function(f,m,b,x,V){m===void 0&&(m=[]),b===void 0&&(b=!1),x===void 0&&(x=!1),V===void 0&&(V="");var he,Le=f,at;if(this.tokens.links){var dt=Object.keys(this.tokens.links);if(dt.length>0)for(;(at=this.tokenizer.rules.inline.reflinkSearch.exec(Le))!=null;)dt.includes(at[0].slice(at[0].lastIndexOf("[")+1,-1))&&(Le=Le.slice(0,at.index)+"["+"a".repeat(at[0].length-2)+"]"+Le.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(at=this.tokenizer.rules.inline.blockSkip.exec(Le))!=null;)Le=Le.slice(0,at.index)+"["+"a".repeat(at[0].length-2)+"]"+Le.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;f;){if(he=this.tokenizer.escape(f)){f=f.substring(he.raw.length),m.push(he);continue}if(he=this.tokenizer.tag(f,b,x)){f=f.substring(he.raw.length),b=he.inLink,x=he.inRawBlock,m.push(he);continue}if(he=this.tokenizer.link(f)){f=f.substring(he.raw.length),he.type==="link"&&(he.tokens=this.inlineTokens(he.text,[],!0,x)),m.push(he);continue}if(he=this.tokenizer.reflink(f,this.tokens.links)){f=f.substring(he.raw.length),he.type==="link"&&(he.tokens=this.inlineTokens(he.text,[],!0,x)),m.push(he);continue}if(he=this.tokenizer.strong(f,Le,V)){f=f.substring(he.raw.length),he.tokens=this.inlineTokens(he.text,[],b,x),m.push(he);continue}if(he=this.tokenizer.em(f,Le,V)){f=f.substring(he.raw.length),he.tokens=this.inlineTokens(he.text,[],b,x),m.push(he);continue}if(he=this.tokenizer.codespan(f)){f=f.substring(he.raw.length),m.push(he);continue}if(he=this.tokenizer.br(f)){f=f.substring(he.raw.length),m.push(he);continue}if(he=this.tokenizer.del(f)){f=f.substring(he.raw.length),he.tokens=this.inlineTokens(he.text,[],b,x),m.push(he);continue}if(he=this.tokenizer.autolink(f,X)){f=f.substring(he.raw.length),m.push(he);continue}if(!b&&(he=this.tokenizer.url(f,X))){f=f.substring(he.raw.length),m.push(he);continue}if(he=this.tokenizer.inlineText(f,x,ce)){f=f.substring(he.raw.length),V=he.raw.slice(-1),m.push(he);continue}if(f){var Ve="Infinite loop on byte: "+f.charCodeAt(0);if(this.options.silent){console.error(Ve);break}else throw new Error(Ve)}}return m},be(E,null,[{key:"rules",get:function(){return{block:y,inline:ne}}}]),E}(),_e=R.defaults,Re=A.cleanUrl,De=A.escape,we=function(){function E(M){this.options=M||_e}var T=E.prototype;return T.code=function(f,m,b){var x=(m||"").match(/\S*/)[0];if(this.options.highlight){var V=this.options.highlight(f,x);V!=null&&V!==f&&(b=!0,f=V)}return x?'<pre><code class="'+this.options.langPrefix+De(x,!0)+'">'+(b?f:De(f,!0))+`</code></pre>
`:"<pre><code>"+(b?f:De(f,!0))+`</code></pre>
`},T.blockquote=function(f){return`<blockquote>
`+f+`</blockquote>
`},T.html=function(f){return f},T.heading=function(f,m,b,x){return this.options.headerIds?"<h"+m+' id="'+this.options.headerPrefix+x.slug(b)+'">'+f+"</h"+m+`>
`:"<h"+m+">"+f+"</h"+m+`>
`},T.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},T.list=function(f,m,b){var x=m?"ol":"ul",V=m&&b!==1?' start="'+b+'"':"";return"<"+x+V+`>
`+f+"</"+x+`>
`},T.listitem=function(f){return"<li>"+f+`</li>
`},T.checkbox=function(f){return"<input "+(f?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},T.paragraph=function(f){return"<p>"+f+`</p>
`},T.table=function(f,m){return m&&(m="<tbody>"+m+"</tbody>"),`<table>
<thead>
`+f+`</thead>
`+m+`</table>
`},T.tablerow=function(f){return`<tr>
`+f+`</tr>
`},T.tablecell=function(f,m){var b=m.header?"th":"td",x=m.align?"<"+b+' align="'+m.align+'">':"<"+b+">";return x+f+"</"+b+`>
`},T.strong=function(f){return"<strong>"+f+"</strong>"},T.em=function(f){return"<em>"+f+"</em>"},T.codespan=function(f){return"<code>"+f+"</code>"},T.br=function(){return this.options.xhtml?"<br/>":"<br>"},T.del=function(f){return"<del>"+f+"</del>"},T.link=function(f,m,b){if(f=Re(this.options.sanitize,this.options.baseUrl,f),f===null)return b;var x='<a href="'+De(f)+'"';return m&&(x+=' title="'+m+'"'),x+=">"+b+"</a>",x},T.image=function(f,m,b){if(f=Re(this.options.sanitize,this.options.baseUrl,f),f===null)return b;var x='<img src="'+f+'" alt="'+b+'"';return m&&(x+=' title="'+m+'"'),x+=this.options.xhtml?"/>":">",x},T.text=function(f){return f},E}(),Ce=function(){function E(){}var T=E.prototype;return T.strong=function(f){return f},T.em=function(f){return f},T.codespan=function(f){return f},T.del=function(f){return f},T.html=function(f){return f},T.text=function(f){return f},T.link=function(f,m,b){return""+b},T.image=function(f,m,b){return""+b},T.br=function(){return""},E}(),et=function(){function E(){this.seen={}}var T=E.prototype;return T.slug=function(f){var m=f.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(m)){var b=m;do this.seen[b]++,m=b+"-"+this.seen[b];while(this.seen.hasOwnProperty(m))}return this.seen[m]=0,m},E}(),qe=R.defaults,Ye=A.unescape,$e=function(){function E(M){this.options=M||qe,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new et}E.parse=function(f,m){var b=new E(m);return b.parse(f)};var T=E.prototype;return T.parse=function(f,m){m===void 0&&(m=!0);var b="",x,V,he,Le,at,dt,Ve,vt,lt,rt,Ct,gt,_t,Ot,ft,Kt,vn,Bt,bt=f.length;for(x=0;x<bt;x++){rt=f[x];switch(rt.type){case"space":continue;case"hr":{b+=this.renderer.hr();continue}case"heading":{b+=this.renderer.heading(this.parseInline(rt.tokens),rt.depth,Ye(this.parseInline(rt.tokens,this.textRenderer)),this.slugger);continue}case"code":{b+=this.renderer.code(rt.text,rt.lang,rt.escaped);continue}case"table":{for(vt="",Ve="",Le=rt.header.length,V=0;V<Le;V++)Ve+=this.renderer.tablecell(this.parseInline(rt.tokens.header[V]),{header:!0,align:rt.align[V]});for(vt+=this.renderer.tablerow(Ve),lt="",Le=rt.cells.length,V=0;V<Le;V++){for(dt=rt.tokens.cells[V],Ve="",at=dt.length,he=0;he<at;he++)Ve+=this.renderer.tablecell(this.parseInline(dt[he]),{header:!1,align:rt.align[he]});lt+=this.renderer.tablerow(Ve)}b+=this.renderer.table(vt,lt);continue}case"blockquote":{lt=this.parse(rt.tokens),b+=this.renderer.blockquote(lt);continue}case"list":{for(Ct=rt.ordered,gt=rt.start,_t=rt.loose,Le=rt.items.length,lt="",V=0;V<Le;V++)ft=rt.items[V],Kt=ft.checked,vn=ft.task,Ot="",ft.task&&(Bt=this.renderer.checkbox(Kt),_t?ft.tokens.length>0&&ft.tokens[0].type==="text"?(ft.tokens[0].text=Bt+" "+ft.tokens[0].text,ft.tokens[0].tokens&&ft.tokens[0].tokens.length>0&&ft.tokens[0].tokens[0].type==="text"&&(ft.tokens[0].tokens[0].text=Bt+" "+ft.tokens[0].tokens[0].text)):ft.tokens.unshift({type:"text",text:Bt}):Ot+=Bt),Ot+=this.parse(ft.tokens,_t),lt+=this.renderer.listitem(Ot,vn,Kt);b+=this.renderer.list(lt,Ct,gt);continue}case"html":{b+=this.renderer.html(rt.text);continue}case"paragraph":{b+=this.renderer.paragraph(this.parseInline(rt.tokens));continue}case"text":{for(lt=rt.tokens?this.parseInline(rt.tokens):rt.text;x+1<bt&&f[x+1].type==="text";)rt=f[++x],lt+=`
`+(rt.tokens?this.parseInline(rt.tokens):rt.text);b+=m?this.renderer.paragraph(lt):lt;continue}default:{var yt='Token with "'+rt.type+'" type was not found.';if(this.options.silent){console.error(yt);return}else throw new Error(yt)}}}return b},T.parseInline=function(f,m){m=m||this.renderer;var b="",x,V,he=f.length;for(x=0;x<he;x++){V=f[x];switch(V.type){case"escape":{b+=m.text(V.text);break}case"html":{b+=m.html(V.text);break}case"link":{b+=m.link(V.href,V.title,this.parseInline(V.tokens,m));break}case"image":{b+=m.image(V.href,V.title,V.text);break}case"strong":{b+=m.strong(this.parseInline(V.tokens,m));break}case"em":{b+=m.em(this.parseInline(V.tokens,m));break}case"codespan":{b+=m.codespan(V.text);break}case"br":{b+=m.br();break}case"del":{b+=m.del(this.parseInline(V.tokens,m));break}case"text":{b+=m.text(V.text);break}default:{var Le='Token with "'+V.type+'" type was not found.';if(this.options.silent){console.error(Le);return}else throw new Error(Le)}}}return b},E}(),We=A.merge,Ne=A.checkSanitizeDeprecation,Ue=A.escape,ge=R.getDefaults,Je=R.changeDefaults,Ke=R.defaults;function xe(E,T,M){if(typeof E=="undefined"||E===null)throw new Error("marked(): input parameter is undefined or null");if(typeof E!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(E)+", string expected");if(typeof T=="function"&&(M=T,T=null),T=We({},xe.defaults,T||{}),Ne(T),M){var f=T.highlight,m;try{m=ue.lex(E,T)}catch(he){return M(he)}var b=function(Le){var at;if(!Le)try{at=$e.parse(m,T)}catch(dt){Le=dt}return T.highlight=f,Le?M(Le):M(null,at)};if(!f||f.length<3)return b();if(delete T.highlight,!m.length)return b();var x=0;xe.walkTokens(m,function(he){he.type==="code"&&(x++,setTimeout(function(){f(he.text,he.lang,function(Le,at){if(Le)return b(Le);at!=null&&at!==he.text&&(he.text=at,he.escaped=!0),x--,x===0&&b()})},0))}),x===0&&b();return}try{var V=ue.lex(E,T);return T.walkTokens&&xe.walkTokens(V,T.walkTokens),$e.parse(V,T)}catch(he){if(he.message+=`
Please report this to https://github.com/markedjs/marked.`,T.silent)return"<p>An error occurred:</p><pre>"+Ue(he.message+"",!0)+"</pre>";throw he}}xe.options=xe.setOptions=function(E){return We(xe.defaults,E),Je(xe.defaults),xe},xe.getDefaults=ge,xe.defaults=Ke,xe.use=function(E){var T=We({},E);if(E.renderer&&function(){var f=xe.defaults.renderer||new we,m=function(V){var he=f[V];f[V]=function(){for(var Le=arguments.length,at=new Array(Le),dt=0;dt<Le;dt++)at[dt]=arguments[dt];var Ve=E.renderer[V].apply(f,at);return Ve===!1&&(Ve=he.apply(f,at)),Ve}};for(var b in E.renderer)m(b);T.renderer=f}(),E.tokenizer&&function(){var f=xe.defaults.tokenizer||new q,m=function(V){var he=f[V];f[V]=function(){for(var Le=arguments.length,at=new Array(Le),dt=0;dt<Le;dt++)at[dt]=arguments[dt];var Ve=E.tokenizer[V].apply(f,at);return Ve===!1&&(Ve=he.apply(f,at)),Ve}};for(var b in E.tokenizer)m(b);T.tokenizer=f}(),E.walkTokens){var M=xe.defaults.walkTokens;T.walkTokens=function(f){E.walkTokens(f),M&&M(f)}}xe.setOptions(T)},xe.walkTokens=function(E,T){for(var M=P(E),f;!(f=M()).done;){var m=f.value;T(m);switch(m.type){case"table":{for(var b=P(m.tokens.header),x;!(x=b()).done;){var V=x.value;xe.walkTokens(V,T)}for(var he=P(m.tokens.cells),Le;!(Le=he()).done;)for(var at=Le.value,dt=P(at),Ve;!(Ve=dt()).done;){var vt=Ve.value;xe.walkTokens(vt,T)}break}case"list":{xe.walkTokens(m.items,T);break}default:m.tokens&&xe.walkTokens(m.tokens,T)}}},xe.Parser=$e,xe.parser=$e.parse,xe.Renderer=we,xe.TextRenderer=Ce,xe.Lexer=ue,xe.lexer=ue.lex,xe.Tokenizer=q,xe.Slugger=et,xe.parse=xe;var Ie=xe;return Ie})},EGTK:function(nt,ze,g){"use strict";var W=g("T2oS"),be=g("W9HT"),te=g("5NDa"),ve=g("5rEg"),P=g("k1fw"),J=g("tJVT"),R=g("q1tI"),S=g.n(R),O=g("TSYQ"),z=g.n(O),G=g("dGDm"),B=g.n(G),ye=function(N){var j=N.className,ae=N.dispatch,K=N.skin,ke=K===void 0?"white":K,Be=N.value,oe=Be===void 0?null:Be,Te=N.loading,Pe=Te===void 0?!1:Te,de=N.data,me=de===void 0?[]:de,Oe=N.otherData,pe=Oe===void 0?[]:Oe,v=N.tags,ee=v===void 0?[]:v,$=N.onChange,w=$===void 0?function(){}:$,ie=Object(R.useState)(""),I=Object(J.a)(ie,2),D=I[0],A=I[1],c=Object(R.useState)(!1),l=Object(J.a)(c,2),p=l[0],_=l[1],U=Object(R.useState)([]),le=Object(J.a)(U,2),Ee=le[0],q=le[1],Ae=Object(R.useState)(0),se=Object(J.a)(Ae,2),fe=se[0],F=se[1],Z=Object(R.useRef)(null),h=Object(R.useRef)(String(Math.floor(Math.random()*1e6))).current,k=Object(R.useRef)();Object(R.useEffect)(function(){return window.addEventListener("keydown",y),function(){window.removeEventListener("keydown",y)}},[D,p,Ee]);var y=function(Ne){if(!p||Ne.keyCode!==40&&Ne.keyCode!==38)return;var Ue=0;Ne.keyCode===40&&p&&(fe<Ee.length-1?Ue=fe+1:Ue=0,console.log("\u4E0B"),ue(Ue,"down")),Ne.keyCode===38&&p&&(fe===0?Ue=Ee.length-1:Ue=fe-1,ue(Ue,"up")),F(Ue),ce(D,Ue)},ne=function(Ne,Ue){var ge=function(xe){var Ie=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,E={};return E["^"]="\\^",E["."]="\\.",E["\\"]="\\\\",E["|"]="\\|",E["("]="\\(",E[")"]="\\)",E["*"]="\\*",E["+"]="\\+",E["-"]="\\-",E.$="$",E["["]="\\[",E["]"]="\\]",E["?"]="\\?",xe=xe.replace(Ie,function(T){return E[T]}),xe},Je=new RegExp(ge(Ue),"gi");return Ne=Ne.replace(Je,function(Ke){return"<span style='color:#0152d9;'>"+Ke+"</span>"}),Ne},ce=function(Ne,Ue){if(Ne===""){q([]);return}var ge=[];me.forEach(function(Ke){Ke.image.length&&Ke.image.forEach(function(xe){ge.push(xe)})});var Je=ge.concat(pe).filter(function(Ke){var xe;return(xe=Ke.name)===null||xe===void 0?void 0:xe.toLocaleLowerCase().includes(Ne==null?void 0:Ne.toLocaleLowerCase())}).map(function(Ke,xe){var Ie=Ke.id,E=Ke.name,T=Object(P.a)(Object(P.a)({},Ke),{},{label:S.a.createElement("ul",{id:"search-".concat(h,"-").concat(xe),onClick:function(){return De(Ie,T)},className:xe===Ue?B.a.searchListActive:B.a.searchList},S.a.createElement("li",{className:B.a.name,dangerouslySetInnerHTML:{__html:ne(E,Ne)}}),Ke.private&&S.a.createElement("li",{className:B.a.tag},"\u79C1\u6709"))});return T});q(Je)},X=function(Ne){var Ue=document.getElementById("scroll-".concat(h,"-").concat(Ne));if(!Ue)return;var ge=document.getElementById("scroll-".concat(h));ge.scrollTo(0,Ue.offsetTop)},ue=function(Ne,Ue){var ge=document.getElementById("search-".concat(h,"-").concat(Ne));if(!ge)return;var Je=document.getElementById("search-".concat(h)),Ke=ge.offsetTop-Je.scrollTop>0&&ge.offsetTop-Je.scrollTop<Je.clientHeight;if(Ke)return;Ue==="down"?Je.scrollTo(0,ge.offsetTop-Je.clientHeight+ge.clientHeight):Je.scrollTo(0,ge.offsetTop)},_e=function(Ne){ce(Ne,0),A(Ne)},Re=function(Ne){var Ue,ge;if(!Ee.length)return;var Je=Ee==null||((Ue=Ee[fe])===null||Ue===void 0)?void 0:Ue.id;w(Je),q([]),F(0),A(Ee==null||((ge=Ee[fe])===null||ge===void 0)?void 0:ge.name),X(Je),k.current.blur()},De=function(Ne,Ue){w(Ne),q([]),F(0),A(Ue==null?void 0:Ue.name),X(Ne)},we=function(){q([]),A("")},Ce=function(Ne){w(Ne),q([]),A("")},et=function(){return D===""?S.a.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):S.a.createElement("i",{onClick:we,className:"iconfont icon-shanchu4 c-grey-c"})},qe=function(){ae({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Ye=function(){ae({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},$e=function(){Z.current=setTimeout(function(){_(!1),F(0)},200)};return S.a.createElement("div",{className:z()(ke==="night"?B.a.darklySelectEnvironment:B.a.selectEnvironment,j)},S.a.createElement("div",{className:B.a.search},S.a.createElement(ve.a,{suffix:et(),bordered:!1,ref:k,value:D,onKeyDown:function(Ne){(Ne.keyCode===40||Ne.keyCode===38)&&Ne.preventDefault()},size:"large",onFocus:function(){clearTimeout(Z.current),_e(D),_(!0)},onBlur:$e,onChange:function(Ne){return _e(Ne.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:Re}),p&&S.a.createElement("div",{id:"search-".concat(h),className:B.a.searchListWrap},Ee.map(function(We,Ne){return S.a.createElement(S.a.Fragment,{key:Ne}," ",We.label)}))),Pe?S.a.createElement(be.a,{className:B.a.spin}):S.a.createElement(S.a.Fragment,null,!!ee.length&&S.a.createElement("aside",{className:B.a.common},S.a.createElement("div",{className:B.a.title},"\u63A8\u8350\u73AF\u5883:"),S.a.createElement("ul",{className:B.a.tags},ee.map(function(We,Ne){return S.a.createElement("li",{key:Ne,onClick:function(){return Ce(We.id)},className:oe===We.id?"".concat(B.a.tag," ").concat(B.a.tagActive):B.a.tag},We.name)}))),S.a.createElement("aside",{className:B.a.wrap,id:"scroll-".concat(h)},me.map(function(We,Ne){var Ue;return We!=null&&(Ue=We.image)!==null&&Ue!==void 0&&Ue.length?S.a.createElement(re,{key:Ne,data:We,id:oe,handleClick:function(Je){return Ce(Je)}}):null}),S.a.createElement("ul",{className:B.a.allList},pe.map(function(We){return S.a.createElement("li",{key:"key-".concat(We.id),id:"scroll-".concat(h,"-").concat(We.id),className:We.id===oe?"".concat(B.a.item," ").concat(B.a.itemActive):B.a.item,onClick:function(){return w(We.id)}},S.a.createElement("div",{className:B.a.name},We.name),We.private&&S.a.createElement("div",{className:B.a.tag},"\u79C1\u6709"))})))),S.a.createElement("div",{className:B.a.apply},S.a.createElement("span",{className:B.a.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),S.a.createElement("span",{className:B.a.p2,onClick:qe}," \u7533\u8BF7\u65B0\u5EFA"),S.a.createElement("span",{className:B.a.p2,onClick:Ye}," \u5728\u7EBF\u521B\u5EFA")))},re=function(N){var j=N.data,ae=N.id,K=N.handleClick,ke=Object(R.useState)(!0),Be=Object(J.a)(ke,2),oe=Be[0],Te=Be[1],Pe=j.name,de=j.image;return S.a.createElement("div",{className:B.a.list},S.a.createElement("header",{onClick:function(){return Te(!oe)}},S.a.createElement("div",{className:B.a.title},Pe),S.a.createElement("i",{style:{transition:"0.5s",transform:oe?"rotate(0deg)":"rotate(180deg)"},className:"iconfont icon-shangjiantou c-grey-999"})),S.a.createElement("ul",{className:B.a.items,style:{height:oe?"auto":0}},de.map(function(me){return S.a.createElement("li",{key:me.id,className:me.id===ae?"".concat(B.a.item," ").concat(B.a.itemActive):B.a.item,onClick:function(){return K(me.id)}},S.a.createElement("div",{className:B.a.name},me.name),me.private&&S.a.createElement("div",{className:B.a.tag},"\u79C1\u6709"))}),S.a.createElement("li",{className:B.a.line})))};ze.a=ye},ELLl:function(nt,ze,g){(function(W){W(g("VrN/"))})(function(W){var be={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},te=W.Pos;W.defineOption("autoCloseBrackets",!1,function(H,N,j){j&&j!=W.Init&&(H.removeKeyMap(P),H.state.closeBrackets=null),N&&(J(ve(N,"pairs")),H.state.closeBrackets=N,H.addKeyMap(P))});function ve(H,N){return N=="pairs"&&typeof H=="string"?H:typeof H=="object"&&H[N]!=null?H[N]:be[N]}var P={Backspace:O,Enter:z};function J(H){for(var N=0;N<H.length;N++){var j=H.charAt(N),ae="'"+j+"'";P[ae]||(P[ae]=R(j))}}J(be.pairs+"`");function R(H){return function(N){return B(N,H)}}function S(H){var N=H.state.closeBrackets;if(!N||N.override)return N;var j=H.getModeAt(H.getCursor());return j.closeBrackets||N}function O(H){var N=S(H);if(!N||H.getOption("disableInput"))return W.Pass;for(var j=ve(N,"pairs"),ae=H.listSelections(),K=0;K<ae.length;K++){if(!ae[K].empty())return W.Pass;var ke=ye(H,ae[K].head);if(!ke||j.indexOf(ke)%2!=0)return W.Pass}for(var K=ae.length-1;K>=0;K--){var Be=ae[K].head;H.replaceRange("",te(Be.line,Be.ch-1),te(Be.line,Be.ch+1),"+delete")}}function z(H){var N=S(H),j=N&&ve(N,"explode");if(!j||H.getOption("disableInput"))return W.Pass;for(var ae=H.listSelections(),K=0;K<ae.length;K++){if(!ae[K].empty())return W.Pass;var ke=ye(H,ae[K].head);if(!ke||j.indexOf(ke)%2!=0)return W.Pass}H.operation(function(){var Be=H.lineSeparator()||`
`;H.replaceSelection(Be+Be,null),H.execCommand("goCharLeft"),ae=H.listSelections();for(var oe=0;oe<ae.length;oe++){var Te=ae[oe].head.line;H.indentLine(Te,null,!0),H.indentLine(Te+1,null,!0)}})}function G(H){var N=W.cmpPos(H.anchor,H.head)>0;return{anchor:new te(H.anchor.line,H.anchor.ch+(N?-1:1)),head:new te(H.head.line,H.head.ch+(N?1:-1))}}function B(H,N){var j=S(H);if(!j||H.getOption("disableInput"))return W.Pass;var ae=ve(j,"pairs"),K=ae.indexOf(N);if(K==-1)return W.Pass;for(var ke=ve(j,"closeBefore"),Be=ve(j,"triples"),oe=ae.charAt(K+1)==N,Te=H.listSelections(),Pe=K%2==0,de,me=0;me<Te.length;me++){var Oe=Te[me],pe=Oe.head,v,ee=H.getRange(pe,te(pe.line,pe.ch+1));if(Pe&&!Oe.empty())v="surround";else if((oe||!Pe)&&ee==N)oe&&re(H,pe)?v="both":Be.indexOf(N)>=0&&H.getRange(pe,te(pe.line,pe.ch+3))==N+N+N?v="skipThree":v="skip";else if(oe&&pe.ch>1&&Be.indexOf(N)>=0&&H.getRange(te(pe.line,pe.ch-2),pe)==N+N){if(pe.ch>2&&/\bstring/.test(H.getTokenTypeAt(te(pe.line,pe.ch-2))))return W.Pass;v="addFour"}else if(oe){var $=pe.ch==0?" ":H.getRange(te(pe.line,pe.ch-1),pe);if(!W.isWordChar(ee)&&$!=N&&!W.isWordChar($))v="both";else return W.Pass}else if(Pe&&(ee.length===0||/\s/.test(ee)||ke.indexOf(ee)>-1))v="both";else return W.Pass;if(!de)de=v;else if(de!=v)return W.Pass}var w=K%2?ae.charAt(K-1):N,ie=K%2?N:ae.charAt(K+1);H.operation(function(){if(de=="skip")H.execCommand("goCharRight");else if(de=="skipThree")for(var I=0;I<3;I++)H.execCommand("goCharRight");else if(de=="surround"){for(var D=H.getSelections(),I=0;I<D.length;I++)D[I]=w+D[I]+ie;H.replaceSelections(D,"around"),D=H.listSelections().slice();for(var I=0;I<D.length;I++)D[I]=G(D[I]);H.setSelections(D)}else de=="both"?(H.replaceSelection(w+ie,null),H.triggerElectric(w+ie),H.execCommand("goCharLeft")):de=="addFour"&&(H.replaceSelection(w+w+w+w,"before"),H.execCommand("goCharRight"))})}function ye(H,N){var j=H.getRange(te(N.line,N.ch-1),te(N.line,N.ch+1));return j.length==2?j:null}function re(H,N){var j=H.getTokenAt(te(N.line,N.ch+1));return/\bstring/.test(j.type)&&j.start==N.ch&&(N.ch==0||!/\bstring/.test(H.getTokenTypeAt(N)))}})},FPkq:function(nt,ze,g){nt.exports=g.p+"static/qrCode.dd0fe9b2.png"},FrRK:function(nt,ze,g){"use strict";var W=g("+L6B"),be=g("2/Rp"),te=g("DZo9"),ve=g("8z0m"),P=g("miYZ"),J=g("tsqr"),R=g("9og8"),S=g("2qtc"),O=g("kLXV"),z=g("y8nQ"),G=g("Vl3Y"),B=g("tJVT"),ye=g("PpiC"),re=g("5NDa"),H=g("5rEg"),N=g("WmNS"),j=g.n(N),ae=g("q1tI"),K=g.n(ae),ke=g("9kvl"),Be=g("m3rI"),oe=g("FPkq"),Te=g.n(oe),Pe=g("qB8g"),de=g.n(Pe),me=H.a.TextArea,Oe=function(v){var ee=v.newShixuns,$=v.globalSetting,w=v.loading,ie=v.dispatch,I=Object(ye.a)(v,["newShixuns","globalSetting","loading","dispatch"]),D=G.a.useForm(),A=Object(B.a)(D,1),c=A[0],l=Object(ae.useState)([]),p=Object(B.a)(l,2),_=p[0],U=p[1],le=function(F){var Z=["uploading","done","removed"];Z.includes(F.file.status)&&U(F.fileList)},Ee=function(F){if(!F.percent||F.percent==100){var Z,h=(Z=F.response)===null||Z===void 0?void 0:Z.id;return O.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var k=Object(R.a)(j.a.mark(function ne(){var ce;return j.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,ie({type:"newShixuns/deleteAttachment",payload:{id:h}});case 2:ce=ue.sent,ce&&U(_.filter(function(_e){var Re;return((Re=_e.response)===null||Re===void 0?void 0:Re.id)!==h}));case 4:case"end":return ue.stop()}},ne)}));function y(){return k.apply(this,arguments)}return y}()}),!1}},q=function(F){if(_.length)return!1;var Z=F.size/1024/1024>50;return Z?(J.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},Ae=function(){var fe=Object(R.a)(j.a.mark(function F(Z){var h,k,y,ne,ce,X,ue,_e;return j.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return y=Z||{},ne=y.language,ce=y.env,X=y.mode,ue=y.code,De.next=3,ie({type:"newShixuns/applyShixunMirror",payload:{language:ne,runtime:ce,run_method:X,attachment_id:_==null||((h=_[0])===null||h===void 0||((k=h.response)===null||k===void 0))?void 0:k.id}});case 3:_e=De.sent,ie({type:"newShixuns/setActionTabs",payload:{}}),_e&&J.b.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002");case 6:case"end":return De.stop()}},F)}));return function(Z){return fe.apply(this,arguments)}}(),se=function(){c.resetFields(),U([])};return K.a.createElement(O.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:ee.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:se},K.a.createElement("section",{className:de.a.qrCode},K.a.createElement("aside",{className:de.a.a1},K.a.createElement("div",{className:de.a.code},K.a.createElement("img",{width:120,height:120,src:Te.a,alt:"\u4E8C\u7EF4\u7801"})),K.a.createElement("div",{className:de.a.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),K.a.createElement("div",{className:de.a.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),K.a.createElement("aside",{className:de.a.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",K.a.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),K.a.createElement(G.a,{className:de.a.formWrap,form:c,labelCol:{span:4},wrapperCol:{span:20},onFinish:Ae},K.a.createElement(G.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},K.a.createElement(me,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),K.a.createElement(G.a.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},K.a.createElement(me,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),K.a.createElement(G.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},K.a.createElement(me,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),K.a.createElement(G.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},K.a.createElement("div",{className:de.a.upload},K.a.createElement(ve.a,{fileList:_,action:"".concat(Be.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:le,onRemove:Ee,beforeUpload:q,withCredentials:!0},K.a.createElement("span",{className:"".concat(de.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),K.a.createElement("span",{className:"".concat(de.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),K.a.createElement("div",{className:de.a.footerWrap},K.a.createElement(G.a.Item,null,K.a.createElement(be.a,{className:"mr5",size:"large",onClick:function(){ie({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),K.a.createElement(be.a,{size:"large",type:"primary",htmlType:"submit",loading:w["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};ze.a=Object(ke.a)(function(pe){var v=pe.newShixuns,ee=pe.loading,$=pe.globalSetting;return{newShixuns:v,globalSetting:$,loading:ee.effects}})(Oe)},GfqC:function(nt,ze,g){"use strict";var W=g("q1tI"),be=g.n(W),te=g("TSYQ"),ve=g.n(te);function P(A,c){var l="cannot "+A.method+" "+A.action+" "+c.status+"'",p=new Error(l);return p.status=c.status,p.method=A.method,p.url=A.action,p}function J(A){var c=A.responseText||A.response;if(!c)return c;try{return JSON.parse(c)}catch(l){return c}}function R(A){var c=new XMLHttpRequest;A.onProgress&&c.upload&&(c.upload.onprogress=function(U){U.total>0&&(U.percent=U.loaded/U.total*100),A.onProgress(U)});var l=new FormData;A.data&&Object.keys(A.data).forEach(function(_){var U=A.data[_];if(Array.isArray(U)){U.forEach(function(le){l.append(_+"[]",le)});return}l.append(_,A.data[_])}),A.file instanceof Blob?l.append(A.filename,A.file,A.file.name):l.append(A.filename,A.file),c.onerror=function(U){A.onError(U)},c.onload=function(){return c.status<200||c.status>=300?A.onError(P(A,c),J(c)):A.onSuccess(J(c),c)},c.open(A.method,A.action,!0),A.withCredentials&&"withCredentials"in c&&(c.withCredentials=!0);var p=A.headers||{};return p["X-Requested-With"]!==null&&c.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(p).forEach(function(_){p[_]!==null&&c.setRequestHeader(_,p[_])}),c.send(l),{abort:function(){c.abort()}}}var S=+new Date,O=0;function z(){return"rc-upload-"+S+"-"+ ++O}function G(A,c){return A.indexOf(c,A.length-c.length)!==-1}var B=function(A,c){if(A&&c){var l=Array.isArray(c)?c:c.split(","),p=A.name||"",_=A.type||"",U=_.replace(/\/.*$/,"");return l.some(function(le){var Ee=le.trim();return Ee.charAt(0)==="."?G(p.toLowerCase(),Ee.toLowerCase()):/\/\*$/.test(Ee)?U===Ee.replace(/\/.*$/,""):_===Ee})}return!0};function ye(A,c){var l=A.createReader(),p=[];function _(){l.readEntries(function(U){var le=Array.prototype.slice.apply(U);p=p.concat(le);var Ee=!le.length;Ee?c(p):_()})}_()}var re=function(c,l,p){var _=function U(le,Ee){Ee=Ee||"",le.isFile?le.file(function(q){p(q)&&(le.fullPath&&!q.webkitRelativePath&&(Object.defineProperties(q,{webkitRelativePath:{writable:!0}}),q.webkitRelativePath=le.fullPath.replace(/^\//,""),Object.defineProperties(q,{webkitRelativePath:{writable:!1}})),l([q]))}):le.isDirectory&&ye(le,function(q){q.forEach(function(Ae){U(Ae,""+Ee+le.name+"/")})})};c.forEach(function(U){_(U.webkitGetAsEntry())})},H=re,N=Object.assign||function(A){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(A[p]=l[p])}return A},j=function(){function A(c,l){var p=[],_=!0,U=!1,le=void 0;try{for(var Ee=c[Symbol.iterator](),q;!(_=(q=Ee.next()).done)&&!(p.push(q.value),l&&p.length===l);_=!0);}catch(Ae){U=!0,le=Ae}finally{try{!_&&Ee.return&&Ee.return()}finally{if(U)throw le}}return p}return function(c,l){if(Array.isArray(c))return c;if(Symbol.iterator in Object(c))return A(c,l);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ae=function(){function A(c,l){for(var p=0;p<l.length;p++){var _=l[p];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(c,_.key,_)}}return function(c,l,p){return l&&A(c.prototype,l),p&&A(c,p),c}}();function K(A,c,l){return c in A?Object.defineProperty(A,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):A[c]=l,A}function ke(A,c){var l={};for(var p in A){if(c.indexOf(p)>=0)continue;if(!Object.prototype.hasOwnProperty.call(A,p))continue;l[p]=A[p]}return l}function Be(A,c){if(!(A instanceof c))throw new TypeError("Cannot call a class as a function")}function oe(A,c){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:A}function Te(A,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);A.prototype=Object.create(c&&c.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(A,c):A.__proto__=c)}var Pe=function(c){return Object.keys(c).reduce(function(l,p){return(p.substr(0,5)==="data-"||p.substr(0,5)==="aria-"||p==="role")&&(l[p]=c[p]),l},{})},de=function(A){Te(c,A);function c(){var l,p,_,U;Be(this,c);for(var le=arguments.length,Ee=Array(le),q=0;q<le;q++)Ee[q]=arguments[q];return U=(p=(_=oe(this,(l=c.__proto__||Object.getPrototypeOf(c)).call.apply(l,[this].concat(Ee))),_),_.state={uid:z()},_.reqs={},_.onChange=function(Ae){var se=Ae.target.files;_.uploadFiles(se),_.reset()},_.onClick=function(Ae){var se=_.fileInput;if(!se)return;var fe=_.props,F=fe.children,Z=fe.onClick;F&&F.type==="button"&&(se.parentNode.focus(),se.parentNode.querySelector("button").blur()),se.click(),Z&&Z(Ae)},_.onKeyDown=function(Ae){Ae.key==="Enter"&&_.onClick()},_.onFileDrop=function(Ae){var se=_.props.multiple;if(Ae.preventDefault(),Ae.type==="dragover")return;if(_.props.directory)H(Array.prototype.slice.call(Ae.dataTransfer.items),_.uploadFiles,function(F){return B(F,_.props.accept)});else{var fe=Array.prototype.slice.call(Ae.dataTransfer.files).filter(function(F){return B(F,_.props.accept)});se===!1&&(fe=fe.slice(0,1)),_.uploadFiles(fe)}},_.uploadFiles=function(Ae){var se=Array.prototype.slice.call(Ae);se.map(function(fe){return fe.uid=z(),fe}).forEach(function(fe){_.upload(fe,se)})},_.saveFileInput=function(Ae){_.fileInput=Ae},p),oe(_,U)}return ae(c,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(p,_){var U=this,le=this.props;if(!le.beforeUpload)return setTimeout(function(){return U.post(p)},0);var Ee=le.beforeUpload(p,_);Ee&&Ee.then?Ee.then(function(q){var Ae=Object.prototype.toString.call(q);return Ae==="[object File]"||Ae==="[object Blob]"?U.post(q):U.post(p)}).catch(function(q){console.log(q)}):Ee!==!1&&setTimeout(function(){return U.post(p)},0);return}},{key:"post",value:function(p){var _=this;if(!this._isMounted)return;var U=this.props,le=U.onStart,Ee=U.onProgress,q=U.transformFile,Ae=q===void 0?function(se){return se}:q;new Promise(function(se){var fe=U.action;return typeof fe=="function"&&(fe=fe(p)),se(fe)}).then(function(se){var fe=p.uid,F=U.customRequest||R,Z=Promise.resolve(Ae(p)).then(function(h){var k=U.data;return typeof k=="function"&&(k=k(h)),Promise.all([h,k])}).catch(function(h){console.error(h)});Z.then(function(h){var k=j(h,2),y=k[0],ne=k[1],ce={action:se,filename:U.name,data:ne,file:y,headers:U.headers,withCredentials:U.withCredentials,method:U.method||"post",onProgress:Ee?function(X){Ee(X,p)}:null,onSuccess:function(ue,_e){delete _.reqs[fe],U.onSuccess(ue,p,_e)},onError:function(ue,_e){delete _.reqs[fe],U.onError(ue,_e,p)}};le(p),_.reqs[fe]=F(ce)})})}},{key:"reset",value:function(){this.setState({uid:z()})}},{key:"abort",value:function(p){var _=this.reqs;if(p){var U=p;p&&p.uid&&(U=p.uid),_[U]&&_[U].abort&&_[U].abort(),delete _[U]}else Object.keys(_).forEach(function(le){_[le]&&_[le].abort&&_[le].abort(),delete _[le]})}},{key:"render",value:function(){var p,_=this.props,U=_.component,le=_.prefixCls,Ee=_.className,q=_.disabled,Ae=_.id,se=_.style,fe=_.multiple,F=_.accept,Z=_.children,h=_.directory,k=_.openFileDialogOnClick,y=_.onMouseEnter,ne=_.onMouseLeave,ce=ke(_,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),X=ve()((p={},K(p,le,!0),K(p,le+"-disabled",q),K(p,Ee,Ee),p)),ue=q?{}:{onClick:k?this.onClick:function(){},onKeyDown:k?this.onKeyDown:function(){},onMouseEnter:y,onMouseLeave:ne,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return be.a.createElement(U,N({},ue,{className:X,role:"button",style:se}),be.a.createElement("input",N({},Pe(ce),{id:Ae,type:"file",ref:this.saveFileInput,onClick:function(Re){return Re.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:F,directory:h?"directory":null,webkitdirectory:h?"webkitdirectory":null,multiple:fe,onChange:this.onChange})),Z)}}]),c}(W.Component),me=de,Oe=Object.assign||function(A){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(A[p]=l[p])}return A},pe=function(){function A(c,l){for(var p=0;p<l.length;p++){var _=l[p];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(c,_.key,_)}}return function(c,l,p){return l&&A(c.prototype,l),p&&A(c,p),c}}();function v(A,c){if(!(A instanceof c))throw new TypeError("Cannot call a class as a function")}function ee(A,c){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:A}function $(A,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);A.prototype=Object.create(c&&c.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(A,c):A.__proto__=c)}function w(){}var ie=function(A){$(c,A);function c(){var l,p,_,U;v(this,c);for(var le=arguments.length,Ee=Array(le),q=0;q<le;q++)Ee[q]=arguments[q];return U=(p=(_=ee(this,(l=c.__proto__||Object.getPrototypeOf(c)).call.apply(l,[this].concat(Ee))),_),_.saveUploader=function(Ae){_.uploader=Ae},p),ee(_,U)}return pe(c,[{key:"abort",value:function(p){this.uploader.abort(p)}},{key:"render",value:function(){return be.a.createElement(me,Oe({},this.props,{ref:this.saveUploader}))}}]),c}(W.Component);ie.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:w,onError:w,onSuccess:w,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var I=ie,D=ze.a=I},Gytx:function(nt,ze){nt.exports=function(W,be,te,ve){var P=te?te.call(ve,W,be):void 0;if(P!==void 0)return!!P;if(W===be)return!0;if(typeof W!="object"||!W||typeof be!="object"||!be)return!1;var J=Object.keys(W),R=Object.keys(be);if(J.length!==R.length)return!1;for(var S=Object.prototype.hasOwnProperty.bind(be),O=0;O<J.length;O++){var z=J[O];if(!S(z))return!1;var G=W[z],B=be[z];if(P=te?te.call(ve,G,B,z):void 0,P===!1||P===void 0&&G!==B)return!1}return!0}},HmJG:function(nt,ze,g){},IH3J:function(nt,ze,g){nt.exports={wrapInstallPackageStyle:"wrapInstallPackageStyle___2JdHa",installPackageStyle:"installPackageStyle___3mphi",title:"title___-Mfcd",line:"line___1qKKa",bodyHeight:"bodyHeight___3hV2N"}},Lai7:function(nt,ze,g){nt.exports=g.p+"static/noEnvData.6108fa6c.png"},LdHM:function(nt,ze,g){"use strict";g.d(ze,"b",function(){return ke}),g.d(ze,"a",function(){return oe});var W=g("1OyB"),be=g("vuIU"),te=g("Ji7U"),ve=g("LK+K"),P=g("q1tI"),J=g("rePB"),R=g("Ff2n"),S=g("ODXe"),O=g("4IlW"),z=g("bX4T"),G=g("YrtM"),B=g("TSYQ"),ye=g.n(B),re=g("+nKL"),H=g("8OUc"),N=function(p,_){var U=p.prefixCls,le=p.id,Ee=p.flattenOptions,q=p.childrenAsData,Ae=p.values,se=p.searchValue,fe=p.multiple,F=p.defaultActiveFirstOption,Z=p.height,h=p.itemHeight,k=p.notFoundContent,y=p.open,ne=p.menuItemSelectedIcon,ce=p.virtual,X=p.onSelect,ue=p.onToggleOpen,_e=p.onActiveValue,Re=p.onScroll,De=p.onMouseEnter,we="".concat(U,"-item"),Ce=Object(G.a)(function(){return Ee},[y,Ee],function(Ie,E){return E[0]&&Ie[1]!==E[1]}),et=P.useRef(null),qe=function(E){E.preventDefault()},Ye=function(E){et.current&&et.current.scrollTo({index:E})},$e=function(E){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=Ce.length,f=0;f<M;f+=1){var m=(E+f*T+M)%M,b=Ce[m],x=b.group,V=b.data;if(!x&&!V.disabled)return m}return-1},We=P.useState(function(){return $e(0)}),Ne=Object(S.a)(We,2),Ue=Ne[0],ge=Ne[1],Je=function(E){ge(E);var T=Ce[E];if(!T){_e(null,-1);return}_e(T.data.value,E)};P.useEffect(function(){Je(F!==!1?$e(0):-1)},[Ce.length,se]),P.useEffect(function(){var Ie=setTimeout(function(){if(!fe&&y&&Ae.size===1){var E=Array.from(Ae)[0],T=Ce.findIndex(function(M){var f=M.data;return f.value===E});Je(T),Ye(T)}});return function(){return clearTimeout(Ie)}},[y]);var Ke=function(E){E!==void 0&&X(E,{selected:!Ae.has(E)}),fe||ue(!1)};if(P.useImperativeHandle(_,function(){return{onKeyDown:function(E){var T=E.which;switch(T){case O.a.UP:case O.a.DOWN:{var M=0;if(T===O.a.UP?M=-1:T===O.a.DOWN&&(M=1),M!==0){var f=$e(Ue+M,M);Ye(f),Je(f)}break}case O.a.ENTER:{var m=Ce[Ue];m&&!m.data.disabled?Ke(m.data.value):Ke(void 0),y&&E.preventDefault();break}case O.a.ESC:ue(!1)}},onKeyUp:function(){},scrollTo:function(E){Ye(E)}}}),Ce.length===0)return P.createElement("div",{role:"listbox",id:"".concat(le,"_list"),className:"".concat(we,"-empty"),onMouseDown:qe},k);function xe(Ie){var E=Ce[Ie];if(!E)return null;var T=E.data||{},M=T.value,f=T.label,m=T.children,b=Object(z.a)(T,!0),x=q?m:f;return E?P.createElement("div",Object.assign({"aria-label":typeof x=="string"?x:null},b,{key:Ie,role:"option",id:"".concat(le,"_list_").concat(Ie),"aria-selected":Ae.has(M)}),M):null}return P.createElement(P.Fragment,null,P.createElement("div",{role:"listbox",id:"".concat(le,"_list"),style:{height:0,width:0,overflow:"hidden"}},xe(Ue-1),xe(Ue),xe(Ue+1)),P.createElement(re.a,{itemKey:"key",ref:et,data:Ce,height:Z,itemHeight:h,fullHeight:!1,onMouseDown:qe,onScroll:Re,virtual:ce,onMouseEnter:De},function(Ie,E){var T,M=Ie.group,f=Ie.groupOption,m=Ie.data,b=m.label,x=m.key;if(M)return P.createElement("div",{className:ye()(we,"".concat(we,"-group"))},b!==void 0?b:x);var V=m.disabled,he=m.value,Le=m.title,at=m.children,dt=m.style,Ve=m.className,vt=Object(R.a)(m,["disabled","value","title","children","style","className"]),lt=Ae.has(he),rt="".concat(we,"-option"),Ct=ye()(we,rt,Ve,(T={},Object(J.a)(T,"".concat(rt,"-grouped"),f),Object(J.a)(T,"".concat(rt,"-active"),Ue===E&&!V),Object(J.a)(T,"".concat(rt,"-disabled"),V),Object(J.a)(T,"".concat(rt,"-selected"),lt),T)),gt=q?at:b,_t=!ne||typeof ne=="function"||lt;return P.createElement("div",Object.assign({},vt,{"aria-selected":lt,className:Ct,title:Le,onMouseMove:function(){if(Ue===E||V)return;Je(E)},onClick:function(){V||Ke(he)},style:dt}),P.createElement("div",{className:"".concat(rt,"-content")},gt||he),P.isValidElement(ne)||lt,_t&&P.createElement(H.a,{className:"".concat(we,"-option-state"),customizeIcon:ne,customizeIconProps:{isSelected:lt}},lt?"\u2713":null))}))},j=P.forwardRef(N);j.displayName="OptionList";var ae=j,K=function(){return null};K.isSelectOption=!0;var ke=K,Be=function(){return null};Be.isSelectOptGroup=!0;var oe=Be,Te=g("VTBJ"),Pe=g("Zm9Q");function de(l){var p=l.key,_=l.props,U=_.children,le=_.value,Ee=Object(R.a)(_,["children","value"]);return Object(Te.a)({key:p,value:le!==void 0?le:p,children:U},Ee)}function me(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(Pe.a)(l).map(function(_,U){if(!P.isValidElement(_)||!_.type)return null;var le=_.type.isSelectOptGroup,Ee=_.key,q=_.props,Ae=q.children,se=Object(R.a)(q,["children"]);return p||!le?de(_):Object(Te.a)(Object(Te.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?U:Ee,"__"),label:Ee},se),{},{options:me(Ae)})}).filter(function(_){return _})}var Oe=g("2Qr1"),pe=g("qNPg"),v=g("U8pU"),ee=g("Kwbf"),$=g("WKfj");function w(l){var p=l.mode,_=l.options,U=l.children,le=l.backfill,Ee=l.allowClear,q=l.placeholder,Ae=l.getInputElement,se=l.showSearch,fe=l.onSearch,F=l.defaultOpen,Z=l.autoFocus,h=l.labelInValue,k=l.value,y=l.inputValue,ne=l.optionLabelProp,ce=p==="multiple"||p==="tags",X=se!==void 0?se:ce||p==="combobox",ue=_||me(U);if(Object(ee.a)(p!=="tags"||ue.every(function(we){return!we.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),p==="tags"||p==="combobox"){var _e=ue.some(function(we){return we.options?we.options.some(function(Ce){return typeof("value"in Ce?Ce.value:Ce.key)=="number"}):typeof("value"in we?we.value:we.key)=="number"});Object(ee.a)(!_e,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ee.a)(p!=="combobox"||!ne,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ee.a)(p==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(ee.a)(p==="combobox"||!Ae,"`getInputElement` only work with `combobox` mode."),Object(ee.b)(p!=="combobox"||!Ae||!Ee||!q,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),fe&&!X&&p!=="combobox"&&p!=="tags"&&Object(ee.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ee.b)(!F||Z,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),k!=null){var Re=Object($.d)(k);Object(ee.a)(!h||Re.every(function(we){return Object(v.a)(we)==="object"&&("key"in we||"value"in we)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(ee.a)(!ce||Array.isArray(k),"`value` should be array when `mode` is `multiple` or `tags`")}if(U){var De=null;Object(Pe.a)(U).some(function(we){if(!P.isValidElement(we)||!we.type)return!1;var Ce=we.type;if(Ce.isSelectOption)return!1;if(Ce.isSelectOptGroup){var et=Object(Pe.a)(we.props.children).every(function(qe){return!P.isValidElement(qe)||!we.type||qe.type.isSelectOption?!0:(De=qe.type,!1)});return!et}return De=Ce,!0}),De&&Object(ee.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(De.displayName||De.name||De,"`.")),Object(ee.a)(y===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ie=w,I=Object(pe.a)({prefixCls:"rc-select",components:{optionList:ae},convertChildrenToData:me,flattenOptions:Oe.d,getLabeledValue:Oe.e,filterOptions:Oe.b,isValueDisabled:Oe.g,findValueOption:Oe.c,warningProps:ie,fillOptionsWithMissingValue:Oe.a}),D=function(l){Object(te.a)(_,l);var p=Object(ve.a)(_);function _(){var U;return Object(W.a)(this,_),U=p.apply(this,arguments),U.selectRef=P.createRef(),U.focus=function(){U.selectRef.current.focus()},U.blur=function(){U.selectRef.current.blur()},U}return Object(be.a)(_,[{key:"render",value:function(){return P.createElement(I,Object.assign({ref:this.selectRef},this.props))}}]),_}(P.Component);D.Option=ke,D.OptGroup=oe;var A=D,c=ze.c=A},M8RZ:function(nt,ze,g){"use strict";g.d(ze,"a",function(){return O});var W=g("fWQN"),be=g("mtLc"),te=g("yKVA"),ve=g("879j"),P=g("q1tI"),J=g.n(P),R=g("i8i4"),S=g.n(R),O=function(z){Object(te.a)(B,z);var G=Object(ve.a)(B);function B(ye){var re;Object(W.a)(this,B),re=G.call(this,ye);var H=window.document;return re.node=H.createElement("div"),H.body.appendChild(re.node),re}return Object(be.a)(B,[{key:"render",value:function(){var re=this.props.children;return Object(R.createPortal)(re,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),B}(J.a.Component)},N3QO:function(nt,ze,g){"use strict";var W=g("2qtc"),be=g("kLXV"),te=g("tJVT"),ve=g("q1tI"),P=g.n(ve),J=g("9kvl"),R=g("FPkq"),S=g.n(R),O=function(G){var B,ye=G.newShixuns,re=G.dispatch,H=G.user,N=Object(ve.useState)(!1),j=Object(te.a)(N,2),ae=j[0],K=j[1];Object(ve.useEffect)(function(){ye.actionTabs.key==="Create-Environment"&&Be()},[ye==null||((B=ye.actionTabs)===null||B===void 0)?void 0:B.key]);var ke=function(){re({type:"newShixuns/setActionTabs",payload:{}})},Be=function(){var Te,Pe,de;ke(),((Te=H.userInfo)===null||Te===void 0?void 0:Te.mirror_marker_status)===0?K(!0):((Pe=H.userInfo)===null||Pe===void 0?void 0:Pe.mirror_marker_status)===1?J.d.push("/shixuns/new/CreateImg"):((de=H.userInfo)===null||de===void 0?void 0:de.mirror_marker_status)===2&&be.a.confirm({title:"\u60A8\u4ECA\u65E5\u5DF2\u8FBE\u5230\u7533\u8BF7\u4E0A\u9650\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u4E91\u4E3B\u673A\u5217\u8868\uFF1F",content:"\u63D0\u793A\uFF1A\u6BCF\u5929\u6700\u591A\u5141\u8BB8\u7533\u8BF7\u4E00\u53F0\u4E91\u4E3B\u673A",okText:"\u8DF3\u8F6C",cancelText:"\u53D6\u6D88",onOk:function(){var Oe;J.d.push("/users/".concat((Oe=H.userInfo)===null||Oe===void 0?void 0:Oe.login,"/experiment-img"))}})};return P.a.createElement(be.a,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",visible:ae,footer:null,onCancel:function(){K(!1)}},P.a.createElement("div",{style:{textAlign:"center"}},P.a.createElement("br",null),P.a.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:S.a,alt:"\u4E8C\u7EF4\u7801"})),P.a.createElement("img",null))};ze.a=Object(J.a)(function(z){var G=z.newShixuns,B=z.user,ye=z.globalSetting;return{newShixuns:G,globalSetting:ye,user:B}})(O)},OLES:function(nt,ze,g){"use strict";var W=g("U8pU"),be=g("VTBJ"),te=g("Ff2n"),ve=g("q1tI"),P=g("uciX"),J=g("7ixt"),R=function(ye){var re=ye.overlay,H=ye.prefixCls,N=ye.id,j=ye.overlayInnerStyle;return ve.createElement("div",{className:"".concat(H,"-inner"),id:N,role:"tooltip",style:j},typeof re=="function"?re():re)},S=R,O=function(ye,re){var H=ye.overlayClassName,N=ye.trigger,j=N===void 0?["hover"]:N,ae=ye.mouseEnterDelay,K=ae===void 0?0:ae,ke=ye.mouseLeaveDelay,Be=ke===void 0?.1:ke,oe=ye.overlayStyle,Te=ye.prefixCls,Pe=Te===void 0?"rc-tooltip":Te,de=ye.children,me=ye.onVisibleChange,Oe=ye.afterVisibleChange,pe=ye.transitionName,v=ye.animation,ee=ye.placement,$=ee===void 0?"right":ee,w=ye.align,ie=w===void 0?{}:w,I=ye.destroyTooltipOnHide,D=I===void 0?!1:I,A=ye.defaultVisible,c=ye.getTooltipContainer,l=ye.overlayInnerStyle,p=Object(te.a)(ye,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),_=Object(ve.useRef)(null);Object(ve.useImperativeHandle)(re,function(){return _.current});var U=Object(be.a)({},p);"visible"in ye&&(U.popupVisible=ye.visible);var le=function(){var fe=ye.arrowContent,F=fe===void 0?null:fe,Z=ye.overlay,h=ye.id;return[ve.createElement("div",{className:"".concat(Pe,"-arrow"),key:"arrow"},F),ve.createElement(S,{key:"content",prefixCls:Pe,id:h,overlay:Z,overlayInnerStyle:l})]},Ee=!1,q=!1;if(typeof D=="boolean")Ee=D;else if(D&&Object(W.a)(D)==="object"){var Ae=D.keepParent;Ee=Ae===!0,q=Ae===!1}return ve.createElement(P.a,Object.assign({popupClassName:H,prefixCls:Pe,popup:le,action:j,builtinPlacements:J.a,popupPlacement:$,ref:_,popupAlign:ie,getPopupContainer:c,onPopupVisibleChange:me,afterPopupVisibleChange:Oe,popupTransitionName:pe,popupAnimation:v,defaultPopupVisible:A,destroyPopupOnHide:Ee,autoDestroy:q,mouseLeaveDelay:Be,popupStyle:oe,mouseEnterDelay:K},U),de)},z=Object(ve.forwardRef)(O),G=ze.a=z},Ot1p:function(nt,ze,g){"use strict";var W=g("2qtc"),be=g("kLXV"),te=g("rAM+"),ve=g("miYZ"),P=g("tsqr"),J=g("tJVT"),R=g("jrin"),S=g("q1tI"),O=g.n(S),z=g("VrN/"),G=g.n(z),B=g("bdgK"),ye=g("p77/"),re=g("Bd2K"),H=g("ELLl"),N=g("19Vz"),j=g("lZu9"),ae=g("+NIl"),K=g("kSUc"),ke=g("9Bee"),Be=function(E){var T=E.value,M=T===void 0?"":T,f=E.className,m=E.showTextOnly,b=E.showLines,x=E.style,V=x===void 0?{}:x,he=Object(S.useMemo)(function(){return""},[M]);return O.a.createElement(O.a.Fragment,null,O.a.createElement("div",{dangerouslySetInnerHTML:{__html:he}}))},oe=g("0Owb"),Te=g("dejd"),Pe=g("C+DQ"),de=[{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 me(E){var T=E.onActionCallback,M=E.title,f=E.icon,m=E.actionName,b=E.className,x=b===void 0?"":b,V=E.children;function he(){T(m)}return O.a.createElement("a",{title:M,className:x,onClick:he},O.a.createElement("i",{className:"md-iconfont ".concat(f)}),V)}var Oe=function(E){var T=E.watch,M=E.showNullButton,f=E.onActionCallback,m=E.fullScreen,b=E.insertTemp,x=E.hidetoolBar,V=[].concat(de,[{title:"".concat(T?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(T?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return O.a.createElement("ul",{className:"markdown-toolbar-container"},!x&&V.map(function(he,Le){return O.a.createElement("li",{key:Le},he.actionName?O.a.createElement(me,Object(oe.a)({},he,{onActionCallback:f})):O.a.createElement("span",{className:"v-line"}))}),M?O.a.createElement("li",null,O.a.createElement(me,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:f},O.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,b&&O.a.createElement("li",null,O.a.createElement(me,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(b),onActionCallback:f},O.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),O.a.createElement("li",{className:"btn-full-screen"},O.a.createElement(me,{icon:"".concat(m?"icon-shrink":"icon-enlarge"),title:m?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:f})))},pe=g("M8RZ"),v=g("+L6B"),ee=g("2/Rp"),$=g("y8nQ"),w=g("Vl3Y"),ie=g("5NDa"),I=g("5rEg"),D={labelCol:{span:4},wrapperCol:{span:20}},A=function(E){var T=E.callback,M=E.onCancel;function f(m){T(m)}return O.a.createElement(w.a,Object(oe.a)({},D,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:f}),O.a.createElement(w.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},O.a.createElement(I.a,null)),O.a.createElement(w.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},O.a.createElement(I.a,null)),O.a.createElement("div",{className:"flex-container flex-end"},O.a.createElement(ee.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),O.a.createElement(ee.a,{type:"ghost",onClick:M},"\u53D6\u6D88")))},c=g("7ahc"),l=g("HmJG"),p=g("BjJ7"),_=w.a.useForm,U={width:280,marginRight:10},le={labelCol:{span:5},wrapperCol:{span:19}},Ee=function(E){var T=E.callback,M=E.onCancel,f=_(),m=Object(J.a)(f,1),b=m[0];function x(Le){T(Le)}function V(Le,at){b.setFieldsValue({src:"/api/attachments/".concat(Le.id),type:at.type})}function he(Le){var at=Le.target.files[0];Ae(at,V)}return O.a.createElement(w.a,Object(oe.a)({form:b},le,{className:"upload-image-panel",onFinish:x}),O.a.createElement(w.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},O.a.createElement("div",{className:"flex-container"},O.a.createElement(w.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},O.a.createElement(I.a,{style:U})),O.a.createElement(q,{onFileChange:he}))),O.a.createElement(w.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},O.a.createElement(I.a,{style:{width:264}})),O.a.createElement(w.a.Item,{style:{textAlign:"right"}},O.a.createElement(ee.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),O.a.createElement(ee.a,{type:"ghost",onClick:M},"\u53D6\u6D88")))};function q(E){var T=E.onFileChange;return O.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",O.a.createElement("input",{type:"file",onChange:T}))}function Ae(E,T){if(!E)throw new String("\u6CA1\u6709\u6587\u4EF6");var M=new FormData;M.append("editormd-image-file",E),M.append("file_param_name","editormd-image-file"),M.append("byxhr","true");var f=new window.XMLHttpRequest;f.withCredentials=!0,f.addEventListener("load",function(m){T(JSON.parse(m.target.responseText),E)},!1),f.addEventListener("error",function(m){console.error(m)},!1),f.open("POST","".concat(p.a,"/api/attachments.json")),f.send(M)}var se=g("giR+"),fe=g("fyUT"),F=g("7Kak"),Z=g("9yH6"),h=Z.a.Group,k={margin:"0 8px"},y=function(E){var T=E.callback,M=E.onCancel;function f(m){T(m)}return O.a.createElement(w.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:f},O.a.createElement("div",{className:"flex-container"},O.a.createElement("span",{style:k},"\u5355\u5143\u683C\u6570\uFF1A"),O.a.createElement("span",{style:k},"\u884C\u6570"),O.a.createElement(w.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},O.a.createElement(fe.a,null)),O.a.createElement("span",{style:k},"\u5217\u6570"),O.a.createElement(w.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},O.a.createElement(fe.a,null))),O.a.createElement("div",{className:"flex-container",style:{marginTop:12}},O.a.createElement("span",{style:k},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),O.a.createElement(w.a.Item,{name:"align"},O.a.createElement(h,null,O.a.createElement(Z.a,{value:"default"},O.a.createElement("i",{className:"fa fa-align-justify"})),O.a.createElement(Z.a,{value:"left"},O.a.createElement("i",{className:"fa fa-align-left"})),O.a.createElement(Z.a,{value:"center"},O.a.createElement("i",{className:"fa fa-align-center"})),O.a.createElement(Z.a,{value:"right"},O.a.createElement("i",{className:"fa fa-align-right"}))))),O.a.createElement("div",{className:"flex-container flex-end"},O.a.createElement(ee.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),O.a.createElement(ee.a,{type:"ghost",onClick:M},"\u53D6\u6D88")))},ne=g("m3rI"),ce="link",X="upload-image",ue="code-block",_e="add-table",Re="------------",De={default:Re,left:":".concat(Re),center:":".concat(Re,":"),right:"".concat(Re,":")},we=g("9VGf"),Ce,et;function qe(){}var Ye=0,$e=1e4,We="\u2581",Ne=`
**\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 Ue(E){return/^\d+$/.test(E)?"".concat(E,"px"):E}var ge=navigator.platform.toUpperCase().indexOf("MAC")>=0,Je=ge?"Cmd":"Ctrl",Ke=(Ce={},Object(R.a)(Ce,Je+"-B","bold"),Object(R.a)(Ce,Je+"-I","italic"),Ce),xe=(et={},Object(R.a)(et,ce,"\u6DFB\u52A0\u94FE\u63A5"),Object(R.a)(et,ue,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(R.a)(et,X,"\u6DFB\u52A0\u56FE\u7247"),Object(R.a)(et,_e,"\u6DFB\u52A0\u8868\u683C"),et),Ie=ze.a=function(E){var T=E.defaultValue,M=T===void 0?"":T,f=E.onChange,m=E.width,b=m===void 0?"100%":m,x=E.height,V=x===void 0?400:x,he=E.miniToolbar,Le=he===void 0?!1:he,at=E.isFocus,dt=at===void 0?!1:at,Ve=E.watch,vt=E.insertTemp,lt=E.mode,rt=lt===void 0?"markdown":lt,Ct=E.id,gt=Ct===void 0?"markdown-editor-id":Ct,_t=E.showResizeBar,Ot=_t===void 0?!1:_t,ft=E.noStorage,Kt=ft===void 0?!1:ft,vn=E.showNullButton,Bt=vn===void 0?!1:vn,bt=E.hidetoolBar,yt=bt===void 0?!1:bt,Gt=E.fullScreen,Pt=Gt===void 0?!1:Gt,Ut=E.onBlur,Wt=E.onCMBeforeChange,St=E.onFullScreen,Qe=E.className,On=Qe===void 0?"":Qe,hr=E.disablePaste,bn=hr===void 0?!1:hr,xt=E.placeholder,Ln=xt===void 0?"":xt,jn=E.values,Jn=jn===void 0?"":jn,je=Object(S.useState)(null),ct=Object(J.a)(je,2),He=ct[0],Ir=ct[1],pr=Object(S.useState)(M),Zn=Object(J.a)(pr,2),qn=Zn[0],ut=Zn[1],Za=Object(S.useState)(Ve),Fr=Object(J.a)(Za,2),yn=Fr[0],pn=Fr[1],ya=Object(S.useState)(Pt),Br=Object(J.a)(ya,2),dn=Br[0],mr=Br[1],xa=Object(S.useState)(""),gr=Object(J.a)(xa,2),Rn=gr[0],Mn=gr[1],Ea=Object(S.useState)(0),Wr=Object(J.a)(Ea,2),Qn=Wr[0],Hr=Wr[1],_a=Object(S.useState)(V),xn=Object(J.a)(_a,2),wa=xn[0],Ca=xn[1],vr=Object(S.useState)(!1),Un=Object(J.a)(vr,2),Ui=Un[0],zr=Un[1],er=Object(S.useRef)(),Kr=Object(S.useRef)(),In=Object(S.useRef)(),tr=Object(S.useRef)();Object(S.useEffect)(function(){ut(Jn),He==null||He.setValue(Jn)},[Jn]),Object(S.useEffect)(function(){St==null||St(dn)},[dn]),Object(S.useEffect)(function(){if(er.current){var it=G.a.fromTextArea(er.current,{mode:rt,lineNumbers:!Le,lineWrapping:!0,value:M,autoCloseTags:!0,autoCloseBrackets:!0});dt&&it.focus();function ht(pt,kt){if(bn){kt.preventDefault();return}var Tt=kt.clipboardData;if(Tt){var Lt=Tt.types.toString(),It=Tt.items,Mt=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];if(Lt==="Files"||Tt.types.indexOf("Files")>-1){if(kt.preventDefault(),rt=="stex")return;try{var Qt,En=It[1];((Qt=It[0])===null||Qt===void 0?void 0:Qt.kind)==="file"&&(En=It[0]);var Rt=En.getAsFile(),Fn=Rt.name.split(".").pop();Ae(Rt,function(en){if(en.id){var Bn,Wn,yr;(Rt==null||((Bn=Rt.type)===null||Bn===void 0)?void 0:Bn.indexOf("image"))>-1?it.replaceSelection("![,](/api/attachments/".concat(en.id,"?type=").concat(en.content_type,")")):(Rt==null||((Wn=Rt.type)===null||Wn===void 0)?void 0:Wn.indexOf("video"))>-1?it.replaceSelection('<video width="100%" controls src="'.concat(ne.a.API_SERVER,"/api/attachments/").concat(en.id,'"></video>')):(Rt==null||((yr=Rt.type)===null||yr===void 0)?void 0:yr.indexOf("pdf"))>-1?it.replaceSelection('<a href="'.concat(ne.a.API_SERVER,"/api/attachments/").concat(en.id,"?type=").concat(Rt.type,'&disposition=inline" target="_blank">').concat(Rt.name,"</a>")):Mt.includes(Fn)?it.replaceSelection('<a href="'.concat(ne.a.API_SERVER,"/api/attachments/").concat(en.id,'?type=office&disposition=inline" target="_blank">').concat(Rt.name,"</a>")):it.replaceSelection("[".concat(Rt.name,"](").concat(ne.a.API_SERVER,"/api/attachments/").concat(en.id,"?type=").concat(en.content_type,")"))}else(en==null?void 0:en.status)===401&&(document.location.href="/user/login")})}catch(en){P.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return it.on("paste",ht),Ir(it),function(){it.off("paste",ht)}}},[]);var Sa=Object(S.useCallback)(function(){if(Kr.current)try{}catch(it){console.log(it,"---- to set md editor body height")}},[wa,Kr,dn]);Object(S.useEffect)(function(){function it(){var pt=new B.default(function(kt){var Tt=Object(te.a)(kt),Lt;try{for(Tt.s();!(Lt=Tt.n()).done;){var It=Lt.value;(It.target.offsetHeight>0||It.target.offsetWidth>0)&&(Sa(),He.setSize("100%","100%"),He.refresh())}}catch(Mt){Tt.e(Mt)}finally{Tt.f()}});return pt.observe(er.current.parentElement),pt}if(He){var ht=it();return function(){ht.unobserve(er.current.parentElement)}}},[He,Sa]),Object(S.useEffect)(function(){if(He){for(var it=[],ht=function(){var It=kt[pt];Tt=Object(J.a)(It,2);var Mt=Tt[0],Qt=Tt[1],En=Object(R.a)({},Mt,function(){Xr(Qt)});it.push(En),He.addKeyMap(En)},pt=0,kt=Object.entries(Ke);pt<kt.length;pt++){var Tt;ht()}return function(){var Lt=Object(te.a)(it),It;try{for(Lt.s();!(It=Lt.n()).done;){var Mt=It.value;He.removeKeyMap(Mt)}}catch(Qt){Lt.e(Qt)}finally{Lt.f()}}}},[He]),Object(S.useEffect)(function(){Pt!==dn&&mr(Pt)},[Pt]),Object(we.a)(function(){if(!Kt&&Qn>0){var it=new Date().getTime(),ht=window.sessionStorage.getItem(gt);it>=Qn+$e&&(!ht||ht!==qn)&&(window.sessionStorage.setItem(gt,qn),zr(!0))}},$e),Object(S.useEffect)(function(){pn(Ve)},[He,Ve]),Object(S.useEffect)(function(){He&&(dt&&He.focus())},[He,dt]),Object(S.useEffect)(function(){if(yn&&He){var it=He.getScrollerElement();function ht(pt){var kt=pt.target;if(tr.current){var Tt=kt.scrollTop/kt.scrollHeight;tr.current.scrollTop=tr.current.scrollHeight*Tt}}return it.addEventListener("scroll",ht),function(){it.removeEventListener("scroll",ht)}}},[He,yn]),Object(S.useEffect)(function(){if(He&&Wt){function it(ht,pt){Wt(ht,pt)}return He.on("beforeChange",it),function(){He.off("beforeChange",it)}}},[He,Wt]),Object(S.useEffect)(function(){if(He&&Ut){function it(){Ut(He.getValue())}return He.on("blur",it),function(){He.off("blur",it)}}},[He,Ut]),Object(S.useEffect)(function(){if(He){function it(ht){var pt=ht.getValue();ut(pt),Hr(new Date().getTime()),ht.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),f&&f(pt)}return He.on("change",it),function(){He.off("change",it)}}},[He,f]),Object(S.useEffect)(function(){He&&(M==null?(He.setValue(""),ut("")):M!==He.getValue()&&(He.setValue(M),ut(M),He.setCursor(He.lineCount(),0)))},[He,M]);var Xr=Object(S.useCallback)(function(it){var ht=He.getCursor(),pt=He.getSelection(),kt=pt.split(`
`);switch(it){case"bold":return He.replaceSelection("**"+pt+"**"),pt===""&&He.setCursor(ht.line,ht.ch+2),He.focus();case"italic":return He.replaceSelection("*"+pt+"*"),pt===""&&He.setCursor(ht.line,ht.ch+1),He.focus();case"code":return He.replaceSelection("`"+pt+"`"),pt===""&&He.setCursor(ht.line,ht.ch+1),He.focus();case"inline-latex":return He.replaceSelection("`$$"+pt+"$$`"),pt===""&&He.setCursor(ht.line,ht.ch+3),He.focus();case"latex":return He.replaceSelection("```latex\n"+pt+"\n```"),He.setCursor(ht.line+1,pt.length+1),He.focus();case"line-break":return He.replaceSelection(`<br/>
`),He.focus();case"list-ul":return pt===""?He.replaceSelection("- "+pt):He.replaceSelection(kt.map(function(Tt){return Tt===""?"":"- ".concat(Tt)}).join(`
`)),He.focus();case"list-ol":return pt===""?He.replaceSelection("1. "+pt):He.replaceSelection(kt.map(function(Tt,Lt){return Tt===""?"":"".concat(Lt+1,". ").concat(Tt)}).join(`
`)),He.focus();case"add-null-ch":return pt===""&&He.setCursor(ht.line,ht.ch+1),He.replaceSelection(We),He.focus();case"inster-template-1":return pt===""&&He.setCursor(ht.line,ht.ch),He.replaceSelection(Ne),He.focus();case"eraser":return He.setValue(""),He.focus();case"trigger-watch":return pn(!yn),He.focus();case"trigger-full-screen":return mr(!dn),He.focus();case ce:Mn(ce);return;case ue:Mn(ue);return;case X:Mn(X);return;case _e:Mn(_e);return;default:throw new Error}},[He,yn,dn]),nr=Object(S.useCallback)(function(it){Mn("");switch(Rn){case ce:var ht=it.title,pt=it.link;return He.replaceSelection("[".concat(ht,"](").concat(pt,")")),He.focus();case ue:var kt=it.language,Tt=it.content;return He.replaceSelection(["```"+kt,Tt,"```"].join(`
`)),He.focus();case X:var Lt=it.src,It=it.alt;return He.replaceSelection("![ ".concat(It," ]( ").concat(Lt,' "').concat(It,'" )')),He.focus();case _e:for(var Mt=it.row,Qt=it.col,En=it.align,Rt=`
`,Fn=0;Fn<Mt;Fn++){for(var en=[],Bn=[],Wn=0;Wn<Qt;Wn++)Fn===1&&Bn.push(De[En]),en.push(" ");Fn===1&&(Rt+="| ".concat(Bn.join(" | "),` |
`)),Rt+="| ".concat(en.join(Qt===1?"":" | "),` |
`)}return He.replaceSelection(Rt+`
`),He.focus();default:throw new Error}},[He,Rn]),br=Object(S.useMemo)(function(){switch(Rn){case ce:return O.a.createElement(A,{callback:nr,onCancel:Sn});case ue:return O.a.createElement(c.b,{callback:nr,onCancel:Sn});case X:return O.a.createElement(Ee,{callback:nr,onCancel:Sn});case _e:return O.a.createElement(y,{callback:nr,onCancel:Sn});default:return null}},[Rn]);function Sn(){Mn("")}Object(S.useEffect)(function(){if(In.current){var it=In.current,ht=!1,pt=0;function kt(It){ht=!0,pt=It.pageY}function Tt(){ht=!1}function Lt(It){if(ht){var Mt=It.pageY-pt;Mt<0&&(Mt=0),Mt>300&&(Mt=300);var Qt=V+Mt+"px";Ca(Qt)}}return it.addEventListener("mousedown",kt),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",Tt),function(){it.removeEventListener("mousedown",kt),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",Tt)}}},[He,In]),Object(S.useEffect)(function(){Ca(V)},[V]);var Gr=Ue(b),ka=Ue(wa),Ta={width:Gr,height:ka},$r=Object(S.useMemo)(function(){if(Qn){var it=new Date(Qn),ht=it.getHours(),pt=it.getMinutes(),kt=it.getSeconds();return ht=ht<10?"0"+ht:ht,pt=pt<10?"0"+pt:pt,kt=kt<10?"0"+kt:kt,"".concat(ht,":").concat(pt,":").concat(kt)}return 0},[Qn]);function Ii(){window.sessionStorage.removeItem(gt),zr(!1),Hr(0)}function qa(){zr(!1),Hr(0),He.setValue(window.sessionStorage.getItem(gt))}return O.a.createElement(S.Fragment,null,O.a.createElement("div",{className:"markdown-editor-wrapper",ref:Kr},O.a.createElement("div",{className:"markdown-editor-container ".concat(On," ").concat(yn?"on-preview":""," ").concat(Le?"mini":""," ").concat(dn?"full-screen":""),style:Ta},O.a.createElement(Oe,{insertTemp:vt,watch:yn,fullScreen:dn,showNullButton:Bt,onActionCallback:Xr,hidetoolBar:yt}),O.a.createElement("div",{className:"markdown-editor-body"},O.a.createElement("div",{className:"codemirror-container"},O.a.createElement("textarea",{ref:er,placeholder:Ln})),yn?O.a.createElement("div",{ref:tr,className:"preview-container"},rt==="stex"&&O.a.createElement(Be,{value:qn}),rt!=="stex"&&O.a.createElement(ke.a,{value:qn})):null))),Ot?O.a.createElement("a",{ref:In,className:"editor-resize"}):null,O.a.createElement(pe.a,null,xe[Rn]?O.a.createElement(be.a,{centered:!0,title:xe[Rn],visible:!0,onCancel:Sn,footer:null},br):null))}},QXZ7:function(nt,ze,g){"use strict";var W=g("2qtc"),be=g("kLXV"),te=g("q1tI"),ve=g.n(te),P=g("9Bee"),J=g("IH3J"),R=g.n(J),S=function(z){var G,B,ye=z.installPackage,re=z.visible,H=z.setVisible;return Object(te.useEffect)(function(){return re?document.body.setAttribute("class",R.a.bodyHeight):document.body.removeAttribute("class"),function(){document.body.removeAttribute("class")}},[re]),ve.a.createElement(be.a,{centered:!0,keyboard:!1,destroyOnClose:!0,visible:re,title:"\u73AF\u5883\u4ECB\u7ECD",width:"1000px",wrapClassName:R.a.wrapInstallPackageStyle,footer:null,onCancel:function(){return H(!1)}},ve.a.createElement("div",{className:R.a.installPackageStyle},ve.a.createElement("div",{className:"mb30"},ve.a.createElement("div",{className:R.a.title},ye.mainTypeName),ve.a.createElement("div",null,ve.a.createElement(P.a,{value:ye.mainTypeDescription}))),!!(ye!=null&&(G=ye.smallType)!==null&&G!==void 0&&G.length)&&ve.a.createElement("div",{className:R.a.line}),ve.a.createElement("div",null,ye==null||((B=ye.smallType)===null||B===void 0)?void 0:B.map(function(N,j){return ve.a.createElement(ve.a.Fragment,{key:j},ve.a.createElement("div",{className:R.a.title,style:{marginBottom:14}},N.name),ve.a.createElement("div",{className:"mb30"},ve.a.createElement(P.a,{value:N.des})))}))))};ze.a=S},SJMd:function(nt,ze){/**
* @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 g,W,be,te=!1,ve,P;window.PR_SHOULD_USE_CONTINUATION=!0;var J,R;(function(){var S=window,O=["break,continue,do,else,for,if,return,while"],z=[O,"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"],G=[z,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],B=[G,"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"],ye=[G,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],re=[G,"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"],H="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",N=[G,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],j="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",ae=[O,"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"],K=[O,"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=[O,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Be=[B,re,ye,N,j,ae,K,ke],oe=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,Te="str",Pe="kwd",de="com",me="typ",Oe="lit",pe="pun",v="pln",ee="tag",$="dec",w="src",ie="atn",I="atv",D="nocode",A="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function c(X){for(var ue=0,_e=!1,Re=!1,De=0,we=X.length;De<we;++De){var Ce=X[De];if(Ce.ignoreCase)Re=!0;else if(/[a-z]/i.test(Ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){_e=!0,Re=!1;break}}var et={b:8,t:9,n:10,v:11,f:12,r:13};function qe(Ue){var ge=Ue.charCodeAt(0);if(ge!==92)return ge;var Je=Ue.charAt(1);return ge=et[Je],ge||("0"<=Je&&Je<="7"?parseInt(Ue.substring(1),8):Je==="u"||Je==="x"?parseInt(Ue.substring(2),16):Ue.charCodeAt(1))}function Ye(Ue){if(Ue<32)return(Ue<16?"\\x0":"\\x")+Ue.toString(16);var ge=String.fromCharCode(Ue);return ge==="\\"||ge==="-"||ge==="]"||ge==="^"?"\\"+ge:ge}function $e(Ue){var ge=Ue.substring(1,Ue.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")),Je=[],Ke=ge[0]==="^",xe=["["];Ke&&xe.push("^");for(var Ie=Ke?1:0,E=ge.length;Ie<E;++Ie){var T=ge[Ie];if(/\\[bdsw]/i.test(T))xe.push(T);else{var M=qe(T),f;Ie+2<E&&ge[Ie+1]==="-"?(f=qe(ge[Ie+2]),Ie+=2):f=M,Je.push([M,f]),f<65||M>122||(f<65||M>90||Je.push([Math.max(65,M)|32,Math.min(f,90)|32]),f<97||M>122||Je.push([Math.max(97,M)&~32,Math.min(f,122)&~32]))}}Je.sort(function(V,he){return V[0]-he[0]||he[1]-V[1]});for(var m=[],b=[],Ie=0;Ie<Je.length;++Ie){var x=Je[Ie];x[0]<=b[1]+1?b[1]=Math.max(b[1],x[1]):m.push(b=x)}for(var Ie=0;Ie<m.length;++Ie){var x=m[Ie];xe.push(Ye(x[0])),x[1]>x[0]&&(x[1]+1>x[0]&&xe.push("-"),xe.push(Ye(x[1])))}return xe.push("]"),xe.join("")}function We(Ue){for(var ge=Ue.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")),Je=ge.length,Ke=[],xe=0,Ie=0;xe<Je;++xe){var E=ge[xe];if(E==="(")++Ie;else if(E.charAt(0)==="\\"){var T=+E.substring(1);T&&(T<=Ie?Ke[T]=-1:ge[xe]=Ye(T))}}for(var xe=1;xe<Ke.length;++xe)Ke[xe]===-1&&(Ke[xe]=++ue);for(var xe=0,Ie=0;xe<Je;++xe){var E=ge[xe];if(E==="(")++Ie,Ke[Ie]||(ge[xe]="(?:");else if(E.charAt(0)==="\\"){var T=+E.substring(1);T&&T<=Ie&&(ge[xe]="\\"+Ke[T])}}for(var xe=0;xe<Je;++xe)ge[xe]==="^"&&ge[xe+1]!=="^"&&(ge[xe]="");if(Ue.ignoreCase&&_e)for(var xe=0;xe<Je;++xe){var E=ge[xe],M=E.charAt(0);E.length>=2&&M==="["?ge[xe]=$e(E):M!=="\\"&&(ge[xe]=E.replace(/[a-zA-Z]/g,function(b){var x=b.charCodeAt(0);return"["+String.fromCharCode(x&~32,x|32)+"]"}))}return ge.join("")}for(var Ne=[],De=0,we=X.length;De<we;++De){var Ce=X[De];if(Ce.global||Ce.multiline)throw new Error(""+Ce);Ne.push("(?:"+We(Ce)+")")}return new RegExp(Ne.join("|"),Re?"gi":"g")}function l(X,ue){var _e=/(?:^|\s)nocode(?:\s|$)/,Re=[],De=0,we=[],Ce=0;function et(qe){var Ye=qe.nodeType;if(Ye==1){if(_e.test(qe.className))return;for(var $e=qe.firstChild;$e;$e=$e.nextSibling)et($e);var We=qe.nodeName.toLowerCase();(We==="br"||We==="li")&&(Re[Ce]=`
`,we[Ce<<1]=De++,we[Ce++<<1|1]=qe)}else if(Ye==3||Ye==4){var Ne=qe.nodeValue;Ne.length&&(ue?Ne=Ne.replace(/\r\n?/g,`
`):Ne=Ne.replace(/[ \t\r\n]+/g," "),Re[Ce]=Ne,we[Ce<<1]=De,De+=Ne.length,we[Ce++<<1|1]=qe)}}return et(X),{sourceCode:Re.join("").replace(/\n$/,""),spans:we}}function p(X,ue,_e,Re,De){if(!_e)return;var we={sourceNode:X,pre:1,langExtension:null,numberLines:null,sourceCode:_e,spans:null,basePos:ue,decorations:null};Re(we),De.push.apply(De,we.decorations)}var _=/\S/;function U(X){for(var ue=void 0,_e=X.firstChild;_e;_e=_e.nextSibling){var Re=_e.nodeType;ue=Re===1?ue?X:_e:Re===3&&_.test(_e.nodeValue)?X:ue}return ue===X?void 0:ue}function le(X,ue){var _e={},Re;(function(){for(var Ce=X.concat(ue),et=[],qe={},Ye=0,$e=Ce.length;Ye<$e;++Ye){var We=Ce[Ye],Ne=We[3];if(Ne)for(var Ue=Ne.length;--Ue>=0;)_e[Ne.charAt(Ue)]=We;var ge=We[1],Je=""+ge;qe.hasOwnProperty(Je)||(et.push(ge),qe[Je]=null)}et.push(/[\0-\uffff]/),Re=c(et)})();var De=ue.length,we=function(Ce){for(var et=Ce.sourceCode,qe=Ce.basePos,Ye=Ce.sourceNode,$e=[qe,v],We=0,Ne=et.match(Re)||[],Ue={},ge=0,Je=Ne.length;ge<Je;++ge){var Ke=Ne[ge],xe=Ue[Ke],Ie=void 0,E;if(typeof xe=="string")E=!1;else{var T=_e[Ke.charAt(0)];if(T)Ie=Ke.match(T[1]),xe=T[0];else{for(var M=0;M<De;++M)if(T=ue[M],Ie=Ke.match(T[1]),Ie){xe=T[0];break}Ie||(xe=v)}E=xe.length>=5&&xe.substring(0,5)==="lang-",E&&!(Ie&&typeof Ie[1]=="string")&&(E=!1,xe=w),E||(Ue[Ke]=xe)}var f=We;if(We+=Ke.length,!E)$e.push(qe+f,xe);else{var m=Ie[1],b=Ke.indexOf(m),x=b+m.length;Ie[2]&&(x=Ke.length-Ie[2].length,b=x-m.length);var V=xe.substring(5);p(Ye,qe+f,Ke.substring(0,b),we,$e),p(Ye,qe+f+b,m,Z(V,m),$e),p(Ye,qe+f+x,Ke.substring(x),we,$e)}}Ce.decorations=$e};return we}function Ee(X){var ue=[],_e=[];X.tripleQuotedStrings?ue.push([Te,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):X.multiLineStrings?ue.push([Te,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ue.push([Te,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),X.verbatimStrings&&_e.push([Te,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Re=X.hashComments;Re&&(X.cStyleComments?(Re>1?ue.push([de,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ue.push([de,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),_e.push([Te,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ue.push([de,/^#[^\r\n]*/,null,"#"])),X.cStyleComments&&(_e.push([de,/^\/\/[^\r\n]*/,null]),_e.push([de,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var De=X.regexLiterals;if(De){var we=De>1?"":`
\r`,Ce=we?".":"[\\S\\s]",et="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";_e.push(["lang-regex",RegExp("^"+A+"("+et+")")])}var qe=X.types;qe&&_e.push([me,qe]);var Ye=(""+X.keywords).replace(/^ | $/g,"");Ye.length&&_e.push([Pe,new RegExp("^(?:"+Ye.replace(/[\s,]+/g,"|")+")\\b"),null]),ue.push([v,/^\s+/,null,` \r
\xA0`]);var $e="^.[^\\s\\w.$@'\"`/\\\\]*";return X.regexLiterals&&($e+="(?!s*/)"),_e.push([Oe,/^@[a-z_$][a-z_$@0-9]*/i,null],[me,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[Oe,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[pe,new RegExp($e),null]),le(ue,_e)}var q=Ee({keywords:Be,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ae(X,ue,_e){for(var Re=/(?:^|\s)nocode(?:\s|$)/,De=/\r\n?|\n/,we=X.ownerDocument,Ce=we.createElement("li");X.firstChild;)Ce.appendChild(X.firstChild);var et=[Ce];function qe(ge){var Je=ge.nodeType;if(Je==1&&!Re.test(ge.className))if(ge.nodeName==="br")Ye(ge),ge.parentNode&&ge.parentNode.removeChild(ge);else for(var Ke=ge.firstChild;Ke;Ke=Ke.nextSibling)qe(Ke);else if((Je==3||Je==4)&&_e){var xe=ge.nodeValue,Ie=xe.match(De);if(Ie){var E=xe.substring(0,Ie.index);ge.nodeValue=E;var T=xe.substring(Ie.index+Ie[0].length);if(T){var M=ge.parentNode;M.insertBefore(we.createTextNode(T),ge.nextSibling)}Ye(ge),E||ge.parentNode.removeChild(ge)}}}function Ye(ge){for(;!ge.nextSibling;)if(ge=ge.parentNode,!ge)return;function Je(Ie,E){var T=E?Ie.cloneNode(!1):Ie,M=Ie.parentNode;if(M){var f=Je(M,1),m=Ie.nextSibling;f.appendChild(T);for(var b=m;b;b=m)m=b.nextSibling,f.appendChild(b)}return T}for(var Ke=Je(ge.nextSibling,0),xe;(xe=Ke.parentNode)&&xe.nodeType===1;)Ke=xe;et.push(Ke)}for(var $e=0;$e<et.length;++$e)qe(et[$e]);ue===(ue|0)&&et[0].setAttribute("value",ue);var We=we.createElement("ol");We.className="linenums";for(var Ne=Math.max(0,ue-1|0)||0,$e=0,Ue=et.length;$e<Ue;++$e)Ce=et[$e],Ce.className="L"+($e+Ne)%10,Ce.firstChild||Ce.appendChild(we.createTextNode("\xA0")),We.appendChild(Ce);X.appendChild(We)}function se(X){var ue=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ue=ue&&+ue[1]<=8;var _e=/\n/g,Re=X.sourceCode,De=Re.length,we=0,Ce=X.spans,et=Ce.length,qe=0,Ye=X.decorations,$e=Ye.length,We=0;Ye[$e]=De;var Ne,Ue;for(Ue=Ne=0;Ue<$e;)Ye[Ue]!==Ye[Ue+2]?(Ye[Ne++]=Ye[Ue++],Ye[Ne++]=Ye[Ue++]):Ue+=2;for($e=Ne,Ue=Ne=0;Ue<$e;){for(var ge=Ye[Ue],Je=Ye[Ue+1],Ke=Ue+2;Ke+2<=$e&&Ye[Ke+1]===Je;)Ke+=2;Ye[Ne++]=ge,Ye[Ne++]=Je,Ue=Ke}$e=Ye.length=Ne;var xe=X.sourceNode,Ie="";xe&&(Ie=xe.style.display,xe.style.display="none");try{for(var E=null;qe<et;){var T=Ce[qe],M=Ce[qe+2]||De,f=Ye[We+2]||De,Ke=Math.min(M,f),m=Ce[qe+1],b;if(m.nodeType!==1&&(b=Re.substring(we,Ke))){ue&&(b=b.replace(_e,"\r")),m.nodeValue=b;var x=m.ownerDocument,V=x.createElement("span");V.className=Ye[We+1];var he=m.parentNode;he.replaceChild(V,m),V.appendChild(m),we<M&&(Ce[qe+1]=m=x.createTextNode(Re.substring(Ke,M)),he.insertBefore(m,V.nextSibling))}we=Ke,we>=M&&(qe+=2),we>=f&&(We+=2)}}finally{xe&&(xe.style.display=Ie)}}var fe={};function F(X,ue){for(var _e=ue.length;--_e>=0;){var Re=ue[_e];fe.hasOwnProperty(Re)?S.console&&console.warn("cannot override language handler %s",Re):fe[Re]=X}}function Z(X,ue){return X&&fe.hasOwnProperty(X)||(X=/^\s*</.test(ue)?"default-markup":"default-code"),fe[X]}F(q,["default-code"]),F(le([],[[v,/^[^<?]+/],[$,/^<!\w[^>]*(?:>|$)/],[de,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[pe,/^(?:<[%?]|[%?]>)/],["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"]),F(le([[v,/^[\s]+/,null,` \r
`],[I,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[ee,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[ie,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[pe,/^[=<>\/]+/],["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"]),F(le([],[[I,/^[\s\S]+/]]),["uq.val"]),F(Ee({keywords:B,hashComments:!0,cStyleComments:!0,types:oe}),["c","cc","cpp","cxx","cyc","m"]),F(Ee({keywords:"null,true,false"}),["json"]),F(Ee({keywords:re,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:oe}),["cs"]),F(Ee({keywords:ye,cStyleComments:!0}),["java"]),F(Ee({keywords:ke,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),F(Ee({keywords:ae,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),F(Ee({keywords:j,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),F(Ee({keywords:K,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),F(Ee({keywords:N,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),F(Ee({keywords:H,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),F(le([],[[Te,/^[\s\S]+/]]),["regex"]);function h(X){var ue=X.langExtension;try{var _e=l(X.sourceNode,X.pre),Re=_e.sourceCode;X.sourceCode=Re,X.spans=_e.spans,X.basePos=0,Z(ue,Re)(X),se(X)}catch(De){S.console&&console.log(De&&De.stack||De)}}function k(X,ue,_e){var Re=_e||!1,De=ue||null,we=document.createElement("div");we.innerHTML="<pre>"+X+"</pre>",we=we.firstChild,Re&&Ae(we,Re,!0);var Ce={langExtension:De,numberLines:Re,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return h(Ce),we.innerHTML}function y(X,ue){var _e=ue||document.body,Re=_e.ownerDocument||document;function De(T){return _e.getElementsByTagName(T)}for(var we=[De("pre"),De("code"),De("xmp")],Ce=[],et=0;et<we.length;++et)for(var qe=0,Ye=we[et].length;qe<Ye;++qe)Ce.push(we[et][qe]);we=null;var $e=Date;$e.now||($e={now:function(){return+new Date}});var We=0,Ne=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ue=/\bprettyprint\b/,ge=/\bprettyprinted\b/,Je=/pre|xmp/i,Ke=/^code$/i,xe=/^(?:pre|code|xmp)$/i,Ie={};function E(){for(var T=S.PR_SHOULD_USE_CONTINUATION?$e.now()+250:Infinity;We<Ce.length&&$e.now()<T;We++){for(var M=Ce[We],f=Ie,m=M;m=m.previousSibling;){var b=m.nodeType,x=(b===7||b===8)&&m.nodeValue;if(x?!/^\??prettify\b/.test(x):b!==3||/\S/.test(m.nodeValue))break;if(x){f={},x.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ot,ft,Kt){f[ft]=Kt});break}}var V=M.className;if((f!==Ie||Ue.test(V))&&!ge.test(V)){for(var he=!1,Le=M.parentNode;Le;Le=Le.parentNode){var at=Le.tagName;if(xe.test(at)&&Le.className&&Ue.test(Le.className)){he=!0;break}}if(!he){M.className+=" prettyprinted";var dt=f.lang;if(!dt){dt=V.match(Ne);var Ve;!dt&&(Ve=U(M))&&Ke.test(Ve.tagName)&&(dt=Ve.className.match(Ne)),dt&&(dt=dt[1])}var vt;if(Je.test(M.tagName))vt=1;else{var lt=M.currentStyle,rt=Re.defaultView,Ct=lt?lt.whiteSpace:rt&&rt.getComputedStyle?rt.getComputedStyle(M,null).getPropertyValue("white-space"):0;vt=Ct&&Ct.substring(0,3)==="pre"}var gt=f.linenums;(gt=gt==="true"||+gt)||(gt=V.match(/\blinenums\b(?::(\d+))?/),gt=gt?gt[1]&&gt[1].length?+gt[1]:!0:!1),gt&&Ae(M,gt,vt);var _t={langExtension:dt,sourceNode:M,numberLines:gt,pre:vt,sourceCode:null,basePos:null,spans:null,decorations:null};h(_t)}}}We<Ce.length?S.setTimeout(E,250):typeof X=="function"&&X()}E()}var ne=S.PR={createSimpleLexer:le,registerLangHandler:F,sourceDecorator:Ee,PR_ATTRIB_NAME:ie,PR_ATTRIB_VALUE:I,PR_COMMENT:de,PR_DECLARATION:$,PR_KEYWORD:Pe,PR_LITERAL:Oe,PR_NOCODE:D,PR_PLAIN:v,PR_PUNCTUATION:pe,PR_SOURCE:w,PR_STRING:Te,PR_TAG:ee,PR_TYPE:me,prettyPrintOne:te?S.prettyPrintOne=k:J=k,prettyPrint:R=te?S.prettyPrint=y:R=y},ce=S.define;typeof ce=="function"&&ce.amd&&ce("google-code-prettify",[],function(){return ne})})()},"VrN/":function(nt,ze,g){(function(W,be){nt.exports=be()})(this,function(){"use strict";var W=navigator.userAgent,be=navigator.platform,te=/gecko\/\d/i.test(W),ve=/MSIE \d/.test(W),P=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(W),J=/Edge\/(\d+)/.exec(W),R=ve||P||J,S=R&&(ve?document.documentMode||6:+(J||P)[1]),O=!J&&/WebKit\//.test(W),z=O&&/Qt\/\d+\.\d+/.test(W),G=!J&&/Chrome\//.test(W),B=/Opera\//.test(W),ye=/Apple Computer/.test(navigator.vendor),re=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(W),H=/PhantomJS/.test(W),N=!J&&/AppleWebKit/.test(W)&&/Mobile\/\w+/.test(W),j=/Android/.test(W),ae=N||j||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(W),K=N||/Mac/.test(be),ke=/\bCrOS\b/.test(W),Be=/win/i.test(be),oe=B&&W.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(B=!1,O=!0);var Te=K&&(z||B&&(oe==null||oe<12.11)),Pe=te||R&&S>=9;function de(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var me=function(e,t){var r=e.className,n=de(t).exec(r);if(n){var a=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(a?n[1]+a:"")}};function Oe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function pe(e,t){return Oe(e).appendChild(t)}function v(e,t,r,n){var a=document.createElement(e);if(r&&(a.className=r),n&&(a.style.cssText=n),typeof t=="string")a.appendChild(document.createTextNode(t));else if(t)for(var i=0;i<t.length;++i)a.appendChild(t[i]);return a}function ee(e,t,r,n){var a=v(e,t,r,n);return a.setAttribute("role","presentation"),a}var $;document.createRange?$=function(e,t,r,n){var a=document.createRange();return a.setEnd(n||e,r),a.setStart(e,t),a}:$=function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(a){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};function w(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 ie(){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 I(e,t){var r=e.className;de(t).test(r)||(e.className+=(r?" ":"")+t)}function D(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!de(r[n]).test(t)&&(t+=" "+r[n]);return t}var A=function(e){e.select()};N?A=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:R&&(A=function(e){try{e.select()}catch(t){}});function c(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function l(e,t,r){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(r!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function p(e,t,r,n,a){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var i=n||0,o=a||0;;){var s=e.indexOf(" ",i);if(s<0||s>=t)return o+(t-i);o+=s-i,o+=r-o%r,i=s+1}}var _=function(){this.id=null,this.f=null,this.time=0,this.handler=c(this.onTimeout,this)};_.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},_.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};function U(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}var le=50,Ee={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},Ae={origin:"*mouse"},se={origin:"+move"};function fe(e,t,r){for(var n=0,a=0;;){var i=e.indexOf(" ",n);i==-1&&(i=e.length);var o=i-n;if(i==e.length||a+o>=t)return n+Math.min(o,t-a);if(a+=i-n,a+=r-a%r,n=i+1,a>=t)return n}}var F=[""];function Z(e){for(;F.length<=e;)F.push(h(F)+" ");return F[e]}function h(e){return e[e.length-1]}function k(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function y(e,t,r){for(var n=0,a=r(t);n<e.length&&r(e[n])<=a;)n++;e.splice(n,0,t)}function ne(){}function ce(e,t){var r;return Object.create?r=Object.create(e):(ne.prototype=e,r=new ne),t&&l(t,r),r}var X=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ue(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function _e(e,t){return t?t.source.indexOf("\\w")>-1&&ue(e)?!0:t.test(e):ue(e)}function Re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var De=/[\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 we(e){return e.charCodeAt(0)>=768&&De.test(e)}function Ce(e,t,r){for(;(r<0?t>0:t<e.length)&&we(e.charAt(t));)t+=r;return t}function et(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var a=(t+r)/2,i=n<0?Math.ceil(a):Math.floor(a);if(i==t)return e(i)?t:r;e(i)?r=i:t=i+n}}function qe(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var a=!1,i=0;i<e.length;++i){var o=e[i];(o.from<r&&o.to>t||t==r&&o.to==t)&&(n(Math.max(o.from,t),Math.min(o.to,r),o.level==1?"rtl":"ltr",i),a=!0)}a||n(t,r,"ltr")}var Ye=null;function $e(e,t,r){var n;Ye=null;for(var a=0;a<e.length;++a){var i=e[a];if(i.from<t&&i.to>t)return a;i.to==t&&(i.from!=i.to&&r=="before"?n=a:Ye=a),i.from==t&&(i.from!=i.to&&r!="before"?n=a:Ye=a)}return n!=null?n:Ye}var We=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(d){return d<=247?e.charAt(d):1424<=d&&d<=1524?"R":1536<=d&&d<=1785?t.charAt(d-1536):1774<=d&&d<=2220?"r":8192<=d&&d<=8203?"w":d==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function u(d,C,L){this.level=d,this.from=C,this.to=L}return function(d,C){var L=C=="ltr"?"L":"R";if(d.length==0||C=="ltr"&&!n.test(d))return!1;for(var Q=d.length,Y=[],Se=0;Se<Q;++Se)Y.push(r(d.charCodeAt(Se)));for(var Me=0,Fe=L;Me<Q;++Me){var Xe=Y[Me];Xe=="m"?Y[Me]=Fe:Fe=Xe}for(var Ze=0,Ge=L;Ze<Q;++Ze){var tt=Y[Ze];tt=="1"&&Ge=="r"?Y[Ze]="n":i.test(tt)&&(Ge=tt,tt=="r"&&(Y[Ze]="R"))}for(var st=1,ot=Y[0];st<Q-1;++st){var mt=Y[st];mt=="+"&&ot=="1"&&Y[st+1]=="1"?Y[st]="1":mt==","&&ot==Y[st+1]&&(ot=="1"||ot=="n")&&(Y[st]=ot),ot=mt}for(var At=0;At<Q;++At){var Yt=Y[At];if(Yt==",")Y[At]="N";else if(Yt=="%"){var Nt=void 0;for(Nt=At+1;Nt<Q&&Y[Nt]=="%";++Nt);for(var hn=At&&Y[At-1]=="!"||Nt<Q&&Y[Nt]=="1"?"1":"N",ln=At;ln<Nt;++ln)Y[ln]=hn;At=Nt-1}}for(var Ht=0,un=L;Ht<Q;++Ht){var qt=Y[Ht];un=="L"&&qt=="1"?Y[Ht]="L":i.test(qt)&&(un=qt)}for(var Xt=0;Xt<Q;++Xt)if(a.test(Y[Xt])){var zt=void 0;for(zt=Xt+1;zt<Q&&a.test(Y[zt]);++zt);for(var jt=(Xt?Y[Xt-1]:L)=="L",cn=(zt<Q?Y[zt]:L)=="L",jr=jt==cn?jt?"L":"R":L,Yn=Xt;Yn<zt;++Yn)Y[Yn]=jr;Xt=zt-1}for(var nn=[],An,Jt=0;Jt<Q;)if(o.test(Y[Jt])){var Ni=Jt;for(++Jt;Jt<Q&&o.test(Y[Jt]);++Jt);nn.push(new u(0,Ni,Jt))}else{var Nn=Jt,dr=nn.length,fr=C=="rtl"?1:0;for(++Jt;Jt<Q&&Y[Jt]!="L";++Jt);for(var an=Nn;an<Jt;)if(s.test(Y[an])){Nn<an&&(nn.splice(dr,0,new u(1,Nn,an)),dr+=fr);var Ur=an;for(++an;an<Jt&&s.test(Y[an]);++an);nn.splice(dr,0,new u(2,Ur,an)),dr+=fr,Nn=an}else++an;Nn<Jt&&nn.splice(dr,0,new u(1,Nn,Jt))}return C=="ltr"&&(nn[0].level==1&&(An=d.match(/^\s+/))&&(nn[0].from=An[0].length,nn.unshift(new u(0,0,An[0].length))),h(nn).level==1&&(An=d.match(/\s+$/))&&(h(nn).to-=An[0].length,nn.push(new u(0,Q-An[0].length,Q)))),C=="rtl"?nn.reverse():nn}}();function Ne(e,t){var r=e.order;return r==null&&(r=e.order=We(e.text,t)),r}var Ue=[],ge=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||Ue).concat(r)}};function Je(e,t){return e._handlers&&e._handlers[t]||Ue}function Ke(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,a=n&&n[t];if(a){var i=U(a,r);i>-1&&(n[t]=a.slice(0,i).concat(a.slice(i+1)))}}}function xe(e,t){var r=Je(e,t);if(!r.length)return;for(var n=Array.prototype.slice.call(arguments,2),a=0;a<r.length;++a)r[a].apply(null,n)}function Ie(e,t,r){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),xe(e,r||t.type,e,t),b(t)||t.codemirrorIgnore}function E(e){var t=e._handlers&&e._handlers.cursorActivity;if(!t)return;for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)U(r,t[n])==-1&&r.push(t[n])}function T(e,t){return Je(e,t).length>0}function M(e){e.prototype.on=function(t,r){ge(this,t,r)},e.prototype.off=function(t,r){Ke(this,t,r)}}function f(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function m(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function b(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function x(e){f(e),m(e)}function V(e){return e.target||e.srcElement}function he(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),K&&e.ctrlKey&&t==1&&(t=3),t}var Le=function(){if(R&&S<9)return!1;var e=v("div");return"draggable"in e||"dragDrop"in e}(),at;function dt(e){if(at==null){var t=v("span","\u200B");pe(e,v("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(at=t.offsetWidth<=1&&t.offsetHeight>2&&!(R&&S<8))}var r=at?v("span","\u200B"):v("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var Ve;function vt(e){if(Ve!=null)return Ve;var t=pe(e,document.createTextNode("A\u062EA")),r=$(t,0,1).getBoundingClientRect(),n=$(t,1,2).getBoundingClientRect();return Oe(e),!r||r.left==r.right?!1:Ve=n.right-r.right<3}var lt=`
b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var a=e.indexOf(`
`,t);a==-1&&(a=e.length);var i=e.slice(t,e.charAt(a-1)=="\r"?a-1:a),o=i.indexOf("\r");o!=-1?(r.push(i.slice(0,o)),t+=o+1):(r.push(i),t=a+1)}return r}:function(e){return e.split(/\r\n?|\n/)},rt=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(r){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Ct=function(){var e=v("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),gt=null;function _t(e){if(gt!=null)return gt;var t=pe(e,v("span","x")),r=t.getBoundingClientRect(),n=$(t,0,1).getBoundingClientRect();return gt=Math.abs(r.left-n.left)>1}var Ot={},ft={};function Kt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ot[e]=t}function vn(e,t){ft[e]=t}function Bt(e){if(typeof e=="string"&&ft.hasOwnProperty(e))e=ft[e];else if(e&&typeof e.name=="string"&&ft.hasOwnProperty(e.name)){var t=ft[e.name];typeof t=="string"&&(t={name:t}),e=ce(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Bt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Bt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function bt(e,t){t=Bt(t);var r=Ot[t.name];if(!r)return bt(e,"text/plain");var n=r(e,t);if(yt.hasOwnProperty(t.name)){var a=yt[t.name];for(var i in a){if(!a.hasOwnProperty(i))continue;n.hasOwnProperty(i)&&(n["_"+i]=n[i]),n[i]=a[i]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)n[o]=t.modeProps[o];return n}var yt={};function Gt(e,t){var r=yt.hasOwnProperty(e)?yt[e]:yt[e]={};l(t,r)}function Pt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var a=t[n];a instanceof Array&&(a=a.concat([])),r[n]=a}return r}function Ut(e,t){for(var r;e.innerMode&&!(r=e.innerMode(t),!r||r.mode==e);)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Wt(e,t,r){return e.startState?e.startState(t,r):!0}var St=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};St.prototype.eol=function(){return this.pos>=this.string.length},St.prototype.sol=function(){return this.pos==this.lineStart},St.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},St.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},St.prototype.eat=function(e){var t=this.string.charAt(this.pos),r;if(typeof e=="string"?r=t==e:r=t&&(e.test?e.test(t):e(t)),r)return++this.pos,t},St.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},St.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},St.prototype.skipToEnd=function(){this.pos=this.string.length},St.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},St.prototype.backUp=function(e){this.pos-=e},St.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=p(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?p(this.string,this.lineStart,this.tabSize):0)},St.prototype.indentation=function(){return p(this.string,null,this.tabSize)-(this.lineStart?p(this.string,this.lineStart,this.tabSize):0)},St.prototype.match=function(e,t,r){if(typeof e=="string"){var n=function(o){return r?o.toLowerCase():o},a=this.string.substr(this.pos,e.length);if(n(a)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},St.prototype.current=function(){return this.string.slice(this.start,this.pos)},St.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},St.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},St.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Qe(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 r=e;!r.lines;)for(var n=0;;++n){var a=r.children[n],i=a.chunkSize();if(t<i){r=a;break}t-=i}return r.lines[t]}function On(e,t,r){var n=[],a=t.line;return e.iter(t.line,r.line+1,function(i){var o=i.text;a==r.line&&(o=o.slice(0,r.ch)),a==t.line&&(o=o.slice(t.ch)),n.push(o),++a}),n}function hr(e,t,r){var n=[];return e.iter(t,r,function(a){n.push(a.text)}),n}function bn(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function xt(e){if(e.parent==null)return null;for(var t=e.parent,r=U(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var a=0;!(n.children[a]==t);++a)r+=n.children[a].chunkSize();return r+t.first}function Ln(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var a=e.children[n],i=a.height;if(t<i){e=a;continue e}t-=i,r+=a.chunkSize()}return r}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o],u=s.height;if(t<u)break;t-=u}return r+o}function jn(e,t){return t>=e.first&&t<e.first+e.size}function Jn(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function je(e,t,r){if(r===void 0&&(r=null),!(this instanceof je))return new je(e,t,r);this.line=e,this.ch=t,this.sticky=r}function ct(e,t){return e.line-t.line||e.ch-t.ch}function He(e,t){return e.sticky==t.sticky&&ct(e,t)==0}function Ir(e){return je(e.line,e.ch)}function pr(e,t){return ct(e,t)<0?t:e}function Zn(e,t){return ct(e,t)<0?e:t}function qn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ut(e,t){if(t.line<e.first)return je(e.first,0);var r=e.first+e.size-1;return t.line>r?je(r,Qe(e,r).text.length):Za(t,Qe(e,t.line).text.length)}function Za(e,t){var r=e.ch;return r==null||r>t?je(e.line,t):r<0?je(e.line,0):e}function Fr(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=ut(e,t[n]);return r}var yn=function(e,t){this.state=e,this.lookAhead=t},pn=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};pn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},pn.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}},pn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pn.fromSaved=function(e,t,r){return t instanceof yn?new pn(e,Pt(e.mode,t.state),r,t.lookAhead):new pn(e,Pt(e.mode,t),r)},pn.prototype.save=function(e){var t=e!==!1?Pt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yn(t,this.maxLookAhead):t};function ya(e,t,r,n){var a=[e.state.modeGen],i={};Wr(e,t.text,e.doc.mode,r,function(d,C){return a.push(d,C)},i,n);for(var o=r.state,s=function(d){r.baseTokens=a;var C=e.state.overlays[d],L=1,Q=0;r.state=!0,Wr(e,t.text,C.mode,r,function(Y,Se){for(var Me=L;Q<Y;){var Fe=a[L];Fe>Y&&a.splice(L,1,Y,a[L+1],Fe),L+=2,Q=Math.min(Y,Fe)}if(!Se)return;if(C.opaque)a.splice(Me,L-Me,Y,"overlay "+Se),L=Me+2;else for(;Me<L;Me+=2){var Xe=a[Me+1];a[Me+1]=(Xe?Xe+" ":"")+"overlay "+Se}},i),r.state=o,r.baseTokens=null,r.baseTokenPos=1},u=0;u<e.state.overlays.length;++u)s(u);return{styles:a,classes:i.bgClass||i.textClass?i:null}}function Br(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=dn(e,xt(t)),a=t.text.length>e.options.maxHighlightLength&&Pt(e.doc.mode,n.state),i=ya(e,t,n);a&&(n.state=a),t.stateAfter=n.save(!a),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dn(e,t,r){var n=e.doc,a=e.display;if(!n.mode.startState)return new pn(n,!0,t);var i=Qn(e,t,r),o=i>n.first&&Qe(n,i-1).stateAfter,s=o?pn.fromSaved(n,o,i):new pn(n,Wt(n.mode),i);return n.iter(i,t,function(u){mr(e,u.text,s);var d=s.line;u.stateAfter=d==t-1||d%5==0||d>=a.viewFrom&&d<a.viewTo?s.save():null,s.nextLine()}),r&&(n.modeFrontier=s.line),s}function mr(e,t,r,n){var a=e.doc.mode,i=new St(t,e.options.tabSize,r);for(i.start=i.pos=n||0,t==""&&xa(a,r.state);!i.eol();)gr(a,i,r.state),i.start=i.pos}function xa(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var r=Ut(e,t);if(r.mode.blankLine)return r.mode.blankLine(r.state)}function gr(e,t,r,n){for(var a=0;a<10;a++){n&&(n[0]=Ut(e,r).mode);var i=e.token(t,r);if(t.pos>t.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}var Rn=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Mn(e,t,r,n){var a=e.doc,i=a.mode,o;t=ut(a,t);var s=Qe(a,t.line),u=dn(e,t.line,r),d=new St(s.text,e.options.tabSize,u),C;for(n&&(C=[]);(n||d.pos<t.ch)&&!d.eol();)d.start=d.pos,o=gr(i,d,u.state),n&&C.push(new Rn(d,o,Pt(a.mode,u.state)));return n?C:new Rn(d,o,u.state)}function Ea(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";t[n]==null?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function Wr(e,t,r,n,a,i,o){var s=r.flattenSpans;s==null&&(s=e.options.flattenSpans);var u=0,d=null,C=new St(t,e.options.tabSize,n),L,Q=e.options.addModeClass&&[null];for(t==""&&Ea(xa(r,n.state),i);!C.eol();){if(C.pos>e.options.maxHighlightLength?(s=!1,o&&mr(e,t,n,C.pos),C.pos=t.length,L=null):L=Ea(gr(r,C,n.state,Q),i),Q){var Y=Q[0].name;Y&&(L="m-"+(L?Y+" "+L:Y))}if(!s||d!=L){for(;u<C.start;)u=Math.min(C.start,u+5e3),a(u,d);d=L}C.start=C.pos}for(;u<C.pos;){var Se=Math.min(C.pos,u+5e3);a(Se,d),u=Se}}function Qn(e,t,r){for(var n,a,i=e.doc,o=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=i.first)return i.first;var u=Qe(i,s-1),d=u.stateAfter;if(d&&(!r||s+(d instanceof yn?d.lookAhead:0)<=i.modeFrontier))return s;var C=p(u.text,null,e.options.tabSize);(a==null||n>C)&&(a=s-1,n=C)}return a}function Hr(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontier<t-10)return;for(var r=e.first,n=t-1;n>r;n--){var a=Qe(e,n).stateAfter;if(a&&(!(a instanceof yn)||n+a.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}var _a=!1,xn=!1;function wa(){_a=!0}function Ca(){xn=!0}function vr(e,t,r){this.marker=e,this.from=t,this.to=r}function Un(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Ui(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function zr(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function er(e,t,r){var n;if(e)for(var a=0;a<e.length;++a){var i=e[a],o=i.marker,s=i.from==null||(o.inclusiveLeft?i.from<=t:i.from<t);if(s||i.from==t&&o.type=="bookmark"&&(!r||!i.marker.insertLeft)){var u=i.to==null||(o.inclusiveRight?i.to>=t:i.to>t);(n||(n=[])).push(new vr(o,i.from,u?null:i.to))}}return n}function Kr(e,t,r){var n;if(e)for(var a=0;a<e.length;++a){var i=e[a],o=i.marker,s=i.to==null||(o.inclusiveRight?i.to>=t:i.to>t);if(s||i.from==t&&o.type=="bookmark"&&(!r||i.marker.insertLeft)){var u=i.from==null||(o.inclusiveLeft?i.from<=t:i.from<t);(n||(n=[])).push(new vr(o,u?null:i.from-t,i.to==null?null:i.to-t))}}return n}function In(e,t){if(t.full)return null;var r=jn(e,t.from.line)&&Qe(e,t.from.line).markedSpans,n=jn(e,t.to.line)&&Qe(e,t.to.line).markedSpans;if(!r&&!n)return null;var a=t.from.ch,i=t.to.ch,o=ct(t.from,t.to)==0,s=er(r,a,o),u=Kr(n,i,o),d=t.text.length==1,C=h(t.text).length+(d?a:0);if(s)for(var L=0;L<s.length;++L){var Q=s[L];if(Q.to==null){var Y=Un(u,Q.marker);Y?d&&(Q.to=Y.to==null?null:Y.to+C):Q.to=a}}if(u)for(var Se=0;Se<u.length;++Se){var Me=u[Se];if(Me.to!=null&&(Me.to+=C),Me.from==null){var Fe=Un(s,Me.marker);Fe||(Me.from=C,d&&(s||(s=[])).push(Me))}else Me.from+=C,d&&(s||(s=[])).push(Me)}s&&(s=tr(s)),u&&u!=s&&(u=tr(u));var Xe=[s];if(!d){var Ze=t.text.length-2,Ge;if(Ze>0&&s)for(var tt=0;tt<s.length;++tt)s[tt].to==null&&(Ge||(Ge=[])).push(new vr(s[tt].marker,null,null));for(var st=0;st<Ze;++st)Xe.push(Ge);Xe.push(u)}return Xe}function tr(e){for(var t=0;t<e.length;++t){var r=e[t];r.from!=null&&r.from==r.to&&r.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Sa(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(Y){if(Y.markedSpans)for(var Se=0;Se<Y.markedSpans.length;++Se){var Me=Y.markedSpans[Se].marker;Me.readOnly&&(!n||U(n,Me)==-1)&&(n||(n=[])).push(Me)}}),!n)return null;for(var a=[{from:t,to:r}],i=0;i<n.length;++i)for(var o=n[i],s=o.find(0),u=0;u<a.length;++u){var d=a[u];if(ct(d.to,s.from)<0||ct(d.from,s.to)>0)continue;var C=[u,1],L=ct(d.from,s.from),Q=ct(d.to,s.to);(L<0||!o.inclusiveLeft&&!L)&&C.push({from:d.from,to:s.from}),(Q>0||!o.inclusiveRight&&!Q)&&C.push({from:s.to,to:d.to}),a.splice.apply(a,C),u+=C.length-3}return a}function Xr(e){var t=e.markedSpans;if(!t)return;for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}function nr(e,t){if(!t)return;for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}function br(e){return e.inclusiveLeft?-1:0}function Sn(e){return e.inclusiveRight?1:0}function Gr(e,t){var r=e.lines.length-t.lines.length;if(r!=0)return r;var n=e.find(),a=t.find(),i=ct(n.from,a.from)||br(e)-br(t);if(i)return-i;var o=ct(n.to,a.to)||Sn(e)-Sn(t);return o||t.id-e.id}function ka(e,t){var r=xn&&e.markedSpans,n;if(r)for(var a=void 0,i=0;i<r.length;++i)a=r[i],a.marker.collapsed&&(t?a.from:a.to)==null&&(!n||Gr(n,a.marker)<0)&&(n=a.marker);return n}function Ta(e){return ka(e,!0)}function $r(e){return ka(e,!1)}function Ii(e,t){var r=xn&&e.markedSpans,n;if(r)for(var a=0;a<r.length;++a){var i=r[a];i.marker.collapsed&&(i.from==null||i.from<t)&&(i.to==null||i.to>t)&&(!n||Gr(n,i.marker)<0)&&(n=i.marker)}return n}function qa(e,t,r,n,a){var i=Qe(e,t),o=xn&&i.markedSpans;if(o)for(var s=0;s<o.length;++s){var u=o[s];if(!u.marker.collapsed)continue;var d=u.marker.find(0),C=ct(d.from,r)||br(u.marker)-br(a),L=ct(d.to,n)||Sn(u.marker)-Sn(a);if(C>=0&&L<=0||C<=0&&L>=0)continue;if(C<=0&&(u.marker.inclusiveRight&&a.inclusiveLeft?ct(d.to,r)>=0:ct(d.to,r)>0)||C>=0&&(u.marker.inclusiveRight&&a.inclusiveLeft?ct(d.from,n)<=0:ct(d.from,n)<0))return!0}}function it(e){for(var t;t=Ta(e);)e=t.find(-1,!0).line;return e}function ht(e){for(var t;t=$r(e);)e=t.find(1,!0).line;return e}function pt(e){for(var t,r;t=$r(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function kt(e,t){var r=Qe(e,t),n=it(r);return r==n?t:xt(n)}function Tt(e,t){if(t>e.lastLine())return t;var r=Qe(e,t),n;if(!Lt(e,r))return t;for(;n=$r(r);)r=n.find(1,!0).line;return xt(r)+1}function Lt(e,t){var r=xn&&t.markedSpans;if(r)for(var n=void 0,a=0;a<r.length;++a){if(n=r[a],!n.marker.collapsed)continue;if(n.from==null)return!0;if(n.marker.widgetNode)continue;if(n.from==0&&n.marker.inclusiveLeft&&It(e,t,n))return!0}}function It(e,t,r){if(r.to==null){var n=r.marker.find(1,!0);return It(e,n.line,Un(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var a=void 0,i=0;i<t.markedSpans.length;++i)if(a=t.markedSpans[i],a.marker.collapsed&&!a.marker.widgetNode&&a.from==r.to&&(a.to==null||a.to!=r.from)&&(a.marker.inclusiveLeft||r.marker.inclusiveRight)&&It(e,t,a))return!0}function Mt(e){e=it(e);for(var t=0,r=e.parent,n=0;n<r.lines.length;++n){var a=r.lines[n];if(a==e)break;t+=a.height}for(var i=r.parent;i;r=i,i=r.parent)for(var o=0;o<i.children.length;++o){var s=i.children[o];if(s==r)break;t+=s.height}return t}function Qt(e){if(e.height==0)return 0;for(var t=e.text.length,r,n=e;r=Ta(n);){var a=r.find(0,!0);n=a.from.line,t+=a.from.ch-a.to.ch}for(n=e;r=$r(n);){var i=r.find(0,!0);t-=n.text.length-i.from.ch,n=i.to.line,t+=n.text.length-i.to.ch}return t}function En(e){var t=e.display,r=e.doc;t.maxLine=Qe(r,r.first),t.maxLineLength=Qt(t.maxLine),t.maxLineChanged=!0,r.iter(function(n){var a=Qt(n);a>t.maxLineLength&&(t.maxLineLength=a,t.maxLine=n)})}var Rt=function(e,t,r){this.text=e,nr(this,t),this.height=r?r(this):1};Rt.prototype.lineNo=function(){return xt(this)},M(Rt);function Fn(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Xr(e),nr(e,r);var a=n?n(e):1;a!=e.height&&bn(e,a)}function en(e){e.parent=null,Xr(e)}var Bn={},Wn={};function yr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Wn:Bn;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Fi(e,t){var r=ee("span",null,null,O?"padding-right: .1px":null),n={pre:ee("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var a=0;a<=(t.rest?t.rest.length:0);a++){var i=a?t.rest[a-1]:t.line,o=void 0;n.pos=0,n.addToken=Ss,vt(e.display.measure)&&(o=Ne(i,e.doc.direction))&&(n.addToken=Ts(n.addToken,o)),n.map=[];var s=t!=e.display.externalMeasured&&xt(i);As(i,n,Br(e,i,s)),i.styleClasses&&(i.styleClasses.bgClass&&(n.bgClass=D(i.styleClasses.bgClass,n.bgClass||"")),i.styleClasses.textClass&&(n.textClass=D(i.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(dt(e.display.measure))),a==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(O){var u=n.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return xe(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=D(n.pre.className,n.textClass||"")),n}function Cs(e){var t=v("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ss(e,t,r,n,a,i,o){if(!t)return;var s=e.splitSpaces?ks(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1,C;if(!u.test(t))e.col+=t.length,C=document.createTextNode(s),e.map.push(e.pos,e.pos+t.length,C),R&&S<9&&(d=!0),e.pos+=t.length;else{C=document.createDocumentFragment();for(var L=0;;){u.lastIndex=L;var Q=u.exec(t),Y=Q?Q.index-L:t.length-L;if(Y){var Se=document.createTextNode(s.slice(L,L+Y));R&&S<9?C.appendChild(v("span",[Se])):C.appendChild(Se),e.map.push(e.pos,e.pos+Y,Se),e.col+=Y,e.pos+=Y}if(!Q)break;L+=Y+1;var Me=void 0;if(Q[0]==" "){var Fe=e.cm.options.tabSize,Xe=Fe-e.col%Fe;Me=C.appendChild(v("span",Z(Xe),"cm-tab")),Me.setAttribute("role","presentation"),Me.setAttribute("cm-text"," "),e.col+=Xe}else Q[0]=="\r"||Q[0]==`
`?(Me=C.appendChild(v("span",Q[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Me.setAttribute("cm-text",Q[0]),e.col+=1):(Me=e.cm.options.specialCharPlaceholder(Q[0]),Me.setAttribute("cm-text",Q[0]),R&&S<9?C.appendChild(v("span",[Me])):C.appendChild(Me),e.col+=1);e.map.push(e.pos,e.pos+1,Me),e.pos++}}if(e.trailingSpace=s.charCodeAt(t.length-1)==32,r||n||a||d||i||o){var Ze=r||"";n&&(Ze+=n),a&&(Ze+=a);var Ge=v("span",[C],Ze,i);if(o)for(var tt in o)o.hasOwnProperty(tt)&&tt!="style"&&tt!="class"&&Ge.setAttribute(tt,o[tt]);return e.content.appendChild(Ge)}e.content.appendChild(C)}function ks(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",a=0;a<e.length;a++){var i=e.charAt(a);i==" "&&r&&(a==e.length-1||e.charCodeAt(a+1)==32)&&(i="\xA0"),n+=i,r=i==" "}return n}function Ts(e,t){return function(r,n,a,i,o,s,u){a=a?a+" cm-force-border":"cm-force-border";for(var d=r.pos,C=d+n.length;;){for(var L=void 0,Q=0;Q<t.length&&!(L=t[Q],L.to>d&&L.from<=d);Q++);if(L.to>=C)return e(r,n,a,i,o,s,u);e(r,n.slice(0,L.to-d),a,i,null,s,u),i=null,n=n.slice(L.to-d),d=L.to}}}function Bi(e,t,r,n){var a=!n&&r.widgetNode;a&&e.map.push(e.pos,e.pos+t,a),!n&&e.cm.display.input.needsContentAttribute&&(a||(a=e.content.appendChild(document.createElement("span"))),a.setAttribute("cm-marker",r.id)),a&&(e.cm.display.input.setUneditable(a),e.content.appendChild(a)),e.pos+=t,e.trailingSpace=!1}function As(e,t,r){var n=e.markedSpans,a=e.text,i=0;if(!n){for(var o=1;o<r.length;o+=2)t.addToken(t,a.slice(i,i=r[o]),yr(r[o+1],t.cm.options));return}for(var s=a.length,u=0,d=1,C="",L,Q,Y=0,Se,Me,Fe,Xe,Ze;;){if(Y==u){Se=Me=Fe=Q="",Ze=null,Xe=null,Y=Infinity;for(var Ge=[],tt=void 0,st=0;st<n.length;++st){var ot=n[st],mt=ot.marker;if(mt.type=="bookmark"&&ot.from==u&&mt.widgetNode)Ge.push(mt);else if(ot.from<=u&&(ot.to==null||ot.to>u||mt.collapsed&&ot.to==u&&ot.from==u)){if(ot.to!=null&&ot.to!=u&&Y>ot.to&&(Y=ot.to,Me=""),mt.className&&(Se+=" "+mt.className),mt.css&&(Q=(Q?Q+";":"")+mt.css),mt.startStyle&&ot.from==u&&(Fe+=" "+mt.startStyle),mt.endStyle&&ot.to==Y&&(tt||(tt=[])).push(mt.endStyle,ot.to),mt.title&&((Ze||(Ze={})).title=mt.title),mt.attributes)for(var At in mt.attributes)(Ze||(Ze={}))[At]=mt.attributes[At];mt.collapsed&&(!Xe||Gr(Xe.marker,mt)<0)&&(Xe=ot)}else ot.from>u&&Y>ot.from&&(Y=ot.from)}if(tt)for(var Yt=0;Yt<tt.length;Yt+=2)tt[Yt+1]==Y&&(Me+=" "+tt[Yt]);if(!Xe||Xe.from==u)for(var Nt=0;Nt<Ge.length;++Nt)Bi(t,0,Ge[Nt]);if(Xe&&(Xe.from||0)==u){if(Bi(t,(Xe.to==null?s+1:Xe.to)-u,Xe.marker,Xe.from==null),Xe.to==null)return;Xe.to==u&&(Xe=!1)}}if(u>=s)break;for(var hn=Math.min(s,Y);;){if(C){var ln=u+C.length;if(!Xe){var Ht=ln>hn?C.slice(0,hn-u):C;t.addToken(t,Ht,L?L+Se:Se,Fe,u+Ht.length==Y?Me:"",Q,Ze)}if(ln>=hn){C=C.slice(hn-u),u=hn;break}u=ln,Fe=""}C=a.slice(i,i=r[d++]),L=yr(r[d++],t.cm.options)}}}function Wi(e,t,r){this.line=t,this.rest=pt(t),this.size=this.rest?xt(h(this.rest))-r+1:1,this.node=this.text=null,this.hidden=Lt(e,t)}function Aa(e,t,r){for(var n=[],a,i=t;i<r;i=a){var o=new Wi(e.doc,Qe(e.doc,i),i);a=i+o.size,n.push(o)}return n}var xr=null;function Os(e){xr?xr.ops.push(e):e.ownsGroup=xr={ops:[e],delayedCallbacks:[]}}function Ls(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var a=e.ops[n];if(a.cursorActivityHandlers)for(;a.cursorActivityCalled<a.cursorActivityHandlers.length;)a.cursorActivityHandlers[a.cursorActivityCalled++].call(null,a.cm)}}while(r<t.length)}function Rs(e,t){var r=e.ownsGroup;if(!r)return;try{Ls(r)}finally{xr=null,t(r)}}var Vr=null;function Zt(e,t){var r=Je(e,t);if(!r.length)return;var n=Array.prototype.slice.call(arguments,2),a;xr?a=xr.delayedCallbacks:Vr?a=Vr:(a=Vr=[],setTimeout(Ms,0));for(var i=function(s){a.push(function(){return r[s].apply(null,n)})},o=0;o<r.length;++o)i(o)}function Ms(){var e=Vr;Vr=null;for(var t=0;t<e.length;++t)e[t]()}function Hi(e,t,r,n){for(var a=0;a<t.changes.length;a++){var i=t.changes[a];i=="text"?Ps(e,t):i=="gutter"?Ki(e,t,r,n):i=="class"?Qa(e,t):i=="widget"&&Ns(e,t,n)}t.changes=null}function Yr(e){return e.node==e.text&&(e.node=v("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),R&&S<8&&(e.node.style.zIndex=2)),e.node}function Ds(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=Yr(t);t.background=n.insertBefore(v("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function zi(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):Fi(e,t)}function Ps(e,t){var r=t.text.className,n=zi(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,Qa(e,t)):r&&(t.text.className=r)}function Qa(e,t){Ds(e,t),t.line.wrapClass?Yr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Ki(e,t,r,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 a=Yr(t);t.gutterBackground=v("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),a.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=Yr(t),s=t.gutter=v("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),o.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!i||!i["CodeMirror-linenumbers"])&&(t.lineNumber=s.appendChild(v("div",Jn(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var u=0;u<e.display.gutterSpecs.length;++u){var d=e.display.gutterSpecs[u].className,C=i.hasOwnProperty(d)&&i[d];C&&s.appendChild(v("div",[C],"CodeMirror-gutter-elt","left: "+n.gutterLeft[d]+"px; width: "+n.gutterWidth[d]+"px"))}}}function Ns(e,t,r){t.alignable&&(t.alignable=null);for(var n=de("CodeMirror-linewidget"),a=t.node.firstChild,i=void 0;a;a=i)i=a.nextSibling,n.test(a.className)&&t.node.removeChild(a);Xi(e,t,r)}function js(e,t,r,n){var a=zi(e,t);return t.text=t.node=a.pre,a.bgClass&&(t.bgClass=a.bgClass),a.textClass&&(t.textClass=a.textClass),Qa(e,t),Ki(e,t,r,n),Xi(e,t,n),t.node}function Xi(e,t,r){if(Gi(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Gi(e,t.rest[n],t,r,!1)}function Gi(e,t,r,n,a){if(!t.widgets)return;for(var i=Yr(r),o=0,s=t.widgets;o<s.length;++o){var u=s[o],d=v("div",[u.node],"CodeMirror-linewidget"+(u.className?" "+u.className:""));u.handleMouseEvents||d.setAttribute("cm-ignore-events","true"),Us(u,d,r,n),e.display.input.setUneditable(d),a&&u.above?i.insertBefore(d,r.gutter||r.text):i.appendChild(d),Zt(u,"redraw")}}function Us(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var a=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(a-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=a+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function Jr(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!w(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),pe(t.display.measure,v("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Dn(e,t){for(var r=V(t);r!=e.wrapper;r=r.parentNode)if(!r||r.nodeType==1&&r.getAttribute("cm-ignore-events")=="true"||r.parentNode==e.sizer&&r!=e.mover)return!0}function Oa(e){return e.lineSpace.offsetTop}function ei(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function $i(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=pe(e.measure,v("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function kn(e){return le-e.display.nativeBarWidth}function rr(e){return e.display.scroller.clientWidth-kn(e)-e.display.barWidth}function ti(e){return e.display.scroller.clientHeight-kn(e)-e.display.barHeight}function Is(e,t,r){var n=e.options.lineWrapping,a=n&&rr(e);if(!t.measure.heights||n&&t.measure.width!=a){var i=t.measure.heights=[];if(n){t.measure.width=a;for(var o=t.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var u=o[s],d=o[s+1];Math.abs(u.bottom-d.bottom)>2&&i.push((u.bottom+d.top)/2-r.top)}}i.push(r.bottom-r.top)}}function Vi(e,t,r){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 a=0;a<e.rest.length;a++)if(xt(e.rest[a])>r)return{map:e.measure.maps[a],cache:e.measure.caches[a],before:!0}}function Fs(e,t){t=it(t);var r=xt(t),n=e.display.externalMeasured=new Wi(e.doc,t,r);n.lineN=r;var a=n.built=Fi(e,n);return n.text=a.pre,pe(e.display.lineMeasure,a.pre),n}function Yi(e,t,r,n){return Tn(e,Er(e,t),r,n)}function ni(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[or(e,t)];var r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size)return r}function Er(e,t){var r=xt(t),n=ni(e,r);n&&!n.text?n=null:n&&n.changes&&(Hi(e,n,r,li(e)),e.curOp.forceUpdate=!0),n||(n=Fs(e,t));var a=Vi(n,t,r);return{line:t,view:n,rect:null,map:a.map,cache:a.cache,before:a.before,hasHeights:!1}}function Tn(e,t,r,n,a){t.before&&(r=-1);var i=r+(n||""),o;return t.cache.hasOwnProperty(i)?o=t.cache[i]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Is(e,t.view,t.rect),t.hasHeights=!0),o=Ws(e,t,r,n),o.bogus||(t.cache[i]=o)),{left:o.left,right:o.right,top:a?o.rtop:o.top,bottom:a?o.rbottom:o.bottom}}var Ji={left:0,right:0,top:0,bottom:0};function Zi(e,t,r){for(var n,a,i,o,s,u,d=0;d<e.length;d+=3)if(s=e[d],u=e[d+1],t<s?(a=0,i=1,o="left"):t<u?(a=t-s,i=a+1):(d==e.length-3||t==u&&e[d+3]>t)&&(i=u-s,a=i-1,t>=u&&(o="right")),a!=null){if(n=e[d+2],s==u&&r==(n.insertLeft?"left":"right")&&(o=r),r=="left"&&a==0)for(;d&&e[d-2]==e[d-3]&&e[d-1].insertLeft;)n=e[(d-=3)+2],o="left";if(r=="right"&&a==u-s)for(;d<e.length-3&&e[d+3]==e[d+4]&&!e[d+5].insertLeft;)n=e[(d+=3)+2],o="right";break}return{node:n,start:a,end:i,collapse:o,coverStart:s,coverEnd:u}}function Bs(e,t){var r=Ji;if(t=="left")for(var n=0;n<e.length&&!((r=e[n]).left!=r.right);n++);else for(var a=e.length-1;a>=0&&!((r=e[a]).left!=r.right);a--);return r}function Ws(e,t,r,n){var a=Zi(t.map,r,n),i=a.node,o=a.start,s=a.end,u=a.collapse,d;if(i.nodeType==3){for(var C=0;C<4;C++){for(;o&&we(t.line.text.charAt(a.coverStart+o));)--o;for(;a.coverStart+s<a.coverEnd&&we(t.line.text.charAt(a.coverStart+s));)++s;if(R&&S<9&&o==0&&s==a.coverEnd-a.coverStart?d=i.parentNode.getBoundingClientRect():d=Bs($(i,o,s).getClientRects(),n),d.left||d.right||o==0)break;s=o,o=o-1,u="right"}R&&S<11&&(d=Hs(e.display.measure,d))}else{o>0&&(u=n="right");var L;e.options.lineWrapping&&(L=i.getClientRects()).length>1?d=L[n=="right"?L.length-1:0]:d=i.getBoundingClientRect()}if(R&&S<9&&!o&&(!d||!d.left&&!d.right)){var Q=i.parentNode.getClientRects()[0];Q?d={left:Q.left,right:Q.left+wr(e.display),top:Q.top,bottom:Q.bottom}:d=Ji}for(var Y=d.top-t.rect.top,Se=d.bottom-t.rect.top,Me=(Y+Se)/2,Fe=t.view.measure.heights,Xe=0;Xe<Fe.length-1&&!(Me<Fe[Xe]);Xe++);var Ze=Xe?Fe[Xe-1]:0,Ge=Fe[Xe],tt={left:(u=="right"?d.right:d.left)-t.rect.left,right:(u=="left"?d.left:d.right)-t.rect.left,top:Ze,bottom:Ge};return!d.left&&!d.right&&(tt.bogus=!0),e.options.singleCursorHeightPerLine||(tt.rtop=Y,tt.rbottom=Se),tt}function Hs(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!_t(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function qi(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 Qi(e){e.display.externalMeasure=null,Oe(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)qi(e.display.view[t])}function Zr(e){Qi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function eo(){return G&&j?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function to(){return G&&j?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ri(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e.widgets[r].above&&(t+=Jr(e.widgets[r]));return t}function La(e,t,r,n,a){if(!a){var i=ri(t);r.top+=i,r.bottom+=i}if(n=="line")return r;n||(n="local");var o=Mt(t);if(n=="local"?o+=Oa(e.display):o-=e.display.viewOffset,n=="page"||n=="window"){var s=e.display.lineSpace.getBoundingClientRect();o+=s.top+(n=="window"?0:to());var u=s.left+(n=="window"?0:eo());r.left+=u,r.right+=u}return r.top+=o,r.bottom+=o,r}function no(e,t,r){if(r=="div")return t;var n=t.left,a=t.top;if(r=="page")n-=eo(),a-=to();else if(r=="local"||!r){var i=e.display.sizer.getBoundingClientRect();n+=i.left,a+=i.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:n-o.left,top:a-o.top}}function ai(e,t,r,n,a){return n||(n=Qe(e.doc,t.line)),La(e,n,Yi(e,n,t.ch,a),r)}function _n(e,t,r,n,a,i){n=n||Qe(e.doc,t.line),a||(a=Er(e,n));function o(Se,Me){var Fe=Tn(e,a,Se,Me?"right":"left",i);return Me?Fe.left=Fe.right:Fe.right=Fe.left,La(e,n,Fe,r)}var s=Ne(n,e.doc.direction),u=t.ch,d=t.sticky;if(u>=n.text.length?(u=n.text.length,d="before"):u<=0&&(u=0,d="after"),!s)return o(d=="before"?u-1:u,d=="before");function C(Se,Me,Fe){var Xe=s[Me],Ze=Xe.level==1;return o(Fe?Se-1:Se,Ze!=Fe)}var L=$e(s,u,d),Q=Ye,Y=C(u,L,d=="before");return Q!=null&&(Y.other=C(u,Q,d!="before")),Y}function ro(e,t){var r=0;t=ut(e.doc,t),e.options.lineWrapping||(r=wr(e.display)*t.ch);var n=Qe(e.doc,t.line),a=Mt(n)+Oa(e.display);return{left:r,right:r,top:a,bottom:a+n.height}}function ii(e,t,r,n,a){var i=je(e,t,r);return i.xRel=a,n&&(i.outside=n),i}function oi(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return ii(n.first,0,null,-1,-1);var a=Ln(n,r),i=n.first+n.size-1;if(a>i)return ii(n.first+n.size-1,Qe(n,i).text.length,null,1,1);t<0&&(t=0);for(var o=Qe(n,a);;){var s=zs(e,o,a,t,r),u=Ii(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var d=u.find(1);if(d.line==a)return d;o=Qe(n,a=d.line)}}function ao(e,t,r,n){n-=ri(t);var a=t.text.length,i=et(function(o){return Tn(e,r,o-1).bottom<=n},a,0);return a=et(function(o){return Tn(e,r,o).top>n},i,a),{begin:i,end:a}}function io(e,t,r,n){r||(r=Er(e,t));var a=La(e,t,Tn(e,r,n),"line").top;return ao(e,t,r,a)}function si(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function zs(e,t,r,n,a){a-=Mt(t);var i=Er(e,t),o=ri(t),s=0,u=t.text.length,d=!0,C=Ne(t,e.doc.direction);if(C){var L=(e.options.lineWrapping?Xs:Ks)(e,t,r,i,C,n,a);d=L.level!=1,s=d?L.from:L.to-1,u=d?L.to:L.from-1}var Q=null,Y=null,Se=et(function(st){var ot=Tn(e,i,st);return ot.top+=o,ot.bottom+=o,si(ot,n,a,!1)?(ot.top<=a&&ot.left<=n&&(Q=st,Y=ot),!0):!1},s,u),Me,Fe,Xe=!1;if(Y){var Ze=n-Y.left<Y.right-n,Ge=Ze==d;Se=Q+(Ge?0:1),Fe=Ge?"after":"before",Me=Ze?Y.left:Y.right}else{!d&&(Se==u||Se==s)&&Se++,Fe=Se==0?"after":Se==t.text.length?"before":Tn(e,i,Se-(d?1:0)).bottom+o<=a==d?"after":"before";var tt=_n(e,je(r,Se,Fe),"line",t,i);Me=tt.left,Xe=a<tt.top?-1:a>=tt.bottom?1:0}return Se=Ce(t.text,Se,1),ii(r,Se,Fe,Xe,n-Me)}function Ks(e,t,r,n,a,i,o){var s=et(function(L){var Q=a[L],Y=Q.level!=1;return si(_n(e,je(r,Y?Q.to:Q.from,Y?"before":"after"),"line",t,n),i,o,!0)},0,a.length-1),u=a[s];if(s>0){var d=u.level!=1,C=_n(e,je(r,d?u.from:u.to,d?"after":"before"),"line",t,n);si(C,i,o,!0)&&C.top>o&&(u=a[s-1])}return u}function Xs(e,t,r,n,a,i,o){var s=ao(e,t,n,o),u=s.begin,d=s.end;/\s/.test(t.text.charAt(d-1))&&d--;for(var C=null,L=null,Q=0;Q<a.length;Q++){var Y=a[Q];if(Y.from>=d||Y.to<=u)continue;var Se=Y.level!=1,Me=Tn(e,n,Se?Math.min(d,Y.to)-1:Math.max(u,Y.from)).right,Fe=Me<i?i-Me+1e9:Me-i;(!C||L>Fe)&&(C=Y,L=Fe)}return C||(C=a[a.length-1]),C.from<u&&(C={from:u,to:C.to,level:C.level}),C.to>d&&(C={from:C.from,to:d,level:C.level}),C}var ar;function _r(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ar==null){ar=v("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ar.appendChild(document.createTextNode("x")),ar.appendChild(v("br"));ar.appendChild(document.createTextNode("x"))}pe(e.measure,ar);var r=ar.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),Oe(e.measure),r||1}function wr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=v("span","xxxxxxxxxx"),r=v("pre",[t],"CodeMirror-line-like");pe(e.measure,r);var n=t.getBoundingClientRect(),a=(n.right-n.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function li(e){for(var t=e.display,r={},n={},a=t.gutters.clientLeft,i=t.gutters.firstChild,o=0;i;i=i.nextSibling,++o){var s=e.display.gutterSpecs[o].className;r[s]=i.offsetLeft+i.clientLeft+a,n[s]=i.clientWidth}return{fixedPos:ui(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function ui(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function oo(e){var t=_r(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/wr(e.display)-3);return function(a){if(Lt(e.doc,a))return 0;var i=0;if(a.widgets)for(var o=0;o<a.widgets.length;o++)a.widgets[o].height&&(i+=a.widgets[o].height);return r?i+(Math.ceil(a.text.length/n)||1)*t:i+t}}function ci(e){var t=e.doc,r=oo(e);t.iter(function(n){var a=r(n);a!=n.height&&bn(n,a)})}function ir(e,t,r,n){var a=e.display;if(!r&&V(t).getAttribute("cm-not-content")=="true")return null;var i,o,s=a.lineSpace.getBoundingClientRect();try{i=t.clientX-s.left,o=t.clientY-s.top}catch(L){return null}var u=oi(e,i,o),d;if(n&&u.xRel>0&&(d=Qe(e.doc,u.line).text).length==u.ch){var C=p(d,d.length,e.options.tabSize)-d.length;u=je(u.line,Math.max(0,Math.round((i-$i(e.display).left)/wr(e.display))-C))}return u}function or(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if(t-=r[n].size,t<0)return n}function on(e,t,r,n){t==null&&(t=e.doc.first),r==null&&(r=e.doc.first+e.doc.size),n||(n=0);var a=e.display;if(n&&r<a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>t)&&(a.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=a.viewTo)xn&&kt(e.doc,t)<a.viewTo&&zn(e);else if(r<=a.viewFrom)xn&&Tt(e.doc,r+n)>a.viewFrom?zn(e):(a.viewFrom+=n,a.viewTo+=n);else if(t<=a.viewFrom&&r>=a.viewTo)zn(e);else if(t<=a.viewFrom){var i=Ra(e,r,r+n,1);i?(a.view=a.view.slice(i.index),a.viewFrom=i.lineN,a.viewTo+=n):zn(e)}else if(r>=a.viewTo){var o=Ra(e,t,t,-1);o?(a.view=a.view.slice(0,o.index),a.viewTo=o.lineN):zn(e)}else{var s=Ra(e,t,t,-1),u=Ra(e,r,r+n,1);s&&u?(a.view=a.view.slice(0,s.index).concat(Aa(e,s.lineN,u.lineN)).concat(a.view.slice(u.index)),a.viewTo+=n):zn(e)}var d=a.externalMeasured;d&&(r<d.lineN?d.lineN+=n:t<d.lineN+d.size&&(a.externalMeasured=null))}function Hn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,a=e.display.externalMeasured;if(a&&t>=a.lineN&&t<a.lineN+a.size&&(n.externalMeasured=null),t<n.viewFrom||t>=n.viewTo)return;var i=n.view[or(e,t)];if(i.node==null)return;var o=i.changes||(i.changes=[]);U(o,r)==-1&&o.push(r)}function zn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ra(e,t,r,n){var a=or(e,t),i,o=e.display.view;if(!xn||r==e.doc.first+e.doc.size)return{index:a,lineN:r};for(var s=e.display.viewFrom,u=0;u<a;u++)s+=o[u].size;if(s!=t){if(n>0){if(a==o.length-1)return null;i=s+o[a].size-t,a++}else i=s-t;t+=i,r+=i}for(;kt(e.doc,r)!=r;){if(a==(n<0?0:o.length-1))return null;r+=n*o[a-(n<0?1:0)].size,a+=n}return{index:a,lineN:r}}function Gs(e,t,r){var n=e.display,a=n.view;a.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=Aa(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Aa(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(or(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(Aa(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,or(e,r)))),n.viewTo=r}function so(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var a=t[n];!a.hidden&&(!a.node||a.changes)&&++r}return r}function qr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function lo(e,t){t===void 0&&(t=!0);for(var r=e.doc,n={},a=n.cursors=document.createDocumentFragment(),i=n.selection=document.createDocumentFragment(),o=0;o<r.sel.ranges.length;o++){if(!t&&o==r.sel.primIndex)continue;var s=r.sel.ranges[o];if(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)continue;var u=s.empty();(u||e.options.showCursorWhenSelecting)&&uo(e,s.head,a),u||$s(e,s,i)}return n}function uo(e,t,r){var n=_n(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),a=r.appendChild(v("div","\xA0","CodeMirror-cursor"));if(a.style.left=n.left+"px",a.style.top=n.top+"px",a.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var i=r.appendChild(v("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));i.style.display="",i.style.left=n.other.left+"px",i.style.top=n.other.top+"px",i.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function Ma(e,t){return e.top-t.top||e.left-t.left}function $s(e,t,r){var n=e.display,a=e.doc,i=document.createDocumentFragment(),o=$i(e.display),s=o.left,u=Math.max(n.sizerWidth,rr(e)-n.sizer.offsetLeft)-o.right,d=a.direction=="ltr";function C(Ge,tt,st,ot){tt<0&&(tt=0),tt=Math.round(tt),ot=Math.round(ot),i.appendChild(v("div",null,"CodeMirror-selected","position: absolute; left: "+Ge+`px;
top: `+tt+"px; width: "+(st==null?u-Ge:st)+`px;
height: `+(ot-tt)+"px"))}function L(Ge,tt,st){var ot=Qe(a,Ge),mt=ot.text.length,At,Yt;function Nt(Ht,un){return ai(e,je(Ge,Ht),"div",ot,un)}function hn(Ht,un,qt){var Xt=io(e,ot,null,Ht),zt=un=="ltr"==(qt=="after")?"left":"right",jt=qt=="after"?Xt.begin:Xt.end-(/\s/.test(ot.text.charAt(Xt.end-1))?2:1);return Nt(jt,zt)[zt]}var ln=Ne(ot,a.direction);return qe(ln,tt||0,st==null?mt:st,function(Ht,un,qt,Xt){var zt=qt=="ltr",jt=Nt(Ht,zt?"left":"right"),cn=Nt(un-1,zt?"right":"left"),jr=tt==null&&Ht==0,Yn=st==null&&un==mt,nn=Xt==0,An=!ln||Xt==ln.length-1;if(cn.top-jt.top<=3){var Jt=(d?jr:Yn)&&nn,Ni=(d?Yn:jr)&&An,Nn=Jt?s:(zt?jt:cn).left,dr=Ni?u:(zt?cn:jt).right;C(Nn,jt.top,dr-Nn,jt.bottom)}else{var fr,an,Ur,ji;zt?(fr=d&&jr&&nn?s:jt.left,an=d?u:hn(Ht,qt,"before"),Ur=d?s:hn(un,qt,"after"),ji=d&&Yn&&An?u:cn.right):(fr=d?hn(Ht,qt,"before"):s,an=!d&&jr&&nn?u:jt.right,Ur=!d&&Yn&&An?s:cn.left,ji=d?hn(un,qt,"after"):u),C(fr,jt.top,an-fr,jt.bottom),jt.bottom<cn.top&&C(s,jt.bottom,null,cn.top),C(Ur,cn.top,ji-Ur,cn.bottom)}(!At||Ma(jt,At)<0)&&(At=jt),Ma(cn,At)<0&&(At=cn),(!Yt||Ma(jt,Yt)<0)&&(Yt=jt),Ma(cn,Yt)<0&&(Yt=cn)}),{start:At,end:Yt}}var Q=t.from(),Y=t.to();if(Q.line==Y.line)L(Q.line,Q.ch,Y.ch);else{var Se=Qe(a,Q.line),Me=Qe(a,Y.line),Fe=it(Se)==it(Me),Xe=L(Q.line,Q.ch,Fe?Se.text.length+1:null).end,Ze=L(Y.line,Fe?0:null,Y.ch).start;Fe&&(Xe.top<Ze.top-2?(C(Xe.right,Xe.top,null,Xe.bottom),C(s,Ze.top,Ze.left,Ze.bottom)):C(Xe.right,Xe.top,Ze.left-Xe.right,Xe.bottom)),Xe.bottom<Ze.top&&C(s,Xe.bottom,null,Ze.top)}r.appendChild(i)}function di(e){if(!e.state.focused)return;var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Cr(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function co(e){e.state.focused||(e.display.input.focus(),fi(e))}function fo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Cr(e))},100)}function fi(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),O&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),di(e)}function Cr(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,me(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Da(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var a=t.view[n],i=e.options.lineWrapping,o=void 0,s=0;if(a.hidden)continue;if(R&&S<8){var u=a.node.offsetTop+a.node.offsetHeight;o=u-r,r=u}else{var d=a.node.getBoundingClientRect();o=d.bottom-d.top,!i&&a.text.firstChild&&(s=a.text.firstChild.getBoundingClientRect().right-d.left-1)}var C=a.line.height-o;if((C>.005||C<-.005)&&(bn(a.line,o),ho(a.line),a.rest))for(var L=0;L<a.rest.length;L++)ho(a.rest[L]);if(s>e.display.sizerWidth){var Q=Math.ceil(s/wr(e.display));Q>e.display.maxLineLength&&(e.display.maxLineLength=Q,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}function ho(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function Pa(e,t,r){var n=r&&r.top!=null?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Oa(e));var a=r&&r.bottom!=null?r.bottom:n+e.wrapper.clientHeight,i=Ln(t,n),o=Ln(t,a);if(r&&r.ensure){var s=r.ensure.from.line,u=r.ensure.to.line;s<i?(i=s,o=Ln(t,Mt(Qe(t,s))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=o&&(i=Ln(t,Mt(Qe(t,u))-e.wrapper.clientHeight),o=u)}return{from:i,to:Math.max(o,i+1)}}function Vs(e,t){if(Ie(e,"scrollCursorIntoView"))return;var r=e.display,n=r.sizer.getBoundingClientRect(),a=null;if(t.top+n.top<0?a=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(a=!1),a!=null&&!H){var i=v("div","\u200B",null,`position: absolute;
top: `+(t.top-r.viewOffset-Oa(e.display))+`px;
height: `+(t.bottom-t.top+kn(e)+r.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(a),e.display.lineSpace.removeChild(i)}}function Ys(e,t,r,n){n==null&&(n=0);var a;!e.options.lineWrapping&&t==r&&(t=t.ch?je(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,r=t.sticky=="before"?je(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var o=!1,s=_n(e,t),u=!r||r==t?s:_n(e,r);a={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-n,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+n};var d=hi(e,a),C=e.doc.scrollTop,L=e.doc.scrollLeft;if(d.scrollTop!=null&&(ea(e,d.scrollTop),Math.abs(e.doc.scrollTop-C)>1&&(o=!0)),d.scrollLeft!=null&&(sr(e,d.scrollLeft),Math.abs(e.doc.scrollLeft-L)>1&&(o=!0)),!o)break}return a}function Js(e,t){var r=hi(e,t);r.scrollTop!=null&&ea(e,r.scrollTop),r.scrollLeft!=null&&sr(e,r.scrollLeft)}function hi(e,t){var r=e.display,n=_r(e.display);t.top<0&&(t.top=0);var a=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,i=ti(e),o={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+ei(r),u=t.top<n,d=t.bottom>s-n;if(t.top<a)o.scrollTop=u?0:t.top;else if(t.bottom>a+i){var C=Math.min(t.top,(d?s:t.bottom)-i);C!=a&&(o.scrollTop=C)}var L=e.options.fixedGutter?0:r.gutters.offsetWidth,Q=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-L,Y=rr(e)-r.gutters.offsetWidth,Se=t.right-t.left>Y;return Se&&(t.right=t.left+Y),t.left<10?o.scrollLeft=0:t.left<Q?o.scrollLeft=Math.max(0,t.left+L-(Se?0:10)):t.right>Y+Q-3&&(o.scrollLeft=t.right+(Se?0:10)-Y),o}function pi(e,t){if(t==null)return;Na(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Sr(e){Na(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Qr(e,t,r){(t!=null||r!=null)&&Na(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function Zs(e,t){Na(e),e.curOp.scrollToPos=t}function Na(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=ro(e,t.from),n=ro(e,t.to);po(e,r,n,t.margin)}}function po(e,t,r,n){var a=hi(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Qr(e,a.scrollLeft,a.scrollTop)}function ea(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;te||gi(e,{top:t}),mo(e,t,!0),te&&gi(e),ra(e,100)}function mo(e,t,r){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!r)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function sr(e,t,r,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,xo(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function ta(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+ei(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?r:0,docHeight:n,scrollHeight:n+kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var lr=function(e,t,r){this.cm=r;var n=this.vert=v("div",[v("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),a=this.horiz=v("div",[v("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=a.tabIndex=-1,e(n),e(a),ge(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),ge(a,"scroll",function(){a.clientWidth&&t(a.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,R&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};lr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var a=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+a)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},lr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},lr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},lr.prototype.zeroWidthHack=function(){var e=K&&!re?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new _,this.disableVert=new _},lr.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto";function n(){var a=e.getBoundingClientRect(),i=r=="vert"?document.elementFromPoint(a.right-1,(a.top+a.bottom)/2):document.elementFromPoint((a.right+a.left)/2,a.bottom-1);i!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},lr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var na=function(){};na.prototype.update=function(){return{bottom:0,right:0}},na.prototype.setScrollLeft=function(){},na.prototype.setScrollTop=function(){},na.prototype.clear=function(){};function kr(e,t){t||(t=ta(e));var r=e.display.barWidth,n=e.display.barHeight;go(e,t);for(var a=0;a<4&&r!=e.display.barWidth||n!=e.display.barHeight;a++)r!=e.display.barWidth&&e.options.lineWrapping&&Da(e),go(e,ta(e)),r=e.display.barWidth,n=e.display.barHeight}function go(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var vo={native:lr,null:na};function bo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&me(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new vo[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?sr(e,t):ea(e,t)},e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var qs=0;function ur(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},Os(e.curOp)}function cr(e){var t=e.curOp;t&&Rs(t,function(r){for(var n=0;n<r.ops.length;n++)r.ops[n].cm.curOp=null;Qs(r)})}function Qs(e){for(var t=e.ops,r=0;r<t.length;r++)el(t[r]);for(var n=0;n<t.length;n++)tl(t[n]);for(var a=0;a<t.length;a++)nl(t[a]);for(var i=0;i<t.length;i++)rl(t[i]);for(var o=0;o<t.length;o++)al(t[o])}function el(e){var t=e.cm,r=t.display;ol(t),e.updateMaxLine&&En(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ja(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&mi(e.cm,e.update)}function nl(e){var t=e.cm,r=t.display;e.updatedDisplay&&Da(t),e.barMeasure=ta(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Yi(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-rr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function rl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&sr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==ie();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&kr(t,e.barMeasure),e.updatedDisplay&&bi(t,e.barMeasure),e.selectionChanged&&di(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&co(e.cm)}function al(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&yo(t,e.update),r.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(r.wheelStartX=r.wheelStartY=null),e.scrollTop!=null&&mo(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&sr(t,e.scrollLeft,!0,!0),e.scrollToPos){var a=Ys(t,ut(n,e.scrollToPos.from),ut(n,e.scrollToPos.to),e.scrollToPos.margin);Vs(t,a)}var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var s=0;s<i.length;++s)i[s].lines.length||xe(i[s],"hide");if(o)for(var u=0;u<o.length;++u)o[u].lines.length&&xe(o[u],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&xe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function fn(e,t){if(e.curOp)return t();ur(e);try{return t()}finally{cr(e)}}function $t(e,t){return function(){if(e.curOp)return t.apply(e,arguments);ur(e);try{return t.apply(e,arguments)}finally{cr(e)}}}function rn(e){return function(){if(this.curOp)return e.apply(this,arguments);ur(this);try{return e.apply(this,arguments)}finally{cr(this)}}}function Vt(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);ur(t);try{return e.apply(this,arguments)}finally{cr(t)}}}function ra(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,c(il,e))}function il(e){var t=e.doc;if(t.highlightFrontier>=e.display.viewTo)return;var r=+new Date+e.options.workTime,n=dn(e,t.highlightFrontier),a=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(n.line>=e.display.viewFrom){var o=i.styles,s=i.text.length>e.options.maxHighlightLength?Pt(t.mode,n.state):null,u=ya(e,i,n,!0);s&&(n.state=s),i.styles=u.styles;var d=i.styleClasses,C=u.classes;C?i.styleClasses=C:d&&(i.styleClasses=null);for(var L=!o||o.length!=i.styles.length||d!=C&&(!d||!C||d.bgClass!=C.bgClass||d.textClass!=C.textClass),Q=0;!L&&Q<o.length;++Q)L=o[Q]!=i.styles[Q];L&&a.push(n.line),i.stateAfter=n.save(),n.nextLine()}else i.text.length<=e.options.maxHighlightLength&&mr(e,i.text,n),i.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return ra(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),a.length&&fn(e,function(){for(var i=0;i<a.length;i++)Hn(e,a[i],"text")})}var ja=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Pa(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=rr(e),this.force=r,this.dims=li(e),this.events=[]};ja.prototype.signal=function(e,t){T(e,t)&&this.events.push(arguments)},ja.prototype.finish=function(){for(var e=0;e<this.events.length;e++)xe.apply(null,this.events[e])};function ol(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=kn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=kn(e)+"px",t.scrollbarsClipped=!0)}function sl(e){if(e.hasFocus())return null;var t=ie();if(!t||!w(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&w(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function ll(e){if(!e||!e.activeElt||e.activeElt==ie())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&w(document.body,e.anchorNode)&&w(document.body,e.focusNode)){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}function mi(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return zn(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&so(e)==0)return!1;Eo(e)&&(zn(e),t.dims=li(e));var a=n.first+n.size,i=Math.max(t.visible.from-e.options.viewportMargin,n.first),o=Math.min(a,t.visible.to+e.options.viewportMargin);r.viewFrom<i&&i-r.viewFrom<20&&(i=Math.max(n.first,r.viewFrom)),r.viewTo>o&&r.viewTo-o<20&&(o=Math.min(a,r.viewTo)),xn&&(i=kt(e.doc,i),o=Tt(e.doc,o));var s=i!=r.viewFrom||o!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Gs(e,i,o),r.viewOffset=Mt(Qe(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var u=so(e);if(!s&&u==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var d=sl(e);return u>4&&(r.lineDiv.style.display="none"),ul(e,r.updateLineNumbers,t.dims),u>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,ll(d),Oe(r.cursorDiv),Oe(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,ra(e,400)),r.updateLineNumbers=null,!0}function yo(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==rr(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+ei(e.display)-ti(e),r.top)}),t.visible=Pa(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Pa(e.display,e.doc,r));if(!mi(e,t))break;Da(e);var a=ta(e);qr(e),kr(e,a),bi(e,a),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 gi(e,t){var r=new ja(e,t);if(mi(e,r)){Da(e),yo(e,r);var n=ta(e);qr(e),kr(e,n),bi(e,n),r.finish()}}function ul(e,t,r){var n=e.display,a=e.options.lineNumbers,i=n.lineDiv,o=i.firstChild;function s(Se){var Me=Se.nextSibling;return O&&K&&e.display.currentWheelTarget==Se?Se.style.display="none":Se.parentNode.removeChild(Se),Me}for(var u=n.view,d=n.viewFrom,C=0;C<u.length;C++){var L=u[C];if(!L.hidden)if(!L.node||L.node.parentNode!=i){var Q=js(e,L,d,r);i.insertBefore(Q,o)}else{for(;o!=L.node;)o=s(o);var Y=a&&t!=null&&t<=d&&L.lineNumber;L.changes&&(U(L.changes,"gutter")>-1&&(Y=!1),Hi(e,L,d,r)),Y&&(Oe(L.lineNumber),L.lineNumber.appendChild(document.createTextNode(Jn(e.options,d)))),o=L.node.nextSibling}d+=L.size}for(;o;)o=s(o)}function vi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function bi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+kn(e)+"px"}function xo(e){var t=e.display,r=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=ui(t)-t.scroller.scrollLeft+e.doc.scrollLeft,a=t.gutters.offsetWidth,i=n+"px",o=0;o<r.length;o++)if(!r[o].hidden){e.options.fixedGutter&&(r[o].gutter&&(r[o].gutter.style.left=i),r[o].gutterBackground&&(r[o].gutterBackground.style.left=i));var s=r[o].alignable;if(s)for(var u=0;u<s.length;u++)s[u].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=n+a+"px")}function Eo(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=Jn(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var a=n.measure.appendChild(v("div",[v("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=a.firstChild.offsetWidth,o=a.offsetWidth-i;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(i,n.lineGutter.offsetWidth-o)+1,n.lineNumWidth=n.lineNumInnerWidth+o,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",vi(e.display),!0}return!1}function yi(e,t){for(var r=[],n=!1,a=0;a<e.length;a++){var i=e[a],o=null;if(typeof i!="string"&&(o=i.style,i=i.className),i=="CodeMirror-linenumbers")if(t)n=!0;else continue;r.push({className:i,style:o})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function _o(e){var t=e.gutters,r=e.gutterSpecs;Oe(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var a=r[n],i=a.className,o=a.style,s=t.appendChild(v("div",null,"CodeMirror-gutter "+i));o&&(s.style.cssText=o),i=="CodeMirror-linenumbers"&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",vi(e)}function aa(e){_o(e.display),on(e),xo(e)}function cl(e,t,r,n){var a=this;this.input=r,a.scrollbarFiller=v("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=v("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=ee("div",null,"CodeMirror-code"),a.selectionDiv=v("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=v("div",null,"CodeMirror-cursors"),a.measure=v("div",null,"CodeMirror-measure"),a.lineMeasure=v("div",null,"CodeMirror-measure"),a.lineSpace=ee("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var i=ee("div",[a.lineSpace],"CodeMirror-lines");a.mover=v("div",[i],null,"position: relative"),a.sizer=v("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=v("div",null,null,"position: absolute; height: "+le+"px; width: 1px;"),a.gutters=v("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=v("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=v("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),R&&S<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),!O&&!(te&&ae)&&(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=yi(n.gutters,n.lineNumbers),_o(a),r.init(a)}var Ua=0,mn=null;R?mn=-.53:te?mn=15:G?mn=-.7:ye&&(mn=-1/3);function wo(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),r==null&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:r==null&&(r=e.wheelDelta),{x:t,y:r}}function dl(e){var t=wo(e);return t.x*=mn,t.y*=mn,t}function Co(e,t){var r=wo(t),n=r.x,a=r.y,i=e.display,o=i.scroller,s=o.scrollWidth>o.clientWidth,u=o.scrollHeight>o.clientHeight;if(!(n&&s||a&&u))return;if(a&&K&&O){e:for(var d=t.target,C=i.view;d!=o;d=d.parentNode)for(var L=0;L<C.length;L++)if(C[L].node==d){e.display.currentWheelTarget=d;break e}}if(n&&!te&&!B&&mn!=null){a&&u&&ea(e,Math.max(0,o.scrollTop+a*mn)),sr(e,Math.max(0,o.scrollLeft+n*mn)),(!a||a&&u)&&f(t),i.wheelStartX=null;return}if(a&&mn!=null){var Q=a*mn,Y=e.doc.scrollTop,Se=Y+i.wrapper.clientHeight;Q<0?Y=Math.max(0,Y+Q-50):Se=Math.min(e.doc.height,Se+Q+50),gi(e,{top:Y,bottom:Se})}Ua<20&&(i.wheelStartX==null?(i.wheelStartX=o.scrollLeft,i.wheelStartY=o.scrollTop,i.wheelDX=n,i.wheelDY=a,setTimeout(function(){if(i.wheelStartX==null)return;var Me=o.scrollLeft-i.wheelStartX,Fe=o.scrollTop-i.wheelStartY,Xe=Fe&&i.wheelDY&&Fe/i.wheelDY||Me&&i.wheelDX&&Me/i.wheelDX;if(i.wheelStartX=i.wheelStartY=null,!Xe)return;mn=(mn*Ua+Xe)/(Ua+1),++Ua},200)):(i.wheelDX+=n,i.wheelDY+=a))}var gn=function(e,t){this.ranges=e,this.primIndex=t};gn.prototype.primary=function(){return this.ranges[this.primIndex]},gn.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 r=this.ranges[t],n=e.ranges[t];if(!He(r.anchor,n.anchor)||!He(r.head,n.head))return!1}return!0},gn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Et(Ir(this.ranges[t].anchor),Ir(this.ranges[t].head));return new gn(e,this.primIndex)},gn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},gn.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(ct(t,n.from())>=0&&ct(e,n.to())<=0)return r}return-1};var Et=function(e,t){this.anchor=e,this.head=t};Et.prototype.from=function(){return Zn(this.anchor,this.head)},Et.prototype.to=function(){return pr(this.anchor,this.head)},Et.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wn(e,t,r){var n=e&&e.options.selectionsMayTouch,a=t[r];t.sort(function(Q,Y){return ct(Q.from(),Y.from())}),r=U(t,a);for(var i=1;i<t.length;i++){var o=t[i],s=t[i-1],u=ct(s.to(),o.from());if(n&&!o.empty()?u>0:u>=0){var d=Zn(s.from(),o.from()),C=pr(s.to(),o.to()),L=s.empty()?o.from()==o.head:s.from()==s.head;i<=r&&--r,t.splice(--i,2,new Et(L?C:d,L?d:C))}}return new gn(t,r)}function Kn(e,t){return new gn([new Et(e,t||e)],0)}function Xn(e){return e.text?je(e.from.line+e.text.length-1,h(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function So(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return Xn(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Xn(t).ch-t.to.ch),je(r,n)}function xi(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var a=e.sel.ranges[n];r.push(new Et(So(a.anchor,t),So(a.head,t)))}return wn(e.cm,r,e.sel.primIndex)}function ko(e,t,r){return e.line==t.line?je(r.line,e.ch-t.ch+r.ch):je(r.line+(e.line-t.line),e.ch)}function fl(e,t,r){for(var n=[],a=je(e.first,0),i=a,o=0;o<t.length;o++){var s=t[o],u=ko(s.from,a,i),d=ko(Xn(s),a,i);if(a=s.to,i=d,r=="around"){var C=e.sel.ranges[o],L=ct(C.head,C.anchor)<0;n[o]=new Et(L?d:u,L?u:d)}else n[o]=new Et(u,u)}return new gn(n,e.sel.primIndex)}function Ei(e){e.doc.mode=bt(e.options,e.doc.modeOption),ia(e)}function ia(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,ra(e,100),e.state.modeGen++,e.curOp&&on(e)}function To(e,t){return t.from.ch==0&&t.to.ch==0&&h(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _i(e,t,r,n){function a(Ze){return r?r[Ze]:null}function i(Ze,Ge,tt){Fn(Ze,Ge,tt,n),Zt(Ze,"change",Ze,t)}function o(Ze,Ge){for(var tt=[],st=Ze;st<Ge;++st)tt.push(new Rt(d[st],a(st),n));return tt}var s=t.from,u=t.to,d=t.text,C=Qe(e,s.line),L=Qe(e,u.line),Q=h(d),Y=a(d.length-1),Se=u.line-s.line;if(t.full)e.insert(0,o(0,d.length)),e.remove(d.length,e.size-d.length);else if(To(e,t)){var Me=o(0,d.length-1);i(L,L.text,Y),Se&&e.remove(s.line,Se),Me.length&&e.insert(s.line,Me)}else if(C==L)if(d.length==1)i(C,C.text.slice(0,s.ch)+Q+C.text.slice(u.ch),Y);else{var Fe=o(1,d.length-1);Fe.push(new Rt(Q+C.text.slice(u.ch),Y,n)),i(C,C.text.slice(0,s.ch)+d[0],a(0)),e.insert(s.line+1,Fe)}else if(d.length==1)i(C,C.text.slice(0,s.ch)+d[0]+L.text.slice(u.ch),a(0)),e.remove(s.line+1,Se);else{i(C,C.text.slice(0,s.ch)+d[0],a(0)),i(L,Q+L.text.slice(u.ch),Y);var Xe=o(1,d.length-1);Se>1&&e.remove(s.line+1,Se-1),e.insert(s.line+1,Xe)}Zt(e,"change",e,t)}function Gn(e,t,r){function n(a,i,o){if(a.linked)for(var s=0;s<a.linked.length;++s){var u=a.linked[s];if(u.doc==i)continue;var d=o&&u.sharedHist;if(r&&!d)continue;t(u.doc,d),n(u.doc,a,d)}}n(e,null,!0)}function Ao(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ci(e),Ei(e),Oo(e),e.options.lineWrapping||En(e),e.options.mode=t.modeOption,on(e)}function Oo(e){(e.doc.direction=="rtl"?I:me)(e.display.lineDiv,"CodeMirror-rtl")}function hl(e){fn(e,function(){Oo(e),on(e)})}function Ia(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 wi(e,t){var r={from:Ir(t.from),to:Xn(t),text:On(e,t.from,t.to)};return Mo(e,r,t.from.line,t.to.line+1),Gn(e,function(n){return Mo(n,r,t.from.line,t.to.line+1)},!0),r}function Lo(e){for(;e.length;){var t=h(e);if(t.ranges)e.pop();else break}}function pl(e,t){if(t)return Lo(e.done),h(e.done);if(e.done.length&&!h(e.done).ranges)return h(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),h(e.done)}function Ro(e,t,r,n){var a=e.history;a.undone.length=0;var i=+new Date,o,s;if((a.lastOp==n||a.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&a.lastModTime>i-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(o=pl(a,a.lastOp==n)))s=h(o.changes),ct(t.from,t.to)==0&&ct(t.from,s.to)==0?s.to=Xn(t):o.changes.push(wi(e,t));else{var u=h(a.done);for((!u||!u.ranges)&&Fa(e.sel,a.done),o={changes:[wi(e,t)],generation:a.generation},a.done.push(o);a.done.length>a.undoDepth;)a.done.shift(),a.done[0].ranges||a.done.shift()}a.done.push(r),a.generation=++a.maxGeneration,a.lastModTime=a.lastSelTime=i,a.lastOp=a.lastSelOp=n,a.lastOrigin=a.lastSelOrigin=t.origin,s||xe(e,"historyAdded")}function ml(e,t,r,n){var a=t.charAt(0);return a=="*"||a=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,r,n){var a=e.history,i=n&&n.origin;r==a.lastSelOp||i&&a.lastSelOrigin==i&&(a.lastModTime==a.lastSelTime&&a.lastOrigin==i||ml(e,i,h(a.done),t))?a.done[a.done.length-1]=t:Fa(t,a.done),a.lastSelTime=+new Date,a.lastSelOrigin=i,a.lastSelOp=r,n&&n.clearRedo!==!1&&Lo(a.undone)}function Fa(e,t){var r=h(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Mo(e,t,r,n){var a=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(o){o.markedSpans&&((a||(a=t["spans_"+e.id]={}))[i]=o.markedSpans),++i})}function vl(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function bl(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],a=0;a<t.text.length;++a)n.push(vl(r[a]));return n}function Do(e,t){var r=bl(e,t),n=In(e,t);if(!r)return n;if(!n)return r;for(var a=0;a<r.length;++a){var i=r[a],o=n[a];if(i&&o){e:for(var s=0;s<o.length;++s){for(var u=o[s],d=0;d<i.length;++d)if(i[d].marker==u.marker)continue e;i.push(u)}}else o&&(r[a]=o)}return r}function Tr(e,t,r){for(var n=[],a=0;a<e.length;++a){var i=e[a];if(i.ranges){n.push(r?gn.prototype.deepCopy.call(i):i);continue}var o=i.changes,s=[];n.push({changes:s});for(var u=0;u<o.length;++u){var d=o[u],C=void 0;if(s.push({from:d.from,to:d.to,text:d.text}),t)for(var L in d)(C=L.match(/^spans_(\d+)$/))&&(U(t,Number(C[1]))>-1&&(h(s)[L]=d[L],delete d[L]))}}return n}function Ci(e,t,r,n){if(n){var a=e.anchor;if(r){var i=ct(t,a)<0;i!=ct(r,a)<0?(a=t,t=r):i!=ct(t,r)<0&&(t=r)}return new Et(a,t)}else return new Et(r||t,t)}function Ba(e,t,r,n,a){a==null&&(a=e.cm&&(e.cm.display.shift||e.extend)),tn(e,new gn([Ci(e.sel.primary(),t,r,a)],0),n)}function Po(e,t,r){for(var n=[],a=e.cm&&(e.cm.display.shift||e.extend),i=0;i<e.sel.ranges.length;i++)n[i]=Ci(e.sel.ranges[i],t[i],null,a);var o=wn(e.cm,n,e.sel.primIndex);tn(e,o,r)}function Si(e,t,r,n){var a=e.sel.ranges.slice(0);a[t]=r,tn(e,wn(e.cm,a,e.sel.primIndex),n)}function No(e,t,r,n){tn(e,Kn(t,r),n)}function yl(e,t,r){var n={ranges:t.ranges,update:function(a){this.ranges=[];for(var i=0;i<a.length;i++)this.ranges[i]=new Et(ut(e,a[i].anchor),ut(e,a[i].head))},origin:r&&r.origin};return xe(e,"beforeSelectionChange",e,n),e.cm&&xe(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?wn(e.cm,n.ranges,n.ranges.length-1):t}function jo(e,t,r){var n=e.history.done,a=h(n);a&&a.ranges?(n[n.length-1]=t,Wa(e,t,r)):tn(e,t,r)}function tn(e,t,r){Wa(e,t,r),gl(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function Wa(e,t,r){(T(e,"beforeSelectionChange")||e.cm&&T(e.cm,"beforeSelectionChange"))&&(t=yl(e,t,r));var n=r&&r.bias||(ct(t.primary().head,e.sel.primary().head)<0?-1:1);Uo(e,Fo(e,t,n,!0)),!(r&&r.scroll===!1)&&e.cm&&Sr(e.cm)}function Uo(e,t){if(t.equals(e.sel))return;e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,E(e.cm)),Zt(e,"cursorActivity",e)}function Io(e){Uo(e,Fo(e,e.sel,null,!1))}function Fo(e,t,r,n){for(var a,i=0;i<t.ranges.length;i++){var o=t.ranges[i],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[i],u=Ha(e,o.anchor,s&&s.anchor,r,n),d=Ha(e,o.head,s&&s.head,r,n);(a||u!=o.anchor||d!=o.head)&&(a||(a=t.ranges.slice(0,i)),a[i]=new Et(u,d))}return a?wn(e.cm,a,t.primIndex):t}function Ar(e,t,r,n,a){var i=Qe(e,t.line);if(i.markedSpans)for(var o=0;o<i.markedSpans.length;++o){var s=i.markedSpans[o],u=s.marker,d="selectLeft"in u?!u.selectLeft:u.inclusiveLeft,C="selectRight"in u?!u.selectRight:u.inclusiveRight;if((s.from==null||(d?s.from<=t.ch:s.from<t.ch))&&(s.to==null||(C?s.to>=t.ch:s.to>t.ch))){if(a&&(xe(u,"beforeCursorEnter"),u.explicitlyCleared))if(i.markedSpans){--o;continue}else break;if(!u.atomic)continue;if(r){var L=u.find(n<0?1:-1),Q=void 0;if((n<0?C:d)&&(L=Bo(e,L,-n,L&&L.line==t.line?i:null)),L&&L.line==t.line&&(Q=ct(L,r))&&(n<0?Q<0:Q>0))return Ar(e,L,t,n,a)}var Y=u.find(n<0?-1:1);return(n<0?d:C)&&(Y=Bo(e,Y,n,Y.line==t.line?i:null)),Y?Ar(e,Y,t,n,a):null}}return t}function Ha(e,t,r,n,a){var i=n||1,o=Ar(e,t,r,i,a)||!a&&Ar(e,t,r,i,!0)||Ar(e,t,r,-i,a)||!a&&Ar(e,t,r,-i,!0);return o||(e.cantEdit=!0,je(e.first,0))}function Bo(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?ut(e,je(t.line-1)):null:r>0&&t.ch==(n||Qe(e,t.line)).text.length?t.line<e.first+e.size-1?je(t.line+1,0):null:new je(t.line,t.ch+r)}function Wo(e){e.setSelection(je(e.firstLine(),0),je(e.lastLine()),q)}function Ho(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(a,i,o,s){a&&(n.from=ut(e,a)),i&&(n.to=ut(e,i)),o&&(n.text=o),s!==void 0&&(n.origin=s)}),xe(e,"beforeChange",e,n),e.cm&&xe(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 Or(e,t,r){if(e.cm){if(!e.cm.curOp)return $t(e.cm,Or)(e,t,r);if(e.cm.state.suppressEdits)return}if((T(e,"beforeChange")||e.cm&&T(e.cm,"beforeChange"))&&(t=Ho(e,t,!0),!t))return;var n=_a&&!r&&Sa(e,t.from,t.to);if(n)for(var a=n.length-1;a>=0;--a)zo(e,{from:n[a].from,to:n[a].to,text:a?[""]:t.text,origin:t.origin});else zo(e,t)}function zo(e,t){if(t.text.length==1&&t.text[0]==""&&ct(t.from,t.to)==0)return;var r=xi(e,t);Ro(e,t,r,e.cm?e.cm.curOp.id:NaN),oa(e,t,r,In(e,t));var n=[];Gn(e,function(a,i){!i&&U(n,a.history)==-1&&($o(a.history,t),n.push(a.history)),oa(a,t,null,In(a,t))})}function za(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!r)return;for(var a=e.history,i,o=e.sel,s=t=="undo"?a.done:a.undone,u=t=="undo"?a.undone:a.done,d=0;d<s.length&&!(i=s[d],r?i.ranges&&!i.equals(e.sel):!i.ranges);d++);if(d==s.length)return;for(a.lastOrigin=a.lastSelOrigin=null;;)if(i=s.pop(),i.ranges){if(Fa(i,u),r&&!i.equals(e.sel)){tn(e,i,{clearRedo:!1});return}o=i}else if(n){s.push(i);return}else break;var C=[];Fa(o,u),u.push({changes:C,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var L=T(e,"beforeChange")||e.cm&&T(e.cm,"beforeChange"),Q=function(Me){var Fe=i.changes[Me];if(Fe.origin=t,L&&!Ho(e,Fe,!1))return s.length=0,{};C.push(wi(e,Fe));var Xe=Me?xi(e,Fe):h(s);oa(e,Fe,Xe,Do(e,Fe)),!Me&&e.cm&&e.cm.scrollIntoView({from:Fe.from,to:Xn(Fe)});var Ze=[];Gn(e,function(Ge,tt){!tt&&U(Ze,Ge.history)==-1&&($o(Ge.history,Fe),Ze.push(Ge.history)),oa(Ge,Fe,null,Do(Ge,Fe))})},Y=i.changes.length-1;Y>=0;--Y){var Se=Q(Y);if(Se)return Se.v}}function Ko(e,t){if(t==0)return;if(e.first+=t,e.sel=new gn(k(e.sel.ranges,function(a){return new Et(je(a.anchor.line+t,a.anchor.ch),je(a.head.line+t,a.head.ch))}),e.sel.primIndex),e.cm){on(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)Hn(e.cm,n,"gutter")}}function oa(e,t,r,n){if(e.cm&&!e.cm.curOp)return $t(e.cm,oa)(e,t,r,n);if(t.to.line<e.first){Ko(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 a=t.text.length-1-(e.first-t.from.line);Ko(e,a),t={from:je(e.first,0),to:je(t.to.line+a,t.to.ch),text:[h(t.text)],origin:t.origin}}var i=e.lastLine();t.to.line>i&&(t={from:t.from,to:je(i,Qe(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=On(e,t.from,t.to),r||(r=xi(e,t)),e.cm?xl(e.cm,t,n):_i(e,t,n),Wa(e,r,q),e.cantEdit&&Ha(e,je(e.firstLine(),0))&&(e.cantEdit=!1)}function xl(e,t,r){var n=e.doc,a=e.display,i=t.from,o=t.to,s=!1,u=i.line;e.options.lineWrapping||(u=xt(it(Qe(n,i.line))),n.iter(u,o.line+1,function(Y){if(Y==a.maxLine)return s=!0,!0})),n.sel.contains(t.from,t.to)>-1&&E(e),_i(n,t,r,oo(e)),e.options.lineWrapping||(n.iter(u,i.line+t.text.length,function(Y){var Se=Qt(Y);Se>a.maxLineLength&&(a.maxLine=Y,a.maxLineLength=Se,a.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),Hr(n,i.line),ra(e,400);var d=t.text.length-(o.line-i.line)-1;t.full?on(e):i.line==o.line&&t.text.length==1&&!To(e.doc,t)?Hn(e,i.line,"text"):on(e,i.line,o.line+1,d);var C=T(e,"changes"),L=T(e,"change");if(L||C){var Q={from:i,to:o,text:t.text,removed:t.removed,origin:t.origin};L&&Zt(e,"change",e,Q),C&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Q)}e.display.selForContextMenu=null}function Lr(e,t,r,n,a){var i;n||(n=r),ct(n,r)<0&&(i=[n,r],r=i[0],n=i[1]),typeof t=="string"&&(t=e.splitLines(t)),Or(e,{from:r,to:n,text:t,origin:a})}function Xo(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Go(e,t,r,n){for(var a=0;a<e.length;++a){var i=e[a],o=!0;if(i.ranges){i.copied||(i=e[a]=i.deepCopy(),i.copied=!0);for(var s=0;s<i.ranges.length;s++)Xo(i.ranges[s].anchor,t,r,n),Xo(i.ranges[s].head,t,r,n);continue}for(var u=0;u<i.changes.length;++u){var d=i.changes[u];if(r<d.from.line)d.from=je(d.from.line+n,d.from.ch),d.to=je(d.to.line+n,d.to.ch);else if(t<=d.to.line){o=!1;break}}o||(e.splice(0,a+1),a=0)}}function $o(e,t){var r=t.from.line,n=t.to.line,a=t.text.length-(n-r)-1;Go(e.done,r,n,a),Go(e.undone,r,n,a)}function sa(e,t,r,n){var a=t,i=t;return typeof t=="number"?i=Qe(e,qn(e,t)):a=xt(t),a==null?null:(n(i,a)&&e.cm&&Hn(e.cm,a,r),i)}function la(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var a=this.lines[r];this.height-=a.height,en(a),Zt(a,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,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,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}};function ua(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var a=e[n];t+=a.chunkSize(),r+=a.height,a.parent=this}this.size=t,this.height=r,this.parent=null}ua.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],a=n.chunkSize();if(e<a){var i=Math.min(t,a-e),o=n.height;if(n.removeInner(e,i),this.height-=o-n.height,a==i&&(this.children.splice(r--,1),n.parent=null),(t-=i)==0)break;e=0}else e-=a}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof la))){var s=[];this.collapse(s),this.children=[new la(s)],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,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var a=this.children[n],i=a.chunkSize();if(e<=i){if(a.insertInner(e,t,r),a.lines&&a.lines.length>50){for(var o=a.lines.length%25+25,s=o;s<a.lines.length;){var u=new la(a.lines.slice(s,s+=25));a.height-=u.height,this.children.splice(++n,0,u),u.parent=this}a.lines=a.lines.slice(0,o),this.maybeSpill()}break}e-=i}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var t=e.children.splice(e.children.length-5,5),r=new ua(t);if(e.parent){e.size-=r.size,e.height-=r.height;var a=U(e.parent.children,e);e.parent.children.splice(a+1,0,r)}else{var n=new ua(e.children);n.parent=e,e.children=[n,r],e=n}r.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var a=this.children[n],i=a.chunkSize();if(e<i){var o=Math.min(t,i-e);if(a.iterN(e,o,r))return!0;if((t-=o)==0)break;e=0}else e-=i}}};var ca=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};ca.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=xt(r);if(n==null||!t)return;for(var a=0;a<t.length;++a)t[a]==this&&t.splice(a--,1);t.length||(r.widgets=null);var i=Jr(this);bn(r,Math.max(0,r.height-i)),e&&(fn(e,function(){Vo(e,r,-i),Hn(e,n,"widget")}),Zt(e,"lineWidgetCleared",e,this,n))},ca.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var a=Jr(this)-t;if(!a)return;Lt(this.doc,n)||bn(n,n.height+a),r&&fn(r,function(){r.curOp.forceUpdate=!0,Vo(r,n,a),Zt(r,"lineWidgetChanged",r,e,xt(n))})},M(ca);function Vo(e,t,r){Mt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&pi(e,r)}function El(e,t,r,n){var a=new ca(e,r,n),i=e.cm;return i&&a.noHScroll&&(i.display.alignWidgets=!0),sa(e,t,"widget",function(o){var s=o.widgets||(o.widgets=[]);if(a.insertAt==null?s.push(a):s.splice(Math.min(s.length-1,Math.max(0,a.insertAt)),0,a),a.line=o,i&&!Lt(e,o)){var u=Mt(o)<e.scrollTop;bn(o,o.height+Jr(a)),u&&pi(i,a.height),i.curOp.forceUpdate=!0}return!0}),i&&Zt(i,"lineWidgetAdded",i,a,typeof t=="number"?t:xt(t)),a}var Yo=0,$n=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Yo};$n.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&ur(e),T(this,"clear")){var r=this.find();r&&Zt(this,"clear",r.from,r.to)}for(var n=null,a=null,i=0;i<this.lines.length;++i){var o=this.lines[i],s=Un(o.markedSpans,this);e&&!this.collapsed?Hn(e,xt(o),"text"):e&&(s.to!=null&&(a=xt(o)),s.from!=null&&(n=xt(o))),o.markedSpans=Ui(o.markedSpans,s),s.from==null&&this.collapsed&&!Lt(this.doc,o)&&e&&bn(o,_r(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var d=it(this.lines[u]),C=Qt(d);C>e.display.maxLineLength&&(e.display.maxLine=d,e.display.maxLineLength=C,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&on(e,n,a+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Io(e.doc)),e&&Zt(e,"markerCleared",e,this,n,a),t&&cr(e),this.parent&&this.parent.clear()},$n.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,a=0;a<this.lines.length;++a){var i=this.lines[a],o=Un(i.markedSpans,this);if(o.from!=null&&(r=je(t?i:xt(i),o.from),e==-1))return r;if(o.to!=null&&(n=je(t?i:xt(i),o.to),e==1))return n}return r&&{from:r,to:n}},$n.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;if(!t||!n)return;fn(n,function(){var a=t.line,i=xt(t.line),o=ni(n,i);if(o&&(qi(o),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Lt(r.doc,a)&&r.height!=null){var s=r.height;r.height=null;var u=Jr(r)-s;u&&bn(a,a.height+u)}Zt(n,"markerChanged",n,e)})},$n.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||U(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},$n.prototype.detachLine=function(e){if(this.lines.splice(U(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},M($n);function Rr(e,t,r,n,a){if(n&&n.shared)return _l(e,t,r,n,a);if(e.cm&&!e.cm.curOp)return $t(e.cm,Rr)(e,t,r,n,a);var i=new $n(e,a),o=ct(t,r);if(n&&l(n,i,!1),o>0||o==0&&i.clearWhenEmpty!==!1)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=ee("span",[i.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(qa(e,t.line,t,r,i)||t.line!=r.line&&qa(e,r.line,t,r,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ca()}i.addToHistory&&Ro(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var s=t.line,u=e.cm,d;if(e.iter(s,r.line+1,function(L){u&&i.collapsed&&!u.options.lineWrapping&&it(L)==u.display.maxLine&&(d=!0),i.collapsed&&s!=t.line&&bn(L,0),zr(L,new vr(i,s==t.line?t.ch:null,s==r.line?r.ch:null)),++s}),i.collapsed&&e.iter(t.line,r.line+1,function(L){Lt(e,L)&&bn(L,0)}),i.clearOnEnter&&ge(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(wa(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++Yo,i.atomic=!0),u){if(d&&(u.curOp.updateMaxLine=!0),i.collapsed)on(u,t.line,r.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var C=t.line;C<=r.line;C++)Hn(u,C,"text");i.atomic&&Io(u.doc),Zt(u,"markerAdded",u,i)}return i}var da=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};da.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Zt(this,"clear")},da.prototype.find=function(e,t){return this.primary.find(e,t)},M(da);function _l(e,t,r,n,a){n=l(n),n.shared=!1;var i=[Rr(e,t,r,n,a)],o=i[0],s=n.widgetNode;return Gn(e,function(u){s&&(n.widgetNode=s.cloneNode(!0)),i.push(Rr(u,ut(u,t),ut(u,r),n,a));for(var d=0;d<u.linked.length;++d)if(u.linked[d].isParent)return;o=h(i)}),new da(i,o)}function Jo(e){return e.findMarks(je(e.first,0),e.clipPos(je(e.lastLine())),function(t){return t.parent})}function wl(e,t){for(var r=0;r<t.length;r++){var n=t[r],a=n.find(),i=e.clipPos(a.from),o=e.clipPos(a.to);if(ct(i,o)){var s=Rr(e,i,o,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}function Cl(e){for(var t=function(n){var a=e[n],i=[a.primary.doc];Gn(a.primary.doc,function(u){return i.push(u)});for(var o=0;o<a.markers.length;o++){var s=a.markers[o];U(i,s.doc)==-1&&(s.parent=null,a.markers.splice(o--,1))}},r=0;r<e.length;r++)t(r)}var Sl=0,sn=function(e,t,r,n,a){if(!(this instanceof sn))return new sn(e,t,r,n,a);r==null&&(r=0),ua.call(this,[new la([new Rt("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var i=je(r,0);this.sel=Kn(i),this.history=new Ia(null),this.id=++Sl,this.modeOption=t,this.lineSep=n,this.direction=a=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_i(this,{from:i,to:i,text:e}),tn(this,Kn(i),q)};sn.prototype=ce(ua.prototype,{constructor:sn,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=hr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:Vt(function(e){var t=je(this.first,0),r=this.first+this.size-1;Or(this,{from:t,to:je(r,Qe(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Qr(this.cm,0,0),tn(this,Kn(t),q)}),replaceRange:function(e,t,r,n){t=ut(this,t),r=r?ut(this,r):t,Lr(this,e,t,r,n)},getRange:function(e,t,r){var n=On(this,ut(this,e),ut(this,t));return r===!1?n:n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(jn(this,e))return Qe(this,e)},getLineNumber:function(e){return xt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Qe(this,e)),it(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ut(this,e)},getCursor:function(e){var t=this.sel.primary(),r;return e==null||e=="head"?r=t.head:e=="anchor"?r=t.anchor:e=="end"||e=="to"||e===!1?r=t.to():r=t.from(),r},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vt(function(e,t,r){No(this,ut(this,typeof e=="number"?je(e,t||0):e),null,r)}),setSelection:Vt(function(e,t,r){No(this,ut(this,e),ut(this,t||e),r)}),extendSelection:Vt(function(e,t,r){Ba(this,ut(this,e),t&&ut(this,t),r)}),extendSelections:Vt(function(e,t){Po(this,Fr(this,e),t)}),extendSelectionsBy:Vt(function(e,t){var r=k(this.sel.ranges,e);Po(this,Fr(this,r),t)}),setSelections:Vt(function(e,t,r){if(!e.length)return;for(var n=[],a=0;a<e.length;a++)n[a]=new Et(ut(this,e[a].anchor),ut(this,e[a].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),tn(this,wn(this.cm,n,t),r)}),addSelection:Vt(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new Et(ut(this,e),ut(this,t||e))),tn(this,wn(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t=this.sel.ranges,r,n=0;n<t.length;n++){var a=On(this,t[n].from(),t[n].to());r=r?r.concat(a):a}return e===!1?r:r.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var a=On(this,r[n].from(),r[n].to());e!==!1&&(a=a.join(e||this.lineSeparator())),t[n]=a}return t},replaceSelection:function(e,t,r){for(var n=[],a=0;a<this.sel.ranges.length;a++)n[a]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:Vt(function(e,t,r){for(var n=[],a=this.sel,i=0;i<a.ranges.length;i++){var o=a.ranges[i];n[i]={from:o.from(),to:o.to(),text:this.splitLines(e[i]),origin:r}}for(var s=t&&t!="end"&&fl(this,n,t),u=n.length-1;u>=0;u--)Or(this,n[u]);s?jo(this,s):this.cm&&Sr(this.cm)}),undo:Vt(function(){za(this,"undo")}),redo:Vt(function(){za(this,"redo")}),undoSelection:Vt(function(){za(this,"undo",!0)}),redoSelection:Vt(function(){za(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var a=0;a<e.undone.length;a++)e.undone[a].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new Ia(this.history.maxGeneration),Gn(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:Tr(this.history.done),undone:Tr(this.history.undone)}},setHistory:function(e){var t=this.history=new Ia(this.history.maxGeneration);t.done=Tr(e.done.slice(0),null,!0),t.undone=Tr(e.undone.slice(0),null,!0)},setGutterMarker:Vt(function(e,t,r){return sa(this,e,"gutter",function(n){var a=n.gutterMarkers||(n.gutterMarkers={});return a[t]=r,!r&&Re(a)&&(n.gutterMarkers=null),!0})}),clearGutter:Vt(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&sa(t,r,"gutter",function(){return r.gutterMarkers[e]=null,Re(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!jn(this,e))return null;if(t=e,e=Qe(this,e),!e)return null}else if(t=xt(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:Vt(function(e,t,r){return sa(this,e,t=="gutter"?"gutter":"class",function(n){var a=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[a])n[a]=r;else{if(de(r).test(n[a]))return!1;n[a]+=" "+r}return!0})}),removeLineClass:Vt(function(e,t,r){return sa(this,e,t=="gutter"?"gutter":"class",function(n){var a=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",i=n[a];if(i)if(r==null)n[a]=null;else{var o=i.match(de(r));if(!o)return!1;var s=o.index+o[0].length;n[a]=i.slice(0,o.index)+(!o.index||s==i.length?"":" ")+i.slice(s)||null}else return!1;return!0})}),addLineWidget:Vt(function(e,t,r){return El(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Rr(this,ut(this,e),ut(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=ut(this,e),Rr(this,e,e,r,"bookmark")},findMarksAt:function(e){e=ut(this,e);var t=[],r=Qe(this,e.line).markedSpans;if(r)for(var n=0;n<r.length;++n){var a=r[n];(a.from==null||a.from<=e.ch)&&(a.to==null||a.to>=e.ch)&&t.push(a.marker.parent||a.marker)}return t},findMarks:function(e,t,r){e=ut(this,e),t=ut(this,t);var n=[],a=e.line;return this.iter(e.line,t.line+1,function(i){var o=i.markedSpans;if(o)for(var s=0;s<o.length;s++){var u=o[s];!(u.to!=null&&a==e.line&&e.ch>=u.to||u.from==null&&a!=e.line||u.from!=null&&a==t.line&&u.from>=t.ch)&&(!r||r(u.marker))&&n.push(u.marker.parent||u.marker)}++a}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)r[n].from!=null&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(a){var i=a.text.length+n;if(i>e)return t=e,!0;e-=i,++r}),ut(this,je(r,t))},indexFromPos:function(e){e=ut(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+r}),t},copy:function(e){var t=new sn(hr(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,r=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<r&&(r=e.to);var n=new sn(hr(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],wl(n,Jo(this)),n},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var r=this.linked[t];if(r.doc!=e)continue;this.linked.splice(t,1),e.unlinkDoc(this),Cl(Jo(this));break}if(e.history==this.history){var n=[e.id];Gn(e,function(a){return n.push(a.id)},!0),e.history=new Ia(null),e.history.done=Tr(this.history.done,n),e.history.undone=Tr(this.history.undone,n)}},iterLinkedDocs:function(e){Gn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):lt(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Vt(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&hl(this.cm)})}),sn.prototype.eachLine=sn.prototype.iter;var Zo=0;function kl(e){var t=this;if(qo(t),Ie(t,e)||Dn(t.display,e))return;f(e),R&&(Zo=+new Date);var r=ir(t,e,!0),n=e.dataTransfer.files;if(!r||t.isReadOnly())return;if(n&&n.length&&window.FileReader&&window.File)for(var a=n.length,i=Array(a),o=0,s=function(){++o==a&&$t(t,function(){r=ut(t.doc,r);var Y={from:r,to:r,text:t.doc.splitLines(i.filter(function(Se){return Se!=null}).join(t.doc.lineSeparator())),origin:"paste"};Or(t.doc,Y),jo(t.doc,Kn(ut(t.doc,r),ut(t.doc,Xn(Y))))})()},u=function(Y,Se){if(t.options.allowDropFileTypes&&U(t.options.allowDropFileTypes,Y.type)==-1){s();return}var Me=new FileReader;Me.onerror=function(){return s()},Me.onload=function(){var Fe=Me.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Fe)){s();return}i[Se]=Fe,s()},Me.readAsText(Y)},d=0;d<n.length;d++)u(n[d],d);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var C=e.dataTransfer.getData("Text");if(C){var L;if(t.state.draggingText&&!t.state.draggingText.copy&&(L=t.listSelections()),Wa(t.doc,Kn(r,r)),L)for(var Q=0;Q<L.length;++Q)Lr(t.doc,"",L[Q].anchor,L[Q].head,"drag");t.replaceSelection(C,"around","paste"),t.display.input.focus()}}catch(Y){}}}function Tl(e,t){if(R&&(!e.state.draggingText||+new Date-Zo<100)){x(t);return}if(Ie(e,t)||Dn(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ye){var r=v("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),B&&r.parentNode.removeChild(r)}}function Al(e,t){var r=ir(e,t);if(!r)return;var n=document.createDocumentFragment();uo(e,r,n),e.display.dragCursor||(e.display.dragCursor=v("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),pe(e.display.dragCursor,n)}function qo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Qo(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var a=t[n].CodeMirror;a&&r.push(a)}r.length&&r[0].operation(function(){for(var i=0;i<r.length;i++)e(r[i])})}var es=!1;function Ol(){if(es)return;Ll(),es=!0}function Ll(){var e;ge(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Qo(Rl)},100))}),ge(window,"blur",function(){return Qo(Cr)})}function Rl(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Vn={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"},fa=0;fa<10;fa++)Vn[fa+48]=Vn[fa+96]=String(fa);for(var Ka=65;Ka<=90;Ka++)Vn[Ka]=String.fromCharCode(Ka);for(var ha=1;ha<=12;ha++)Vn[ha+111]=Vn[ha+63235]="F"+ha;var Pn={};Pn.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"},Pn.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"},Pn.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"},Pn.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"]},Pn.default=K?Pn.macDefault:Pn.pcDefault;function Ml(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,a,i,o=0;o<t.length-1;o++){var s=t[o];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))r=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))a=!0;else throw new Error("Unrecognized modifier name: "+s)}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),a&&(e="Shift-"+e),e}function Dl(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if(n=="..."){delete e[r];continue}for(var a=k(r.split(" "),Ml),i=0;i<a.length;i++){var o=void 0,s=void 0;i==a.length-1?(s=a.join(" "),o=n):(s=a.slice(0,i+1).join(" "),o="...");var u=t[s];if(!u)t[s]=o;else if(u!=o)throw new Error("Inconsistent bindings for "+s)}delete e[r]}for(var d in t)e[d]=t[d];return e}function Mr(e,t,r,n){t=Xa(t);var a=t.call?t.call(e,n):t[e];if(a===!1)return"nothing";if(a==="...")return"multi";if(a!=null&&r(a))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Mr(e,t.fallthrough,r,n);for(var i=0;i<t.fallthrough.length;i++){var o=Mr(e,t.fallthrough[i],r,n);if(o)return o}}}function ts(e){var t=typeof e=="string"?e:Vn[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function ns(e,t,r){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(Te?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(Te?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!r&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function rs(e,t){if(B&&e.keyCode==34&&e.char)return!1;var r=Vn[e.keyCode];return r==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(r=e.code),ns(r,e,t))}function Xa(e){return typeof e=="string"?Pn[e]:e}function Dr(e,t){for(var r=e.doc.sel.ranges,n=[],a=0;a<r.length;a++){for(var i=t(r[a]);n.length&&ct(i.from,h(n).to)<=0;){var o=n.pop();if(ct(o.from,i.from)<0){i.from=o.from;break}}n.push(i)}fn(e,function(){for(var s=n.length-1;s>=0;s--)Lr(e.doc,"",n[s].from,n[s].to,"+delete");Sr(e)})}function ki(e,t,r){var n=Ce(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Ti(e,t,r){var n=ki(e,t.ch,r);return n==null?null:new je(t.line,n,r<0?"after":"before")}function Ai(e,t,r,n,a){if(e){t.doc.direction=="rtl"&&(a=-a);var i=Ne(r,t.doc.direction);if(i){var o=a<0?h(i):i[0],s=a<0==(o.level==1),u=s?"after":"before",d;if(o.level>0||t.doc.direction=="rtl"){var C=Er(t,r);d=a<0?r.text.length-1:0;var L=Tn(t,C,d).top;d=et(function(Q){return Tn(t,C,Q).top==L},a<0==(o.level==1)?o.from:o.to-1,d),u=="before"&&(d=ki(r,d,1))}else d=a<0?o.to:o.from;return new je(n,d,u)}}return new je(n,a<0?r.text.length:0,a<0?"before":"after")}function Pl(e,t,r,n){var a=Ne(t,e.doc.direction);if(!a)return Ti(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var i=$e(a,r.ch,r.sticky),o=a[i];if(e.doc.direction=="ltr"&&o.level%2==0&&(n>0?o.to>r.ch:o.from<r.ch))return Ti(t,r,n);var s=function(Xe,Ze){return ki(t,Xe instanceof je?Xe.ch:Xe,Ze)},u,d=function(Xe){return e.options.lineWrapping?(u=u||Er(e,t),io(e,t,u,Xe)):{begin:0,end:t.text.length}},C=d(r.sticky=="before"?s(r,-1):r.ch);if(e.doc.direction=="rtl"||o.level==1){var L=o.level==1==n<0,Q=s(r,L?1:-1);if(Q!=null&&(L?Q<=o.to&&Q<=C.end:Q>=o.from&&Q>=C.begin)){var Y=L?"before":"after";return new je(r.line,Q,Y)}}var Se=function(Xe,Ze,Ge){for(var tt=function(At,Yt){return Yt?new je(r.line,s(At,1),"before"):new je(r.line,At,"after")};Xe>=0&&Xe<a.length;Xe+=Ze){var st=a[Xe],ot=Ze>0==(st.level!=1),mt=ot?Ge.begin:s(Ge.end,-1);if(st.from<=mt&&mt<st.to)return tt(mt,ot);if(mt=ot?st.from:s(st.to,-1),Ge.begin<=mt&&mt<Ge.end)return tt(mt,ot)}},Me=Se(i+n,n,C);if(Me)return Me;var Fe=n>0?C.end:s(C.begin,-1);return Fe!=null&&!(n>0&&Fe==t.text.length)&&(Me=Se(n>0?0:a.length-1,n,d(Fe)),Me)?Me:null}var pa={selectAll:Wo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Dr(e,function(t){if(t.empty()){var r=Qe(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:je(t.head.line+1,0)}:{from:t.head,to:je(t.head.line,r)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Dr(e,function(t){return{from:je(t.from().line,0),to:ut(e.doc,je(t.to().line+1,0))}})},delLineLeft:function(e){return Dr(e,function(t){return{from:je(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Dr(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return Dr(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"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(je(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(je(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return as(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return is(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 r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},se)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},se)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?is(e,t.head):n},se)},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=[],r=e.listSelections(),n=e.options.tabSize,a=0;a<r.length;a++){var i=r[a].from(),o=p(e.getLine(i.line),i.ch,n);t.push(Z(n-o%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return fn(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++){if(!t[n].empty())continue;var a=t[n].head,i=Qe(e.doc,a.line).text;if(i){if(a.ch==i.length&&(a=new je(a.line,a.ch-1)),a.ch>0)a=new je(a.line,a.ch+1),e.replaceRange(i.charAt(a.ch-1)+i.charAt(a.ch-2),je(a.line,a.ch-2),a,"+transpose");else if(a.line>e.doc.first){var o=Qe(e.doc,a.line-1).text;o&&(a=new je(a.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),je(a.line-1,o.length-1),a,"+transpose"))}}r.push(new Et(a,a))}e.setSelections(r)})},newlineAndIndent:function(e){return fn(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Sr(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function as(e,t){var r=Qe(e.doc,t),n=it(r);return n!=r&&(t=xt(n)),Ai(!0,e,n,t,1)}function Nl(e,t){var r=Qe(e.doc,t),n=ht(r);return n!=r&&(t=xt(n)),Ai(!0,e,r,t,-1)}function is(e,t){var r=as(e,t.line),n=Qe(e.doc,r.line),a=Ne(n,e.doc.direction);if(!a||a[0].level==0){var i=Math.max(r.ch,n.text.search(/\S/)),o=t.line==r.line&&t.ch<=i&&t.ch;return je(r.line,o?0:i,r.sticky)}return r}function Ga(e,t,r){if(typeof t=="string"&&(t=pa[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),a=t(e)!=Ee}finally{e.display.shift=n,e.state.suppressEdits=!1}return a}function jl(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var a=Mr(t,e.state.keyMaps[n],r,e);if(a)return a}return e.options.extraKeys&&Mr(t,e.options.extraKeys,r,e)||Mr(t,e.options.keyMap,r,e)}var Ul=new _;function ma(e,t,r,n){var a=e.state.keySeq;if(a){if(ts(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ul.set(50,function(){e.state.keySeq==a&&(e.state.keySeq=null,e.display.input.reset())}),os(e,a+" "+t,r,n))return!0}return os(e,t,r,n)}function os(e,t,r,n){var a=jl(e,t,n);return a=="multi"&&(e.state.keySeq=t),a=="handled"&&Zt(e,"keyHandled",e,t,r),(a=="handled"||a=="multi")&&(f(r),di(e)),!!a}function ss(e,t){var r=rs(t,!0);return r?t.shiftKey&&!e.state.keySeq?ma(e,"Shift-"+r,t,function(n){return Ga(e,n,!0)})||ma(e,r,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return Ga(e,n)}):ma(e,r,t,function(n){return Ga(e,n)}):!1}function Il(e,t,r){return ma(e,"'"+r+"'",t,function(n){return Ga(e,n,!0)})}var Oi=null;function ls(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=ie(),Ie(t,e))return;R&&S<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var n=ss(t,e);B&&(Oi=n?r:null,!n&&r==88&&!Ct&&(K?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),te&&!K&&!n&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),r==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Fl(t)}function Fl(e){var t=e.display.lineDiv;I(t,"CodeMirror-crosshair");function r(n){(n.keyCode==18||!n.altKey)&&(me(t,"CodeMirror-crosshair"),Ke(document,"keyup",r),Ke(document,"mouseover",r))}ge(document,"keyup",r),ge(document,"mouseover",r)}function us(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ie(this,e)}function cs(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(Dn(t.display,e)||Ie(t,e)||e.ctrlKey&&!e.altKey||K&&e.metaKey)return;var r=e.keyCode,n=e.charCode;if(B&&r==Oi){Oi=null,f(e);return}if(B&&(!e.which||e.which<10)&&ss(t,e))return;var a=String.fromCharCode(n==null?r:n);if(a=="\b")return;if(Il(t,e,a))return;t.display.input.onKeyPress(e)}var Bl=400,Li=function(e,t,r){this.time=e,this.pos=t,this.button=r};Li.prototype.compare=function(e,t,r){return this.time+Bl>e&&ct(t,this.pos)==0&&r==this.button};var ga,va;function Wl(e,t){var r=+new Date;return va&&va.compare(r,e,t)?(ga=va=null,"triple"):ga&&ga.compare(r,e,t)?(va=new Li(r,e,t),ga=null,"double"):(ga=new Li(r,e,t),va=null,"single")}function ds(e){var t=this,r=t.display;if(Ie(t,e)||r.activeTouch&&r.input.supportsTouch())return;if(r.input.ensurePolled(),r.shift=e.shiftKey,Dn(r,e)){O||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(Ri(t,e))return;var n=ir(t,e),a=he(e),i=n?Wl(n,a):"single";if(window.focus(),a==1&&t.state.selectingText&&t.state.selectingText(e),n&&Hl(t,a,n,i,e))return;a==1?n?Kl(t,n,i,e):V(e)==r.scroller&&f(e):a==2?(n&&Ba(t.doc,n),setTimeout(function(){return r.input.focus()},20)):a==3&&(Pe?t.display.input.onContextMenu(e):fo(t))}function Hl(e,t,r,n,a){var i="Click";return n=="double"?i="Double"+i:n=="triple"&&(i="Triple"+i),i=(t==1?"Left":t==2?"Middle":"Right")+i,ma(e,ns(i,a),a,function(o){if(typeof o=="string"&&(o=pa[o]),!o)return!1;var s=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s=o(e,r)!=Ee}finally{e.state.suppressEdits=!1}return s})}function zl(e,t,r){var n=e.getOption("configureMouse"),a=n?n(e,t,r):{};if(a.unit==null){var i=ke?r.shiftKey&&r.metaKey:r.altKey;a.unit=i?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(a.extend==null||e.doc.extend)&&(a.extend=e.doc.extend||r.shiftKey),a.addNew==null&&(a.addNew=K?r.metaKey:r.ctrlKey),a.moveOnDrag==null&&(a.moveOnDrag=!(K?r.altKey:r.ctrlKey)),a}function Kl(e,t,r,n){R?setTimeout(c(co,e),0):e.curOp.focus=ie();var a=zl(e,r,n),i=e.doc.sel,o;e.options.dragDrop&&Le&&!e.isReadOnly()&&r=="single"&&(o=i.contains(t))>-1&&(ct((o=i.ranges[o]).from(),t)<0||t.xRel>0)&&(ct(o.to(),t)>0||t.xRel<0)?Xl(e,n,t,a):Gl(e,n,t,a)}function Xl(e,t,r,n){var a=e.display,i=!1,o=$t(e,function(d){O&&(a.scroller.draggable=!1),e.state.draggingText=!1,Ke(a.wrapper.ownerDocument,"mouseup",o),Ke(a.wrapper.ownerDocument,"mousemove",s),Ke(a.scroller,"dragstart",u),Ke(a.scroller,"drop",o),i||(f(d),n.addNew||Ba(e.doc,r,null,null,n.extend),O&&!ye||R&&S==9?setTimeout(function(){a.wrapper.ownerDocument.body.focus({preventScroll:!0}),a.input.focus()},20):a.input.focus())}),s=function(d){i=i||Math.abs(t.clientX-d.clientX)+Math.abs(t.clientY-d.clientY)>=10},u=function(){return i=!0};O&&(a.scroller.draggable=!0),e.state.draggingText=o,o.copy=!n.moveOnDrag,a.scroller.dragDrop&&a.scroller.dragDrop(),ge(a.wrapper.ownerDocument,"mouseup",o),ge(a.wrapper.ownerDocument,"mousemove",s),ge(a.scroller,"dragstart",u),ge(a.scroller,"drop",o),fo(e),setTimeout(function(){return a.input.focus()},20)}function fs(e,t,r){if(r=="char")return new Et(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new Et(je(t.line,0),ut(e.doc,je(t.line+1,0)));var n=r(e,t);return new Et(n.from,n.to)}function Gl(e,t,r,n){var a=e.display,i=e.doc;f(t);var o,s,u=i.sel,d=u.ranges;if(n.addNew&&!n.extend?(s=i.sel.contains(r),s>-1?o=d[s]:o=new Et(r,r)):(o=i.sel.primary(),s=i.sel.primIndex),n.unit=="rectangle")n.addNew||(o=new Et(r,r)),r=ir(e,t,!0,!0),s=-1;else{var C=fs(e,r,n.unit);n.extend?o=Ci(o,C.anchor,C.head,n.extend):o=C}n.addNew?s==-1?(s=d.length,tn(i,wn(e,d.concat([o]),s),{scroll:!1,origin:"*mouse"})):d.length>1&&d[s].empty()&&n.unit=="char"&&!n.extend?(tn(i,wn(e,d.slice(0,s).concat(d.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=i.sel):Si(i,s,o,Ae):(s=0,tn(i,new gn([o],0),Ae),u=i.sel);var L=r;function Q(Ge){if(ct(L,Ge)==0)return;if(L=Ge,n.unit=="rectangle"){for(var tt=[],st=e.options.tabSize,ot=p(Qe(i,r.line).text,r.ch,st),mt=p(Qe(i,Ge.line).text,Ge.ch,st),At=Math.min(ot,mt),Yt=Math.max(ot,mt),Nt=Math.min(r.line,Ge.line),hn=Math.min(e.lastLine(),Math.max(r.line,Ge.line));Nt<=hn;Nt++){var ln=Qe(i,Nt).text,Ht=fe(ln,At,st);At==Yt?tt.push(new Et(je(Nt,Ht),je(Nt,Ht))):ln.length>Ht&&tt.push(new Et(je(Nt,Ht),je(Nt,fe(ln,Yt,st))))}tt.length||tt.push(new Et(r,r)),tn(i,wn(e,u.ranges.slice(0,s).concat(tt),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Ge)}else{var un=o,qt=fs(e,Ge,n.unit),Xt=un.anchor,zt;ct(qt.anchor,Xt)>0?(zt=qt.head,Xt=Zn(un.from(),qt.anchor)):(zt=qt.anchor,Xt=pr(un.to(),qt.head));var jt=u.ranges.slice(0);jt[s]=$l(e,new Et(ut(i,Xt),zt)),tn(i,wn(e,jt,s),Ae)}}var Y=a.wrapper.getBoundingClientRect(),Se=0;function Me(Ge){var tt=++Se,st=ir(e,Ge,!0,n.unit=="rectangle");if(!st)return;if(ct(st,L)!=0){e.curOp.focus=ie(),Q(st);var ot=Pa(a,i);(st.line>=ot.to||st.line<ot.from)&&setTimeout($t(e,function(){Se==tt&&Me(Ge)}),150)}else{var mt=Ge.clientY<Y.top?-20:Ge.clientY>Y.bottom?20:0;mt&&setTimeout($t(e,function(){if(Se!=tt)return;a.scroller.scrollTop+=mt,Me(Ge)}),50)}}function Fe(Ge){e.state.selectingText=!1,Se=Infinity,Ge&&(f(Ge),a.input.focus()),Ke(a.wrapper.ownerDocument,"mousemove",Xe),Ke(a.wrapper.ownerDocument,"mouseup",Ze),i.history.lastSelOrigin=null}var Xe=$t(e,function(Ge){Ge.buttons===0||!he(Ge)?Fe(Ge):Me(Ge)}),Ze=$t(e,Fe);e.state.selectingText=Ze,ge(a.wrapper.ownerDocument,"mousemove",Xe),ge(a.wrapper.ownerDocument,"mouseup",Ze)}function $l(e,t){var r=t.anchor,n=t.head,a=Qe(e.doc,r.line);if(ct(r,n)==0&&r.sticky==n.sticky)return t;var i=Ne(a);if(!i)return t;var o=$e(i,r.ch,r.sticky),s=i[o];if(s.from!=r.ch&&s.to!=r.ch)return t;var u=o+(s.from==r.ch==(s.level!=1)?0:1);if(u==0||u==i.length)return t;var d;if(n.line!=r.line)d=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var C=$e(i,n.ch,n.sticky),L=C-o||(n.ch-r.ch)*(s.level==1?-1:1);C==u-1||C==u?d=L<0:d=L>0}var Q=i[u+(d?-1:0)],Y=d==(Q.level==1),Se=Y?Q.from:Q.to,Me=Y?"after":"before";return r.ch==Se&&r.sticky==Me?t:new Et(new je(r.line,Se,Me),n)}function hs(e,t,r,n){var a,i;if(t.touches)a=t.touches[0].clientX,i=t.touches[0].clientY;else try{a=t.clientX,i=t.clientY}catch(Q){return!1}if(a>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&f(t);var o=e.display,s=o.lineDiv.getBoundingClientRect();if(i>s.bottom||!T(e,r))return b(t);i-=s.top-o.viewOffset;for(var u=0;u<e.display.gutterSpecs.length;++u){var d=o.gutters.childNodes[u];if(d&&d.getBoundingClientRect().right>=a){var C=Ln(e.doc,i),L=e.display.gutterSpecs[u];return xe(e,r,e,C,L.className,t),b(t)}}}function Ri(e,t){return hs(e,t,"gutterClick",!0)}function ps(e,t){if(Dn(e.display,t)||Vl(e,t))return;if(Ie(e,t,"contextmenu"))return;Pe||e.display.input.onContextMenu(t)}function Vl(e,t){return T(e,"gutterContextMenu")?hs(e,t,"gutterContextMenu",!1):!1}function ms(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zr(e)}var Pr={toString:function(){return"CodeMirror.Init"}},gs={},$a={};function Yl(e){var t=e.optionHandlers;function r(n,a,i,o){e.defaults[n]=a,i&&(t[n]=o?function(s,u,d){d!=Pr&&i(s,u,d)}:i)}e.defineOption=r,e.Init=Pr,r("value","",function(n,a){return n.setValue(a)},!0),r("mode",null,function(n,a){n.doc.modeOption=a,Ei(n)},!0),r("indentUnit",2,Ei,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){ia(n),Zr(n),on(n)},!0),r("lineSeparator",null,function(n,a){if(n.doc.lineSep=a,!a)return;var i=[],o=n.doc.first;n.doc.iter(function(u){for(var d=0;;){var C=u.text.indexOf(a,d);if(C==-1)break;d=C+a.length,i.push(je(o,C))}o++});for(var s=i.length-1;s>=0;s--)Lr(n.doc,a,i[s],je(i[s].line,i[s].ch+a.length))}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,a,i){n.state.specialChars=new RegExp(a.source+(a.test(" ")?"":"| "),"g"),i!=Pr&&n.refresh()}),r("specialCharPlaceholder",Cs,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",ae?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,a){return n.getInputField().spellcheck=a},!0),r("autocorrect",!1,function(n,a){return n.getInputField().autocorrect=a},!0),r("autocapitalize",!1,function(n,a){return n.getInputField().autocapitalize=a},!0),r("rtlMoveVisually",!Be),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){ms(n),aa(n)},!0),r("keyMap","default",function(n,a,i){var o=Xa(a),s=i!=Pr&&Xa(i);s&&s.detach&&s.detach(n,o),o.attach&&o.attach(n,s||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Zl,!0),r("gutters",[],function(n,a){n.display.gutterSpecs=yi(a,n.options.lineNumbers),aa(n)},!0),r("fixedGutter",!0,function(n,a){n.display.gutters.style.left=a?ui(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return kr(n)},!0),r("scrollbarStyle","native",function(n){bo(n),kr(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,a){n.display.gutterSpecs=yi(n.options.gutters,a),aa(n)},!0),r("firstLineNumber",1,aa,!0),r("lineNumberFormatter",function(n){return n},aa,!0),r("showCursorWhenSelecting",!1,qr,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,a){a=="nocursor"&&(Cr(n),n.display.input.blur()),n.display.input.readOnlyChanged(a)}),r("screenReaderLabel",null,function(n,a){a=a===""?null:a,n.display.input.screenReaderLabelChanged(a)}),r("disableInput",!1,function(n,a){a||n.display.input.reset()},!0),r("dragDrop",!0,Jl),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,qr,!0),r("singleCursorHeightPerLine",!0,qr,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,ia,!0),r("addModeClass",!1,ia,!0),r("pollInterval",100),r("undoDepth",200,function(n,a){return n.doc.history.undoDepth=a}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,ia,!0),r("moveInputWithCursor",!0,function(n,a){a||n.display.input.resetPosition()}),r("tabindex",null,function(n,a){return n.display.input.getField().tabIndex=a||""}),r("autofocus",null),r("direction","ltr",function(n,a){return n.doc.setDirection(a)},!0),r("phrases",null)}function Jl(e,t,r){var n=r&&r!=Pr;if(!t!=!n){var a=e.display.dragFunctions,i=t?ge:Ke;i(e.display.scroller,"dragstart",a.start),i(e.display.scroller,"dragenter",a.enter),i(e.display.scroller,"dragover",a.over),i(e.display.scroller,"dragleave",a.leave),i(e.display.scroller,"drop",a.drop)}}function Zl(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(me(e.display.wrapper,"CodeMirror-wrap"),En(e)),ci(e),on(e),Zr(e),setTimeout(function(){return kr(e)},100)}function Dt(e,t){var r=this;if(!(this instanceof Dt))return new Dt(e,t);this.options=t=t?l(t):{},l(gs,t,!1);var n=t.value;typeof n=="string"?n=new sn(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var a=new Dt.inputStyles[t.inputStyle](this),i=this.display=new cl(e,n,a,t);i.wrapper.CodeMirror=this,ms(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bo(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 _,keySeq:null,specialChars:null},t.autofocus&&!ae&&i.input.focus(),R&&S<11&&setTimeout(function(){return r.display.input.reset(!0)},20),ql(this),Ol(),ur(this),this.curOp.forceUpdate=!0,Ao(this,n),t.autofocus&&!ae||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&fi(r)},20):Cr(this);for(var o in $a)$a.hasOwnProperty(o)&&$a[o](this,t[o],Pr);Eo(this),t.finishInit&&t.finishInit(this);for(var s=0;s<Mi.length;++s)Mi[s](this);cr(this),O&&t.lineWrapping&&getComputedStyle(i.lineDiv).textRendering=="optimizelegibility"&&(i.lineDiv.style.textRendering="auto")}Dt.defaults=gs,Dt.optionHandlers=$a;function ql(e){var t=e.display;ge(t.scroller,"mousedown",$t(e,ds)),R&&S<11?ge(t.scroller,"dblclick",$t(e,function(u){if(Ie(e,u))return;var d=ir(e,u);if(!d||Ri(e,u)||Dn(e.display,u))return;f(u);var C=e.findWordAt(d);Ba(e.doc,C.anchor,C.head)})):ge(t.scroller,"dblclick",function(u){return Ie(e,u)||f(u)}),ge(t.scroller,"contextmenu",function(u){return ps(e,u)}),ge(t.input.getField(),"contextmenu",function(u){t.scroller.contains(u.target)||ps(e,u)});var r,n={end:0};function a(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function i(u){if(u.touches.length!=1)return!1;var d=u.touches[0];return d.radiusX<=1&&d.radiusY<=1}function o(u,d){if(d.left==null)return!0;var C=d.left-u.left,L=d.top-u.top;return C*C+L*L>20*20}ge(t.scroller,"touchstart",function(u){if(!Ie(e,u)&&!i(u)&&!Ri(e,u)){t.input.ensurePolled(),clearTimeout(r);var d=+new Date;t.activeTouch={start:d,moved:!1,prev:d-n.end<=300?n:null},u.touches.length==1&&(t.activeTouch.left=u.touches[0].pageX,t.activeTouch.top=u.touches[0].pageY)}}),ge(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ge(t.scroller,"touchend",function(u){var d=t.activeTouch;if(d&&!Dn(t,u)&&d.left!=null&&!d.moved&&new Date-d.start<300){var C=e.coordsChar(t.activeTouch,"page"),L;!d.prev||o(d,d.prev)?L=new Et(C,C):!d.prev.prev||o(d,d.prev.prev)?L=e.findWordAt(C):L=new Et(je(C.line,0),ut(e.doc,je(C.line+1,0))),e.setSelection(L.anchor,L.head),e.focus(),f(u)}a()}),ge(t.scroller,"touchcancel",a),ge(t.scroller,"scroll",function(){t.scroller.clientHeight&&(ea(e,t.scroller.scrollTop),sr(e,t.scroller.scrollLeft,!0),xe(e,"scroll",e))}),ge(t.scroller,"mousewheel",function(u){return Co(e,u)}),ge(t.scroller,"DOMMouseScroll",function(u){return Co(e,u)}),ge(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(u){Ie(e,u)||x(u)},over:function(u){Ie(e,u)||(Al(e,u),x(u))},start:function(u){return Tl(e,u)},drop:$t(e,kl),leave:function(u){Ie(e,u)||qo(e)}};var s=t.input.getField();ge(s,"keyup",function(u){return us.call(e,u)}),ge(s,"keydown",$t(e,ls)),ge(s,"keypress",$t(e,cs)),ge(s,"focus",function(u){return fi(e,u)}),ge(s,"blur",function(u){return Cr(e,u)})}var Mi=[];Dt.defineInitHook=function(e){return Mi.push(e)};function ba(e,t,r,n){var a=e.doc,i;r==null&&(r="add"),r=="smart"&&(a.mode.indent?i=dn(e,t).state:r="prev");var o=e.options.tabSize,s=Qe(a,t),u=p(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var d=s.text.match(/^\s*/)[0],C;if(!n&&!/\S/.test(s.text))C=0,r="not";else if(r=="smart"&&(C=a.mode.indent(i,s.text.slice(d.length),s.text),C==Ee||C>150)){if(!n)return;r="prev"}r=="prev"?t>a.first?C=p(Qe(a,t-1).text,null,o):C=0:r=="add"?C=u+e.options.indentUnit:r=="subtract"?C=u-e.options.indentUnit:typeof r=="number"&&(C=u+r),C=Math.max(0,C);var L="",Q=0;if(e.options.indentWithTabs)for(var Y=Math.floor(C/o);Y;--Y)Q+=o,L+=" ";if(Q<C&&(L+=Z(C-Q)),L!=d)return Lr(a,L,je(t,0),je(t,d.length),"+input"),s.stateAfter=null,!0;for(var Se=0;Se<a.sel.ranges.length;Se++){var Me=a.sel.ranges[Se];if(Me.head.line==t&&Me.head.ch<d.length){var Fe=je(t,d.length);Si(a,Se,new Et(Fe,Fe));break}}}var Cn=null;function Va(e){Cn=e}function Di(e,t,r,n,a){var i=e.doc;e.display.shift=!1,n||(n=i.sel);var o=+new Date-200,s=a=="paste"||e.state.pasteIncoming>o,u=lt(t),d=null;if(s&&n.ranges.length>1)if(Cn&&Cn.text.join(`
`)==t){if(n.ranges.length%Cn.text.length==0){d=[];for(var C=0;C<Cn.text.length;C++)d.push(i.splitLines(Cn.text[C]))}}else u.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(d=k(u,function(Xe){return[Xe]}));for(var L=e.curOp.updateInput,Q=n.ranges.length-1;Q>=0;Q--){var Y=n.ranges[Q],Se=Y.from(),Me=Y.to();Y.empty()&&(r&&r>0?Se=je(Se.line,Se.ch-r):e.state.overwrite&&!s?Me=je(Me.line,Math.min(Qe(i,Me.line).text.length,Me.ch+h(u).length)):s&&Cn&&Cn.lineWise&&Cn.text.join(`
`)==u.join(`
`)&&(Se=Me=je(Se.line,0)));var Fe={from:Se,to:Me,text:d?d[Q%d.length]:u,origin:a||(s?"paste":e.state.cutIncoming>o?"cut":"+input")};Or(e.doc,Fe),Zt(e,"inputRead",e,Fe)}t&&!s&&bs(e,t),Sr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=L),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function vs(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&fn(t,function(){return Di(t,r,0,null,"paste")}),!0}function bs(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var a=r.ranges[n];if(a.head.ch>100||n&&r.ranges[n-1].head.line==a.head.line)continue;var i=e.getModeAt(a.head),o=!1;if(i.electricChars){for(var s=0;s<i.electricChars.length;s++)if(t.indexOf(i.electricChars.charAt(s))>-1){o=ba(e,a.head.line,"smart");break}}else i.electricInput&&(i.electricInput.test(Qe(e.doc,a.head.line).text.slice(0,a.head.ch))&&(o=ba(e,a.head.line,"smart")));o&&Zt(e,"electricInput",e,a.head.line)}}function ys(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var a=e.doc.sel.ranges[n].head.line,i={anchor:je(a,0),head:je(a+1,0)};r.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:r}}function xs(e,t,r,n){e.setAttribute("autocorrect",r?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function Es(){var e=v("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=v("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return O?e.style.width="1000px":e.setAttribute("wrap","off"),N&&(e.style.border="1px solid black"),xs(e),t}function Ql(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,a){var i=this.options,o=i[n];if(i[n]==a&&n!="mode")return;i[n]=a,t.hasOwnProperty(n)&&$t(this,t[n])(this,a,o),xe(this,"optionChange",this,n)},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,a){this.state.keyMaps[a?"push":"unshift"](Xa(n))},removeKeyMap:function(n){for(var a=this.state.keyMaps,i=0;i<a.length;++i)if(a[i]==n||a[i].name==n)return a.splice(i,1),!0},addOverlay:rn(function(n,a){var i=n.token?n:e.getMode(this.options,n);if(i.startState)throw new Error("Overlays may not be stateful.");y(this.state.overlays,{mode:i,modeSpec:n,opaque:a&&a.opaque,priority:a&&a.priority||0},function(o){return o.priority}),this.state.modeGen++,on(this)}),removeOverlay:rn(function(n){for(var a=this.state.overlays,i=0;i<a.length;++i){var o=a[i].modeSpec;if(o==n||typeof n=="string"&&o.name==n){a.splice(i,1),this.state.modeGen++,on(this);return}}}),indentLine:rn(function(n,a,i){typeof a!="string"&&typeof a!="number"&&(a==null?a=this.options.smartIndent?"smart":"prev":a=a?"add":"subtract"),jn(this.doc,n)&&ba(this,n,a,i)}),indentSelection:rn(function(n){for(var a=this.doc.sel.ranges,i=-1,o=0;o<a.length;o++){var s=a[o];if(s.empty())s.head.line>i&&(ba(this,s.head.line,n,!0),i=s.head.line,o==this.doc.sel.primIndex&&Sr(this));else{var u=s.from(),d=s.to(),C=Math.max(i,u.line);i=Math.min(this.lastLine(),d.line-(d.ch?0:1))+1;for(var L=C;L<i;++L)ba(this,L,n);var Q=this.doc.sel.ranges;u.ch==0&&a.length==Q.length&&Q[o].from().ch>0&&Si(this.doc,o,new Et(u,Q[o].to()),q)}}}),getTokenAt:function(n,a){return Mn(this,n,a)},getLineTokens:function(n,a){return Mn(this,je(n),a,!0)},getTokenTypeAt:function(n){n=ut(this.doc,n);var a=Br(this,Qe(this.doc,n.line)),i=0,o=(a.length-1)/2,s=n.ch,u;if(s==0)u=a[2];else for(;;){var d=i+o>>1;if((d?a[d*2-1]:0)>=s)o=d;else if(a[d*2+1]<s)i=d+1;else{u=a[d*2+2];break}}var C=u?u.indexOf("overlay "):-1;return C<0?u:C==0?null:u.slice(0,C-1)},getModeAt:function(n){var a=this.doc.mode;return a.innerMode?e.innerMode(a,this.getTokenAt(n).state).mode:a},getHelper:function(n,a){return this.getHelpers(n,a)[0]},getHelpers:function(n,a){var i=[];if(!r.hasOwnProperty(a))return i;var o=r[a],s=this.getModeAt(n);if(typeof s[a]=="string")o[s[a]]&&i.push(o[s[a]]);else if(s[a])for(var u=0;u<s[a].length;u++){var d=o[s[a][u]];d&&i.push(d)}else s.helperType&&o[s.helperType]?i.push(o[s.helperType]):o[s.name]&&i.push(o[s.name]);for(var C=0;C<o._global.length;C++){var L=o._global[C];L.pred(s,this)&&U(i,L.val)==-1&&i.push(L.val)}return i},getStateAfter:function(n,a){var i=this.doc;return n=qn(i,n==null?i.first+i.size-1:n),dn(this,n+1,a).state},cursorCoords:function(n,a){var i,o=this.doc.sel.primary();return n==null?i=o.head:typeof n=="object"?i=ut(this.doc,n):i=n?o.from():o.to(),_n(this,i,a||"page")},charCoords:function(n,a){return ai(this,ut(this.doc,n),a||"page")},coordsChar:function(n,a){return n=no(this,n,a||"page"),oi(this,n.left,n.top)},lineAtHeight:function(n,a){return n=no(this,{top:n,left:0},a||"page").top,Ln(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,a,i){var o=!1,s;if(typeof n=="number"){var u=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>u&&(n=u,o=!0),s=Qe(this.doc,n)}else s=n;return La(this,s,{top:0,left:0},a||"page",i||o).top+(o?this.doc.height-Mt(s):0)},defaultTextHeight:function(){return _r(this.display)},defaultCharWidth:function(){return wr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,a,i,o,s){var u=this.display;n=_n(this,ut(this.doc,n));var d=n.bottom,C=n.left;if(a.style.position="absolute",a.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(a),u.sizer.appendChild(a),o=="over")d=n.top;else if(o=="above"||o=="near"){var L=Math.max(u.wrapper.clientHeight,this.doc.height),Q=Math.max(u.sizer.clientWidth,u.lineSpace.clientWidth);(o=="above"||n.bottom+a.offsetHeight>L)&&n.top>a.offsetHeight?d=n.top-a.offsetHeight:n.bottom+a.offsetHeight<=L&&(d=n.bottom),C+a.offsetWidth>Q&&(C=Q-a.offsetWidth)}a.style.top=d+"px",a.style.left=a.style.right="",s=="right"?(C=u.sizer.clientWidth-a.offsetWidth,a.style.right="0px"):(s=="left"?C=0:s=="middle"&&(C=(u.sizer.clientWidth-a.offsetWidth)/2),a.style.left=C+"px"),i&&Js(this,{left:C,top:d,right:C+a.offsetWidth,bottom:d+a.offsetHeight})},triggerOnKeyDown:rn(ls),triggerOnKeyPress:rn(cs),triggerOnKeyUp:us,triggerOnMouseDown:rn(ds),execCommand:function(n){if(pa.hasOwnProperty(n))return pa[n].call(null,this)},triggerElectric:rn(function(n){bs(this,n)}),findPosH:function(n,a,i,o){var s=1;a<0&&(s=-1,a=-a);for(var u=ut(this.doc,n),d=0;d<a&&!(u=Pi(this.doc,u,s,i,o),u.hitSide);++d);return u},moveH:rn(function(n,a){var i=this;this.extendSelectionsBy(function(o){return i.display.shift||i.doc.extend||o.empty()?Pi(i.doc,o.head,n,a,i.options.rtlMoveVisually):n<0?o.from():o.to()},se)}),deleteH:rn(function(n,a){var i=this.doc.sel,o=this.doc;i.somethingSelected()?o.replaceSelection("",null,"+delete"):Dr(this,function(s){var u=Pi(o,s.head,n,a,!1);return n<0?{from:u,to:s.head}:{from:s.head,to:u}})}),findPosV:function(n,a,i,o){var s=1,u=o;a<0&&(s=-1,a=-a);for(var d=ut(this.doc,n),C=0;C<a;++C){var L=_n(this,d,"div");if(u==null?u=L.left:L.left=u,d=_s(this,L,s,i),d.hitSide)break}return d},moveV:rn(function(n,a){var i=this,o=this.doc,s=[],u=!this.display.shift&&!o.extend&&o.sel.somethingSelected();if(o.extendSelectionsBy(function(C){if(u)return n<0?C.from():C.to();var L=_n(i,C.head,"div");C.goalColumn!=null&&(L.left=C.goalColumn),s.push(L.left);var Q=_s(i,L,n,a);return a=="page"&&C==o.sel.primary()&&pi(i,ai(i,Q,"div").top-L.top),Q},se),s.length)for(var d=0;d<o.sel.ranges.length;d++)o.sel.ranges[d].goalColumn=s[d]}),findWordAt:function(n){var a=this.doc,i=Qe(a,n.line).text,o=n.ch,s=n.ch;if(i){var u=this.getHelper(n,"wordChars");(n.sticky=="before"||s==i.length)&&o?--o:++s;for(var d=i.charAt(o),C=_e(d,u)?function(L){return _e(L,u)}:/\s/.test(d)?function(L){return/\s/.test(L)}:function(L){return!/\s/.test(L)&&!_e(L)};o>0&&C(i.charAt(o-1));)--o;for(;s<i.length&&C(i.charAt(s));)++s}return new Et(je(n.line,o),je(n.line,s))},toggleOverwrite:function(n){if(n!=null&&n==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):me(this.display.cursorDiv,"CodeMirror-overwrite"),xe(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==ie()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:rn(function(n,a){Qr(this,n,a)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-kn(this)-this.display.barHeight,width:n.scrollWidth-kn(this)-this.display.barWidth,clientHeight:ti(this),clientWidth:rr(this)}},scrollIntoView:rn(function(n,a){n==null?(n={from:this.doc.sel.primary().head,to:null},a==null&&(a=this.options.cursorScrollMargin)):typeof n=="number"?n={from:je(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=a||0,n.from.line!=null?Zs(this,n):po(this,n.from,n.to,n.margin)}),setSize:rn(function(n,a){var i=this,o=function(u){return typeof u=="number"||/^\d+$/.test(String(u))?u+"px":u};n!=null&&(this.display.wrapper.style.width=o(n)),a!=null&&(this.display.wrapper.style.height=o(a)),this.options.lineWrapping&&Qi(this);var s=this.display.viewFrom;this.doc.iter(s,this.display.viewTo,function(u){if(u.widgets){for(var d=0;d<u.widgets.length;d++)if(u.widgets[d].noHScroll){Hn(i,s,"widget");break}}++s}),this.curOp.forceUpdate=!0,xe(this,"refresh",this)}),operation:function(n){return fn(this,n)},startOperation:function(){return ur(this)},endOperation:function(){return cr(this)},refresh:rn(function(){var n=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,Zr(this),Qr(this,this.doc.scrollLeft,this.doc.scrollTop),vi(this.display),(n==null||Math.abs(n-_r(this.display))>.5||this.options.lineWrapping)&&ci(this),xe(this,"refresh",this)}),swapDoc:rn(function(n){var a=this.doc;return a.cm=null,this.state.selectingText&&this.state.selectingText(),Ao(this,n),Zr(this),this.display.input.reset(),Qr(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,Zt(this,"swapDoc",this,a),a}),phrase:function(n){var a=this.options.phrases;return a&&Object.prototype.hasOwnProperty.call(a,n)?a[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}},M(e),e.registerHelper=function(n,a,i){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][a]=i},e.registerGlobalHelper=function(n,a,i,o){e.registerHelper(n,a,o),r[n]._global.push({pred:i,val:o})}}function Pi(e,t,r,n,a){var i=t,o=r,s=Qe(e,t.line),u=a&&e.direction=="rtl"?-r:r;function d(){var Ze=t.line+u;return Ze<e.first||Ze>=e.first+e.size?!1:(t=new je(Ze,t.ch,t.sticky),s=Qe(e,Ze))}function C(Ze){var Ge;if(n=="codepoint"){var tt=s.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(tt)?Ge=null:Ge=new je(t.line,Math.max(0,Math.min(s.text.length,t.ch+r*(tt>=55296&&tt<56320?2:1))),-r)}else a?Ge=Pl(e.cm,s,t,r):Ge=Ti(s,t,r);if(Ge==null)if(!Ze&&d())t=Ai(a,e.cm,s,t.line,u);else return!1;else t=Ge;return!0}if(n=="char"||n=="codepoint")C();else if(n=="column")C(!0);else if(n=="word"||n=="group")for(var L=null,Q=n=="group",Y=e.cm&&e.cm.getHelper(t,"wordChars"),Se=!0;!(r<0&&!C(!Se));Se=!1){var Me=s.text.charAt(t.ch)||`
`,Fe=_e(Me,Y)?"w":Q&&Me==`
`?"n":!Q||/\s/.test(Me)?null:"p";if(Q&&!Se&&!Fe&&(Fe="s"),L&&L!=Fe){r<0&&(r=1,C(),t.sticky="after");break}if(Fe&&(L=Fe),r>0&&!C(!Se))break}var Xe=Ha(e,t,i,o,!0);return He(i,Xe)&&(Xe.hitSide=!0),Xe}function _s(e,t,r,n){var a=e.doc,i=t.left,o;if(n=="page"){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*_r(e.display),3);o=(r>0?t.bottom:t.top)+r*u}else n=="line"&&(o=r>0?t.bottom+3:t.top-3);for(var d;!(d=oi(e,i,o),!d.outside);){if(r<0?o<=0:o>=a.height){d.hitSide=!0;break}o+=r*5}return d}var wt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};wt.prototype.init=function(e){var t=this,r=this,n=r.cm,a=r.div=e.lineDiv;xs(a,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function i(s){for(var u=s.target;u;u=u.parentNode){if(u==a)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(u.className))break}return!1}ge(a,"paste",function(s){if(!i(s)||Ie(n,s)||vs(s,n))return;S<=11&&setTimeout($t(n,function(){return t.updateFromDOM()}),20)}),ge(a,"compositionstart",function(s){t.composing={data:s.data,done:!1}}),ge(a,"compositionupdate",function(s){t.composing||(t.composing={data:s.data,done:!1})}),ge(a,"compositionend",function(s){t.composing&&(s.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ge(a,"touchstart",function(){return r.forceCompositionEnd()}),ge(a,"input",function(){t.composing||t.readFromDOMSoon()});function o(s){if(!i(s)||Ie(n,s))return;if(n.somethingSelected())Va({lineWise:!1,text:n.getSelections()}),s.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var u=ys(n);Va({lineWise:!0,text:u.text}),s.type=="cut"&&n.operation(function(){n.setSelections(u.ranges,0,q),n.replaceSelection("",null,"cut")})}else return;if(s.clipboardData){s.clipboardData.clearData();var d=Cn.text.join(`
`);if(s.clipboardData.setData("Text",d),s.clipboardData.getData("Text")==d){s.preventDefault();return}}var C=Es(),L=C.firstChild;n.display.lineSpace.insertBefore(C,n.display.lineSpace.firstChild),L.value=Cn.text.join(`
`);var Q=document.activeElement;A(L),setTimeout(function(){n.display.lineSpace.removeChild(C),Q.focus(),Q==a&&r.showPrimarySelection()},50)}ge(a,"copy",o),ge(a,"cut",o)},wt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},wt.prototype.prepareSelection=function(){var e=lo(this.cm,!1);return e.focus=document.activeElement==this.div,e},wt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},wt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},wt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),a=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||a.line<t.display.viewFrom){e.removeAllRanges();return}var i=Ya(t,e.anchorNode,e.anchorOffset),o=Ya(t,e.focusNode,e.focusOffset);if(i&&!i.bad&&o&&!o.bad&&ct(Zn(i,o),n)==0&&ct(pr(i,o),a)==0)return;var s=t.display.view,u=n.line>=t.display.viewFrom&&ws(t,n)||{node:s[0].measure.map[2],offset:0},d=a.line<t.display.viewTo&&ws(t,a);if(!d){var C=s[s.length-1].measure,L=C.maps?C.maps[C.maps.length-1]:C.map;d={node:L[L.length-1],offset:L[L.length-2]-L[L.length-3]}}if(!u||!d){e.removeAllRanges();return}var Q=e.rangeCount&&e.getRangeAt(0),Y;try{Y=$(u.node,u.offset,d.offset,d.node)}catch(Se){}Y&&(!te&&t.state.focused?(e.collapse(u.node,u.offset),Y.collapsed||(e.removeAllRanges(),e.addRange(Y))):(e.removeAllRanges(),e.addRange(Y)),Q&&e.anchorNode==null?e.addRange(Q):te&&this.startGracePeriod()),this.rememberSelection()},wt.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)},wt.prototype.showMultipleSelections=function(e){pe(this.cm.display.cursorDiv,e.cursors),pe(this.cm.display.selectionDiv,e.selection)},wt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},wt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return w(this.div,t)},wt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},wt.prototype.blur=function(){this.div.blur()},wt.prototype.getField=function(){return this.div},wt.prototype.supportsTouch=function(){return!0},wt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():fn(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)},wt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},wt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(j&&G&&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 r=Ya(t,e.anchorNode,e.anchorOffset),n=Ya(t,e.focusNode,e.focusOffset);r&&n&&fn(t,function(){tn(t.doc,Kn(r,n),q),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})},wt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,r=e.doc.sel.primary(),n=r.from(),a=r.to();if(n.ch==0&&n.line>e.firstLine()&&(n=je(n.line-1,Qe(e.doc,n.line-1).length)),a.ch==Qe(e.doc,a.line).text.length&&a.line<e.lastLine()&&(a=je(a.line+1,0)),n.line<t.viewFrom||a.line>t.viewTo-1)return!1;var i,o,s;n.line==t.viewFrom||(i=or(e,n.line))==0?(o=xt(t.view[0].line),s=t.view[0].node):(o=xt(t.view[i].line),s=t.view[i-1].node.nextSibling);var u=or(e,a.line),d,C;if(u==t.view.length-1?(d=t.viewTo-1,C=t.lineDiv.lastChild):(d=xt(t.view[u+1].line)-1,C=t.view[u+1].node.previousSibling),!s)return!1;for(var L=e.doc.splitLines(tu(e,s,C,o,d)),Q=On(e.doc,je(o,0),je(d,Qe(e.doc,d).text.length));L.length>1&&Q.length>1;)if(h(L)==h(Q))L.pop(),Q.pop(),d--;else if(L[0]==Q[0])L.shift(),Q.shift(),o++;else break;for(var Y=0,Se=0,Me=L[0],Fe=Q[0],Xe=Math.min(Me.length,Fe.length);Y<Xe&&Me.charCodeAt(Y)==Fe.charCodeAt(Y);)++Y;for(var Ze=h(L),Ge=h(Q),tt=Math.min(Ze.length-(L.length==1?Y:0),Ge.length-(Q.length==1?Y:0));Se<tt&&Ze.charCodeAt(Ze.length-Se-1)==Ge.charCodeAt(Ge.length-Se-1);)++Se;if(L.length==1&&Q.length==1&&o==n.line)for(;Y&&Y>n.ch&&Ze.charCodeAt(Ze.length-Se-1)==Ge.charCodeAt(Ge.length-Se-1);)Y--,Se++;L[L.length-1]=Ze.slice(0,Ze.length-Se).replace(/^\u200b+/,""),L[0]=L[0].slice(Y).replace(/\u200b+$/,"");var st=je(o,Y),ot=je(d,Q.length?h(Q).length-Se:0);if(L.length>1||L[0]||ct(st,ot))return Lr(e.doc,L,st,ot,"+input"),!0},wt.prototype.ensurePolled=function(){this.forceCompositionEnd()},wt.prototype.reset=function(){this.forceCompositionEnd()},wt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},wt.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)},wt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&fn(this.cm,function(){return on(e.cm)})},wt.prototype.setUneditable=function(e){e.contentEditable="false"},wt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||$t(this.cm,Di)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},wt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},wt.prototype.onContextMenu=function(){},wt.prototype.resetPosition=function(){},wt.prototype.needsContentAttribute=!0;function ws(e,t){var r=ni(e,t.line);if(!r||r.hidden)return null;var n=Qe(e.doc,t.line),a=Vi(r,n,t.line),i=Ne(n,e.doc.direction),o="left";if(i){var s=$e(i,t.ch);o=s%2?"right":"left"}var u=Zi(a.map,t.ch,o);return u.offset=u.collapse=="right"?u.end:u.start,u}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Nr(e,t){return t&&(e.bad=!0),e}function tu(e,t,r,n,a){var i="",o=!1,s=e.doc.lineSeparator(),u=!1;function d(Y){return function(Se){return Se.id==Y}}function C(){o&&(i+=s,u&&(i+=s),o=u=!1)}function L(Y){Y&&(C(),i+=Y)}function Q(Y){if(Y.nodeType==1){var Se=Y.getAttribute("cm-text");if(Se){L(Se);return}var Me=Y.getAttribute("cm-marker"),Fe;if(Me){var Xe=e.findMarks(je(n,0),je(a+1,0),d(+Me));Xe.length&&(Fe=Xe[0].find(0))&&L(On(e.doc,Fe.from,Fe.to).join(s));return}if(Y.getAttribute("contenteditable")=="false")return;var Ze=/^(pre|div|p|li|table|br)$/i.test(Y.nodeName);if(!/^br$/i.test(Y.nodeName)&&Y.textContent.length==0)return;Ze&&C();for(var Ge=0;Ge<Y.childNodes.length;Ge++)Q(Y.childNodes[Ge]);/^(pre|p)$/i.test(Y.nodeName)&&(u=!0),Ze&&(o=!0)}else Y.nodeType==3&&L(Y.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Q(t),t==r);)t=t.nextSibling,u=!1;return i}function Ya(e,t,r){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[r],!n)return Nr(e.clipPos(je(e.display.viewTo-1)),!0);t=null,r=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 a=0;a<e.display.view.length;a++){var i=e.display.view[a];if(i.node==n)return nu(i,t,r)}}function nu(e,t,r){var n=e.text.firstChild,a=!1;if(!t||!w(n,t))return Nr(je(xt(e.line),0),!0);if(t==n&&(a=!0,t=n.childNodes[r],r=0,!t)){var i=e.rest?h(e.rest):e.line;return Nr(je(xt(i),i.text.length),a)}var o=t.nodeType==3?t:null,s=t;for(!o&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(o=t.firstChild,r&&(r=o.nodeValue.length));s.parentNode!=n;)s=s.parentNode;var u=e.measure,d=u.maps;function C(Fe,Xe,Ze){for(var Ge=-1;Ge<(d?d.length:0);Ge++)for(var tt=Ge<0?u.map:d[Ge],st=0;st<tt.length;st+=3){var ot=tt[st+2];if(ot==Fe||ot==Xe){var mt=xt(Ge<0?e.line:e.rest[Ge]),At=tt[st]+Ze;return(Ze<0||ot!=Fe)&&(At=tt[st+(Ze?1:0)]),je(mt,At)}}}var L=C(o,s,r);if(L)return Nr(L,a);for(var Q=s.nextSibling,Y=o?o.nodeValue.length-r:0;Q;Q=Q.nextSibling){if(L=C(Q,Q.firstChild,0),L)return Nr(je(L.line,L.ch-Y),a);Y+=Q.textContent.length}for(var Se=s.previousSibling,Me=r;Se;Se=Se.previousSibling){if(L=C(Se,Se.firstChild,-1),L)return Nr(je(L.line,L.ch+Me),a);Me+=Se.textContent.length}}var Ft=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new _,this.hasSelection=!1,this.composing=null};Ft.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var a=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),N&&(a.style.width="0px"),ge(a,"input",function(){R&&S>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),ge(a,"paste",function(o){if(Ie(n,o)||vs(o,n))return;n.state.pasteIncoming=+new Date,r.fastPoll()});function i(o){if(Ie(n,o))return;if(n.somethingSelected())Va({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var s=ys(n);Va({lineWise:!0,text:s.text}),o.type=="cut"?n.setSelections(s.ranges,null,q):(r.prevInput="",a.value=s.text.join(`
`),A(a))}else return;o.type=="cut"&&(n.state.cutIncoming=+new Date)}ge(a,"cut",i),ge(a,"copy",i),ge(e.scroller,"paste",function(o){if(Dn(e,o)||Ie(n,o))return;if(!a.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var s=new Event("paste");s.clipboardData=o.clipboardData,a.dispatchEvent(s)}),ge(e.lineSpace,"selectstart",function(o){Dn(e,o)||f(o)}),ge(a,"compositionstart",function(){var o=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:o,range:n.markText(o,n.getCursor("to"),{className:"CodeMirror-composing"})}}),ge(a,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Ft.prototype.createField=function(e){this.wrapper=Es(),this.textarea=this.wrapper.firstChild},Ft.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ft.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=lo(e);if(e.options.moveInputWithCursor){var a=_n(e,r.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,a.top+o.top-i.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,a.left+o.left-i.left))}return n},Ft.prototype.showSelection=function(e){var t=this.cm,r=t.display;pe(r.cursorDiv,e.cursors),pe(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ft.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&A(this.textarea),R&&S>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",R&&S>=9&&(this.hasSelection=null))},Ft.prototype.getField=function(){return this.textarea},Ft.prototype.supportsTouch=function(){return!1},Ft.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ae||ie()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ft.prototype.blur=function(){this.textarea.blur()},Ft.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ft.prototype.receivedFocus=function(){this.slowPoll()},Ft.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()})},Ft.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},Ft.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||rt(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var a=r.value;if(a==n&&!t.somethingSelected())return!1;if(R&&S>=9&&this.hasSelection===a||K&&/[\uf700-\uf7ff]/.test(a))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=a.charCodeAt(0);if(i==8203&&!n&&(n="\u200B"),i==8666)return this.reset(),this.cm.execCommand("undo")}for(var o=0,s=Math.min(n.length,a.length);o<s&&n.charCodeAt(o)==a.charCodeAt(o);)++o;return fn(t,function(){Di(t,a.slice(o),n.length-o,null,e.composing?"*compose":null),a.length>1e3||a.indexOf(`
`)>-1?r.value=e.prevInput="":e.prevInput=a,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ft.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ft.prototype.onKeyPress=function(){R&&S>=9&&(this.hasSelection=null),this.fastPoll()},Ft.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,a=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=ir(r,e),o=n.scroller.scrollTop;if(!i||B)return;var s=r.options.resetSelectionOnContextMenu;s&&r.doc.sel.contains(i)==-1&&$t(r,tn)(r.doc,Kn(i),q);var u=a.style.cssText,d=t.wrapper.style.cssText,C=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",a.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-C.top-5)+"px; left: "+(e.clientX-C.left-5)+`px;
z-index: 1000; background: `+(R?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var L;O&&(L=window.scrollY),n.input.focus(),O&&window.scrollTo(null,L),n.input.reset(),r.somethingSelected()||(a.value=t.prevInput=" "),t.contextMenuPending=Y,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function Q(){if(a.selectionStart!=null){var Me=r.somethingSelected(),Fe="\u200B"+(Me?a.value:"");a.value="\u21DA",a.value=Fe,t.prevInput=Me?"":"\u200B",a.selectionStart=1,a.selectionEnd=Fe.length,n.selForContextMenu=r.doc.sel}}function Y(){if(t.contextMenuPending!=Y)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=d,a.style.cssText=u,R&&S<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=o),a.selectionStart!=null){(!R||R&&S<9)&&Q();var Me=0,Fe=function(){n.selForContextMenu==r.doc.sel&&a.selectionStart==0&&a.selectionEnd>0&&t.prevInput=="\u200B"?$t(r,Wo)(r):Me++<10?n.detectingSelectAll=setTimeout(Fe,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(Fe,200)}}if(R&&S>=9&&Q(),Pe){x(e);var Se=function(){Ke(window,"mouseup",Se),setTimeout(Y,20)};ge(window,"mouseup",Se)}else setTimeout(Y,50)},Ft.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ft.prototype.setUneditable=function(){},Ft.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?l(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 r=ie();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=s.getValue()}var a;if(e.form&&(ge(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var i=e.form;a=i.submit;try{var o=i.submit=function(){n(),i.submit=a,i.submit(),i.submit=o}}catch(u){}}t.finishInit=function(u){u.save=n,u.getTextArea=function(){return e},u.toTextArea=function(){u.toTextArea=isNaN,n(),e.parentNode.removeChild(u.getWrapperElement()),e.style.display="",e.form&&(Ke(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=a))}},e.style.display="none";var s=Dt(function(u){return e.parentNode.insertBefore(u,e.nextSibling)},t);return s}function au(e){e.off=Ke,e.on=ge,e.wheelEventPixels=dl,e.Doc=sn,e.splitLines=lt,e.countColumn=p,e.findColumn=fe,e.isWordChar=ue,e.Pass=Ee,e.signal=xe,e.Line=Rt,e.changeEnd=Xn,e.scrollbarModel=vo,e.Pos=je,e.cmpPos=ct,e.modes=Ot,e.mimeModes=ft,e.resolveMode=Bt,e.getMode=bt,e.modeExtensions=yt,e.extendMode=Gt,e.copyState=Pt,e.startState=Wt,e.innerMode=Ut,e.commands=pa,e.keyMap=Pn,e.keyName=rs,e.isModifierKey=ts,e.lookupKey=Mr,e.normalizeKeyMap=Dl,e.StringStream=St,e.SharedTextMarker=da,e.TextMarker=$n,e.LineWidget=ca,e.e_preventDefault=f,e.e_stopPropagation=m,e.e_stop=x,e.addClass=I,e.contains=w,e.rmClass=me,e.keyNames=Vn}Yl(Dt),Ql(Dt);var iu="iter insert remove copy getEditor constructor".split(" ");for(var Ja in sn.prototype)sn.prototype.hasOwnProperty(Ja)&&U(iu,Ja)<0&&(Dt.prototype[Ja]=function(e){return function(){return e.apply(this.doc,arguments)}}(sn.prototype[Ja]));return M(sn),Dt.inputStyles={textarea:Ft,contenteditable:wt},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),Kt.apply(this,arguments)},Dt.defineMIME=vn,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,t){Dt.prototype[e]=t},Dt.defineDocExtension=function(e,t){sn.prototype[e]=t},Dt.fromTextArea=ru,au(Dt),Dt.version="5.58.2",Dt})},Y1PL:function(nt,ze,g){"use strict";g.r(ze),g.d(ze,"ResizableTextArea",function(){return U});var W=g("wx14"),be=g("1OyB"),te=g("vuIU"),ve=g("Ji7U"),P=g("LK+K"),J=g("q1tI"),R=g("VTBJ"),S=g("rePB"),O=g("Zm9Q"),z=g("Kwbf"),G=g("c+Xe"),B=g("m+aA"),ye=g("bdgK"),re=new Map;function H(q){q.forEach(function(Ae){var se,fe=Ae.target;(se=re.get(fe))===null||se===void 0||se.forEach(function(F){return F(fe)})})}var N=new ye.default(H),j=null,ae=null;function K(q,Ae){re.has(q)||(re.set(q,new Set),N.observe(q)),re.get(q).add(Ae)}function ke(q,Ae){re.has(q)&&(re.get(q).delete(Ae),re.get(q).size||(N.unobserve(q),re.delete(q)))}var Be=function(q){Object(ve.a)(se,q);var Ae=Object(P.a)(se);function se(){return Object(be.a)(this,se),Ae.apply(this,arguments)}return Object(te.a)(se,[{key:"render",value:function(){return this.props.children}}]),se}(J.Component),oe=J.createContext(null);function Te(q){var Ae=q.children,se=q.onBatchResize,fe=J.useRef(0),F=J.useRef([]),Z=J.useContext(oe),h=J.useCallback(function(k,y,ne){fe.current+=1;var ce=fe.current;F.current.push({size:k,element:y,data:ne}),Promise.resolve().then(function(){ce===fe.current&&(se==null||se(F.current),F.current=[])}),Z==null||Z(k,y,ne)},[se,Z]);return J.createElement(oe.Provider,{value:h},Ae)}function Pe(q){var Ae=q.children,se=q.disabled,fe=J.useRef(null),F=J.useRef(null),Z=J.useContext(oe),h=J.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),k=J.isValidElement(Ae)&&Object(G.c)(Ae),y=k?Ae.ref:null,ne=J.useMemo(function(){return Object(G.a)(y,fe)},[y,fe]),ce=J.useRef(q);ce.current=q;var X=J.useCallback(function(ue){var _e=ce.current,Re=_e.onResize,De=_e.data,we=ue.getBoundingClientRect(),Ce=we.width,et=we.height,qe=ue.offsetWidth,Ye=ue.offsetHeight,$e=Math.floor(Ce),We=Math.floor(et);if(h.current.width!==$e||h.current.height!==We||h.current.offsetWidth!==qe||h.current.offsetHeight!==Ye){var Ne={width:$e,height:We,offsetWidth:qe,offsetHeight:Ye};h.current=Ne;var Ue=qe===Math.round(Ce)?Ce:qe,ge=Ye===Math.round(et)?et:Ye,Je=Object(R.a)(Object(R.a)({},Ne),{},{offsetWidth:Ue,offsetHeight:ge});Z==null||Z(Je,ue,De),Re&&Promise.resolve().then(function(){Re(Je,ue)})}},[]);return J.useEffect(function(){var ue=Object(B.a)(fe.current)||Object(B.a)(F.current);return ue&&!se&&K(ue,X),function(){return ke(ue,X)}},[fe.current,se]),J.createElement(Be,{ref:F},k?J.cloneElement(Ae,{ref:ne}):Ae)}var de="rc-observer-key";function me(q){var Ae=q.children,se=Object(O.a)(Ae);return se.map(function(fe,F){var Z=(fe==null?void 0:fe.key)||"".concat(de,"-").concat(F);return J.createElement(Pe,Object(W.a)({},q,{key:Z}),fe)})}me.Collection=Te;var Oe=me,pe=g("bT9E"),v=g("TSYQ"),ee=g.n(v),$=`
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
`,w=["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"],ie={},I;function D(q){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=q.getAttribute("id")||q.getAttribute("data-reactid")||q.getAttribute("name");if(Ae&&ie[se])return ie[se];var fe=window.getComputedStyle(q),F=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),Z=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),h=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),k=w.map(function(ne){return"".concat(ne,":").concat(fe.getPropertyValue(ne))}).join(";"),y={sizingStyle:k,paddingSize:Z,borderSize:h,boxSizing:F};return Ae&&se&&(ie[se]=y),y}function A(q){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;I||(I=document.createElement("textarea"),I.setAttribute("tab-index","-1"),I.setAttribute("aria-hidden","true"),document.body.appendChild(I)),q.getAttribute("wrap")?I.setAttribute("wrap",q.getAttribute("wrap")):I.removeAttribute("wrap");var F=D(q,Ae),Z=F.paddingSize,h=F.borderSize,k=F.boxSizing,y=F.sizingStyle;I.setAttribute("style","".concat(y,";").concat($)),I.value=q.value||q.placeholder||"";var ne=Number.MIN_SAFE_INTEGER,ce=Number.MAX_SAFE_INTEGER,X=I.scrollHeight,ue;if(k==="border-box"?X+=h:k==="content-box"&&(X-=Z),se!==null||fe!==null){I.value=" ";var _e=I.scrollHeight-Z;se!==null&&(ne=_e*se,k==="border-box"&&(ne=ne+Z+h),X=Math.max(ne,X)),fe!==null&&(ce=_e*fe,k==="border-box"&&(ce=ce+Z+h),ue=X>ce?"":"hidden",X=Math.min(ce,X))}return{height:X,minHeight:ne,maxHeight:ce,overflowY:ue,resize:"none"}}var c=g("Gytx"),l=g.n(c),p;(function(q){q[q.NONE=0]="NONE",q[q.RESIZING=1]="RESIZING",q[q.RESIZED=2]="RESIZED"})(p||(p={}));var _=function(q){Object(ve.a)(se,q);var Ae=Object(P.a)(se);function se(fe){var F;return Object(be.a)(this,se),F=Ae.call(this,fe),F.nextFrameActionId=void 0,F.resizeFrameId=void 0,F.textArea=void 0,F.saveTextArea=function(Z){F.textArea=Z},F.handleResize=function(Z){var h=F.state.resizeStatus,k=F.props,y=k.autoSize,ne=k.onResize;if(h!==p.NONE)return;typeof ne=="function"&&ne(Z),y&&F.resizeOnNextFrame()},F.resizeOnNextFrame=function(){cancelAnimationFrame(F.nextFrameActionId),F.nextFrameActionId=requestAnimationFrame(F.resizeTextarea)},F.resizeTextarea=function(){var Z=F.props.autoSize;if(!Z||!F.textArea)return;var h=Z.minRows,k=Z.maxRows,y=A(F.textArea,!1,h,k);F.setState({textareaStyles:y,resizeStatus:p.RESIZING},function(){cancelAnimationFrame(F.resizeFrameId),F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:p.RESIZED},function(){F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:p.NONE}),F.fixFirefoxAutoScroll()})})})})},F.renderTextArea=function(){var Z=F.props,h=Z.prefixCls,k=h===void 0?"rc-textarea":h,y=Z.autoSize,ne=Z.onResize,ce=Z.className,X=Z.disabled,ue=F.state,_e=ue.textareaStyles,Re=ue.resizeStatus,De=Object(pe.a)(F.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),we=ee()(k,ce,Object(S.a)({},"".concat(k,"-disabled"),X));"value"in De&&(De.value=De.value||"");var Ce=Object(R.a)(Object(R.a)(Object(R.a)({},F.props.style),_e),Re===p.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return J.createElement(Oe,{onResize:F.handleResize,disabled:!(y||ne)},J.createElement("textarea",Object(W.a)({},De,{className:we,style:Ce,ref:F.saveTextArea})))},F.state={textareaStyles:{},resizeStatus:p.NONE},F}return Object(te.a)(se,[{key:"componentDidUpdate",value:function(F){(F.value!==this.props.value||!l()(F.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 F=this.textArea.selectionStart,Z=this.textArea.selectionEnd;this.textArea.setSelectionRange(F,Z)}}catch(h){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(J.Component),U=_,le=function(q){Object(ve.a)(se,q);var Ae=Object(P.a)(se);function se(fe){var F;Object(be.a)(this,se),F=Ae.call(this,fe),F.resizableTextArea=void 0,F.focus=function(){F.resizableTextArea.textArea.focus()},F.saveTextArea=function(h){F.resizableTextArea=h},F.handleChange=function(h){var k=F.props.onChange;F.setValue(h.target.value,function(){F.resizableTextArea.resizeTextarea()}),k&&k(h)},F.handleKeyDown=function(h){var k=F.props,y=k.onPressEnter,ne=k.onKeyDown;h.keyCode===13&&y&&y(h),ne&&ne(h)};var Z=typeof fe.value=="undefined"||fe.value===null?fe.defaultValue:fe.value;return F.state={value:Z},F}return Object(te.a)(se,[{key:"setValue",value:function(F,Z){"value"in this.props||this.setState({value:F},Z)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return J.createElement(U,Object(W.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(F){return"value"in F?{value:F.value}:null}}]),se}(J.Component),Ee=ze.default=le},YiCM:function(nt,ze,g){nt.exports={flexRow:"flexRow___1gyd-",flexJustifyCenter:"flexJustifyCenter___19NSh",flexAlignEnd:"flexAlignEnd___3THeK",flexAlignCenter:"flexAlignCenter___1yurC",flexColumn:"flexColumn___3l0VS",formWrap:"formWrap___28DyB",JupyterFieldWrapElse:"JupyterFieldWrapElse___9ONZN",button:"button___3DTwc",buttonWrap:"buttonWrap___n_juQ",width240:"width240___3x3F-",difficultyHint:"difficultyHint___bU8gT",color888:"color888___3aAYi",color0152d9:"color0152d9___2qsP8",installPackage:"installPackage___3uqSL",apply:"apply___1rKfU",p1:"p1___tgl6j",p2:"p2___1P24b"}},ZW9T:function(nt,ze,g){"use strict";g.d(ze,"a",function(){return Be});var W=g("k1fw"),be=g("miYZ"),te=g("tsqr"),ve=g("rAM+"),P=g("tJVT"),J=g("PpiC"),R=g("q1tI"),S=g.n(R),O=g("bdgK");function z(oe,Te,Pe,de,me){var Oe=Te.getWordUntilPosition(Pe),pe={startLineNumber:Pe.lineNumber,endLineNumber:Pe.lineNumber,startColumn:Oe.startColumn,endColumn:Oe.endColumn},v=de.map(function(ee){return{label:ee,kind:oe.languages.CompletionItemKind.Keyword,insertText:ee,insertTextRules:oe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pe}});return me.map(function(ee){v.push(Object(W.a)(Object(W.a)({},ee),{},{range:pe}))}),v}var G=function(oe){var Te={label:"ifelse",kind:oe.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:oe.languages.CompletionItemInsertTextRule.InsertAsSnippet},Pe=["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"];oe.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(pe,v){var ee=z(oe,pe,v,Pe,[Te]);return{suggestions:ee}}});var de=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];oe.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(pe,v){var ee=[{label:"print",kind:oe.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:oe.languages.CompletionItemInsertTextRule.InsertAsSnippet}],$=z(oe,pe,v,de,ee);return{suggestions:$}}});var me=["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"];oe.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(pe,v){var ee=[Te,{label:"main",kind:oe.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:oe.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:oe.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:oe.languages.CompletionItemInsertTextRule.InsertAsSnippet}],$=z(oe,pe,v,me,ee);return{suggestions:$}}})},B="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",ye=g("LvDl");function re(oe){return/^\d+$/.test(oe)?"".concat(oe,"px"):oe}function H(){}var N=!1,j={"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 ae(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Te=oe;if(Array.isArray(oe)){for(var Pe=0;Pe<oe.length;Pe++){var de=j[oe[Pe]];if(de)return de}return Te[0]}return j[Te]||Te}var K=null,ke=ze.b=function(oe){var Te=oe.width,Pe=Te===void 0?"100%":Te,de=oe.height,me=de===void 0?"100%":de,Oe=oe.value,pe=oe.language,v=pe===void 0?"javascript":pe,ee=oe.style,$=ee===void 0?{}:ee,w=oe.options,ie=w===void 0?{}:w,I=oe.overrideServices,D=I===void 0?{}:I,A=oe.theme,c=A===void 0?"vs-dark":A,l=oe.onEditBlur,p=oe.onSave,_=oe.autoHeight,U=_===void 0?!1:_,le=oe.forbidCopy,Ee=le===void 0?!1:le,q=oe.onChange,Ae=q===void 0?H:q,se=oe.editorDidMount,fe=se===void 0?H:se,F=oe.onFocus,Z=F===void 0?H:F,h=oe.filename,k=h===void 0?"educoder.txt":h,y=Object(J.a)(oe,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),ne=Object(R.useRef)(),ce=Object(R.useRef)({}),X=Object(R.useRef)(),ue=Object(R.useRef)(!1),_e=Object(R.useRef)(),Re=Object(R.useState)(!1),De=Object(P.a)(Re,2),we=De[0],Ce=De[1];function et(){var b;return ne.current&&(b=new O.default(function(x){var V=Object(ve.a)(x),he;try{for(V.s();!(he=V.n()).done;){var Le=he.value;(Le.target.offsetHeight>0||Le.target.offsetWidth>0)&&ce.current.instance.layout()}}catch(at){V.e(at)}finally{V.f()}}),b.observe(ne.current)),b}function qe(){te.b.warn(decodeURIComponent(B))}var Ye=function(){var x=ce.current.instance;if(Oe!=null&&x&&we){var V=x.getModel();V&&Oe!==V.getValue()&&(N=!0,V.setValue(Oe),x.layout(),N=!1)}};Object(R.useEffect)(function(){X.current&&clearTimeout(X.current),X.current=setTimeout(function(){Ye()},500)},[Oe,we,ce.current]);function $e(){var b=ce.current.instance;if(b){var x=b.getSelection(),V=ce.current.pastePos||{},he=new K.Range(V.startLineNumber||x.endLineNumber,V.startColumn||x.endColumn,V.endLineNumber||x.endLineNumber,V.endColumn||x.endColumn);setTimeout(function(){b.executeEdits("",[{range:he,text:""}])},300)}}function We(b){(window.navigator.platform.match("Mac")?b.metaKey:b.ctrlKey)&&b.keyCode==83&&(b.preventDefault(),p())}var Ne=function(){if(U&&ce.current.instance){var x=ce.current.instance.getContentHeight();f(x<me?me:x)}else f(me)};function Ue(b){var x=document.createEvent("MouseEvents");x.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(x)}function ge(b,x){var V=window.URL||window.webkitURL||window,he=new Blob([x]),Le=document.createElementNS("http://www.w3.org/1999/xhtml","a");Le.href=V.createObjectURL(he),Le.download=b,Ue(Le)}Object(R.useEffect)(function(){Ne()},[Ne]),Object(R.useEffect)(function(){ne.current&&!we&&g.e(27).then(g.t.bind(null,"M/lh",7)).then(function(b){try{K=b,ce.current.instance=K.editor.create(ne.current,{value:Oe,language:ae(v),theme:c,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},D);var x=ce.current.instance;if(fe(x,K),setTimeout(function(){Ne(),ce.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){ge(k||"educoder.txt",x.getValue())}})},500),ce.current.subscription=x.onDidChangeModelContent(function(he){ue.current?clearTimeout(_e.current):(Ne(),Ae(x.getValue(),he)),_e.current=setTimeout(function(){ue.current=!1},500)}),window.Monaco||G(K),Ee&&(x.addCommand(K.KeyMod.CtrlCmd|K.KeyMod.Shift|K.KeyCode.KEY_V,function(){return qe(),null}),x.addCommand(K.KeyMod.CtrlCmd|K.KeyCode.KEY_C,function(){return qe(),null})),window.Monaco=K,l&&x.onDidBlurEditorWidget(function(){l(x.getValue())}),Z&&x.onDidFocusEditorText(function(){Z(x.getValue())}),Ee){x.addCommand(K.KeyMod.CtrlCmd|K.KeyCode.KEY_V,function(){return qe(),null}),x.onDidPaste(function(he){ce.current.pastePos=he});try{window.addEventListener("paste",$e)}catch(he){}}var V=et();return Ce(!0),function(){var he=ce.current.instance;he.dispose();var Le=he.getModel();Le&&Le.dispose(),ce.current.subscription&&ce.current.subscription.dispose(),Ee&&window.removeEventListener("paste",$e),V.unobserve(ne.current)}}catch(he){}})},[]),Object(R.useEffect)(function(){var b=ce.current.instance;if(b&&we)return document.addEventListener("keydown",We,!1),function(){document.removeEventListener("keydown",We)}},[p,we]),Object(R.useEffect)(function(){var b=ce.current.instance;if(b&&we){var x=ae(v);K.editor.setModelLanguage(b.getModel(),x),console.log("language:",v,b.getModel(),x)}},[v,we]),Object(R.useEffect)(function(){var b=ce.current.instance;b&&we&&K.editor.setTheme(c)},[c,we]),Object(R.useEffect)(function(){var b=ce.current.instance;b&&we&&(b.updateOptions(Object(W.a)({},ie)),setTimeout(function(){b.getModel().updateOptions(Object(W.a)({},ie))},200))},[JSON.stringify(ie),we]),Object(R.useEffect)(function(){var b=ce.current.instance;b&&we&&b.layout()},[Pe,me,we]);var Je=Object(R.useState)(re(Pe)),Ke=Object(P.a)(Je,2),xe=Ke[0],Ie=Ke[1],E=Object(R.useState)(re(me)),T=Object(P.a)(E,2),M=T[0],f=T[1],m=Object(W.a)(Object(W.a)({},$),{},{width:xe,height:M});return S.a.createElement("div",{className:"my-monaco-editor",ref:ne,style:m})};function Be(oe){var Te=oe.width,Pe=Te===void 0?"100%":Te,de=oe.height,me=de===void 0?"100%":de,Oe=oe.original,pe=oe.modified,v=oe.language,ee=oe.options,$=ee===void 0?{}:ee,w=Object(R.useRef)(),ie=Object(R.useState)(null),I=Object(P.a)(ie,2),D=I[0],A=I[1];function c(U){var le;return w.current&&(le=new O.default(function(Ee){var q=Object(ve.a)(Ee),Ae;try{for(q.s();!(Ae=q.n()).done;){var se=Ae.value;(se.target.offsetHeight>0||se.target.offsetWidth>0)&&U.layout()}}catch(fe){q.e(fe)}finally{q.f()}}),le.observe(w.current)),le}Object(R.useEffect)(function(){w.current&&g.e(27).then(g.t.bind(null,"M/lh",7)).then(function(U){K=U;var le=K.editor.createDiffEditor(w.current,Object(W.a)(Object(W.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},$),{},{wordWrap:!0}));A(le);var Ee=c(le);return function(){le.dispose();var q=le.getModel();q&&q.dispose(),Ee.unobserve(w.current)}})},[]),Object(R.useEffect)(function(){D&&D.setModel({original:K.editor.createModel(Oe,v),modified:K.editor.createModel(pe,v)})},[Oe,pe,v,D]);var l=re(Pe),p=re(me),_={width:l,height:p};return S.a.createElement("div",{className:"my-diff-editor",ref:w,style:_})}},ZpRC:function(nt,ze,g){"use strict";function W(G){return typeof G=="object"&&G!=null&&G.nodeType===1}function be(G,B){return(!B||G!=="hidden")&&G!=="visible"&&G!=="clip"}function te(G,B){if(G.clientHeight<G.scrollHeight||G.clientWidth<G.scrollWidth){var ye=getComputedStyle(G,null);return be(ye.overflowY,B)||be(ye.overflowX,B)||function(re){var H=function(N){if(!N.ownerDocument||!N.ownerDocument.defaultView)return null;try{return N.ownerDocument.defaultView.frameElement}catch(j){return null}}(re);return!!H&&(H.clientHeight<re.scrollHeight||H.clientWidth<re.scrollWidth)}(G)}return!1}function ve(G,B,ye,re,H,N,j,ae){return N<G&&j>B||N>G&&j<B?0:N<=G&&ae<=ye||j>=B&&ae>=ye?N-G-re:j>B&&ae<ye||N<G&&ae>ye?j-B+H:0}var P=function(G,B){var ye=window,re=B.scrollMode,H=B.block,N=B.inline,j=B.boundary,ae=B.skipOverflowHiddenElements,K=typeof j=="function"?j:function(_e){return _e!==j};if(!W(G))throw new TypeError("Invalid target");for(var ke=document.scrollingElement||document.documentElement,Be=[],oe=G;W(oe)&&K(oe);){if((oe=oe.parentElement)===ke){Be.push(oe);break}oe!=null&&oe===document.body&&te(oe)&&!te(document.documentElement)||oe!=null&&te(oe,ae)&&Be.push(oe)}for(var Te=ye.visualViewport?ye.visualViewport.width:innerWidth,Pe=ye.visualViewport?ye.visualViewport.height:innerHeight,de=window.scrollX||pageXOffset,me=window.scrollY||pageYOffset,Oe=G.getBoundingClientRect(),pe=Oe.height,v=Oe.width,ee=Oe.top,$=Oe.right,w=Oe.bottom,ie=Oe.left,I=H==="start"||H==="nearest"?ee:H==="end"?w:ee+pe/2,D=N==="center"?ie+v/2:N==="end"?$:ie,A=[],c=0;c<Be.length;c++){var l=Be[c],p=l.getBoundingClientRect(),_=p.height,U=p.width,le=p.top,Ee=p.right,q=p.bottom,Ae=p.left;if(re==="if-needed"&&ee>=0&&ie>=0&&w<=Pe&&$<=Te&&ee>=le&&w<=q&&ie>=Ae&&$<=Ee)return A;var se=getComputedStyle(l),fe=parseInt(se.borderLeftWidth,10),F=parseInt(se.borderTopWidth,10),Z=parseInt(se.borderRightWidth,10),h=parseInt(se.borderBottomWidth,10),k=0,y=0,ne="offsetWidth"in l?l.offsetWidth-l.clientWidth-fe-Z:0,ce="offsetHeight"in l?l.offsetHeight-l.clientHeight-F-h:0;if(ke===l)k=H==="start"?I:H==="end"?I-Pe:H==="nearest"?ve(me,me+Pe,Pe,F,h,me+I,me+I+pe,pe):I-Pe/2,y=N==="start"?D:N==="center"?D-Te/2:N==="end"?D-Te:ve(de,de+Te,Te,fe,Z,de+D,de+D+v,v),k=Math.max(0,k+me),y=Math.max(0,y+de);else{k=H==="start"?I-le-F:H==="end"?I-q+h+ce:H==="nearest"?ve(le,q,_,F,h+ce,I,I+pe,pe):I-(le+_/2)+ce/2,y=N==="start"?D-Ae-fe:N==="center"?D-(Ae+U/2)+ne/2:N==="end"?D-Ee+Z+ne:ve(Ae,Ee,U,fe,Z+ne,D,D+v,v);var X=l.scrollLeft,ue=l.scrollTop;I+=ue-(k=Math.max(0,Math.min(ue+k,l.scrollHeight-_+ce))),D+=X-(y=Math.max(0,Math.min(X+y,l.scrollWidth-U+ne)))}A.push({el:l,top:k,left:y})}return A};function J(G){return G===Object(G)&&Object.keys(G).length!==0}function R(G,B){B===void 0&&(B="auto");var ye="scrollBehavior"in document.body.style;G.forEach(function(re){var H=re.el,N=re.top,j=re.left;H.scroll&&ye?H.scroll({top:N,left:j,behavior:B}):(H.scrollTop=N,H.scrollLeft=j)})}function S(G){return G===!1?{block:"end",inline:"nearest"}:J(G)?G:{block:"start",inline:"nearest"}}function O(G,B){var ye=!G.ownerDocument.documentElement.contains(G);if(J(B)&&typeof B.behavior=="function")return B.behavior(ye?[]:P(G,B));if(ye)return;var re=S(B);return R(P(G,re),re.behavior)}var z=ze.a=O},Zss7:function(nt,ze,g){var W;(function(be){var te=/^\s+/,ve=/\s+$/,P=0,J=be.round,R=be.min,S=be.max,O=be.random;function z(h,k){if(h=h||"",k=k||{},h instanceof z)return h;if(!(this instanceof z))return new z(h,k);var y=G(h);this._originalInput=h,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=J(100*this._a)/100,this._format=k.format||y.format,this._gradientType=k.gradientType,this._r<1&&(this._r=J(this._r)),this._g<1&&(this._g=J(this._g)),this._b<1&&(this._b=J(this._b)),this._ok=y.ok,this._tc_id=P++}z.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var h=this.toRgb();return(h.r*299+h.g*587+h.b*114)/1e3},getLuminance:function(){var h=this.toRgb(),k,y,ne,ce,X,ue;return k=h.r/255,y=h.g/255,ne=h.b/255,k<=.03928?ce=k/12.92:ce=be.pow((k+.055)/1.055,2.4),y<=.03928?X=y/12.92:X=be.pow((y+.055)/1.055,2.4),ne<=.03928?ue=ne/12.92:ue=be.pow((ne+.055)/1.055,2.4),.2126*ce+.7152*X+.0722*ue},setAlpha:function(h){return this._a=A(h),this._roundA=J(100*this._a)/100,this},toHsv:function(){var h=H(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=H(this._r,this._g,this._b),k=J(h.h*360),y=J(h.s*100),ne=J(h.v*100);return this._a==1?"hsv("+k+", "+y+"%, "+ne+"%)":"hsva("+k+", "+y+"%, "+ne+"%, "+this._roundA+")"},toHsl:function(){var h=ye(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=ye(this._r,this._g,this._b),k=J(h.h*360),y=J(h.s*100),ne=J(h.l*100);return this._a==1?"hsl("+k+", "+y+"%, "+ne+"%)":"hsla("+k+", "+y+"%, "+ne+"%, "+this._roundA+")"},toHex:function(h){return j(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return ae(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},toRgb:function(){return{r:J(this._r),g:J(this._g),b:J(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+J(this._r)+", "+J(this._g)+", "+J(this._b)+")":"rgba("+J(this._r)+", "+J(this._g)+", "+J(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:J(c(this._r,255)*100)+"%",g:J(c(this._g,255)*100)+"%",b:J(c(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+J(c(this._r,255)*100)+"%, "+J(c(this._g,255)*100)+"%, "+J(c(this._b,255)*100)+"%)":"rgba("+J(c(this._r,255)*100)+"%, "+J(c(this._g,255)*100)+"%, "+J(c(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[j(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var k="#"+K(this._r,this._g,this._b,this._a),y=k,ne=this._gradientType?"GradientType = 1, ":"";if(h){var ce=z(h);y="#"+K(ce._r,ce._g,ce._b,ce._a)}return"progid:DXImageTransform.Microsoft.gradient("+ne+"startColorstr="+k+",endColorstr="+y+")"},toString:function(h){var k=!!h;h=h||this._format;var y=!1,ne=this._a<1&&this._a>=0,ce=!k&&ne&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return ce?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(y=this.toRgbString()),h==="prgb"&&(y=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(y=this.toHexString()),h==="hex3"&&(y=this.toHexString(!0)),h==="hex4"&&(y=this.toHex8String(!0)),h==="hex8"&&(y=this.toHex8String()),h==="name"&&(y=this.toName()),h==="hsl"&&(y=this.toHslString()),h==="hsv"&&(y=this.toHsvString()),y||this.toHexString())},clone:function(){return z(this.toString())},_applyModification:function(h,k){var y=h.apply(null,[this].concat([].slice.call(k)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(Te,arguments)},brighten:function(){return this._applyModification(Pe,arguments)},darken:function(){return this._applyModification(de,arguments)},desaturate:function(){return this._applyModification(ke,arguments)},saturate:function(){return this._applyModification(Be,arguments)},greyscale:function(){return this._applyModification(oe,arguments)},spin:function(){return this._applyModification(me,arguments)},_applyCombination:function(h,k){return h.apply(null,[this].concat([].slice.call(k)))},analogous:function(){return this._applyCombination($,arguments)},complement:function(){return this._applyCombination(Oe,arguments)},monochromatic:function(){return this._applyCombination(w,arguments)},splitcomplement:function(){return this._applyCombination(ee,arguments)},triad:function(){return this._applyCombination(pe,arguments)},tetrad:function(){return this._applyCombination(v,arguments)}},z.fromRatio=function(h,k){if(typeof h=="object"){var y={};for(var ne in h)h.hasOwnProperty(ne)&&(ne==="a"?y[ne]=h[ne]:y[ne]=Ee(h[ne]));h=y}return z(h,k)};function G(h){var k={r:0,g:0,b:0},y=1,ne=null,ce=null,X=null,ue=!1,_e=!1;return typeof h=="string"&&(h=F(h)),typeof h=="object"&&(fe(h.r)&&fe(h.g)&&fe(h.b)?(k=B(h.r,h.g,h.b),ue=!0,_e=String(h.r).substr(-1)==="%"?"prgb":"rgb"):fe(h.h)&&fe(h.s)&&fe(h.v)?(ne=Ee(h.s),ce=Ee(h.v),k=N(h.h,ne,ce),ue=!0,_e="hsv"):fe(h.h)&&fe(h.s)&&fe(h.l)&&(ne=Ee(h.s),X=Ee(h.l),k=re(h.h,ne,X),ue=!0,_e="hsl"),h.hasOwnProperty("a")&&(y=h.a)),y=A(y),{ok:ue,format:h.format||_e,r:R(255,S(k.r,0)),g:R(255,S(k.g,0)),b:R(255,S(k.b,0)),a:y}}function B(h,k,y){return{r:c(h,255)*255,g:c(k,255)*255,b:c(y,255)*255}}function ye(h,k,y){h=c(h,255),k=c(k,255),y=c(y,255);var ne=S(h,k,y),ce=R(h,k,y),X,ue,_e=(ne+ce)/2;if(ne==ce)X=ue=0;else{var Re=ne-ce;ue=_e>.5?Re/(2-ne-ce):Re/(ne+ce);switch(ne){case h:X=(k-y)/Re+(k<y?6:0);break;case k:X=(y-h)/Re+2;break;case y:X=(h-k)/Re+4;break}X/=6}return{h:X,s:ue,l:_e}}function re(h,k,y){var ne,ce,X;h=c(h,360),k=c(k,100),y=c(y,100);function ue(De,we,Ce){return Ce<0&&(Ce+=1),Ce>1&&(Ce-=1),Ce<1/6?De+(we-De)*6*Ce:Ce<1/2?we:Ce<2/3?De+(we-De)*(2/3-Ce)*6:De}if(k===0)ne=ce=X=y;else{var _e=y<.5?y*(1+k):y+k-y*k,Re=2*y-_e;ne=ue(Re,_e,h+1/3),ce=ue(Re,_e,h),X=ue(Re,_e,h-1/3)}return{r:ne*255,g:ce*255,b:X*255}}function H(h,k,y){h=c(h,255),k=c(k,255),y=c(y,255);var ne=S(h,k,y),ce=R(h,k,y),X,ue,_e=ne,Re=ne-ce;if(ue=ne===0?0:Re/ne,ne==ce)X=0;else{switch(ne){case h:X=(k-y)/Re+(k<y?6:0);break;case k:X=(y-h)/Re+2;break;case y:X=(h-k)/Re+4;break}X/=6}return{h:X,s:ue,v:_e}}function N(h,k,y){h=c(h,360)*6,k=c(k,100),y=c(y,100);var ne=be.floor(h),ce=h-ne,X=y*(1-k),ue=y*(1-ce*k),_e=y*(1-(1-ce)*k),Re=ne%6,De=[y,ue,X,X,_e,y][Re],we=[_e,y,y,ue,X,X][Re],Ce=[X,X,_e,y,y,ue][Re];return{r:De*255,g:we*255,b:Ce*255}}function j(h,k,y,ne){var ce=[le(J(h).toString(16)),le(J(k).toString(16)),le(J(y).toString(16))];return ne&&ce[0].charAt(0)==ce[0].charAt(1)&&ce[1].charAt(0)==ce[1].charAt(1)&&ce[2].charAt(0)==ce[2].charAt(1)?ce[0].charAt(0)+ce[1].charAt(0)+ce[2].charAt(0):ce.join("")}function ae(h,k,y,ne,ce){var X=[le(J(h).toString(16)),le(J(k).toString(16)),le(J(y).toString(16)),le(q(ne))];return ce&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)&&X[3].charAt(0)==X[3].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0)+X[3].charAt(0):X.join("")}function K(h,k,y,ne){var ce=[le(q(ne)),le(J(h).toString(16)),le(J(k).toString(16)),le(J(y).toString(16))];return ce.join("")}z.equals=function(h,k){return!h||!k?!1:z(h).toRgbString()==z(k).toRgbString()},z.random=function(){return z.fromRatio({r:O(),g:O(),b:O()})};function ke(h,k){k=k===0?0:k||10;var y=z(h).toHsl();return y.s-=k/100,y.s=l(y.s),z(y)}function Be(h,k){k=k===0?0:k||10;var y=z(h).toHsl();return y.s+=k/100,y.s=l(y.s),z(y)}function oe(h){return z(h).desaturate(100)}function Te(h,k){k=k===0?0:k||10;var y=z(h).toHsl();return y.l+=k/100,y.l=l(y.l),z(y)}function Pe(h,k){k=k===0?0:k||10;var y=z(h).toRgb();return y.r=S(0,R(255,y.r-J(255*-(k/100)))),y.g=S(0,R(255,y.g-J(255*-(k/100)))),y.b=S(0,R(255,y.b-J(255*-(k/100)))),z(y)}function de(h,k){k=k===0?0:k||10;var y=z(h).toHsl();return y.l-=k/100,y.l=l(y.l),z(y)}function me(h,k){var y=z(h).toHsl(),ne=(y.h+k)%360;return y.h=ne<0?360+ne:ne,z(y)}function Oe(h){var k=z(h).toHsl();return k.h=(k.h+180)%360,z(k)}function pe(h){var k=z(h).toHsl(),y=k.h;return[z(h),z({h:(y+120)%360,s:k.s,l:k.l}),z({h:(y+240)%360,s:k.s,l:k.l})]}function v(h){var k=z(h).toHsl(),y=k.h;return[z(h),z({h:(y+90)%360,s:k.s,l:k.l}),z({h:(y+180)%360,s:k.s,l:k.l}),z({h:(y+270)%360,s:k.s,l:k.l})]}function ee(h){var k=z(h).toHsl(),y=k.h;return[z(h),z({h:(y+72)%360,s:k.s,l:k.l}),z({h:(y+216)%360,s:k.s,l:k.l})]}function $(h,k,y){k=k||6,y=y||30;var ne=z(h).toHsl(),ce=360/y,X=[z(h)];for(ne.h=(ne.h-(ce*k>>1)+720)%360;--k;)ne.h=(ne.h+ce)%360,X.push(z(ne));return X}function w(h,k){k=k||6;for(var y=z(h).toHsv(),ne=y.h,ce=y.s,X=y.v,ue=[],_e=1/k;k--;)ue.push(z({h:ne,s:ce,v:X})),X=(X+_e)%1;return ue}z.mix=function(h,k,y){y=y===0?0:y||50;var ne=z(h).toRgb(),ce=z(k).toRgb(),X=y/100,ue={r:(ce.r-ne.r)*X+ne.r,g:(ce.g-ne.g)*X+ne.g,b:(ce.b-ne.b)*X+ne.b,a:(ce.a-ne.a)*X+ne.a};return z(ue)},z.readability=function(h,k){var y=z(h),ne=z(k);return(be.max(y.getLuminance(),ne.getLuminance())+.05)/(be.min(y.getLuminance(),ne.getLuminance())+.05)},z.isReadable=function(h,k,y){var ne=z.readability(h,k),ce,X;X=!1,ce=Z(y);switch(ce.level+ce.size){case"AAsmall":case"AAAlarge":X=ne>=4.5;break;case"AAlarge":X=ne>=3;break;case"AAAsmall":X=ne>=7;break}return X},z.mostReadable=function(h,k,y){var ne=null,ce=0,X,ue,_e,Re;y=y||{},ue=y.includeFallbackColors,_e=y.level,Re=y.size;for(var De=0;De<k.length;De++)X=z.readability(h,k[De]),X>ce&&(ce=X,ne=z(k[De]));return z.isReadable(h,ne,{level:_e,size:Re})||!ue?ne:(y.includeFallbackColors=!1,z.mostReadable(h,["#fff","#000"],y))};var ie=z.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=z.hexNames=D(ie);function D(h){var k={};for(var y in h)h.hasOwnProperty(y)&&(k[h[y]]=y);return k}function A(h){return h=parseFloat(h),(isNaN(h)||h<0||h>1)&&(h=1),h}function c(h,k){_(h)&&(h="100%");var y=U(h);return h=R(k,S(0,parseFloat(h))),y&&(h=parseInt(h*k,10)/100),be.abs(h-k)<1e-6?1:h%k/parseFloat(k)}function l(h){return R(1,S(0,h))}function p(h){return parseInt(h,16)}function _(h){return typeof h=="string"&&h.indexOf(".")!=-1&&parseFloat(h)===1}function U(h){return typeof h=="string"&&h.indexOf("%")!=-1}function le(h){return h.length==1?"0"+h:""+h}function Ee(h){return h<=1&&(h=h*100+"%"),h}function q(h){return be.round(parseFloat(h)*255).toString(16)}function Ae(h){return p(h)/255}var se=function(){var h="[-\\+]?\\d+%?",k="[-\\+]?\\d*\\.\\d+%?",y="(?:"+k+")|(?:"+h+")",ne="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",ce="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?";return{CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+ne),rgba:new RegExp("rgba"+ce),hsl:new RegExp("hsl"+ne),hsla:new RegExp("hsla"+ce),hsv:new RegExp("hsv"+ne),hsva:new RegExp("hsva"+ce),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function fe(h){return!!se.CSS_UNIT.exec(h)}function F(h){h=h.replace(te,"").replace(ve,"").toLowerCase();var k=!1;if(ie[h])h=ie[h],k=!0;else if(h=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var y;return(y=se.rgb.exec(h))?{r:y[1],g:y[2],b:y[3]}:(y=se.rgba.exec(h))?{r:y[1],g:y[2],b:y[3],a:y[4]}:(y=se.hsl.exec(h))?{h:y[1],s:y[2],l:y[3]}:(y=se.hsla.exec(h))?{h:y[1],s:y[2],l:y[3],a:y[4]}:(y=se.hsv.exec(h))?{h:y[1],s:y[2],v:y[3]}:(y=se.hsva.exec(h))?{h:y[1],s:y[2],v:y[3],a:y[4]}:(y=se.hex8.exec(h))?{r:p(y[1]),g:p(y[2]),b:p(y[3]),a:Ae(y[4]),format:k?"name":"hex8"}:(y=se.hex6.exec(h))?{r:p(y[1]),g:p(y[2]),b:p(y[3]),format:k?"name":"hex"}:(y=se.hex4.exec(h))?{r:p(y[1]+""+y[1]),g:p(y[2]+""+y[2]),b:p(y[3]+""+y[3]),a:Ae(y[4]+""+y[4]),format:k?"name":"hex8"}:(y=se.hex3.exec(h))?{r:p(y[1]+""+y[1]),g:p(y[2]+""+y[2]),b:p(y[3]+""+y[3]),format:k?"name":"hex"}:!1}function Z(h){var k,y;return h=h||{level:"AA",size:"small"},k=(h.level||"AA").toUpperCase(),y=(h.size||"small").toLowerCase(),k!=="AA"&&k!=="AAA"&&(k="AA"),y!=="small"&&y!=="large"&&(y="small"),{level:k,size:y}}nt.exports?nt.exports=z:!(W=function(){return z}.call(ze,g,ze,nt),W!==void 0&&(nt.exports=W))})(Math)},bT9E:function(nt,ze,g){"use strict";g.d(ze,"a",function(){return be});var W=g("VTBJ");function be(te,ve){var P=Object(W.a)({},te);return Array.isArray(ve)&&ve.forEach(function(J){delete P[J]}),P}},c5Ni:function(nt,ze,g){},dGDm:function(nt,ze,g){nt.exports={selectEnvironment:"selectEnvironment___1zrTT",search:"search___2Sku-",searchListWrap:"searchListWrap___30F5Q",searchList:"searchList___dxlP6",name:"name___28Ilk",tag:"tag___GYHhS",searchListActive:"searchListActive___1H-dL",spin:"spin___2GYcy",common:"common___JE3ZS",title:"title___11-q3",tags:"tags___3vE7b",tagActive:"tagActive___1c0bT",wrap:"wrap___fFVWs",allList:"allList___2mVBv",item:"item___2NPtB",itemActive:"itemActive___2aQTm",line:"line___yjjYk",apply:"apply___3NyxD",p1:"p1___2xNuY",p2:"p2___uGM8U",list:"list___1jtVf",items:"items___3gafm",darklySelectEnvironment:"darklySelectEnvironment___2KS0W"}},dejd:function(nt,ze,g){},dmUQ:function(nt,ze,g){"use strict";var W=g("Ff2n"),be=g("rePB"),te=g("1OyB"),ve=g("vuIU"),P=g("Ji7U"),J=g("md7G"),R=g("foSv"),S=g("q1tI"),O=g.n(S),z=g("TSYQ"),G=g.n(z),B=g("4IlW");function ye(pe,v){var ee=Object.keys(pe);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(pe);v&&($=$.filter(function(w){return Object.getOwnPropertyDescriptor(pe,w).enumerable})),ee.push.apply(ee,$)}return ee}function re(pe){for(var v=1;v<arguments.length;v++){var ee=arguments[v]!=null?arguments[v]:{};v%2?ye(Object(ee),!0).forEach(function($){Object(be.a)(pe,$,ee[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(ee)):ye(Object(ee)).forEach(function($){Object.defineProperty(pe,$,Object.getOwnPropertyDescriptor(ee,$))})}return pe}function H(pe){var v=N();return function(){var $=Object(R.a)(pe),w;if(v){var ie=Object(R.a)(this).constructor;w=Reflect.construct($,arguments,ie)}else w=$.apply(this,arguments);return Object(J.a)(this,w)}}function N(){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(pe){return!1}}function j(){}function ae(pe){pe.preventDefault()}var K=function(v){return v.replace(/[^\w.-]+/g,"")},ke=200,Be=600,oe=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Te=function(v){return v!=null},Pe=function(v,ee){return ee===v||typeof ee=="number"&&typeof v=="number"&&isNaN(ee)&&isNaN(v)},de=function(pe){Object(P.a)(ee,pe);var v=H(ee);function ee($){var w;Object(te.a)(this,ee),w=v.call(this,$),w.onKeyDown=function(D){var A=w.props,c=A.onKeyDown,l=A.onPressEnter;if(D.keyCode===B.a.UP){var p=w.getRatio(D);w.up(D,p,null),w.stop()}else if(D.keyCode===B.a.DOWN){var _=w.getRatio(D);w.down(D,_,null),w.stop()}else D.keyCode===B.a.ENTER&&l&&l(D);if(w.recordCursorPosition(),w.lastKeyCode=D.keyCode,c){for(var U=arguments.length,le=new Array(U>1?U-1:0),Ee=1;Ee<U;Ee++)le[Ee-1]=arguments[Ee];c.apply(void 0,[D].concat(le))}},w.onKeyUp=function(D){var A=w.props.onKeyUp;if(w.stop(),w.recordCursorPosition(),A){for(var c=arguments.length,l=new Array(c>1?c-1:0),p=1;p<c;p++)l[p-1]=arguments[p];A.apply(void 0,[D].concat(l))}},w.onChange=function(D){var A=w.props.onChange;w.state.focused&&(w.inputting=!0),w.rawInput=w.props.parser(w.getValueFromEvent(D)),w.setState({inputValue:w.rawInput}),A(w.toNumber(w.rawInput))},w.onMouseUp=function(){var D=w.props.onMouseUp;w.recordCursorPosition(),D&&D.apply(void 0,arguments)},w.onFocus=function(){var D;w.setState({focused:!0}),(D=w.props).onFocus.apply(D,arguments)},w.onBlur=function(){var D=w.props.onBlur;w.inputting=!1,w.setState({focused:!1});var A=w.getCurrentValidValue(w.state.inputValue),c=w.setValue(A,j);if(D){var l=w.input.value,p=w.getInputDisplayValue({focus:!1,value:c});w.input.value=p&&Number(p),D.apply(void 0,arguments),w.input.value=l}},w.getRatio=function(D){var A=1;return D.metaKey||D.ctrlKey?A=.1:D.shiftKey&&(A=10),A},w.getFullNum=function(D){return isNaN(D)?D:/e/i.test(String(D))?Number(D).toFixed(18).replace(/\.?0+$/,""):D},w.getPrecision=function(D){if(Te(w.props.precision))return w.props.precision;var A=String(D);if(A.indexOf("e-")>=0)return parseInt(A.slice(A.indexOf("e-")+2),10);var c=0;return A.indexOf(".")>=0&&(c=A.length-A.indexOf(".")-1),c},w.getInputDisplayValue=function(D){var A=D||w.state,c=A.focused,l=A.inputValue,p=A.value,_;c?_=l:_=w.toPrecisionAsStep(p),_==null&&(_="");var U=w.formatWrapper(_);return Te(w.props.decimalSeparator)&&(U=U.toString().replace(".",w.props.decimalSeparator)),U},w.recordCursorPosition=function(){try{w.cursorStart=w.input.selectionStart,w.cursorEnd=w.input.selectionEnd,w.currentValue=w.input.value,w.cursorBefore=w.input.value.substring(0,w.cursorStart),w.cursorAfter=w.input.value.substring(w.cursorEnd)}catch(D){}},w.restoreByAfter=function(D){if(D===void 0)return!1;var A=w.input.value,c=A.lastIndexOf(D);if(c===-1)return!1;var l=w.cursorBefore.length;return w.lastKeyCode===B.a.DELETE&&w.cursorBefore.charAt(l-1)===D[0]?(w.fixCaret(l,l),!0):c+D.length===A.length?(w.fixCaret(c,c),!0):!1},w.partRestoreByAfter=function(D){return D===void 0?!1:Array.prototype.some.call(D,function(A,c){var l=D.substring(c);return w.restoreByAfter(l)})},w.isNotCompleteNumber=function(D){return isNaN(D)||D===""||D===null||D&&D.toString().indexOf(".")===D.toString().length-1},w.stop=function(){w.autoStepTimer&&clearTimeout(w.autoStepTimer)},w.down=function(D,A,c){w.pressingUpOrDown=!0,w.step("down",D,A,c)},w.up=function(D,A,c){w.pressingUpOrDown=!0,w.step("up",D,A,c)},w.saveInput=function(D){w.input=D};var ie=$.value;ie===void 0&&(ie=$.defaultValue),w.state={focused:$.autoFocus};var I=w.getValidValue(w.toNumber(ie));return w.state=re(re({},w.state),{},{inputValue:w.toPrecisionAsStep(I),value:I}),w}return Object(ve.a)(ee,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(w){var ie=this.props,I=ie.value,D=ie.onChange,A=ie.max,c=ie.min,l=this.state.focused;if(w){if(!Pe(w.value,I)||!Pe(w.max,A)||!Pe(w.min,c)){var p=l?I:this.getValidValue(I),_;this.pressingUpOrDown?_=p:this.inputting?_=this.rawInput:_=this.toPrecisionAsStep(p),this.setState({value:p,inputValue:_})}var U="value"in this.props?I:this.state.value;"max"in this.props&&w.max!==A&&typeof U=="number"&&U>A&&D&&D(A),"min"in this.props&&w.min!==c&&typeof U=="number"&&U<c&&D&&D(c)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var le=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===B.a.BACKSPACE?le=this.cursorStart-1:this.lastKeyCode===B.a.DELETE&&(le=this.cursorStart):le=this.input.value.length,this.fixCaret(le,le)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case B.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case B.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Ee){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(w){var ie=w;return ie===""?ie="":this.isNotCompleteNumber(parseFloat(ie))?ie=this.state.value:ie=this.getValidValue(ie),this.toNumber(ie)}},{key:"getValueFromEvent",value:function(w){var ie=w.target.value.trim().replace(/。/g,".");return Te(this.props.decimalSeparator)&&(ie=ie.replace(this.props.decimalSeparator,".")),ie}},{key:"getValidValue",value:function(w){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,D=parseFloat(w);return isNaN(D)?w:(D<ie&&(D=ie),D>I&&(D=I),D)}},{key:"setValue",value:function(w,ie){var I=this.props.precision,D=this.isNotCompleteNumber(parseFloat(w))?null:parseFloat(w),A=this.state.value,c=A===void 0?null:A,l=this.state.inputValue,p=l===void 0?null:l,_=typeof D=="number"?D.toFixed(I):"".concat(D),U=D!==c||_!=="".concat(p);return"value"in this.props?(p=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:p},ie)):this.setState({value:D,inputValue:this.toPrecisionAsStep(w)},ie),U&&this.props.onChange(D),D}},{key:"getMaxPrecision",value:function(w){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.props,D=I.precision,A=I.step;if(Te(D))return D;var c=this.getPrecision(ie),l=this.getPrecision(A),p=this.getPrecision(w);return w?Math.max(p,c+l):c+l}},{key:"getPrecisionFactor",value:function(w){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.getMaxPrecision(w,ie);return Math.pow(10,I)}},{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(w){return this.props.formatter?this.props.formatter(w):w}},{key:"toPrecisionAsStep",value:function(w){if(this.isNotCompleteNumber(w)||w==="")return w;var ie=Math.abs(this.getMaxPrecision(w));return isNaN(ie)?w.toString():Number(w).toFixed(ie)}},{key:"toNumber",value:function(w){var ie=this.props.precision,I=this.state.focused,D=w&&w.length>16&&I;return this.isNotCompleteNumber(w)||D?w:Te(ie)?Math.round(w*Math.pow(10,ie))/Math.pow(10,ie):Number(w)}},{key:"upStep",value:function(w,ie){var I=this.props.step,D=this.getPrecisionFactor(w,ie),A=Math.abs(this.getMaxPrecision(w,ie)),c=((D*w+D*I*ie)/D).toFixed(A);return this.toNumber(c)}},{key:"downStep",value:function(w,ie){var I=this.props.step,D=this.getPrecisionFactor(w,ie),A=Math.abs(this.getMaxPrecision(w,ie)),c=((D*w-D*I*ie)/D).toFixed(A);return this.toNumber(c)}},{key:"step",value:function(w,ie){var I=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=arguments.length>3?arguments[3]:void 0;this.stop(),ie&&(ie.persist(),ie.preventDefault());var c=this.props;if(c.disabled)return;var l=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(l))return;var p=this["".concat(w,"Step")](l,D),_=p>c.max||p<c.min;if(p>c.max?p=c.max:p<c.min&&(p=c.min),this.setValue(p,null),this.setState({focused:!0},function(){I.pressingUpOrDown=!1}),_)return;this.autoStepTimer=setTimeout(function(){I[w](ie,D,!0)},A?ke:Be)}},{key:"fixCaret",value:function(w,ie){if(w===void 0||ie===void 0||!this.input||!this.input.value)return;try{var I=this.input.selectionStart,D=this.input.selectionEnd;(w!==I||ie!==D)&&this.input.setSelectionRange(w,ie)}catch(A){}}},{key:"render",value:function(){var w,ie=this.props,I=ie.prefixCls,D=ie.disabled,A=ie.readOnly,c=ie.useTouch,l=ie.autoComplete,p=ie.upHandler,_=ie.downHandler,U=ie.className,le=ie.max,Ee=ie.min,q=ie.style,Ae=ie.title,se=ie.onMouseEnter,fe=ie.onMouseLeave,F=ie.onMouseOver,Z=ie.onMouseOut,h=ie.required,k=ie.onClick,y=ie.tabIndex,ne=ie.type,ce=ie.placeholder,X=ie.id,ue=ie.inputMode,_e=ie.pattern,Re=ie.step,De=ie.maxLength,we=ie.autoFocus,Ce=ie.name,et=ie.onPaste,qe=ie.onInput,Ye=Object(W.a)(ie,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),$e=this.state,We=$e.value,Ne=$e.focused,Ue=G()(I,(w={},Object(be.a)(w,U,!!U),Object(be.a)(w,"".concat(I,"-disabled"),D),Object(be.a)(w,"".concat(I,"-focused"),Ne),w)),ge={};Object.keys(Ye).forEach(function(x){(x.substr(0,5)==="data-"||x.substr(0,5)==="aria-"||x==="role")&&(ge[x]=Ye[x])});var Je=!A&&!D,Ke=this.getInputDisplayValue(null),xe=(We||We===0)&&(isNaN(We)||Number(We)>=le),Ie=(We||We===0)&&(isNaN(We)||Number(We)<=Ee),E=xe||D||A,T=Ie||D||A,M=G()("".concat(I,"-handler"),"".concat(I,"-handler-up"),Object(be.a)({},"".concat(I,"-handler-up-disabled"),E)),f=G()("".concat(I,"-handler"),"".concat(I,"-handler-down"),Object(be.a)({},"".concat(I,"-handler-down-disabled"),T)),m=c?{onTouchStart:E?j:this.up,onTouchEnd:this.stop}:{onMouseDown:E?j:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},b=c?{onTouchStart:T?j:this.down,onTouchEnd:this.stop}:{onMouseDown:T?j:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return O.a.createElement("div",{className:Ue,style:q,title:Ae,onMouseEnter:se,onMouseLeave:fe,onMouseOver:F,onMouseOut:Z,onFocus:function(){return null},onBlur:function(){return null}},O.a.createElement("div",{className:"".concat(I,"-handler-wrap")},O.a.createElement("span",Object.assign({unselectable:"on"},m,{role:"button","aria-label":"Increase Value","aria-disabled":E,className:M}),p||O.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-up-inner"),onClick:ae})),O.a.createElement("span",Object.assign({unselectable:"on"},b,{role:"button","aria-label":"Decrease Value","aria-disabled":T,className:f}),_||O.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-down-inner"),onClick:ae}))),O.a.createElement("div",{className:"".concat(I,"-input-wrap")},O.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ee,"aria-valuemax":le,"aria-valuenow":We,required:h,type:ne,placeholder:ce,onPaste:et,onClick:k,onMouseUp:this.onMouseUp,className:"".concat(I,"-input"),tabIndex:y,autoComplete:l,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Je?this.onKeyDown:j,onKeyUp:Je?this.onKeyUp:j,autoFocus:we,maxLength:De,readOnly:A,disabled:D,max:le,min:Ee,step:Re,name:Ce,title:Ae,id:X,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Ke),pattern:_e,inputMode:ue,onInput:qe},ge))))}}]),ee}(O.a.Component);de.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:oe,min:-oe,step:1,style:{},onChange:j,onKeyDown:j,onPressEnter:j,onFocus:j,onBlur:j,parser:K,required:!1,autoComplete:"off"};var me=de,Oe=ze.a=me},dugo:function(nt,ze,g){"use strict";g.r(ze);var W=g("7Kak"),be=g("9yH6"),te=g("tJVT"),ve=g("q1tI"),P=g.n(ve),J=g("FrRK"),R=g("2qtc"),S=g("kLXV"),O=g("5Dmo"),z=g("3S7+"),G=g("+L6B"),B=g("2/Rp"),ye=g("R9oj"),re=g("ECub"),H=g("miYZ"),N=g("tsqr"),j=g("9og8"),ae=g("WmNS"),K=g.n(ae),ke=g("9kvl"),Be=g("HBuW"),oe=g("1vsH"),Te=g("Lai7"),Pe=g.n(Te),de=g("9Bee"),me=g("EGTK"),Oe=g("m3rI"),pe=g("mT4J"),v=g.n(pe),ee=g("ErOA"),$=function(X){var ue=X.newShixuns,_e=X.user,Re=X.dispatch,De=Object(ve.useState)(null),we=Object(te.a)(De,2),Ce=we[0],et=we[1],qe=Object(ve.useState)(null),Ye=Object(te.a)(qe,2),$e=Ye[0],We=Ye[1],Ne=Object(ve.useState)({}),Ue=Object(te.a)(Ne,2),ge=Ue[0],Je=Ue[1],Ke=Object(ve.useState)(!1),xe=Object(te.a)(Ke,2),Ie=xe[0],E=xe[1],T=Object(ve.useState)(!1),M=Object(te.a)(T,2),f=M[0],m=M[1],b=ue.environmentData,x=b.frequence_image,V=x===void 0?[]:x,he=b.environments,Le=he===void 0?[]:he,at=b.other_image,dt=at===void 0?[]:at,Ve=ge.name,vt=ge.description,lt=ge.authorization,rt=ge.template_shixuns,Ct=rt===void 0?[]:rt,gt=ge.recommend_shixuns,_t=gt===void 0?[]:gt;Object(ve.useEffect)(function(){Re({type:"newShixuns/getEnvironmentData"})},[]),Object(ve.useEffect)(function(){if($e===null)return;Ot()},[$e]);var Ot=function(){var bt=Object(j.a)(K.a.mark(function yt(){var Gt;return K.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,Object(Be.O)({mirror_repository_id:$e});case 2:Gt=Ut.sent,Je(Gt.data);case 4:case"end":return Ut.stop()}},yt)}));return function(){return bt.apply(this,arguments)}}();Object(ve.useEffect)(function(){(V==null?void 0:V.length)>0&&We(V[0].id)},[V]);var ft=function(yt){et(yt),E(!0)},Kt=function(){var bt=Object(j.a)(K.a.mark(function yt(){var Gt,Pt;return K.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:return m(!0),Wt.next=3,Object(ee.a)("/api/shixuns/".concat(Ce==null?void 0:Ce.identifier,"/copy.json"),{method:"post",body:{}});case 3:Gt=Wt.sent,Gt.status===0&&(ke.d===null||ke.d===void 0||ke.d.push("/shixuns/".concat((Pt=Gt.data)===null||Pt===void 0?void 0:Pt.shixun,"/edit")),E(!1),N.b.success("\u590D\u5236\u6210\u529F")),m(!1);case 6:case"end":return Wt.stop()}},yt)}));return function(){return bt.apply(this,arguments)}}(),vn=function(){E(!1)},Bt=function(){var bt=Object(j.a)(K.a.mark(function yt(){var Gt,Pt,Ut,Wt=arguments;return K.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Gt=Wt.length>0&&Wt[0]!==void 0?Wt[0]:!1,Object(oe.ab)(["\u5B9E\u8DF5\u9879\u76EE","\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE","\u5168\u5B9E\u8DF5\u9879\u76EE",Gt?"\u6682\u4E0D\u9009\u7528\u955C\u50CF":"\u4F7F\u7528\u5F53\u524D\u955C\u50CF"]),Pt=$e&&!Gt?{image_id:$e}:{},Qe.next=5,Object(ee.a)("/api/shixuns/choose_environment_or_skip.json",{method:"post",body:Pt});case 5:Ut=Qe.sent,Ut.status===0&&ke.d.push("/shixuns/".concat(Ut.data.identifier,"/edit"));case 7:case"end":return Qe.stop()}},yt)}));return function(){return bt.apply(this,arguments)}}();return P.a.createElement("div",{className:v.a.practice},P.a.createElement(me.a,{dispatch:Re,value:$e,data:Le,otherData:dt,tags:V,onChange:function(yt){return We(yt)}}),P.a.createElement("div",{className:v.a.right},P.a.createElement("header",null,P.a.createElement("div",{className:v.a.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",$e===null?"\u2014 \u2014":Ve)),P.a.createElement("div",{className:v.a.content},$e===null&&P.a.createElement(P.a.Fragment,null,P.a.createElement(re.a,{image:Pe.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),P.a.createElement("div",{className:v.a.btns},P.a.createElement(B.a,{size:"large",style:{marginRight:20},onClick:function(){return Bt(!0)}}," \u6682\u4E0D\u9009\u7528\u955C\u50CF"),P.a.createElement(B.a,{size:"large",type:"primary",disabled:$e===null,onClick:function(){return Bt()}},"\u4F7F\u7528\u5F53\u524D\u955C\u50CF"))),$e!==null&&P.a.createElement("div",{className:v.a.des},P.a.createElement("div",{className:v.a.mainBody},P.a.createElement(de.a,{value:vt})),P.a.createElement("div",{className:v.a.btns,style:{borderBottom:Ct.length||_t.length?"1px solid #F1F1F1":0}},P.a.createElement(B.a,{size:"large",style:{marginRight:20},onClick:function(){return Bt(!0)}}," \u6682\u4E0D\u9009\u7528\u955C\u50CF"),P.a.createElement(B.a,{size:"large",type:"primary",disabled:$e===null,onClick:function(){return Bt()}},"\u4F7F\u7528\u5F53\u524D\u955C\u50CF")),!!Ct.length&&P.a.createElement("div",{className:v.a.title},"\u57FA\u4E8E\u6A21\u677F\u521B\u5EFA"),P.a.createElement("ul",{className:v.a.sys},Ct.map(function(bt,yt){var Gt=bt.pic,Pt=bt.name,Ut=bt.identifier,Wt=bt.template_description,St=bt.id;return P.a.createElement("li",{className:v.a.li,key:yt},P.a.createElement("div",{className:v.a.d1},P.a.createElement("div",{className:v.a.img},P.a.createElement("img",{src:"".concat(Oe.a.IMG_SERVER,"/").concat(Gt)})),P.a.createElement("div",{className:v.a.btn},P.a.createElement("div",{className:v.a.b1,onClick:function(){return Object(oe.Q)("/shixuns/".concat(Ut,"/challenges"))}},"\u67E5\u770B\u8BE6\u60C5"),P.a.createElement("div",{className:v.a.b2,onClick:function(){return ft(bt)}},"\u4F7F\u7528\u6A21\u677F")),P.a.createElement("div",{className:v.a.bot},Pt||"--")),Wt?P.a.createElement(z.a,{title:Wt},P.a.createElement("div",{className:v.a.d2},Wt)):P.a.createElement("div",{className:v.a.d2},"--"))})),!!_t.length&&P.a.createElement("div",{className:v.a.title},"\u63A8\u8350\u5B9E\u8DF5\u9879\u76EE\u6837\u4F8B"),P.a.createElement("ul",{className:v.a.sys},_t.map(function(bt,yt){var Gt=bt.pic,Pt=bt.name,Ut=bt.identifier,Wt=bt.id;return P.a.createElement("li",{className:v.a.li,key:yt},P.a.createElement("div",{className:v.a.d1},P.a.createElement("div",{className:v.a.img},P.a.createElement("img",{src:"".concat(Oe.a.IMG_SERVER,"/").concat(Gt)})),P.a.createElement("div",{className:v.a.btn},P.a.createElement("div",{className:v.a.b1,onClick:function(){return Object(oe.Q)("/shixuns/".concat(Ut,"/challenges"))}},"\u67E5\u770B\u8BE6\u60C5"),P.a.createElement("div",{className:v.a.b2,onClick:function(){return ft(bt)}},"\u4E00\u952E\u590D\u5236")),P.a.createElement("div",{className:v.a.bot},Pt)))}))))),P.a.createElement(S.a,{title:"\u4E00\u952E\u65B0\u5EFA",visible:Ie,centered:!0,onCancel:vn,footer:null,wrapClassName:v.a.practiceModal},lt&&P.a.createElement("div",{className:v.a.content},P.a.createElement("p",null,"\u4E00\u952E\u65B0\u5EFA\u540E\uFF0C\u60A8\u53EF\u4EE5\u57FA\u4E8E\u8FD9\u4E2A\u5B9E\u8BAD\u4FEE\u6539\u5F62\u6210\u65B0\u7684\u5B9E\u8BAD"),P.a.createElement(B.a,{className:v.a.btn,loading:f,onClick:Kt},"\u786E\u8BA4\u590D\u5236")),!lt&&P.a.createElement("div",{className:v.a.content},P.a.createElement("aside",null,P.a.createElement("p",null,"\u8BE5\u5B9E\u8BAD\u6240\u4F7F\u7528\u7684\u5B9E\u9A8C\u73AF\u5883\u4E3A\u79C1\u6709\u73AF\u5883\uFF1A",P.a.createElement("span",{style:{color:"#0152d9"}},Ve)),P.a.createElement("p",null,"\u60A8\u65E0\u8BE5\u5B9E\u9A8C\u73AF\u5883\u7684\u4F7F\u7528\u6743\u9650\uFF0C\u6240\u4EE5\u65E0\u6CD5\u590D\u5236\u8BE5\u5B9E\u8BAD")),P.a.createElement("div",{onClick:function(){return E(!1)}},"\u6211\u77E5\u9053\u4E86"))))},w=Object(ke.a)(function(ce){var X=ce.newShixuns,ue=ce.globalSetting,_e=ce.user;return{newShixuns:X,globalSetting:ue,user:_e}})($),ie=g("sRBo"),I=g("kaz8"),D=g("5NDa"),A=g("5rEg"),c=g("k1fw"),l=g("y8nQ"),p=g("Vl3Y"),_=g("OaEy"),U=g("2fM7"),le=g("Ot1p"),Ee=g("YiCM"),q=g.n(Ee),Ae=g("QXZ7"),se=U.a.Option,fe=function(X){var ue,_e,Re,De,we,Ce=X.newShixuns,et=X.loading,qe=X.dispatch,Ye=X.is_jupyter_lab,$e=X.user,We=p.a.useForm(),Ne=Object(te.a)(We,1),Ue=Ne[0],ge=Object(ve.useState)({}),Je=Object(te.a)(ge,2),Ke=Je[0],xe=Je[1],Ie=Object(ve.useState)(!1),E=Object(te.a)(Ie,2),T=E[0],M=E[1],f=Object(ve.useState)({}),m=Object(te.a)(f,2),b=m[0],x=m[1];Object(ve.useEffect)(function(){var Ve="newShixuns/getNewShixunsData";Ye&&(Ve="newShixuns/getShixunsJupyterLab"),qe({type:Ve})},[Ye]),Object(ve.useEffect)(function(){var Ve,vt,lt,rt=Ce==null||((Ve=Ce.newData)===null||Ve===void 0||((vt=Ve.main_type)===null||vt===void 0||((lt=vt[0])===null||lt===void 0)))?void 0:lt.id;Ue.setFieldsValue({mainType:rt}),Le(rt)},[Ce]);var V=function(){qe({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},he=function(vt,lt){xe(Object(c.a)({},lt)),console.log(vt,"changeValues"),"mainType"in vt&&Le(lt.mainType,lt.subType),"subType"in vt&&Le(lt.mainType,lt.subType)},Le=function(vt){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=Ce.newData||{},Ct=rt.main_type,gt=rt.small_type,_t=Ct==null?void 0:Ct.find(function(ft){return ft.id===vt}),Ot={mainTypeName:_t==null?void 0:_t.type_name,mainTypeDescription:_t==null?void 0:_t.description,smallType:[]};lt.map(function(ft){gt.map(function(Kt){ft===Kt.id&&!!Kt.description&&Ot.smallType.push({name:Kt.type_name,des:Kt.description})})}),x(Ot)},at=function(){var Ve=Object(j.a)(K.a.mark(function vt(lt){var rt,Ct,gt,_t,Ot,ft,Kt,vn,Bt;return K.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return rt=lt||{},Ct=rt.intro,gt=rt.mainType,_t=rt.subType,Ot=rt.name,ft=rt.difficulty,Kt=rt.jupyter_show_description,vn=Kt===void 0?!1:Kt,Object(oe.ab)(["\u5B9E\u8DF5\u9879\u76EE","\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",Ye?"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE":"JupyterLab\u5B9E\u8DF5\u9879\u76EE","\u4FDD\u5B58"]),yt.next=4,qe({type:"newShixuns/submitShixuns",payload:{description:Ct,main_type:gt,sub_type:_t,shixun:{jupyter_show_description:vn,name:Ot,trainee:ft,is_jupyter:!Ye,is_jupyter_lab:Ye}}});case 4:Bt=yt.sent,Bt&&ke.d.push("/shixuns/".concat(Bt.shixun_identifier,"/challenges"));case 6:case"end":return yt.stop()}},vt)}));return function(lt){return Ve.apply(this,arguments)}}(),dt=function(){qe({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})};return P.a.createElement(p.a,{form:Ue,className:q.a.JupyterFieldWrapElse,scrollToFirstError:!0,layout:"vertical",initialValues:{difficulty:1},onValuesChange:he,onFinish:at},P.a.createElement("div",{className:q.a.fieldWrap},P.a.createElement(p.a.Item,{name:"name",label:"\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},P.a.createElement(A.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((ue=Ke.name)===null||ue===void 0?void 0:ue.length)||0,"/60")})),P.a.createElement(p.a.Item,{name:"intro",label:"\u7B80\u4ECB:"},P.a.createElement(le.a,{watch:!0})),P.a.createElement(p.a.Item,{name:"jupyter_show_description",valuePropName:"checked"},P.a.createElement(I.a,null,"\u663E\u793A\u4EFB\u52A1\u8981\u6C42\uFF08\u52FE\u9009\u540E\uFF0C\u5C06\u7B80\u4ECB\u4F5C\u4E3A\u4EFB\u52A1\u8981\u6C42\u663E\u793A\u5728\u5B9E\u8DF5\u9879\u76EE\u6311\u6218\u9875\u9762\uFF09")),P.a.createElement("div",{className:"".concat(q.a.flexRow," ").concat(q.a.flexAlignCenter)},P.a.createElement(p.a.Item,{className:q.a.width180,name:"difficulty",label:"\u96BE\u6613\u5EA6:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},P.a.createElement(U.a,{bordered:!1,placeholder:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6",style:{width:500}},P.a.createElement(se,{value:1},"\u521D\u7EA7"),P.a.createElement(se,{value:2},"\u4E2D\u7EA7"),P.a.createElement(se,{value:3},"\u4E2D\u9AD8\u7EA7"),P.a.createElement(se,{value:4},"\u9AD8\u7EA7")))),P.a.createElement("div",{className:"".concat(q.a.flexRow," ").concat(q.a.flexAlignEnd)},P.a.createElement(p.a.Item,{className:q.a.width240,name:"mainType",label:"\u5B9E\u9A8C\u73AF\u5883:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E3B\u7C7B\u522B"}]},P.a.createElement(U.a,{bordered:!1,placeholder:"\u8BF7\u9009\u62E9\u4E3B\u7C7B\u522B"},(_e=Ce.newData)===null||_e===void 0||((Re=_e.main_type)===null||Re===void 0)?void 0:Re.map(function(Ve){return P.a.createElement(se,{value:Ve.id,key:Ve.id,name:Ve.description},Ve.type_name)}))),P.a.createElement(p.a.Item,{name:"subType",className:"".concat(q.a.width240," ml20")},P.a.createElement(U.a,{getPopupContainer:function(vt){return vt.parentNode},bordered:!1,placeholder:"\u8BF7\u9009\u62E9\u5C0F\u7C7B\u522B",mode:"multiple"},(De=Ce.newData)===null||De===void 0||((we=De.small_type)===null||we===void 0)?void 0:we.map(function(Ve){return P.a.createElement(se,{value:Ve.id,key:Ve.id,name:Ve.description},Ve.type_name)}))),P.a.createElement("div",{className:q.a.installPackage,onClick:function(){return M(!0)}},"\u73AF\u5883\u4ECB\u7ECD")),P.a.createElement("div",{className:q.a.apply},P.a.createElement("span",{className:q.a.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),P.a.createElement("span",{className:q.a.p2,onClick:V}," ","\u7533\u8BF7\u65B0\u5EFA"),P.a.createElement("span",{className:q.a.p2,onClick:dt}," ","\u5728\u7EBF\u521B\u5EFA"))),P.a.createElement(p.a.Item,null,P.a.createElement("div",{className:q.a.buttonWrap},P.a.createElement(B.a,{size:"large",className:"".concat(q.a.button," mr20"),onClick:function(){Object(oe.ab)(["\u5B9E\u8DF5\u9879\u76EE","\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",Ye?"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE":"JupyterLab\u5B9E\u8DF5\u9879\u76EE","\u53D6\u6D88"]),ke.d.push("/shixuns")}},"\u53D6\u6D88"),P.a.createElement(B.a,{size:"large",type:"primary",className:"".concat(q.a.button," mr20"),htmlType:"submit",loading:et["newShixuns/submitCourses"]},"\u4FDD\u5B58"))),P.a.createElement(Ae.a,{installPackage:b,visible:T,setVisible:M}))},F=Object(ke.a)(function(ce){var X=ce.newShixuns,ue=ce.loading,_e=ce.user;return{newShixuns:X,loading:ue.effects,user:_e}})(fe),Z=g("N3QO"),h=g("6f40"),k=g.n(h),y=function(){var X=Object(ve.useState)("1"),ue=Object(te.a)(X,2),_e=ue[0],Re=ue[1],De=function(Ce){Re(Ce.target.value)};return P.a.createElement("section",{className:k.a.practicalTraining},P.a.createElement("div",{className:k.a.titleWrap},P.a.createElement("div",{className:k.a.title},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"),P.a.createElement("div",{className:k.a.line}),P.a.createElement(be.a.Group,{value:_e,onChange:De},P.a.createElement(be.a,{style:{fontSize:16},value:"1"},"\u5168\u6808\u5B9E\u8DF5\u9879\u76EE"),P.a.createElement(be.a,{value:"2",style:{marginLeft:40,fontSize:16}},"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE"),P.a.createElement(be.a,{value:"3",style:{marginLeft:40,fontSize:16}},"JupyterLab\u5B9E\u8DF5\u9879\u76EE")),P.a.createElement("div",{className:k.a.dec},_e==="1"&&"\u591A\u529F\u80FD\u65B0\u578B\u5B9E\u6218\u9879\u76EE\u6A21\u5F0F\uFF0C\u652F\u6301\u56FE\u5F62\u5316\u684C\u9762\u3001Web IDE\u3001\u547D\u4EE4\u884C\u3001\u865A\u62DF\u4EFF\u771F\u7B49\u591A\u79CD\u5B9E\u9A8C\u573A\u666F\uFF0C\u9002\u7528\u4E8E\u5404\u7C7B\u590D\u6742\u5DE5\u7A0B\u9879\u76EE\u7814\u53D1\u3002",_e==="2"&&"\u591A\u529F\u80FD\u5B9E\u65F6\u4EA4\u4E92\u5B9E\u9A8C\u6A21\u5F0F\uFF0C\u652F\u6301\u5B9E\u65F6\u4EE3\u7801\u3001\u6570\u5B66\u65B9\u7A0B\u3001\u53EF\u89C6\u5316\u548CMarkDown\u7B49\u3002 \u9002\u7528\u4E8E\u6570\u636E\u6E05\u7406\u3001\u6570\u503C\u6A21\u62DF\u3001\u7EDF\u8BA1\u5EFA\u6A21\u3001\u673A\u5668\u5B66\u4E60\u7B49\u7CFB\u5217\u5B9E\u9A8C\u3002",_e==="3"&&"JupyterLab\u662F\u65B0\u4E00\u4EE3Jupyter Notebook\uFF0C\u914D\u7F6E\u6587\u4EF6\u76EE\u5F55\u548CNotebook\uFF0C\u652F\u6301\u6570\u636E\u79D1\u5B66\u4E2D\u7684\u5404\u79CD\u5DE5\u4F5C\u6D41\u7A0B\uFF0C\u9002\u5408\u4E2D\u5927\u578B\u9879\u76EE\u3002")),_e==="1"&&P.a.createElement(w,null),(_e==="2"||_e==="3")&&P.a.createElement(F,{is_jupyter_lab:!(_e==="2")}),P.a.createElement(J.a,null),P.a.createElement(Z.a,null))},ne=ze.default=y},h78n:function(nt,ze,g){"use strict";g.d(ze,"a",function(){return w});var W=g("q1tI"),be=g.n(W),te=g("TSYQ"),ve=g.n(te),P={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},J=function(D){var A=D.map(function(){return Object(W.useRef)()}),c=Object(W.useRef)();return Object(W.useEffect)(function(){var l=Date.now(),p=!1;Object.keys(A).forEach(function(_){var U=A[_].current;if(!U)return;p=!0;var le=U.style;le.transitionDuration=".3s, .3s, .3s, .06s",c.current&&l-c.current<100&&(le.transitionDuration="0s, 0s")}),p&&(c.current=Date.now())}),[A]};function R(){return R=Object.assign||function(I){for(var D=1;D<arguments.length;D++){var A=arguments[D];for(var c in A)Object.prototype.hasOwnProperty.call(A,c)&&(I[c]=A[c])}return I},R.apply(this,arguments)}function S(I,D){return ye(I)||B(I,D)||z(I,D)||O()}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(I,D){if(!I)return;if(typeof I=="string")return G(I,D);var A=Object.prototype.toString.call(I).slice(8,-1);if(A==="Object"&&I.constructor&&(A=I.constructor.name),A==="Map"||A==="Set")return Array.from(I);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return G(I,D)}function G(I,D){(D==null||D>I.length)&&(D=I.length);for(var A=0,c=new Array(D);A<D;A++)c[A]=I[A];return c}function B(I,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(I)))return;var A=[],c=!0,l=!1,p=void 0;try{for(var _=I[Symbol.iterator](),U;!(c=(U=_.next()).done)&&!(A.push(U.value),D&&A.length===D);c=!0);}catch(le){l=!0,p=le}finally{try{!c&&_.return!=null&&_.return()}finally{if(l)throw p}}return A}function ye(I){if(Array.isArray(I))return I}function re(I,D){if(I==null)return{};var A=H(I,D),c,l;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(I);for(l=0;l<p.length;l++){if(c=p[l],D.indexOf(c)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(I,c))continue;A[c]=I[c]}}return A}function H(I,D){if(I==null)return{};var A={},c=Object.keys(I),l,p;for(p=0;p<c.length;p++){if(l=c[p],D.indexOf(l)>=0)continue;A[l]=I[l]}return A}var N=function(D){var A=D.className,c=D.percent,l=D.prefixCls,p=D.strokeColor,_=D.strokeLinecap,U=D.strokeWidth,le=D.style,Ee=D.trailColor,q=D.trailWidth,Ae=D.transition,se=re(D,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete se.gapPosition;var fe=Array.isArray(c)?c:[c],F=Array.isArray(p)?p:[p],Z=J(fe),h=S(Z,1),k=h[0],y=U/2,ne=100-U/2,ce="M ".concat(_==="round"?y:0,",").concat(y,`
L `).concat(_==="round"?ne:100,",").concat(y),X="0 0 100 ".concat(U),ue=0;return be.a.createElement("svg",R({className:ve()("".concat(l,"-line"),A),viewBox:X,preserveAspectRatio:"none",style:le},se),be.a.createElement("path",{className:"".concat(l,"-line-trail"),d:ce,strokeLinecap:_,stroke:Ee,strokeWidth:q||U,fillOpacity:"0"}),fe.map(function(_e,Re){var De={strokeDasharray:"".concat(_e,"px, 100px"),strokeDashoffset:"-".concat(ue,"px"),transition:Ae||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},we=F[Re]||F[F.length-1];return ue+=_e,be.a.createElement("path",{key:Re,className:"".concat(l,"-line-path"),d:ce,strokeLinecap:_,stroke:we,strokeWidth:U,fillOpacity:"0",ref:k[Re],style:De})}))};N.defaultProps=P;var j=N;function ae(){return ae=Object.assign||function(I){for(var D=1;D<arguments.length;D++){var A=arguments[D];for(var c in A)Object.prototype.hasOwnProperty.call(A,c)&&(I[c]=A[c])}return I},ae.apply(this,arguments)}function K(I,D){return Pe(I)||Te(I,D)||Be(I,D)||ke()}function ke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Be(I,D){if(!I)return;if(typeof I=="string")return oe(I,D);var A=Object.prototype.toString.call(I).slice(8,-1);if(A==="Object"&&I.constructor&&(A=I.constructor.name),A==="Map"||A==="Set")return Array.from(I);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return oe(I,D)}function oe(I,D){(D==null||D>I.length)&&(D=I.length);for(var A=0,c=new Array(D);A<D;A++)c[A]=I[A];return c}function Te(I,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(I)))return;var A=[],c=!0,l=!1,p=void 0;try{for(var _=I[Symbol.iterator](),U;!(c=(U=_.next()).done)&&!(A.push(U.value),D&&A.length===D);c=!0);}catch(le){l=!0,p=le}finally{try{!c&&_.return!=null&&_.return()}finally{if(l)throw p}}return A}function Pe(I){if(Array.isArray(I))return I}function de(I,D){if(I==null)return{};var A=me(I,D),c,l;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(I);for(l=0;l<p.length;l++){if(c=p[l],D.indexOf(c)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(I,c))continue;A[c]=I[c]}}return A}function me(I,D){if(I==null)return{};var A={},c=Object.keys(I),l,p;for(p=0;p<c.length;p++){if(l=c[p],D.indexOf(l)>=0)continue;A[l]=I[l]}return A}var Oe=0;function pe(I){return+I.replace("%","")}function v(I){return Array.isArray(I)?I:[I]}function ee(I,D,A,c){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,p=arguments.length>5?arguments[5]:void 0,_=50-c/2,U=0,le=-_,Ee=0,q=-2*_;switch(p){case"left":U=-_,le=0,Ee=2*_,q=0;break;case"right":U=_,le=0,Ee=-2*_,q=0;break;case"bottom":le=_,q=2*_;break;default:}var Ae="M 50,50 m ".concat(U,",").concat(le,`
a `).concat(_,",").concat(_," 0 1 1 ").concat(Ee,",").concat(-q,`
a `).concat(_,",").concat(_," 0 1 1 ").concat(-Ee,",").concat(q),se=Math.PI*2*_,fe={stroke:A,strokeDasharray:"".concat(D/100*(se-l),"px ").concat(se,"px"),strokeDashoffset:"-".concat(l/2+I/100*(se-l),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Ae,pathStyle:fe}}var $=function(D){var A=D.prefixCls,c=D.strokeWidth,l=D.trailWidth,p=D.gapDegree,_=D.gapPosition,U=D.trailColor,le=D.strokeLinecap,Ee=D.style,q=D.className,Ae=D.strokeColor,se=D.percent,fe=de(D,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),F=Object(W.useMemo)(function(){return Oe+=1,Oe},[]),Z=ee(0,100,U,c,p,_),h=Z.pathString,k=Z.pathStyle,y=v(se),ne=v(Ae),ce=ne.find(function(De){return Object.prototype.toString.call(De)==="[object Object]"}),X=J(y),ue=K(X,1),_e=ue[0],Re=function(){var we=0;return y.map(function(Ce,et){var qe=ne[et]||ne[ne.length-1],Ye=Object.prototype.toString.call(qe)==="[object Object]"?"url(#".concat(A,"-gradient-").concat(F,")"):"",$e=ee(we,Ce,qe,c,p,_);return we+=Ce,be.a.createElement("path",{key:et,className:"".concat(A,"-circle-path"),d:$e.pathString,stroke:Ye,strokeLinecap:le,strokeWidth:c,opacity:Ce===0?0:1,fillOpacity:"0",style:$e.pathStyle,ref:_e[et]})})};return be.a.createElement("svg",ae({className:ve()("".concat(A,"-circle"),q),viewBox:"0 0 100 100",style:Ee},fe),ce&&be.a.createElement("defs",null,be.a.createElement("linearGradient",{id:"".concat(A,"-gradient-").concat(F),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ce).sort(function(De,we){return pe(De)-pe(we)}).map(function(De,we){return be.a.createElement("stop",{key:we,offset:De,stopColor:ce[De]})}))),be.a.createElement("path",{className:"".concat(A,"-circle-trail"),d:h,stroke:U,strokeLinecap:le,strokeWidth:l||c,fillOpacity:"0",style:k}),Re().reverse())};$.defaultProps=P;var w=$,ie={Line:j,Circle:w}},kSUc:function(nt,ze,g){},lZu9:function(nt,ze,g){(function(W){W(g("VrN/"),g("1eCo"),g("8EBN"))})(function(W){"use strict";W.defineMode("markdown",function(be,te){var ve=W.getMode(be,"text/html"),P=ve.name=="null";function J(c){if(W.findModeByName){var l=W.findModeByName(c);l&&(c=l.mime||l.mimes[0])}var p=W.getMode(be,c);return p.name=="null"?null:p}te.highlightFormatting===void 0&&(te.highlightFormatting=!1),te.maxBlockquoteDepth===void 0&&(te.maxBlockquoteDepth=0),te.taskLists===void 0&&(te.taskLists=!1),te.strikethrough===void 0&&(te.strikethrough=!1),te.emoji===void 0&&(te.emoji=!1),te.fencedCodeBlockHighlighting===void 0&&(te.fencedCodeBlockHighlighting=!0),te.fencedCodeBlockDefaultMode===void 0&&(te.fencedCodeBlockDefaultMode="text/plain"),te.xml===void 0&&(te.xml=!0),te.tokenTypeOverrides===void 0&&(te.tokenTypeOverrides={});var R={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 S in R)R.hasOwnProperty(S)&&te.tokenTypeOverrides[S]&&(R[S]=te.tokenTypeOverrides[S]);var O=/^([*\-_])(?:\s*\1){2,}\s*$/,z=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,G=/^\[(x| )\](?=\s)/i,B=te.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ye=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,H=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,N=/^\s*\[[^\]]+?\]:.*$/,j=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ae=" ";function K(c,l,p){return l.f=l.inline=p,p(c,l)}function ke(c,l,p){return l.f=l.block=p,p(c,l)}function Be(c){return!c||!/\S/.test(c.string)}function oe(c){if(c.linkTitle=!1,c.linkHref=!1,c.linkText=!1,c.em=!1,c.strong=!1,c.strikethrough=!1,c.quote=0,c.indentedCode=!1,c.f==Pe){var l=P;if(!l){var p=W.innerMode(ve,c.htmlState);l=p.mode.name=="xml"&&p.state.tagStart===null&&!p.state.context&&p.state.tokenize.isInText}l&&(c.f=pe,c.block=Te,c.htmlState=null)}return c.trailingSpace=0,c.trailingSpaceNewLine=!1,c.prevLine=c.thisLine,c.thisLine={stream:null},null}function Te(c,l){var p=c.column()===l.indentation,_=Be(l.prevLine.stream),U=l.indentedCode,le=l.prevLine.hr,Ee=l.list!==!1,q=(l.listStack[l.listStack.length-1]||0)+3;l.indentedCode=!1;var Ae=l.indentation;if(l.indentationDiff===null&&(l.indentationDiff=l.indentation,Ee)){for(l.list=null;Ae<l.listStack[l.listStack.length-1];)l.listStack.pop(),l.listStack.length?l.indentation=l.listStack[l.listStack.length-1]:l.list=!1;l.list!==!1&&(l.indentationDiff=Ae-l.listStack[l.listStack.length-1])}var se=!_&&!le&&!l.prevLine.header&&(!Ee||!U)&&!l.prevLine.fencedCodeEnd,fe=(l.list===!1||le||_)&&l.indentation<=q&&c.match(O),F=null;if(l.indentationDiff>=4&&(U||l.prevLine.fencedCodeEnd||l.prevLine.header||_))return c.skipToEnd(),l.indentedCode=!0,R.code;if(c.eatSpace())return null;if(p&&l.indentation<=q&&(F=c.match(B))&&F[1].length<=6)return l.quote=0,l.header=F[1].length,l.thisLine.header=!0,te.highlightFormatting&&(l.formatting="header"),l.f=l.inline,me(l);if(l.indentation<=q&&c.eat(">"))return l.quote=p?1:l.quote+1,te.highlightFormatting&&(l.formatting="quote"),c.eatSpace(),me(l);if(!fe&&!l.setext&&p&&l.indentation<=q&&(F=c.match(z))){var Z=F[1]?"ol":"ul";return l.indentation=Ae+c.current().length,l.list=!0,l.quote=0,l.listStack.push(l.indentation),l.em=!1,l.strong=!1,l.code=!1,l.strikethrough=!1,te.taskLists&&c.match(G,!1)&&(l.taskList=!0),l.f=l.inline,te.highlightFormatting&&(l.formatting=["list","list-"+Z]),me(l)}else{if(p&&l.indentation<=q&&(F=c.match(H,!0)))return l.quote=0,l.fencedEndRE=new RegExp(F[1]+"+ *$"),l.localMode=te.fencedCodeBlockHighlighting&&J(F[2]||te.fencedCodeBlockDefaultMode),l.localMode&&(l.localState=W.startState(l.localMode)),l.f=l.block=de,te.highlightFormatting&&(l.formatting="code-block"),l.code=-1,me(l);if(l.setext||(!se||!Ee)&&!l.quote&&l.list===!1&&!l.code&&!fe&&!N.test(c.string)&&(F=c.lookAhead(1))&&(F=F.match(ye)))return l.setext?(l.header=l.setext,l.setext=0,c.skipToEnd(),te.highlightFormatting&&(l.formatting="header")):(l.header=F[0].charAt(0)=="="?1:2,l.setext=l.header),l.thisLine.header=!0,l.f=l.inline,me(l);if(fe)return c.skipToEnd(),l.hr=!0,l.thisLine.hr=!0,R.hr;if(c.peek()==="[")return K(c,l,ie)}return K(c,l,l.inline)}function Pe(c,l){var p=ve.token(c,l.htmlState);if(!P){var _=W.innerMode(ve,l.htmlState);(_.mode.name=="xml"&&_.state.tagStart===null&&!_.state.context&&_.state.tokenize.isInText||l.md_inside&&c.current().indexOf(">")>-1)&&(l.f=pe,l.block=Te,l.htmlState=null)}return p}function de(c,l){var p=l.listStack[l.listStack.length-1]||0,_=l.indentation<p,U=p+3;if(l.fencedEndRE&&l.indentation<=U&&(_||c.match(l.fencedEndRE))){te.highlightFormatting&&(l.formatting="code-block");var le;return _||(le=me(l)),l.localMode=l.localState=null,l.block=Te,l.f=pe,l.fencedEndRE=null,l.code=0,l.thisLine.fencedCodeEnd=!0,_?ke(c,l,l.block):le}else return l.localMode?l.localMode.token(c,l.localState):(c.skipToEnd(),R.code)}function me(c){var l=[];if(c.formatting){l.push(R.formatting),typeof c.formatting=="string"&&(c.formatting=[c.formatting]);for(var p=0;p<c.formatting.length;p++)l.push(R.formatting+"-"+c.formatting[p]),c.formatting[p]==="header"&&l.push(R.formatting+"-"+c.formatting[p]+"-"+c.header),c.formatting[p]==="quote"&&(!te.maxBlockquoteDepth||te.maxBlockquoteDepth>=c.quote?l.push(R.formatting+"-"+c.formatting[p]+"-"+c.quote):l.push("error"))}if(c.taskOpen)return l.push("meta"),l.length?l.join(" "):null;if(c.taskClosed)return l.push("property"),l.length?l.join(" "):null;if(c.linkHref?l.push(R.linkHref,"url"):(c.strong&&l.push(R.strong),c.em&&l.push(R.em),c.strikethrough&&l.push(R.strikethrough),c.emoji&&l.push(R.emoji),c.linkText&&l.push(R.linkText),c.code&&l.push(R.code),c.image&&l.push(R.image),c.imageAltText&&l.push(R.imageAltText,"link"),c.imageMarker&&l.push(R.imageMarker)),c.header&&l.push(R.header,R.header+"-"+c.header),c.quote&&(l.push(R.quote),!te.maxBlockquoteDepth||te.maxBlockquoteDepth>=c.quote?l.push(R.quote+"-"+c.quote):l.push(R.quote+"-"+te.maxBlockquoteDepth)),c.list!==!1){var _=(c.listStack.length-1)%3;_?_===1?l.push(R.list2):l.push(R.list3):l.push(R.list1)}return c.trailingSpaceNewLine?l.push("trailing-space-new-line"):c.trailingSpace&&l.push("trailing-space-"+(c.trailingSpace%2?"a":"b")),l.length?l.join(" "):null}function Oe(c,l){return c.match(re,!0)?me(l):void 0}function pe(c,l){var p=l.text(c,l);if(typeof p!="undefined")return p;if(l.list)return l.list=null,me(l);if(l.taskList){var _=c.match(G,!0)[1]===" ";return _?l.taskOpen=!0:l.taskClosed=!0,te.highlightFormatting&&(l.formatting="task"),l.taskList=!1,me(l)}if(l.taskOpen=!1,l.taskClosed=!1,l.header&&c.match(/^#+$/,!0))return te.highlightFormatting&&(l.formatting="header"),me(l);var U=c.next();if(l.linkTitle){l.linkTitle=!1;var le=U;U==="("&&(le=")"),le=(le+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ee="^\\s*(?:[^"+le+"\\\\]+|\\\\\\\\|\\\\.)"+le;if(c.match(new RegExp(Ee),!0))return R.linkHref}if(U==="`"){var q=l.formatting;te.highlightFormatting&&(l.formatting="code"),c.eatWhile("`");var Ae=c.current().length;if(l.code==0&&(!l.quote||Ae==1))return l.code=Ae,me(l);if(Ae==l.code){var se=me(l);return l.code=0,se}else return l.formatting=q,me(l)}else if(l.code)return me(l);if(U==="\\"&&(c.next(),te.highlightFormatting)){var fe=me(l),F=R.formatting+"-escape";return fe?fe+" "+F:F}if(U==="!"&&c.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return l.imageMarker=!0,l.image=!0,te.highlightFormatting&&(l.formatting="image"),me(l);if(U==="["&&l.imageMarker&&c.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return l.imageMarker=!1,l.imageAltText=!0,te.highlightFormatting&&(l.formatting="image"),me(l);if(U==="]"&&l.imageAltText){te.highlightFormatting&&(l.formatting="image");var fe=me(l);return l.imageAltText=!1,l.image=!1,l.inline=l.f=ee,fe}if(U==="["&&!l.image)return l.linkText&&c.match(/^.*?\]/)||(l.linkText=!0,te.highlightFormatting&&(l.formatting="link")),me(l);if(U==="]"&&l.linkText){te.highlightFormatting&&(l.formatting="link");var fe=me(l);return l.linkText=!1,l.inline=l.f=c.match(/\(.*?\)| ?\[.*?\]/,!1)?ee:pe,fe}if(U==="<"&&c.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){l.f=l.inline=v,te.highlightFormatting&&(l.formatting="link");var fe=me(l);return fe?fe+=" ":fe="",fe+R.linkInline}if(U==="<"&&c.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){l.f=l.inline=v,te.highlightFormatting&&(l.formatting="link");var fe=me(l);return fe?fe+=" ":fe="",fe+R.linkEmail}if(te.xml&&U==="<"&&c.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Z=c.string.indexOf(">",c.pos);if(Z!=-1){var h=c.string.substring(c.start,Z);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(h)&&(l.md_inside=!0)}return c.backUp(1),l.htmlState=W.startState(ve),ke(c,l,Pe)}if(te.xml&&U==="<"&&c.match(/^\/\w*?>/))return l.md_inside=!1,"tag";if(U==="*"||U==="_"){for(var k=1,y=c.pos==1?" ":c.string.charAt(c.pos-2);k<3&&c.eat(U);)k++;var ne=c.peek()||" ",ce=!/\s/.test(ne)&&(!j.test(ne)||/\s/.test(y)||j.test(y)),X=!/\s/.test(y)&&(!j.test(y)||/\s/.test(ne)||j.test(ne)),ue=null,_e=null;if(k%2&&(!l.em&&ce&&(U==="*"||!X||j.test(y))?ue=!0:l.em==U&&X&&(U==="*"||!ce||j.test(ne))&&(ue=!1)),k>1&&(!l.strong&&ce&&(U==="*"||!X||j.test(y))?_e=!0:l.strong==U&&X&&(U==="*"||!ce||j.test(ne))&&(_e=!1)),_e!=null||ue!=null){te.highlightFormatting&&(l.formatting=ue==null?"strong":_e==null?"em":"strong em"),ue===!0&&(l.em=U),_e===!0&&(l.strong=U);var se=me(l);return ue===!1&&(l.em=!1),_e===!1&&(l.strong=!1),se}}else if(U===" "&&(c.eat("*")||c.eat("_"))){if(c.peek()===" ")return me(l);c.backUp(1)}if(te.strikethrough){if(U==="~"&&c.eatWhile(U)){if(l.strikethrough){te.highlightFormatting&&(l.formatting="strikethrough");var se=me(l);return l.strikethrough=!1,se}else if(c.match(/^[^\s]/,!1))return l.strikethrough=!0,te.highlightFormatting&&(l.formatting="strikethrough"),me(l)}else if(U===" "&&c.match(/^~~/,!0)){if(c.peek()===" ")return me(l);c.backUp(2)}}if(te.emoji&&U===":"&&c.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){l.emoji=!0,te.highlightFormatting&&(l.formatting="emoji");var Re=me(l);return l.emoji=!1,Re}return U===" "&&(c.match(/^ +$/,!1)?l.trailingSpace++:l.trailingSpace&&(l.trailingSpaceNewLine=!0)),me(l)}function v(c,l){var p=c.next();if(p===">"){l.f=l.inline=pe,te.highlightFormatting&&(l.formatting="link");var _=me(l);return _?_+=" ":_="",_+R.linkInline}return c.match(/^[^>]+/,!0),R.linkInline}function ee(c,l){if(c.eatSpace())return null;var p=c.next();return p==="("||p==="["?(l.f=l.inline=w(p==="("?")":"]"),te.highlightFormatting&&(l.formatting="link-string"),l.linkHref=!0,me(l)):"error"}var $={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function w(c){return function(l,p){var _=l.next();if(_===c){p.f=p.inline=pe,te.highlightFormatting&&(p.formatting="link-string");var U=me(p);return p.linkHref=!1,U}return l.match($[c]),p.linkHref=!0,me(p)}}function ie(c,l){return c.match(/^([^\]\\]|\\.)*\]:/,!1)?(l.f=I,c.next(),te.highlightFormatting&&(l.formatting="link"),l.linkText=!0,me(l)):K(c,l,pe)}function I(c,l){if(c.match(/^\]:/,!0)){l.f=l.inline=D,te.highlightFormatting&&(l.formatting="link");var p=me(l);return l.linkText=!1,p}return c.match(/^([^\]\\]|\\.)+/,!0),R.linkText}function D(c,l){return c.eatSpace()?null:(c.match(/^[^\s]+/,!0),c.peek()===void 0?l.linkTitle=!0:c.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),l.f=l.inline=pe,R.linkHref+" url")}var A={startState:function(){return{f:Te,prevLine:{stream:null},thisLine:{stream:null},block:Te,htmlState:null,indentation:0,inline:pe,text:Oe,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(c){return{f:c.f,prevLine:c.prevLine,thisLine:c.thisLine,block:c.block,htmlState:c.htmlState&&W.copyState(ve,c.htmlState),indentation:c.indentation,localMode:c.localMode,localState:c.localMode?W.copyState(c.localMode,c.localState):null,inline:c.inline,text:c.text,formatting:!1,linkText:c.linkText,linkTitle:c.linkTitle,linkHref:c.linkHref,code:c.code,em:c.em,strong:c.strong,strikethrough:c.strikethrough,emoji:c.emoji,header:c.header,setext:c.setext,hr:c.hr,taskList:c.taskList,list:c.list,listStack:c.listStack.slice(0),quote:c.quote,indentedCode:c.indentedCode,trailingSpace:c.trailingSpace,trailingSpaceNewLine:c.trailingSpaceNewLine,md_inside:c.md_inside,fencedEndRE:c.fencedEndRE}},token:function(c,l){if(l.formatting=!1,c!=l.thisLine.stream){if(l.header=0,l.hr=!1,c.match(/^\s*$/,!0))return oe(l),null;if(l.prevLine=l.thisLine,l.thisLine={stream:c},l.taskList=!1,l.trailingSpace=0,l.trailingSpaceNewLine=!1,!l.localState&&(l.f=l.block,l.f!=Pe)){var p=c.match(/^\s*/,!0)[0].replace(/\t/g,ae).length;if(l.indentation=p,l.indentationDiff=null,p>0)return null}}return l.f(c,l)},innerMode:function(c){return c.block==Pe?{state:c.htmlState,mode:ve}:c.localState?{state:c.localState,mode:c.localMode}:{state:c,mode:A}},indent:function(c,l,p){return c.block==Pe&&ve.indent?ve.indent(c.htmlState,l,p):c.localState&&c.localMode.indent?c.localMode.indent(c.localState,l,p):W.Pass},blankLine:oe,getType:me,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return A},"xml"),W.defineMIME("text/markdown","markdown"),W.defineMIME("text/x-markdown","markdown")})},mT4J:function(nt,ze,g){nt.exports={practice:"practice___2GgSp",right:"right___2iW-T",title:"title___2wI-Y",content:"content___39urh",des:"des___3lOLJ",mainBody:"mainBody___2O3bf",sys:"sys___9a4Vo",li:"li___1a3_u",d1:"d1___--jU-",img:"img___3TRW8",bot:"bot___3H4-s",btn:"btn___2pVoZ",b1:"b1___3uZem",b2:"b2___3A6em",d2:"d2___2tiq3",btns:"btns___2p8vO",practiceModal:"practiceModal___15Ue6"}},osHv:function(nt,ze,g){(function(W){W(g("VrN/"))})(function(W){"use strict";var be=W.Pos;function te(j,ae){return j.line-ae.line||j.ch-ae.ch}var ve="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",P=ve+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",J=new RegExp("<(/?)(["+ve+"]["+P+"]*)","g");function R(j,ae,K,ke){this.line=ae,this.ch=K,this.cm=j,this.text=j.getLine(ae),this.min=ke?Math.max(ke.from,j.firstLine()):j.firstLine(),this.max=ke?Math.min(ke.to-1,j.lastLine()):j.lastLine()}function S(j,ae){var K=j.cm.getTokenTypeAt(be(j.line,ae));return K&&/\btag\b/.test(K)}function O(j){return j.line>=j.max?void 0:(j.ch=0,j.text=j.cm.getLine(++j.line),!0)}function z(j){return j.line<=j.min?void 0:(j.text=j.cm.getLine(--j.line),j.ch=j.text.length,!0)}function G(j){for(;;){var ae=j.text.indexOf(">",j.ch);if(ae==-1){if(O(j))continue;return}if(!S(j,ae+1)){j.ch=ae+1;continue}var K=j.text.lastIndexOf("/",ae),ke=K>-1&&!/\S/.test(j.text.slice(K+1,ae));return j.ch=ae+1,ke?"selfClose":"regular"}}function B(j){for(;;){var ae=j.ch?j.text.lastIndexOf("<",j.ch-1):-1;if(ae==-1){if(z(j))continue;return}if(!S(j,ae+1)){j.ch=ae;continue}J.lastIndex=ae,j.ch=ae;var K=J.exec(j.text);if(K&&K.index==ae)return K}}function ye(j){for(;;){J.lastIndex=j.ch;var ae=J.exec(j.text);if(!ae){if(O(j))continue;return}if(!S(j,ae.index+1)){j.ch=ae.index+1;continue}return j.ch=ae.index+ae[0].length,ae}}function re(j){for(;;){var ae=j.ch?j.text.lastIndexOf(">",j.ch-1):-1;if(ae==-1){if(z(j))continue;return}if(!S(j,ae+1)){j.ch=ae;continue}var K=j.text.lastIndexOf("/",ae),ke=K>-1&&!/\S/.test(j.text.slice(K+1,ae));return j.ch=ae+1,ke?"selfClose":"regular"}}function H(j,ae){for(var K=[];;){var ke=ye(j),Be,oe=j.line,Te=j.ch-(ke?ke[0].length:0);if(!ke||!(Be=G(j)))return;if(Be=="selfClose")continue;if(ke[1]){for(var Pe=K.length-1;Pe>=0;--Pe)if(K[Pe]==ke[2]){K.length=Pe;break}if(Pe<0&&(!ae||ae==ke[2]))return{tag:ke[2],from:be(oe,Te),to:be(j.line,j.ch)}}else K.push(ke[2])}}function N(j,ae){for(var K=[];;){var ke=re(j);if(!ke)return;if(ke=="selfClose"){B(j);continue}var Be=j.line,oe=j.ch,Te=B(j);if(!Te)return;if(Te[1])K.push(Te[2]);else{for(var Pe=K.length-1;Pe>=0;--Pe)if(K[Pe]==Te[2]){K.length=Pe;break}if(Pe<0&&(!ae||ae==Te[2]))return{tag:Te[2],from:be(j.line,j.ch),to:be(Be,oe)}}}}W.registerHelper("fold","xml",function(j,ae){for(var K=new R(j,ae.line,0);;){var ke=ye(K);if(!ke||K.line!=ae.line)return;var Be=G(K);if(!Be)return;if(!ke[1]&&Be!="selfClose"){var oe=be(K.line,K.ch),Te=H(K,ke[2]);return Te&&te(Te.from,oe)>0?{from:oe,to:Te.from}:null}}}),W.findMatchingTag=function(j,ae,K){var ke=new R(j,ae.line,ae.ch,K);if(ke.text.indexOf(">")==-1&&ke.text.indexOf("<")==-1)return;var Be=G(ke),oe=Be&&be(ke.line,ke.ch),Te=Be&&B(ke);if(!Be||!Te||te(ke,ae)>0)return;var Pe={from:be(ke.line,ke.ch),to:oe,tag:Te[2]};return Be=="selfClose"?{open:Pe,close:null,at:"open"}:Te[1]?{open:N(ke,Te[2]),close:Pe,at:"close"}:(ke=new R(j,oe.line,oe.ch,K),{open:Pe,close:H(ke,Te[2]),at:"open"})},W.findEnclosingTag=function(j,ae,K,ke){for(var Be=new R(j,ae.line,ae.ch,K);;){var oe=N(Be,ke);if(!oe)break;var Te=new R(j,ae.line,ae.ch,K),Pe=H(Te,oe.tag);if(Pe)return{open:oe,close:Pe}}},W.scanForClosingTag=function(j,ae,K,ke){var Be=new R(j,ae.line,ae.ch,ke?{from:0,to:ke}:null);return H(Be,K)}})},p5ED:function(nt,ze,g){"use strict";var W=g("+L6B"),be=g("2/Rp"),te=g("5Dmo"),ve=g("3S7+"),P=g("k1fw"),J=g("tJVT"),R=g("q1tI"),S=g.n(R),O=g("vHTk"),z=g.n(O),G=g("yEEn"),B=g("ZW9T"),ye=g("1vsH");ze.a=function(re){var H=re.name,N=re.data,j=re.theme,ae=re.type,K=re.filename,ke=re.monacoEditor,Be=re.className,oe=re.style,Te=re.close,Pe=re.onClose,de=re.hasMask,me=Object(R.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Oe=Object(J.a)(me,2),pe=Oe[0],v=Oe[1],ee=Object(R.useState)(""),$=Object(J.a)(ee,2),w=$[0],ie=$[1],I=Object(R.useRef)();K&&(ke.filename=K),Object(R.useEffect)(function(){var c,l,p=(c=document.cookie)===null||c===void 0||((l=c.replace(/\s/g,""))===null||l===void 0)?void 0:l.split(";");p==null||p.map(function(_){var U=_.split("=");U[0]==="_educoder_session"&&ie(U[1])})},[]);var D=function(){if(N.startsWith("http")||N.startsWith("/")){A();return}Object(ye.x)(K||"educoder",N,K)},A=function(){Object(ye.v)(K||H,N)};return console.log("data:",N,"fileanme:",K," name:",H),S.a.createElement("div",{style:Object(P.a)({},oe||{}),className:"".concat(de&&z.a.bgBlack," ").concat(ae?z.a.wrp:"hide")},Te&&S.a.createElement("div",{className:z.a.close,ref:I},S.a.createElement(ve.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return I.current}},S.a.createElement("span",{onClick:A},S.a.createElement("i",{className:"icon-quxiaozhiding"}))),S.a.createElement(ve.a,{title:"\u5173\u95ED",getPopupContainer:function(){return I.current}},S.a.createElement("span",{className:"",onClick:Pe},S.a.createElement("i",{className:"icon-guanbi1"})))),S.a.createElement("div",{className:"".concat(z.a[Be]," ").concat(Be," ").concat(z.a.monaco," ").concat(ae==="txt"?"show":"hide")},ae==="txt"&&S.a.createElement(B.b,ke)),ae==="audio"&&S.a.createElement("audio",{src:"".concat(N!=null&&N.startsWith("/")||(N==null?void 0:N.indexOf("https://"))>-1?N:"data:audio/mp3;base64,").concat(N),autoPlay:!0}),ae==="video"&&S.a.createElement(S.a.Fragment,null,N!=null&&N.startsWith("/")?S.a.createElement("video",{controls:!0,src:"".concat(N),autoPlay:!0}):S.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(N),autoPlay:!0})),ae==="pdf"&&S.a.createElement("embed",{className:z.a.embed,src:N}),ae==="image"&&S.a.createElement(S.a.Fragment,null,S.a.createElement("img",{src:"".concat(N!=null&&N.startsWith("/")||(N==null?void 0:N.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(N)})),ae==="other"&&S.a.createElement("div",null,S.a.createElement(be.a,{type:"primary",size:"large",onClick:D},S.a.createElement(G.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(ae==="download"||ae==="office")&&S.a.createElement(be.a,{type:"primary",size:"large",onClick:D},S.a.createElement(G.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(nt,ze,g){},qB8g:function(nt,ze,g){nt.exports={flexRow:"flexRow___Aj71W",flexColumn:"flexColumn___2jvSr",formWrap:"formWrap___3OxLN",upload:"upload___2lUf4",color0152d9:"color0152d9___10ICR",colorCCC:"colorCCC___2mbRd",footerWrap:"footerWrap___1Ytvb",qrCode:"qrCode___2RFKG",a1:"a1___HdrHw",code:"code___17cwA",group:"group___DUj4t",groupNumber:"groupNumber___3_2zt",a2:"a2___2_e5C"}},"rAM+":function(nt,ze,g){"use strict";g.d(ze,"a",function(){return be});var W=g("Qw5x");function be(te,ve){var P;if(typeof Symbol=="undefined"||te[Symbol.iterator]==null){if(Array.isArray(te)||(P=Object(W.a)(te))||ve&&te&&typeof te.length=="number"){P&&(te=P);var J=0,R=function(){};return{s:R,n:function(){return J>=te.length?{done:!0}:{done:!1,value:te[J++]}},e:function(B){throw B},f:R}}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 S=!0,O=!1,z;return{s:function(){P=te[Symbol.iterator]()},n:function(){var B=P.next();return S=B.done,B},e:function(B){O=!0,z=B},f:function(){try{!S&&P.return!=null&&P.return()}finally{if(O)throw z}}}}},rUJ1:function(nt,ze){const g=/[&<>"']/,W=/[&<>"']/g,be=/[<>"']|&(?!#?\w+;)/,te=/[<>"']|&(?!#?\w+;)/g,ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},P=de=>ve[de];function J(de,me){if(me){if(g.test(de))return de.replace(W,P)}else if(be.test(de))return de.replace(te,P);return de}const R=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function S(de){return de.replace(R,(me,Oe)=>(Oe=Oe.toLowerCase(),Oe==="colon"?":":Oe.charAt(0)==="#"?Oe.charAt(1)==="x"?String.fromCharCode(parseInt(Oe.substring(2),16)):String.fromCharCode(+Oe.substring(1)):""))}const O=/(^|[^\[])\^/g;function z(de,me){de=de.source||de,me=me||"";const Oe={replace:(pe,v)=>(v=v.source||v,v=v.replace(O,"$1"),de=de.replace(pe,v),Oe),getRegex:()=>new RegExp(de,me)};return Oe}const G=/[^\w:]/g,B=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ye(de,me,Oe){if(de){let pe;try{pe=decodeURIComponent(S(Oe)).replace(G,"").toLowerCase()}catch(v){return null}if(pe.indexOf("javascript:")===0||pe.indexOf("vbscript:")===0||pe.indexOf("data:")===0)return null}me&&!B.test(Oe)&&(Oe=ae(me,Oe));try{Oe=encodeURI(Oe).replace(/%25/g,"%")}catch(pe){return null}return Oe}const re={},H=/^[^:]+:\/*[^/]*$/,N=/^([^:]+:)[\s\S]*$/,j=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ae(de,me){re[" "+de]||(H.test(de)?re[" "+de]=de+"/":re[" "+de]=oe(de,"/",!0)),de=re[" "+de];const Oe=de.indexOf(":")===-1;return me.substring(0,2)==="//"?Oe?me:de.replace(N,"$1")+me:me.charAt(0)==="/"?Oe?me:de.replace(j,"$1")+me:de+me}const K={exec:function(){}};function ke(de){let me=1,Oe,pe;for(;me<arguments.length;me++){Oe=arguments[me];for(pe in Oe)Object.prototype.hasOwnProperty.call(Oe,pe)&&(de[pe]=Oe[pe])}return de}function Be(de,me){const Oe=de.replace(/\|/g,(ee,$,w)=>{let ie=!1,I=$;for(;--I>=0&&w[I]==="\\";)ie=!ie;return ie?"|":" |"}),pe=Oe.split(/ \|/);let v=0;if(pe.length>me)pe.splice(me);else for(;pe.length<me;)pe.push("");for(;v<pe.length;v++)pe[v]=pe[v].trim().replace(/\\\|/g,"|");return pe}function oe(de,me,Oe){const pe=de.length;if(pe===0)return"";let v=0;for(;v<pe;){const ee=de.charAt(pe-v-1);if(ee===me&&!Oe)v++;else if(ee!==me&&Oe)v++;else break}return de.substr(0,pe-v)}function Te(de,me){if(de.indexOf(me[1])===-1)return-1;const Oe=de.length;let pe=0,v=0;for(;v<Oe;v++)if(de[v]==="\\")v++;else if(de[v]===me[0])pe++;else if(de[v]===me[1]&&(pe--,pe<0))return v;return-1}function Pe(de){de&&de.sanitize&&!de.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")}nt.exports={escape:J,unescape:S,edit:z,cleanUrl:ye,resolveUrl:ae,noopTest:K,merge:ke,splitCells:Be,rtrim:oe,findClosingBracket:Te,checkSanitizeDeprecation:Pe}},vHTk:function(nt,ze,g){nt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}}}]);