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