(window.webpackJsonp=window.webpackJsonp||[]).push([[223,5,6,7],{"+NIl":function(ct,et,se){(function(ie){ie(se("VrN/"))})(function(ie){"use strict";ie.defineMode("stex",function(V,L){"use strict";function z(C,T){C.cmdState.push(T)}function U(C){return C.cmdState.length>0?C.cmdState[C.cmdState.length-1]:null}function R(C){var T=C.cmdState.pop();T&&T.closeBracket()}function B(C){for(var T=C.cmdState,p=T.length-1;p>=0;p--){var u=T[p];if(u.name=="DEFAULT")continue;return u}return{styleIdentifier:function(){return null}}}function I(C,T,p){return function(){this.name=C,this.bracketNo=0,this.style=T,this.styles=p,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var O={};O.importmodule=I("importmodule","tag",["string","builtin"]),O.documentclass=I("documentclass","tag",["","atom"]),O.usepackage=I("usepackage","tag",["atom"]),O.begin=I("begin","tag",["atom"]),O.end=I("end","tag",["atom"]),O.label=I("label","tag",["atom"]),O.ref=I("ref","tag",["atom"]),O.eqref=I("eqref","tag",["atom"]),O.cite=I("cite","tag",["atom"]),O.bibitem=I("bibitem","tag",["atom"]),O.Bibitem=I("Bibitem","tag",["atom"]),O.RBibitem=I("RBibitem","tag",["atom"]),O.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function D(C,T){C.f=T}function x(C,T){var p;if(C.match(/^\\[a-zA-Z@]+/)){var u=C.current().slice(1);return p=O.hasOwnProperty(u)?O[u]:O.DEFAULT,p=new p,z(T,p),D(T,P),p.style}if(C.match(/^\\[$&%#{}_]/))return"tag";if(C.match(/^\\[,;!\/\\]/))return"tag";if(C.match("\\["))return D(T,function(s,l){return A(s,l,"\\]")}),"keyword";if(C.match("\\("))return D(T,function(s,l){return A(s,l,"\\)")}),"keyword";if(C.match("$$"))return D(T,function(s,l){return A(s,l,"$$")}),"keyword";if(C.match("$"))return D(T,function(s,l){return A(s,l,"$")}),"keyword";var o=C.next();if(o=="%")return C.skipToEnd(),"comment";if(o=="}"||o=="]"){if(p=U(T),p)p.closeBracket(o),D(T,P);else return"error";return"bracket"}else return o=="{"||o=="["?(p=O.DEFAULT,p=new p,z(T,p),"bracket"):/\d/.test(o)?(C.eatWhile(/[\w.%]/),"atom"):(C.eatWhile(/[\w\-_]/),p=B(T),p.name=="begin"&&(p.argument=C.current()),p.styleIdentifier())}function A(C,T,p){if(C.eatSpace())return null;if(p&&C.match(p))return D(T,x),"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 u=C.next();return u=="{"||u=="}"||u=="["||u=="]"||u=="("||u==")"?"bracket":u=="%"?(C.skipToEnd(),"comment"):"error"}function P(C,T){var p=C.peek(),u;return p=="{"||p=="["?(u=U(T),u.openBracket(p),C.eat(p),D(T,x),"bracket"):/[ \t\r]/.test(p)?(C.eat(p),null):(D(T,x),R(T),x(C,T))}return{startState:function(){var C=L.inMathMode?function(T,p){return A(T,p)}:x;return{cmdState:[],f:C}},copyState:function(C){return{cmdState:C.cmdState.slice(),f:C.f}},token:function(C,T){return T.f(C,T)},blankLine:function(C){C.f=x,C.cmdState.length=0},lineComment:"%"}}),ie.defineMIME("text/x-stex","stex"),ie.defineMIME("text/x-latex","stex")})},"19Vz":function(ct,et,se){(function(ie){ie(se("VrN/"))})(function(ie){ie.defineOption("placeholder","",function(I,O,D){var x=D&&D!=ie.Init;if(O&&!x)I.on("blur",U),I.on("change",R),I.on("swapDoc",R),ie.on(I.getInputField(),"compositionupdate",I.state.placeholderCompose=function(){z(I)}),R(I);else if(!O&&x){I.off("blur",U),I.off("change",R),I.off("swapDoc",R),ie.off(I.getInputField(),"compositionupdate",I.state.placeholderCompose),V(I);var A=I.getWrapperElement();A.className=A.className.replace(" CodeMirror-empty","")}O&&!I.hasFocus()&&U(I)});function V(I){I.state.placeholder&&(I.state.placeholder.parentNode.removeChild(I.state.placeholder),I.state.placeholder=null)}function L(I){V(I);var O=I.state.placeholder=document.createElement("pre");O.style.cssText="height: 0; overflow: visible",O.style.direction=I.getOption("direction"),O.className="CodeMirror-placeholder CodeMirror-line-like";var D=I.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),O.appendChild(D),I.display.lineSpace.insertBefore(O,I.display.lineSpace.firstChild)}function z(I){setTimeout(function(){var O=!1,D=I.getInputField();D.nodeName=="TEXTAREA"?O=!D.value:I.lineCount()==1&&(O=!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)),O?L(I):V(I)},20)}function U(I){B(I)&&L(I)}function R(I){var O=I.getWrapperElement(),D=B(I);O.className=O.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?L(I):V(I)}function B(I){return I.lineCount()===1&&I.getLine(0)===""}})},"1eCo":function(ct,et,se){(function(ie){ie(se("VrN/"))})(function(ie){"use strict";var V={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};ie.defineMode("xml",function(z,U){var R=z.indentUnit,B={},I=U.htmlMode?V:L;for(var O in I)B[O]=I[O];for(var O in U)B[O]=U[O];var D,x;function A(a,v){function g(F){return v.tokenize=F,F(a,v)}var b=a.next();if(b=="<")return a.eat("!")?a.eat("[")?a.match("CDATA[")?g(T("atom","]]>")):null:a.match("--")?g(T("comment","-->")):a.match("DOCTYPE",!0,!0)?(a.eatWhile(/[\w\._\-]/),g(p(1))):null:a.eat("?")?(a.eatWhile(/[\w\._\-]/),v.tokenize=T("meta","?>"),"meta"):(D=a.eat("/")?"closeTag":"openTag",v.tokenize=P,"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}A.isInText=!0;function P(a,v){var g=a.next();if(g==">"||g=="/"&&a.eat(">"))return v.tokenize=A,D=g==">"?"endTag":"selfcloseTag","tag bracket";if(g=="=")return D="equals",null;if(g=="<"){v.tokenize=A,v.state=l,v.tagName=v.tagStart=null;var b=v.tokenize(a,v);return b?b+" tag error":"tag error"}else return/[\'\"]/.test(g)?(v.tokenize=C(g),v.stringStartCol=a.column(),v.tokenize(a,v)):(a.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function C(a){var v=function(g,b){for(;!g.eol();)if(g.next()==a){b.tokenize=P;break}return"string"};return v.isInAttribute=!0,v}function T(a,v){return function(g,b){for(;!g.eol();){if(g.match(v)){b.tokenize=A;break}g.next()}return a}}function p(a){return function(v,g){for(var b;(b=v.next())!=null;){if(b=="<")return g.tokenize=p(a+1),g.tokenize(v,g);if(b==">")if(a==1){g.tokenize=A;break}else return g.tokenize=p(a-1),g.tokenize(v,g)}return"meta"}}function u(a,v,g){this.prev=a.context,this.tagName=v,this.indent=a.indented,this.startOfLine=g,(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 g;;){if(!a.context)return;if(g=a.context.tagName,!B.contextGrabbers.hasOwnProperty(g)||!B.contextGrabbers[g].hasOwnProperty(v))return;o(a)}}function l(a,v,g){return a=="openTag"?(g.tagStart=v.column(),S):a=="closeTag"?c:l}function S(a,v,g){return a=="word"?(g.tagName=v.current(),x="tag",y):B.allowMissingTagName&&a=="endTag"?(x="tag bracket",y(a,v,g)):(x="error",S)}function c(a,v,g){if(a=="word"){var b=v.current();return g.context&&g.context.tagName!=b&&B.implicitlyClosed.hasOwnProperty(g.context.tagName)&&o(g),g.context&&g.context.tagName==b||B.matchClosing===!1?(x="tag",m):(x="tag error",w)}else return B.allowMissingTagName&&a=="endTag"?(x="tag bracket",m(a,v,g)):(x="error",w)}function m(a,v,g){return a!="endTag"?(x="error",m):(o(g),l)}function w(a,v,g){return x="error",m(a,v,g)}function y(a,v,g){if(a=="word")return x="attribute",f;if(a=="endTag"||a=="selfcloseTag"){var b=g.tagName,M=g.tagStart;return g.tagName=g.tagStart=null,a=="selfcloseTag"||B.autoSelfClosers.hasOwnProperty(b)?s(g,b):(s(g,b),g.context=new u(g,b,M==g.indented)),l}return x="error",y}function f(a,v,g){return a=="equals"?h:(B.allowMissing||(x="error"),y(a,v,g))}function h(a,v,g){return a=="string"?d:a=="word"&&B.allowUnquoted?(x="string",y):(x="error",y(a,v,g))}function d(a,v,g){return a=="string"?d:y(a,v,g)}return{startState:function(a){var v={tokenize:A,state:l,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 g=v.tokenize(a,v);return(g||D)&&g!="comment"&&(x=null,v.state=v.state(D||g,a,v),x&&(g=x=="error"?g+" error":x)),g},indent:function(a,v,g){var b=a.context;if(a.tokenize.isInAttribute)return a.tagStart==a.indented?a.stringStartCol+1:a.indented+R;if(b&&b.noIndent)return ie.Pass;if(a.tokenize!=P&&a.tokenize!=A)return g?g.match(/^(\s*)/)[0].length:0;if(a.tagName)return B.multilineTagIndentPastTag!==!1?a.tagStart+a.tagName.length+2:a.tagStart+R*(B.multilineTagIndentFactor||1);if(B.alignCDATA&&/$/,blockCommentStart:"",configuration:B.htmlMode?"html":"xml",helperType:B.htmlMode?"html":"xml",skipAttribute:function(a){a.state==h&&(a.state=y)},xmlCurrentTag:function(a){return a.tagName?{name:a.tagName,close:a.type=="closeTag"}:null},xmlCurrentContext:function(a){for(var v=[],g=a.context;g;g=g.prev)g.tagName&&v.push(g.tagName);return v.reverse()}}}),ie.defineMIME("text/xml","xml"),ie.defineMIME("application/xml","xml"),ie.mimeModes.hasOwnProperty("text/html")||ie.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"7ahc":function(ct,et,se){"use strict";se.d(et,"a",function(){return S});var ie=se("k1fw"),V=se("0Owb"),L=se("+L6B"),z=se("2/Rp"),U=se("y8nQ"),R=se("Vl3Y"),B=se("tJVT"),I=se("OaEy"),O=se("2fM7"),D=se("cDcd"),x=se.n(D),A=se("VrN/"),P=se.n(A),C=se("p77/"),T=se.n(C),p=se("c5Ni"),u=se.n(p),o=O.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},l={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};et.b=function(c){var m=c.callback,w=c.onCancel,y=Object(D.useState)("python"),f=Object(B.a)(y,2),h=f[0],d=f[1];function a(g){d(l[g][1])}function v(g){m(g)}return x.a.createElement(R.a,Object(V.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:v}),x.a.createElement(R.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},x.a.createElement(O.a,{onChange:a},Object.keys(l).map(function(g){return x.a.createElement(o,{key:g,value:g},l[g][0])}))),x.a.createElement(R.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},x.a.createElement(S,{mode:h})),x.a.createElement("div",{className:"flex-container flex-end"},x.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.a.createElement(z.a,{type:"ghost",onClick:w},"\u53D6\u6D88")))};function S(c){var m=c.value,w=c.onChange,y=c.mode,f=c.options,h=f===void 0?{}:f,d=Object(D.useRef)(),a=Object(D.useState)(),v=Object(B.a)(a,2),g=v[0],b=v[1];return Object(D.useEffect)(function(){if(g){function M(F){var j=F.getValue();w&&w(j)}return g.on("change",M),function(){g.off("change",M)}}},[g,w]),Object(D.useEffect)(function(){g&&g.setOption("mode",y)},[g,y]),Object(D.useEffect)(function(){g&&((m!==g.getValue()||m==="")&&setTimeout(function(){g.setValue(m||" ")},300))},[g,m]),Object(D.useEffect)(function(){if(d.current&&!g){var M=P.a.fromTextArea(d.current,Object(ie.a)({mode:y,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},h));b(M)}},[d.current,g]),x.a.createElement("div",{className:"my-codemirror-container"},x.a.createElement("textarea",{ref:d}))}},"8EBN":function(ct,et,se){(function(ie){ie(se("VrN/"))})(function(ie){"use strict";ie.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 V=0;V-1&&z.substring(B+1,z.length);if(I)return ie.findModeByExtension(I)},ie.findModeByName=function(z){z=z.toLowerCase();for(var U=0;U=re.length?Ee.slice(re.length):Ee}).join(`
`)}var D=[],x=[""],A=new B.a.Renderer,P=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function C(){D.length=0,x=[""]}var T={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function p(H,X,q,re){if(X>=H.length||H[X].level<=q)return X;var Ee=H[X];re.push("- "+Ee.text+""),X++;var me=[];return X=p(H,X,Ee.level,me),me.length>0&&(re.push("
"),me.forEach(function(Se){re.push(Se)}),re.push("
")),re.push(" "),X=p(H,X,q,re),X}function u(){return p(D,0,0,x),x.push("
"),x.join("")}var o={heading:function(X){var q=P.exec(X);if(q)return{type:"heading",raw:q[0],depth:q[1].length,text:q[2]}},fences:function(X){var q=this.rules.block.fences.exec(X);if(q){var re=q[0],Ee=O(re,q[3]||""),me=q[2]?q[2].trim():q[2];if(["latex","katex","math"].indexOf(me)>=0){var Se=S(),ve=Ee;Ee=Se,c[Se]={type:"block",expression:ve}}return{type:"code",raw:re,lang:me,text:Ee}}}},s=/(?:\${2})([^\n`]+?)(?:\${2})/gi,l=0,S=function(){return"__special_katext_id_".concat(l++,"__")},c={};function m(){return c}function w(){l=0,c={}}function y(H){return H=H.replace(s,function(X,q){var re=S();return c[re]={type:"inline",expression:q},re}),H}var f=A.listitem;A.listitem=function(H){return f(y(H))};var h=A.paragraph;A.paragraph=function(H){return h(y(H))};var d=A.tablecell;A.tablecell=function(H,X){return d(y(H),X)},A.code=function(H,X,q){var re=(X||"").match(/\S*/)[0];return re?["latex","katex","math"].indexOf(re)>=0?"".concat(H,"
"):'
').concat(q?H:Object(I.escape)(H,!0),`
`):''+(q?H:Object(I.escape)(H,!0))+"
"},A.heading=function(H,X,q){var re=this.options.headerPrefix+q.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return D.push({anchor:re,level:X,text:H}),"'+H+""},B.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),B.a.use({tokenizer:o,renderer:A});var a=B.a,v=se("SJMd"),g=se("ulZh"),b=se.n(g),M=se("m3rI"),F=se("Oy/b"),j=se("p5ED"),W=/]*>/g;function _(H){var X=document.createElement("div");return X.innerHTML=H,X.childNodes.length===0?"":X.childNodes[0].nodeValue}var k=et.a=function(H){var X=H.value,q=X===void 0?"":X,re=H.className,Ee=H.showTextOnly,me=H.showLines,Se=H.style,ve=Se===void 0?{}:Se,fe=H.stylesPrev,ue=fe===void 0?{}:fe,he=String(q),Q=Object(L.useState)(""),ne=Object(V.a)(Q,2),Z=ne[0],ge=ne[1],Te=Object(L.useMemo)(function(){try{var ke=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Pe=/\"\/api\/attachments\/|\"\/attachments\/download\//g,De=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;he=he.replace(ke,"("+M.a.API_SERVER+"/api/attachments/").replace(Pe,'"'+M.a.API_SERVER+"/api/attachments/").replace(De,'"'+M.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,`
`),he=he.replace(new RegExp("(?[TOC]
",u()),C()),Le=Le.replace(/(__special_katext_id_\d+__)/g,function(Xe,Ke){var Ze=We[Ke],je=Ze.type,Be=Ze.expression;return Object(F.renderToString)(_(Be)||"",{displayMode:je==="block",throwOnError:!1,output:"html"})}),Le=Le.replace(/▁/g,"\u2581\u2581\u2581"),w(),Ee){var Ye=document.createElement("div");return Ye.innerHTML=Le,Ye.innerText}return setTimeout(function(){return Oe()},500),Le},[he]),pe=Object(L.useRef)();T.WebkitLineClamp=me,me&&(ve=Object(ie.a)(Object(ie.a)({},ve),T));function we(ke){var Pe=ke.target;if(Pe.tagName.toUpperCase()==="A"){var De=Pe.getAttribute("href");if(De.indexOf("office")>-1)ke.preventDefault(),ge(De);else if(De.startsWith("#")){ke.preventDefault();var Le=document.getElementById(De.replace("#",""));Le&&Le.scrollIntoView(!0)}}}var Oe=function(){var Pe,De=(Pe=pe.current)===null||Pe===void 0?void 0:Pe.querySelectorAll("video");De==null||De.forEach(function(Le){if(Le.oncontextmenu=function(){return!1},Le.src.indexOf(".m3u8")>-1&&!Le.canPlayType("application/vnd.apple.mpegurl")){if(b.a.isSupported()){var We=new b.a;We.loadSource(Le.src),We.attachMedia(Le)}}})};return Object(L.useEffect)(function(){if(pe.current&&Te&&(Te.match(W)&&window.PR.prettyPrint()),pe.current)return pe.current.addEventListener("click",we),function(){pe.current.removeEventListener("click",we),w(),C()}},[Te,pe.current,we]),z.a.createElement(z.a.Fragment,null,z.a.createElement("div",{ref:pe,style:Object(ie.a)({},ve),className:"".concat(re||""," markdown-body "),dangerouslySetInnerHTML:{__html:Te}}),z.a.createElement(j.a,{close:!0,data:Z,type:Z!=null&&Z.length?"office":"",style:Object(ie.a)({},ue),onClose:function(){return ge("")}}))}},"9VGf":function(ct,et,se){"use strict";se.d(et,"a",function(){return L});var ie=se("cDcd"),V=se.n(ie);function L(z,U){var R=Object(ie.useRef)();Object(ie.useEffect)(function(){R.current=z}),Object(ie.useEffect)(function(){function B(){R.current()}if(U!==null){var I=setInterval(B,U);return function(){return clearInterval(I)}}},[U])}},BU3w:function(ct,et,se){"use strict";se.d(et,"a",function(){return R});var ie=se("MNnm"),V="rc-util-key";function L(B){if(B.attachTo)return B.attachTo;var I=document.querySelector("head");return I||document.body}function z(B){var I,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var D=document.createElement("style");if((I=O.csp)===null||I===void 0?void 0:I.nonce){var x;D.nonce=(x=O.csp)===null||x===void 0?void 0:x.nonce}D.innerHTML=B;var A=L(O),P=A.firstChild;return O.prepend&&A.prepend?A.prepend(D):O.prepend&&P?A.insertBefore(D,P):A.appendChild(D),D}var U=new Map;function R(B,I){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=L(O);if(!U.has(D)){var x=z("",O),A=x.parentNode;U.set(D,A),A.removeChild(x)}var P=Array.from(U.get(D).children).find(function(o){return o.tagName==="STYLE"&&o[V]===I});if(P){var C,T;if(((C=O.csp)===null||C===void 0?void 0:C.nonce)&&P.nonce!==((T=O.csp)===null||T===void 0?void 0:T.nonce)){var p;P.nonce=(p=O.csp)===null||p===void 0?void 0:p.nonce}return P.innerHTML!==B&&(P.innerHTML=B),P}var u=z(B,O);return u[V]=I,u}},Bd2K:function(ct,et,se){(function(ie){ie(se("VrN/"),se("osHv"))})(function(ie){ie.defineOption("autoCloseTags",!1,function(O,D,x){if(x!=ie.Init&&x&&O.removeKeyMap("autoCloseTags"),!D)return;var A={name:"autoCloseTags"};(typeof D!="object"||D.whenClosing!==!1)&&(A["'/'"]=function(P){return R(P)}),(typeof D!="object"||D.whenOpening!==!1)&&(A["'>'"]=function(P){return z(P)}),O.addKeyMap(A)});var V=["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 z(O){if(O.getOption("disableInput"))return ie.Pass;for(var D=O.listSelections(),x=[],A=O.getOption("autoCloseTags"),P=0;PC.ch&&(s=s.slice(0,s.length-T.end+C.ch));var m=s.toLowerCase();if(!s||T.type=="string"&&(T.end!=C.ch||!/[\"\']/.test(T.string.charAt(T.string.length-1))||T.string.length==1)||T.type=="tag"&&o.close||T.string.indexOf("/")==C.ch-T.start-1||S&&B(S,m)>-1||I(O,p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(u)||[],s,C,!0))return ie.Pass;var w=typeof A=="object"&&A.emptyTags;if(w&&B(w,s)>-1){x[P]={text:"/>",newPos:ie.Pos(C.line,C.ch+2)};continue}var y=c&&B(c,m)>-1;x[P]={indent:y,text:">"+(y?`
`:"")+""+s+">",newPos:y?ie.Pos(C.line+1,0):ie.Pos(C.line,C.ch+1)}}for(var f=typeof A=="object"&&A.dontIndentOnAutoClose,P=D.length-1;P>=0;P--){var h=x[P];O.replaceRange(h.text,D[P].head,D[P].anchor,"+insert");var d=O.listSelections().slice(0);d[P]={head:h.newPos,anchor:h.newPos},O.setSelections(d),!f&&h.indent&&(O.indentLine(h.newPos.line,null,!0),O.indentLine(h.newPos.line+1,null,!0))}}function U(O,D){for(var x=O.listSelections(),A=[],P=D?"/":"",C=O.getOption("autoCloseTags"),T=typeof C=="object"&&C.dontIndentOnSlash,p=0;p"&&(S+=">"),A[p]=S}if(O.replaceSelections(A),x=O.listSelections(),!T)for(var p=0;p=0&&D[u]==x;u--)++p;A=T.to;for(var u=1;u0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],x=0;xoe.length)&&(le=oe.length);for(var de=0,$=new Array(le);de=oe.length?{done:!0}:{done:!1,value:oe[$++]}}}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 de=oe[Symbol.iterator](),de.next.bind(de)}function R(oe,le){return le={exports:{}},oe(le,le.exports),le.exports}var B=R(function(oe){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 de($){oe.exports.defaults=$}oe.exports={defaults:le(),getDefaults:le,changeDefaults:de}}),I=B.defaults,O=B.getDefaults,D=B.changeDefaults,x=/[&<>"']/,A=/[&<>"']/g,P=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,T={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(le){return T[le]};function u(oe,le){if(le){if(x.test(oe))return oe.replace(A,p)}else if(P.test(oe))return oe.replace(C,p);return oe}var o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(oe){return oe.replace(o,function(le,de){return de=de.toLowerCase(),de==="colon"?":":de.charAt(0)==="#"?de.charAt(1)==="x"?String.fromCharCode(parseInt(de.substring(2),16)):String.fromCharCode(+de.substring(1)):""})}var l=/(^|[^\[])\^/g;function S(oe,le){oe=oe.source||oe,le=le||"";var de={replace:function(J,ee){return ee=ee.source||ee,ee=ee.replace(l,"$1"),oe=oe.replace(J,ee),de},getRegex:function(){return new RegExp(oe,le)}};return de}var c=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(oe,le,de){if(oe){var $;try{$=decodeURIComponent(s(de)).replace(c,"").toLowerCase()}catch(J){return null}if($.indexOf("javascript:")===0||$.indexOf("vbscript:")===0||$.indexOf("data:")===0)return null}le&&!m.test(de)&&(de=a(le,de));try{de=encodeURI(de).replace(/%25/g,"%")}catch(J){return null}return de}var y={},f=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function a(oe,le){y[" "+oe]||(f.test(oe)?y[" "+oe]=oe+"/":y[" "+oe]=M(oe,"/",!0)),oe=y[" "+oe];var de=oe.indexOf(":")===-1;return le.substring(0,2)==="//"?de?le:oe.replace(h,"$1")+le:le.charAt(0)==="/"?de?le:oe.replace(d,"$1")+le:oe+le}var v={exec:function(){}};function g(oe){for(var le=1,de,$;le=0&&ye[Me]==="\\";)Ae=!Ae;return Ae?"|":" |"}),$=de.split(/ \|/),J=0;if($.length>le)$.splice(le);else for(;$.length=$.length?J.slice($.length):J}).join(`
`)}var me=function(){function oe(de){this.options=de||_}var le=oe.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 te=J[J.length-1];if(te&&te.type==="paragraph")return{raw:ee[0],text:ee[0].trimRight()};var ye=ee[0].replace(/^ {4}/gm,"");return{type:"code",raw:ee[0],codeBlockStyle:"indented",text:this.options.pedantic?ye:k(ye,`
`)}}},le.fences=function($){var J=this.rules.block.fences.exec($);if(J){var ee=J[0],te=Ee(ee,J[3]||"");return{type:"code",raw:ee,lang:J[2]?J[2].trim():J[2],text:te}}},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:H(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 te=ee.align.length,ye;for(ye=0;ye ?/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],te=J[2],ye=te.length>1,Ae=te[te.length-1]===")",Me={type:"list",raw:ee,ordered:ye,start:ye?+te.slice(0,-1):"",loose:!1,items:[]},tt=J[0].match(this.rules.block.item),ft=!1,nt,Ct,pt,st,kt,ot,vt,yt=tt.length,He=0;He1||this.options.smartLists&&pt!==te)&&(st=tt.slice(He+1).join(`
`),Me.raw=Me.raw.substring(0,Me.raw.length-st.length),He=yt-1)),kt=ft||/\n\n(?!\s*$)/.test(nt),He!==yt-1&&(ft=nt.charAt(nt.length-1)===`
`,kt||(kt=ft)),kt&&(Me.loose=!0),ot=/^\[[ xX]\] /.test(nt),vt=void 0,ot&&(vt=nt[1]!==" ",nt=nt.replace(/^\[[ xX]\] +/,"")),Me.items.push({type:"list_item",raw:ee,task:ot,checked:vt,loose:kt,text:nt});return Me}},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]):X(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:H(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 te=ee.align.length,ye;for(ye=0;ye/i.test(te[0])&&(J=!1),!ee&&/^<(pre|code|kbd|script)(\s|>)/i.test(te[0])?ee=!0:ee&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(te[0])&&(ee=!1),{type:this.options.sanitize?"text":"html",raw:te[0],inLink:J,inRawBlock:ee,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(te[0]):X(te[0]):te[0]}},le.link=function($){var J=this.rules.inline.link.exec($);if(J){var ee=q(J[2],"()");if(ee>-1){var te=J[0].indexOf("!")===0?5:4,ye=te+J[1].length+ee;J[2]=J[2].substring(0,ee),J[0]=J[0].substring(0,ye).trim(),J[3]=""}var Ae=J[2],Me="";if(this.options.pedantic){var tt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ae);tt?(Ae=tt[1],Me=tt[3]):Me=""}else Me=J[3]?J[3].slice(1,-1):"";Ae=Ae.trim().replace(/^<([\s\S]*)>$/,"$1");var ft=re(J,{href:Ae&&Ae.replace(this.rules.inline._escapes,"$1"),title:Me&&Me.replace(this.rules.inline._escapes,"$1")},J[0]);return ft}},le.reflink=function($,J){var ee;if((ee=this.rules.inline.reflink.exec($))||(ee=this.rules.inline.nolink.exec($))){var te=(ee[2]||ee[1]).replace(/\s+/g," ");if(te=J[te.toLowerCase()],!te||!te.href){var ye=ee[0].charAt(0);return{type:"text",raw:ye,text:ye}}var Ae=re(ee,te,ee[0]);return Ae}},le.strong=function($,J,ee){ee===void 0&&(ee="");var te=this.rules.inline.strong.start.exec($);if(te&&(!te[1]||te[1]&&(ee===""||this.rules.inline.punctuation.exec(ee)))){J=J.slice(-1*$.length);var ye=te[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ye.lastIndex=0;for(var Ae;(te=ye.exec(J))!=null;)if(Ae=this.rules.inline.strong.middle.exec(J.slice(0,te.index+3)),Ae)return{type:"strong",raw:$.slice(0,Ae[0].length),text:$.slice(2,Ae[0].length-2)}}},le.em=function($,J,ee){ee===void 0&&(ee="");var te=this.rules.inline.em.start.exec($);if(te&&(!te[1]||te[1]&&(ee===""||this.rules.inline.punctuation.exec(ee)))){J=J.slice(-1*$.length);var ye=te[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ye.lastIndex=0;for(var Ae;(te=ye.exec(J))!=null;)if(Ae=this.rules.inline.em.middle.exec(J.slice(0,te.index+2)),Ae)return{type:"em",raw:$.slice(0,Ae[0].length),text:$.slice(1,Ae[0].length-1)}}},le.codespan=function($){var J=this.rules.inline.code.exec($);if(J){var ee=J[2].replace(/\n/g," "),te=/[^ ]/.test(ee),ye=ee.startsWith(" ")&&ee.endsWith(" ");return te&&ye&&(ee=ee.substring(1,ee.length-1)),ee=X(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 te,ye;return ee[2]==="@"?(te=X(this.options.mangle?J(ee[1]):ee[1]),ye="mailto:"+te):(te=X(ee[1]),ye=te),{type:"link",raw:ee[0],text:te,href:ye,tokens:[{type:"text",raw:te,text:te}]}}},le.url=function($,J){var ee;if(ee=this.rules.inline.url.exec($)){var te,ye;if(ee[2]==="@")te=X(this.options.mangle?J(ee[0]):ee[0]),ye="mailto:"+te;else{var Ae;do Ae=ee[0],ee[0]=this.rules.inline._backpedal.exec(ee[0])[0];while(Ae!==ee[0]);te=X(ee[0]),ee[1]==="www."?ye="http://"+te:ye=te}return{type:"link",raw:ee[0],text:te,href:ye,tokens:[{type:"text",raw:te,text:te}]}}},le.inlineText=function($,J,ee){var te=this.rules.inline.text.exec($);if(te){var ye;return J?ye=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(te[0]):X(te[0]):te[0]:ye=X(this.options.smartypants?ee(te[0]):te[0]),{type:"text",raw:te[0],text:ye}}},oe}(),Se=W.noopTest,ve=W.edit,fe=W.merge,ue={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:Se,table:Se,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ue.def=ve(ue.def).replace("label",ue._label).replace("title",ue._title).getRegex(),ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ue.item=ve(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=ve(ue.list).replace(/bull/g,ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ue.def.source+")").getRegex(),ue._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",ue._comment=//,ue.html=ve(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=ve(ue._paragraph).replace("hr",ue.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",ue._tag).getRegex(),ue.blockquote=ve(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=fe({},ue),ue.gfm=fe({},ue.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*|$)"}),ue.gfm.nptable=ve(ue.gfm.nptable).replace("hr",ue.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",ue._tag).getRegex(),ue.gfm.table=ve(ue.gfm.table).replace("hr",ue.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",ue._tag).getRegex(),ue.pedantic=fe({},ue.normal,{html:ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ue._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:Se,paragraph:ve(ue.normal._paragraph).replace("hr",ue.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ue.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Se,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:Se,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=ve(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=ve(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=ve(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=ve(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=ve(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=ve(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=ve(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=ve(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=ve(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=ve(he._blockSkip,"g").getRegex(),he.overlapSkip=ve(he._overlapSkip,"g").getRegex(),he._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,he._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,he._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])?)+(?![-_])/,he.autolink=ve(he.autolink).replace("scheme",he._scheme).replace("email",he._email).getRegex(),he._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,he.tag=ve(he.tag).replace("comment",ue._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=ve(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=ve(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=ve(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=fe({},he),he.pedantic=fe({},he.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:ve(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=fe({},he.normal,{escape:ve(he.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 we=function(){function oe(de){this.tokens=[],this.tokens.links=Object.create(null),this.options=de||ne,this.options.tokenizer=this.options.tokenizer||new me,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var $={block:Z.normal,inline:ge.normal};this.options.pedantic?($.block=Z.pedantic,$.inline=ge.pedantic):this.options.gfm&&($.block=Z.gfm,this.options.breaks?$.inline=ge.breaks:$.inline=ge.gfm),this.tokenizer.rules=$}oe.lex=function($,J){var ee=new oe(J);return ee.lex($)};var le=oe.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 te,ye,Ae,Me;$;){if(te=this.tokenizer.space($)){$=$.substring(te.raw.length),te.type&&J.push(te);continue}if(te=this.tokenizer.code($,J)){$=$.substring(te.raw.length),te.type?J.push(te):(Me=J[J.length-1],Me.raw+=`
`+te.raw,Me.text+=`
`+te.text);continue}if(te=this.tokenizer.fences($)){$=$.substring(te.raw.length),J.push(te);continue}if(te=this.tokenizer.heading($)){$=$.substring(te.raw.length),J.push(te);continue}if(te=this.tokenizer.nptable($)){$=$.substring(te.raw.length),J.push(te);continue}if(te=this.tokenizer.hr($)){$=$.substring(te.raw.length),J.push(te);continue}if(te=this.tokenizer.blockquote($)){$=$.substring(te.raw.length),te.tokens=this.blockTokens(te.text,[],ee),J.push(te);continue}if(te=this.tokenizer.list($)){for($=$.substring(te.raw.length),Ae=te.items.length,ye=0;ye0)for(;(tt=this.tokenizer.rules.inline.reflinkSearch.exec(Me))!=null;)ft.includes(tt[0].slice(tt[0].lastIndexOf("[")+1,-1))&&(Me=Me.slice(0,tt.index)+"["+"a".repeat(tt[0].length-2)+"]"+Me.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(tt=this.tokenizer.rules.inline.blockSkip.exec(Me))!=null;)Me=Me.slice(0,tt.index)+"["+"a".repeat(tt[0].length-2)+"]"+Me.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;$;){if(Ae=this.tokenizer.escape($)){$=$.substring(Ae.raw.length),J.push(Ae);continue}if(Ae=this.tokenizer.tag($,ee,te)){$=$.substring(Ae.raw.length),ee=Ae.inLink,te=Ae.inRawBlock,J.push(Ae);continue}if(Ae=this.tokenizer.link($)){$=$.substring(Ae.raw.length),Ae.type==="link"&&(Ae.tokens=this.inlineTokens(Ae.text,[],!0,te)),J.push(Ae);continue}if(Ae=this.tokenizer.reflink($,this.tokens.links)){$=$.substring(Ae.raw.length),Ae.type==="link"&&(Ae.tokens=this.inlineTokens(Ae.text,[],!0,te)),J.push(Ae);continue}if(Ae=this.tokenizer.strong($,Me,ye)){$=$.substring(Ae.raw.length),Ae.tokens=this.inlineTokens(Ae.text,[],ee,te),J.push(Ae);continue}if(Ae=this.tokenizer.em($,Me,ye)){$=$.substring(Ae.raw.length),Ae.tokens=this.inlineTokens(Ae.text,[],ee,te),J.push(Ae);continue}if(Ae=this.tokenizer.codespan($)){$=$.substring(Ae.raw.length),J.push(Ae);continue}if(Ae=this.tokenizer.br($)){$=$.substring(Ae.raw.length),J.push(Ae);continue}if(Ae=this.tokenizer.del($)){$=$.substring(Ae.raw.length),Ae.tokens=this.inlineTokens(Ae.text,[],ee,te),J.push(Ae);continue}if(Ae=this.tokenizer.autolink($,pe)){$=$.substring(Ae.raw.length),J.push(Ae);continue}if(!ee&&(Ae=this.tokenizer.url($,pe))){$=$.substring(Ae.raw.length),J.push(Ae);continue}if(Ae=this.tokenizer.inlineText($,te,Te)){$=$.substring(Ae.raw.length),ye=Ae.raw.slice(-1),J.push(Ae);continue}if($){var nt="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(nt);break}else throw new Error(nt)}}return J},V(oe,null,[{key:"rules",get:function(){return{block:Z,inline:ge}}}]),oe}(),Oe=B.defaults,ke=W.cleanUrl,Pe=W.escape,De=function(){function oe(de){this.options=de||Oe}var le=oe.prototype;return le.code=function($,J,ee){var te=(J||"").match(/\S*/)[0];if(this.options.highlight){var ye=this.options.highlight($,te);ye!=null&&ye!==$&&(ee=!0,$=ye)}return te?''+(ee?$:Pe($,!0))+`
`:""+(ee?$:Pe($,!0))+`
`},le.blockquote=function($){return`
`+$+`
`},le.html=function($){return $},le.heading=function($,J,ee,te){return this.options.headerIds?"
`:""+$+"
`},le.hr=function(){return this.options.xhtml?`
`:`
`},le.list=function($,J,ee){var te=J?"ol":"ul",ye=J&&ee!==1?' start="'+ee+'"':"";return"<"+te+ye+`>
`+$+""+te+`>
`},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",te=J.align?"<"+ee+' align="'+J.align+'">':"<"+ee+">";return te+$+""+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($=ke(this.options.sanitize,this.options.baseUrl,$),$===null)return ee;var te='"+ee+"",te},le.image=function($,J,ee){if($=ke(this.options.sanitize,this.options.baseUrl,$),$===null)return ee;var te='
":">",te},le.text=function($){return $},oe}(),Le=function(){function oe(){}var le=oe.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""},oe}(),We=function(){function oe(){this.seen={}}var le=oe.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},oe}(),Ye=B.defaults,Xe=W.unescape,Ke=function(){function oe(de){this.options=de||Ye,this.options.renderer=this.options.renderer||new De,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Le,this.slugger=new We}oe.parse=function($,J){var ee=new oe(J);return ee.parse($)};var le=oe.prototype;return le.parse=function($,J){J===void 0&&(J=!0);var ee="",te,ye,Ae,Me,tt,ft,nt,Ct,pt,st,kt,ot,vt,yt,He,hr,mr,or,Dt=$.length;for(te=0;te0&&He.tokens[0].type==="text"?(He.tokens[0].text=or+" "+He.tokens[0].text,He.tokens[0].tokens&&He.tokens[0].tokens.length>0&&He.tokens[0].tokens[0].type==="text"&&(He.tokens[0].tokens[0].text=or+" "+He.tokens[0].tokens[0].text)):He.tokens.unshift({type:"text",text:or}):yt+=or),yt+=this.parse(He.tokens,vt),pt+=this.renderer.listitem(yt,mr,hr);ee+=this.renderer.list(pt,kt,ot);continue}case"html":{ee+=this.renderer.html(st.text);continue}case"paragraph":{ee+=this.renderer.paragraph(this.parseInline(st.tokens));continue}case"text":{for(pt=st.tokens?this.parseInline(st.tokens):st.text;te+1An error occurred:
"+Be(Ae.message+"",!0)+"
";throw Ae}}Re.options=Re.setOptions=function(oe){return Ze(Re.defaults,oe),$e(Re.defaults),Re},Re.getDefaults=Ce,Re.defaults=Qe,Re.use=function(oe){var le=Ze({},oe);if(oe.renderer&&function(){var $=Re.defaults.renderer||new De,J=function(ye){var Ae=$[ye];$[ye]=function(){for(var Me=arguments.length,tt=new Array(Me),ft=0;ft`,triples:"",explode:"[]{}"},L=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(T,p,u){u&&u!=ie.Init&&(T.removeKeyMap(U),T.state.closeBrackets=null),p&&(R(z(p,"pairs")),T.state.closeBrackets=p,T.addKeyMap(U))});function z(T,p){return p=="pairs"&&typeof T=="string"?T:typeof T=="object"&&T[p]!=null?T[p]:V[p]}var U={Backspace:O,Enter:D};function R(T){for(var p=0;p=0;s--){var S=o[s].head;T.replaceRange("",L(S.line,S.ch-1),L(S.line,S.ch+1),"+delete")}}function D(T){var p=I(T),u=p&&z(p,"explode");if(!u||T.getOption("disableInput"))return ie.Pass;for(var o=T.listSelections(),s=0;s0;return{anchor:new L(T.anchor.line,T.anchor.ch+(p?-1:1)),head:new L(T.head.line,T.head.ch+(p?1:-1))}}function A(T,p){var u=I(T);if(!u||T.getOption("disableInput"))return ie.Pass;var o=z(u,"pairs"),s=o.indexOf(p);if(s==-1)return ie.Pass;for(var l=z(u,"closeBefore"),S=z(u,"triples"),c=o.charAt(s+1)==p,m=T.listSelections(),w=s%2==0,y,f=0;f=0&&T.getRange(d,L(d.line,d.ch+3))==p+p+p?a="skipThree":a="skip";else if(c&&d.ch>1&&S.indexOf(p)>=0&&T.getRange(L(d.line,d.ch-2),d)==p+p){if(d.ch>2&&/\bstring/.test(T.getTokenTypeAt(L(d.line,d.ch-2))))return ie.Pass;a="addFour"}else if(c){var g=d.ch==0?" ":T.getRange(L(d.line,d.ch-1),d);if(!ie.isWordChar(v)&&g!=p&&!ie.isWordChar(g))a="both";else return ie.Pass}else if(w&&(v.length===0||/\s/.test(v)||l.indexOf(v)>-1))a="both";else return ie.Pass;if(!y)y=a;else if(y!=a)return ie.Pass}var b=s%2?o.charAt(s-1):p,M=s%2?p:o.charAt(s+1);T.operation(function(){if(y=="skip")T.execCommand("goCharRight");else if(y=="skipThree")for(var F=0;F<3;F++)T.execCommand("goCharRight");else if(y=="surround"){for(var j=T.getSelections(),F=0;F0&&(q.percent=q.loaded/q.total*100),W.onProgress(q)});var k=new FormData;W.data&&Object.keys(W.data).forEach(function(X){var q=W.data[X];if(Array.isArray(q)){q.forEach(function(re){k.append(X+"[]",re)});return}k.append(X,W.data[X])}),W.file instanceof Blob?k.append(W.filename,W.file,W.file.name):k.append(W.filename,W.file),_.onerror=function(q){W.onError(q)},_.onload=function(){return _.status<200||_.status>=300?W.onError(U(W,_),R(_)):W.onSuccess(R(_),_)},_.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in _&&(_.withCredentials=!0);var H=W.headers||{};return H["X-Requested-With"]!==null&&_.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(H).forEach(function(X){H[X]!==null&&_.setRequestHeader(X,H[X])}),_.send(k),{abort:function(){_.abort()}}}var I=+new Date,O=0;function D(){return"rc-upload-"+I+"-"+ ++O}function x(W,_){return W.indexOf(_,W.length-_.length)!==-1}var A=function(W,_){if(W&&_){var k=Array.isArray(_)?_:_.split(","),H=W.name||"",X=W.type||"",q=X.replace(/\/.*$/,"");return k.some(function(re){var Ee=re.trim();return Ee.charAt(0)==="."?x(H.toLowerCase(),Ee.toLowerCase()):/\/\*$/.test(Ee)?q===Ee.replace(/\/.*$/,""):X===Ee})}return!0};function P(W,_){var k=W.createReader(),H=[];function X(){k.readEntries(function(q){var re=Array.prototype.slice.apply(q);H=H.concat(re);var Ee=!re.length;Ee?_(H):X()})}X()}var C=function(_,k,H){var X=function q(re,Ee){Ee=Ee||"",re.isFile?re.file(function(me){H(me)&&(re.fullPath&&!me.webkitRelativePath&&(Object.defineProperties(me,{webkitRelativePath:{writable:!0}}),me.webkitRelativePath=re.fullPath.replace(/^\//,""),Object.defineProperties(me,{webkitRelativePath:{writable:!1}})),k([me]))}):re.isDirectory&&P(re,function(me){me.forEach(function(Se){q(Se,""+Ee+re.name+"/")})})};_.forEach(function(q){X(q.webkitGetAsEntry())})},T=C,p=Object.assign||function(W){for(var _=1;_=0)continue;if(!Object.prototype.hasOwnProperty.call(W,H))continue;k[H]=W[H]}return k}function S(W,_){if(!(W instanceof _))throw new TypeError("Cannot call a class as a function")}function c(W,_){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:W}function m(W,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);W.prototype=Object.create(_&&_.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(W,_):W.__proto__=_)}var w=function(_){return Object.keys(_).reduce(function(k,H){return(H.substr(0,5)==="data-"||H.substr(0,5)==="aria-"||H==="role")&&(k[H]=_[H]),k},{})},y=function(W){m(_,W);function _(){var k,H,X,q;S(this,_);for(var re=arguments.length,Ee=Array(re),me=0;me1&&arguments[1]!==void 0?arguments[1]:1,de=Le.length,$=0;$1&&arguments[1]!==void 0?arguments[1]:!1;return Object(w.a)(k).map(function(X,q){if(!U.isValidElement(X)||!X.type)return null;var re=X.type.isSelectOptGroup,Ee=X.key,me=X.props,Se=me.children,ve=Object(B.a)(me,["children"]);return H||!re?y(X):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?q:Ee,"__"),label:Ee},ve),{},{options:f(Se)})}).filter(function(X){return X})}var h=se("2Qr1"),d=se("qNPg"),a=se("U8pU"),v=se("Kwbf"),g=se("WKfj");function b(k){var H=k.mode,X=k.options,q=k.children,re=k.backfill,Ee=k.allowClear,me=k.placeholder,Se=k.getInputElement,ve=k.showSearch,fe=k.onSearch,ue=k.defaultOpen,he=k.autoFocus,Q=k.labelInValue,ne=k.value,Z=k.inputValue,ge=k.optionLabelProp,Te=H==="multiple"||H==="tags",pe=ve!==void 0?ve:Te||H==="combobox",we=X||f(q);if(Object(v.a)(H!=="tags"||we.every(function(De){return!De.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),H==="tags"||H==="combobox"){var Oe=we.some(function(De){return De.options?De.options.some(function(Le){return typeof("value"in Le?Le.value:Le.key)=="number"}):typeof("value"in De?De.value:De.key)=="number"});Object(v.a)(!Oe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(v.a)(H!=="combobox"||!ge,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(v.a)(H==="combobox"||!re,"`backfill` only works with `combobox` mode."),Object(v.a)(H==="combobox"||!Se,"`getInputElement` only work with `combobox` mode."),Object(v.b)(H!=="combobox"||!Se||!Ee||!me,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),fe&&!pe&&H!=="combobox"&&H!=="tags"&&Object(v.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(v.b)(!ue||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ne!=null){var ke=Object(g.d)(ne);Object(v.a)(!Q||ke.every(function(De){return Object(a.a)(De)==="object"&&("key"in De||"value"in De)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(v.a)(!Te||Array.isArray(ne),"`value` should be array when `mode` is `multiple` or `tags`")}if(q){var Pe=null;Object(w.a)(q).some(function(De){if(!U.isValidElement(De)||!De.type)return!1;var Le=De.type;if(Le.isSelectOption)return!1;if(Le.isSelectOptGroup){var We=Object(w.a)(De.props.children).every(function(Ye){return!U.isValidElement(Ye)||!De.type||Ye.type.isSelectOption?!0:(Pe=Ye.type,!1)});return!We}return Pe=Le,!0}),Pe&&Object(v.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Pe.displayName||Pe.name||Pe,"`.")),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:f,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:M,fillOptionsWithMissingValue:h.a}),j=function(k){Object(L.a)(X,k);var H=Object(z.a)(X);function X(){var q;return Object(ie.a)(this,X),q=H.apply(this,arguments),q.selectRef=U.createRef(),q.focus=function(){q.selectRef.current.focus()},q.blur=function(){q.selectRef.current.blur()},q}return Object(V.a)(X,[{key:"render",value:function(){return U.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),X}(U.Component);j.Option=l,j.OptGroup=c;var W=j,_=et.c=W},M8RZ:function(ct,et,se){"use strict";se.d(et,"a",function(){return O});var ie=se("fWQN"),V=se("mtLc"),L=se("yKVA"),z=se("879j"),U=se("cDcd"),R=se.n(U),B=se("faye"),I=se.n(B),O=function(D){Object(L.a)(A,D);var x=Object(z.a)(A);function A(P){var C;Object(ie.a)(this,A),C=x.call(this,P);var T=window.document;return C.node=T.createElement("div"),T.body.appendChild(C.node),C}return Object(V.a)(A,[{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)}}]),A}(R.a.Component)},Ot1p:function(ct,et,se){"use strict";var ie=se("2qtc"),V=se("kLXV"),L=se("rAM+"),z=se("miYZ"),U=se("tsqr"),R=se("tJVT"),B=se("jrin"),I=se("cDcd"),O=se.n(I),D=se("VrN/"),x=se.n(D),A=se("bdgK"),P=se("p77/"),C=se("Bd2K"),T=se("ELLl"),p=se("19Vz"),u=se("lZu9"),o=se("+NIl"),s=se("kSUc"),l=se("9Bee"),S=function(oe){var le=oe.value,de=le===void 0?"":le,$=oe.className,J=oe.showTextOnly,ee=oe.showLines,te=oe.style,ye=te===void 0?{}:te,Ae=Object(I.useMemo)(function(){return""},[de]);return O.a.createElement(O.a.Fragment,null,O.a.createElement("div",{dangerouslySetInnerHTML:{__html:Ae}}))},c=se("0Owb"),m=se("dejd"),w=se("C+DQ"),y=[{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 f(oe){var le=oe.onActionCallback,de=oe.title,$=oe.icon,J=oe.actionName,ee=oe.className,te=ee===void 0?"":ee,ye=oe.children;function Ae(){le(J)}return O.a.createElement("a",{title:de,className:te,onClick:Ae},O.a.createElement("i",{className:"md-iconfont ".concat($)}),ye)}var h=function(oe){var le=oe.watch,de=oe.showNullButton,$=oe.onActionCallback,J=oe.fullScreen,ee=oe.insertTemp,te=oe.hidetoolBar,ye=[].concat(y,[{title:"".concat(le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(le?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return O.a.createElement("ul",{className:"markdown-toolbar-container"},!te&&ye.map(function(Ae,Me){return O.a.createElement("li",{key:Me},Ae.actionName?O.a.createElement(f,Object(c.a)({},Ae,{onActionCallback:$})):O.a.createElement("span",{className:"v-line"}))}),de?O.a.createElement("li",null,O.a.createElement(f,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$},O.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ee&&O.a.createElement("li",null,O.a.createElement(f,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ee),onActionCallback:$},O.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),O.a.createElement("li",{className:"btn-full-screen"},O.a.createElement(f,{icon:"".concat(J?"icon-shrink":"icon-enlarge"),title:J?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$})))},d=se("M8RZ"),a=se("+L6B"),v=se("2/Rp"),g=se("y8nQ"),b=se("Vl3Y"),M=se("5NDa"),F=se("5rEg"),j={labelCol:{span:4},wrapperCol:{span:20}},W=function(oe){var le=oe.callback,de=oe.onCancel;function $(J){le(J)}return O.a.createElement(b.a,Object(c.a)({},j,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$}),O.a.createElement(b.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},O.a.createElement(F.a,null)),O.a.createElement(b.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},O.a.createElement(F.a,null)),O.a.createElement("div",{className:"flex-container flex-end"},O.a.createElement(v.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),O.a.createElement(v.a,{type:"ghost",onClick:de},"\u53D6\u6D88")))},_=se("7ahc"),k=se("HmJG"),H=se("BjJ7"),X=b.a.useForm,q={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}},Ee=function(oe){var le=oe.callback,de=oe.onCancel,$=X(),J=Object(R.a)($,1),ee=J[0];function te(Me){le(Me)}function ye(Me,tt){ee.setFieldsValue({src:"/api/attachments/".concat(Me.id),type:tt.type})}function Ae(Me){var tt=Me.target.files[0];Se(tt,ye)}return O.a.createElement(b.a,Object(c.a)({form:ee},re,{className:"upload-image-panel",onFinish:te}),O.a.createElement(b.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},O.a.createElement("div",{className:"flex-container"},O.a.createElement(b.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},O.a.createElement(F.a,{style:q})),O.a.createElement(me,{onFileChange:Ae}))),O.a.createElement(b.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},O.a.createElement(F.a,{style:{width:264}})),O.a.createElement(b.a.Item,{style:{textAlign:"right"}},O.a.createElement(v.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),O.a.createElement(v.a,{type:"ghost",onClick:de},"\u53D6\u6D88")))};function me(oe){var le=oe.onFileChange;return O.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",O.a.createElement("input",{type:"file",onChange:le}))}function Se(oe,le){if(!oe)throw new String("\u6CA1\u6709\u6587\u4EF6");var de=new FormData;de.append("editormd-image-file",oe),de.append("file_param_name","editormd-image-file"),de.append("byxhr","true");var $=new window.XMLHttpRequest;$.withCredentials=!0,$.addEventListener("load",function(J){le(JSON.parse(J.target.responseText),oe)},!1),$.addEventListener("error",function(J){console.error(J)},!1),$.open("POST","".concat(H.a,"/api/attachments.json")),$.send(de)}var ve=se("giR+"),fe=se("fyUT"),ue=se("7Kak"),he=se("9yH6"),Q=he.a.Group,ne={margin:"0 8px"},Z=function(oe){var le=oe.callback,de=oe.onCancel;function $(J){le(J)}return O.a.createElement(b.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$},O.a.createElement("div",{className:"flex-container"},O.a.createElement("span",{style:ne},"\u5355\u5143\u683C\u6570\uFF1A"),O.a.createElement("span",{style:ne},"\u884C\u6570"),O.a.createElement(b.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},O.a.createElement(fe.a,null)),O.a.createElement("span",{style:ne},"\u5217\u6570"),O.a.createElement(b.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},O.a.createElement(fe.a,null))),O.a.createElement("div",{className:"flex-container",style:{marginTop:12}},O.a.createElement("span",{style:ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),O.a.createElement(b.a.Item,{name:"align"},O.a.createElement(Q,null,O.a.createElement(he.a,{value:"default"},O.a.createElement("i",{className:"fa fa-align-justify"})),O.a.createElement(he.a,{value:"left"},O.a.createElement("i",{className:"fa fa-align-left"})),O.a.createElement(he.a,{value:"center"},O.a.createElement("i",{className:"fa fa-align-center"})),O.a.createElement(he.a,{value:"right"},O.a.createElement("i",{className:"fa fa-align-right"}))))),O.a.createElement("div",{className:"flex-container flex-end"},O.a.createElement(v.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),O.a.createElement(v.a,{type:"ghost",onClick:de},"\u53D6\u6D88")))},ge=se("m3rI"),Te="link",pe="upload-image",we="code-block",Oe="add-table",ke="------------",Pe={default:ke,left:":".concat(ke),center:":".concat(ke,":"),right:"".concat(ke,":")},De=se("9VGf"),Le,We;function Ye(){}var Xe=0,Ke=1e4,Ze="\u2581",je=`
**\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 Be(oe){return/^\d+$/.test(oe)?"".concat(oe,"px"):oe}var Ce=navigator.platform.toUpperCase().indexOf("MAC")>=0,$e=Ce?"Cmd":"Ctrl",Qe=(Le={},Object(B.a)(Le,$e+"-B","bold"),Object(B.a)(Le,$e+"-I","italic"),Le),Re=(We={},Object(B.a)(We,Te,"\u6DFB\u52A0\u94FE\u63A5"),Object(B.a)(We,we,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(B.a)(We,pe,"\u6DFB\u52A0\u56FE\u7247"),Object(B.a)(We,Oe,"\u6DFB\u52A0\u8868\u683C"),We),Ue=et.a=function(oe){var le=oe.defaultValue,de=le===void 0?"":le,$=oe.onChange,J=oe.width,ee=J===void 0?"100%":J,te=oe.height,ye=te===void 0?400:te,Ae=oe.miniToolbar,Me=Ae===void 0?!1:Ae,tt=oe.isFocus,ft=tt===void 0?!1:tt,nt=oe.watch,Ct=oe.insertTemp,pt=oe.mode,st=pt===void 0?"markdown":pt,kt=oe.id,ot=kt===void 0?"markdown-editor-id":kt,vt=oe.showResizeBar,yt=vt===void 0?!1:vt,He=oe.noStorage,hr=He===void 0?!1:He,mr=oe.showNullButton,or=mr===void 0?!1:mr,Dt=oe.hidetoolBar,sr=Dt===void 0?!1:Dt,Xr=oe.fullScreen,lr=Xr===void 0?!1:Xr,ur=oe.onBlur,fn=oe.onCMBeforeChange,Ot=oe.onFullScreen,rt=oe.className,Ar=rt===void 0?"":rt,hn=oe.disablePaste,pr=hn===void 0?!1:hn,bt=oe.placeholder,Lr=bt===void 0?"":bt,Pr=oe.values,Yr=Pr===void 0?"":Pr,Fe=Object(I.useState)(null),dt=Object(R.a)(Fe,2),Ge=dt[0],Nn=dt[1],mn=Object(I.useState)(de),$r=Object(R.a)(mn,2),Qr=$r[0],ut=$r[1],Ji=Object(I.useState)(nt),Bn=Object(R.a)(Ji,2),gr=Bn[0],dr=Bn[1],bi=Object(I.useState)(lr),jn=Object(R.a)(bi,2),nr=jn[0],pn=jn[1],Ei=Object(I.useState)(""),gn=Object(R.a)(Ei,2),Dr=gn[0],Or=gn[1],xi=Object(I.useState)(0),Wn=Object(R.a)(xi,2),Jr=Wn[0],Hn=Wn[1],Ti=Object(I.useState)(ye),vr=Object(R.a)(Ti,2),Si=vr[0],wi=vr[1],vn=Object(I.useState)(!1),Mr=Object(R.a)(vn,2),Fa=Mr[0],Kn=Mr[1],Zr=Object(I.useRef)(),Gn=Object(I.useRef)(),Ir=Object(I.useRef)(),qr=Object(I.useRef)();Object(I.useEffect)(function(){ut(Yr),Ge==null||Ge.setValue(Yr)},[Yr]),Object(I.useEffect)(function(){Ot==null||Ot(nr)},[nr]),Object(I.useEffect)(function(){if(Zr.current){var it=x.a.fromTextArea(Zr.current,{mode:st,lineNumbers:!Me,lineWrapping:!0,value:de,autoCloseTags:!0,autoCloseBrackets:!0});ft&&it.focus();function ht(mt,Tt){if(pr){Tt.preventDefault();return}var St=Tt.clipboardData;if(St){var At=St.types.toString(),It=St.items,Rt=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];if(At==="Files"||St.types.indexOf("Files")>-1){if(Tt.preventDefault(),st=="stex")return;try{var Vt,yr=It[1];((Vt=It[0])===null||Vt===void 0?void 0:Vt.kind)==="file"&&(yr=It[0]);var Lt=yr.getAsFile(),Ur=Lt.name.split(".").pop();Se(Lt,function(Xt){if(Xt.id){var Fr,Nr,bn;(Lt==null||((Fr=Lt.type)===null||Fr===void 0)?void 0:Fr.indexOf("image"))>-1?it.replaceSelection(".concat(Xt.content_type,")")):(Lt==null||((Nr=Lt.type)===null||Nr===void 0)?void 0:Nr.indexOf("video"))>-1?it.replaceSelection('')):(Lt==null||((bn=Lt.type)===null||bn===void 0)?void 0:bn.indexOf("pdf"))>-1?it.replaceSelection('').concat(Lt.name,"")):Rt.includes(Ur)?it.replaceSelection('').concat(Lt.name,"")):it.replaceSelection("[".concat(Lt.name,"](").concat(ge.a.API_SERVER,"/api/attachments/").concat(Xt.id,"?type=").concat(Xt.content_type,")"))}else(Xt==null?void 0:Xt.status)===401&&(document.location.href="/user/login")})}catch(Xt){U.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return it.on("paste",ht),Nn(it),function(){it.off("paste",ht)}}},[]);var Ci=Object(I.useCallback)(function(){if(Gn.current)try{}catch(it){console.log(it,"---- to set md editor body height")}},[Si,Gn,nr]);Object(I.useEffect)(function(){function it(){var mt=new A.default(function(Tt){var St=Object(L.a)(Tt),At;try{for(St.s();!(At=St.n()).done;){var It=At.value;(It.target.offsetHeight>0||It.target.offsetWidth>0)&&(Ci(),Ge.setSize("100%","100%"),Ge.refresh())}}catch(Rt){St.e(Rt)}finally{St.f()}});return mt.observe(Zr.current.parentElement),mt}if(Ge){var ht=it();return function(){ht.unobserve(Zr.current.parentElement)}}},[Ge,Ci]),Object(I.useEffect)(function(){if(Ge){for(var it=[],ht=function(){var It=Tt[mt];St=Object(R.a)(It,2);var Rt=St[0],Vt=St[1],yr=Object(B.a)({},Rt,function(){zn(Vt)});it.push(yr),Ge.addKeyMap(yr)},mt=0,Tt=Object.entries(Qe);mt0){var it=new Date().getTime(),ht=window.sessionStorage.getItem(ot);it>=Jr+Ke&&(!ht||ht!==Qr)&&(window.sessionStorage.setItem(ot,Qr),Kn(!0))}},Ke),Object(I.useEffect)(function(){dr(nt)},[Ge,nt]),Object(I.useEffect)(function(){Ge&&(ft&&Ge.focus())},[Ge,ft]),Object(I.useEffect)(function(){if(gr&&Ge){var it=Ge.getScrollerElement();function ht(mt){var Tt=mt.target;if(qr.current){var St=Tt.scrollTop/Tt.scrollHeight;qr.current.scrollTop=qr.current.scrollHeight*St}}return it.addEventListener("scroll",ht),function(){it.removeEventListener("scroll",ht)}}},[Ge,gr]),Object(I.useEffect)(function(){if(Ge&&fn){function it(ht,mt){fn(ht,mt)}return Ge.on("beforeChange",it),function(){Ge.off("beforeChange",it)}}},[Ge,fn]),Object(I.useEffect)(function(){if(Ge&&ur){function it(){ur(Ge.getValue())}return Ge.on("blur",it),function(){Ge.off("blur",it)}}},[Ge,ur]),Object(I.useEffect)(function(){if(Ge){function it(ht){var mt=ht.getValue();ut(mt),Hn(new Date().getTime()),ht.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$&&$(mt)}return Ge.on("change",it),function(){Ge.off("change",it)}}},[Ge,$]),Object(I.useEffect)(function(){Ge&&(de==null?(Ge.setValue(""),ut("")):de!==Ge.getValue()&&(Ge.setValue(de),ut(de),Ge.setCursor(Ge.lineCount(),0)))},[Ge,de]);var zn=Object(I.useCallback)(function(it){var ht=Ge.getCursor(),mt=Ge.getSelection(),Tt=mt.split(`
`);switch(it){case"bold":return Ge.replaceSelection("**"+mt+"**"),mt===""&&Ge.setCursor(ht.line,ht.ch+2),Ge.focus();case"italic":return Ge.replaceSelection("*"+mt+"*"),mt===""&&Ge.setCursor(ht.line,ht.ch+1),Ge.focus();case"code":return Ge.replaceSelection("`"+mt+"`"),mt===""&&Ge.setCursor(ht.line,ht.ch+1),Ge.focus();case"inline-latex":return Ge.replaceSelection("`$$"+mt+"$$`"),mt===""&&Ge.setCursor(ht.line,ht.ch+3),Ge.focus();case"latex":return Ge.replaceSelection("```latex\n"+mt+"\n```"),Ge.setCursor(ht.line+1,mt.length+1),Ge.focus();case"line-break":return Ge.replaceSelection(`
`),Ge.focus();case"list-ul":return mt===""?Ge.replaceSelection("- "+mt):Ge.replaceSelection(Tt.map(function(St){return St===""?"":"- ".concat(St)}).join(`
`)),Ge.focus();case"list-ol":return mt===""?Ge.replaceSelection("1. "+mt):Ge.replaceSelection(Tt.map(function(St,At){return St===""?"":"".concat(At+1,". ").concat(St)}).join(`
`)),Ge.focus();case"add-null-ch":return mt===""&&Ge.setCursor(ht.line,ht.ch+1),Ge.replaceSelection(Ze),Ge.focus();case"inster-template-1":return mt===""&&Ge.setCursor(ht.line,ht.ch),Ge.replaceSelection(je),Ge.focus();case"eraser":return Ge.setValue(""),Ge.focus();case"trigger-watch":return dr(!gr),Ge.focus();case"trigger-full-screen":return pn(!nr),Ge.focus();case Te:Or(Te);return;case we:Or(we);return;case pe:Or(pe);return;case Oe:Or(Oe);return;default:throw new Error}},[Ge,gr,nr]),en=Object(I.useCallback)(function(it){Or("");switch(Dr){case Te:var ht=it.title,mt=it.link;return Ge.replaceSelection("[".concat(ht,"](").concat(mt,")")),Ge.focus();case we:var Tt=it.language,St=it.content;return Ge.replaceSelection(["```"+Tt,St,"```"].join(`
`)),Ge.focus();case pe:var At=it.src,It=it.alt;return Ge.replaceSelection(".concat(At,' "').concat(It,'" )')),Ge.focus();case Oe:for(var Rt=it.row,Vt=it.col,yr=it.align,Lt=`
`,Ur=0;Ur