(window.webpackJsonp=window.webpackJsonp||[]).push([[274,5,6,7],{"+NIl":function(at,Ve,te){(function(ne){ne(te("VrN/"))})(function(ne){"use strict";ne.defineMode("stex",function(V,D){"use strict";function z(d,o){d.cmdState.push(o)}function N(d){return d.cmdState.length>0?d.cmdState[d.cmdState.length-1]:null}function M(d){var o=d.cmdState.pop();o&&o.closeBracket()}function W(d){for(var o=d.cmdState,c=o.length-1;c>=0;c--){var s=o[c];if(s.name=="DEFAULT")continue;return s}return{styleIdentifier:function(){return null}}}function B(d,o,c){return function(){this.name=d,this.bracketNo=0,this.style=o,this.styles=c,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var k={};k.importmodule=B("importmodule","tag",["string","builtin"]),k.documentclass=B("documentclass","tag",["","atom"]),k.usepackage=B("usepackage","tag",["atom"]),k.begin=B("begin","tag",["atom"]),k.end=B("end","tag",["atom"]),k.label=B("label","tag",["atom"]),k.ref=B("ref","tag",["atom"]),k.eqref=B("eqref","tag",["atom"]),k.cite=B("cite","tag",["atom"]),k.bibitem=B("bibitem","tag",["atom"]),k.Bibitem=B("Bibitem","tag",["atom"]),k.RBibitem=B("RBibitem","tag",["atom"]),k.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function R(d,o){d.f=o}function g(d,o){var c;if(d.match(/^\\[a-zA-Z@]+/)){var s=d.current().slice(1);return c=k.hasOwnProperty(s)?k[s]:k.DEFAULT,c=new c,z(o,c),R(o,f),c.style}if(d.match(/^\\[$&%#{}_]/))return"tag";if(d.match(/^\\[,;!\/\\]/))return"tag";if(d.match("\\["))return R(o,function(l,h){return p(l,h,"\\]")}),"keyword";if(d.match("\\("))return R(o,function(l,h){return p(l,h,"\\)")}),"keyword";if(d.match("$$"))return R(o,function(l,h){return p(l,h,"$$")}),"keyword";if(d.match("$"))return R(o,function(l,h){return p(l,h,"$")}),"keyword";var a=d.next();if(a=="%")return d.skipToEnd(),"comment";if(a=="}"||a=="]"){if(c=N(o),c)c.closeBracket(a),R(o,f);else return"error";return"bracket"}else return a=="{"||a=="["?(c=k.DEFAULT,c=new c,z(o,c),"bracket"):/\d/.test(a)?(d.eatWhile(/[\w.%]/),"atom"):(d.eatWhile(/[\w\-_]/),c=W(o),c.name=="begin"&&(c.argument=d.current()),c.styleIdentifier())}function p(d,o,c){if(d.eatSpace())return null;if(c&&d.match(c))return R(o,g),"keyword";if(d.match(/^\\[a-zA-Z@]+/))return"tag";if(d.match(/^[a-zA-Z]+/))return"variable-2";if(d.match(/^\\[$&%#{}_]/))return"tag";if(d.match(/^\\[,;!\/]/))return"tag";if(d.match(/^[\^_&]/))return"tag";if(d.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(d.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var s=d.next();return s=="{"||s=="}"||s=="["||s=="]"||s=="("||s==")"?"bracket":s=="%"?(d.skipToEnd(),"comment"):"error"}function f(d,o){var c=d.peek(),s;return c=="{"||c=="["?(s=N(o),s.openBracket(c),d.eat(c),R(o,g),"bracket"):/[ \t\r]/.test(c)?(d.eat(c),null):(R(o,g),M(o),g(d,o))}return{startState:function(){var d=D.inMathMode?function(o,c){return p(o,c)}:g;return{cmdState:[],f:d}},copyState:function(d){return{cmdState:d.cmdState.slice(),f:d.f}},token:function(d,o){return o.f(d,o)},blankLine:function(d){d.f=g,d.cmdState.length=0},lineComment:"%"}}),ne.defineMIME("text/x-stex","stex"),ne.defineMIME("text/x-latex","stex")})},"+ua5":function(at,Ve,te){},"19Vz":function(at,Ve,te){(function(ne){ne(te("VrN/"))})(function(ne){ne.defineOption("placeholder","",function(B,k,R){var g=R&&R!=ne.Init;if(k&&!g)B.on("blur",N),B.on("change",M),B.on("swapDoc",M),ne.on(B.getInputField(),"compositionupdate",B.state.placeholderCompose=function(){z(B)}),M(B);else if(!k&&g){B.off("blur",N),B.off("change",M),B.off("swapDoc",M),ne.off(B.getInputField(),"compositionupdate",B.state.placeholderCompose),V(B);var p=B.getWrapperElement();p.className=p.className.replace(" CodeMirror-empty","")}k&&!B.hasFocus()&&N(B)});function V(B){B.state.placeholder&&(B.state.placeholder.parentNode.removeChild(B.state.placeholder),B.state.placeholder=null)}function D(B){V(B);var k=B.state.placeholder=document.createElement("pre");k.style.cssText="height: 0; overflow: visible",k.style.direction=B.getOption("direction"),k.className="CodeMirror-placeholder CodeMirror-line-like";var R=B.getOption("placeholder");typeof R=="string"&&(R=document.createTextNode(R)),k.appendChild(R),B.display.lineSpace.insertBefore(k,B.display.lineSpace.firstChild)}function z(B){setTimeout(function(){var k=!1,R=B.getInputField();R.nodeName=="TEXTAREA"?k=!R.value:B.lineCount()==1&&(k=!/[^\u200b]/.test(R.querySelector(".CodeMirror-line").textContent)),k?D(B):V(B)},20)}function N(B){W(B)&&D(B)}function M(B){var k=B.getWrapperElement(),R=W(B);k.className=k.className.replace(" CodeMirror-empty","")+(R?" CodeMirror-empty":""),R?D(B):V(B)}function W(B){return B.lineCount()===1&&B.getLine(0)===""}})},"1eCo":function(at,Ve,te){(function(ne){ne(te("VrN/"))})(function(ne){"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},D={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ne.defineMode("xml",function(z,N){var M=z.indentUnit,W={},B=N.htmlMode?V:D;for(var k in B)W[k]=B[k];for(var k in N)W[k]=N[k];var R,g;function p(u,y){function m(I){return y.tokenize=I,I(u,y)}var b=u.next();if(b=="<")return u.eat("!")?u.eat("[")?u.match("CDATA[")?m(o("atom","]]>")):null:u.match("--")?m(o("comment","-->")):u.match("DOCTYPE",!0,!0)?(u.eatWhile(/[\w\._\-]/),m(c(1))):null:u.eat("?")?(u.eatWhile(/[\w\._\-]/),y.tokenize=o("meta","?>"),"meta"):(R=u.eat("/")?"closeTag":"openTag",y.tokenize=f,"tag bracket");if(b=="&"){var P;return u.eat("#")?u.eat("x")?P=u.eatWhile(/[a-fA-F\d]/)&&u.eat(";"):P=u.eatWhile(/[\d]/)&&u.eat(";"):P=u.eatWhile(/[\w\.\-:]/)&&u.eat(";"),P?"atom":"error"}else return u.eatWhile(/[^&<]/),null}p.isInText=!0;function f(u,y){var m=u.next();if(m==">"||m=="/"&&u.eat(">"))return y.tokenize=p,R=m==">"?"endTag":"selfcloseTag","tag bracket";if(m=="=")return R="equals",null;if(m=="<"){y.tokenize=p,y.state=h,y.tagName=y.tagStart=null;var b=y.tokenize(u,y);return b?b+" tag error":"tag error"}else return/[\'\"]/.test(m)?(y.tokenize=d(m),y.stringStartCol=u.column(),y.tokenize(u,y)):(u.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(u){var y=function(m,b){for(;!m.eol();)if(m.next()==u){b.tokenize=f;break}return"string"};return y.isInAttribute=!0,y}function o(u,y){return function(m,b){for(;!m.eol();){if(m.match(y)){b.tokenize=p;break}m.next()}return u}}function c(u){return function(y,m){for(var b;(b=y.next())!=null;){if(b=="<")return m.tokenize=c(u+1),m.tokenize(y,m);if(b==">")if(u==1){m.tokenize=p;break}else return m.tokenize=c(u-1),m.tokenize(y,m)}return"meta"}}function s(u,y,m){this.prev=u.context,this.tagName=y,this.indent=u.indented,this.startOfLine=m,(W.doNotIndent.hasOwnProperty(y)||u.context&&u.context.noIndent)&&(this.noIndent=!0)}function a(u){u.context&&(u.context=u.context.prev)}function l(u,y){for(var m;;){if(!u.context)return;if(m=u.context.tagName,!W.contextGrabbers.hasOwnProperty(m)||!W.contextGrabbers[m].hasOwnProperty(y))return;a(u)}}function h(u,y,m){return u=="openTag"?(m.tagStart=y.column(),O):u=="closeTag"?w:h}function O(u,y,m){return u=="word"?(m.tagName=y.current(),g="tag",S):W.allowMissingTagName&&u=="endTag"?(g="tag bracket",S(u,y,m)):(g="error",O)}function w(u,y,m){if(u=="word"){var b=y.current();return m.context&&m.context.tagName!=b&&W.implicitlyClosed.hasOwnProperty(m.context.tagName)&&a(m),m.context&&m.context.tagName==b||W.matchClosing===!1?(g="tag",x):(g="tag error",A)}else return W.allowMissingTagName&&u=="endTag"?(g="tag bracket",x(u,y,m)):(g="error",A)}function x(u,y,m){return u!="endTag"?(g="error",x):(a(m),h)}function A(u,y,m){return g="error",x(u,y,m)}function S(u,y,m){if(u=="word")return g="attribute",T;if(u=="endTag"||u=="selfcloseTag"){var b=m.tagName,P=m.tagStart;return m.tagName=m.tagStart=null,u=="selfcloseTag"||W.autoSelfClosers.hasOwnProperty(b)?l(m,b):(l(m,b),m.context=new s(m,b,P==m.indented)),h}return g="error",S}function T(u,y,m){return u=="equals"?E:(W.allowMissing||(g="error"),S(u,y,m))}function E(u,y,m){return u=="string"?_:u=="word"&&W.allowUnquoted?(g="string",S):(g="error",S(u,y,m))}function _(u,y,m){return u=="string"?_:S(u,y,m)}return{startState:function(u){var y={tokenize:p,state:h,indented:u||0,tagName:null,tagStart:null,context:null};return u!=null&&(y.baseIndent=u),y},token:function(u,y){if(!y.tagName&&u.sol()&&(y.indented=u.indentation()),u.eatSpace())return null;R=null;var m=y.tokenize(u,y);return(m||R)&&m!="comment"&&(g=null,y.state=y.state(R||m,u,y),g&&(m=g=="error"?m+" error":g)),m},indent:function(u,y,m){var b=u.context;if(u.tokenize.isInAttribute)return u.tagStart==u.indented?u.stringStartCol+1:u.indented+M;if(b&&b.noIndent)return ne.Pass;if(u.tokenize!=f&&u.tokenize!=p)return m?m.match(/^(\s*)/)[0].length:0;if(u.tagName)return W.multilineTagIndentPastTag!==!1?u.tagStart+u.tagName.length+2:u.tagStart+M*(W.multilineTagIndentFactor||1);if(W.alignCDATA&&/$/,blockCommentStart:"",configuration:W.htmlMode?"html":"xml",helperType:W.htmlMode?"html":"xml",skipAttribute:function(u){u.state==E&&(u.state=S)},xmlCurrentTag:function(u){return u.tagName?{name:u.tagName,close:u.type=="closeTag"}:null},xmlCurrentContext:function(u){for(var y=[],m=u.context;m;m=m.prev)m.tagName&&y.push(m.tagName);return y.reverse()}}}),ne.defineMIME("text/xml","xml"),ne.defineMIME("application/xml","xml"),ne.mimeModes.hasOwnProperty("text/html")||ne.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"55Ip":function(at,Ve,te){"use strict";te.d(Ve,"a",function(){return l});var ne=te("Ty5D"),V=te("dI71"),D=te("cDcd"),z=te.n(D),N=te("YS25"),M=te("17x9"),W=te.n(M),B=te("wx14"),k=te("zLVn"),R=te("9R94"),g=function(E){Object(V.a)(_,E);function _(){for(var y,m=arguments.length,b=new Array(m),P=0;PK&&(K=v.line_indent_level));var J={mode:j,parent:v,last_token:v?v.last_token:new f(l.START_BLOCK,""),last_word:v?v.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:K,alignment:0,line_indent_level:v?v.line_indent_level:K,start_line_index:this._output.get_line_number(),ternary_depth:0};return J},F.prototype._reset=function(v){var j=v.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new p(this._options,j),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(u.BlockStatement);var K=new c(v,this._options);return this._tokens=K.tokenize(),v},F.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v,j=this._reset(this._source_text),K=this._options.eol;this._options.eol==="auto"&&(K=`
`,j&&d.lineBreak.test(j||"")&&(K=j.match(d.lineBreak)[0]));for(var J=this._tokens.next();J;)this.handle_token(J),this._last_last_text=this._flags.last_token.text,this._flags.last_token=J,J=this._tokens.next();return v=this._output.get_code(K),v},F.prototype.handle_token=function(v,j){v.type===l.START_EXPR?this.handle_start_expr(v):v.type===l.END_EXPR?this.handle_end_expr(v):v.type===l.START_BLOCK?this.handle_start_block(v):v.type===l.END_BLOCK?this.handle_end_block(v):v.type===l.WORD?this.handle_word(v):v.type===l.RESERVED?this.handle_word(v):v.type===l.SEMICOLON?this.handle_semicolon(v):v.type===l.STRING?this.handle_string(v):v.type===l.EQUALS?this.handle_equals(v):v.type===l.OPERATOR?this.handle_operator(v):v.type===l.COMMA?this.handle_comma(v):v.type===l.BLOCK_COMMENT?this.handle_block_comment(v,j):v.type===l.COMMENT?this.handle_comment(v,j):v.type===l.DOT?this.handle_dot(v):v.type===l.EOF?this.handle_eof(v):v.type===l.UNKNOWN?this.handle_unknown(v,j):this.handle_unknown(v,j)},F.prototype.handle_whitespace_and_comments=function(v,j){var K=v.newlines,J=this._options.keep_array_indentation&&b(this._flags.mode);if(v.comments_before)for(var ee=v.comments_before.next();ee;)this.handle_whitespace_and_comments(ee,j),this.handle_token(ee,j),ee=v.comments_before.next();if(J)for(var ve=0;ve0,j);else if(this._options.max_preserve_newlines&&K>this._options.max_preserve_newlines&&(K=this._options.max_preserve_newlines),this._options.preserve_newlines&&K>1){this.print_newline(!1,j);for(var de=1;de0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},F.prototype.set_mode=function(v){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,v),this._flags=this.create_flags(this._previous_flags,v),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},F.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===u.Statement&&y(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},F.prototype.start_of_object_property=function(){return this._flags.parent.mode===u.ObjectLiteral&&this._flags.mode===u.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"]))},F.prototype.start_of_statement=function(v){var j=!1;return j=j||A(this._flags.last_token,["var","let","const"])&&v.type===l.WORD,j=j||x(this._flags.last_token,"do"),j=j||!(this._flags.parent.mode===u.ObjectLiteral&&this._flags.mode===u.Statement)&&A(this._flags.last_token,L)&&!v.newlines,j=j||x(this._flags.last_token,"else")&&!(x(v,"if")&&!v.comments_before),j=j||this._flags.last_token.type===l.END_EXPR&&(this._previous_flags.mode===u.ForInitializer||this._previous_flags.mode===u.Conditional),j=j||this._flags.last_token.type===l.WORD&&this._flags.mode===u.BlockStatement&&!this._flags.in_case&&!(v.text==="--"||v.text==="++")&&this._last_last_text!=="function"&&v.type!==l.WORD&&v.type!==l.RESERVED,j=j||this._flags.mode===u.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"])),j?(this.set_mode(u.Statement),this.indent(),this.handle_whitespace_and_comments(v,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v,A(v,["do","for","if","while"])),!0):!1},F.prototype.handle_start_expr=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v);var j=u.Expression;if(v.text==="["){if(this._flags.last_token.type===l.WORD||this._flags.last_token.text===")"){A(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(v),this.set_mode(j),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}j=u.ArrayLiteral,b(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),h(this._flags.last_token.type,[l.START_EXPR,l.END_EXPR,l.WORD,l.OPERATOR,l.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===l.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,j=u.ForInitializer):h(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,j=u.Conditional):h(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&v.whitespace_before===""?this._output.space_before_token=!1:(h(this._flags.last_token.text,s)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===l.EQUALS||this._flags.last_token.type===l.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v);else if(this._flags.last_token.type===l.WORD){this._output.space_before_token=!1;var K=this._tokens.peek(-3);if(this._options.space_after_named_function&&K){var J=this._tokens.peek(-4);A(K,["async","function"])||K.text==="*"&&A(J,["async","function"])?this._output.space_before_token=!0:this._flags.mode===u.ObjectLiteral?(K.text==="{"||K.text===","||K.text==="*"&&(J.text==="{"||J.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(v);(this._flags.last_token.type===l.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(h(this._last_last_text,["function","yield"])||this._flags.mode===u.ObjectLiteral&&h(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===l.START_BLOCK?this.print_newline():(this._flags.last_token.type===l.END_EXPR||this._flags.last_token.type===l.START_EXPR||this._flags.last_token.type===l.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===l.COMMA)&&this.allow_wrap_or_preserved_newline(v,v.newlines),this.print_token(v),this.set_mode(j),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},F.prototype.handle_end_expr=function(v){for(;this._flags.mode===u.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(v,v.text==="]"&&b(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===l.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(v),this.restore_mode(),y(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===u.Conditional&&(this._previous_flags.mode=u.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},F.prototype.handle_start_block=function(v){this.handle_whitespace_and_comments(v);var j=this._tokens.peek(),K=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===l.END_EXPR?(this.set_mode(u.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(u.BlockStatement):K&&(h(K.text,[":",","])&&h(j.type,[l.STRING,l.WORD,l.RESERVED])||h(j.text,["get","set","..."])&&h(K.type,[l.WORD,l.RESERVED]))?h(this._last_last_text,["class","interface"])&&!h(K.text,[":",","])?this.set_mode(u.BlockStatement):this.set_mode(u.ObjectLiteral):this._flags.last_token.type===l.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(u.BlockStatement):h(this._flags.last_token.type,[l.EQUALS,l.START_EXPR,l.COMMA,l.OPERATOR])||A(this._flags.last_token,["return","throw","import","default"])?this.set_mode(u.ObjectLiteral):this.set_mode(u.BlockStatement),this._flags.last_token&&(A(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var J=!j.comments_before&&j.text==="}",ee=J&&this._flags.last_word==="function"&&this._flags.last_token.type===l.END_EXPR;if(this._options.brace_preserve_inline){var ve=0,de=null;this._flags.inline_frame=!0;do if(ve+=1,de=this._tokens.peek(ve-1),de.newlines){this._flags.inline_frame=!1;break}while(de.type!==l.EOF&&!(de.type===l.END_BLOCK&&de.opened===v))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==l.OPERATOR&&(ee||this._flags.last_token.type===l.EQUALS||A(this._flags.last_token,S)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(b(this._previous_flags.mode)&&(this._flags.last_token.type===l.START_EXPR||this._flags.last_token.type===l.COMMA)&&((this._flags.last_token.type===l.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(v),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==l.OPERATOR&&this._flags.last_token.type!==l.START_EXPR&&(this._flags.last_token.type===l.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(v),this.indent(),!J&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},F.prototype.handle_end_block=function(v){for(this.handle_whitespace_and_comments(v);this._flags.mode===u.Statement;)this.restore_mode();var j=this._flags.last_token.type===l.START_BLOCK;this._flags.inline_frame&&!j?this._output.space_before_token=!0:this._options.brace_style==="expand"?j||this.print_newline():j||(b(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(v)},F.prototype.handle_word=function(v){if(v.type===l.RESERVED){if(h(v.text,["set","get"])&&this._flags.mode!==u.ObjectLiteral)v.type=l.WORD;else if(v.text==="import"&&h(this._tokens.peek().text,["(","."]))v.type=l.WORD;else if(h(v.text,["as","from"])&&!this._flags.import_block)v.type=l.WORD;else if(this._flags.mode===u.ObjectLiteral){var j=this._tokens.peek();j.text===":"&&(v.type=l.WORD)}}if(this.start_of_statement(v)?A(this._flags.last_token,["var","let","const"])&&v.type===l.WORD&&(this._flags.declaration_statement=!0):v.newlines&&!P(this._flags.mode)&&(this._flags.last_token.type!==l.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==l.EQUALS&&(this._options.preserve_newlines||!A(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(v),this.print_newline()):this.handle_whitespace_and_comments(v),this._flags.do_block&&!this._flags.do_while)if(x(v,"while")){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&x(v,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===u.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&A(v,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(v),this._flags.in_case=!0;return}if((this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.START_EXPR||this._flags.last_token.type===l.EQUALS||this._flags.last_token.type===l.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v)),x(v,"function")){(h(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(h(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===l.OPERATOR))&&(!this._output.just_added_blankline()&&!v.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===l.RESERVED||this._flags.last_token.type===l.WORD?A(this._flags.last_token,["get","set","new","export"])||A(this._flags.last_token,L)?this._output.space_before_token=!0:x(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===l.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(P(this._flags.mode)||b(this._flags.mode))||this.print_newline(),this.print_token(v),this._flags.last_word=v.text;return}var K="NONE";if(this._flags.last_token.type===l.END_BLOCK?this._previous_flags.inline_frame?K="SPACE":A(v,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines?K="NEWLINE":(K="SPACE",this._output.space_before_token=!0):K="NEWLINE":this._flags.last_token.type===l.SEMICOLON&&this._flags.mode===u.BlockStatement?K="NEWLINE":this._flags.last_token.type===l.SEMICOLON&&P(this._flags.mode)?K="SPACE":this._flags.last_token.type===l.STRING?K="NEWLINE":this._flags.last_token.type===l.RESERVED||this._flags.last_token.type===l.WORD||this._flags.last_token.text==="*"&&(h(this._last_last_text,["function","yield"])||this._flags.mode===u.ObjectLiteral&&h(this._last_last_text,["{",","]))?K="SPACE":this._flags.last_token.type===l.START_BLOCK?this._flags.inline_frame?K="SPACE":K="NEWLINE":this._flags.last_token.type===l.END_EXPR&&(this._output.space_before_token=!0,K="NEWLINE"),A(v,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?K="SPACE":K="NEWLINE"),A(v,["else","catch","finally"]))if((!(this._flags.last_token.type===l.END_BLOCK&&this._previous_flags.mode===u.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var J=this._output.current_line;J.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else K==="NEWLINE"?A(this._flags.last_token,S)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&A(v,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==l.END_EXPR?(this._flags.last_token.type!==l.START_EXPR||!A(v,["var","let","const"]))&&this._flags.last_token.text!==":"&&(x(v,"if")&&x(v.previous,"else")?this._output.space_before_token=!0:this.print_newline()):A(v,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&b(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():K==="SPACE"&&(this._output.space_before_token=!0);v.previous&&(v.previous.type===l.WORD||v.previous.type===l.RESERVED)&&(this._output.space_before_token=!0),this.print_token(v),this._flags.last_word=v.text,v.type===l.RESERVED&&(v.text==="do"?this._flags.do_block=!0:v.text==="if"?this._flags.if_block=!0:v.text==="import"?this._flags.import_block=!0:this._flags.import_block&&x(v,"from")&&(this._flags.import_block=!1))},F.prototype.handle_semicolon=function(v){this.start_of_statement(v)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(v);for(var j=this._tokens.peek();this._flags.mode===u.Statement&&!(this._flags.if_block&&x(j,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(v)},F.prototype.handle_string=function(v){v.text.startsWith("`")&&v.newlines===0&&v.whitespace_before===""&&(v.previous.text===")"||this._flags.last_token.type===l.WORD)||(this.start_of_statement(v)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(v),this._flags.last_token.type===l.RESERVED||this._flags.last_token.type===l.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.START_EXPR||this._flags.last_token.type===l.EQUALS||this._flags.last_token.type===l.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v):v.text.startsWith("`")&&this._flags.last_token.type===l.END_EXPR&&(v.previous.text==="]"||v.previous.text===")")&&v.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(v)},F.prototype.handle_equals=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0},F.prototype.handle_comma=function(v){this.handle_whitespace_and_comments(v,!0),this.print_token(v),this._output.space_before_token=!0,this._flags.declaration_statement?(P(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)):this._flags.mode===u.ObjectLiteral||this._flags.mode===u.Statement&&this._flags.parent.mode===u.ObjectLiteral?(this._flags.mode===u.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)},F.prototype.handle_operator=function(v){var j=v.text==="*"&&(A(this._flags.last_token,["function","yield"])||h(this._flags.last_token.type,[l.START_BLOCK,l.COMMA,l.END_BLOCK,l.SEMICOLON])),K=h(v.text,["-","+"])&&(h(this._flags.last_token.type,[l.START_BLOCK,l.START_EXPR,l.EQUALS,l.OPERATOR])||h(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(v)){var J=!j;this.handle_whitespace_and_comments(v,J)}if(v.text==="*"&&this._flags.last_token.type===l.DOT){this.print_token(v);return}if(v.text==="::"){this.print_token(v);return}if(this._flags.last_token.type===l.OPERATOR&&h(this._options.operator_position,_)&&this.allow_wrap_or_preserved_newline(v),v.text===":"&&this._flags.in_case){this.print_token(v),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==l.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var ee=!0,ve=!0,de=!1;if(v.text===":"?this._flags.ternary_depth===0?ee=!1:(this._flags.ternary_depth-=1,de=!0):v.text==="?"&&(this._flags.ternary_depth+=1),!K&&!j&&this._options.preserve_newlines&&h(v.text,a)){var me=v.text===":",ce=me&&de,pe=me&&!de;switch(this._options.operator_position){case E.before_newline:this._output.space_before_token=!pe,this.print_token(v),(!me||ce)&&this.allow_wrap_or_preserved_newline(v),this._output.space_before_token=!0;return;case E.after_newline:this._output.space_before_token=!0,!me||ce?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(v):this._output.space_before_token=!1,this.print_token(v),this._output.space_before_token=!0;return;case E.preserve_newline:pe||this.allow_wrap_or_preserved_newline(v),ee=!(this._output.just_added_newline()||pe),this._output.space_before_token=ee,this.print_token(v),this._output.space_before_token=!0;return}}if(j){this.allow_wrap_or_preserved_newline(v),ee=!1;var ae=this._tokens.peek();ve=ae&&h(ae.type,[l.WORD,l.RESERVED])}else if(v.text==="...")this.allow_wrap_or_preserved_newline(v),ee=this._flags.last_token.type===l.START_BLOCK,ve=!1;else if(h(v.text,["--","++","!","~"])||K){if((this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.START_EXPR)&&this.allow_wrap_or_preserved_newline(v),ee=!1,ve=!1,v.newlines&&(v.text==="--"||v.text==="++"||v.text==="~")){var he=A(this._flags.last_token,S)&&v.newlines;he&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(he,!0)}this._flags.last_token.text===";"&&P(this._flags.mode)&&(ee=!0),this._flags.last_token.type===l.RESERVED?ee=!0:this._flags.last_token.type===l.END_EXPR?ee=!(this._flags.last_token.text==="]"&&(v.text==="--"||v.text==="++")):this._flags.last_token.type===l.OPERATOR&&(ee=h(v.text,["--","-","++","+"])&&h(this._flags.last_token.text,["--","-","++","+"]),h(v.text,["+","-"])&&h(this._flags.last_token.text,["--","++"])&&(ve=!0)),(this._flags.mode===u.BlockStatement&&!this._flags.inline_frame||this._flags.mode===u.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ee,this.print_token(v),this._output.space_before_token=ve},F.prototype.handle_block_comment=function(v,j){if(this._output.raw){this._output.add_raw_token(v),v.directives&&v.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(v.directives){this.print_newline(!1,j),this.print_token(v),v.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!d.newline.test(v.text)&&!v.newlines){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0;return}else this.print_block_commment(v,j)},F.prototype.print_block_commment=function(v,j){var K=m(v.text),J,ee=!1,ve=!1,de=v.whitespace_before,me=de.length;if(this.print_newline(!1,j),this.print_token_line_indentation(v),this._output.add_token(K[0]),this.print_newline(!1,j),K.length>1){for(K=K.slice(1),ee=I(K,"*"),ve=U(K,de),ee&&(this._flags.alignment=1),J=0;J=0;d--)if(this.__items[d].match(f))return!0;return!1},R.prototype.set_indent=function(f,d){this.is_empty()&&(this.__indent_count=f||0,this.__alignment_count=d||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},R.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},R.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},R.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var f=this.__parent.current_line;return f.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),f.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),f.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,f.__items[0]===" "&&(f.__items.splice(0,1),f.__character_count-=1),!0}return!1},R.prototype.is_empty=function(){return this.__items.length===0},R.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},R.prototype.push=function(f){this.__items.push(f);var d=f.lastIndexOf(`
`);d!==-1?this.__character_count=f.length-d:this.__character_count+=f.length},R.prototype.pop=function(){var f=null;return this.is_empty()||(f=this.__items.pop(),this.__character_count-=f.length),f},R.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},R.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},R.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},R.prototype.toString=function(){var f="";return this.is_empty()?this.__parent.indent_empty_lines&&(f=this.__parent.get_indent_string(this.__indent_count)):(f=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),f+=this.__items.join("")),f};function g(f,d){this.__cache=[""],this.__indent_size=f.indent_size,this.__indent_string=f.indent_char,f.indent_with_tabs||(this.__indent_string=new Array(f.indent_size+1).join(f.indent_char)),d=d||"",f.indent_level>0&&(d=new Array(f.indent_level+1).join(this.__indent_string)),this.__base_string=d,this.__base_string_length=d.length}g.prototype.get_indent_size=function(f,d){var o=this.__base_string_length;return d=d||0,f<0&&(o=0),o+=f*this.__indent_size,o+=d,o},g.prototype.get_indent_string=function(f,d){var o=this.__base_string;return d=d||0,f<0&&(f=0,o=""),d+=f*this.__indent_size,this.__ensure_cache(d),o+=this.__cache[d],o},g.prototype.__ensure_cache=function(f){for(;f>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var f=this.__cache.length,d=0,o="";this.__indent_size&&f>=this.__indent_size&&(d=Math.floor(f/this.__indent_size),f-=d*this.__indent_size,o=new Array(d+1).join(this.__indent_string)),f&&(o+=new Array(f+1).join(" ")),this.__cache.push(o)};function p(f,d){this.__indent_cache=new g(f,d),this.raw=!1,this._end_with_newline=f.end_with_newline,this.indent_size=f.indent_size,this.wrap_line_length=f.wrap_line_length,this.indent_empty_lines=f.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new R(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(f,d){return this.__indent_cache.get_indent_string(f,d)},p.prototype.get_indent_size=function(f,d){return this.__indent_cache.get_indent_size(f,d)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(f){return this.is_empty()||!f&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(f){this.trim(!0);var d=this.current_line.pop();d&&(d[d.length-1]===`
`&&(d=d.replace(/\n+$/g,"")),this.current_line.push(d)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
`);return f!==`
`&&(o=o.replace(/[\n]/g,f)),o},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(f,d){return f=f||0,d=d||0,this.next_line.set_indent(f,d),this.__lines.length>1?(this.current_line.set_indent(f,d),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(f){for(var d=0;d1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},p.prototype.just_added_newline=function(){return this.current_line.is_empty()},p.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},p.prototype.ensure_empty_line_above=function(f,d){for(var o=this.__lines.length-2;o>=0;){var c=this.__lines[o];if(c.is_empty())break;if(c.item(0).indexOf(f)!==0&&c.item(-1)!==d){this.__lines.splice(o+1,0,new R(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},k.exports.Output=p},function(k){function R(g,p,f,d){this.type=g,this.text=p,this.comments_before=null,this.newlines=f||0,this.whitespace_before=d||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}k.exports.Token=R},function(k,R){var g="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",f="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",d="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="(?:\\\\u[0-9a-fA-F]{4}|["+g+f+"])",c="(?:\\\\u[0-9a-fA-F]{4}|["+p+f+d+"])*";R.identifier=new RegExp(o+c,"g"),R.identifierStart=new RegExp(o),R.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+p+f+d+"])+");var s=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;R.newline=/[\n\r\u2028\u2029]/,R.lineBreak=new RegExp(`\r
|`+R.newline.source),R.allLineBreaks=new RegExp(R.lineBreak.source,"g")},function(k,R,g){var p=g(6).Options,f=["before-newline","after-newline","preserve-newline"];function d(o){p.call(this,o,"js");var c=this.raw_options.brace_style||null;c==="expand-strict"?this.raw_options.brace_style="expand":c==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var a=0;a>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),T=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";T=T.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),T="\\?\\.(?!\\d) "+T,T=T.replace(/ /g,"|");var E=new RegExp(T),_="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),u=_.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),y=new RegExp("^(?:"+u.join("|")+")$"),m,b=function(I,U){f.call(this,I,U),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var F=new s(this._input),L=new a(this._input).read_options(this._options);this.__patterns={template:L,identifier:L.starting_with(c.identifier).matching(c.identifierMatch),number:F.matching(w),punct:F.matching(E),comment:F.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:F.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:F.matching(//),include:F.starting_with(/#include/).until_after(c.lineBreak),shebang:F.starting_with(/#!/).until_after(c.lineBreak),xml:F.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:L.until(/['\\\n\r\u2028\u2029]/),double_quote:L.until(/["\\\n\r\u2028\u2029]/),template_text:L.until(/[`\\$]/),template_expression:L.until(/[`}\\]/)}};b.prototype=new f,b.prototype._is_comment=function(I){return I.type===h.COMMENT||I.type===h.BLOCK_COMMENT||I.type===h.UNKNOWN},b.prototype._is_opening=function(I){return I.type===h.START_BLOCK||I.type===h.START_EXPR},b.prototype._is_closing=function(I,U){return(I.type===h.END_BLOCK||I.type===h.END_EXPR)&&U&&(I.text==="]"&&U.text==="["||I.text===")"&&U.text==="("||I.text==="}"&&U.text==="{")},b.prototype._reset=function(){m=!1},b.prototype._get_next_token=function(I,U){var F=null;this._readWhitespace();var L=this._input.peek();return L===null?this._create_token(h.EOF,""):(F=F||this._read_non_javascript(L),F=F||this._read_string(L),F=F||this._read_word(I),F=F||this._read_singles(L),F=F||this._read_comment(L),F=F||this._read_regexp(L,I),F=F||this._read_xml(L,I),F=F||this._read_punctuation(),F=F||this._create_token(h.UNKNOWN,this._input.next()),F)},b.prototype._read_word=function(I){var U;if(U=this.__patterns.identifier.read(),U!=="")return U=U.replace(c.allLineBreaks,`
`),!(I.type===h.DOT||I.type===h.RESERVED&&(I.text==="set"||I.text==="get"))&&y.test(U)?(U==="in"||U==="of")&&(I.type===h.WORD||I.type===h.STRING)?this._create_token(h.OPERATOR,U):this._create_token(h.RESERVED,U):this._create_token(h.WORD,U);if(U=this.__patterns.number.read(),U!=="")return this._create_token(h.WORD,U)},b.prototype._read_singles=function(I){var U=null;return I==="("||I==="["?U=this._create_token(h.START_EXPR,I):I===")"||I==="]"?U=this._create_token(h.END_EXPR,I):I==="{"?U=this._create_token(h.START_BLOCK,I):I==="}"?U=this._create_token(h.END_BLOCK,I):I===";"?U=this._create_token(h.SEMICOLON,I):I==="."&&A.test(this._input.peek(1))?U=this._create_token(h.DOT,I):I===","&&(U=this._create_token(h.COMMA,I)),U&&this._input.next(),U},b.prototype._read_punctuation=function(){var I=this.__patterns.punct.read();if(I!=="")return I==="="?this._create_token(h.EQUALS,I):I==="?."?this._create_token(h.DOT,I):this._create_token(h.OPERATOR,I)},b.prototype._read_non_javascript=function(I){var U="";if(I==="#"){if(this._is_first_token()&&(U=this.__patterns.shebang.read(),U))return this._create_token(h.UNKNOWN,U.trim()+`
`);if(U=this.__patterns.include.read(),U)return this._create_token(h.UNKNOWN,U.trim()+`
`);I=this._input.next();var F="#";if(this._input.hasNext()&&this._input.testChar(x)){do I=this._input.next(),F+=I;while(this._input.hasNext()&&I!=="#"&&I!=="=");return I==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(F+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(F+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,F)}this._input.back()}else if(I==="<"&&this._is_first_token()){if(U=this.__patterns.html_comment_start.read(),U){for(;this._input.hasNext()&&!this._input.testChar(c.newline);)U+=this._input.next();return m=!0,this._create_token(h.COMMENT,U)}}else if(m&&I==="-"&&(U=this.__patterns.html_comment_end.read(),U))return m=!1,this._create_token(h.COMMENT,U);return null},b.prototype._read_comment=function(I){var U=null;if(I==="/"){var F="";if(this._input.peek(1)==="*"){F=this.__patterns.block_comment.read();var L=O.get_directives(F);L&&L.ignore==="start"&&(F+=O.readIgnored(this._input)),F=F.replace(c.allLineBreaks,`
`),U=this._create_token(h.BLOCK_COMMENT,F),U.directives=L}else this._input.peek(1)==="/"&&(F=this.__patterns.comment.read(),U=this._create_token(h.COMMENT,F))}return U},b.prototype._read_string=function(I){if(I==="`"||I==="'"||I==='"'){var U=this._input.next();return this.has_char_escapes=!1,I==="`"?U+=this._read_string_recursive("`",!0,"${"):U+=this._read_string_recursive(I),this.has_char_escapes&&this._options.unescape_strings&&(U=P(U)),this._input.peek()===I&&(U+=this._input.next()),U=U.replace(c.allLineBreaks,`
`),this._create_token(h.STRING,U)}return null},b.prototype._allow_regexp_or_xml=function(I){return I.type===h.RESERVED&&l(I.text,["return","case","throw","else","do","typeof","yield"])||I.type===h.END_EXPR&&I.text===")"&&I.opened.previous.type===h.RESERVED&&l(I.opened.previous.text,["if","while","for"])||l(I.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},b.prototype._read_regexp=function(I,U){if(I==="/"&&this._allow_regexp_or_xml(U)){for(var F=this._input.next(),L=!1,v=!1;this._input.hasNext()&&(L||v||this._input.peek()!==I)&&!this._input.testChar(c.newline);)F+=this._input.peek(),L?L=!1:(L=this._input.peek()==="\\",this._input.peek()==="["?v=!0:this._input.peek()==="]"&&(v=!1)),this._input.next();return this._input.peek()===I&&(F+=this._input.next(),F+=this._input.read(c.identifier)),this._create_token(h.STRING,F)}return null},b.prototype._read_xml=function(I,U){if(this._options.e4x&&I==="<"&&this._allow_regexp_or_xml(U)){var F="",L=this.__patterns.xml.read_match();if(L){for(var v=L[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),j=v.indexOf("{")===0,K=0;L;){var J=!!L[1],ee=L[2],ve=!!L[L.length-1]||ee.slice(0,8)==="![CDATA[";if(!ve&&(ee===v||j&&ee.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(J?--K:++K),F+=L[0],K<=0)break;L=this.__patterns.xml.read_match()}return L||(F+=this._input.match(/[\s\S]*/g)[0]),F=F.replace(c.allLineBreaks,`
`),this._create_token(h.STRING,F)}}return null};function P(I){for(var U="",F=0,L=new p(I),v=null;L.hasNext();)if(v=L.match(/([\s]|[^\\]|\\\\)+/g),v&&(U+=v[0]),L.peek()==="\\"){if(L.next(),L.peek()==="x")v=L.match(/x([0-9A-Fa-f]{2})/g);else if(L.peek()==="u")v=L.match(/u([0-9A-Fa-f]{4})/g);else{U+="\\",L.hasNext()&&(U+=L.next());continue}if(!v)return I;if(F=parseInt(v[1],16),F>126&&F<=255&&v[0].indexOf("x")===0)return I;if(F>=0&&F<32){U+="\\"+v[0];continue}else F===34||F===39||F===92?U+="\\"+String.fromCharCode(F):U+=String.fromCharCode(F)}return U}b.prototype._read_string_recursive=function(I,U,F){var L,v;I==="'"?v=this.__patterns.single_quote:I==='"'?v=this.__patterns.double_quote:I==="`"?v=this.__patterns.template_text:I==="}"&&(v=this.__patterns.template_expression);for(var j=v.read(),K="";this._input.hasNext();){if(K=this._input.next(),K===I||!U&&c.newline.test(K)){this._input.back();break}else K==="\\"&&this._input.hasNext()?(L=this._input.peek(),L==="x"||L==="u"?this.has_char_escapes=!0:L==="\r"&&this._input.peek(1)===`
`&&this._input.next(),K+=this._input.next()):F&&(F==="${"&&K==="$"&&this._input.peek()==="{"&&(K+=this._input.next()),F===K&&(I==="`"?K+=this._read_string_recursive("}",U,"`"):K+=this._read_string_recursive("`",U,"${"),this._input.hasNext()&&(K+=this._input.next())));K+=v.read(),j+=K}return j},k.exports.Tokenizer=b,k.exports.TOKEN=h,k.exports.positionable_operators=S.slice(),k.exports.line_starters=_.slice()},function(k){var R=RegExp.prototype.hasOwnProperty("sticky");function g(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position=0&&p=0&&f=p.length&&this.__input.substring(f-p.length,f).toLowerCase()===p},k.exports.InputScanner=g},function(k,R,g){var p=g(8).InputScanner,f=g(3).Token,d=g(10).TokenStream,o=g(11).WhitespacePattern,c={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(a,l){this._input=new p(a),this._options=l||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new d,this._reset();for(var a,l=new f(c.START,""),h=null,O=[],w=new d;l.type!==c.EOF;){for(a=this._get_next_token(l,h);this._is_comment(a);)w.add(a),a=this._get_next_token(l,h);w.isEmpty()||(a.comments_before=w,w=new d),a.parent=h,this._is_opening(a)?(O.push(h),h=a):h&&this._is_closing(a,h)&&(a.opened=h,h.closed=a,h=O.pop(),a.parent=h),a.previous=l,l.next=a,this.__tokens.add(a),l=a}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(a,l){this._readWhitespace();var h=this._input.read(/.+/g);return h?this._create_token(c.RAW,h):this._create_token(c.EOF,"")},s.prototype._is_comment=function(a){return!1},s.prototype._is_opening=function(a){return!1},s.prototype._is_closing=function(a,l){return!1},s.prototype._create_token=function(a,l){var h=new f(a,l,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return h},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},k.exports.Tokenizer=s,k.exports.TOKEN=c},function(k){function R(g){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=g}R.prototype.restart=function(){this.__position=0},R.prototype.isEmpty=function(){return this.__tokens_length===0},R.prototype.hasNext=function(){return this.__position=0&&g/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}d.prototype=new p,d.prototype._create=function(){return new d(this._input,this)},d.prototype._update=function(){this.__set_templated_pattern()},d.prototype.disable=function(o){var c=this._create();return c._disabled[o]=!0,c._update(),c},d.prototype.read_options=function(o){var c=this._create();for(var s in f)c._disabled[s]=o.templating.indexOf(s)===-1;return c._update(),c},d.prototype.exclude=function(o){var c=this._create();return c._excluded[o]=!0,c._update(),c},d.prototype.read=function(){var o="";this._match_pattern?o=this._input.read(this._starting_pattern):o=this._input.read(this._starting_pattern,this.__template_pattern);for(var c=this._read_template();c;)this._match_pattern?c+=this._input.read(this._match_pattern):c+=this._input.readUntil(this.__template_pattern),o+=c,c=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},d.prototype.__set_templated_pattern=function(){var o=[];this._disabled.php||o.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||o.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||o.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(o.push(this.__patterns.django._starting_pattern.source),o.push(this.__patterns.django_value._starting_pattern.source),o.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||o.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&o.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+o.join("|")+")")},d.prototype._read_template=function(){var o="",c=this._input.peek();if(c==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(o=o||this.__patterns.erb.read())}else c==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(o=o||this.__patterns.handlebars_comment.read(),o=o||this.__patterns.handlebars_unescaped.read(),o=o||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(o=o||this.__patterns.django_value.read()),this._excluded.django||(o=o||this.__patterns.django_comment.read(),o=o||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(o=o||this.__patterns.smarty_comment.read(),o=o||this.__patterns.smarty_literal.read(),o=o||this.__patterns.smarty.read()));return o},k.exports.TemplatablePattern=d}],M={};function W(k){var R=M[k];if(R!==void 0)return R.exports;var g=M[k]={exports:{}};return N[k](g,g.exports,W),g.exports}var B=W(0);D=B})();var z=D;!(ne=[],V=function(){return{js_beautify:z}}.apply(Ve,ne),V!==void 0&&(at.exports=V))})()},"7Cbv":function(at,Ve,te){"use strict";var ne=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),V=new Uint8Array(16);function D(){if(!ne)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ne(V)}var z=/^(?:[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 N(f){return typeof f=="string"&&z.test(f)}for(var M=N,W=[],B=0;B<256;++B)W.push((B+256).toString(16).substr(1));function k(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=(W[f[d+0]]+W[f[d+1]]+W[f[d+2]]+W[f[d+3]]+"-"+W[f[d+4]]+W[f[d+5]]+"-"+W[f[d+6]]+W[f[d+7]]+"-"+W[f[d+8]]+W[f[d+9]]+"-"+W[f[d+10]]+W[f[d+11]]+W[f[d+12]]+W[f[d+13]]+W[f[d+14]]+W[f[d+15]]).toLowerCase();if(!M(o))throw TypeError("Stringified UUID is invalid");return o}var R=k;function g(f,d,o){f=f||{};var c=f.random||(f.rng||D)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,d){o=o||0;for(var s=0;s<16;++s)d[o+s]=c[s];return d}return R(c)}var p=Ve.a=g},"7ahc":function(at,Ve,te){"use strict";te.d(Ve,"a",function(){return O});var ne=te("k1fw"),V=te("0Owb"),D=te("+L6B"),z=te("2/Rp"),N=te("y8nQ"),M=te("Vl3Y"),W=te("tJVT"),B=te("OaEy"),k=te("2fM7"),R=te("cDcd"),g=te.n(R),p=te("VrN/"),f=te.n(p),d=te("p77/"),o=te.n(d),c=te("c5Ni"),s=te.n(c),a=k.a.Option,l={labelCol:{span:4},wrapperCol:{span:20}},h={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"]};Ve.b=function(w){var x=w.callback,A=w.onCancel,S=Object(R.useState)("python"),T=Object(W.a)(S,2),E=T[0],_=T[1];function u(m){_(h[m][1])}function y(m){x(m)}return g.a.createElement(M.a,Object(V.a)({},l,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:y}),g.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},g.a.createElement(k.a,{onChange:u},Object.keys(h).map(function(m){return g.a.createElement(a,{key:m,value:m},h[m][0])}))),g.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},g.a.createElement(O,{mode:E})),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(z.a,{type:"ghost",onClick:A},"\u53D6\u6D88")))};function O(w){var x=w.value,A=w.onChange,S=w.mode,T=w.options,E=T===void 0?{}:T,_=Object(R.useRef)(),u=Object(R.useState)(),y=Object(W.a)(u,2),m=y[0],b=y[1];return Object(R.useEffect)(function(){if(m){function P(I){var U=I.getValue();A&&A(U)}return m.on("change",P),function(){m.off("change",P)}}},[m,A]),Object(R.useEffect)(function(){m&&m.setOption("mode",S)},[m,S]),Object(R.useEffect)(function(){m&&((x!==m.getValue()||x==="")&&setTimeout(function(){m.setValue(x||" ")},300))},[m,x]),Object(R.useEffect)(function(){if(_.current&&!m){var P=f.a.fromTextArea(_.current,Object(ne.a)({mode:S,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},E));b(P)}},[_.current,m]),g.a.createElement("div",{className:"my-codemirror-container"},g.a.createElement("textarea",{ref:_}))}},"8EBN":function(at,Ve,te){(function(ne){ne(te("VrN/"))})(function(ne){"use strict";ne.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(W+1,z.length);if(B)return ne.findModeByExtension(B)},ne.findModeByName=function(z){z=z.toLowerCase();for(var N=0;N=ae.length?he.slice(ae.length):he}).join(`
`)}var d=[],o=[""],c=new g.a.Renderer,s=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function a(){d.length=0,o=[""]}var l={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function h(me,ce,pe,ae){if(ce>=me.length||me[ce].level<=pe)return ce;var he=me[ce];ae.push("- "+he.text+""),ce++;var $=[];return ce=h(me,ce,he.level,$),$.length>0&&(ae.push("
"),$.forEach(function(ie){ae.push(ie)}),ae.push("
")),ae.push(" "),ce=h(me,ce,pe,ae),ce}function O(){return h(d,0,0,o),o.push("
"),o.join("")}var w={heading:function(ce){var pe=s.exec(ce);if(pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},fences:function(ce){var pe=this.rules.block.fences.exec(ce);if(pe){var ae=pe[0],he=f(ae,pe[3]||""),$=pe[2]?pe[2].trim():pe[2];if(["latex","katex","math"].indexOf($)>=0){var ie=S(),q=he;he=ie,T[ie]={type:"block",expression:q}}return{type:"code",raw:ae,lang:$,text:he}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,A=0,S=function(){return"__special_katext_id_".concat(A++,"__")},T={};function E(){return T}function _(){A=0,T={}}function u(me){return me=me.replace(x,function(ce,pe){var ae=S();return T[ae]={type:"inline",expression:pe},ae}),me}var y=c.listitem;c.listitem=function(me){return y(u(me))};var m=c.paragraph;c.paragraph=function(me){return m(u(me))};var b=c.tablecell;c.tablecell=function(me,ce){return b(u(me),ce)},c.code=function(me,ce,pe){var ae=(ce||"").match(/\S*/)[0];return ae?["latex","katex","math"].indexOf(ae)>=0?"".concat(me,"
"):'
').concat(pe?me:Object(p.escape)(me,!0),`
`):''+(pe?me:Object(p.escape)(me,!0))+"
"},c.heading=function(me,ce,pe){var ae=this.options.headerPrefix+pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return d.push({anchor:ae,level:ce,text:me}),"'+me+""},g.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),g.a.use({tokenizer:w,renderer:c});var P=g.a,I=te("SJMd"),U=te("ulZh"),F=te.n(U),L=te("m3rI"),v=te("Oy/b"),j=te("p5ED"),K=te("8hTe"),J=te.n(K),ee=/]*>/g;function ve(me){var ce=document.createElement("div");return ce.innerHTML=me,ce.childNodes.length===0?"":ce.childNodes[0].nodeValue}var de=Ve.a=function(me){var ce=me.value,pe=ce===void 0?"":ce,ae=me.edit,he=ae===void 0?!1:ae,$=me.className,ie=me.showTextOnly,q=me.showLines,Ee=me.replaces,Ae=me.zoomImg,ye=me.hasMask,we=me.style,Re=we===void 0?{}:we,ke=me.stylesPrev,Ne=ke===void 0?{}:ke,Ie=String(pe),Le=Object(W.useRef)(),Ye=Object(W.useRef)(),Qe=Object(W.useState)(""),Xe=Object(M.a)(Qe,2),We=Xe[0],Je=Xe[1],je=Object(W.useState)("office"),He=Object(M.a)(je,2),Se=He[0],qe=He[1],Ke=Object(W.useMemo)(function(){try{var fe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Q=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Z=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ie=Ie.replace(fe,"("+L.a.API_SERVER+"/api/attachments/").replace(Q,'"'+L.a.API_SERVER+"/api/attachments/").replace(Z,'"'+L.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(Oe){}var re=P(Ie),oe=E();if(Ie.match(/\[TOC\]/)&&(re=re.replace("[TOC]
",O()),a()),re=re.replace(/(__special_katext_id_\d+__)/g,function(Oe,De){var $e=oe[De],tt=$e.type,nt=$e.expression;return Object(v.renderToString)(ve(nt)||"",{displayMode:tt==="block",throwOnError:!1,output:"html"})}),re=re.replace(/▁/g,"\u2581\u2581\u2581"),_(),ie){var ge=document.createElement("div");return ge.innerHTML=re,ge.innerText}return setTimeout(function(){return _e()},500),re},[Ie]),xe=Object(W.useRef)();l.WebkitLineClamp=q,q&&(Re=Object(N.a)(Object(N.a)({},Re),l));function Pe(fe){var Q=fe.target;if(Q.tagName.toUpperCase()==="IMG"){if(Ae){var Z=Q.getAttribute("src");Je(Z),qe("image")}}else if(Q.tagName.toUpperCase()==="A"){var re=Q.getAttribute("href");if(re.indexOf("office")>-1)fe.preventDefault(),Je(re),qe("office");else if(re.indexOf("application/pdf")>-1)fe.preventDefault(),Je(re),qe("pdf");else if(re.indexOf("text/html")>-1)fe.preventDefault(),Je(re),qe("html");else if(re.startsWith("#")){fe.preventDefault();var oe=document.getElementById(re.replace("#",""));oe&&oe.scrollIntoView(!0)}}}var _e=function(){var Q,Z=(Q=xe.current)===null||Q===void 0?void 0:Q.querySelectorAll("video");Z==null||Z.forEach(function(re){if(re.oncontextmenu=function(){return!1},re.src.indexOf(".m3u8")>-1&&!re.canPlayType("application/vnd.apple.mpegurl")){if(F.a.isSupported()){var oe=new F.a;oe.loadSource(re.src),oe.attachMedia(re)}}})};Object(W.useEffect)(function(){if(xe.current&&Ke&&(Ke.match(ee)&&window.PR.prettyPrint()),xe.current)return xe.current.addEventListener("click",Pe),function(){xe.current.removeEventListener("click",Pe),_(),a()}},[Ke,xe.current,Pe]);var le=function(Q){if(!he)return;Q.target.nodeName==="IMG"?(Le.current.style.display="flex",Le.current.style.width=Q.target.clientWidth+"px",Le.current.style.height=Q.target.clientHeight+"px",Le.current.style.top=Q.target.offsetTop+"px",Le.current.style.left=Q.target.offsetLeft+"px",Ye.current.src=Q.target.getAttribute("src")):Le.current.style.display="none"};return B.a.createElement("div",{style:{position:"relative"}},B.a.createElement("div",{ref:xe,style:Object(N.a)({},Re),className:"".concat($||""," markdown-body ").concat(J.a.mdBody),onMouseOver:le,dangerouslySetInnerHTML:{__html:Ke}}),B.a.createElement("div",{ref:Le,className:J.a.button},B.a.createElement(V.a,null,B.a.createElement(z.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),B.a.createElement(z.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),B.a.createElement("img",{ref:Ye,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),B.a.createElement(j.a,{close:!0,data:We,type:We!=null&&We.length?Se:"",style:Object(N.a)({},Ne),onClose:function(){return Je("")}}))}},"9VGf":function(at,Ve,te){"use strict";te.d(Ve,"a",function(){return D});var ne=te("cDcd"),V=te.n(ne);function D(z,N){var M=Object(ne.useRef)();Object(ne.useEffect)(function(){M.current=z}),Object(ne.useEffect)(function(){function W(){M.current()}if(N!==null){var B=setInterval(W,N);return function(){return clearInterval(B)}}},[N])}},BU3w:function(at,Ve,te){"use strict";te.d(Ve,"a",function(){return M});var ne=te("MNnm"),V="rc-util-key";function D(W){if(W.attachTo)return W.attachTo;var B=document.querySelector("head");return B||document.body}function z(W){var B,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ne.a)())return null;var R=document.createElement("style");if((B=k.csp)===null||B===void 0?void 0:B.nonce){var g;R.nonce=(g=k.csp)===null||g===void 0?void 0:g.nonce}R.innerHTML=W;var p=D(k),f=p.firstChild;return k.prepend&&p.prepend?p.prepend(R):k.prepend&&f?p.insertBefore(R,f):p.appendChild(R),R}var N=new Map;function M(W,B){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},R=D(k);if(!N.has(R)){var g=z("",k),p=g.parentNode;N.set(R,p),p.removeChild(g)}var f=Array.from(N.get(R).children).find(function(a){return a.tagName==="STYLE"&&a[V]===B});if(f){var d,o;if(((d=k.csp)===null||d===void 0?void 0:d.nonce)&&f.nonce!==((o=k.csp)===null||o===void 0?void 0:o.nonce)){var c;f.nonce=(c=k.csp)===null||c===void 0?void 0:c.nonce}return f.innerHTML!==W&&(f.innerHTML=W),f}var s=z(W,k);return s[V]=B,s}},Bd2K:function(at,Ve,te){(function(ne){ne(te("VrN/"),te("osHv"))})(function(ne){ne.defineOption("autoCloseTags",!1,function(k,R,g){if(g!=ne.Init&&g&&k.removeKeyMap("autoCloseTags"),!R)return;var p={name:"autoCloseTags"};(typeof R!="object"||R.whenClosing!==!1)&&(p["'/'"]=function(f){return M(f)}),(typeof R!="object"||R.whenOpening!==!1)&&(p["'>'"]=function(f){return z(f)}),k.addKeyMap(p)});var V=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],D=["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(k){if(k.getOption("disableInput"))return ne.Pass;for(var R=k.listSelections(),g=[],p=k.getOption("autoCloseTags"),f=0;fd.ch&&(l=l.slice(0,l.length-o.end+d.ch));var x=l.toLowerCase();if(!l||o.type=="string"&&(o.end!=d.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&a.close||o.string.indexOf("/")==d.ch-o.start-1||O&&W(O,x)>-1||B(k,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(s)||[],l,d,!0))return ne.Pass;var A=typeof p=="object"&&p.emptyTags;if(A&&W(A,l)>-1){g[f]={text:"/>",newPos:ne.Pos(d.line,d.ch+2)};continue}var S=w&&W(w,x)>-1;g[f]={indent:S,text:">"+(S?`
`:"")+""+l+">",newPos:S?ne.Pos(d.line+1,0):ne.Pos(d.line,d.ch+1)}}for(var T=typeof p=="object"&&p.dontIndentOnAutoClose,f=R.length-1;f>=0;f--){var E=g[f];k.replaceRange(E.text,R[f].head,R[f].anchor,"+insert");var _=k.listSelections().slice(0);_[f]={head:E.newPos,anchor:E.newPos},k.setSelections(_),!T&&E.indent&&(k.indentLine(E.newPos.line,null,!0),k.indentLine(E.newPos.line+1,null,!0))}}function N(k,R){for(var g=k.listSelections(),p=[],f=R?"/":"",d=k.getOption("autoCloseTags"),o=typeof d=="object"&&d.dontIndentOnSlash,c=0;c"&&(O+=">"),p[c]=O}if(k.replaceSelections(p),g=k.listSelections(),!o)for(var c=0;c=0&&R[s]==g;s--)++c;p=o.to;for(var s=1;s0){for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:"",R=[],g=0;g_e.length)&&(le=_e.length);for(var fe=0,Q=new Array(le);fe=_e.length?{done:!0}:{done:!1,value:_e[Q++]}}}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 fe=_e[Symbol.iterator](),fe.next.bind(fe)}function M(_e,le){return le={exports:{}},_e(le,le.exports),le.exports}var W=M(function(_e){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 fe(Q){_e.exports.defaults=Q}_e.exports={defaults:le(),getDefaults:le,changeDefaults:fe}}),B=W.defaults,k=W.getDefaults,R=W.changeDefaults,g=/[&<>"']/,p=/[&<>"']/g,f=/[<>"']|&(?!#?\w+;)/,d=/[<>"']|&(?!#?\w+;)/g,o={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(le){return o[le]};function s(_e,le){if(le){if(g.test(_e))return _e.replace(p,c)}else if(f.test(_e))return _e.replace(d,c);return _e}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(_e){return _e.replace(a,function(le,fe){return fe=fe.toLowerCase(),fe==="colon"?":":fe.charAt(0)==="#"?fe.charAt(1)==="x"?String.fromCharCode(parseInt(fe.substring(2),16)):String.fromCharCode(+fe.substring(1)):""})}var h=/(^|[^\[])\^/g;function O(_e,le){_e=_e.source||_e,le=le||"";var fe={replace:function(Z,re){return re=re.source||re,re=re.replace(h,"$1"),_e=_e.replace(Z,re),fe},getRegex:function(){return new RegExp(_e,le)}};return fe}var w=/[^\w:]/g,x=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function A(_e,le,fe){if(_e){var Q;try{Q=decodeURIComponent(l(fe)).replace(w,"").toLowerCase()}catch(Z){return null}if(Q.indexOf("javascript:")===0||Q.indexOf("vbscript:")===0||Q.indexOf("data:")===0)return null}le&&!x.test(fe)&&(fe=u(le,fe));try{fe=encodeURI(fe).replace(/%25/g,"%")}catch(Z){return null}return fe}var S={},T=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(_e,le){S[" "+_e]||(T.test(_e)?S[" "+_e]=_e+"/":S[" "+_e]=P(_e,"/",!0)),_e=S[" "+_e];var fe=_e.indexOf(":")===-1;return le.substring(0,2)==="//"?fe?le:_e.replace(E,"$1")+le:le.charAt(0)==="/"?fe?le:_e.replace(_,"$1")+le:_e+le}var y={exec:function(){}};function m(_e){for(var le=1,fe,Q;le=0&&ge[De]==="\\";)Oe=!Oe;return Oe?"|":" |"}),Q=fe.split(/ \|/),Z=0;if(Q.length>le)Q.splice(le);else for(;Q.length=Q.length?Z.slice(Q.length):Z}).join(`
`)}var de=function(){function _e(fe){this.options=fe||L}var le=_e.prototype;return le.space=function(Q){var Z=this.rules.block.newline.exec(Q);if(Z)return Z[0].length>1?{type:"space",raw:Z[0]}:{raw:`
`}},le.code=function(Q,Z){var re=this.rules.block.code.exec(Q);if(re){var oe=Z[Z.length-1];if(oe&&oe.type==="paragraph")return{raw:re[0],text:re[0].trimRight()};var ge=re[0].replace(/^ {4}/gm,"");return{type:"code",raw:re[0],codeBlockStyle:"indented",text:this.options.pedantic?ge:v(ge,`
`)}}},le.fences=function(Q){var Z=this.rules.block.fences.exec(Q);if(Z){var re=Z[0],oe=ve(re,Z[3]||"");return{type:"code",raw:re,lang:Z[2]?Z[2].trim():Z[2],text:oe}}},le.heading=function(Q){var Z=this.rules.block.heading.exec(Q);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},le.nptable=function(Q){var Z=this.rules.block.nptable.exec(Q);if(Z){var re={type:"table",header:j(Z[1].replace(/^ *| *\| *$/g,"")),align:Z[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Z[3]?Z[3].replace(/\n$/,"").split(`
`):[],raw:Z[0]};if(re.header.length===re.align.length){var oe=re.align.length,ge;for(ge=0;ge ?/gm,"");return{type:"blockquote",raw:Z[0],text:re}}},le.list=function(Q){var Z=this.rules.block.list.exec(Q);if(Z){for(var re=Z[0],oe=Z[2],ge=oe.length>1,Oe=oe[oe.length-1]===")",De={type:"list",raw:re,ordered:ge,start:ge?+oe.slice(0,-1):"",loose:!1,items:[]},$e=Z[0].match(this.rules.block.item),tt=!1,nt,Et,ct,st,Ot,Tt,Bt,Mt=$e.length,yt=0;yt1||this.options.smartLists&&ct!==oe)&&(st=$e.slice(yt+1).join(`
`),De.raw=De.raw.substring(0,De.raw.length-st.length),yt=Mt-1)),Ot=tt||/\n\n(?!\s*$)/.test(nt),yt!==Mt-1&&(tt=nt.charAt(nt.length-1)===`
`,Ot||(Ot=tt)),Ot&&(De.loose=!0),Tt=/^\[[ xX]\] /.test(nt),Bt=void 0,Tt&&(Bt=nt[1]!==" ",nt=nt.replace(/^\[[ xX]\] +/,"")),De.items.push({type:"list_item",raw:re,task:Tt,checked:Bt,loose:Ot,text:nt});return De}},le.html=function(Q){var Z=this.rules.block.html.exec(Q);if(Z)return{type:this.options.sanitize?"paragraph":"html",raw:Z[0],pre:!this.options.sanitizer&&(Z[1]==="pre"||Z[1]==="script"||Z[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Z[0]):K(Z[0]):Z[0]}},le.def=function(Q){var Z=this.rules.block.def.exec(Q);if(Z){Z[3]&&(Z[3]=Z[3].substring(1,Z[3].length-1));var re=Z[1].toLowerCase().replace(/\s+/g," ");return{tag:re,raw:Z[0],href:Z[2],title:Z[3]}}},le.table=function(Q){var Z=this.rules.block.table.exec(Q);if(Z){var re={type:"table",header:j(Z[1].replace(/^ *| *\| *$/g,"")),align:Z[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Z[3]?Z[3].replace(/\n$/,"").split(`
`):[]};if(re.header.length===re.align.length){re.raw=Z[0];var oe=re.align.length,ge;for(ge=0;ge/i.test(oe[0])&&(Z=!1),!re&&/^<(pre|code|kbd|script)(\s|>)/i.test(oe[0])?re=!0:re&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(oe[0])&&(re=!1),{type:this.options.sanitize?"text":"html",raw:oe[0],inLink:Z,inRawBlock:re,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(oe[0]):K(oe[0]):oe[0]}},le.link=function(Q){var Z=this.rules.inline.link.exec(Q);if(Z){var re=J(Z[2],"()");if(re>-1){var oe=Z[0].indexOf("!")===0?5:4,ge=oe+Z[1].length+re;Z[2]=Z[2].substring(0,re),Z[0]=Z[0].substring(0,ge).trim(),Z[3]=""}var Oe=Z[2],De="";if(this.options.pedantic){var $e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Oe);$e?(Oe=$e[1],De=$e[3]):De=""}else De=Z[3]?Z[3].slice(1,-1):"";Oe=Oe.trim().replace(/^<([\s\S]*)>$/,"$1");var tt=ee(Z,{href:Oe&&Oe.replace(this.rules.inline._escapes,"$1"),title:De&&De.replace(this.rules.inline._escapes,"$1")},Z[0]);return tt}},le.reflink=function(Q,Z){var re;if((re=this.rules.inline.reflink.exec(Q))||(re=this.rules.inline.nolink.exec(Q))){var oe=(re[2]||re[1]).replace(/\s+/g," ");if(oe=Z[oe.toLowerCase()],!oe||!oe.href){var ge=re[0].charAt(0);return{type:"text",raw:ge,text:ge}}var Oe=ee(re,oe,re[0]);return Oe}},le.strong=function(Q,Z,re){re===void 0&&(re="");var oe=this.rules.inline.strong.start.exec(Q);if(oe&&(!oe[1]||oe[1]&&(re===""||this.rules.inline.punctuation.exec(re)))){Z=Z.slice(-1*Q.length);var ge=oe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ge.lastIndex=0;for(var Oe;(oe=ge.exec(Z))!=null;)if(Oe=this.rules.inline.strong.middle.exec(Z.slice(0,oe.index+3)),Oe)return{type:"strong",raw:Q.slice(0,Oe[0].length),text:Q.slice(2,Oe[0].length-2)}}},le.em=function(Q,Z,re){re===void 0&&(re="");var oe=this.rules.inline.em.start.exec(Q);if(oe&&(!oe[1]||oe[1]&&(re===""||this.rules.inline.punctuation.exec(re)))){Z=Z.slice(-1*Q.length);var ge=oe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ge.lastIndex=0;for(var Oe;(oe=ge.exec(Z))!=null;)if(Oe=this.rules.inline.em.middle.exec(Z.slice(0,oe.index+2)),Oe)return{type:"em",raw:Q.slice(0,Oe[0].length),text:Q.slice(1,Oe[0].length-1)}}},le.codespan=function(Q){var Z=this.rules.inline.code.exec(Q);if(Z){var re=Z[2].replace(/\n/g," "),oe=/[^ ]/.test(re),ge=re.startsWith(" ")&&re.endsWith(" ");return oe&&ge&&(re=re.substring(1,re.length-1)),re=K(re,!0),{type:"codespan",raw:Z[0],text:re}}},le.br=function(Q){var Z=this.rules.inline.br.exec(Q);if(Z)return{type:"br",raw:Z[0]}},le.del=function(Q){var Z=this.rules.inline.del.exec(Q);if(Z)return{type:"del",raw:Z[0],text:Z[1]}},le.autolink=function(Q,Z){var re=this.rules.inline.autolink.exec(Q);if(re){var oe,ge;return re[2]==="@"?(oe=K(this.options.mangle?Z(re[1]):re[1]),ge="mailto:"+oe):(oe=K(re[1]),ge=oe),{type:"link",raw:re[0],text:oe,href:ge,tokens:[{type:"text",raw:oe,text:oe}]}}},le.url=function(Q,Z){var re;if(re=this.rules.inline.url.exec(Q)){var oe,ge;if(re[2]==="@")oe=K(this.options.mangle?Z(re[0]):re[0]),ge="mailto:"+oe;else{var Oe;do Oe=re[0],re[0]=this.rules.inline._backpedal.exec(re[0])[0];while(Oe!==re[0]);oe=K(re[0]),re[1]==="www."?ge="http://"+oe:ge=oe}return{type:"link",raw:re[0],text:oe,href:ge,tokens:[{type:"text",raw:oe,text:oe}]}}},le.inlineText=function(Q,Z,re){var oe=this.rules.inline.text.exec(Q);if(oe){var ge;return Z?ge=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(oe[0]):K(oe[0]):oe[0]:ge=K(this.options.smartypants?re(oe[0]):oe[0]),{type:"text",raw:oe[0],text:ge}}},_e}(),me=F.noopTest,ce=F.edit,pe=F.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:me,table:me,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=ce(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=ce(ae.item,"gm").replace(/bull/g,ae.bullet).getRegex(),ae.list=ce(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=ce(ae.html,"i").replace("comment",ae._comment).replace("tag",ae._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ae.paragraph=ce(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=ce(ae.blockquote).replace("paragraph",ae.paragraph).getRegex(),ae.normal=pe({},ae),ae.gfm=pe({},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=ce(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=ce(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=pe({},ae.normal,{html:ce(`^ *(?: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:me,paragraph:ce(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 he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:me,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:me,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=ce(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=ce(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=ce(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=ce(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=ce(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=ce(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=ce(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=ce(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=ce(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=ce(he._blockSkip,"g").getRegex(),he.overlapSkip=ce(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=ce(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=ce(he.tag).replace("comment",ae._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=ce(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=ce(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=ce(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=pe({},he),he.pedantic=pe({},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:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=pe({},he.normal,{escape:ce(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&&(Q="x"+Q.toString(16)),le+=""+Q+";";return le}var we=function(){function _e(fe){this.tokens=[],this.tokens.links=Object.create(null),this.options=fe||ie,this.options.tokenizer=this.options.tokenizer||new de,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Q={block:q.normal,inline:Ee.normal};this.options.pedantic?(Q.block=q.pedantic,Q.inline=Ee.pedantic):this.options.gfm&&(Q.block=q.gfm,this.options.breaks?Q.inline=Ee.breaks:Q.inline=Ee.gfm),this.tokenizer.rules=Q}_e.lex=function(Q,Z){var re=new _e(Z);return re.lex(Q)};var le=_e.prototype;return le.lex=function(Q){return Q=Q.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Q,this.tokens,!0),this.inline(this.tokens),this.tokens},le.blockTokens=function(Q,Z,re){Z===void 0&&(Z=[]),re===void 0&&(re=!0),Q=Q.replace(/^ +$/gm,"");for(var oe,ge,Oe,De;Q;){if(oe=this.tokenizer.space(Q)){Q=Q.substring(oe.raw.length),oe.type&&Z.push(oe);continue}if(oe=this.tokenizer.code(Q,Z)){Q=Q.substring(oe.raw.length),oe.type?Z.push(oe):(De=Z[Z.length-1],De.raw+=`
`+oe.raw,De.text+=`
`+oe.text);continue}if(oe=this.tokenizer.fences(Q)){Q=Q.substring(oe.raw.length),Z.push(oe);continue}if(oe=this.tokenizer.heading(Q)){Q=Q.substring(oe.raw.length),Z.push(oe);continue}if(oe=this.tokenizer.nptable(Q)){Q=Q.substring(oe.raw.length),Z.push(oe);continue}if(oe=this.tokenizer.hr(Q)){Q=Q.substring(oe.raw.length),Z.push(oe);continue}if(oe=this.tokenizer.blockquote(Q)){Q=Q.substring(oe.raw.length),oe.tokens=this.blockTokens(oe.text,[],re),Z.push(oe);continue}if(oe=this.tokenizer.list(Q)){for(Q=Q.substring(oe.raw.length),Oe=oe.items.length,ge=0;ge0)for(;($e=this.tokenizer.rules.inline.reflinkSearch.exec(De))!=null;)tt.includes($e[0].slice($e[0].lastIndexOf("[")+1,-1))&&(De=De.slice(0,$e.index)+"["+"a".repeat($e[0].length-2)+"]"+De.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;($e=this.tokenizer.rules.inline.blockSkip.exec(De))!=null;)De=De.slice(0,$e.index)+"["+"a".repeat($e[0].length-2)+"]"+De.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Q;){if(Oe=this.tokenizer.escape(Q)){Q=Q.substring(Oe.raw.length),Z.push(Oe);continue}if(Oe=this.tokenizer.tag(Q,re,oe)){Q=Q.substring(Oe.raw.length),re=Oe.inLink,oe=Oe.inRawBlock,Z.push(Oe);continue}if(Oe=this.tokenizer.link(Q)){Q=Q.substring(Oe.raw.length),Oe.type==="link"&&(Oe.tokens=this.inlineTokens(Oe.text,[],!0,oe)),Z.push(Oe);continue}if(Oe=this.tokenizer.reflink(Q,this.tokens.links)){Q=Q.substring(Oe.raw.length),Oe.type==="link"&&(Oe.tokens=this.inlineTokens(Oe.text,[],!0,oe)),Z.push(Oe);continue}if(Oe=this.tokenizer.strong(Q,De,ge)){Q=Q.substring(Oe.raw.length),Oe.tokens=this.inlineTokens(Oe.text,[],re,oe),Z.push(Oe);continue}if(Oe=this.tokenizer.em(Q,De,ge)){Q=Q.substring(Oe.raw.length),Oe.tokens=this.inlineTokens(Oe.text,[],re,oe),Z.push(Oe);continue}if(Oe=this.tokenizer.codespan(Q)){Q=Q.substring(Oe.raw.length),Z.push(Oe);continue}if(Oe=this.tokenizer.br(Q)){Q=Q.substring(Oe.raw.length),Z.push(Oe);continue}if(Oe=this.tokenizer.del(Q)){Q=Q.substring(Oe.raw.length),Oe.tokens=this.inlineTokens(Oe.text,[],re,oe),Z.push(Oe);continue}if(Oe=this.tokenizer.autolink(Q,ye)){Q=Q.substring(Oe.raw.length),Z.push(Oe);continue}if(!re&&(Oe=this.tokenizer.url(Q,ye))){Q=Q.substring(Oe.raw.length),Z.push(Oe);continue}if(Oe=this.tokenizer.inlineText(Q,oe,Ae)){Q=Q.substring(Oe.raw.length),ge=Oe.raw.slice(-1),Z.push(Oe);continue}if(Q){var nt="Infinite loop on byte: "+Q.charCodeAt(0);if(this.options.silent){console.error(nt);break}else throw new Error(nt)}}return Z},V(_e,null,[{key:"rules",get:function(){return{block:q,inline:Ee}}}]),_e}(),Re=W.defaults,ke=F.cleanUrl,Ne=F.escape,Ie=function(){function _e(fe){this.options=fe||Re}var le=_e.prototype;return le.code=function(Q,Z,re){var oe=(Z||"").match(/\S*/)[0];if(this.options.highlight){var ge=this.options.highlight(Q,oe);ge!=null&&ge!==Q&&(re=!0,Q=ge)}return oe?''+(re?Q:Ne(Q,!0))+`
`:""+(re?Q:Ne(Q,!0))+`
`},le.blockquote=function(Q){return`
`+Q+`
`},le.html=function(Q){return Q},le.heading=function(Q,Z,re,oe){return this.options.headerIds?"
`:""+Q+"
`},le.hr=function(){return this.options.xhtml?`
`:`
`},le.list=function(Q,Z,re){var oe=Z?"ol":"ul",ge=Z&&re!==1?' start="'+re+'"':"";return"<"+oe+ge+`>
`+Q+""+oe+`>
`},le.listitem=function(Q){return""+Q+`
`},le.checkbox=function(Q){return" "},le.paragraph=function(Q){return""+Q+`
`},le.table=function(Q,Z){return Z&&(Z=""+Z+""),`
`},le.tablerow=function(Q){return`
`+Q+`
`},le.tablecell=function(Q,Z){var re=Z.header?"th":"td",oe=Z.align?"<"+re+' align="'+Z.align+'">':"<"+re+">";return oe+Q+""+re+`>
`},le.strong=function(Q){return""+Q+""},le.em=function(Q){return""+Q+""},le.codespan=function(Q){return""+Q+""},le.br=function(){return this.options.xhtml?"
":"
"},le.del=function(Q){return""+Q+""},le.link=function(Q,Z,re){if(Q=ke(this.options.sanitize,this.options.baseUrl,Q),Q===null)return re;var oe='"+re+"",oe},le.image=function(Q,Z,re){if(Q=ke(this.options.sanitize,this.options.baseUrl,Q),Q===null)return re;var oe='
":">",oe},le.text=function(Q){return Q},_e}(),Le=function(){function _e(){}var le=_e.prototype;return le.strong=function(Q){return Q},le.em=function(Q){return Q},le.codespan=function(Q){return Q},le.del=function(Q){return Q},le.html=function(Q){return Q},le.text=function(Q){return Q},le.link=function(Q,Z,re){return""+re},le.image=function(Q,Z,re){return""+re},le.br=function(){return""},_e}(),Ye=function(){function _e(){this.seen={}}var le=_e.prototype;return le.slug=function(Q){var Z=Q.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Z)){var re=Z;do this.seen[re]++,Z=re+"-"+this.seen[re];while(this.seen.hasOwnProperty(Z))}return this.seen[Z]=0,Z},_e}(),Qe=W.defaults,Xe=F.unescape,We=function(){function _e(fe){this.options=fe||Qe,this.options.renderer=this.options.renderer||new Ie,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Le,this.slugger=new Ye}_e.parse=function(Q,Z){var re=new _e(Z);return re.parse(Q)};var le=_e.prototype;return le.parse=function(Q,Z){Z===void 0&&(Z=!0);var re="",oe,ge,Oe,De,$e,tt,nt,Et,ct,st,Ot,Tt,Bt,Mt,yt,pn,bn,dt,mt=Q.length;for(oe=0;oe0&&yt.tokens[0].type==="text"?(yt.tokens[0].text=dt+" "+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=dt+" "+yt.tokens[0].tokens[0].text)):yt.tokens.unshift({type:"text",text:dt}):Mt+=dt),Mt+=this.parse(yt.tokens,Bt),ct+=this.renderer.listitem(Mt,bn,pn);re+=this.renderer.list(ct,Ot,Tt);continue}case"html":{re+=this.renderer.html(st.text);continue}case"paragraph":{re+=this.renderer.paragraph(this.parseInline(st.tokens));continue}case"text":{for(ct=st.tokens?this.parseInline(st.tokens):st.text;oe+1An error occurred:
"+He(Oe.message+"",!0)+"
";throw Oe}}xe.options=xe.setOptions=function(_e){return Je(xe.defaults,_e),qe(xe.defaults),xe},xe.getDefaults=Se,xe.defaults=Ke,xe.use=function(_e){var le=Je({},_e);if(_e.renderer&&function(){var Q=xe.defaults.renderer||new Ie,Z=function(ge){var Oe=Q[ge];Q[ge]=function(){for(var De=arguments.length,$e=new Array(De),tt=0;tt`,triples:"",explode:"[]{}"},D=ne.Pos;ne.defineOption("autoCloseBrackets",!1,function(o,c,s){s&&s!=ne.Init&&(o.removeKeyMap(N),o.state.closeBrackets=null),c&&(M(z(c,"pairs")),o.state.closeBrackets=c,o.addKeyMap(N))});function z(o,c){return c=="pairs"&&typeof o=="string"?o:typeof o=="object"&&o[c]!=null?o[c]:V[c]}var N={Backspace:k,Enter:R};function M(o){for(var c=0;c=0;l--){var O=a[l].head;o.replaceRange("",D(O.line,O.ch-1),D(O.line,O.ch+1),"+delete")}}function R(o){var c=B(o),s=c&&z(c,"explode");if(!s||o.getOption("disableInput"))return ne.Pass;for(var a=o.listSelections(),l=0;l0;return{anchor:new D(o.anchor.line,o.anchor.ch+(c?-1:1)),head:new D(o.head.line,o.head.ch+(c?1:-1))}}function p(o,c){var s=B(o);if(!s||o.getOption("disableInput"))return ne.Pass;var a=z(s,"pairs"),l=a.indexOf(c);if(l==-1)return ne.Pass;for(var h=z(s,"closeBefore"),O=z(s,"triples"),w=a.charAt(l+1)==c,x=o.listSelections(),A=l%2==0,S,T=0;T=0&&o.getRange(_,D(_.line,_.ch+3))==c+c+c?u="skipThree":u="skip";else if(w&&_.ch>1&&O.indexOf(c)>=0&&o.getRange(D(_.line,_.ch-2),_)==c+c){if(_.ch>2&&/\bstring/.test(o.getTokenTypeAt(D(_.line,_.ch-2))))return ne.Pass;u="addFour"}else if(w){var m=_.ch==0?" ":o.getRange(D(_.line,_.ch-1),_);if(!ne.isWordChar(y)&&m!=c&&!ne.isWordChar(m))u="both";else return ne.Pass}else if(A&&(y.length===0||/\s/.test(y)||h.indexOf(y)>-1))u="both";else return ne.Pass;if(!S)S=u;else if(S!=u)return ne.Pass}var b=l%2?a.charAt(l-1):c,P=l%2?c:a.charAt(l+1);o.operation(function(){if(S=="skip")o.execCommand("goCharRight");else if(S=="skipThree")for(var I=0;I<3;I++)o.execCommand("goCharRight");else if(S=="surround"){for(var U=o.getSelections(),I=0;I0&&(J.percent=J.loaded/J.total*100),F.onProgress(J)});var v=new FormData;F.data&&Object.keys(F.data).forEach(function(K){var J=F.data[K];if(Array.isArray(J)){J.forEach(function(ee){v.append(K+"[]",ee)});return}v.append(K,F.data[K])}),F.file instanceof Blob?v.append(F.filename,F.file,F.file.name):v.append(F.filename,F.file),L.onerror=function(J){F.onError(J)},L.onload=function(){return L.status<200||L.status>=300?F.onError(N(F,L),M(L)):F.onSuccess(M(L),L)},L.open(F.method,F.action,!0),F.withCredentials&&"withCredentials"in L&&(L.withCredentials=!0);var j=F.headers||{};return j["X-Requested-With"]!==null&&L.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(j).forEach(function(K){j[K]!==null&&L.setRequestHeader(K,j[K])}),L.send(v),{abort:function(){L.abort()}}}var B=+new Date,k=0;function R(){return"rc-upload-"+B+"-"+ ++k}function g(F,L){return F.indexOf(L,F.length-L.length)!==-1}var p=function(F,L){if(F&&L){var v=Array.isArray(L)?L:L.split(","),j=F.name||"",K=F.type||"",J=K.replace(/\/.*$/,"");return v.some(function(ee){var ve=ee.trim();return ve.charAt(0)==="."?g(j.toLowerCase(),ve.toLowerCase()):/\/\*$/.test(ve)?J===ve.replace(/\/.*$/,""):K===ve})}return!0};function f(F,L){var v=F.createReader(),j=[];function K(){v.readEntries(function(J){var ee=Array.prototype.slice.apply(J);j=j.concat(ee);var ve=!ee.length;ve?L(j):K()})}K()}var d=function(L,v,j){var K=function J(ee,ve){ve=ve||"",ee.isFile?ee.file(function(de){j(de)&&(ee.fullPath&&!de.webkitRelativePath&&(Object.defineProperties(de,{webkitRelativePath:{writable:!0}}),de.webkitRelativePath=ee.fullPath.replace(/^\//,""),Object.defineProperties(de,{webkitRelativePath:{writable:!1}})),v([de]))}):ee.isDirectory&&f(ee,function(de){de.forEach(function(me){J(me,""+ve+ee.name+"/")})})};L.forEach(function(J){K(J.webkitGetAsEntry())})},o=d,c=Object.assign||function(F){for(var L=1;L=0)continue;if(!Object.prototype.hasOwnProperty.call(F,j))continue;v[j]=F[j]}return v}function O(F,L){if(!(F instanceof L))throw new TypeError("Cannot call a class as a function")}function w(F,L){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:F}function x(F,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);F.prototype=Object.create(L&&L.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(F,L):F.__proto__=L)}var A=function(L){return Object.keys(L).reduce(function(v,j){return(j.substr(0,5)==="data-"||j.substr(0,5)==="aria-"||j==="role")&&(v[j]=L[j]),v},{})},S=function(F){x(L,F);function L(){var v,j,K,J;O(this,L);for(var ee=arguments.length,ve=Array(ee),de=0;de1&&arguments[1]!==void 0?arguments[1]:1,fe=Le.length,Q=0;Q1&&arguments[1]!==void 0?arguments[1]:!1;return Object(A.a)(v).map(function(K,J){if(!N.isValidElement(K)||!K.type)return null;var ee=K.type.isSelectOptGroup,ve=K.key,de=K.props,me=de.children,ce=Object(W.a)(de,["children"]);return j||!ee?S(K):Object(x.a)(Object(x.a)({key:"__RC_SELECT_GRP__".concat(ve===null?J:ve,"__"),label:ve},ce),{},{options:T(me)})}).filter(function(K){return K})}var E=te("2Qr1"),_=te("qNPg"),u=te("U8pU"),y=te("Kwbf"),m=te("WKfj");function b(v){var j=v.mode,K=v.options,J=v.children,ee=v.backfill,ve=v.allowClear,de=v.placeholder,me=v.getInputElement,ce=v.showSearch,pe=v.onSearch,ae=v.defaultOpen,he=v.autoFocus,$=v.labelInValue,ie=v.value,q=v.inputValue,Ee=v.optionLabelProp,Ae=j==="multiple"||j==="tags",ye=ce!==void 0?ce:Ae||j==="combobox",we=K||T(J);if(Object(y.a)(j!=="tags"||we.every(function(Ie){return!Ie.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),j==="tags"||j==="combobox"){var Re=we.some(function(Ie){return Ie.options?Ie.options.some(function(Le){return typeof("value"in Le?Le.value:Le.key)=="number"}):typeof("value"in Ie?Ie.value:Ie.key)=="number"});Object(y.a)(!Re,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(y.a)(j!=="combobox"||!Ee,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(y.a)(j==="combobox"||!ee,"`backfill` only works with `combobox` mode."),Object(y.a)(j==="combobox"||!me,"`getInputElement` only work with `combobox` mode."),Object(y.b)(j!=="combobox"||!me||!ve||!de,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pe&&!ye&&j!=="combobox"&&j!=="tags"&&Object(y.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(y.b)(!ae||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ie!=null){var ke=Object(m.d)(ie);Object(y.a)(!$||ke.every(function(Ie){return Object(u.a)(Ie)==="object"&&("key"in Ie||"value"in Ie)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(y.a)(!Ae||Array.isArray(ie),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var Ne=null;Object(A.a)(J).some(function(Ie){if(!N.isValidElement(Ie)||!Ie.type)return!1;var Le=Ie.type;if(Le.isSelectOption)return!1;if(Le.isSelectOptGroup){var Ye=Object(A.a)(Ie.props.children).every(function(Qe){return!N.isValidElement(Qe)||!Ie.type||Qe.type.isSelectOption?!0:(Ne=Qe.type,!1)});return!Ye}return Ne=Le,!0}),Ne&&Object(y.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ne.displayName||Ne.name||Ne,"`.")),Object(y.a)(q===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var P=b,I=Object(_.a)({prefixCls:"rc-select",components:{optionList:a},convertChildrenToData:T,flattenOptions:E.d,getLabeledValue:E.e,filterOptions:E.b,isValueDisabled:E.g,findValueOption:E.c,warningProps:P,fillOptionsWithMissingValue:E.a}),U=function(v){Object(D.a)(K,v);var j=Object(z.a)(K);function K(){var J;return Object(ne.a)(this,K),J=j.apply(this,arguments),J.selectRef=N.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(V.a)(K,[{key:"render",value:function(){return N.createElement(I,Object.assign({ref:this.selectRef},this.props))}}]),K}(N.Component);U.Option=h,U.OptGroup=w;var F=U,L=Ve.c=F},M8RZ:function(at,Ve,te){"use strict";te.d(Ve,"a",function(){return k});var ne=te("fWQN"),V=te("mtLc"),D=te("yKVA"),z=te("879j"),N=te("cDcd"),M=te.n(N),W=te("faye"),B=te.n(W),k=function(R){Object(D.a)(p,R);var g=Object(z.a)(p);function p(f){var d;Object(ne.a)(this,p),d=g.call(this,f);var o=window.document;return d.node=o.createElement("div"),o.body.appendChild(d.node),d}return Object(V.a)(p,[{key:"render",value:function(){var d=this.props.children;return Object(W.createPortal)(d,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),p}(M.a.Component)},Ot1p:function(at,Ve,te){"use strict";var ne=te("2qtc"),V=te("kLXV"),D=te("rAM+"),z=te("miYZ"),N=te("tsqr"),M=te("9og8"),W=te("tJVT"),B=te("jrin"),k=te("WmNS"),R=te.n(k),g=te("cDcd"),p=te.n(g),f=te("VrN/"),d=te.n(f),o=te("bdgK"),c=te("p77/"),s=te("Bd2K"),a=te("ELLl"),l=te("19Vz"),h=te("lZu9"),O=te("+NIl"),w=te("kSUc"),x=te("9Bee"),A=function(ge){var Oe=ge.value,De=Oe===void 0?"":Oe,$e=ge.className,tt=ge.showTextOnly,nt=ge.showLines,Et=ge.style,ct=Et===void 0?{}:Et,st=Object(g.useMemo)(function(){return""},[De]);return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{dangerouslySetInnerHTML:{__html:st}}))},S=te("0Owb"),T=te("dejd"),E=te("C+DQ"),_=te("1vsH"),u=te("m3rI"),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 m(ge){var Oe=ge.onActionCallback,De=ge.title,$e=ge.icon,tt=ge.actionName,nt=ge.className,Et=nt===void 0?"":nt,ct=ge.children;function st(){Oe(tt)}return p.a.createElement("a",{title:De,className:Et,onClick:st},p.a.createElement("i",{className:"md-iconfont ".concat($e)}),ct)}var b=function(ge){var Oe=ge.watch,De=ge.showNullButton,$e=ge.onActionCallback,tt=ge.fullScreen,nt=ge.insertTemp,Et=ge.hidetoolBar,ct=ge.uuid,st=ge.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(_.G)("_educoder_session_login"),"&_educoder_session=").concat(Object(_.G)("_educoder_session"),"&key=").concat(ct,"&api=").concat(encodeURIComponent(u.a.PROXY_SERVER)));var Ot=[].concat(y,[{title:"".concat(Oe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Oe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return p.a.createElement("ul",{className:"markdown-toolbar-container"},!Et&&Ot.map(function(Tt,Bt){return p.a.createElement("li",{key:Bt},Tt.actionName?p.a.createElement(m,Object(S.a)({},Tt,{onActionCallback:$e})):p.a.createElement("span",{className:"v-line"}))}),De?p.a.createElement("li",null,p.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$e},p.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,nt&&p.a.createElement("li",null,p.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(nt),onActionCallback:$e},p.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),p.a.createElement("li",{className:"btn-full-screen"},p.a.createElement(m,{icon:"".concat(tt?"icon-shrink":"icon-enlarge"),title:tt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$e})))},P=te("M8RZ"),I=te("+L6B"),U=te("2/Rp"),F=te("y8nQ"),L=te("Vl3Y"),v=te("5NDa"),j=te("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},J=function(ge){var Oe=ge.callback,De=ge.onCancel;function $e(tt){Oe(tt)}return p.a.createElement(L.a,Object(S.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$e}),p.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},p.a.createElement(j.a,null)),p.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},p.a.createElement(j.a,null)),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(U.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(U.a,{type:"ghost",onClick:De},"\u53D6\u6D88")))},ee=te("7ahc"),ve=te("HmJG"),de=te("BjJ7"),me=L.a.useForm,ce={width:280,marginRight:10},pe={labelCol:{span:5},wrapperCol:{span:19}},ae=function(ge){var Oe=ge.callback,De=ge.onCancel,$e=me(),tt=Object(W.a)($e,1),nt=tt[0];function Et(Ot){Oe(Ot)}function ct(Ot,Tt){if(Ot.status===-1){N.b.error(Ot.message);return}nt.setFieldsValue({src:"/api/attachments/".concat(Ot.id),type:Tt.type})}function st(Ot){var Tt=Ot.target.files[0];$(Tt,ct)}return p.a.createElement(L.a,Object(S.a)({form:nt},pe,{className:"upload-image-panel",onFinish:Et}),p.a.createElement(L.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},p.a.createElement("div",{className:"flex-container"},p.a.createElement(L.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},p.a.createElement(j.a,{style:ce})),p.a.createElement(he,{onFileChange:st}))),p.a.createElement(L.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},p.a.createElement(j.a,{style:{width:264}})),p.a.createElement(L.a.Item,{style:{textAlign:"right"}},p.a.createElement(U.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(U.a,{type:"ghost",onClick:De},"\u53D6\u6D88")))};function he(ge){var Oe=ge.onFileChange;return p.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",p.a.createElement("input",{type:"file",onChange:Oe}))}function $(ge,Oe){if(!ge)throw new String("\u6CA1\u6709\u6587\u4EF6");var De=new FormData;De.append("editormd-image-file",ge),De.append("file_param_name","editormd-image-file"),De.append("byxhr","true");var $e=new window.XMLHttpRequest;$e.withCredentials=!0,$e.addEventListener("load",function(tt){Oe(JSON.parse(tt.target.responseText),ge)},!1),$e.addEventListener("error",function(tt){console.error(tt)},!1),$e.open("POST","".concat(de.a,"/api/attachments.json")),$e.send(De)}var ie=te("giR+"),q=te("fyUT"),Ee=te("7Kak"),Ae=te("9yH6"),ye=Ae.a.Group,we={margin:"0 8px"},Re=function(ge){var Oe=ge.callback,De=ge.onCancel;function $e(tt){Oe(tt)}return p.a.createElement(L.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$e},p.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},p.a.createElement("span",{style:we},"\u5355\u5143\u683C\u6570\uFF1A"),p.a.createElement("span",{style:we},"\u884C\u6570"),p.a.createElement(L.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},p.a.createElement(q.a,null)),p.a.createElement("span",{style:we},"\u5217\u6570"),p.a.createElement(L.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},p.a.createElement(q.a,null))),p.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},p.a.createElement("span",{style:we},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),p.a.createElement(L.a.Item,{name:"align"},p.a.createElement(ye,null,p.a.createElement(Ae.a,{value:"default"},p.a.createElement("i",{className:"fa fa-align-justify"})),p.a.createElement(Ae.a,{value:"left"},p.a.createElement("i",{className:"fa fa-align-left"})),p.a.createElement(Ae.a,{value:"center"},p.a.createElement("i",{className:"fa fa-align-center"})),p.a.createElement(Ae.a,{value:"right"},p.a.createElement("i",{className:"fa fa-align-right"}))))),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(U.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(U.a,{type:"ghost",onClick:De},"\u53D6\u6D88")))},ke=te("ErOA"),Ne=te("7Cbv"),Ie="link",Le="upload-image",Ye="code-block",Qe="add-table",Xe="------------",We={default:Xe,left:":".concat(Xe),center:":".concat(Xe,":"),right:"".concat(Xe,":")},Je=te("9VGf"),je,He;function Se(){}var qe=0,Ke=1e4,xe="\u2581",Pe=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function _e(ge){return/^\d+$/.test(ge)?"".concat(ge,"px"):ge}var le=navigator.platform.toUpperCase().indexOf("MAC")>=0,fe=le?"Cmd":"Ctrl",Q=["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"],Z=(je={},Object(B.a)(je,fe+"-B","bold"),Object(B.a)(je,fe+"-I","italic"),je),re=(He={},Object(B.a)(He,Ie,"\u6DFB\u52A0\u94FE\u63A5"),Object(B.a)(He,Ye,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(B.a)(He,Le,"\u6DFB\u52A0\u6587\u4EF6"),Object(B.a)(He,Qe,"\u6DFB\u52A0\u8868\u683C"),He),oe=Ve.a=function(ge){var Oe=ge.defaultValue,De=Oe===void 0?"":Oe,$e=ge.onChange,tt=ge.width,nt=tt===void 0?"100%":tt,Et=ge.height,ct=Et===void 0?400:Et,st=ge.miniToolbar,Ot=st===void 0?!1:st,Tt=ge.isFocus,Bt=Tt===void 0?!1:Tt,Mt=ge.watch,yt=ge.insertTemp,pn=ge.mode,bn=pn===void 0?"markdown":pn,dt=ge.id,mt=dt===void 0?"markdown-editor-id":dt,xt=ge.showResizeBar,Dt=xt===void 0?!1:xt,Wt=ge.noStorage,qn=Wt===void 0?!1:Wt,Gr=ge.showNullButton,Nt=Gr===void 0?!1:Gr,rt=ge.hidetoolBar,Pn=rt===void 0?!1:rt,gr=ge.fullScreen,rn=gr===void 0?!1:gr,St=ge.onBlur,En=ge.onCMBeforeChange,Mn=ge.onFullScreen,vr=ge.className,Fe=vr===void 0?"":vr,ht=ge.disablePaste,zr=ht===void 0?!1:ht,_r=ge.placeholder,yr=_r===void 0?"":_r,er=ge.values,br=er===void 0?"":er,pt=Object(g.useState)(null),Ai=Object(W.a)(pt,2),Ue=Ai[0],Er=Ai[1],_n=Object(g.useState)(De),Vr=Object(W.a)(_n,2),tr=Vr[0],Tn=Vr[1],Xr=Object(g.useState)(Mt),Yr=Object(W.a)(Xr,2),xn=Yr[0],$r=Yr[1],Ri=Object(g.useState)(rn),Qr=Object(W.a)(Ri,2),wn=Qr[0],Li=Qr[1],aa=Object(g.useState)(""),Jr=Object(W.a)(aa,2),en=Jr[0],Kn=Jr[1],sa=Object(g.useState)(0),nr=Object(W.a)(sa,2),Sn=nr[0],Zr=nr[1],oa=Object(g.useState)(ct),Ci=Object(W.a)(oa,2),Ii=Ci[0],Tr=Ci[1],Di=Object(g.useState)(!1),ki=Object(W.a)(Di,2),la=ki[0],xr=ki[1],rr=Object(g.useRef)(Object(Ne.a)()),ir=Object(g.useRef)(!1),wr=Object(g.useRef)(),Nn=Object(g.useRef)(),Fn=Object(g.useRef)(),Un=Object(g.useRef)(),Sr=Object(g.useRef)(),Pi=function(){var it=Object(M.a)(R.a.mark(function ft(){var lt,vt;return R.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(ke.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:rr.current}});case 2:vt=Ct.sent,vt!=null&&(lt=vt.attachments)!==null&<!==void 0&<.length&&(console.log("cm:",Ue,Nn),vt.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(u.a.API_SERVER,"/api/attachments/").concat(bt.id,"?type=").concat(bt.content_type,")"))}));case 4:case"end":return Ct.stop()}},ft)}));return function(){return it.apply(this,arguments)}}();Object(g.useEffect)(function(){Tn(br),Ue==null||Ue.setValue(br)},[br]),Object(g.useEffect)(function(){Mn==null||Mn(wn)},[wn]),Object(g.useEffect)(function(){if(Nn.current){var it=d.a.fromTextArea(Nn.current,{mode:bn,lineNumbers:!Ot,lineWrapping:!0,value:De,autoCloseTags:!0,autoCloseBrackets:!0});Bt&&it.focus();function ft(lt,vt){if(zr){vt.preventDefault();return}var wt=vt.clipboardData;if(wt){var Ct=wt.types.toString(),bt=wt.items;if(Ct==="Files"||wt.types.indexOf("Files")>-1){if(vt.preventDefault(),bn=="stex")return;try{var Kt,an=bt[1];((Kt=bt[0])===null||Kt===void 0?void 0:Kt.kind)==="file"&&(an=bt[0]);var _t=an.getAsFile(),Bn=_t.name.split(".").pop();$(_t,function(At){if(At.id){var sn,Jt,yn;(_t==null||((sn=_t.type)===null||sn===void 0)?void 0:sn.indexOf("image"))>-1?it.replaceSelection(".concat(At.content_type,")")):(_t==null||((Jt=_t.type)===null||Jt===void 0)?void 0:Jt.indexOf("video"))>-1?it.replaceSelection('')):(_t==null||((yn=_t.type)===null||yn===void 0)?void 0:yn.indexOf("pdf"))>-1?it.replaceSelection('').concat(_t.name,"")):Q.includes(Bn)?it.replaceSelection('').concat(_t.name,"")):it.replaceSelection("[".concat(_t.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(At.id,"?type=").concat(At.content_type,")"))}else(At==null?void 0:At.status)===401&&(document.location.href="/user/login")})}catch(At){N.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return it.on("paste",ft),it.on("dragleave",function(lt,vt){Fn.current.classList.remove("mouse-hover-md")}),it.on("dragover",function(lt,vt){Fn.current.classList.add("mouse-hover-md")}),it.on("drop",function(lt,vt){Fn.current.classList.add("mouse-hover-md");var wt;if(wt=vt.dataTransfer.files,wt.length>0){vt.preventDefault(),vt.stopPropagation();for(var Ct=function(an){var _t=wt[an],Bn=_t.name.split(".").pop();$(_t,function(At){if(At.id){var sn,Jt,yn;(_t==null||((sn=_t.type)===null||sn===void 0)?void 0:sn.indexOf("image"))>-1?it.replaceSelection(".concat(At.content_type,")")):(_t==null||((Jt=_t.type)===null||Jt===void 0)?void 0:Jt.indexOf("video"))>-1?it.replaceSelection('')):(_t==null||((yn=_t.type)===null||yn===void 0)?void 0:yn.indexOf("pdf"))>-1?it.replaceSelection('').concat(_t.name,"")):Q.includes(Bn)?it.replaceSelection('').concat(_t.name,"")):it.replaceSelection("[".concat(_t.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(At.id,"?type=").concat(At.content_type,")"))}else(At==null?void 0:At.status)===401&&(document.location.href="/user/login")})},bt=0;bt0||bt.target.offsetWidth>0)&&(mn(),Ue.setSize("100%","100%"),Ue.refresh())}}catch(Kt){wt.e(Kt)}finally{wt.f()}});return lt.observe(Nn.current.parentElement),lt}if(Ue){var ft=it();return function(){ft.unobserve(Nn.current.parentElement)}}},[Ue,mn]),Object(g.useEffect)(function(){if(Ue){for(var it=[],ft=function(){var bt=vt[lt];wt=Object(W.a)(bt,2);var Kt=wt[0],an=wt[1],_t=Object(B.a)({},Kt,function(){Mi(an)});it.push(_t),Ue.addKeyMap(_t)},lt=0,vt=Object.entries(Z);lt0){var it=new Date().getTime(),ft=window.sessionStorage.getItem(mt);it>=Sn+Ke&&(!ft||ft!==tr)&&(window.sessionStorage.setItem(mt,tr),xr(!0))}},Ke),Object(g.useEffect)(function(){$r(Mt)},[Ue,Mt]),Object(g.useEffect)(function(){Ue&&(Bt&&Ue.focus())},[Ue,Bt]),Object(g.useEffect)(function(){if(xn&&Ue){var it=Ue.getScrollerElement();function ft(lt){var vt=lt.target;if(Sr.current){var wt=vt.scrollTop/vt.scrollHeight;Sr.current.scrollTop=Sr.current.scrollHeight*wt}}return it.addEventListener("scroll",ft),function(){it.removeEventListener("scroll",ft)}}},[Ue,xn]),Object(g.useEffect)(function(){if(Ue&&En){function it(ft,lt){En(ft,lt)}return Ue.on("beforeChange",it),function(){Ue.off("beforeChange",it)}}},[Ue,En]),Object(g.useEffect)(function(){if(Ue&&St){function it(){St(Ue.getValue())}return Ue.on("blur",it),function(){Ue.off("blur",it)}}},[Ue,St]),Object(g.useEffect)(function(){if(Ue){function it(ft){var lt=ft.getValue();Tn(lt),Zr(new Date().getTime()),ft.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$e&&$e(lt)}return Ue.on("change",it),function(){Ue.off("change",it)}}},[Ue,$e]),Object(g.useEffect)(function(){Ue&&(De==null?(Ue.setValue(""),Tn("")):De!==Ue.getValue()&&(Ue.setValue(De),Tn(De),Ue.setCursor(Ue.lineCount(),0)))},[Ue,De]);var Mi=Object(g.useCallback)(function(it){var ft=Ue.getCursor(),lt=Ue.getSelection(),vt=lt.split(`
`);switch(it){case"bold":return Ue.replaceSelection("**"+lt+"**"),lt===""&&Ue.setCursor(ft.line,ft.ch+2),Ue.focus();case"italic":return Ue.replaceSelection("*"+lt+"*"),lt===""&&Ue.setCursor(ft.line,ft.ch+1),Ue.focus();case"code":return Ue.replaceSelection("`"+lt+"`"),lt===""&&Ue.setCursor(ft.line,ft.ch+1),Ue.focus();case"inline-latex":return Ue.replaceSelection("`$$"+lt+"$$`"),lt===""&&Ue.setCursor(ft.line,ft.ch+3),Ue.focus();case"latex":return Ue.replaceSelection("```latex\n"+lt+"\n```"),Ue.setCursor(ft.line+1,lt.length+1),Ue.focus();case"line-break":return Ue.replaceSelection(`
`),Ue.focus();case"list-ul":return lt===""?Ue.replaceSelection("- "+lt):Ue.replaceSelection(vt.map(function(wt){return wt===""?"":"- ".concat(wt)}).join(`
`)),Ue.focus();case"list-ol":return lt===""?Ue.replaceSelection("1. "+lt):Ue.replaceSelection(vt.map(function(wt,Ct){return wt===""?"":"".concat(Ct+1,". ").concat(wt)}).join(`
`)),Ue.focus();case"add-null-ch":return lt===""&&Ue.setCursor(ft.line,ft.ch+1),Ue.replaceSelection(xe),Ue.focus();case"inster-template-1":return lt===""&&Ue.setCursor(ft.line,ft.ch),Ue.replaceSelection(Pe),Ue.focus();case"eraser":return Ue.setValue(""),Ue.focus();case"trigger-watch":return $r(!xn),Ue.focus();case"trigger-full-screen":return Li(!wn),Ue.focus();case Ie:Kn(Ie);return;case Ye:Kn(Ye);return;case Le:Kn(Le);return;case Qe:Kn(Qe);return;default:throw new Error}},[Ue,xn,wn]),Or=Object(g.useCallback)(function(it){Kn("");switch(en){case Ie:var ft=it.title,lt=it.link;return Ue.replaceSelection("[".concat(ft,"](").concat(lt,")")),Ue.focus();case Ye:var vt=it.language,wt=it.content;return Ue.replaceSelection(["```"+vt,wt,"```"].join(`
`)),Ue.focus();case Le:var Ct=it.src,bt=it.alt;return bt?Ue.replaceSelection(".concat(Ct,' "').concat(bt,'" )')):Ue.replaceSelection("")),Ue.focus();case Qe:for(var Kt=it.row,an=it.col,_t=it.align,Bn=`
`,At=0;At300&&(Kt=300);var an=ct+Kt+"px";Tr(an)}}return it.addEventListener("mousedown",vt),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",wt),function(){it.removeEventListener("mousedown",vt),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",wt)}}},[Ue,Un]),Object(g.useEffect)(function(){Tr(ct)},[ct]);var Cn=_e(nt),ei=_e(Ii),On={width:Cn,height:ei},ti=Object(g.useMemo)(function(){if(Sn){var it=new Date(Sn),ft=it.getHours(),lt=it.getMinutes(),vt=it.getSeconds();return ft=ft<10?"0"+ft:ft,lt=lt<10?"0"+lt:lt,vt=vt<10?"0"+vt:vt,"".concat(ft,":").concat(lt,":").concat(vt)}return 0},[Sn]);function Ni(){window.sessionStorage.removeItem(mt),xr(!1),Zr(0)}function ar(){xr(!1),Zr(0),Ue.setValue(window.sessionStorage.getItem(mt))}function ua(it,ft){var lt=Ue.getValue();lt=lt.replace(it,ft),Tn(lt),Ue==null||Ue.setValue(lt)}return p.a.createElement(g.Fragment,null,p.a.createElement("div",{className:"markdown-editor-wrapper",ref:Fn},p.a.createElement("div",{className:"markdown-editor-container ".concat(Fe," ").concat(xn?"on-preview":""," ").concat(Ot?"mini":""," ").concat(wn?"full-screen":""),style:On},p.a.createElement(b,{insertTemp:yt,watch:xn,fullScreen:wn,showNullButton:Nt,onActionCallback:Mi,hidetoolBar:Pn,uuid:rr.current,setOpenPhones:function(){ir.current=!0}}),p.a.createElement("div",{className:"markdown-editor-body"},p.a.createElement("div",{className:"codemirror-container"},p.a.createElement("textarea",{ref:Nn,placeholder:yr})),xn?p.a.createElement("div",{ref:Sr,className:"preview-container"},bn==="stex"&&p.a.createElement(A,{value:tr}),bn!=="stex"&&p.a.createElement(x.a,{edit:!0,value:tr,replaces:ua})):null))),Dt?p.a.createElement("a",{ref:Un,className:"editor-resize"}):null,p.a.createElement(P.a,null,re[en]?p.a.createElement(V.a,{centered:!0,title:re[en],visible:!0,onCancel:Gn,footer:null,className:"markdown-popup-form"},qr):null))}},R7cW:function(at,Ve,te){"use strict";te.r(Ve);var ne=te("+L6B"),V=te("2/Rp"),D=te("DZo9"),z=te("8z0m"),N=te("0Owb"),M=te("5NDa"),W=te("5rEg"),B=te("sPJy"),k=te("bE4q"),R=te("k1fw"),g=te("oBTY"),p=te("9og8"),f=te("miYZ"),d=te("tsqr"),o=te("y8nQ"),c=te("Vl3Y"),s=te("tJVT"),a=te("WmNS"),l=te.n(a),h=te("cDcd"),O=te.n(h),w=te("Ty5D"),x=te("9kvl"),A=te("55Ip"),S=te("Ot1p"),T=te("XYT7"),E=te("m3rI"),_=te("YiJy"),u=te.n(_),y=function(b){var P,I=b.shixunHomeworks,U=b.newCourse,F=b.globalSetting,L=b.loading,v=b.dispatch,j=b.match,K=Object(w.i)(),J=c.a.useForm(),ee=Object(s.a)(J,1),ve=ee[0],de=Object(h.useState)({}),me=Object(s.a)(de,2),ce=me[0],pe=me[1],ae=Object(h.useState)(!1),he=Object(s.a)(ae,2),$=he[0],ie=he[1],q=Object(h.useState)([]),Ee=Object(s.a)(q,2),Ae=Ee[0],ye=Ee[1],we=Object(h.useState)([]),Re=Object(s.a)(we,2),ke=Re[0],Ne=Re[1],Ie=I.commonHomeWorkEditDefaultData,Le={name:"file",multiple:!0,action:E.a.API_SERVER+"/api/attachments.json",defaultFileList:Ae,onChange:function(Je){var je=Je.file.status;je!=="uploading",je==="done"?d.b.success("".concat(Je.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F")):je==="error"&&d.b.error("".concat(Je.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))}};Object(h.useEffect)(function(){Qe()},[K.topicId]);var Ye=function(Je){return Je==null?void 0:Je.map(function(je){return{uid:je.id,response:{id:je.id},name:je.title,status:"done",url:je.url}})},Qe=function(){var We=Object(p.a)(l.a.mark(function Je(){var je;return l.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,v({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:K.topicId}});case 2:je=Se.sent,je&&(ve.setFieldsValue({name:je.name}),ve.setFieldsValue({description:je.description}),ve.setFieldsValue({reference_answer:je.reference_answer}),ye(Object(g.a)(Ye(je.attachments))),Ne(Object(g.a)(Ye(je.reference_attachments))),ie(!0));case 4:case"end":return Se.stop()}},Je)}));return function(){return We.apply(this,arguments)}}(),Xe=function(){var We=Object(p.a)(l.a.mark(function Je(je){var He,Se,qe,Ke;return l.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return He=Object(R.a)({},ce),He.attachment_ids&&(He.attachment_ids=He==null||((Se=He.attachment_ids.fileList)===null||Se===void 0)?void 0:Se.map(function(_e){var le;return(le=_e.response)===null||le===void 0?void 0:le.id})),He.reference_attachment_ids&&(He.reference_attachment_ids=He==null||((qe=He.reference_attachment_ids.fileList)===null||qe===void 0)?void 0:qe.map(function(_e){var le;return(le=_e.response)===null||le===void 0?void 0:le.id})),Pe.next=5,Object(T.n)(Object(R.a)(Object(R.a)({id:K.topicId},He),{},{base_on_project:null,type:1}));case 5:Ke=Pe.sent,Ke&&x.d.push("/users/".concat(K.username,"/topics/").concat(K.topicId,"/").concat(K.topictype,"/normal/detail"));case 7:case"end":return Pe.stop()}},Je)}));return function(je){return We.apply(this,arguments)}}();return O.a.createElement("section",{className:u.a.bg},O.a.createElement("section",{className:"animated fadeIn"},O.a.createElement("aside",{className:"mt10"},O.a.createElement(k.a,{separator:">"},O.a.createElement(k.a.Item,null,O.a.createElement(A.a,{to:"/users/".concat(K.username,"/").concat(K.topictype==="personal"?"topics":"topicbank","/").concat(K.topictype)},K.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),O.a.createElement(k.a.Item,null,O.a.createElement(A.a,{to:"/users/".concat(K.username,"/topics/").concat(K.topicId,"/").concat(K.topictype,"/normal/detail")},"\u8BE6\u60C5")),O.a.createElement(k.a.Item,null,"\u7F16\u8F91")))),O.a.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91"),O.a.createElement(c.a,{form:ve,className:u.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){pe(Object(R.a)({},ve.getFieldsValue()))},onFinish:Xe},O.a.createElement("div",{className:u.a.fieldWrap},O.a.createElement(c.a.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},O.a.createElement(W.a,{maxLength:60,suffix:"".concat(((P=ce.name)===null||P===void 0?void 0:P.length)||0,"/60"),placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),O.a.createElement("div",{className:u.a.mdWrap},O.a.createElement(c.a.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},O.a.createElement(S.a,{id:"topic-normal-description",watch:!0,defaultValue:Ie.description})),O.a.createElement("div",null,O.a.createElement(c.a.Item,{name:"attachment_ids"},$&&O.a.createElement(z.a,Object(N.a)({defaultFileList:Ae},Le),O.a.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),O.a.createElement("div",{className:u.a.mdWrap},O.a.createElement(c.a.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},O.a.createElement(S.a,{id:"topic-normal-reference_answer",defaultValue:Ie.reference_answer,watch:!0})),O.a.createElement("div",null,O.a.createElement(c.a.Item,{name:"reference_attachment_ids"},$&&O.a.createElement(z.a,Object(N.a)({},Le,{defaultFileList:ke}),O.a.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),O.a.createElement("div",{className:u.a.backgroundFa},O.a.createElement("div",{className:"pt40 mb30"},O.a.createElement(c.a.Item,null,O.a.createElement(V.a,{size:"large",type:"primary",className:"".concat(u.a.button," mr20"),htmlType:"submit"},"\u63D0\u4EA4"),O.a.createElement(V.a,{size:"large",type:"primary",ghost:!0,className:u.a.button,onClick:function(){return x.d.push("/users/".concat(K.username,"/topics/").concat(K.topicId,"/").concat(K.topictype,"/normal/detail"))}},"\u53D6\u6D88"))))))};Ve.default=Object(x.a)(function(m){var b=m.shixunHomeworks,P=m.newCourse,I=m.loading,U=m.globalSetting;return{shixunHomeworks:b,newCourse:P,globalSetting:U,loading:I.effects}})(y)},SJMd:function(at,Ve){/**
* @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 te,ne,V,D=!1,z,N;window.PR_SHOULD_USE_CONTINUATION=!0;var M,W;(function(){var B=window,k=["break,continue,do,else,for,if,return,while"],R=[k,"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=[R,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],p=[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"],f=[g,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],d=[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"],o="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",c=[g,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="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",a=[k,"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"],l=[k,"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"],h=[k,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],O=[p,d,f,c,s,a,l,h],w=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,x="str",A="kwd",S="com",T="typ",E="lit",_="pun",u="pln",y="tag",m="dec",b="src",P="atn",I="atv",U="nocode",F="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function L(ye){for(var we=0,Re=!1,ke=!1,Ne=0,Ie=ye.length;Ne122||(Q<65||fe>90||qe.push([Math.max(65,fe)|32,Math.min(Q,90)|32]),Q<97||fe>122||qe.push([Math.max(97,fe)&~32,Math.min(Q,122)&~32]))}}qe.sort(function(ge,Oe){return ge[0]-Oe[0]||Oe[1]-ge[1]});for(var Z=[],re=[],Pe=0;Peoe[0]&&(oe[1]+1>oe[0]&&xe.push("-"),xe.push(Xe(oe[1])))}return xe.push("]"),xe.join("")}function Je(He){for(var Se=He.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=Se.length,Ke=[],xe=0,Pe=0;xe=2&&fe==="["?Se[xe]=We(_e):fe!=="\\"&&(Se[xe]=_e.replace(/[a-zA-Z]/g,function(re){var oe=re.charCodeAt(0);return"["+String.fromCharCode(oe&~32,oe|32)+"]"}))}return Se.join("")}for(var je=[],Ne=0,Ie=ye.length;Ne=0;)Re[je.charAt(He)]=Je;var Se=Je[1],qe=""+Se;Qe.hasOwnProperty(qe)||(Ye.push(Se),Qe[qe]=null)}Ye.push(/[\0-\uffff]/),ke=L(Ye)})();var Ne=we.length,Ie=function(Le){for(var Ye=Le.sourceCode,Qe=Le.basePos,Xe=Le.sourceNode,We=[Qe,u],Je=0,je=Ye.match(ke)||[],He={},Se=0,qe=je.length;Se=5&&xe.substring(0,5)==="lang-",_e&&!(Pe&&typeof Pe[1]=="string")&&(_e=!1,xe=b),_e||(He[Ke]=xe)}var Q=Je;if(Je+=Ke.length,!_e)We.push(Qe+Q,xe);else{var Z=Pe[1],re=Ke.indexOf(Z),oe=re+Z.length;Pe[2]&&(oe=Ke.length-Pe[2].length,re=oe-Z.length);var ge=xe.substring(5);j(Xe,Qe+Q,Ke.substring(0,re),Ie,We),j(Xe,Qe+Q+re,Z,he(ge,Z),We),j(Xe,Qe+Q+oe,Ke.substring(oe),Ie,We)}}Le.decorations=We};return Ie}function ve(ye){var we=[],Re=[];ye.tripleQuotedStrings?we.push([x,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ye.multiLineStrings?we.push([x,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):we.push([x,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ye.verbatimStrings&&Re.push([x,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ke=ye.hashComments;ke&&(ye.cStyleComments?(ke>1?we.push([S,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):we.push([S,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Re.push([x,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):we.push([S,/^#[^\r\n]*/,null,"#"])),ye.cStyleComments&&(Re.push([S,/^\/\/[^\r\n]*/,null]),Re.push([S,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ne=ye.regexLiterals;if(Ne){var Ie=Ne>1?"":`
\r`,Le=Ie?".":"[\\S\\s]",Ye="/(?=[^/*"+Ie+"])(?:[^/\\x5B\\x5C"+Ie+"]|\\x5C"+Le+"|\\x5B(?:[^\\x5C\\x5D"+Ie+"]|\\x5C"+Le+")*(?:\\x5D|$))+/";Re.push(["lang-regex",RegExp("^"+F+"("+Ye+")")])}var Qe=ye.types;Qe&&Re.push([T,Qe]);var Xe=(""+ye.keywords).replace(/^ | $/g,"");Xe.length&&Re.push([A,new RegExp("^(?:"+Xe.replace(/[\s,]+/g,"|")+")\\b"),null]),we.push([u,/^\s+/,null,` \r
\xA0`]);var We="^.[^\\s\\w.$@'\"`/\\\\]*";return ye.regexLiterals&&(We+="(?!s*/)"),Re.push([E,/^@[a-z_$][a-z_$@0-9]*/i,null],[T,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[u,/^[a-z_$][a-z_$@0-9]*/i,null],[E,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[u,/^\\[\s\S]?/,null],[_,new RegExp(We),null]),ee(we,Re)}var de=ve({keywords:O,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function me(ye,we,Re){for(var ke=/(?:^|\s)nocode(?:\s|$)/,Ne=/\r\n?|\n/,Ie=ye.ownerDocument,Le=Ie.createElement("li");ye.firstChild;)Le.appendChild(ye.firstChild);var Ye=[Le];function Qe(Se){var qe=Se.nodeType;if(qe==1&&!ke.test(Se.className))if(Se.nodeName==="br")Xe(Se),Se.parentNode&&Se.parentNode.removeChild(Se);else for(var Ke=Se.firstChild;Ke;Ke=Ke.nextSibling)Qe(Ke);else if((qe==3||qe==4)&&Re){var xe=Se.nodeValue,Pe=xe.match(Ne);if(Pe){var _e=xe.substring(0,Pe.index);Se.nodeValue=_e;var le=xe.substring(Pe.index+Pe[0].length);if(le){var fe=Se.parentNode;fe.insertBefore(Ie.createTextNode(le),Se.nextSibling)}Xe(Se),_e||Se.parentNode.removeChild(Se)}}}function Xe(Se){for(;!Se.nextSibling;)if(Se=Se.parentNode,!Se)return;function qe(Pe,_e){var le=_e?Pe.cloneNode(!1):Pe,fe=Pe.parentNode;if(fe){var Q=qe(fe,1),Z=Pe.nextSibling;Q.appendChild(le);for(var re=Z;re;re=Z)Z=re.nextSibling,Q.appendChild(re)}return le}for(var Ke=qe(Se.nextSibling,0),xe;(xe=Ke.parentNode)&&xe.nodeType===1;)Ke=xe;Ye.push(Ke)}for(var We=0;We=fe&&(Qe+=2),Ie>=Q&&(Je+=2)}}finally{xe&&(xe.style.display=Pe)}}var pe={};function ae(ye,we){for(var Re=we.length;--Re>=0;){var ke=we[Re];pe.hasOwnProperty(ke)?B.console&&console.warn("cannot override language handler %s",ke):pe[ke]=ye}}function he(ye,we){return ye&&pe.hasOwnProperty(ye)||(ye=/^\s*]*(?:>|$)/],[S,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^