(window.webpackJsonp=window.webpackJsonp||[]).push([[41,7,13],{"+NIl":function(ft,Ye,x){(function(K){K(x("VrN/"))})(function(K){"use strict";K.defineMode("stex",function(Ce,oe){"use strict";function Se(te,F){te.cmdState.push(F)}function ge(te){return te.cmdState.length>0?te.cmdState[te.cmdState.length-1]:null}function ee(te){var F=te.cmdState.pop();F&&F.closeBracket()}function L(te){for(var F=te.cmdState,z=F.length-1;z>=0;z--){var j=F[z];if(j.name=="DEFAULT")continue;return j}return{styleIdentifier:function(){return null}}}function W(te,F,z){return function(){this.name=te,this.bracketNo=0,this.style=F,this.styles=z,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var P={};P.importmodule=W("importmodule","tag",["string","builtin"]),P.documentclass=W("documentclass","tag",["","atom"]),P.usepackage=W("usepackage","tag",["atom"]),P.begin=W("begin","tag",["atom"]),P.end=W("end","tag",["atom"]),P.label=W("label","tag",["atom"]),P.ref=W("ref","tag",["atom"]),P.eqref=W("eqref","tag",["atom"]),P.cite=W("cite","tag",["atom"]),P.bibitem=W("bibitem","tag",["atom"]),P.Bibitem=W("Bibitem","tag",["atom"]),P.RBibitem=W("RBibitem","tag",["atom"]),P.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function V(te,F){te.f=F}function N(te,F){var z;if(te.match(/^\\[a-zA-Z@]+/)){var j=te.current().slice(1);return z=P.hasOwnProperty(j)?P[j]:P.DEFAULT,z=new z,Se(F,z),V(F,ve),z.style}if(te.match(/^\\[$&%#{}_]/))return"tag";if(te.match(/^\\[,;!\/\\]/))return"tag";if(te.match("\\["))return V(F,function(ce,Oe){return R(ce,Oe,"\\]")}),"keyword";if(te.match("\\("))return V(F,function(ce,Oe){return R(ce,Oe,"\\)")}),"keyword";if(te.match("$$"))return V(F,function(ce,Oe){return R(ce,Oe,"$$")}),"keyword";if(te.match("$"))return V(F,function(ce,Oe){return R(ce,Oe,"$")}),"keyword";var le=te.next();if(le=="%")return te.skipToEnd(),"comment";if(le=="}"||le=="]"){if(z=ge(F),z)z.closeBracket(le),V(F,ve);else return"error";return"bracket"}else return le=="{"||le=="["?(z=P.DEFAULT,z=new z,Se(F,z),"bracket"):/\d/.test(le)?(te.eatWhile(/[\w.%]/),"atom"):(te.eatWhile(/[\w\-_]/),z=L(F),z.name=="begin"&&(z.argument=te.current()),z.styleIdentifier())}function R(te,F,z){if(te.eatSpace())return null;if(z&&te.match(z))return V(F,N),"keyword";if(te.match(/^\\[a-zA-Z@]+/))return"tag";if(te.match(/^[a-zA-Z]+/))return"variable-2";if(te.match(/^\\[$&%#{}_]/))return"tag";if(te.match(/^\\[,;!\/]/))return"tag";if(te.match(/^[\^_&]/))return"tag";if(te.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(te.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var j=te.next();return j=="{"||j=="}"||j=="["||j=="]"||j=="("||j==")"?"bracket":j=="%"?(te.skipToEnd(),"comment"):"error"}function ve(te,F){var z=te.peek(),j;return z=="{"||z=="["?(j=ge(F),j.openBracket(z),te.eat(z),V(F,N),"bracket"):/[ \t\r]/.test(z)?(te.eat(z),null):(V(F,N),ee(F),N(te,F))}return{startState:function(){var te=oe.inMathMode?function(F,z){return R(F,z)}:N;return{cmdState:[],f:te}},copyState:function(te){return{cmdState:te.cmdState.slice(),f:te.f}},token:function(te,F){return F.f(te,F)},blankLine:function(te){te.f=N,te.cmdState.length=0},lineComment:"%"}}),K.defineMIME("text/x-stex","stex"),K.defineMIME("text/x-latex","stex")})},"19Vz":function(ft,Ye,x){(function(K){K(x("VrN/"))})(function(K){K.defineOption("placeholder","",function(W,P,V){var N=V&&V!=K.Init;if(P&&!N)W.on("blur",ge),W.on("change",ee),W.on("swapDoc",ee),K.on(W.getInputField(),"compositionupdate",W.state.placeholderCompose=function(){Se(W)}),ee(W);else if(!P&&N){W.off("blur",ge),W.off("change",ee),W.off("swapDoc",ee),K.off(W.getInputField(),"compositionupdate",W.state.placeholderCompose),Ce(W);var R=W.getWrapperElement();R.className=R.className.replace(" CodeMirror-empty","")}P&&!W.hasFocus()&&ge(W)});function Ce(W){W.state.placeholder&&(W.state.placeholder.parentNode.removeChild(W.state.placeholder),W.state.placeholder=null)}function oe(W){Ce(W);var P=W.state.placeholder=document.createElement("pre");P.style.cssText="height: 0; overflow: visible",P.style.direction=W.getOption("direction"),P.className="CodeMirror-placeholder CodeMirror-line-like";var V=W.getOption("placeholder");typeof V=="string"&&(V=document.createTextNode(V)),P.appendChild(V),W.display.lineSpace.insertBefore(P,W.display.lineSpace.firstChild)}function Se(W){setTimeout(function(){var P=!1,V=W.getInputField();V.nodeName=="TEXTAREA"?P=!V.value:W.lineCount()==1&&(P=!/[^\u200b]/.test(V.querySelector(".CodeMirror-line").textContent)),P?oe(W):Ce(W)},20)}function ge(W){L(W)&&oe(W)}function ee(W){var P=W.getWrapperElement(),V=L(W);P.className=P.className.replace(" CodeMirror-empty","")+(V?" CodeMirror-empty":""),V?oe(W):Ce(W)}function L(W){return W.lineCount()===1&&W.getLine(0)===""}})},"1eCo":function(ft,Ye,x){(function(K){K(x("VrN/"))})(function(K){"use strict";var Ce={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},oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};K.defineMode("xml",function(Se,ge){var ee=Se.indentUnit,L={},W=ge.htmlMode?Ce:oe;for(var P in W)L[P]=W[P];for(var P in ge)L[P]=ge[P];var V,N;function R(v,Q){function H(U){return Q.tokenize=U,U(v,Q)}var w=v.next();if(w=="<")return v.eat("!")?v.eat("[")?v.match("CDATA[")?H(F("atom","]]>")):null:v.match("--")?H(F("comment","-->")):v.match("DOCTYPE",!0,!0)?(v.eatWhile(/[\w\._\-]/),H(z(1))):null:v.eat("?")?(v.eatWhile(/[\w\._\-]/),Q.tokenize=F("meta","?>"),"meta"):(V=v.eat("/")?"closeTag":"openTag",Q.tokenize=ve,"tag bracket");if(w=="&"){var q;return v.eat("#")?v.eat("x")?q=v.eatWhile(/[a-fA-F\d]/)&&v.eat(";"):q=v.eatWhile(/[\d]/)&&v.eat(";"):q=v.eatWhile(/[\w\.\-:]/)&&v.eat(";"),q?"atom":"error"}else return v.eatWhile(/[^&<]/),null}R.isInText=!0;function ve(v,Q){var H=v.next();if(H==">"||H=="/"&&v.eat(">"))return Q.tokenize=R,V=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return V="equals",null;if(H=="<"){Q.tokenize=R,Q.state=Oe,Q.tagName=Q.tagStart=null;var w=Q.tokenize(v,Q);return w?w+" tag error":"tag error"}else return/[\'\"]/.test(H)?(Q.tokenize=te(H),Q.stringStartCol=v.column(),Q.tokenize(v,Q)):(v.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function te(v){var Q=function(H,w){for(;!H.eol();)if(H.next()==v){w.tokenize=ve;break}return"string"};return Q.isInAttribute=!0,Q}function F(v,Q){return function(H,w){for(;!H.eol();){if(H.match(Q)){w.tokenize=R;break}H.next()}return v}}function z(v){return function(Q,H){for(var w;(w=Q.next())!=null;){if(w=="<")return H.tokenize=z(v+1),H.tokenize(Q,H);if(w==">")if(v==1){H.tokenize=R;break}else return H.tokenize=z(v-1),H.tokenize(Q,H)}return"meta"}}function j(v,Q,H){this.prev=v.context,this.tagName=Q,this.indent=v.indented,this.startOfLine=H,(L.doNotIndent.hasOwnProperty(Q)||v.context&&v.context.noIndent)&&(this.noIndent=!0)}function le(v){v.context&&(v.context=v.context.prev)}function ce(v,Q){for(var H;;){if(!v.context)return;if(H=v.context.tagName,!L.contextGrabbers.hasOwnProperty(H)||!L.contextGrabbers[H].hasOwnProperty(Q))return;le(v)}}function Oe(v,Q,H){return v=="openTag"?(H.tagStart=Q.column(),Xe):v=="closeTag"?Ie:Oe}function Xe(v,Q,H){return v=="word"?(H.tagName=Q.current(),N="tag",xe):L.allowMissingTagName&&v=="endTag"?(N="tag bracket",xe(v,Q,H)):(N="error",Xe)}function Ie(v,Q,H){if(v=="word"){var w=Q.current();return H.context&&H.context.tagName!=w&&L.implicitlyClosed.hasOwnProperty(H.context.tagName)&&le(H),H.context&&H.context.tagName==w||L.matchClosing===!1?(N="tag",De):(N="tag error",Fe)}else return L.allowMissingTagName&&v=="endTag"?(N="tag bracket",De(v,Q,H)):(N="error",Fe)}function De(v,Q,H){return v!="endTag"?(N="error",De):(le(H),Oe)}function Fe(v,Q,H){return N="error",De(v,Q,H)}function xe(v,Q,H){if(v=="word")return N="attribute",we;if(v=="endTag"||v=="selfcloseTag"){var w=H.tagName,q=H.tagStart;return H.tagName=H.tagStart=null,v=="selfcloseTag"||L.autoSelfClosers.hasOwnProperty(w)?ce(H,w):(ce(H,w),H.context=new j(H,w,q==H.indented)),Oe}return N="error",xe}function we(v,Q,H){return v=="equals"?fe:(L.allowMissing||(N="error"),xe(v,Q,H))}function fe(v,Q,H){return v=="string"?ne:v=="word"&&L.allowUnquoted?(N="string",xe):(N="error",xe(v,Q,H))}function ne(v,Q,H){return v=="string"?ne:xe(v,Q,H)}return{startState:function(v){var Q={tokenize:R,state:Oe,indented:v||0,tagName:null,tagStart:null,context:null};return v!=null&&(Q.baseIndent=v),Q},token:function(v,Q){if(!Q.tagName&&v.sol()&&(Q.indented=v.indentation()),v.eatSpace())return null;V=null;var H=Q.tokenize(v,Q);return(H||V)&&H!="comment"&&(N=null,Q.state=Q.state(V||H,v,Q),N&&(H=N=="error"?H+" error":N)),H},indent:function(v,Q,H){var w=v.context;if(v.tokenize.isInAttribute)return v.tagStart==v.indented?v.stringStartCol+1:v.indented+ee;if(w&&w.noIndent)return K.Pass;if(v.tokenize!=ve&&v.tokenize!=R)return H?H.match(/^(\s*)/)[0].length:0;if(v.tagName)return L.multilineTagIndentPastTag!==!1?v.tagStart+v.tagName.length+2:v.tagStart+ee*(L.multilineTagIndentFactor||1);if(L.alignCDATA&&/$/,blockCommentStart:"",configuration:L.htmlMode?"html":"xml",helperType:L.htmlMode?"html":"xml",skipAttribute:function(v){v.state==fe&&(v.state=xe)},xmlCurrentTag:function(v){return v.tagName?{name:v.tagName,close:v.type=="closeTag"}:null},xmlCurrentContext:function(v){for(var Q=[],H=v.context;H;H=H.prev)H.tagName&&Q.push(H.tagName);return Q.reverse()}}}),K.defineMIME("text/xml","xml"),K.defineMIME("application/xml","xml"),K.mimeModes.hasOwnProperty("text/html")||K.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"55Ip":function(ft,Ye,x){"use strict";x.d(Ye,"a",function(){return ce});var K=x("Ty5D"),Ce=x("dI71"),oe=x("cDcd"),Se=x.n(oe),ge=x("YS25"),ee=x("17x9"),L=x.n(ee),W=x("wx14"),P=x("zLVn"),V=x("9R94"),N=function(fe){Object(Ce.a)(ne,fe);function ne(){for(var Q,H=arguments.length,w=new Array(H),q=0;q1&&arguments[1]!==void 0?arguments[1]:0,F=(L[ve[te+0]]+L[ve[te+1]]+L[ve[te+2]]+L[ve[te+3]]+"-"+L[ve[te+4]]+L[ve[te+5]]+"-"+L[ve[te+6]]+L[ve[te+7]]+"-"+L[ve[te+8]]+L[ve[te+9]]+"-"+L[ve[te+10]]+L[ve[te+11]]+L[ve[te+12]]+L[ve[te+13]]+L[ve[te+14]]+L[ve[te+15]]).toLowerCase();if(!ee(F))throw TypeError("Stringified UUID is invalid");return F}var V=P;function N(ve,te,F){ve=ve||{};var z=ve.random||(ve.rng||oe)();if(z[6]=z[6]&15|64,z[8]=z[8]&63|128,te){F=F||0;for(var j=0;j<16;++j)te[F+j]=z[j];return te}return V(z)}var R=Ye.a=N},"7ahc":function(ft,Ye,x){"use strict";x.d(Ye,"a",function(){return Xe});var K=x("k1fw"),Ce=x("0Owb"),oe=x("+L6B"),Se=x("2/Rp"),ge=x("y8nQ"),ee=x("Vl3Y"),L=x("tJVT"),W=x("OaEy"),P=x("2fM7"),V=x("cDcd"),N=x.n(V),R=x("VrN/"),ve=x.n(R),te=x("p77/"),F=x.n(te),z=x("c5Ni"),j=x.n(z),le=P.a.Option,ce={labelCol:{span:4},wrapperCol:{span:20}},Oe={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"]};Ye.b=function(Ie){var De=Ie.callback,Fe=Ie.onCancel,xe=Object(V.useState)("python"),we=Object(L.a)(xe,2),fe=we[0],ne=we[1];function v(H){ne(Oe[H][1])}function Q(H){De(H)}return N.a.createElement(ee.a,Object(Ce.a)({},ce,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Q}),N.a.createElement(ee.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},N.a.createElement(P.a,{onChange:v},Object.keys(Oe).map(function(H){return N.a.createElement(le,{key:H,value:H},Oe[H][0])}))),N.a.createElement(ee.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},N.a.createElement(Xe,{mode:fe})),N.a.createElement("div",{className:"flex-container flex-end"},N.a.createElement(Se.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),N.a.createElement(Se.a,{type:"ghost",onClick:Fe},"\u53D6\u6D88")))};function Xe(Ie){var De=Ie.value,Fe=Ie.onChange,xe=Ie.mode,we=Ie.options,fe=we===void 0?{}:we,ne=Object(V.useRef)(),v=Object(V.useState)(),Q=Object(L.a)(v,2),H=Q[0],w=Q[1];return Object(V.useEffect)(function(){if(H){function q(U){var T=U.getValue();Fe&&Fe(T)}return H.on("change",q),function(){H.off("change",q)}}},[H,Fe]),Object(V.useEffect)(function(){H&&H.setOption("mode",xe)},[H,xe]),Object(V.useEffect)(function(){H&&((De!==H.getValue()||De==="")&&setTimeout(function(){H.setValue(De||" ")},300))},[H,De]),Object(V.useEffect)(function(){if(ne.current&&!H){var q=ve.a.fromTextArea(ne.current,Object(K.a)({mode:xe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},fe));w(q)}},[ne.current,H]),N.a.createElement("div",{className:"my-codemirror-container"},N.a.createElement("textarea",{ref:ne}))}},"8EBN":function(ft,Ye,x){(function(K){K(x("VrN/"))})(function(K){"use strict";K.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 Ce=0;Ce-1&&Se.substring(L+1,Se.length);if(W)return K.findModeByExtension(W)},K.findModeByName=function(Se){Se=Se.toLowerCase();for(var ge=0;ge=M.length?J.slice(M.length):J}).join(`
`)}var te=[],F=[""],z=new N.a.Renderer,j=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){te.length=0,F=[""]}var ce={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Oe(ie,G,Z,M){if(G>=ie.length||ie[G].level<=Z)return G;var J=ie[G];M.push("- "+J.text+""),G++;var h=[];return G=Oe(ie,G,J.level,h),h.length>0&&(M.push("
"),h.forEach(function(C){M.push(C)}),M.push("
")),M.push(" "),G=Oe(ie,G,Z,M),G}function Xe(){return Oe(te,0,0,F),F.push("
"),F.join("")}var Ie={heading:function(G){var Z=j.exec(G);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(G){var Z=this.rules.block.fences.exec(G);if(Z){var M=Z[0],J=ve(M,Z[3]||""),h=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf(h)>=0){var C=xe(),g=J;J=C,we[C]={type:"block",expression:g}}return{type:"code",raw:M,lang:h,text:J}}}},De=/(?:\${2})([^\n`]+?)(?:\${2})/gi,Fe=0,xe=function(){return"__special_katext_id_".concat(Fe++,"__")},we={};function fe(){return we}function ne(){Fe=0,we={}}function v(ie){return ie=ie.replace(De,function(G,Z){var M=xe();return we[M]={type:"inline",expression:Z},M}),ie}var Q=z.listitem;z.listitem=function(ie){return Q(v(ie))};var H=z.paragraph;z.paragraph=function(ie){return H(v(ie))};var w=z.tablecell;z.tablecell=function(ie,G){return w(v(ie),G)},z.code=function(ie,G,Z){var M=(G||"").match(/\S*/)[0];return M?["latex","katex","math"].indexOf(M)>=0?"".concat(ie,"
"):'
').concat(Z?ie:Object(R.escape)(ie,!0),`
`):''+(Z?ie:Object(R.escape)(ie,!0))+"
"},z.heading=function(ie,G,Z){var M=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return te.push({anchor:M,level:G,text:ie}),"'+ie+""},N.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),N.a.use({tokenizer:Ie,renderer:z});var q=N.a,U=x("SJMd"),T=x("ulZh"),E=x.n(T),c=x("m3rI"),l=x("Oy/b"),m=x("p5ED"),_=x("8hTe"),B=x.n(_),ue=/]*>/g;function Ae(ie){var G=document.createElement("div");return G.innerHTML=ie,G.childNodes.length===0?"":G.childNodes[0].nodeValue}var de=Ye.a=function(ie){var G=ie.value,Z=G===void 0?"":G,M=ie.edit,J=M===void 0?!1:M,h=ie.className,C=ie.showTextOnly,g=ie.showLines,re=ie.replaces,pe=ie.zoomImg,Y=ie.hasMask,se=ie.style,ke=se===void 0?{}:se,Re=ie.stylesPrev,Le=Re===void 0?{}:Re,be=String(Z),Ee=Object(L.useRef)(),Ue=Object(L.useRef)(),Je=Object(L.useState)(""),ze=Object(ee.a)(Je,2),Ve=ze[0],ot=ze[1],rt=Object(L.useState)("office"),Ke=Object(ee.a)(rt,2),he=Ke[0],it=Ke[1],qe=Object(L.useMemo)(function(){try{var O=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,f=/\"\/api\/attachments\/|\"\/attachments\/download\//g,p=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;be=be.replace(O,"("+c.a.API_SERVER+"/api/attachments/").replace(f,'"'+c.a.API_SERVER+"/api/attachments/").replace(p,'"'+c.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(ae){}var b=q(be),k=fe();if(be.match(/\[TOC\]/)&&(b=b.replace("[TOC]
",Xe()),le()),b=b.replace(/(__special_katext_id_\d+__)/g,function(ae,Te){var He=k[Te],tt=He.type,et=He.expression;return Object(l.renderToString)(Ae(et)||"",{displayMode:tt==="block",throwOnError:!1,output:"html"})}),b=b.replace(/▁/g,"\u2581\u2581\u2581"),ne(),C){var D=document.createElement("div");return D.innerHTML=b,D.innerText}return setTimeout(function(){return I()},500),b},[be]),ye=Object(L.useRef)();ce.WebkitLineClamp=g,g&&(ke=Object(ge.a)(Object(ge.a)({},ke),ce));function Pe(O){var f=O.target;if(f.tagName.toUpperCase()==="IMG"){if(pe){var p=f.getAttribute("src");ot(p),it("image")}}else if(f.tagName.toUpperCase()==="A"){var b=f.getAttribute("href");if(b.indexOf("office")>-1)O.preventDefault(),ot(b),it("office");else if(b.indexOf("application/pdf")>-1)O.preventDefault(),ot(b),it("pdf");else if(b.indexOf("text/html")>-1)O.preventDefault(),ot(b),it("html");else if(b.startsWith("#")){O.preventDefault();var k=document.getElementById(b.replace("#",""));k&&k.scrollIntoView(!0)}}}var I=function(){var f,p=(f=ye.current)===null||f===void 0?void 0:f.querySelectorAll("video");p==null||p.forEach(function(b){if(b.oncontextmenu=function(){return!1},b.src.indexOf(".m3u8")>-1&&!b.canPlayType("application/vnd.apple.mpegurl")){if(E.a.isSupported()){var k=new E.a;k.loadSource(b.src),k.attachMedia(b)}}})};Object(L.useEffect)(function(){if(ye.current&&qe&&(qe.match(ue)&&window.PR.prettyPrint()),ye.current)return ye.current.addEventListener("click",Pe),function(){ye.current.removeEventListener("click",Pe),ne(),le()}},[qe,ye.current,Pe]);var A=function(f){if(!J)return;f.target.nodeName==="IMG"?(Ee.current.style.display="flex",Ee.current.style.width=f.target.clientWidth+"px",Ee.current.style.height=f.target.clientHeight+"px",Ee.current.style.top=f.target.offsetTop+"px",Ee.current.style.left=f.target.offsetLeft+"px",Ue.current.src=f.target.getAttribute("src")):Ee.current.style.display="none"};return W.a.createElement("div",{style:{position:"relative"}},W.a.createElement("div",{ref:ye,style:Object(ge.a)({},ke),className:"".concat(h||""," markdown-body ").concat(B.a.mdBody),onMouseOver:A,dangerouslySetInnerHTML:{__html:qe}}),W.a.createElement("div",{ref:Ee,className:B.a.button},W.a.createElement(Ce.a,null,W.a.createElement(Se.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),W.a.createElement(Se.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),W.a.createElement("img",{ref:Ue,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),W.a.createElement(m.a,{close:!0,data:Ve,type:Ve!=null&&Ve.length?he:"",style:Object(ge.a)({},Le),onClose:function(){return ot("")}}))}},"9VGf":function(ft,Ye,x){"use strict";x.d(Ye,"a",function(){return oe});var K=x("cDcd"),Ce=x.n(K);function oe(Se,ge){var ee=Object(K.useRef)();Object(K.useEffect)(function(){ee.current=Se}),Object(K.useEffect)(function(){function L(){ee.current()}if(ge!==null){var W=setInterval(L,ge);return function(){return clearInterval(W)}}},[ge])}},Bd2K:function(ft,Ye,x){(function(K){K(x("VrN/"),x("osHv"))})(function(K){K.defineOption("autoCloseTags",!1,function(P,V,N){if(N!=K.Init&&N&&P.removeKeyMap("autoCloseTags"),!V)return;var R={name:"autoCloseTags"};(typeof V!="object"||V.whenClosing!==!1)&&(R["'/'"]=function(ve){return ee(ve)}),(typeof V!="object"||V.whenOpening!==!1)&&(R["'>'"]=function(ve){return Se(ve)}),P.addKeyMap(R)});var Ce=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],oe=["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 Se(P){if(P.getOption("disableInput"))return K.Pass;for(var V=P.listSelections(),N=[],R=P.getOption("autoCloseTags"),ve=0;vete.ch&&(ce=ce.slice(0,ce.length-F.end+te.ch));var De=ce.toLowerCase();if(!ce||F.type=="string"&&(F.end!=te.ch||!/[\"\']/.test(F.string.charAt(F.string.length-1))||F.string.length==1)||F.type=="tag"&&le.close||F.string.indexOf("/")==te.ch-F.start-1||Xe&&L(Xe,De)>-1||W(P,z.mode.xmlCurrentContext&&z.mode.xmlCurrentContext(j)||[],ce,te,!0))return K.Pass;var Fe=typeof R=="object"&&R.emptyTags;if(Fe&&L(Fe,ce)>-1){N[ve]={text:"/>",newPos:K.Pos(te.line,te.ch+2)};continue}var xe=Ie&&L(Ie,De)>-1;N[ve]={indent:xe,text:">"+(xe?`
`:"")+""+ce+">",newPos:xe?K.Pos(te.line+1,0):K.Pos(te.line,te.ch+1)}}for(var we=typeof R=="object"&&R.dontIndentOnAutoClose,ve=V.length-1;ve>=0;ve--){var fe=N[ve];P.replaceRange(fe.text,V[ve].head,V[ve].anchor,"+insert");var ne=P.listSelections().slice(0);ne[ve]={head:fe.newPos,anchor:fe.newPos},P.setSelections(ne),!we&&fe.indent&&(P.indentLine(fe.newPos.line,null,!0),P.indentLine(fe.newPos.line+1,null,!0))}}function ge(P,V){for(var N=P.listSelections(),R=[],ve=V?"/":"",te=P.getOption("autoCloseTags"),F=typeof te=="object"&&te.dontIndentOnSlash,z=0;z"&&(Xe+=">"),R[z]=Xe}if(P.replaceSelections(R),N=P.listSelections(),!F)for(var z=0;z=0&&V[j]==N;j--)++z;R=F.to;for(var j=1;j0){for(var V=0;V1&&arguments[1]!==void 0?arguments[1]:"",V=[],N=0;NI.length)&&(A=I.length);for(var O=0,f=new Array(A);O=I.length?{done:!0}:{done:!1,value:I[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 O=I[Symbol.iterator](),O.next.bind(O)}function ee(I,A){return A={exports:{}},I(A,A.exports),A.exports}var L=ee(function(I){function A(){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 O(f){I.exports.defaults=f}I.exports={defaults:A(),getDefaults:A,changeDefaults:O}}),W=L.defaults,P=L.getDefaults,V=L.changeDefaults,N=/[&<>"']/,R=/[&<>"']/g,ve=/[<>"']|&(?!#?\w+;)/,te=/[<>"']|&(?!#?\w+;)/g,F={"&":"&","<":"<",">":">",'"':""","'":"'"},z=function(A){return F[A]};function j(I,A){if(A){if(N.test(I))return I.replace(R,z)}else if(ve.test(I))return I.replace(te,z);return I}var le=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ce(I){return I.replace(le,function(A,O){return O=O.toLowerCase(),O==="colon"?":":O.charAt(0)==="#"?O.charAt(1)==="x"?String.fromCharCode(parseInt(O.substring(2),16)):String.fromCharCode(+O.substring(1)):""})}var Oe=/(^|[^\[])\^/g;function Xe(I,A){I=I.source||I,A=A||"";var O={replace:function(p,b){return b=b.source||b,b=b.replace(Oe,"$1"),I=I.replace(p,b),O},getRegex:function(){return new RegExp(I,A)}};return O}var Ie=/[^\w:]/g,De=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Fe(I,A,O){if(I){var f;try{f=decodeURIComponent(ce(O)).replace(Ie,"").toLowerCase()}catch(p){return null}if(f.indexOf("javascript:")===0||f.indexOf("vbscript:")===0||f.indexOf("data:")===0)return null}A&&!De.test(O)&&(O=v(A,O));try{O=encodeURI(O).replace(/%25/g,"%")}catch(p){return null}return O}var xe={},we=/^[^:]+:\/*[^/]*$/,fe=/^([^:]+:)[\s\S]*$/,ne=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(I,A){xe[" "+I]||(we.test(I)?xe[" "+I]=I+"/":xe[" "+I]=q(I,"/",!0)),I=xe[" "+I];var O=I.indexOf(":")===-1;return A.substring(0,2)==="//"?O?A:I.replace(fe,"$1")+A:A.charAt(0)==="/"?O?A:I.replace(ne,"$1")+A:I+A}var Q={exec:function(){}};function H(I){for(var A=1,O,f;A=0&&D[Te]==="\\";)ae=!ae;return ae?"|":" |"}),f=O.split(/ \|/),p=0;if(f.length>A)f.splice(A);else for(;f.length=f.length?p.slice(f.length):p}).join(`
`)}var de=function(){function I(O){this.options=O||c}var A=I.prototype;return A.space=function(f){var p=this.rules.block.newline.exec(f);if(p)return p[0].length>1?{type:"space",raw:p[0]}:{raw:`
`}},A.code=function(f,p){var b=this.rules.block.code.exec(f);if(b){var k=p[p.length-1];if(k&&k.type==="paragraph")return{raw:b[0],text:b[0].trimRight()};var D=b[0].replace(/^ {4}/gm,"");return{type:"code",raw:b[0],codeBlockStyle:"indented",text:this.options.pedantic?D:l(D,`
`)}}},A.fences=function(f){var p=this.rules.block.fences.exec(f);if(p){var b=p[0],k=Ae(b,p[3]||"");return{type:"code",raw:b,lang:p[2]?p[2].trim():p[2],text:k}}},A.heading=function(f){var p=this.rules.block.heading.exec(f);if(p)return{type:"heading",raw:p[0],depth:p[1].length,text:p[2]}},A.nptable=function(f){var p=this.rules.block.nptable.exec(f);if(p){var b={type:"table",header:m(p[1].replace(/^ *| *\| *$/g,"")),align:p[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:p[3]?p[3].replace(/\n$/,"").split(`
`):[],raw:p[0]};if(b.header.length===b.align.length){var k=b.align.length,D;for(D=0;D ?/gm,"");return{type:"blockquote",raw:p[0],text:b}}},A.list=function(f){var p=this.rules.block.list.exec(f);if(p){for(var b=p[0],k=p[2],D=k.length>1,ae=k[k.length-1]===")",Te={type:"list",raw:b,ordered:D,start:D?+k.slice(0,-1):"",loose:!1,items:[]},He=p[0].match(this.rules.block.item),tt=!1,et,kt,ht,st,Tt,bt,Ut,jt=He.length,yt=0;yt1||this.options.smartLists&&ht!==k)&&(st=He.slice(yt+1).join(`
`),Te.raw=Te.raw.substring(0,Te.raw.length-st.length),yt=jt-1)),Tt=tt||/\n\n(?!\s*$)/.test(et),yt!==jt-1&&(tt=et.charAt(et.length-1)===`
`,Tt||(Tt=tt)),Tt&&(Te.loose=!0),bt=/^\[[ xX]\] /.test(et),Ut=void 0,bt&&(Ut=et[1]!==" ",et=et.replace(/^\[[ xX]\] +/,"")),Te.items.push({type:"list_item",raw:b,task:bt,checked:Ut,loose:Tt,text:et});return Te}},A.html=function(f){var p=this.rules.block.html.exec(f);if(p)return{type:this.options.sanitize?"paragraph":"html",raw:p[0],pre:!this.options.sanitizer&&(p[1]==="pre"||p[1]==="script"||p[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(p[0]):_(p[0]):p[0]}},A.def=function(f){var p=this.rules.block.def.exec(f);if(p){p[3]&&(p[3]=p[3].substring(1,p[3].length-1));var b=p[1].toLowerCase().replace(/\s+/g," ");return{tag:b,raw:p[0],href:p[2],title:p[3]}}},A.table=function(f){var p=this.rules.block.table.exec(f);if(p){var b={type:"table",header:m(p[1].replace(/^ *| *\| *$/g,"")),align:p[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:p[3]?p[3].replace(/\n$/,"").split(`
`):[]};if(b.header.length===b.align.length){b.raw=p[0];var k=b.align.length,D;for(D=0;D/i.test(k[0])&&(p=!1),!b&&/^<(pre|code|kbd|script)(\s|>)/i.test(k[0])?b=!0:b&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(k[0])&&(b=!1),{type:this.options.sanitize?"text":"html",raw:k[0],inLink:p,inRawBlock:b,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(k[0]):_(k[0]):k[0]}},A.link=function(f){var p=this.rules.inline.link.exec(f);if(p){var b=B(p[2],"()");if(b>-1){var k=p[0].indexOf("!")===0?5:4,D=k+p[1].length+b;p[2]=p[2].substring(0,b),p[0]=p[0].substring(0,D).trim(),p[3]=""}var ae=p[2],Te="";if(this.options.pedantic){var He=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ae);He?(ae=He[1],Te=He[3]):Te=""}else Te=p[3]?p[3].slice(1,-1):"";ae=ae.trim().replace(/^<([\s\S]*)>$/,"$1");var tt=ue(p,{href:ae&&ae.replace(this.rules.inline._escapes,"$1"),title:Te&&Te.replace(this.rules.inline._escapes,"$1")},p[0]);return tt}},A.reflink=function(f,p){var b;if((b=this.rules.inline.reflink.exec(f))||(b=this.rules.inline.nolink.exec(f))){var k=(b[2]||b[1]).replace(/\s+/g," ");if(k=p[k.toLowerCase()],!k||!k.href){var D=b[0].charAt(0);return{type:"text",raw:D,text:D}}var ae=ue(b,k,b[0]);return ae}},A.strong=function(f,p,b){b===void 0&&(b="");var k=this.rules.inline.strong.start.exec(f);if(k&&(!k[1]||k[1]&&(b===""||this.rules.inline.punctuation.exec(b)))){p=p.slice(-1*f.length);var D=k[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;D.lastIndex=0;for(var ae;(k=D.exec(p))!=null;)if(ae=this.rules.inline.strong.middle.exec(p.slice(0,k.index+3)),ae)return{type:"strong",raw:f.slice(0,ae[0].length),text:f.slice(2,ae[0].length-2)}}},A.em=function(f,p,b){b===void 0&&(b="");var k=this.rules.inline.em.start.exec(f);if(k&&(!k[1]||k[1]&&(b===""||this.rules.inline.punctuation.exec(b)))){p=p.slice(-1*f.length);var D=k[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;D.lastIndex=0;for(var ae;(k=D.exec(p))!=null;)if(ae=this.rules.inline.em.middle.exec(p.slice(0,k.index+2)),ae)return{type:"em",raw:f.slice(0,ae[0].length),text:f.slice(1,ae[0].length-1)}}},A.codespan=function(f){var p=this.rules.inline.code.exec(f);if(p){var b=p[2].replace(/\n/g," "),k=/[^ ]/.test(b),D=b.startsWith(" ")&&b.endsWith(" ");return k&&D&&(b=b.substring(1,b.length-1)),b=_(b,!0),{type:"codespan",raw:p[0],text:b}}},A.br=function(f){var p=this.rules.inline.br.exec(f);if(p)return{type:"br",raw:p[0]}},A.del=function(f){var p=this.rules.inline.del.exec(f);if(p)return{type:"del",raw:p[0],text:p[1]}},A.autolink=function(f,p){var b=this.rules.inline.autolink.exec(f);if(b){var k,D;return b[2]==="@"?(k=_(this.options.mangle?p(b[1]):b[1]),D="mailto:"+k):(k=_(b[1]),D=k),{type:"link",raw:b[0],text:k,href:D,tokens:[{type:"text",raw:k,text:k}]}}},A.url=function(f,p){var b;if(b=this.rules.inline.url.exec(f)){var k,D;if(b[2]==="@")k=_(this.options.mangle?p(b[0]):b[0]),D="mailto:"+k;else{var ae;do ae=b[0],b[0]=this.rules.inline._backpedal.exec(b[0])[0];while(ae!==b[0]);k=_(b[0]),b[1]==="www."?D="http://"+k:D=k}return{type:"link",raw:b[0],text:k,href:D,tokens:[{type:"text",raw:k,text:k}]}}},A.inlineText=function(f,p,b){var k=this.rules.inline.text.exec(f);if(k){var D;return p?D=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(k[0]):_(k[0]):k[0]:D=_(this.options.smartypants?b(k[0]):k[0]),{type:"text",raw:k[0],text:D}}},I}(),ie=E.noopTest,G=E.edit,Z=E.merge,M={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*|\\n*|\\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:ie,table:ie,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};M._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,M._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,M.def=G(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,M.item=G(M.item,"gm").replace(/bull/g,M.bullet).getRegex(),M.list=G(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._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",M._comment=//,M.html=G(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=G(M._paragraph).replace("hr",M.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",M._tag).getRegex(),M.blockquote=G(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=Z({},M),M.gfm=Z({},M.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*|$)"}),M.gfm.nptable=G(M.gfm.nptable).replace("hr",M.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",M._tag).getRegex(),M.gfm.table=G(M.gfm.table).replace("hr",M.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",M._tag).getRegex(),M.pedantic=Z({},M.normal,{html:G(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",M._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:ie,paragraph:G(M.normal._paragraph).replace("hr",M.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var J={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ie,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:ie,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",J.punctuation=G(J.punctuation).replace(/punctuation/g,J._punctuation).getRegex(),J._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",J._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",J.em.start=G(J.em.start).replace(/punctuation/g,J._punctuation).getRegex(),J.em.middle=G(J.em.middle).replace(/punctuation/g,J._punctuation).replace(/overlapSkip/g,J._overlapSkip).getRegex(),J.em.endAst=G(J.em.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.em.endUnd=G(J.em.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.start=G(J.strong.start).replace(/punctuation/g,J._punctuation).getRegex(),J.strong.middle=G(J.strong.middle).replace(/punctuation/g,J._punctuation).replace(/blockSkip/g,J._blockSkip).getRegex(),J.strong.endAst=G(J.strong.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.endUnd=G(J.strong.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.blockSkip=G(J._blockSkip,"g").getRegex(),J.overlapSkip=G(J._overlapSkip,"g").getRegex(),J._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,J._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,J._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])?)+(?![-_])/,J.autolink=G(J.autolink).replace("scheme",J._scheme).replace("email",J._email).getRegex(),J._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,J.tag=G(J.tag).replace("comment",M._comment).replace("attribute",J._attribute).getRegex(),J._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,J._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,J._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,J.link=G(J.link).replace("label",J._label).replace("href",J._href).replace("title",J._title).getRegex(),J.reflink=G(J.reflink).replace("label",J._label).getRegex(),J.reflinkSearch=G(J.reflinkSearch,"g").replace("reflink",J.reflink).replace("nolink",J.nolink).getRegex(),J.normal=Z({},J),J.pedantic=Z({},J.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:G(/^!?\[(label)\]\((.*?)\)/).replace("label",J._label).getRegex(),reflink:G(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",J._label).getRegex()}),J.gfm=Z({},J.normal,{escape:G(J.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]*?(?:(?=[\\.5&&(f="x"+f.toString(16)),A+=""+f+";";return A}var se=function(){function I(O){this.tokens=[],this.tokens.links=Object.create(null),this.options=O||C,this.options.tokenizer=this.options.tokenizer||new de,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var f={block:g.normal,inline:re.normal};this.options.pedantic?(f.block=g.pedantic,f.inline=re.pedantic):this.options.gfm&&(f.block=g.gfm,this.options.breaks?f.inline=re.breaks:f.inline=re.gfm),this.tokenizer.rules=f}I.lex=function(f,p){var b=new I(p);return b.lex(f)};var A=I.prototype;return A.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},A.blockTokens=function(f,p,b){p===void 0&&(p=[]),b===void 0&&(b=!0),f=f.replace(/^ +$/gm,"");for(var k,D,ae,Te;f;){if(k=this.tokenizer.space(f)){f=f.substring(k.raw.length),k.type&&p.push(k);continue}if(k=this.tokenizer.code(f,p)){f=f.substring(k.raw.length),k.type?p.push(k):(Te=p[p.length-1],Te.raw+=`
`+k.raw,Te.text+=`
`+k.text);continue}if(k=this.tokenizer.fences(f)){f=f.substring(k.raw.length),p.push(k);continue}if(k=this.tokenizer.heading(f)){f=f.substring(k.raw.length),p.push(k);continue}if(k=this.tokenizer.nptable(f)){f=f.substring(k.raw.length),p.push(k);continue}if(k=this.tokenizer.hr(f)){f=f.substring(k.raw.length),p.push(k);continue}if(k=this.tokenizer.blockquote(f)){f=f.substring(k.raw.length),k.tokens=this.blockTokens(k.text,[],b),p.push(k);continue}if(k=this.tokenizer.list(f)){for(f=f.substring(k.raw.length),ae=k.items.length,D=0;D0)for(;(He=this.tokenizer.rules.inline.reflinkSearch.exec(Te))!=null;)tt.includes(He[0].slice(He[0].lastIndexOf("[")+1,-1))&&(Te=Te.slice(0,He.index)+"["+"a".repeat(He[0].length-2)+"]"+Te.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(He=this.tokenizer.rules.inline.blockSkip.exec(Te))!=null;)Te=Te.slice(0,He.index)+"["+"a".repeat(He[0].length-2)+"]"+Te.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;f;){if(ae=this.tokenizer.escape(f)){f=f.substring(ae.raw.length),p.push(ae);continue}if(ae=this.tokenizer.tag(f,b,k)){f=f.substring(ae.raw.length),b=ae.inLink,k=ae.inRawBlock,p.push(ae);continue}if(ae=this.tokenizer.link(f)){f=f.substring(ae.raw.length),ae.type==="link"&&(ae.tokens=this.inlineTokens(ae.text,[],!0,k)),p.push(ae);continue}if(ae=this.tokenizer.reflink(f,this.tokens.links)){f=f.substring(ae.raw.length),ae.type==="link"&&(ae.tokens=this.inlineTokens(ae.text,[],!0,k)),p.push(ae);continue}if(ae=this.tokenizer.strong(f,Te,D)){f=f.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],b,k),p.push(ae);continue}if(ae=this.tokenizer.em(f,Te,D)){f=f.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],b,k),p.push(ae);continue}if(ae=this.tokenizer.codespan(f)){f=f.substring(ae.raw.length),p.push(ae);continue}if(ae=this.tokenizer.br(f)){f=f.substring(ae.raw.length),p.push(ae);continue}if(ae=this.tokenizer.del(f)){f=f.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],b,k),p.push(ae);continue}if(ae=this.tokenizer.autolink(f,Y)){f=f.substring(ae.raw.length),p.push(ae);continue}if(!b&&(ae=this.tokenizer.url(f,Y))){f=f.substring(ae.raw.length),p.push(ae);continue}if(ae=this.tokenizer.inlineText(f,k,pe)){f=f.substring(ae.raw.length),D=ae.raw.slice(-1),p.push(ae);continue}if(f){var et="Infinite loop on byte: "+f.charCodeAt(0);if(this.options.silent){console.error(et);break}else throw new Error(et)}}return p},Ce(I,null,[{key:"rules",get:function(){return{block:g,inline:re}}}]),I}(),ke=L.defaults,Re=E.cleanUrl,Le=E.escape,be=function(){function I(O){this.options=O||ke}var A=I.prototype;return A.code=function(f,p,b){var k=(p||"").match(/\S*/)[0];if(this.options.highlight){var D=this.options.highlight(f,k);D!=null&&D!==f&&(b=!0,f=D)}return k?''+(b?f:Le(f,!0))+`
`:""+(b?f:Le(f,!0))+`
`},A.blockquote=function(f){return`
`+f+`
`},A.html=function(f){return f},A.heading=function(f,p,b,k){return this.options.headerIds?"
`:""+f+"
`},A.hr=function(){return this.options.xhtml?`
`:`
`},A.list=function(f,p,b){var k=p?"ol":"ul",D=p&&b!==1?' start="'+b+'"':"";return"<"+k+D+`>
`+f+""+k+`>
`},A.listitem=function(f){return""+f+`
`},A.checkbox=function(f){return" "},A.paragraph=function(f){return""+f+`
`},A.table=function(f,p){return p&&(p=""+p+""),`
`},A.tablerow=function(f){return`
`+f+`
`},A.tablecell=function(f,p){var b=p.header?"th":"td",k=p.align?"<"+b+' align="'+p.align+'">':"<"+b+">";return k+f+""+b+`>
`},A.strong=function(f){return""+f+""},A.em=function(f){return""+f+""},A.codespan=function(f){return""+f+""},A.br=function(){return this.options.xhtml?"
":"
"},A.del=function(f){return""+f+""},A.link=function(f,p,b){if(f=Re(this.options.sanitize,this.options.baseUrl,f),f===null)return b;var k='"+b+"",k},A.image=function(f,p,b){if(f=Re(this.options.sanitize,this.options.baseUrl,f),f===null)return b;var k='
":">",k},A.text=function(f){return f},I}(),Ee=function(){function I(){}var A=I.prototype;return A.strong=function(f){return f},A.em=function(f){return f},A.codespan=function(f){return f},A.del=function(f){return f},A.html=function(f){return f},A.text=function(f){return f},A.link=function(f,p,b){return""+b},A.image=function(f,p,b){return""+b},A.br=function(){return""},I}(),Ue=function(){function I(){this.seen={}}var A=I.prototype;return A.slug=function(f){var p=f.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(p)){var b=p;do this.seen[b]++,p=b+"-"+this.seen[b];while(this.seen.hasOwnProperty(p))}return this.seen[p]=0,p},I}(),Je=L.defaults,ze=E.unescape,Ve=function(){function I(O){this.options=O||Je,this.options.renderer=this.options.renderer||new be,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ee,this.slugger=new Ue}I.parse=function(f,p){var b=new I(p);return b.parse(f)};var A=I.prototype;return A.parse=function(f,p){p===void 0&&(p=!0);var b="",k,D,ae,Te,He,tt,et,kt,ht,st,Tt,bt,Ut,jt,yt,Tn,Mn,un,gn=f.length;for(k=0;k0&&yt.tokens[0].type==="text"?(yt.tokens[0].text=un+" "+yt.tokens[0].text,yt.tokens[0].tokens&&yt.tokens[0].tokens.length>0&&yt.tokens[0].tokens[0].type==="text"&&(yt.tokens[0].tokens[0].text=un+" "+yt.tokens[0].tokens[0].text)):yt.tokens.unshift({type:"text",text:un}):jt+=un),jt+=this.parse(yt.tokens,Ut),ht+=this.renderer.listitem(jt,Mn,Tn);b+=this.renderer.list(ht,Tt,bt);continue}case"html":{b+=this.renderer.html(st.text);continue}case"paragraph":{b+=this.renderer.paragraph(this.parseInline(st.tokens));continue}case"text":{for(ht=st.tokens?this.parseInline(st.tokens):st.text;k+1An error occurred:
"+Ke(ae.message+"",!0)+"
";throw ae}}ye.options=ye.setOptions=function(I){return ot(ye.defaults,I),it(ye.defaults),ye},ye.getDefaults=he,ye.defaults=qe,ye.use=function(I){var A=ot({},I);if(I.renderer&&function(){var f=ye.defaults.renderer||new be,p=function(D){var ae=f[D];f[D]=function(){for(var Te=arguments.length,He=new Array(Te),tt=0;tt`,triples:"",explode:"[]{}"},oe=K.Pos;K.defineOption("autoCloseBrackets",!1,function(F,z,j){j&&j!=K.Init&&(F.removeKeyMap(ge),F.state.closeBrackets=null),z&&(ee(Se(z,"pairs")),F.state.closeBrackets=z,F.addKeyMap(ge))});function Se(F,z){return z=="pairs"&&typeof F=="string"?F:typeof F=="object"&&F[z]!=null?F[z]:Ce[z]}var ge={Backspace:P,Enter:V};function ee(F){for(var z=0;z=0;ce--){var Xe=le[ce].head;F.replaceRange("",oe(Xe.line,Xe.ch-1),oe(Xe.line,Xe.ch+1),"+delete")}}function V(F){var z=W(F),j=z&&Se(z,"explode");if(!j||F.getOption("disableInput"))return K.Pass;for(var le=F.listSelections(),ce=0;ce0;return{anchor:new oe(F.anchor.line,F.anchor.ch+(z?-1:1)),head:new oe(F.head.line,F.head.ch+(z?1:-1))}}function R(F,z){var j=W(F);if(!j||F.getOption("disableInput"))return K.Pass;var le=Se(j,"pairs"),ce=le.indexOf(z);if(ce==-1)return K.Pass;for(var Oe=Se(j,"closeBefore"),Xe=Se(j,"triples"),Ie=le.charAt(ce+1)==z,De=F.listSelections(),Fe=ce%2==0,xe,we=0;we=0&&F.getRange(ne,oe(ne.line,ne.ch+3))==z+z+z?v="skipThree":v="skip";else if(Ie&&ne.ch>1&&Xe.indexOf(z)>=0&&F.getRange(oe(ne.line,ne.ch-2),ne)==z+z){if(ne.ch>2&&/\bstring/.test(F.getTokenTypeAt(oe(ne.line,ne.ch-2))))return K.Pass;v="addFour"}else if(Ie){var H=ne.ch==0?" ":F.getRange(oe(ne.line,ne.ch-1),ne);if(!K.isWordChar(Q)&&H!=z&&!K.isWordChar(H))v="both";else return K.Pass}else if(Fe&&(Q.length===0||/\s/.test(Q)||Oe.indexOf(Q)>-1))v="both";else return K.Pass;if(!xe)xe=v;else if(xe!=v)return K.Pass}var w=ce%2?le.charAt(ce-1):z,q=ce%2?z:le.charAt(ce+1);F.operation(function(){if(xe=="skip")F.execCommand("goCharRight");else if(xe=="skipThree")for(var U=0;U<3;U++)F.execCommand("goCharRight");else if(xe=="surround"){for(var T=F.getSelections(),U=0;U0&&(B.percent=B.loaded/B.total*100),E.onProgress(B)});var l=new FormData;E.data&&Object.keys(E.data).forEach(function(_){var B=E.data[_];if(Array.isArray(B)){B.forEach(function(ue){l.append(_+"[]",ue)});return}l.append(_,E.data[_])}),E.file instanceof Blob?l.append(E.filename,E.file,E.file.name):l.append(E.filename,E.file),c.onerror=function(B){E.onError(B)},c.onload=function(){return c.status<200||c.status>=300?E.onError(ge(E,c),ee(c)):E.onSuccess(ee(c),c)},c.open(E.method,E.action,!0),E.withCredentials&&"withCredentials"in c&&(c.withCredentials=!0);var m=E.headers||{};return m["X-Requested-With"]!==null&&c.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(m).forEach(function(_){m[_]!==null&&c.setRequestHeader(_,m[_])}),c.send(l),{abort:function(){c.abort()}}}var W=+new Date,P=0;function V(){return"rc-upload-"+W+"-"+ ++P}function N(E,c){return E.indexOf(c,E.length-c.length)!==-1}var R=function(E,c){if(E&&c){var l=Array.isArray(c)?c:c.split(","),m=E.name||"",_=E.type||"",B=_.replace(/\/.*$/,"");return l.some(function(ue){var Ae=ue.trim();return Ae.charAt(0)==="."?N(m.toLowerCase(),Ae.toLowerCase()):/\/\*$/.test(Ae)?B===Ae.replace(/\/.*$/,""):_===Ae})}return!0};function ve(E,c){var l=E.createReader(),m=[];function _(){l.readEntries(function(B){var ue=Array.prototype.slice.apply(B);m=m.concat(ue);var Ae=!ue.length;Ae?c(m):_()})}_()}var te=function(c,l,m){var _=function B(ue,Ae){Ae=Ae||"",ue.isFile?ue.file(function(de){m(de)&&(ue.fullPath&&!de.webkitRelativePath&&(Object.defineProperties(de,{webkitRelativePath:{writable:!0}}),de.webkitRelativePath=ue.fullPath.replace(/^\//,""),Object.defineProperties(de,{webkitRelativePath:{writable:!1}})),l([de]))}):ue.isDirectory&&ve(ue,function(de){de.forEach(function(ie){B(ie,""+Ae+ue.name+"/")})})};c.forEach(function(B){_(B.webkitGetAsEntry())})},F=te,z=Object.assign||function(E){for(var c=1;c=0)continue;if(!Object.prototype.hasOwnProperty.call(E,m))continue;l[m]=E[m]}return l}function Xe(E,c){if(!(E instanceof c))throw new TypeError("Cannot call a class as a function")}function Ie(E,c){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:E}function De(E,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);E.prototype=Object.create(c&&c.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(E,c):E.__proto__=c)}var Fe=function(c){return Object.keys(c).reduce(function(l,m){return(m.substr(0,5)==="data-"||m.substr(0,5)==="aria-"||m==="role")&&(l[m]=c[m]),l},{})},xe=function(E){De(c,E);function c(){var l,m,_,B;Xe(this,c);for(var ue=arguments.length,Ae=Array(ue),de=0;de1&&arguments[1]!==void 0?arguments[1]:1,O=Ee.length,f=0;f1&&arguments[1]!==void 0?arguments[1]:!1;return Object(Fe.a)(l).map(function(_,B){if(!ge.isValidElement(_)||!_.type)return null;var ue=_.type.isSelectOptGroup,Ae=_.key,de=_.props,ie=de.children,G=Object(L.a)(de,["children"]);return m||!ue?xe(_):Object(De.a)(Object(De.a)({key:"__RC_SELECT_GRP__".concat(Ae===null?B:Ae,"__"),label:Ae},G),{},{options:we(ie)})}).filter(function(_){return _})}var fe=x("2Qr1"),ne=x("qNPg"),v=x("U8pU"),Q=x("Kwbf"),H=x("WKfj");function w(l){var m=l.mode,_=l.options,B=l.children,ue=l.backfill,Ae=l.allowClear,de=l.placeholder,ie=l.getInputElement,G=l.showSearch,Z=l.onSearch,M=l.defaultOpen,J=l.autoFocus,h=l.labelInValue,C=l.value,g=l.inputValue,re=l.optionLabelProp,pe=m==="multiple"||m==="tags",Y=G!==void 0?G:pe||m==="combobox",se=_||we(B);if(Object(Q.a)(m!=="tags"||se.every(function(be){return!be.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),m==="tags"||m==="combobox"){var ke=se.some(function(be){return be.options?be.options.some(function(Ee){return typeof("value"in Ee?Ee.value:Ee.key)=="number"}):typeof("value"in be?be.value:be.key)=="number"});Object(Q.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(Q.a)(m!=="combobox"||!re,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(Q.a)(m==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(Q.a)(m==="combobox"||!ie,"`getInputElement` only work with `combobox` mode."),Object(Q.b)(m!=="combobox"||!ie||!Ae||!de,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Z&&!Y&&m!=="combobox"&&m!=="tags"&&Object(Q.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(Q.b)(!M||J,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),C!=null){var Re=Object(H.d)(C);Object(Q.a)(!h||Re.every(function(be){return Object(v.a)(be)==="object"&&("key"in be||"value"in be)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(Q.a)(!pe||Array.isArray(C),"`value` should be array when `mode` is `multiple` or `tags`")}if(B){var Le=null;Object(Fe.a)(B).some(function(be){if(!ge.isValidElement(be)||!be.type)return!1;var Ee=be.type;if(Ee.isSelectOption)return!1;if(Ee.isSelectOptGroup){var Ue=Object(Fe.a)(be.props.children).every(function(Je){return!ge.isValidElement(Je)||!be.type||Je.type.isSelectOption?!0:(Le=Je.type,!1)});return!Ue}return Le=Ee,!0}),Le&&Object(Q.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Le.displayName||Le.name||Le,"`.")),Object(Q.a)(g===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var q=w,U=Object(ne.a)({prefixCls:"rc-select",components:{optionList:le},convertChildrenToData:we,flattenOptions:fe.d,getLabeledValue:fe.e,filterOptions:fe.b,isValueDisabled:fe.g,findValueOption:fe.c,warningProps:q,fillOptionsWithMissingValue:fe.a}),T=function(l){Object(oe.a)(_,l);var m=Object(Se.a)(_);function _(){var B;return Object(K.a)(this,_),B=m.apply(this,arguments),B.selectRef=ge.createRef(),B.focus=function(){B.selectRef.current.focus()},B.blur=function(){B.selectRef.current.blur()},B}return Object(Ce.a)(_,[{key:"render",value:function(){return ge.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),_}(ge.Component);T.Option=Oe,T.OptGroup=Ie;var E=T,c=Ye.c=E},M8RZ:function(ft,Ye,x){"use strict";x.d(Ye,"a",function(){return P});var K=x("fWQN"),Ce=x("mtLc"),oe=x("yKVA"),Se=x("879j"),ge=x("cDcd"),ee=x.n(ge),L=x("faye"),W=x.n(L),P=function(V){Object(oe.a)(R,V);var N=Object(Se.a)(R);function R(ve){var te;Object(K.a)(this,R),te=N.call(this,ve);var F=window.document;return te.node=F.createElement("div"),F.body.appendChild(te.node),te}return Object(Ce.a)(R,[{key:"render",value:function(){var te=this.props.children;return Object(L.createPortal)(te,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),R}(ee.a.Component)},Ot1p:function(ft,Ye,x){"use strict";var K=x("2qtc"),Ce=x("kLXV"),oe=x("rAM+"),Se=x("miYZ"),ge=x("tsqr"),ee=x("9og8"),L=x("tJVT"),W=x("jrin"),P=x("WmNS"),V=x.n(P),N=x("cDcd"),R=x.n(N),ve=x("VrN/"),te=x.n(ve),F=x("bdgK"),z=x("p77/"),j=x("Bd2K"),le=x("ELLl"),ce=x("19Vz"),Oe=x("lZu9"),Xe=x("+NIl"),Ie=x("kSUc"),De=x("9Bee"),Fe=function(D){var ae=D.value,Te=ae===void 0?"":ae,He=D.className,tt=D.showTextOnly,et=D.showLines,kt=D.style,ht=kt===void 0?{}:kt,st=Object(N.useMemo)(function(){return""},[Te]);return R.a.createElement(R.a.Fragment,null,R.a.createElement("div",{dangerouslySetInnerHTML:{__html:st}}))},xe=x("0Owb"),we=x("dejd"),fe=x("C+DQ"),ne=x("1vsH"),v=x("m3rI"),Q=[{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 H(D){var ae=D.onActionCallback,Te=D.title,He=D.icon,tt=D.actionName,et=D.className,kt=et===void 0?"":et,ht=D.children;function st(){ae(tt)}return R.a.createElement("a",{title:Te,className:kt,onClick:st},R.a.createElement("i",{className:"md-iconfont ".concat(He)}),ht)}var w=function(D){var ae=D.watch,Te=D.showNullButton,He=D.onActionCallback,tt=D.fullScreen,et=D.insertTemp,kt=D.hidetoolBar,ht=D.uuid,st=D.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(ne.n)("_educoder_session_login"),"&_educoder_session=").concat(Object(ne.n)("_educoder_session"),"&key=").concat(ht,"&api=").concat(encodeURIComponent(v.a.PROXY_SERVER)));var Tt=[].concat(Q,[{title:"".concat(ae?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ae?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return R.a.createElement("ul",{className:"markdown-toolbar-container"},!kt&&Tt.map(function(bt,Ut){return R.a.createElement("li",{key:Ut},bt.actionName?R.a.createElement(H,Object(xe.a)({},bt,{onActionCallback:He})):R.a.createElement("span",{className:"v-line"}))}),Te?R.a.createElement("li",null,R.a.createElement(H,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:He},R.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,et&&R.a.createElement("li",null,R.a.createElement(H,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(et),onActionCallback:He},R.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),R.a.createElement("li",{className:"btn-full-screen"},R.a.createElement(H,{icon:"".concat(tt?"icon-shrink":"icon-enlarge"),title:tt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:He})))},q=x("M8RZ"),U=x("+L6B"),T=x("2/Rp"),E=x("y8nQ"),c=x("Vl3Y"),l=x("5NDa"),m=x("5rEg"),_={labelCol:{span:4},wrapperCol:{span:20}},B=function(D){var ae=D.callback,Te=D.onCancel;function He(tt){ae(tt)}return R.a.createElement(c.a,Object(xe.a)({},_,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:He}),R.a.createElement(c.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},R.a.createElement(m.a,null)),R.a.createElement(c.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},R.a.createElement(m.a,null)),R.a.createElement("div",{className:"flex-container flex-end"},R.a.createElement(T.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),R.a.createElement(T.a,{type:"ghost",onClick:Te},"\u53D6\u6D88")))},ue=x("7ahc"),Ae=x("HmJG"),de=x("BjJ7"),ie=c.a.useForm,G={width:280,marginRight:10},Z={labelCol:{span:5},wrapperCol:{span:19}},M=function(D){var ae=D.callback,Te=D.onCancel,He=ie(),tt=Object(L.a)(He,1),et=tt[0];function kt(Tt){ae(Tt)}function ht(Tt,bt){if(Tt.status===-1){ge.b.error(Tt.message);return}et.setFieldsValue({src:"/api/attachments/".concat(Tt.id),type:bt.type})}function st(Tt){var bt=Tt.target.files[0];h(bt,ht)}return R.a.createElement(c.a,Object(xe.a)({form:et},Z,{className:"upload-image-panel",onFinish:kt}),R.a.createElement(c.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},R.a.createElement("div",{className:"flex-container"},R.a.createElement(c.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},R.a.createElement(m.a,{style:G})),R.a.createElement(J,{onFileChange:st}))),R.a.createElement(c.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},R.a.createElement(m.a,{style:{width:264}})),R.a.createElement(c.a.Item,{style:{textAlign:"right"}},R.a.createElement(T.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),R.a.createElement(T.a,{type:"ghost",onClick:Te},"\u53D6\u6D88")))};function J(D){var ae=D.onFileChange;return R.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",R.a.createElement("input",{type:"file",onChange:ae}))}function h(D,ae){if(!D)throw new String("\u6CA1\u6709\u6587\u4EF6");var Te=new FormData;Te.append("editormd-image-file",D),Te.append("file_param_name","editormd-image-file"),Te.append("byxhr","true");var He=new window.XMLHttpRequest;He.withCredentials=!0,He.addEventListener("load",function(tt){ae(JSON.parse(tt.target.responseText),D)},!1),He.addEventListener("error",function(tt){console.error(tt)},!1),He.open("POST","".concat(de.a,"/api/attachments.json")),He.send(Te)}var C=x("giR+"),g=x("fyUT"),re=x("7Kak"),pe=x("9yH6"),Y=pe.a.Group,se={margin:"0 8px"},ke=function(D){var ae=D.callback,Te=D.onCancel;function He(tt){ae(tt)}return R.a.createElement(c.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:He},R.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},R.a.createElement("span",{style:se},"\u5355\u5143\u683C\u6570\uFF1A"),R.a.createElement("span",{style:se},"\u884C\u6570"),R.a.createElement(c.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},R.a.createElement(g.a,null)),R.a.createElement("span",{style:se},"\u5217\u6570"),R.a.createElement(c.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},R.a.createElement(g.a,null))),R.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},R.a.createElement("span",{style:se},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),R.a.createElement(c.a.Item,{name:"align"},R.a.createElement(Y,null,R.a.createElement(pe.a,{value:"default"},R.a.createElement("i",{className:"fa fa-align-justify"})),R.a.createElement(pe.a,{value:"left"},R.a.createElement("i",{className:"fa fa-align-left"})),R.a.createElement(pe.a,{value:"center"},R.a.createElement("i",{className:"fa fa-align-center"})),R.a.createElement(pe.a,{value:"right"},R.a.createElement("i",{className:"fa fa-align-right"}))))),R.a.createElement("div",{className:"flex-container flex-end"},R.a.createElement(T.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),R.a.createElement(T.a,{type:"ghost",onClick:Te},"\u53D6\u6D88")))},Re=x("ErOA"),Le=x("7Cbv"),be="link",Ee="upload-image",Ue="code-block",Je="add-table",ze="------------",Ve={default:ze,left:":".concat(ze),center:":".concat(ze,":"),right:"".concat(ze,":")},ot=x("9VGf"),rt,Ke;function he(){}var it=0,qe=1e4,ye="\u2581",Pe=`
**\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 I(D){return/^\d+$/.test(D)?"".concat(D,"px"):D}var A=navigator.platform.toUpperCase().indexOf("MAC")>=0,O=A?"Cmd":"Ctrl",f=["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"],p=(rt={},Object(W.a)(rt,O+"-B","bold"),Object(W.a)(rt,O+"-I","italic"),rt),b=(Ke={},Object(W.a)(Ke,be,"\u6DFB\u52A0\u94FE\u63A5"),Object(W.a)(Ke,Ue,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(W.a)(Ke,Ee,"\u6DFB\u52A0\u6587\u4EF6"),Object(W.a)(Ke,Je,"\u6DFB\u52A0\u8868\u683C"),Ke),k=Ye.a=function(D){var ae=D.defaultValue,Te=ae===void 0?"":ae,He=D.onChange,tt=D.width,et=tt===void 0?"100%":tt,kt=D.height,ht=kt===void 0?400:kt,st=D.miniToolbar,Tt=st===void 0?!1:st,bt=D.isFocus,Ut=bt===void 0?!1:bt,jt=D.watch,yt=D.insertTemp,Tn=D.mode,Mn=Tn===void 0?"markdown":Tn,un=D.id,gn=un===void 0?"markdown-editor-id":un,hn=D.showResizeBar,ia=hn===void 0?!1:hn,_n=D.noStorage,zr=_n===void 0?!1:_n,Hr=D.showNullButton,Rt=Hr===void 0?!1:Hr,Ze=D.hidetoolBar,Dn=Ze===void 0?!1:Ze,pr=D.fullScreen,Zt=pr===void 0?!1:pr,wt=D.onBlur,vn=D.onCMBeforeChange,Pn=D.onFullScreen,mr=D.className,Me=mr===void 0?"":mr,ut=D.disablePaste,Xr=ut===void 0?!1:ut,gr=D.placeholder,vr=gr===void 0?"":gr,Zn=D.values,br=Zn===void 0?"":Zn,dt=Object(N.useState)(null),Ti=Object(L.a)(dt,2),Ne=Ti[0],yr=Ti[1],pn=Object(N.useState)(Te),Gr=Object(L.a)(pn,2),Qn=Gr[0],bn=Gr[1],Kr=Object(N.useState)(jt),Vr=Object(L.a)(Kr,2),yn=Vr[0],$r=Vr[1],_i=Object(N.useState)(Zt),Yr=Object(L.a)(_i,2),xn=Yr[0],Ai=Yr[1],aa=Object(N.useState)(""),Jr=Object(L.a)(aa,2),Yt=Jr[0],zn=Jr[1],oa=Object(N.useState)(0),er=Object(L.a)(oa,2),wn=er[0],qr=er[1],sa=Object(N.useState)(ht),Oi=Object(L.a)(sa,2),Li=Oi[0],xr=Oi[1],Ri=Object(N.useState)(!1),Mi=Object(L.a)(Ri,2),la=Mi[0],wr=Mi[1],tr=Object(N.useRef)(Object(Le.a)()),nr=Object(N.useRef)(!1),Er=Object(N.useRef)(),Nn=Object(N.useRef)(),jn=Object(N.useRef)(),In=Object(N.useRef)(),Cr=Object(N.useRef)(),Di=function(){var Qe=Object(ee.a)(V.a.mark(function ct(){var at,mt;return V.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(Re.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:tr.current}});case 2:mt=_t.sent,mt!=null&&(at=mt.attachments)!==null&&at!==void 0&&at.length&&(console.log("cm:",Ne,Nn),mt.attachments.map(function(vt){vt.content_type.indexOf("image")>-1?Ne.replaceSelection(".concat(vt.content_type,")")):vt.content_type.indexOf("video")>-1?Ne.replaceSelection('')):vt.content_type.indexOf("pdf")>-1?Ne.replaceSelection('').concat(vt.name,"")):Ne.replaceSelection("[".concat(vt.name,"](").concat(v.a.API_SERVER,"/api/attachments/").concat(vt.id,"?type=").concat(vt.content_type,")"))}));case 4:case"end":return _t.stop()}},ct)}));return function(){return Qe.apply(this,arguments)}}();Object(N.useEffect)(function(){bn(br),Ne==null||Ne.setValue(br)},[br]),Object(N.useEffect)(function(){Pn==null||Pn(xn)},[xn]),Object(N.useEffect)(function(){if(Nn.current){var Qe=te.a.fromTextArea(Nn.current,{mode:Mn,lineNumbers:!Tt,lineWrapping:!0,value:Te,autoCloseTags:!0,autoCloseBrackets:!0});Ut&&Qe.focus();function ct(at,mt){if(Xr){mt.preventDefault();return}var xt=mt.clipboardData;if(xt){var _t=xt.types.toString(),vt=xt.items;if(_t==="Files"||xt.types.indexOf("Files")>-1){if(mt.preventDefault(),Mn=="stex")return;try{var It,Qt=vt[1];((It=vt[0])===null||It===void 0?void 0:It.kind)==="file"&&(Qt=vt[0]);var gt=Qt.getAsFile(),Fn=gt.name.split(".").pop();h(gt,function(Et){if(Et.id){var en,Kt,mn;(gt==null||((en=gt.type)===null||en===void 0)?void 0:en.indexOf("image"))>-1?Qe.replaceSelection(".concat(Et.content_type,")")):(gt==null||((Kt=gt.type)===null||Kt===void 0)?void 0:Kt.indexOf("video"))>-1?Qe.replaceSelection('')):(gt==null||((mn=gt.type)===null||mn===void 0)?void 0:mn.indexOf("pdf"))>-1?Qe.replaceSelection('').concat(gt.name,"")):f.includes(Fn)?Qe.replaceSelection('').concat(gt.name,"")):Qe.replaceSelection("[".concat(gt.name,"](").concat(v.a.API_SERVER,"/api/attachments/").concat(Et.id,"?type=").concat(Et.content_type,")"))}else(Et==null?void 0:Et.status)===401&&(document.location.href="/user/login")})}catch(Et){ge.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Qe.on("paste",ct),Qe.on("dragleave",function(at,mt){jn.current.classList.remove("mouse-hover-md")}),Qe.on("dragover",function(at,mt){jn.current.classList.add("mouse-hover-md")}),Qe.on("drop",function(at,mt){jn.current.classList.add("mouse-hover-md");var xt;if(xt=mt.dataTransfer.files,xt.length>0){mt.preventDefault(),mt.stopPropagation();for(var _t=function(Qt){var gt=xt[Qt],Fn=gt.name.split(".").pop();h(gt,function(Et){if(Et.id){var en,Kt,mn;(gt==null||((en=gt.type)===null||en===void 0)?void 0:en.indexOf("image"))>-1?Qe.replaceSelection(".concat(Et.content_type,")")):(gt==null||((Kt=gt.type)===null||Kt===void 0)?void 0:Kt.indexOf("video"))>-1?Qe.replaceSelection('')):(gt==null||((mn=gt.type)===null||mn===void 0)?void 0:mn.indexOf("pdf"))>-1?Qe.replaceSelection('').concat(gt.name,"")):f.includes(Fn)?Qe.replaceSelection('').concat(gt.name,"")):Qe.replaceSelection("[".concat(gt.name,"](").concat(v.a.API_SERVER,"/api/attachments/").concat(Et.id,"?type=").concat(Et.content_type,")"))}else(Et==null?void 0:Et.status)===401&&(document.location.href="/user/login")})},vt=0;vt0||vt.target.offsetWidth>0)&&(cn(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(It){xt.e(It)}finally{xt.f()}});return at.observe(Nn.current.parentElement),at}if(Ne){var ct=Qe();return function(){ct.unobserve(Nn.current.parentElement)}}},[Ne,cn]),Object(N.useEffect)(function(){if(Ne){for(var Qe=[],ct=function(){var vt=mt[at];xt=Object(L.a)(vt,2);var It=xt[0],Qt=xt[1],gt=Object(W.a)({},It,function(){Pi(Qt)});Qe.push(gt),Ne.addKeyMap(gt)},at=0,mt=Object.entries(p);at0){var Qe=new Date().getTime(),ct=window.sessionStorage.getItem(gn);Qe>=wn+qe&&(!ct||ct!==Qn)&&(window.sessionStorage.setItem(gn,Qn),wr(!0))}},qe),Object(N.useEffect)(function(){$r(jt)},[Ne,jt]),Object(N.useEffect)(function(){Ne&&(Ut&&Ne.focus())},[Ne,Ut]),Object(N.useEffect)(function(){if(yn&&Ne){var Qe=Ne.getScrollerElement();function ct(at){var mt=at.target;if(Cr.current){var xt=mt.scrollTop/mt.scrollHeight;Cr.current.scrollTop=Cr.current.scrollHeight*xt}}return Qe.addEventListener("scroll",ct),function(){Qe.removeEventListener("scroll",ct)}}},[Ne,yn]),Object(N.useEffect)(function(){if(Ne&&vn){function Qe(ct,at){vn(ct,at)}return Ne.on("beforeChange",Qe),function(){Ne.off("beforeChange",Qe)}}},[Ne,vn]),Object(N.useEffect)(function(){if(Ne&&wt){function Qe(){wt(Ne.getValue())}return Ne.on("blur",Qe),function(){Ne.off("blur",Qe)}}},[Ne,wt]),Object(N.useEffect)(function(){if(Ne){function Qe(ct){var at=ct.getValue();bn(at),qr(new Date().getTime()),ct.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),He&&He(at)}return Ne.on("change",Qe),function(){Ne.off("change",Qe)}}},[Ne,He]),Object(N.useEffect)(function(){Ne&&(Te==null?(Ne.setValue(""),bn("")):Te!==Ne.getValue()&&(Ne.setValue(Te),bn(Te),Ne.setCursor(Ne.lineCount(),0)))},[Ne,Te]);var Pi=Object(N.useCallback)(function(Qe){var ct=Ne.getCursor(),at=Ne.getSelection(),mt=at.split(`
`);switch(Qe){case"bold":return Ne.replaceSelection("**"+at+"**"),at===""&&Ne.setCursor(ct.line,ct.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+at+"*"),at===""&&Ne.setCursor(ct.line,ct.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+at+"`"),at===""&&Ne.setCursor(ct.line,ct.ch+1),Ne.focus();case"inline-latex":return Ne.replaceSelection("`$$"+at+"$$`"),at===""&&Ne.setCursor(ct.line,ct.ch+3),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+at+"\n```"),Ne.setCursor(ct.line+1,at.length+1),Ne.focus();case"line-break":return Ne.replaceSelection(`
`),Ne.focus();case"list-ul":return at===""?Ne.replaceSelection("- "+at):Ne.replaceSelection(mt.map(function(xt){return xt===""?"":"- ".concat(xt)}).join(`
`)),Ne.focus();case"list-ol":return at===""?Ne.replaceSelection("1. "+at):Ne.replaceSelection(mt.map(function(xt,_t){return xt===""?"":"".concat(_t+1,". ").concat(xt)}).join(`
`)),Ne.focus();case"add-null-ch":return at===""&&Ne.setCursor(ct.line,ct.ch+1),Ne.replaceSelection(ye),Ne.focus();case"inster-template-1":return at===""&&Ne.setCursor(ct.line,ct.ch),Ne.replaceSelection(Pe),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return $r(!yn),Ne.focus();case"trigger-full-screen":return Ai(!xn),Ne.focus();case be:zn(be);return;case Ue:zn(Ue);return;case Ee:zn(Ee);return;case Je:zn(Je);return;default:throw new Error}},[Ne,yn,xn]),kr=Object(N.useCallback)(function(Qe){zn("");switch(Yt){case be:var ct=Qe.title,at=Qe.link;return Ne.replaceSelection("[".concat(ct,"](").concat(at,")")),Ne.focus();case Ue:var mt=Qe.language,xt=Qe.content;return Ne.replaceSelection(["```"+mt,xt,"```"].join(`
`)),Ne.focus();case Ee:var _t=Qe.src,vt=Qe.alt;return vt?Ne.replaceSelection(".concat(_t,' "').concat(vt,'" )')):Ne.replaceSelection("")),Ne.focus();case Je:for(var It=Qe.row,Qt=Qe.col,gt=Qe.align,Fn=`
`,Et=0;Et300&&(It=300);var Qt=ht+It+"px";xr(Qt)}}return Qe.addEventListener("mousedown",mt),document.addEventListener("mousemove",_t),document.addEventListener("mouseup",xt),function(){Qe.removeEventListener("mousedown",mt),document.removeEventListener("mousemove",_t),document.removeEventListener("mouseup",xt)}}},[Ne,In]),Object(N.useEffect)(function(){xr(ht)},[ht]);var An=I(et),Qr=I(Li),En={width:An,height:Qr},ei=Object(N.useMemo)(function(){if(wn){var Qe=new Date(wn),ct=Qe.getHours(),at=Qe.getMinutes(),mt=Qe.getSeconds();return ct=ct<10?"0"+ct:ct,at=at<10?"0"+at:at,mt=mt<10?"0"+mt:mt,"".concat(ct,":").concat(at,":").concat(mt)}return 0},[wn]);function Ni(){window.sessionStorage.removeItem(gn),wr(!1),qr(0)}function rr(){wr(!1),qr(0),Ne.setValue(window.sessionStorage.getItem(gn))}function ua(Qe,ct){var at=Ne.getValue();at=at.replace(Qe,ct),bn(at),Ne==null||Ne.setValue(at)}return R.a.createElement(N.Fragment,null,R.a.createElement("div",{className:"markdown-editor-wrapper",ref:jn},R.a.createElement("div",{className:"markdown-editor-container ".concat(Me," ").concat(yn?"on-preview":""," ").concat(Tt?"mini":""," ").concat(xn?"full-screen":""),style:En},R.a.createElement(w,{insertTemp:yt,watch:yn,fullScreen:xn,showNullButton:Rt,onActionCallback:Pi,hidetoolBar:Dn,uuid:tr.current,setOpenPhones:function(){nr.current=!0}}),R.a.createElement("div",{className:"markdown-editor-body"},R.a.createElement("div",{className:"codemirror-container"},R.a.createElement("textarea",{ref:Nn,placeholder:vr})),yn?R.a.createElement("div",{ref:Cr,className:"preview-container"},Mn==="stex"&&R.a.createElement(Fe,{value:Qn}),Mn!=="stex"&&R.a.createElement(De.a,{edit:!0,value:Qn,replaces:ua})):null))),ia?R.a.createElement("a",{ref:In,className:"editor-resize"}):null,R.a.createElement(q.a,null,b[Yt]?R.a.createElement(Ce.a,{centered:!0,title:b[Yt],visible:!0,onCancel:Hn,footer:null,className:"markdown-popup-form"},Zr):null))}},SJMd:function(ft,Ye){/**
* @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 x,K,Ce,oe=!1,Se,ge;window.PR_SHOULD_USE_CONTINUATION=!0;var ee,L;(function(){var W=window,P=["break,continue,do,else,for,if,return,while"],V=[P,"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"],N=[V,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],R=[N,"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"],ve=[N,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],te=[N,"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"],F="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",z=[N,"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",le=[P,"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"],ce=[P,"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"],Oe=[P,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Xe=[R,te,ve,z,j,le,ce,Oe],Ie=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,De="str",Fe="kwd",xe="com",we="typ",fe="lit",ne="pun",v="pln",Q="tag",H="dec",w="src",q="atn",U="atv",T="nocode",E="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function c(Y){for(var se=0,ke=!1,Re=!1,Le=0,be=Y.length;Le122||(f<65||O>90||it.push([Math.max(65,O)|32,Math.min(f,90)|32]),f<97||O>122||it.push([Math.max(97,O)&~32,Math.min(f,122)&~32]))}}it.sort(function(D,ae){return D[0]-ae[0]||ae[1]-D[1]});for(var p=[],b=[],Pe=0;Pek[0]&&(k[1]+1>k[0]&&ye.push("-"),ye.push(ze(k[1])))}return ye.push("]"),ye.join("")}function ot(Ke){for(var he=Ke.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")),it=he.length,qe=[],ye=0,Pe=0;ye=2&&O==="["?he[ye]=Ve(I):O!=="\\"&&(he[ye]=I.replace(/[a-zA-Z]/g,function(b){var k=b.charCodeAt(0);return"["+String.fromCharCode(k&~32,k|32)+"]"}))}return he.join("")}for(var rt=[],Le=0,be=Y.length;Le=0;)ke[rt.charAt(Ke)]=ot;var he=ot[1],it=""+he;Je.hasOwnProperty(it)||(Ue.push(he),Je[it]=null)}Ue.push(/[\0-\uffff]/),Re=c(Ue)})();var Le=se.length,be=function(Ee){for(var Ue=Ee.sourceCode,Je=Ee.basePos,ze=Ee.sourceNode,Ve=[Je,v],ot=0,rt=Ue.match(Re)||[],Ke={},he=0,it=rt.length;he=5&&ye.substring(0,5)==="lang-",I&&!(Pe&&typeof Pe[1]=="string")&&(I=!1,ye=w),I||(Ke[qe]=ye)}var f=ot;if(ot+=qe.length,!I)Ve.push(Je+f,ye);else{var p=Pe[1],b=qe.indexOf(p),k=b+p.length;Pe[2]&&(k=qe.length-Pe[2].length,b=k-p.length);var D=ye.substring(5);m(ze,Je+f,qe.substring(0,b),be,Ve),m(ze,Je+f+b,p,J(D,p),Ve),m(ze,Je+f+k,qe.substring(k),be,Ve)}}Ee.decorations=Ve};return be}function Ae(Y){var se=[],ke=[];Y.tripleQuotedStrings?se.push([De,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Y.multiLineStrings?se.push([De,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):se.push([De,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Y.verbatimStrings&&ke.push([De,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Re=Y.hashComments;Re&&(Y.cStyleComments?(Re>1?se.push([xe,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):se.push([xe,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ke.push([De,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):se.push([xe,/^#[^\r\n]*/,null,"#"])),Y.cStyleComments&&(ke.push([xe,/^\/\/[^\r\n]*/,null]),ke.push([xe,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Le=Y.regexLiterals;if(Le){var be=Le>1?"":`
\r`,Ee=be?".":"[\\S\\s]",Ue="/(?=[^/*"+be+"])(?:[^/\\x5B\\x5C"+be+"]|\\x5C"+Ee+"|\\x5B(?:[^\\x5C\\x5D"+be+"]|\\x5C"+Ee+")*(?:\\x5D|$))+/";ke.push(["lang-regex",RegExp("^"+E+"("+Ue+")")])}var Je=Y.types;Je&&ke.push([we,Je]);var ze=(""+Y.keywords).replace(/^ | $/g,"");ze.length&&ke.push([Fe,new RegExp("^(?:"+ze.replace(/[\s,]+/g,"|")+")\\b"),null]),se.push([v,/^\s+/,null,` \r
\xA0`]);var Ve="^.[^\\s\\w.$@'\"`/\\\\]*";return Y.regexLiterals&&(Ve+="(?!s*/)"),ke.push([fe,/^@[a-z_$][a-z_$@0-9]*/i,null],[we,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[fe,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[ne,new RegExp(Ve),null]),ue(se,ke)}var de=Ae({keywords:Xe,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ie(Y,se,ke){for(var Re=/(?:^|\s)nocode(?:\s|$)/,Le=/\r\n?|\n/,be=Y.ownerDocument,Ee=be.createElement("li");Y.firstChild;)Ee.appendChild(Y.firstChild);var Ue=[Ee];function Je(he){var it=he.nodeType;if(it==1&&!Re.test(he.className))if(he.nodeName==="br")ze(he),he.parentNode&&he.parentNode.removeChild(he);else for(var qe=he.firstChild;qe;qe=qe.nextSibling)Je(qe);else if((it==3||it==4)&&ke){var ye=he.nodeValue,Pe=ye.match(Le);if(Pe){var I=ye.substring(0,Pe.index);he.nodeValue=I;var A=ye.substring(Pe.index+Pe[0].length);if(A){var O=he.parentNode;O.insertBefore(be.createTextNode(A),he.nextSibling)}ze(he),I||he.parentNode.removeChild(he)}}}function ze(he){for(;!he.nextSibling;)if(he=he.parentNode,!he)return;function it(Pe,I){var A=I?Pe.cloneNode(!1):Pe,O=Pe.parentNode;if(O){var f=it(O,1),p=Pe.nextSibling;f.appendChild(A);for(var b=p;b;b=p)p=b.nextSibling,f.appendChild(b)}return A}for(var qe=it(he.nextSibling,0),ye;(ye=qe.parentNode)&&ye.nodeType===1;)qe=ye;Ue.push(qe)}for(var Ve=0;Ve=O&&(Je+=2),be>=f&&(ot+=2)}}finally{ye&&(ye.style.display=Pe)}}var Z={};function M(Y,se){for(var ke=se.length;--ke>=0;){var Re=se[ke];Z.hasOwnProperty(Re)?W.console&&console.warn("cannot override language handler %s",Re):Z[Re]=Y}}function J(Y,se){return Y&&Z.hasOwnProperty(Y)||(Y=/^\s*]*(?:>|$)/],[xe,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[ne,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^