(window.webpackJsonp=window.webpackJsonp||[]).push([[102,5,7,8,9,16],{"+ua5":function(Je,be,V){},"/cxE":function(Je,be,V){"use strict";V.d(be,"f",function(){return A}),V.d(be,"g",function(){return k}),V.d(be,"h",function(){return w}),V.d(be,"e",function(){return H}),V.d(be,"b",function(){return U}),V.d(be,"c",function(){return e}),V.d(be,"d",function(){return S}),V.d(be,"a",function(){return f});class ae{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(d){setTimeout(()=>{throw d.stack?new Error(d.message+`
`+d.stack):d},0)}}emit(d){this.listeners.forEach(o=>{o(d)})}onUnexpectedError(d){this.unexpectedErrorHandler(d),this.emit(d)}onUnexpectedExternalError(d){this.unexpectedErrorHandler(d)}}const B=new ae;function A(d){H(d)||B.onUnexpectedError(d);return}function k(d){H(d)||B.onUnexpectedExternalError(d);return}function w(d){if(d instanceof Error){let{name:o,message:a}=d;const r=d.stacktrace||d.stack;return{$isError:!0,name:o,message:a,stack:r}}return d}const R="Canceled";function H(d){return d instanceof Error&&d.name===R&&d.message===R}function U(){const d=new Error(R);return d.name=d.message,d}function e(d){return d?new Error(`Illegal argument: ${d}`):new Error("Illegal argument")}function S(d){return d?new Error(`Illegal state: ${d}`):new Error("Illegal state")}class f extends Error{constructor(d){super("NotSupported");d&&(this.message=d)}}},"24hK":function(Je,be,V){"use strict";V.d(be,"a",function(){return B});class ae{constructor(A){this.element=A,this.next=ae.Undefined,this.prev=ae.Undefined}}ae.Undefined=new ae(void 0);class B{constructor(){this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ae.Undefined}clear(){let A=this._first;for(;A!==ae.Undefined;){const k=A.next;A.prev=ae.Undefined,A.next=ae.Undefined,A=k}this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}unshift(A){return this._insert(A,!1)}push(A){return this._insert(A,!0)}_insert(A,k){const w=new ae(A);if(this._first===ae.Undefined)this._first=w,this._last=w;else if(k){const H=this._last;this._last=w,w.prev=H,H.next=w}else{const H=this._first;this._first=w,w.next=H,H.prev=w}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(w))}}shift(){if(this._first===ae.Undefined)return;{const A=this._first.element;return this._remove(this._first),A}}pop(){if(this._last===ae.Undefined)return;{const A=this._last.element;return this._remove(this._last),A}}_remove(A){if(A.prev!==ae.Undefined&&A.next!==ae.Undefined){const k=A.prev;k.next=A.next,A.next.prev=k}else A.prev===ae.Undefined&&A.next===ae.Undefined?(this._first=ae.Undefined,this._last=ae.Undefined):A.next===ae.Undefined?(this._last=this._last.prev,this._last.next=ae.Undefined):A.prev===ae.Undefined&&(this._first=this._first.next,this._first.prev=ae.Undefined);this._size-=1}*[Symbol.iterator](){let A=this._first;for(;A!==ae.Undefined;)yield A.element,A=A.next}}},"3/fG":function(Je,be,V){"use strict";V.d(be,"a",function(){return B});function ae(A,k){let w;return k.length===0?w=A:w=A.replace(/\{(\d+)\}/g,function(R,H){const U=H[0];return typeof k[U]!="undefined"?k[U]:R}),w}function B(A,k,...w){return ae(k,w)}},"479L":function(Je,be){Je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAWCAYAAAAvg9c4AAAAAXNSR0IArs4c6QAABPdJREFUSEullWloHGUYx//vzO7sHDuzm93sZpM2l/SgRyK7xSYxrfYgbdUq6JcixXqAUrxItGAVMT1A+kH7Re1WWppa6afiAYJIi7ZB07vkIARzVJqYbJMmu90zszOzM6/MVEXQotR3mPky8/7e//N7ZuYl+J+jt7fX7/f7i/X19cU/UORemZRSZnBwsKNQKLztdrtHOI57sqGhYcbm3ROUUsoOD4++Mz9f2CtJItE0DaVSqTMWi+27Jyil1DM0NLTfsmgHpZbLhthQSmlfTU3NmkgkUvjPSSmlZGRkZI2maZ2mWdpAGBehpgnd0KBpOkzTLPn9/gei0Wjfv0JHR0cXGpq2xTDNHZTSJsu0OJNaIIRFUc07KXXdgGVZCAQCL7e0tMT/Br3ja3iRaZptlmU9YVHayhBGoAApGTpKhgHCsFCLRaRvp+yEtk9QaiEYDHy0cWPb639CbdjAwADP8/zRkmk9BYADIU4nLUqdycX5Agxdh4cXkLh5E8m5WTD2A4SAZVmEwxVnNm3a9AiJx+MrdSI8nslm25YtqlMaVi6LWab1+2IUFIB9NXQDuUwapmFAUnwYHBhAOp0Ex3nAcRx4QUA4FL62ecuWVnL01Om8V1YkXdewpMoLn6zYC4NhGLhcLng4t4OdnEognUqCIQSSJOPipYvI5gsQBBGyV4KiyAgFgz83NDauImevDtFUJo+ZqXGsW7UcvjK/zQDDEBBCHF+pZBKTU1NOl1mWgYfnMTNzy1FTWbUA6UzWuVce9N2QRKmRfP3d9zSRLOBS9xlsbVsLv893p2TLcjzqhgGtqEEvGWAI47izyx27ft2ppq6uHpIoIFcowqfIkz7Fu4LEjxyhVUtX4cuTn2FxdQiiKILYKe3DbpTtwu4Fw4Bzu8F5PGAZFqnbKWdhRVEQDkegm5YNnVhYFVlJ9uzbb2x++iXXxwf2o0Jxg+N5J4ENs/0RlgVLCFwuNyRJhCAITgX+sgCyubzjXZK88Hq9ttuRMr8SI2d+OHdCqFz8zMkjh1SeqqXy8qBsGIbj0rQs56UGpXCxLCRZhiLLmFdVyF4FmmFAUXzw+RRIogSvV+xdUFX5ILl07drBIh/quHD2bNeK+vLLum7ENXUe+Xweqqo6p6brMEsleDweJ1Eul0MgWA7Too6uYCAAryxDEvlzzU1NbeTClSsHDTHScaG7+/D6pmU9k2nt8/TU+NUl91UP53K5dblcrjKfzzOFQsFpmu01k8mgrCwAC4yjygZXVkYgy9LR1paWF0n3jz0fMMGaN8+f6z68oXnp+V/T1omRgd7ju9t3Pp9IJMTZ2dmHMpnMtnQ6/Wg2mw2pqkqy2SzcbjdcnAiOczuJIxUhVIRCu5qbV39Ivj19+oBSvfytyz/1HG5trLs4NU+O3xge6npj53Mv/PUHPj09HR4bG9s+NzfXnkymatSiCoEX4C8rA+fh4eE4GioPrI1Goz3k1Fdf7KlcEuvsu3z1mN9jjY3fSr/vgX5oV/trr/zTrtDf379wYmIinkqlHrMsi8iyDFnxQRCFsdrq6tW1tbW3yXt79z77y42J44KL5FPJOeJiXUb0/oYdu9/t/OZuW42tpa+v75iqqtvy+RwqwiEIvPjJw+vXv+q8011dXXx/f/9WWZaVQCBwE0Bfe3v7NCHE/rDuOmzw+Pj4p4lEYruLZWeqa2o2xmKxIXvCb487Tm3fsdeDAAAAAElFTkSuQmCC"},"55Ip":function(Je,be,V){"use strict";V.d(be,"a",function(){return i});var ae=V("Ty5D"),B=V("dI71"),A=V("q1tI"),k=V.n(A),w=V("YS25"),R=V("17x9"),H=V.n(R),U=V("wx14"),e=V("zLVn"),S=V("9R94"),f=function(c){Object(B.a)(u,c);function u(){for(var v,p=arguments.length,T=new Array(p),L=0;L
=0||p.relatedTarget.className.indexOf("".concat(x,"-next"))>=0))return;c.setState({goInputText:""}),D(c.getValidValue())},c.go=function(p){var T=c.state.goInputText;if(T==="")return;(p.keyCode===a.ENTER||p.type==="click")&&(c.setState({goInputText:""}),c.props.quickGo(c.getValidValue()))},c}return Object(w.a)(y,[{key:"getValidValue",value:function(){var u=this.state,l=u.goInputText,v=u.current;return!l||isNaN(l)?v:Number(l)}},{key:"getPageSizeOptions",value:function(){var u=this.props,l=u.pageSize,v=u.pageSizeOptions;return v.some(function(p){return p.toString()===l.toString()})?v:v.concat([l.toString()]).sort(function(p,T){var L=isNaN(Number(p))?0:Number(p),D=isNaN(Number(T))?0:Number(T);return L-D})}},{key:"render",value:function(){var u=this,l=this.props,v=l.pageSize,p=l.locale,T=l.rootPrefixCls,L=l.changeSize,D=l.quickGo,x=l.goButton,M=l.selectComponentClass,j=l.buildOptionText,I=l.selectPrefixCls,W=l.disabled,Q=this.state.goInputText,fe="".concat(T,"-options"),le=M,Ce=null,Oe=null,Re=null;if(!L&&!D)return null;var Le=this.getPageSizeOptions();if(L&&le){var Pe=Le.map(function(_e,N){return e.a.createElement(le.Option,{key:N,value:_e.toString()},(j||u.buildOptionText)(_e))});Ce=e.a.createElement(le,{disabled:W,prefixCls:I,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(v||Le[0]).toString(),onChange:this.changeSize,getPopupContainer:function(N){return N.parentNode}},Pe)}return D&&(x&&(Re=typeof x=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:W,className:"".concat(fe,"-quick-jumper-button")},p.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},x)),Oe=e.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},p.jump_to,e.a.createElement("input",{disabled:W,type:"text",value:Q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),p.page,Re)),e.a.createElement("li",{className:"".concat(fe)},Ce,Oe)}}]),y}(e.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var h=r,s=V("N2Kk");function n(){}function i(E){return typeof E=="number"&&isFinite(E)&&Math.floor(E)===E}function t(E,_,y){return y}function b(E,_,y){var c=typeof E=="undefined"?_.pageSize:E;return Math.floor((y.total-1)/c)+1}var m=function(E){Object(R.a)(y,E);var _=Object(H.a)(y);function y(c){var u;Object(k.a)(this,y),u=_.call(this,c),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(b(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(L,D){var x=u.props.prefixCls,M=L||e.a.createElement("button",{type:"button","aria-label":D,className:"".concat(x,"-item-link")});return typeof L=="function"&&(M=e.a.createElement(L,Object(A.a)({},u.props))),M},u.savePaginationNode=function(L){u.paginationNode=L},u.isValid=function(L){return i(L)&&L!==u.state.current},u.shouldDisplayQuickJumper=function(){var L=u.props,D=L.showQuickJumper,x=L.pageSize,M=L.total;return M<=x?!1:D},u.handleKeyDown=function(L){(L.keyCode===a.ARROW_UP||L.keyCode===a.ARROW_DOWN)&&L.preventDefault()},u.handleKeyUp=function(L){var D=u.getValidValue(L),x=u.state.currentInputValue;D!==x&&u.setState({currentInputValue:D}),L.keyCode===a.ENTER?u.handleChange(D):L.keyCode===a.ARROW_UP?u.handleChange(D-1):L.keyCode===a.ARROW_DOWN&&u.handleChange(D+1)},u.changePageSize=function(L){var D=u.state.current,x=b(L,u.state,u.props);D=D>x?x:D,x===0&&(D=u.state.current),typeof L=="number"&&("pageSize"in u.props||u.setState({pageSize:L}),"current"in u.props||u.setState({current:D,currentInputValue:D})),u.props.onShowSizeChange(D,L),"onChange"in u.props&&u.props.onChange&&u.props.onChange(D,L)},u.handleChange=function(L){var D=u.props.disabled,x=L;if(u.isValid(x)&&!D){var M=b(void 0,u.state,u.props);x>M?x=M:x<1&&(x=1),"current"in u.props||u.setState({current:x,currentInputValue:x});var j=u.state.pageSize;return u.props.onChange(x,j),x}return u.state.current},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?x-2:0),j=2;j=v?T=v:T=Number(l),T}},{key:"getShowSizeChanger",value:function(){var u=this.props,l=u.showSizeChanger,v=u.total,p=u.totalBoundaryShowSizeChanger;return typeof l!="undefined"?l:v>p}},{key:"renderPrev",value:function(u){var l=this.props,v=l.prevIcon,p=l.itemRender,T=p(u,"prev",this.getItemIcon(v,"prev page")),L=!this.hasPrev();return Object(U.isValidElement)(T)?Object(U.cloneElement)(T,{disabled:L}):T}},{key:"renderNext",value:function(u){var l=this.props,v=l.nextIcon,p=l.itemRender,T=p(u,"next",this.getItemIcon(v,"next page")),L=!this.hasNext();return Object(U.isValidElement)(T)?Object(U.cloneElement)(T,{disabled:L}):T}},{key:"render",value:function(){var u=this,l=this.props,v=l.prefixCls,p=l.className,T=l.style,L=l.disabled,D=l.hideOnSinglePage,x=l.total,M=l.locale,j=l.showQuickJumper,I=l.showLessItems,W=l.showTitle,Q=l.showTotal,fe=l.simple,le=l.itemRender,Ce=l.showPrevNextJumpers,Oe=l.jumpPrevIcon,Re=l.jumpNextIcon,Le=l.selectComponentClass,Pe=l.selectPrefixCls,_e=l.pageSizeOptions,N=this.state,O=N.current,C=N.pageSize,F=N.currentInputValue;if(D===!0&&x<=C)return null;var z=b(void 0,this.state,this.props),P=[],oe=null,we=null,Ae=null,ee=null,de=null,ge=j&&j.goButton,xe=I?1:2,Me=O-1>0?O-1:0,Ue=O+1=xe*2&&O!==1+2&&(P[0]=Object(U.cloneElement)(P[0],{className:"".concat(v,"-item-after-jump-prev")}),P.unshift(oe)),z-O>=xe*2&&O!==z-2&&(P[P.length-1]=Object(U.cloneElement)(P[P.length-1],{className:"".concat(v,"-item-before-jump-next")}),P.push(we)),Ye!==1&&P.unshift(Ae),$e!==z&&P.push(ee)}var G=null;Q&&(G=e.a.createElement("li",{className:"".concat(v,"-total-text")},Q(x,[x===0?0:(O-1)*C+1,O*C>x?x:O*C])));var Z=!this.hasPrev()||!z,te=!this.hasNext()||!z;return e.a.createElement("ul",Object(ae.a)({className:f()(v,p,Object(B.a)({},"".concat(v,"-disabled"),L)),style:T,unselectable:"unselectable",ref:this.savePaginationNode},He),G,e.a.createElement("li",{title:W?M.prev_page:null,onClick:this.prev,tabIndex:Z?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(v,"-prev"),Object(B.a)({},"".concat(v,"-disabled"),Z)),"aria-disabled":Z},this.renderPrev(Me)),P,e.a.createElement("li",{title:W?M.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(v,"-next"),Object(B.a)({},"".concat(v,"-disabled"),te)),"aria-disabled":te},this.renderNext(Ue)),e.a.createElement(h,{disabled:L,locale:M,rootPrefixCls:v,selectComponentClass:Le,selectPrefixCls:Pe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:O,pageSize:C,pageSizeOptions:_e,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ge}))}}],[{key:"getDerivedStateFromProps",value:function(u,l){var v={};if("current"in u&&(v.current=u.current,u.current!==l.current&&(v.currentInputValue=v.current)),"pageSize"in u&&u.pageSize!==l.pageSize){var p=l.current,T=b(u.pageSize,l,u);p=p>T?T:p,"current"in u||(v.current=p,v.currentInputValue=p),v.pageSize=u.pageSize}return v}}]),y}(e.a.Component);m.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:s.a,style:{},itemRender:t,totalBoundaryShowSizeChanger:50};var g=m},"6UM0":function(Je,be,V){var ae,B;(function(){var A;(function(){"use strict";var w=[function(e,S,f){var d=f(1).Beautifier,o=f(5).Options;function a(r,h){var s=new d(r,h);return s.beautify()}e.exports=a,e.exports.defaultOptions=function(){return new o}},function(e,S,f){var d=f(2).Output,o=f(3).Token,a=f(4),r=f(5).Options,h=f(7).Tokenizer,s=f(7).line_starters,n=f(7).positionable_operators,i=f(7).TOKEN;function t(I,W){return W.indexOf(I)!==-1}function b(I){return I.replace(/^\s+/g,"")}function m(I){for(var W={},Q=0;QQ&&(Q=I.line_indent_level));var fe={mode:W,parent:I,last_token:I?I.last_token:new o(i.START_BLOCK,""),last_word:I?I.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:Q,alignment:0,line_indent_level:I?I.line_indent_level:Q,start_line_index:this._output.get_line_number(),ternary_depth:0};return fe},M.prototype._reset=function(I){var W=I.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new d(this._options,W),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(l.BlockStatement);var Q=new h(I,this._options);return this._tokens=Q.tokenize(),I},M.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I,W=this._reset(this._source_text),Q=this._options.eol;this._options.eol==="auto"&&(Q=`
`,W&&a.lineBreak.test(W||"")&&(Q=W.match(a.lineBreak)[0]));for(var fe=this._tokens.next();fe;)this.handle_token(fe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=fe,fe=this._tokens.next();return I=this._output.get_code(Q),I},M.prototype.handle_token=function(I,W){I.type===i.START_EXPR?this.handle_start_expr(I):I.type===i.END_EXPR?this.handle_end_expr(I):I.type===i.START_BLOCK?this.handle_start_block(I):I.type===i.END_BLOCK?this.handle_end_block(I):I.type===i.WORD?this.handle_word(I):I.type===i.RESERVED?this.handle_word(I):I.type===i.SEMICOLON?this.handle_semicolon(I):I.type===i.STRING?this.handle_string(I):I.type===i.EQUALS?this.handle_equals(I):I.type===i.OPERATOR?this.handle_operator(I):I.type===i.COMMA?this.handle_comma(I):I.type===i.BLOCK_COMMENT?this.handle_block_comment(I,W):I.type===i.COMMENT?this.handle_comment(I,W):I.type===i.DOT?this.handle_dot(I):I.type===i.EOF?this.handle_eof(I):I.type===i.UNKNOWN?this.handle_unknown(I,W):this.handle_unknown(I,W)},M.prototype.handle_whitespace_and_comments=function(I,W){var Q=I.newlines,fe=this._options.keep_array_indentation&&T(this._flags.mode);if(I.comments_before)for(var le=I.comments_before.next();le;)this.handle_whitespace_and_comments(le,W),this.handle_token(le,W),le=I.comments_before.next();if(fe)for(var Ce=0;Ce0,W);else if(this._options.max_preserve_newlines&&Q>this._options.max_preserve_newlines&&(Q=this._options.max_preserve_newlines),this._options.preserve_newlines&&Q>1){this.print_newline(!1,W);for(var Oe=1;Oe0&&(!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))},M.prototype.set_mode=function(I){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,I),this._flags=this.create_flags(this._previous_flags,I),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},M.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===l.Statement&&v(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},M.prototype.start_of_object_property=function(){return this._flags.parent.mode===l.ObjectLiteral&&this._flags.mode===l.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"]))},M.prototype.start_of_statement=function(I){var W=!1;return W=W||E(this._flags.last_token,["var","let","const"])&&I.type===i.WORD,W=W||g(this._flags.last_token,"do"),W=W||!(this._flags.parent.mode===l.ObjectLiteral&&this._flags.mode===l.Statement)&&E(this._flags.last_token,j)&&!I.newlines,W=W||g(this._flags.last_token,"else")&&!(g(I,"if")&&!I.comments_before),W=W||this._flags.last_token.type===i.END_EXPR&&(this._previous_flags.mode===l.ForInitializer||this._previous_flags.mode===l.Conditional),W=W||this._flags.last_token.type===i.WORD&&this._flags.mode===l.BlockStatement&&!this._flags.in_case&&!(I.text==="--"||I.text==="++")&&this._last_last_text!=="function"&&I.type!==i.WORD&&I.type!==i.RESERVED,W=W||this._flags.mode===l.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"])),W?(this.set_mode(l.Statement),this.indent(),this.handle_whitespace_and_comments(I,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I,E(I,["do","for","if","while"])),!0):!1},M.prototype.handle_start_expr=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I);var W=l.Expression;if(I.text==="["){if(this._flags.last_token.type===i.WORD||this._flags.last_token.text===")"){E(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(I),this.set_mode(W),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}W=l.ArrayLiteral,T(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())),t(this._flags.last_token.type,[i.START_EXPR,i.END_EXPR,i.WORD,i.OPERATOR,i.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===i.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,W=l.ForInitializer):t(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,W=l.Conditional):t(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&I.whitespace_before===""?this._output.space_before_token=!1:(t(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===i.EQUALS||this._flags.last_token.type===i.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I);else if(this._flags.last_token.type===i.WORD){this._output.space_before_token=!1;var Q=this._tokens.peek(-3);if(this._options.space_after_named_function&&Q){var fe=this._tokens.peek(-4);E(Q,["async","function"])||Q.text==="*"&&E(fe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===l.ObjectLiteral?(Q.text==="{"||Q.text===","||Q.text==="*"&&(fe.text==="{"||fe.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(I);(this._flags.last_token.type===i.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===l.ObjectLiteral&&t(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===i.START_BLOCK?this.print_newline():(this._flags.last_token.type===i.END_EXPR||this._flags.last_token.type===i.START_EXPR||this._flags.last_token.type===i.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===i.COMMA)&&this.allow_wrap_or_preserved_newline(I,I.newlines),this.print_token(I),this.set_mode(W),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},M.prototype.handle_end_expr=function(I){for(;this._flags.mode===l.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(I,I.text==="]"&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===i.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(I),this.restore_mode(),v(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===l.Conditional&&(this._previous_flags.mode=l.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},M.prototype.handle_start_block=function(I){this.handle_whitespace_and_comments(I);var W=this._tokens.peek(),Q=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===i.END_EXPR?(this.set_mode(l.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(l.BlockStatement):Q&&(t(Q.text,[":",","])&&t(W.type,[i.STRING,i.WORD,i.RESERVED])||t(W.text,["get","set","..."])&&t(Q.type,[i.WORD,i.RESERVED]))?t(this._last_last_text,["class","interface"])&&!t(Q.text,[":",","])?this.set_mode(l.BlockStatement):this.set_mode(l.ObjectLiteral):this._flags.last_token.type===i.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(l.BlockStatement):t(this._flags.last_token.type,[i.EQUALS,i.START_EXPR,i.COMMA,i.OPERATOR])||E(this._flags.last_token,["return","throw","import","default"])?this.set_mode(l.ObjectLiteral):this.set_mode(l.BlockStatement),this._flags.last_token&&(E(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var fe=!W.comments_before&&W.text==="}",le=fe&&this._flags.last_word==="function"&&this._flags.last_token.type===i.END_EXPR;if(this._options.brace_preserve_inline){var Ce=0,Oe=null;this._flags.inline_frame=!0;do if(Ce+=1,Oe=this._tokens.peek(Ce-1),Oe.newlines){this._flags.inline_frame=!1;break}while(Oe.type!==i.EOF&&!(Oe.type===i.END_BLOCK&&Oe.opened===I))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==i.OPERATOR&&(le||this._flags.last_token.type===i.EQUALS||E(this._flags.last_token,_)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(T(this._previous_flags.mode)&&(this._flags.last_token.type===i.START_EXPR||this._flags.last_token.type===i.COMMA)&&((this._flags.last_token.type===i.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===i.COMMA||this._flags.last_token.type===i.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(I),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==i.OPERATOR&&this._flags.last_token.type!==i.START_EXPR&&(this._flags.last_token.type===i.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(I),this.indent(),!fe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},M.prototype.handle_end_block=function(I){for(this.handle_whitespace_and_comments(I);this._flags.mode===l.Statement;)this.restore_mode();var W=this._flags.last_token.type===i.START_BLOCK;this._flags.inline_frame&&!W?this._output.space_before_token=!0:this._options.brace_style==="expand"?W||this.print_newline():W||(T(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(I)},M.prototype.handle_word=function(I){if(I.type===i.RESERVED){if(t(I.text,["set","get"])&&this._flags.mode!==l.ObjectLiteral)I.type=i.WORD;else if(I.text==="import"&&t(this._tokens.peek().text,["(","."]))I.type=i.WORD;else if(t(I.text,["as","from"])&&!this._flags.import_block)I.type=i.WORD;else if(this._flags.mode===l.ObjectLiteral){var W=this._tokens.peek();W.text===":"&&(I.type=i.WORD)}}if(this.start_of_statement(I)?E(this._flags.last_token,["var","let","const"])&&I.type===i.WORD&&(this._flags.declaration_statement=!0):I.newlines&&!L(this._flags.mode)&&(this._flags.last_token.type!==i.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==i.EQUALS&&(this._options.preserve_newlines||!E(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(I),this.print_newline()):this.handle_whitespace_and_comments(I),this._flags.do_block&&!this._flags.do_while)if(g(I,"while")){this._output.space_before_token=!0,this.print_token(I),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&&g(I,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===l.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&E(I,["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(I),this._flags.in_case=!0;return}if((this._flags.last_token.type===i.COMMA||this._flags.last_token.type===i.START_EXPR||this._flags.last_token.type===i.EQUALS||this._flags.last_token.type===i.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I)),g(I,"function")){(t(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(t(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===i.OPERATOR))&&(!this._output.just_added_blankline()&&!I.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===i.RESERVED||this._flags.last_token.type===i.WORD?E(this._flags.last_token,["get","set","new","export"])||E(this._flags.last_token,j)?this._output.space_before_token=!0:g(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===i.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(L(this._flags.mode)||T(this._flags.mode))||this.print_newline(),this.print_token(I),this._flags.last_word=I.text;return}var Q="NONE";if(this._flags.last_token.type===i.END_BLOCK?this._previous_flags.inline_frame?Q="SPACE":E(I,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines?Q="NEWLINE":(Q="SPACE",this._output.space_before_token=!0):Q="NEWLINE":this._flags.last_token.type===i.SEMICOLON&&this._flags.mode===l.BlockStatement?Q="NEWLINE":this._flags.last_token.type===i.SEMICOLON&&L(this._flags.mode)?Q="SPACE":this._flags.last_token.type===i.STRING?Q="NEWLINE":this._flags.last_token.type===i.RESERVED||this._flags.last_token.type===i.WORD||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===l.ObjectLiteral&&t(this._last_last_text,["{",","]))?Q="SPACE":this._flags.last_token.type===i.START_BLOCK?this._flags.inline_frame?Q="SPACE":Q="NEWLINE":this._flags.last_token.type===i.END_EXPR&&(this._output.space_before_token=!0,Q="NEWLINE"),E(I,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?Q="SPACE":Q="NEWLINE"),E(I,["else","catch","finally"]))if((!(this._flags.last_token.type===i.END_BLOCK&&this._previous_flags.mode===l.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var fe=this._output.current_line;fe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else Q==="NEWLINE"?E(this._flags.last_token,_)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&E(I,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==i.END_EXPR?(this._flags.last_token.type!==i.START_EXPR||!E(I,["var","let","const"]))&&this._flags.last_token.text!==":"&&(g(I,"if")&&g(I.previous,"else")?this._output.space_before_token=!0:this.print_newline()):E(I,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&T(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():Q==="SPACE"&&(this._output.space_before_token=!0);I.previous&&(I.previous.type===i.WORD||I.previous.type===i.RESERVED)&&(this._output.space_before_token=!0),this.print_token(I),this._flags.last_word=I.text,I.type===i.RESERVED&&(I.text==="do"?this._flags.do_block=!0:I.text==="if"?this._flags.if_block=!0:I.text==="import"?this._flags.import_block=!0:this._flags.import_block&&g(I,"from")&&(this._flags.import_block=!1))},M.prototype.handle_semicolon=function(I){this.start_of_statement(I)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(I);for(var W=this._tokens.peek();this._flags.mode===l.Statement&&!(this._flags.if_block&&g(W,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(I)},M.prototype.handle_string=function(I){I.text.startsWith("`")&&I.newlines===0&&I.whitespace_before===""&&(I.previous.text===")"||this._flags.last_token.type===i.WORD)||(this.start_of_statement(I)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(I),this._flags.last_token.type===i.RESERVED||this._flags.last_token.type===i.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===i.COMMA||this._flags.last_token.type===i.START_EXPR||this._flags.last_token.type===i.EQUALS||this._flags.last_token.type===i.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I):I.text.startsWith("`")&&this._flags.last_token.type===i.END_EXPR&&(I.previous.text==="]"||I.previous.text===")")&&I.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(I)},M.prototype.handle_equals=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0},M.prototype.handle_comma=function(I){this.handle_whitespace_and_comments(I,!0),this.print_token(I),this._output.space_before_token=!0,this._flags.declaration_statement?(L(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(I)):this._flags.mode===l.ObjectLiteral||this._flags.mode===l.Statement&&this._flags.parent.mode===l.ObjectLiteral?(this._flags.mode===l.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(I)},M.prototype.handle_operator=function(I){var W=I.text==="*"&&(E(this._flags.last_token,["function","yield"])||t(this._flags.last_token.type,[i.START_BLOCK,i.COMMA,i.END_BLOCK,i.SEMICOLON])),Q=t(I.text,["-","+"])&&(t(this._flags.last_token.type,[i.START_BLOCK,i.START_EXPR,i.EQUALS,i.OPERATOR])||t(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(I)){var fe=!W;this.handle_whitespace_and_comments(I,fe)}if(I.text==="*"&&this._flags.last_token.type===i.DOT){this.print_token(I);return}if(I.text==="::"){this.print_token(I);return}if(this._flags.last_token.type===i.OPERATOR&&t(this._options.operator_position,u)&&this.allow_wrap_or_preserved_newline(I),I.text===":"&&this._flags.in_case){this.print_token(I),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==i.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 le=!0,Ce=!0,Oe=!1;if(I.text===":"?this._flags.ternary_depth===0?le=!1:(this._flags.ternary_depth-=1,Oe=!0):I.text==="?"&&(this._flags.ternary_depth+=1),!Q&&!W&&this._options.preserve_newlines&&t(I.text,n)){var Re=I.text===":",Le=Re&&Oe,Pe=Re&&!Oe;switch(this._options.operator_position){case c.before_newline:this._output.space_before_token=!Pe,this.print_token(I),(!Re||Le)&&this.allow_wrap_or_preserved_newline(I),this._output.space_before_token=!0;return;case c.after_newline:this._output.space_before_token=!0,!Re||Le?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(I):this._output.space_before_token=!1,this.print_token(I),this._output.space_before_token=!0;return;case c.preserve_newline:Pe||this.allow_wrap_or_preserved_newline(I),le=!(this._output.just_added_newline()||Pe),this._output.space_before_token=le,this.print_token(I),this._output.space_before_token=!0;return}}if(W){this.allow_wrap_or_preserved_newline(I),le=!1;var _e=this._tokens.peek();Ce=_e&&t(_e.type,[i.WORD,i.RESERVED])}else if(I.text==="...")this.allow_wrap_or_preserved_newline(I),le=this._flags.last_token.type===i.START_BLOCK,Ce=!1;else if(t(I.text,["--","++","!","~"])||Q){if((this._flags.last_token.type===i.COMMA||this._flags.last_token.type===i.START_EXPR)&&this.allow_wrap_or_preserved_newline(I),le=!1,Ce=!1,I.newlines&&(I.text==="--"||I.text==="++"||I.text==="~")){var N=E(this._flags.last_token,_)&&I.newlines;N&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(N,!0)}this._flags.last_token.text===";"&&L(this._flags.mode)&&(le=!0),this._flags.last_token.type===i.RESERVED?le=!0:this._flags.last_token.type===i.END_EXPR?le=!(this._flags.last_token.text==="]"&&(I.text==="--"||I.text==="++")):this._flags.last_token.type===i.OPERATOR&&(le=t(I.text,["--","-","++","+"])&&t(this._flags.last_token.text,["--","-","++","+"]),t(I.text,["+","-"])&&t(this._flags.last_token.text,["--","++"])&&(Ce=!0)),(this._flags.mode===l.BlockStatement&&!this._flags.inline_frame||this._flags.mode===l.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||le,this.print_token(I),this._output.space_before_token=Ce},M.prototype.handle_block_comment=function(I,W){if(this._output.raw){this._output.add_raw_token(I),I.directives&&I.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(I.directives){this.print_newline(!1,W),this.print_token(I),I.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(I.text)&&!I.newlines){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0;return}else this.print_block_commment(I,W)},M.prototype.print_block_commment=function(I,W){var Q=p(I.text),fe,le=!1,Ce=!1,Oe=I.whitespace_before,Re=Oe.length;if(this.print_newline(!1,W),this.print_token_line_indentation(I),this._output.add_token(Q[0]),this.print_newline(!1,W),Q.length>1){for(Q=Q.slice(1),le=D(Q,"*"),Ce=x(Q,Oe),le&&(this._flags.alignment=1),fe=0;fe=0;a--)if(this.__items[a].match(o))return!0;return!1},S.prototype.set_indent=function(o,a){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},S.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)},S.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},S.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},S.prototype.is_empty=function(){return this.__items.length===0},S.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},S.prototype.push=function(o){this.__items.push(o);var a=o.lastIndexOf(`
`);a!==-1?this.__character_count=o.length-a:this.__character_count+=o.length},S.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},S.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},S.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},S.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},S.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function f(o,a){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),a=a||"",o.indent_level>0&&(a=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}f.prototype.get_indent_size=function(o,a){var r=this.__base_string_length;return a=a||0,o<0&&(r=0),r+=o*this.__indent_size,r+=a,r},f.prototype.get_indent_string=function(o,a){var r=this.__base_string;return a=a||0,o<0&&(o=0,r=""),a+=o*this.__indent_size,this.__ensure_cache(a),r+=this.__cache[a],r},f.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},f.prototype.__add_column=function(){var o=this.__cache.length,a=0,r="";this.__indent_size&&o>=this.__indent_size&&(a=Math.floor(o/this.__indent_size),o-=a*this.__indent_size,r=new Array(a+1).join(this.__indent_string)),o&&(r+=new Array(o+1).join(" ")),this.__cache.push(r)};function d(o,a){this.__indent_cache=new f(o,a),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new S(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}d.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},d.prototype.get_line_number=function(){return this.__lines.length},d.prototype.get_indent_string=function(o,a){return this.__indent_cache.get_indent_string(o,a)},d.prototype.get_indent_size=function(o,a){return this.__indent_cache.get_indent_size(o,a)},d.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},d.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},d.prototype.get_code=function(o){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var r=this.__lines.join(`
`);return o!==`
`&&(r=r.replace(/[\n]/g,o)),r},d.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},d.prototype.set_indent=function(o,a){return o=o||0,a=a||0,this.next_line.set_indent(o,a),this.__lines.length>1?(this.current_line.set_indent(o,a),!0):(this.current_line.set_indent(),!1)},d.prototype.add_raw_token=function(o){for(var a=0;a1&&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},d.prototype.just_added_newline=function(){return this.current_line.is_empty()},d.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},d.prototype.ensure_empty_line_above=function(o,a){for(var r=this.__lines.length-2;r>=0;){var h=this.__lines[r];if(h.is_empty())break;if(h.item(0).indexOf(o)!==0&&h.item(-1)!==a){this.__lines.splice(r+1,0,new S(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=d},function(e){function S(f,d,o,a){this.type=f,this.text=d,this.comments_before=null,this.newlines=o||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=S},function(e,S){var f="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",d="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\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",a="\\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",r="(?:\\\\u[0-9a-fA-F]{4}|["+f+o+"])",h="(?:\\\\u[0-9a-fA-F]{4}|["+d+o+a+"])*";S.identifier=new RegExp(r+h,"g"),S.identifierStart=new RegExp(r),S.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+d+o+a+"])+");var s=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;S.newline=/[\n\r\u2028\u2029]/,S.lineBreak=new RegExp(`\r
|`+S.newline.source),S.allLineBreaks=new RegExp(S.lineBreak.source,"g")},function(e,S,f){var d=f(6).Options,o=["before-newline","after-newline","preserve-newline"];function a(r){d.call(this,r,"js");var h=this.raw_options.brace_style||null;h==="expand-strict"?this.raw_options.brace_style="expand":h==="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 n=0;n>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),y=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";y=y.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),y="\\?\\.(?!\\d) "+y,y=y.replace(/ /g,"|");var c=new RegExp(y),u="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),l=u.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),v=new RegExp("^(?:"+l.join("|")+")$"),p,T=function(D,x){o.call(this,D,x),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var M=new s(this._input),j=new n(this._input).read_options(this._options);this.__patterns={template:j,identifier:j.starting_with(h.identifier).matching(h.identifierMatch),number:M.matching(m),punct:M.matching(c),comment:M.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:M.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:M.matching(//),include:M.starting_with(/#include/).until_after(h.lineBreak),shebang:M.starting_with(/#!/).until_after(h.lineBreak),xml:M.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:j.until(/['\\\n\r\u2028\u2029]/),double_quote:j.until(/["\\\n\r\u2028\u2029]/),template_text:j.until(/[`\\$]/),template_expression:j.until(/[`}\\]/)}};T.prototype=new o,T.prototype._is_comment=function(D){return D.type===t.COMMENT||D.type===t.BLOCK_COMMENT||D.type===t.UNKNOWN},T.prototype._is_opening=function(D){return D.type===t.START_BLOCK||D.type===t.START_EXPR},T.prototype._is_closing=function(D,x){return(D.type===t.END_BLOCK||D.type===t.END_EXPR)&&x&&(D.text==="]"&&x.text==="["||D.text===")"&&x.text==="("||D.text==="}"&&x.text==="{")},T.prototype._reset=function(){p=!1},T.prototype._get_next_token=function(D,x){var M=null;this._readWhitespace();var j=this._input.peek();return j===null?this._create_token(t.EOF,""):(M=M||this._read_non_javascript(j),M=M||this._read_string(j),M=M||this._read_word(D),M=M||this._read_singles(j),M=M||this._read_comment(j),M=M||this._read_regexp(j,D),M=M||this._read_xml(j,D),M=M||this._read_punctuation(),M=M||this._create_token(t.UNKNOWN,this._input.next()),M)},T.prototype._read_word=function(D){var x;if(x=this.__patterns.identifier.read(),x!=="")return x=x.replace(h.allLineBreaks,`
`),!(D.type===t.DOT||D.type===t.RESERVED&&(D.text==="set"||D.text==="get"))&&v.test(x)?(x==="in"||x==="of")&&(D.type===t.WORD||D.type===t.STRING)?this._create_token(t.OPERATOR,x):this._create_token(t.RESERVED,x):this._create_token(t.WORD,x);if(x=this.__patterns.number.read(),x!=="")return this._create_token(t.WORD,x)},T.prototype._read_singles=function(D){var x=null;return D==="("||D==="["?x=this._create_token(t.START_EXPR,D):D===")"||D==="]"?x=this._create_token(t.END_EXPR,D):D==="{"?x=this._create_token(t.START_BLOCK,D):D==="}"?x=this._create_token(t.END_BLOCK,D):D===";"?x=this._create_token(t.SEMICOLON,D):D==="."&&E.test(this._input.peek(1))?x=this._create_token(t.DOT,D):D===","&&(x=this._create_token(t.COMMA,D)),x&&this._input.next(),x},T.prototype._read_punctuation=function(){var D=this.__patterns.punct.read();if(D!=="")return D==="="?this._create_token(t.EQUALS,D):D==="?."?this._create_token(t.DOT,D):this._create_token(t.OPERATOR,D)},T.prototype._read_non_javascript=function(D){var x="";if(D==="#"){if(this._is_first_token()&&(x=this.__patterns.shebang.read(),x))return this._create_token(t.UNKNOWN,x.trim()+`
`);if(x=this.__patterns.include.read(),x)return this._create_token(t.UNKNOWN,x.trim()+`
`);D=this._input.next();var M="#";if(this._input.hasNext()&&this._input.testChar(g)){do D=this._input.next(),M+=D;while(this._input.hasNext()&&D!=="#"&&D!=="=");return D==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(M+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(M+="{}",this._input.next(),this._input.next())),this._create_token(t.WORD,M)}this._input.back()}else if(D==="<"&&this._is_first_token()){if(x=this.__patterns.html_comment_start.read(),x){for(;this._input.hasNext()&&!this._input.testChar(h.newline);)x+=this._input.next();return p=!0,this._create_token(t.COMMENT,x)}}else if(p&&D==="-"&&(x=this.__patterns.html_comment_end.read(),x))return p=!1,this._create_token(t.COMMENT,x);return null},T.prototype._read_comment=function(D){var x=null;if(D==="/"){var M="";if(this._input.peek(1)==="*"){M=this.__patterns.block_comment.read();var j=b.get_directives(M);j&&j.ignore==="start"&&(M+=b.readIgnored(this._input)),M=M.replace(h.allLineBreaks,`
`),x=this._create_token(t.BLOCK_COMMENT,M),x.directives=j}else this._input.peek(1)==="/"&&(M=this.__patterns.comment.read(),x=this._create_token(t.COMMENT,M))}return x},T.prototype._read_string=function(D){if(D==="`"||D==="'"||D==='"'){var x=this._input.next();return this.has_char_escapes=!1,D==="`"?x+=this._read_string_recursive("`",!0,"${"):x+=this._read_string_recursive(D),this.has_char_escapes&&this._options.unescape_strings&&(x=L(x)),this._input.peek()===D&&(x+=this._input.next()),x=x.replace(h.allLineBreaks,`
`),this._create_token(t.STRING,x)}return null},T.prototype._allow_regexp_or_xml=function(D){return D.type===t.RESERVED&&i(D.text,["return","case","throw","else","do","typeof","yield"])||D.type===t.END_EXPR&&D.text===")"&&D.opened.previous.type===t.RESERVED&&i(D.opened.previous.text,["if","while","for"])||i(D.type,[t.COMMENT,t.START_EXPR,t.START_BLOCK,t.START,t.END_BLOCK,t.OPERATOR,t.EQUALS,t.EOF,t.SEMICOLON,t.COMMA])},T.prototype._read_regexp=function(D,x){if(D==="/"&&this._allow_regexp_or_xml(x)){for(var M=this._input.next(),j=!1,I=!1;this._input.hasNext()&&(j||I||this._input.peek()!==D)&&!this._input.testChar(h.newline);)M+=this._input.peek(),j?j=!1:(j=this._input.peek()==="\\",this._input.peek()==="["?I=!0:this._input.peek()==="]"&&(I=!1)),this._input.next();return this._input.peek()===D&&(M+=this._input.next(),M+=this._input.read(h.identifier)),this._create_token(t.STRING,M)}return null},T.prototype._read_xml=function(D,x){if(this._options.e4x&&D==="<"&&this._allow_regexp_or_xml(x)){var M="",j=this.__patterns.xml.read_match();if(j){for(var I=j[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),W=I.indexOf("{")===0,Q=0;j;){var fe=!!j[1],le=j[2],Ce=!!j[j.length-1]||le.slice(0,8)==="![CDATA[";if(!Ce&&(le===I||W&&le.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(fe?--Q:++Q),M+=j[0],Q<=0)break;j=this.__patterns.xml.read_match()}return j||(M+=this._input.match(/[\s\S]*/g)[0]),M=M.replace(h.allLineBreaks,`
`),this._create_token(t.STRING,M)}}return null};function L(D){for(var x="",M=0,j=new d(D),I=null;j.hasNext();)if(I=j.match(/([\s]|[^\\]|\\\\)+/g),I&&(x+=I[0]),j.peek()==="\\"){if(j.next(),j.peek()==="x")I=j.match(/x([0-9A-Fa-f]{2})/g);else if(j.peek()==="u")I=j.match(/u([0-9A-Fa-f]{4})/g);else{x+="\\",j.hasNext()&&(x+=j.next());continue}if(!I)return D;if(M=parseInt(I[1],16),M>126&&M<=255&&I[0].indexOf("x")===0)return D;if(M>=0&&M<32){x+="\\"+I[0];continue}else M===34||M===39||M===92?x+="\\"+String.fromCharCode(M):x+=String.fromCharCode(M)}return x}T.prototype._read_string_recursive=function(D,x,M){var j,I;D==="'"?I=this.__patterns.single_quote:D==='"'?I=this.__patterns.double_quote:D==="`"?I=this.__patterns.template_text:D==="}"&&(I=this.__patterns.template_expression);for(var W=I.read(),Q="";this._input.hasNext();){if(Q=this._input.next(),Q===D||!x&&h.newline.test(Q)){this._input.back();break}else Q==="\\"&&this._input.hasNext()?(j=this._input.peek(),j==="x"||j==="u"?this.has_char_escapes=!0:j==="\r"&&this._input.peek(1)===`
`&&this._input.next(),Q+=this._input.next()):M&&(M==="${"&&Q==="$"&&this._input.peek()==="{"&&(Q+=this._input.next()),M===Q&&(D==="`"?Q+=this._read_string_recursive("}",x,"`"):Q+=this._read_string_recursive("`",x,"${"),this._input.hasNext()&&(Q+=this._input.next())));Q+=I.read(),W+=Q}return W},e.exports.Tokenizer=T,e.exports.TOKEN=t,e.exports.positionable_operators=_.slice(),e.exports.line_starters=u.slice()},function(e){var S=RegExp.prototype.hasOwnProperty("sticky");function f(d){this.__input=d||"",this.__input_length=this.__input.length,this.__position=0}f.prototype.restart=function(){this.__position=0},f.prototype.back=function(){this.__position>0&&(this.__position-=1)},f.prototype.hasNext=function(){return this.__position=0&&d=0&&o=d.length&&this.__input.substring(o-d.length,o).toLowerCase()===d},e.exports.InputScanner=f},function(e,S,f){var d=f(8).InputScanner,o=f(3).Token,a=f(10).TokenStream,r=f(11).WhitespacePattern,h={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(n,i){this._input=new d(n),this._options=i||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var n,i=new o(h.START,""),t=null,b=[],m=new a;i.type!==h.EOF;){for(n=this._get_next_token(i,t);this._is_comment(n);)m.add(n),n=this._get_next_token(i,t);m.isEmpty()||(n.comments_before=m,m=new a),n.parent=t,this._is_opening(n)?(b.push(t),t=n):t&&this._is_closing(n,t)&&(n.opened=t,t.closed=n,t=b.pop(),n.parent=t),n.previous=i,i.next=n,this.__tokens.add(n),i=n}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(n,i){this._readWhitespace();var t=this._input.read(/.+/g);return t?this._create_token(h.RAW,t):this._create_token(h.EOF,"")},s.prototype._is_comment=function(n){return!1},s.prototype._is_opening=function(n){return!1},s.prototype._is_closing=function(n,i){return!1},s.prototype._create_token=function(n,i){var t=new o(n,i,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return t},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=s,e.exports.TOKEN=h},function(e){function S(f){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=f}S.prototype.restart=function(){this.__position=0},S.prototype.isEmpty=function(){return this.__tokens_length===0},S.prototype.hasNext=function(){return this.__position=0&&f/),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}/)}}a.prototype=new d,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(r){var h=this._create();return h._disabled[r]=!0,h._update(),h},a.prototype.read_options=function(r){var h=this._create();for(var s in o)h._disabled[s]=r.templating.indexOf(s)===-1;return h._update(),h},a.prototype.exclude=function(r){var h=this._create();return h._excluded[r]=!0,h._update(),h},a.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var h=this._read_template();h;)this._match_pattern?h+=this._input.read(this._match_pattern):h+=this._input.readUntil(this.__template_pattern),r+=h,h=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},a.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},a.prototype._read_template=function(){var r="",h=this._input.peek();if(h==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(r=r||this.__patterns.erb.read())}else h==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},e.exports.TemplatablePattern=a}],R={};function H(e){var S=R[e];if(S!==void 0)return S.exports;var f=R[e]={exports:{}};return w[e](f,f.exports,H),f.exports}var U=H(0);A=U})();var k=A;!(ae=[],B=function(){return{js_beautify:k}}.apply(be,ae),B!==void 0&&(Je.exports=B))})()},"746U":function(Je,be,V){"use strict";V.d(be,"f",function(){return ae}),V.d(be,"l",function(){return B}),V.d(be,"k",function(){return A}),V.d(be,"j",function(){return k}),V.d(be,"g",function(){return w}),V.d(be,"m",function(){return R}),V.d(be,"h",function(){return H}),V.d(be,"n",function(){return U}),V.d(be,"c",function(){return e}),V.d(be,"a",function(){return S}),V.d(be,"i",function(){return f}),V.d(be,"o",function(){return d}),V.d(be,"e",function(){return r}),V.d(be,"d",function(){return h}),V.d(be,"p",function(){return s}),V.d(be,"b",function(){return n});function ae(i){return Array.isArray(i)}function B(i){return typeof i=="string"}function A(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)&&!(i instanceof RegExp)&&!(i instanceof Date)}function k(i){return typeof i=="number"&&!isNaN(i)}function w(i){return i===!0||i===!1}function R(i){return typeof i=="undefined"}function H(i){return!U(i)}function U(i){return R(i)||i===null}function e(i,t){if(!i)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function S(i){if(U(i))throw new Error("Assertion Failed: argument is undefined or null");return i}function f(i){return typeof i=="function"}function d(i,t){const b=Math.min(i.length,t.length);for(let m=0;mfunction(){const E=Array.prototype.slice.call(arguments,0);return t(g,E)};let m={};for(const g of i)m[g]=b(g);return m}function s(i){return i===null?void 0:i}function n(i,t="Unreachable"){throw new Error(t)}},"8HAY":function(Je,be,V){"use strict";V.d(be,"a",function(){return w}),V.d(be,"b",function(){return R}),V.d(be,"d",function(){return H}),V.d(be,"e",function(){return U}),V.d(be,"c",function(){return e});var ae=V("MI8n"),B=V("pmY6"),A=V("3/fG"),k=function(S,f,d,o){function a(r){return r instanceof d?r:new d(function(h){h(r)})}return new(d||(d=Promise))(function(r,h){function s(t){try{i(o.next(t))}catch(b){h(b)}}function n(t){try{i(o.throw(t))}catch(b){h(b)}}function i(t){t.done?r(t.value):a(t.value).then(s,n)}i((o=o.apply(S,f||[])).next())})};class w extends B.a{constructor(S,f="",d="",o=!0,a){super();this._onDidChange=this._register(new ae.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=S,this._label=f,this._cssClass=d,this._enabled=o,this._actionCallback=a}get id(){return this._id}get label(){return this._label}set label(S){this._setLabel(S)}_setLabel(S){this._label!==S&&(this._label=S,this._onDidChange.fire({label:S}))}get tooltip(){return this._tooltip||""}set tooltip(S){this._setTooltip(S)}_setTooltip(S){this._tooltip!==S&&(this._tooltip=S,this._onDidChange.fire({tooltip:S}))}get class(){return this._cssClass}set class(S){this._setClass(S)}_setClass(S){this._cssClass!==S&&(this._cssClass=S,this._onDidChange.fire({class:S}))}get enabled(){return this._enabled}set enabled(S){this._setEnabled(S)}_setEnabled(S){this._enabled!==S&&(this._enabled=S,this._onDidChange.fire({enabled:S}))}get checked(){return this._checked}set checked(S){this._setChecked(S)}_setChecked(S){this._checked!==S&&(this._checked=S,this._onDidChange.fire({checked:S}))}run(S,f){return k(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(S))})}}class R extends B.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new ae.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new ae.b),this.onDidRun=this._onDidRun.event}run(S,f){return k(this,void 0,void 0,function*(){if(!S.enabled)return;this._onBeforeRun.fire({action:S});let d;try{yield this.runAction(S,f)}catch(o){d=o}this._onDidRun.fire({action:S,error:d})})}runAction(S,f){return k(this,void 0,void 0,function*(){yield S.run(f)})}}class H extends w{constructor(S){super(H.ID,S,S?"separator text":"separator");this.checked=!1,this.enabled=!1}}H.ID="vs.actions.separator";class U{constructor(S,f,d,o){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=S,this.label=f,this.class=o,this._actions=d}get actions(){return this._actions}dispose(){}run(){return k(this,void 0,void 0,function*(){})}}class e extends w{constructor(){super(e.ID,A.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8hTe":function(Je,be,V){Je.exports={button:"button___1wy9m"}},"9Bee":function(Je,be,V){"use strict";var ae=V("DYRE"),B=V("zeV3"),A=V("+L6B"),k=V("2/Rp"),w=V("k1fw"),R=V("9og8"),H=V("tJVT"),U=V("WmNS"),e=V.n(U),S=V("q1tI"),f=V.n(S),d=V("vg9a"),o=V("DlQD"),a=V.n(o),r=V("rUJ1");function h(q,K){var G=q.match(/^(\s+)(?:```)/);if(G===null)return K;var Z=G[1];return K.split(`
`).map(function(te){var X=te.match(/^\s+/);if(X===null)return te;var $=Object(H.a)(X,1),ne=$[0];return ne.length>=Z.length?te.slice(Z.length):te}).join(`
`)}var s=[],n=[""],i=new a.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){s.length=0,n=[""]}var m={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function g(q,K,G,Z){if(K>=q.length||q[K].level<=G)return K;var te=q[K];Z.push("- "+te.text+""),K++;var X=[];return K=g(q,K,te.level,X),X.length>0&&(Z.push("
"),X.forEach(function($){Z.push($)}),Z.push("
")),Z.push(" "),K=g(q,K,G,Z),K}function E(){return g(s,0,0,n),n.push("
"),n.join("")}var _={heading:function(K){var G=t.exec(K);if(G)return{type:"heading",raw:G[0],depth:G[1].length,text:G[2]}},fences:function(K){var G=this.rules.block.fences.exec(K);if(G){var Z=G[0],te=h(Z,G[3]||""),X=G[2]?G[2].trim():G[2];if(["latex","katex","math"].indexOf(X)>=0){var $=u(),ne=te;te=$,l[$]={type:"block",expression:ne}}return{type:"code",raw:Z,lang:X,text:te}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,c=0,u=function(){return"__special_katext_id_".concat(c++,"__")},l={};function v(){return l}function p(){c=0,l={}}function T(q){return q=q.replace(y,function(K,G){var Z=u();return l[Z]={type:"inline",expression:G},Z}),q}var L=i.listitem;i.listitem=function(q){return L(T(q))};var D=i.paragraph;i.paragraph=function(q){return D(T(q))};var x=i.tablecell;i.tablecell=function(q,K){return x(T(q),K)},i.code=function(q,K,G){var Z=(K||"").match(/\S*/)[0];return Z?["latex","katex","math"].indexOf(Z)>=0?"".concat(q,"
"):'
').concat(G?q:Object(r.escape)(q,!0),`
`):''+(G?q:Object(r.escape)(q,!0))+"
"},i.heading=function(q,K,G){var Z=this.options.headerPrefix+G.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:Z,level:K,text:q}),"'+q+""},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:_,renderer:i});var M=a.a,j=V("SJMd"),I=V("ulZh"),W=V.n(I),Q=V("m3rI"),fe=V("Oy/b"),le=V("p5ED"),Ce=V("ErOA"),Oe=V("STEk");/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Re=function(q,K){return(Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var te in Z)Object.prototype.hasOwnProperty.call(Z,te)&&(G[te]=Z[te])})(q,K)};function Le(q,K){if(typeof K!="function"&&K!==null)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function G(){this.constructor=q}Re(q,K),q.prototype=K===null?Object.create(K):(G.prototype=K.prototype,new G)}function Pe(q,K,G,Z){return new(G||(G=Promise))(function(te,X){function $(Te){try{se(Z.next(Te))}catch(Ee){X(Ee)}}function ne(Te){try{se(Z.throw(Te))}catch(Ee){X(Ee)}}function se(Te){var Ee;Te.done?te(Te.value):(Ee=Te.value,Ee instanceof G?Ee:new G(function(De){De(Ee)})).then($,ne)}se((Z=Z.apply(q,K||[])).next())})}function _e(q,K){var G,Z,te,X,$={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return X={next:ne(0),throw:ne(1),return:ne(2)},typeof Symbol=="function"&&(X[Symbol.iterator]=function(){return this}),X;function ne(se){return function(Te){return function(Ee){if(G)throw new TypeError("Generator is already executing.");for(;$;)try{if(G=1,Z&&(te=2&Ee[0]?Z.return:Ee[0]?Z.throw||((te=Z.return)&&te.call(Z),0):Z.next)&&!(te=te.call(Z,Ee[1])).done)return te;switch(Z=0,te&&(Ee=[2&Ee[0],te.value]),Ee[0]){case 0:case 1:te=Ee;break;case 4:return $.label++,{value:Ee[1],done:!1};case 5:$.label++,Z=Ee[1],Ee=[0];continue;case 7:Ee=$.ops.pop(),$.trys.pop();continue;default:if(!(te=$.trys,(te=te.length>0&&te[te.length-1])||Ee[0]!==6&&Ee[0]!==2)){$=0;continue}if(Ee[0]===3&&(!te||Ee[1]>te[0]&&Ee[1]0&&G>0){var Z=new de(K,G),te=Z.ratio>=1?20:Z.getHorizontalLength(20),X=Z.ratio<1?20:Z.getVerticalLength(20),$=document.createElementNS("http://www.w3.org/2000/svg","svg");$.setAttribute("xmlns","http://www.w3.org/2000/svg"),$.setAttribute("viewBox","0 0 24 24"),document.body.appendChild($);var ne=O.createDefs();$.appendChild(ne);var se=O.createElement("clipPath",[["id","text-bg-clip"]]);ne.appendChild(se);var Te=O.createPath(O.getHollowRectanglePath((24-te)/2,(24-X)/2,te,X,(24-te)/2+2,(24-X)/2+2,te-4,X-4));$.appendChild(Te);var Ee=O.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ee.appendChild(O.createTSpan(K+":"+G)),$.appendChild(Ee);var De=Ee.getBBox();O.setAttributes(Ee,[["x",((24-De.width)/2).toString()],["y",((24-De.height)/2-De.y).toString()]]);var Ge=O.createPath(O.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(De.width))/2,(24-Math.ceil(De.height))/2,Math.ceil(De.width),Math.ceil(De.height)));return se.appendChild(Ge),O.setAttributes(Te,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild($),$.outerHTML}return''},q}(),xe=function(q){function K(G,Z,te){var X=q.call(this,G,Z)||this;return X.isDropdownOpen=!1,X.onClick=X.dropdownButtonClicked,X.dropdownButtons=te,X}return Le(K,q),K.prototype.setupDropdown=function(){var G=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(Z){Z.className=G.className,Z.colorsClassName=G.colorsClassName,G.dropdownBlock.appendChild(Z.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},K.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},K.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},K.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},K.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},K.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},K}(Ae),Me=function(){function q(K,G){this.GRIP_SIZE=10,this.color=K,this.fillColor=G,this.visual=O.createGroup(),this.visual.appendChild(O.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(O.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return q.prototype.ownsTarget=function(K){return K===this.visual||K===this.visual.childNodes[0]||K===this.visual.childNodes[1]},q.prototype.setCenter=function(K,G){this.visual.childNodes.forEach(function(Z){return O.setAttributes(Z,[["cx",K.toString()],["cy",G.toString()]])})},q}(),Ue=function(){function q(K,G,Z,te){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=K,this.canvasHeight=G,this.margin=Z,this.container=te,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(q.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(K){this._aspectRatio=K,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(K){this._isGridVisible=K,this.gridContainer&&O.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(K){this._zoomFactor=K,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),q.prototype.open=function(){var K=this;this.cropShadeElement=O.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=O.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var G=0;Gthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-G.height/2),O.setAttributes(this.cropRectElement,[["x",G.x.toString()],["y",G.y.toString()],["width",G.width.toString()],["height",G.height.toString()]]);var Z=G.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(X,$){var ne=G.y+Z*($+1);O.setAttributes(X,[["x1",""+G.x],["y1",""+ne],["x2",""+(G.x+G.width)],["y2",""+ne]])});var te=G.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(X,$){var ne=G.x+te*($+1);O.setAttributes(X,[["x1",""+ne],["y1",""+G.y],["x2",""+ne],["y2",""+(G.y+G.height)]])}),O.setAttributes(this.cropShadeElement,[["d",O.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,G.x,G.y,G.width,G.height)]]),this.topLeftGrip.setCenter(G.x,G.y),this.topRightGrip.setCenter(G.x+G.width,G.y),this.bottomLeftGrip.setCenter(G.x,G.y+G.height),this.bottomRightGrip.setCenter(G.x+G.width,G.y+G.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},q.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},q.prototype.clientToLocalCoordinates=function(K,G){var Z=this.container.getBoundingClientRect();return{x:K-Z.left+this.margin,y:G-Z.top+this.margin}},q.prototype.onPointerDown=function(K){this.container.setPointerCapture(K.pointerId),this.previousPoint=this.clientToLocalCoordinates(K.clientX,K.clientY),this.cropRectElement===K.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(K.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(K.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(K.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(K.target)&&(this.activeGrip=this.bottomRightGrip)},q.prototype.onPointerMove=function(K){if(this.isMoving)this.move(this.clientToLocalCoordinates(K.clientX,K.clientY));else if(this.activeGrip){var G=this.clientToLocalCoordinates(K.clientX,K.clientY);this.resize(G)}K.preventDefault()},q.prototype.onPointerUp=function(K){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(K.pointerId)},q.prototype.move=function(K){var G=K.x-this.previousPoint.x,Z=K.y-this.previousPoint.y;this.zoomFactor!==1&&(G=-G/this.zoomFactor,Z=-Z/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+G),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+Z),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=K},q.prototype.resize=function(K){var G=Object.assign({},this.cropRect),Z=K.x-this.previousPoint.x,te=K.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:G.x+Zthis.canvasWidth*this.zoomFactor&&(Z=this.canvasWidth*this.zoomFactor-G.width),G.width+=Z}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(G.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(Z),G.height=this.aspectRatio.getVerticalLength(G.width)):(G.y+=te,G.height=this.cropRect.y+this.cropRect.height-G.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?G.height=this.aspectRatio.getVerticalLength(G.width):G.height+=te}G.width<10&&(G.x=this.cropRect.x,G.width=10),G.height<10&&(G.y=this.cropRect.y,G.height=10),this.previousPoint=K,G.x>=this.margin&&G.y>=this.margin&&G.x-this.margin+G.width<=this.canvasWidth&&G.y-this.margin+G.height<=this.canvasHeight&&(this.cropRect=G,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},q.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var K=this.cropRect.x+this.cropRect.width/2,G=this.cropRect.y+this.cropRect.height/2,Z=this.aspectRatio.getHorizontalLength(this.cropRect.height),te=this.aspectRatio.getVerticalLength(this.cropRect.width);Z/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=K-this.cropRect.width/2,this.cropRect.y=G-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},q.prototype.getRescaledRect=function(K,G,Z,te,X,$){var ne=Z/K,se=te/G;return{x:(X.x-$)*ne+$,y:(X.y-$)*se+$,width:X.width*ne,height:X.height*se}},q.prototype.scaleCanvas=function(K,G){var Z=this.getRescaledRect(this.canvasWidth,this.canvasHeight,K,G,this.cropRect,this.margin);this.canvasWidth=K,this.canvasHeight=G,this.onCropChange&&this.onCropChange(Z),this.setCropRectangle(Z)},q}(),He=function(){function q(K){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=K,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(q.prototype,"angle",{get:function(){return this._angle},set:function(K){this._angle=K,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),q.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},q.prototype.onPointerDown=function(K){this.controlContainer.setPointerCapture(K.pointerId),this.isDragging=!0,this.previousPoint={x:K.clientX,y:K.clientY}},q.prototype.onPointerMove=function(K){this.isDragging&&(this.onAngleChange&&this.onAngleChange((K.clientX-this.previousPoint.x)/5),this.previousPoint.x=K.clientX)},q.prototype.onPointerUp=function(K){this.isDragging&&this.onAngleChange&&this.onAngleChange((K.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(K.pointerId)},q.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var K=this.angleLabelText.getBBox();O.setAttributes(this.angleLabelElement,[["x",((this.width-K.width)/2).toString()],["y",(this.height/2).toString()]])}},q.prototype.positionScaleShape=function(){if(this.scaleShape){var K=this.scaleShape.transform.baseVal.getItem(0);K.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(K,0)}},q.prototype.getVisual=function(){var K=document.createElementNS("http://www.w3.org/2000/svg","svg");K.setAttribute("xmlns","http://www.w3.org/2000/svg"),K.setAttribute("width",this.width+"px"),K.setAttribute("height",this.height+"px"),K.setAttribute("viewBox","0 0 "+this.width+" "+this.height),K.style.flexShrink="0",document.body.appendChild(K);for(var G="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,Z=1;Z<=this.width/5+10;Z++){var te=Z%5==0?this.height/3:this.height/6;G+="h4v"+-te+"h1v"+te}G+="v1H0Z",this.scaleShape=O.createPath(G);var X=O.createTransform();this.scaleShape.transform.baseVal.appendItem(X),K.appendChild(this.scaleShape),this.angleLabelElement=O.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=O.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var $=O.createTSpan("");return $.innerHTML="°",this.angleLabelElement.appendChild($),K.appendChild(this.angleLabelElement),document.body.removeChild(K),K},q}(),Be=function(){function q(){this.naturalSize=!1,this.imageType="image/png"}return q.prototype.rasterize=function(K,G,Z,te,X,$,ne){var se=this;return new Promise(function(Te){var Ee=document.createElement("canvas");Ee.width=K.width.baseVal.value-2*te,Ee.height=K.height.baseVal.value-2*te;var De=1,Ge=1;se.naturalSize===!0?(De=G.naturalWidth/(K.width.baseVal.value-2*te)/$,Ge=G.naturalHeight/(K.height.baseVal.value-2*te)/ne,Ee.width=G.naturalWidth/$,Ee.height=G.naturalHeight/ne):se.width!==void 0&&se.height!==void 0&&(De=se.width/Z.width,Ge=se.height/Z.height,Ee.width*=De,Ee.height*=Ge);var Ze=Ee.getContext("2d");Ze.translate(Ee.width/2,Ee.height/2),Ze.rotate(X*Math.PI/180),Ze.scale($,ne),Ze.translate(-Ee.width/2,-Ee.height/2),Ze.drawImage(G,0,0,Ee.width,Ee.height);var Qe=document.createElement("canvas");Qe.width=Z.width*De,Qe.height=Z.height*Ge,Qe.getContext("2d").putImageData(Ze.getImageData((Z.x-te)*De,(Z.y-te)*Ge,Z.width*De,Z.height*Ge),0,0),Te(Qe.toDataURL(se.imageType,se.imageQuality))})},q}(),ze=function(){function q(K){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=q.instanceCounter++,this.styles=new C(this.instanceNo),this.target=K,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(q.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(K){this._zoomToCropEnabled=K,K?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(K){this._isGridVisible=K,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"gridLines",{get:function(){return this._gridLines},set:function(K){this._gridLines=K,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(K){this._rotationAngle=K,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"aspectRatio",{get:function(){var K;return(K=this._aspectRatio)!==null&&K!==void 0?K:this.aspectRatios[0]},set:function(K){this._aspectRatio=K},enumerable:!1,configurable:!0}),q.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},q.prototype.show=function(){this.showUI(),this.open()},q.prototype.close=function(K){K===void 0&&(K=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),K||this.closeEventListeners.forEach(function(G){return G()}),this._isOpen=!1)},q.prototype.addRenderEventListener=function(K){this.renderEventListeners.push(K)},q.prototype.removeRenderEventListener=function(K){this.renderEventListeners.indexOf(K)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(K),1)},q.prototype.addCloseEventListener=function(K){this.closeEventListeners.push(K)},q.prototype.removeCloseEventListener=function(K){this.closeEventListeners.indexOf(K)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(K),1)},q.prototype.setupResizeObserver=function(){var K=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){K.resize(K.target.clientWidth,K.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},q.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var K=1*this.target.clientWidth/this.target.clientHeight,G=this.contentDiv.clientWidth/K>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*K:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,Z=G+2*this.CANVAS_MARGINK+this.CANVAS_MARGIN?this.target.offsetTop-(K+this.CANVAS_MARGIN):0;this.coverDiv.style.top=G+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},q.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},q.prototype.addTopToolbar=function(){var K=this;this.topToolbar=new P,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var G=new we;G.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(G);var Z=[];this.aspectRatios.forEach(function(Ge){var Ze=new Ae(ge.getIcon(Ge.horizontal,Ge.vertical),Ge.horizontal===0&&Ge.vertical===0?"FREE":Ge.horizontal+":"+Ge.vertical);Ze.onClick=function(){return K.ratioButtonClicked(Ge)},Z.push(Ze)}),this.aspectRatioButton=new xe(ge.getIcon(0,0),"Aspect ratio",Z),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,G.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var te=new Ae('',"Toggle grid");te.isActive=this.isGridVisible,te.onClick=function(){K.isGridVisible=!K.isGridVisible,te.isActive=K.isGridVisible},G.addButton(te);var X=new Ae('',"Zoom to selection");if(X.isActive=this.zoomToCropEnabled,X.onClick=function(){K.zoomToCropEnabled=!K.zoomToCropEnabled,X.isActive=K.zoomToCropEnabled},G.addButton(X),!N.isLicensed){var $=new ee;this.topToolbar.addElementBlock($);var ne=document.createElement("div");ne.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var se=document.createElement("a");se.style.color="currentColor",se.href="https://markerjs.com/products/cropro",se.target="_blank",se.innerHTML='',ne.appendChild(se),$.addElement(ne)}var Te=new we;Te.minWidth=3*this.toolbarHeight+"px",Te.contentAlign="end",this.topToolbar.addButtonBlock(Te);var Ee=new Ae('',"OK");Ee.onClick=this.startRenderAndClose,Te.addButton(Ee),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ee.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var De=new Ae('',"Close");De.onClick=this.close,Te.addButton(De),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(De.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},q.prototype.addBottomToolbar=function(){var K=this;this.bottomToolbar=new P,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var G=new we;G.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(G);var Z=new Ae('',"Rotate left");Z.onClick=this.rotateLeftButtonClicked,G.addButton(Z);var te=new Ae('',"Rotate right");te.onClick=this.rotateRightButtonClicked,G.addButton(te);var X=new ee;X.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(X),this.straightener=new He("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Te){K.rotateBy(Te),K.straightener.angle=K.rotationAngle},X.addElement(this.straightener.getUI());var $=new we;$.minWidth=2*this.toolbarHeight+"px",$.contentAlign="end",this.bottomToolbar.addButtonBlock($);var ne=new Ae('',"Flip horizontal");ne.onClick=this.flipHorizontallyButtonClicked,$.addButton(ne);var se=new Ae('',"Flip vertical");se.onClick=this.flipVerticallyButtonClicked,$.addButton(se)},q.prototype.ratioButtonClicked=function(K){this.aspectRatio=K,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},q.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=ge.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},q.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new de(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},q.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},q.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},q.prototype.restoreState=function(K){if(K){var G=this.cropLayer.getRescaledRect(K.width,K.height,this.imageWidth,this.imageHeight,K.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(G),this.cropRectChanged(G),this.flippedHorizontally=K.flippedHorizontally,this.flippedVertically=K.flippedVertically,this.applyFlip(),this.rotationAngle=K.rotationAngle,this.applyRotation()}},q.prototype.clientToLocalCoordinates=function(K,G){var Z=this.cropImage.getBoundingClientRect();return{x:K-Z.left,y:G-Z.top}},q.prototype.onWindowResize=function(){this.positionUI()},q.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var K=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=K+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},q.prototype.rotateLeftButtonClicked=function(){var K=this.rotationAngle-90;this.rotationAngle%90!=0&&(K+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(K)},q.prototype.rotateRightButtonClicked=function(){var K=this.rotationAngle+90;this.rotationAngle%90!=0&&(K-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(K)},q.prototype.rotateTo=function(K){K=(K=K>180?K-360:K)<=-180?K+360:K,this.rotationAngle=K,this.applyRotation()},q.prototype.rotateBy=function(K){this.rotateTo((this.rotationAngle+K)%360)},q.prototype.applyRotation=function(){var K=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var G=this.editingTargetRotationContainer.transform.baseVal.getItem(0);G.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(G,0);var Z=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/Z.width,this.imageHeight/Z.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=K},q.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},q.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},q.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},q.prototype.startRenderAndClose=function(){return Pe(this,void 0,void 0,function(){var K,G;return _e(this,function(Z){switch(Z.label){case 0:return[4,this.render()];case 1:return K=Z.sent(),G=this.getState(),this.renderEventListeners.forEach(function(te){return te(K,G)}),this.close(!0),[2]}})})},q.prototype.render=function(){return Pe(this,void 0,void 0,function(){var K;return _e(this,function(G){switch(G.label){case 0:return(K=new Be).naturalSize=this.renderAtNaturalSize,K.imageType=this.renderImageType,K.imageQuality=this.renderImageQuality,K.width=this.renderWidth,K.height=this.renderHeight,this.unzoomFromCrop(),O.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,K.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return G.sent(),[4,K.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,G.sent()]}})})},q.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new z("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new z("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new z("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var K=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new z("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*K)+`px;
height: `+(this.toolbarHeight-2*K)+`px;
padding: `+K+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new z("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new z("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new F("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new F("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new z("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new z("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new z("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new z("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*K)+`px;
padding: `+K+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new z("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},q.instanceCounter=0,q}(),We=V("8hTe"),Ke=V.n(We),Fe=/]*>/g;function Ye(q){var K=document.createElement("div");return K.innerHTML=q,K.childNodes.length===0?"":K.childNodes[0].nodeValue}var $e=be.a=function(q){var K=q.value,G=K===void 0?"":K,Z=q.edit,te=Z===void 0?!1:Z,X=q.className,$=q.showTextOnly,ne=q.showLines,se=q.replaces,Te=q.zoomImg,Ee=q.hasMask,De=q.style,Ge=De===void 0?{}:De,Ze=q.stylesPrev,Qe=Ze===void 0?{}:Ze,vt=String(G),it=Object(S.useRef)(),Xe=Object(S.useRef)(),Mt=Object(S.useState)(""),Tt=Object(H.a)(Mt,2),kt=Tt[0],Nt=Tt[1],lt=Object(S.useState)("office"),Kt=Object(H.a)(lt,2),Zt=Kt[0],Gt=Kt[1],ai=function(){var wt=new ze(Xe.current);wt.displayMode="popup",wt.addRenderEventListener(function(){var xt=Object(R.a)(e.a.mark(function ut(zt){var Ot;return e.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return it.current.style.display="none",Bt.next=3,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:zt}});case 3:Ot=Bt.sent,Ot!=null&&Ot.id&&se(Xe.current.getAttribute("src").replace(Q.a.API_SERVER,""),"/api/attachments/".concat(Ot==null?void 0:Ot.id,"?type=").concat(Ot.content_type));case 5:case"end":return Bt.stop()}},ut)}));return function(ut){return xt.apply(this,arguments)}}()),wt.show()},nt=function(){var wt=new Oe.a(Xe.current);wt.settings.displayMode="popup",wt.addEventListener("render",function(){var xt=Object(R.a)(e.a.mark(function ut(zt){var Ot;return e.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(it.current.style.display="none",!Xe.current){Bt.next=6;break}return Bt.next=4,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:zt.dataUrl}});case 4:Ot=Bt.sent,Ot!=null&&Ot.id&&se(Xe.current.getAttribute("src").replace(Q.a.API_SERVER,""),"/api/attachments/".concat(Ot==null?void 0:Ot.id,"?type=").concat(Ot.content_type));case 6:case"end":return Bt.stop()}},ut)}));return function(ut){return xt.apply(this,arguments)}}()),wt.show(),window.markerArea=wt},rt=Object(S.useMemo)(function(){it.current&&(it.current.style.zIndex=-1);try{var Wt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,wt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;vt=vt.replace(Wt,"("+Q.a.API_SERVER+"/api/attachments/").replace(wt,'"'+Q.a.API_SERVER+"/api/attachments/").replace(xt,'"'+Q.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(oi){}var ut=M(vt),zt=v();if(vt.match(/\[TOC\]/)&&(ut=ut.replace("[TOC]
",E()),b()),ut=ut.replace(/(__special_katext_id_\d+__)/g,function(oi,Bt){var ui=zt[Bt],_i=ui.type,Ei=ui.expression;return Object(fe.renderToString)(Ye(Ei)||"",{displayMode:_i==="block",throwOnError:!1,output:"html"})}),ut=ut.replace(/▁/g,"\u2581\u2581\u2581"),p(),$){var Ot=document.createElement("div");return Ot.innerHTML=ut,Ot.innerText}return setTimeout(function(){return qt()},500),ut},[vt]),Et=Object(S.useRef)();m.WebkitLineClamp=ne,ne&&(Ge=Object(w.a)(Object(w.a)({},Ge),m));function Ft(Wt){var wt=Wt.target;if(wt.tagName.toUpperCase()==="IMG"){if(Te){var xt=wt.getAttribute("src");Nt(xt),Gt("image")}}else if(wt.tagName.toUpperCase()==="A"){var ut=wt.getAttribute("href");if(ut.indexOf("office")>-1)Wt.preventDefault(),Nt(ut),Gt("office");else if(ut.indexOf("application/pdf")>-1)Wt.preventDefault(),Nt(ut),Gt("pdf");else if(ut.indexOf("text/html")>-1)Wt.preventDefault(),Nt(ut),Gt("html");else if(ut.startsWith("#")){Wt.preventDefault();var zt=document.getElementById(ut.replace("#",""));zt&&zt.scrollIntoView(!0)}}}var qt=function(){var wt,xt=(wt=Et.current)===null||wt===void 0?void 0:wt.querySelectorAll("video");xt==null||xt.forEach(function(ut){if(ut.oncontextmenu=function(){return!1},ut.src.indexOf(".m3u8")>-1&&!ut.canPlayType("application/vnd.apple.mpegurl")){if(W.a.isSupported()){var zt=new W.a;zt.loadSource(ut.src),zt.attachMedia(ut)}}})};Object(S.useEffect)(function(){if(Et.current&&rt&&(rt.match(Fe)&&window.PR.prettyPrint()),Et.current)return Et.current.addEventListener("click",Ft),function(){Et.current.removeEventListener("click",Ft),p(),b()}},[rt,Et.current,Ft]);var pi=function(wt){if(!te)return;wt.target.nodeName==="IMG"?(it.current.style.zIndex=1,it.current.style.display="flex",it.current.style.width=wt.target.clientWidth+"px",it.current.style.height=wt.target.clientHeight+"px",it.current.style.top=wt.target.offsetTop+"px",it.current.style.left=wt.target.offsetLeft+"px",Xe.current.src=wt.target.getAttribute("src")):it.current.style.display="none"};return f.a.createElement("div",{style:{position:"relative"}},f.a.createElement("div",{ref:Et,style:Object(w.a)({},Ge),className:"".concat(X||""," markdown-body ").concat(Ke.a.mdBody),onMouseOver:pi,dangerouslySetInnerHTML:{__html:rt}}),f.a.createElement("div",{ref:it,className:Ke.a.button},f.a.createElement(B.a,null,f.a.createElement(k.a,{onClick:function(){return ai()}},"\u88C1\u526A"),f.a.createElement(k.a,{onClick:function(){return nt()}},"\u7F16\u8F91"))),f.a.createElement("img",{ref:Xe,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),f.a.createElement(le.a,{close:!0,data:kt,type:kt!=null&&kt.length?Zt:"",style:Object(w.a)({},Qe),onClose:function(){return Nt("")}}))}},BU3w:function(Je,be,V){"use strict";V.d(be,"a",function(){return R});var ae=V("MNnm"),B="rc-util-key";function A(H){if(H.attachTo)return H.attachTo;var U=document.querySelector("head");return U||document.body}function k(H){var U,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ae.a)())return null;var S=document.createElement("style");if((U=e.csp)===null||U===void 0?void 0:U.nonce){var f;S.nonce=(f=e.csp)===null||f===void 0?void 0:f.nonce}S.innerHTML=H;var d=A(e),o=d.firstChild;return e.prepend&&d.prepend?d.prepend(S):e.prepend&&o?d.insertBefore(S,o):d.appendChild(S),S}var w=new Map;function R(H,U){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=A(e);if(!w.has(S)){var f=k("",e),d=f.parentNode;w.set(S,d),d.removeChild(f)}var o=Array.from(w.get(S).children).find(function(n){return n.tagName==="STYLE"&&n[B]===U});if(o){var a,r;if(((a=e.csp)===null||a===void 0?void 0:a.nonce)&&o.nonce!==((r=e.csp)===null||r===void 0?void 0:r.nonce)){var h;o.nonce=(h=e.csp)===null||h===void 0?void 0:h.nonce}return o.innerHTML!==H&&(o.innerHTML=H),o}var s=k(H,e);return s[B]=U,s}},BdwD:function(Je,be,V){"use strict";var ae=V("+L6B"),B=V("2/Rp"),A=V("0Owb"),k=V("k1fw"),w=V("q1tI"),R=V.n(w),H=V("FOrL"),U=V.n(H),e=function(f){var d=f.buttonProps,o=d===void 0?{}:d,a=f.styles,r=a===void 0?{}:a,h=f.imgStyles,s=h===void 0?{}:h,n=f.customText,i=f.ButtonText,t=f.ButtonClick,b=f.Buttonclass,m=f.ButtonTwo;return R.a.createElement("section",{className:"tc animated fadeIn",style:Object(k.a)(Object(k.a)({},{color:"#999",margin:"0 auto",padding:"100px 0"}),r)},R.a.createElement("img",{src:U.a,style:Object(k.a)(Object(k.a)({},{width:"200px",height:"150px"}),s)}),R.a.createElement("p",{className:"mt10 font14"},n||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),i&&R.a.createElement(B.a,Object(A.a)({className:b,onClick:t},o),i),m&&m)};be.a=e},"C/vA":function(Je,be,V){"use strict";V.d(be,"a",function(){return ae});function ae(B){const A=this;let k=!1,w;return function(){return k||(k=!0,w=B.apply(A,arguments)),w}}},"Cg/j":function(Je,be,V){"use strict";V.d(be,"b",function(){return ae}),V.d(be,"a",function(){return B}),V.d(be,"c",function(){return k}),V.d(be,"d",function(){return w});var ae;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function H(U){return U[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=H})(ae||(ae={}));const B=k("instantiationService");function A(R,H,U,e){H[ae.DI_TARGET]===H?H[ae.DI_DEPENDENCIES].push({id:R,index:U,optional:e}):(H[ae.DI_DEPENDENCIES]=[{id:R,index:U,optional:e}],H[ae.DI_TARGET]=H)}function k(R){if(ae.serviceIds.has(R))return ae.serviceIds.get(R);const H=function(U,e,S){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");A(H,U,S,!1)};return H.toString=()=>R,ae.serviceIds.set(R,H),H}function w(R){return function(H,U,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");A(R,H,e,!0)}}},DlQD:function(Je,be,V){(function(ae,B){Je.exports=B()})(this,function(){"use strict";function ae(G,Z){for(var te=0;teG.length)&&(Z=G.length);for(var te=0,X=new Array(Z);te=G.length?{done:!0}:{done:!1,value:G[X++]}}}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 te=G[Symbol.iterator](),te.next.bind(te)}function R(G,Z){return Z={exports:{}},G(Z,Z.exports),Z.exports}var H=R(function(G){function Z(){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 te(X){G.exports.defaults=X}G.exports={defaults:Z(),getDefaults:Z,changeDefaults:te}}),U=H.defaults,e=H.getDefaults,S=H.changeDefaults,f=/[&<>"']/,d=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},h=function(Z){return r[Z]};function s(G,Z){if(Z){if(f.test(G))return G.replace(d,h)}else if(o.test(G))return G.replace(a,h);return G}var n=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function i(G){return G.replace(n,function(Z,te){return te=te.toLowerCase(),te==="colon"?":":te.charAt(0)==="#"?te.charAt(1)==="x"?String.fromCharCode(parseInt(te.substring(2),16)):String.fromCharCode(+te.substring(1)):""})}var t=/(^|[^\[])\^/g;function b(G,Z){G=G.source||G,Z=Z||"";var te={replace:function($,ne){return ne=ne.source||ne,ne=ne.replace(t,"$1"),G=G.replace($,ne),te},getRegex:function(){return new RegExp(G,Z)}};return te}var m=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function E(G,Z,te){if(G){var X;try{X=decodeURIComponent(i(te)).replace(m,"").toLowerCase()}catch($){return null}if(X.indexOf("javascript:")===0||X.indexOf("vbscript:")===0||X.indexOf("data:")===0)return null}Z&&!g.test(te)&&(te=l(Z,te));try{te=encodeURI(te).replace(/%25/g,"%")}catch($){return null}return te}var _={},y=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,u=/^([^:]+:\/*[^/]*)[\s\S]*$/;function l(G,Z){_[" "+G]||(y.test(G)?_[" "+G]=G+"/":_[" "+G]=L(G,"/",!0)),G=_[" "+G];var te=G.indexOf(":")===-1;return Z.substring(0,2)==="//"?te?Z:G.replace(c,"$1")+Z:Z.charAt(0)==="/"?te?Z:G.replace(u,"$1")+Z:G+Z}var v={exec:function(){}};function p(G){for(var Z=1,te,X;Z=0&&Te[De]==="\\";)Ee=!Ee;return Ee?"|":" |"}),X=te.split(/ \|/),$=0;if(X.length>Z)X.splice(Z);else for(;X.length=X.length?$.slice(X.length):$}).join(`
`)}var Oe=function(){function G(te){this.options=te||j}var Z=G.prototype;return Z.space=function(X){var $=this.rules.block.newline.exec(X);if($)return $[0].length>1?{type:"space",raw:$[0]}:{raw:`
`}},Z.code=function(X,$){var ne=this.rules.block.code.exec(X);if(ne){var se=$[$.length-1];if(se&&se.type==="paragraph")return{raw:ne[0],text:ne[0].trimRight()};var Te=ne[0].replace(/^ {4}/gm,"");return{type:"code",raw:ne[0],codeBlockStyle:"indented",text:this.options.pedantic?Te:I(Te,`
`)}}},Z.fences=function(X){var $=this.rules.block.fences.exec(X);if($){var ne=$[0],se=Ce(ne,$[3]||"");return{type:"code",raw:ne,lang:$[2]?$[2].trim():$[2],text:se}}},Z.heading=function(X){var $=this.rules.block.heading.exec(X);if($)return{type:"heading",raw:$[0],depth:$[1].length,text:$[2]}},Z.nptable=function(X){var $=this.rules.block.nptable.exec(X);if($){var ne={type:"table",header:W($[1].replace(/^ *| *\| *$/g,"")),align:$[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:$[3]?$[3].replace(/\n$/,"").split(`
`):[],raw:$[0]};if(ne.header.length===ne.align.length){var se=ne.align.length,Te;for(Te=0;Te ?/gm,"");return{type:"blockquote",raw:$[0],text:ne}}},Z.list=function(X){var $=this.rules.block.list.exec(X);if($){for(var ne=$[0],se=$[2],Te=se.length>1,Ee=se[se.length-1]===")",De={type:"list",raw:ne,ordered:Te,start:Te?+se.slice(0,-1):"",loose:!1,items:[]},Ge=$[0].match(this.rules.block.item),Ze=!1,Qe,vt,it,Xe,Mt,Tt,kt,Nt=Ge.length,lt=0;lt1||this.options.smartLists&&it!==se)&&(Xe=Ge.slice(lt+1).join(`
`),De.raw=De.raw.substring(0,De.raw.length-Xe.length),lt=Nt-1)),Mt=Ze||/\n\n(?!\s*$)/.test(Qe),lt!==Nt-1&&(Ze=Qe.charAt(Qe.length-1)===`
`,Mt||(Mt=Ze)),Mt&&(De.loose=!0),Tt=/^\[[ xX]\] /.test(Qe),kt=void 0,Tt&&(kt=Qe[1]!==" ",Qe=Qe.replace(/^\[[ xX]\] +/,"")),De.items.push({type:"list_item",raw:ne,task:Tt,checked:kt,loose:Mt,text:Qe});return De}},Z.html=function(X){var $=this.rules.block.html.exec(X);if($)return{type:this.options.sanitize?"paragraph":"html",raw:$[0],pre:!this.options.sanitizer&&($[1]==="pre"||$[1]==="script"||$[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer($[0]):Q($[0]):$[0]}},Z.def=function(X){var $=this.rules.block.def.exec(X);if($){$[3]&&($[3]=$[3].substring(1,$[3].length-1));var ne=$[1].toLowerCase().replace(/\s+/g," ");return{tag:ne,raw:$[0],href:$[2],title:$[3]}}},Z.table=function(X){var $=this.rules.block.table.exec(X);if($){var ne={type:"table",header:W($[1].replace(/^ *| *\| *$/g,"")),align:$[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:$[3]?$[3].replace(/\n$/,"").split(`
`):[]};if(ne.header.length===ne.align.length){ne.raw=$[0];var se=ne.align.length,Te;for(Te=0;Te/i.test(se[0])&&($=!1),!ne&&/^<(pre|code|kbd|script)(\s|>)/i.test(se[0])?ne=!0:ne&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(se[0])&&(ne=!1),{type:this.options.sanitize?"text":"html",raw:se[0],inLink:$,inRawBlock:ne,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):Q(se[0]):se[0]}},Z.link=function(X){var $=this.rules.inline.link.exec(X);if($){var ne=fe($[2],"()");if(ne>-1){var se=$[0].indexOf("!")===0?5:4,Te=se+$[1].length+ne;$[2]=$[2].substring(0,ne),$[0]=$[0].substring(0,Te).trim(),$[3]=""}var Ee=$[2],De="";if(this.options.pedantic){var Ge=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ee);Ge?(Ee=Ge[1],De=Ge[3]):De=""}else De=$[3]?$[3].slice(1,-1):"";Ee=Ee.trim().replace(/^<([\s\S]*)>$/,"$1");var Ze=le($,{href:Ee&&Ee.replace(this.rules.inline._escapes,"$1"),title:De&&De.replace(this.rules.inline._escapes,"$1")},$[0]);return Ze}},Z.reflink=function(X,$){var ne;if((ne=this.rules.inline.reflink.exec(X))||(ne=this.rules.inline.nolink.exec(X))){var se=(ne[2]||ne[1]).replace(/\s+/g," ");if(se=$[se.toLowerCase()],!se||!se.href){var Te=ne[0].charAt(0);return{type:"text",raw:Te,text:Te}}var Ee=le(ne,se,ne[0]);return Ee}},Z.strong=function(X,$,ne){ne===void 0&&(ne="");var se=this.rules.inline.strong.start.exec(X);if(se&&(!se[1]||se[1]&&(ne===""||this.rules.inline.punctuation.exec(ne)))){$=$.slice(-1*X.length);var Te=se[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Te.lastIndex=0;for(var Ee;(se=Te.exec($))!=null;)if(Ee=this.rules.inline.strong.middle.exec($.slice(0,se.index+3)),Ee)return{type:"strong",raw:X.slice(0,Ee[0].length),text:X.slice(2,Ee[0].length-2)}}},Z.em=function(X,$,ne){ne===void 0&&(ne="");var se=this.rules.inline.em.start.exec(X);if(se&&(!se[1]||se[1]&&(ne===""||this.rules.inline.punctuation.exec(ne)))){$=$.slice(-1*X.length);var Te=se[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Te.lastIndex=0;for(var Ee;(se=Te.exec($))!=null;)if(Ee=this.rules.inline.em.middle.exec($.slice(0,se.index+2)),Ee)return{type:"em",raw:X.slice(0,Ee[0].length),text:X.slice(1,Ee[0].length-1)}}},Z.codespan=function(X){var $=this.rules.inline.code.exec(X);if($){var ne=$[2].replace(/\n/g," "),se=/[^ ]/.test(ne),Te=ne.startsWith(" ")&&ne.endsWith(" ");return se&&Te&&(ne=ne.substring(1,ne.length-1)),ne=Q(ne,!0),{type:"codespan",raw:$[0],text:ne}}},Z.br=function(X){var $=this.rules.inline.br.exec(X);if($)return{type:"br",raw:$[0]}},Z.del=function(X){var $=this.rules.inline.del.exec(X);if($)return{type:"del",raw:$[0],text:$[1]}},Z.autolink=function(X,$){var ne=this.rules.inline.autolink.exec(X);if(ne){var se,Te;return ne[2]==="@"?(se=Q(this.options.mangle?$(ne[1]):ne[1]),Te="mailto:"+se):(se=Q(ne[1]),Te=se),{type:"link",raw:ne[0],text:se,href:Te,tokens:[{type:"text",raw:se,text:se}]}}},Z.url=function(X,$){var ne;if(ne=this.rules.inline.url.exec(X)){var se,Te;if(ne[2]==="@")se=Q(this.options.mangle?$(ne[0]):ne[0]),Te="mailto:"+se;else{var Ee;do Ee=ne[0],ne[0]=this.rules.inline._backpedal.exec(ne[0])[0];while(Ee!==ne[0]);se=Q(ne[0]),ne[1]==="www."?Te="http://"+se:Te=se}return{type:"link",raw:ne[0],text:se,href:Te,tokens:[{type:"text",raw:se,text:se}]}}},Z.inlineText=function(X,$,ne){var se=this.rules.inline.text.exec(X);if(se){var Te;return $?Te=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):Q(se[0]):se[0]:Te=Q(this.options.smartypants?ne(se[0]):se[0]),{type:"text",raw:se[0],text:Te}}},G}(),Re=M.noopTest,Le=M.edit,Pe=M.merge,_e={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:Re,table:Re,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};_e._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_e._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,_e.def=Le(_e.def).replace("label",_e._label).replace("title",_e._title).getRegex(),_e.bullet=/(?:[*+-]|\d{1,9}[.)])/,_e.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,_e.item=Le(_e.item,"gm").replace(/bull/g,_e.bullet).getRegex(),_e.list=Le(_e.list).replace(/bull/g,_e.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+_e.def.source+")").getRegex(),_e._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",_e._comment=//,_e.html=Le(_e.html,"i").replace("comment",_e._comment).replace("tag",_e._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e.paragraph=Le(_e._paragraph).replace("hr",_e.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",_e._tag).getRegex(),_e.blockquote=Le(_e.blockquote).replace("paragraph",_e.paragraph).getRegex(),_e.normal=Pe({},_e),_e.gfm=Pe({},_e.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*|$)"}),_e.gfm.nptable=Le(_e.gfm.nptable).replace("hr",_e.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",_e._tag).getRegex(),_e.gfm.table=Le(_e.gfm.table).replace("hr",_e.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",_e._tag).getRegex(),_e.pedantic=Pe({},_e.normal,{html:Le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",_e._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:Re,paragraph:Le(_e.normal._paragraph).replace("hr",_e.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",_e.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var N={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Re,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:Re,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",N.punctuation=Le(N.punctuation).replace(/punctuation/g,N._punctuation).getRegex(),N._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",N._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",N.em.start=Le(N.em.start).replace(/punctuation/g,N._punctuation).getRegex(),N.em.middle=Le(N.em.middle).replace(/punctuation/g,N._punctuation).replace(/overlapSkip/g,N._overlapSkip).getRegex(),N.em.endAst=Le(N.em.endAst,"g").replace(/punctuation/g,N._punctuation).getRegex(),N.em.endUnd=Le(N.em.endUnd,"g").replace(/punctuation/g,N._punctuation).getRegex(),N.strong.start=Le(N.strong.start).replace(/punctuation/g,N._punctuation).getRegex(),N.strong.middle=Le(N.strong.middle).replace(/punctuation/g,N._punctuation).replace(/blockSkip/g,N._blockSkip).getRegex(),N.strong.endAst=Le(N.strong.endAst,"g").replace(/punctuation/g,N._punctuation).getRegex(),N.strong.endUnd=Le(N.strong.endUnd,"g").replace(/punctuation/g,N._punctuation).getRegex(),N.blockSkip=Le(N._blockSkip,"g").getRegex(),N.overlapSkip=Le(N._overlapSkip,"g").getRegex(),N._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,N._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,N._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])?)+(?![-_])/,N.autolink=Le(N.autolink).replace("scheme",N._scheme).replace("email",N._email).getRegex(),N._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,N.tag=Le(N.tag).replace("comment",_e._comment).replace("attribute",N._attribute).getRegex(),N._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,N._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,N._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,N.link=Le(N.link).replace("label",N._label).replace("href",N._href).replace("title",N._title).getRegex(),N.reflink=Le(N.reflink).replace("label",N._label).getRegex(),N.reflinkSearch=Le(N.reflinkSearch,"g").replace("reflink",N.reflink).replace("nolink",N.nolink).getRegex(),N.normal=Pe({},N),N.pedantic=Pe({},N.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:Le(/^!?\[(label)\]\((.*?)\)/).replace("label",N._label).getRegex(),reflink:Le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",N._label).getRegex()}),N.gfm=Pe({},N.normal,{escape:Le(N.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(X="x"+X.toString(16)),Z+=""+X+";";return Z}var we=function(){function G(te){this.tokens=[],this.tokens.links=Object.create(null),this.options=te||C,this.options.tokenizer=this.options.tokenizer||new Oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var X={block:F.normal,inline:z.normal};this.options.pedantic?(X.block=F.pedantic,X.inline=z.pedantic):this.options.gfm&&(X.block=F.gfm,this.options.breaks?X.inline=z.breaks:X.inline=z.gfm),this.tokenizer.rules=X}G.lex=function(X,$){var ne=new G($);return ne.lex(X)};var Z=G.prototype;return Z.lex=function(X){return X=X.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(X,this.tokens,!0),this.inline(this.tokens),this.tokens},Z.blockTokens=function(X,$,ne){$===void 0&&($=[]),ne===void 0&&(ne=!0),X=X.replace(/^ +$/gm,"");for(var se,Te,Ee,De;X;){if(se=this.tokenizer.space(X)){X=X.substring(se.raw.length),se.type&&$.push(se);continue}if(se=this.tokenizer.code(X,$)){X=X.substring(se.raw.length),se.type?$.push(se):(De=$[$.length-1],De.raw+=`
`+se.raw,De.text+=`
`+se.text);continue}if(se=this.tokenizer.fences(X)){X=X.substring(se.raw.length),$.push(se);continue}if(se=this.tokenizer.heading(X)){X=X.substring(se.raw.length),$.push(se);continue}if(se=this.tokenizer.nptable(X)){X=X.substring(se.raw.length),$.push(se);continue}if(se=this.tokenizer.hr(X)){X=X.substring(se.raw.length),$.push(se);continue}if(se=this.tokenizer.blockquote(X)){X=X.substring(se.raw.length),se.tokens=this.blockTokens(se.text,[],ne),$.push(se);continue}if(se=this.tokenizer.list(X)){for(X=X.substring(se.raw.length),Ee=se.items.length,Te=0;Te0)for(;(Ge=this.tokenizer.rules.inline.reflinkSearch.exec(De))!=null;)Ze.includes(Ge[0].slice(Ge[0].lastIndexOf("[")+1,-1))&&(De=De.slice(0,Ge.index)+"["+"a".repeat(Ge[0].length-2)+"]"+De.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ge=this.tokenizer.rules.inline.blockSkip.exec(De))!=null;)De=De.slice(0,Ge.index)+"["+"a".repeat(Ge[0].length-2)+"]"+De.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;X;){if(Ee=this.tokenizer.escape(X)){X=X.substring(Ee.raw.length),$.push(Ee);continue}if(Ee=this.tokenizer.tag(X,ne,se)){X=X.substring(Ee.raw.length),ne=Ee.inLink,se=Ee.inRawBlock,$.push(Ee);continue}if(Ee=this.tokenizer.link(X)){X=X.substring(Ee.raw.length),Ee.type==="link"&&(Ee.tokens=this.inlineTokens(Ee.text,[],!0,se)),$.push(Ee);continue}if(Ee=this.tokenizer.reflink(X,this.tokens.links)){X=X.substring(Ee.raw.length),Ee.type==="link"&&(Ee.tokens=this.inlineTokens(Ee.text,[],!0,se)),$.push(Ee);continue}if(Ee=this.tokenizer.strong(X,De,Te)){X=X.substring(Ee.raw.length),Ee.tokens=this.inlineTokens(Ee.text,[],ne,se),$.push(Ee);continue}if(Ee=this.tokenizer.em(X,De,Te)){X=X.substring(Ee.raw.length),Ee.tokens=this.inlineTokens(Ee.text,[],ne,se),$.push(Ee);continue}if(Ee=this.tokenizer.codespan(X)){X=X.substring(Ee.raw.length),$.push(Ee);continue}if(Ee=this.tokenizer.br(X)){X=X.substring(Ee.raw.length),$.push(Ee);continue}if(Ee=this.tokenizer.del(X)){X=X.substring(Ee.raw.length),Ee.tokens=this.inlineTokens(Ee.text,[],ne,se),$.push(Ee);continue}if(Ee=this.tokenizer.autolink(X,oe)){X=X.substring(Ee.raw.length),$.push(Ee);continue}if(!ne&&(Ee=this.tokenizer.url(X,oe))){X=X.substring(Ee.raw.length),$.push(Ee);continue}if(Ee=this.tokenizer.inlineText(X,se,P)){X=X.substring(Ee.raw.length),Te=Ee.raw.slice(-1),$.push(Ee);continue}if(X){var Qe="Infinite loop on byte: "+X.charCodeAt(0);if(this.options.silent){console.error(Qe);break}else throw new Error(Qe)}}return $},B(G,null,[{key:"rules",get:function(){return{block:F,inline:z}}}]),G}(),Ae=H.defaults,ee=M.cleanUrl,de=M.escape,ge=function(){function G(te){this.options=te||Ae}var Z=G.prototype;return Z.code=function(X,$,ne){var se=($||"").match(/\S*/)[0];if(this.options.highlight){var Te=this.options.highlight(X,se);Te!=null&&Te!==X&&(ne=!0,X=Te)}return se?''+(ne?X:de(X,!0))+`
`:""+(ne?X:de(X,!0))+`
`},Z.blockquote=function(X){return`
`+X+`
`},Z.html=function(X){return X},Z.heading=function(X,$,ne,se){return this.options.headerIds?"
`:""+X+"
`},Z.hr=function(){return this.options.xhtml?`
`:`
`},Z.list=function(X,$,ne){var se=$?"ol":"ul",Te=$&&ne!==1?' start="'+ne+'"':"";return"<"+se+Te+`>
`+X+""+se+`>
`},Z.listitem=function(X){return""+X+`
`},Z.checkbox=function(X){return" "},Z.paragraph=function(X){return""+X+`
`},Z.table=function(X,$){return $&&($=""+$+""),`
`},Z.tablerow=function(X){return`
`+X+`
`},Z.tablecell=function(X,$){var ne=$.header?"th":"td",se=$.align?"<"+ne+' align="'+$.align+'">':"<"+ne+">";return se+X+""+ne+`>
`},Z.strong=function(X){return""+X+""},Z.em=function(X){return""+X+""},Z.codespan=function(X){return""+X+""},Z.br=function(){return this.options.xhtml?"
":"
"},Z.del=function(X){return""+X+""},Z.link=function(X,$,ne){if(X=ee(this.options.sanitize,this.options.baseUrl,X),X===null)return ne;var se='"+ne+"",se},Z.image=function(X,$,ne){if(X=ee(this.options.sanitize,this.options.baseUrl,X),X===null)return ne;var se='
":">",se},Z.text=function(X){return X},G}(),xe=function(){function G(){}var Z=G.prototype;return Z.strong=function(X){return X},Z.em=function(X){return X},Z.codespan=function(X){return X},Z.del=function(X){return X},Z.html=function(X){return X},Z.text=function(X){return X},Z.link=function(X,$,ne){return""+ne},Z.image=function(X,$,ne){return""+ne},Z.br=function(){return""},G}(),Me=function(){function G(){this.seen={}}var Z=G.prototype;return Z.slug=function(X){var $=X.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty($)){var ne=$;do this.seen[ne]++,$=ne+"-"+this.seen[ne];while(this.seen.hasOwnProperty($))}return this.seen[$]=0,$},G}(),Ue=H.defaults,He=M.unescape,Be=function(){function G(te){this.options=te||Ue,this.options.renderer=this.options.renderer||new ge,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new xe,this.slugger=new Me}G.parse=function(X,$){var ne=new G($);return ne.parse(X)};var Z=G.prototype;return Z.parse=function(X,$){$===void 0&&($=!0);var ne="",se,Te,Ee,De,Ge,Ze,Qe,vt,it,Xe,Mt,Tt,kt,Nt,lt,Kt,Zt,Gt,ai=X.length;for(se=0;se0&<.tokens[0].type==="text"?(lt.tokens[0].text=Gt+" "+lt.tokens[0].text,lt.tokens[0].tokens&<.tokens[0].tokens.length>0&<.tokens[0].tokens[0].type==="text"&&(lt.tokens[0].tokens[0].text=Gt+" "+lt.tokens[0].tokens[0].text)):lt.tokens.unshift({type:"text",text:Gt}):Nt+=Gt),Nt+=this.parse(lt.tokens,kt),it+=this.renderer.listitem(Nt,Zt,Kt);ne+=this.renderer.list(it,Mt,Tt);continue}case"html":{ne+=this.renderer.html(Xe.text);continue}case"paragraph":{ne+=this.renderer.paragraph(this.parseInline(Xe.tokens));continue}case"text":{for(it=Xe.tokens?this.parseInline(Xe.tokens):Xe.text;se+1An error occurred:
"+Ke(Ee.message+"",!0)+"
";throw Ee}}q.options=q.setOptions=function(G){return ze(q.defaults,G),Ye(q.defaults),q},q.getDefaults=Fe,q.defaults=$e,q.use=function(G){var Z=ze({},G);if(G.renderer&&function(){var X=q.defaults.renderer||new ge,$=function(Te){var Ee=X[Te];X[Te]=function(){for(var De=arguments.length,Ge=new Array(De),Ze=0;Zet.length&&(m=t.length);bg===E){const g=t[Symbol.iterator](),E=b[Symbol.iterator]();for(;;){const _=g.next(),y=E.next();if(_.done!==y.done)return!1;if(_.done)return!0;if(!m(_.value,y.value))return!1}}B.equals=i})(ae||(ae={}))},LdHM:function(Je,be,V){"use strict";V.d(be,"b",function(){return t}),V.d(be,"a",function(){return m});var ae=V("1OyB"),B=V("vuIU"),A=V("Ji7U"),k=V("LK+K"),w=V("q1tI"),R=V("rePB"),H=V("Ff2n"),U=V("ODXe"),e=V("4IlW"),S=V("bX4T"),f=V("YrtM"),d=V("TSYQ"),o=V.n(d),a=V("+nKL"),r=V("8OUc"),h=function(W,Q){var fe=W.prefixCls,le=W.id,Ce=W.flattenOptions,Oe=W.childrenAsData,Re=W.values,Le=W.searchValue,Pe=W.multiple,_e=W.defaultActiveFirstOption,N=W.height,O=W.itemHeight,C=W.notFoundContent,F=W.open,z=W.menuItemSelectedIcon,P=W.virtual,oe=W.onSelect,we=W.onToggleOpen,Ae=W.onActiveValue,ee=W.onScroll,de=W.onMouseEnter,ge="".concat(fe,"-item"),xe=Object(f.a)(function(){return Ce},[F,Ce],function(K,G){return G[0]&&K[1]!==G[1]}),Me=w.useRef(null),Ue=function(G){G.preventDefault()},He=function(G){Me.current&&Me.current.scrollTo({index:G})},Be=function(G){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=xe.length,X=0;X1&&arguments[1]!==void 0?arguments[1]:!1;return Object(E.a)(I).map(function(Q,fe){if(!w.isValidElement(Q)||!Q.type)return null;var le=Q.type.isSelectOptGroup,Ce=Q.key,Oe=Q.props,Re=Oe.children,Le=Object(H.a)(Oe,["children"]);return W||!le?_(Q):Object(g.a)(Object(g.a)({key:"__RC_SELECT_GRP__".concat(Ce===null?fe:Ce,"__"),label:Ce},Le),{},{options:y(Re)})}).filter(function(Q){return Q})}var c=V("2Qr1"),u=V("qNPg"),l=V("U8pU"),v=V("Kwbf"),p=V("WKfj");function T(I){var W=I.mode,Q=I.options,fe=I.children,le=I.backfill,Ce=I.allowClear,Oe=I.placeholder,Re=I.getInputElement,Le=I.showSearch,Pe=I.onSearch,_e=I.defaultOpen,N=I.autoFocus,O=I.labelInValue,C=I.value,F=I.inputValue,z=I.optionLabelProp,P=W==="multiple"||W==="tags",oe=Le!==void 0?Le:P||W==="combobox",we=Q||y(fe);if(Object(v.a)(W!=="tags"||we.every(function(ge){return!ge.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),W==="tags"||W==="combobox"){var Ae=we.some(function(ge){return ge.options?ge.options.some(function(xe){return typeof("value"in xe?xe.value:xe.key)=="number"}):typeof("value"in ge?ge.value:ge.key)=="number"});Object(v.a)(!Ae,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(v.a)(W!=="combobox"||!z,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(v.a)(W==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(v.a)(W==="combobox"||!Re,"`getInputElement` only work with `combobox` mode."),Object(v.b)(W!=="combobox"||!Re||!Ce||!Oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Pe&&!oe&&W!=="combobox"&&W!=="tags"&&Object(v.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(v.b)(!_e||N,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),C!=null){var ee=Object(p.d)(C);Object(v.a)(!O||ee.every(function(ge){return Object(l.a)(ge)==="object"&&("key"in ge||"value"in ge)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(v.a)(!P||Array.isArray(C),"`value` should be array when `mode` is `multiple` or `tags`")}if(fe){var de=null;Object(E.a)(fe).some(function(ge){if(!w.isValidElement(ge)||!ge.type)return!1;var xe=ge.type;if(xe.isSelectOption)return!1;if(xe.isSelectOptGroup){var Me=Object(E.a)(ge.props.children).every(function(Ue){return!w.isValidElement(Ue)||!ge.type||Ue.type.isSelectOption?!0:(de=Ue.type,!1)});return!Me}return de=xe,!0}),de&&Object(v.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(de.displayName||de.name||de,"`.")),Object(v.a)(F===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=T,D=Object(u.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:y,flattenOptions:c.d,getLabeledValue:c.e,filterOptions:c.b,isValueDisabled:c.g,findValueOption:c.c,warningProps:L,fillOptionsWithMissingValue:c.a}),x=function(I){Object(A.a)(Q,I);var W=Object(k.a)(Q);function Q(){var fe;return Object(ae.a)(this,Q),fe=W.apply(this,arguments),fe.selectRef=w.createRef(),fe.focus=function(){fe.selectRef.current.focus()},fe.blur=function(){fe.selectRef.current.blur()},fe}return Object(B.a)(Q,[{key:"render",value:function(){return w.createElement(D,Object.assign({ref:this.selectRef},this.props))}}]),Q}(w.Component);x.Option=t,x.OptGroup=m;var M=x,j=be.c=M},MI8n:function(Je,be,V){"use strict";V.d(be,"c",function(){return w}),V.d(be,"b",function(){return e}),V.d(be,"e",function(){return S}),V.d(be,"a",function(){return f}),V.d(be,"d",function(){return d}),V.d(be,"f",function(){return o});var ae=V("/cxE"),B=V("pmY6"),A=V("24hK"),k=V("5Y4S"),w;(function(a){a.None=()=>B.a.None;function r(T){return(L,D=null,x)=>{let M=!1,j;return j=T(I=>M?void 0:(j?j.dispose():M=!0,L.call(D,I)),null,x),M&&j.dispose(),j}}a.once=r;function h(T,L){return m((D,x=null,M)=>T(j=>D.call(x,L(j)),null,M))}a.map=h;function s(T,L){return m((D,x=null,M)=>T(j=>{L(j),D.call(x,j)},null,M))}a.forEach=s;function n(T,L){return m((D,x=null,M)=>T(j=>L(j)&&D.call(x,j),null,M))}a.filter=n;function i(T){return T}a.signal=i;function t(...T){return(L,D=null,x)=>Object(B.e)(...T.map(M=>M(j=>L.call(D,j),null,x)))}a.any=t;function b(T,L,D){let x=D;return h(T,M=>(x=L(x,M),x))}a.reduce=b;function m(T){let L;const D=new e({onFirstListenerAdd(){L=T(D.fire,D)},onLastListenerRemove(){L.dispose()}});return D.event}function g(T,L,D=100,x=!1,M){let j,I,W,Q=0;const fe=new e({leakWarningThreshold:M,onFirstListenerAdd(){j=T(le=>{Q++,I=L(I,le),x&&!W&&(fe.fire(I),I=void 0),clearTimeout(W),W=setTimeout(()=>{const Ce=I;I=void 0,W=void 0,(!x||Q>1)&&fe.fire(Ce),Q=0},D)})},onLastListenerRemove(){j.dispose()}});return fe.event}a.debounce=g;function E(T,L=(D,x)=>D===x){let D=!0,x;return n(T,M=>{const j=D||!L(M,x);return D=!1,x=M,j})}a.latch=E;function _(T,L){return[a.filter(T,L),a.filter(T,D=>!L(D))]}a.split=_;function y(T,L=!1,D=[]){let x=D.slice(),M=T(W=>{x?x.push(W):I.fire(W)});const j=()=>{x&&x.forEach(W=>I.fire(W)),x=null},I=new e({onFirstListenerAdd(){M||(M=T(W=>I.fire(W)))},onFirstListenerDidAdd(){x&&(L?setTimeout(j):j())},onLastListenerRemove(){M&&M.dispose(),M=null}});return I.event}a.buffer=y;class c{constructor(T){this.event=T}map(T){return new c(h(this.event,T))}forEach(T){return new c(s(this.event,T))}filter(T){return new c(n(this.event,T))}reduce(T,L){return new c(b(this.event,T,L))}latch(){return new c(E(this.event))}debounce(T,L=100,D=!1,x){return new c(g(this.event,T,L,D,x))}on(T,L,D){return this.event(T,L,D)}once(T,L,D){return r(this.event)(T,L,D)}}function u(T){return new c(T)}a.chain=u;function l(T,L,D=x=>x){const x=(...W)=>I.fire(D(...W)),M=()=>T.on(L,x),j=()=>T.removeListener(L,x),I=new e({onFirstListenerAdd:M,onLastListenerRemove:j});return I.event}a.fromNodeEventEmitter=l;function v(T,L,D=x=>x){const x=(...W)=>I.fire(D(...W)),M=()=>T.addEventListener(L,x),j=()=>T.removeEventListener(L,x),I=new e({onFirstListenerAdd:M,onLastListenerRemove:j});return I.event}a.fromDOMEventEmitter=v;function p(T){return new Promise(L=>r(T)(L))}a.toPromise=p})(w||(w={}));class R{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${R._idPool++}`}start(a){this._stopWatch=new k.a(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;let H=-1;class U{constructor(a,r=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=r,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let r=H;if(typeof this.customThreshold=="number"&&(r=this.customThreshold),r<=0||a{const n=this._stacks.get(h)||0;this._stacks.set(h,n-1)}}}class e{constructor(a){var r;this._disposed=!1,this._options=a,this._leakageMon=H>0?new U(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((r=this._options)===null||r===void 0?void 0:r._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(a,r,h)=>{var s;this._listeners||(this._listeners=new A.a);const n=this._listeners.isEmpty();n&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const i=this._listeners.push(r?[a,r]:a);n&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,r);const t=(s=this._leakageMon)===null||s===void 0?void 0:s.check(this._listeners.size),b=Object(B.i)(()=>{if(t&&t(),!this._disposed&&(i(),this._options&&this._options.onLastListenerRemove)){const m=this._listeners&&!this._listeners.isEmpty();m||this._options.onLastListenerRemove(this)}});return h instanceof B.b?h.add(b):Array.isArray(h)&&h.push(b),b}),this._event}fire(a){var r,h;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new A.a);for(let s of this._listeners)this._deliveryQueue.push([s,a]);for((r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[s,n]=this._deliveryQueue.shift();try{typeof s=="function"?s.call(void 0,n):s[0].call(s[1],n)}catch(i){Object(ae.f)(i)}}(h=this._perfMon)===null||h===void 0||h.stop()}}dispose(){var a,r,h,s,n;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(r=this._deliveryQueue)===null||r===void 0||r.clear(),(s=(h=this._options)===null||h===void 0?void 0:h.onLastListenerRemove)===null||s===void 0||s.call(h),(n=this._leakageMon)===null||n===void 0||n.dispose())}}class S extends e{constructor(a){super(a);this._isPaused=0,this._eventQueue=new A.a,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}class f extends S{constructor(a){var r;super(a);this._delay=(r=a.delay)!==null&&r!==void 0?r:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}class d{constructor(){this.buffers=[]}wrapEvent(a){return(r,h,s)=>a(n=>{const i=this.buffers[this.buffers.length-1];i?i.push(()=>r.call(h,n)):r.call(h,n)},void 0,s)}bufferEvents(a){const r=[];this.buffers.push(r);const h=a();return this.buffers.pop(),r.forEach(s=>s()),h}}class o{constructor(){this.listening=!1,this.inputEvent=w.None,this.inputEventListener=B.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(Je,be,V){"use strict";(function(ae,B){V.d(be,"b",function(){return h}),V.d(be,"i",function(){return t}),V.d(be,"f",function(){return b}),V.d(be,"d",function(){return m}),V.d(be,"g",function(){return g}),V.d(be,"h",function(){return E}),V.d(be,"c",function(){return _}),V.d(be,"k",function(){return y}),V.d(be,"j",function(){return c}),V.d(be,"a",function(){return u}),V.d(be,"e",function(){return p});var A;const k="en";let w=!1,R=!1,H=!1,U=!1,e=!1,S=!1,f=!1,d,o=k,a,r;const h=typeof self=="object"?self:typeof ae=="object"?ae:{};let s;typeof h.vscode!="undefined"&&typeof h.vscode.process!="undefined"?s=h.vscode.process:typeof B!="undefined"&&(s=B);const n=typeof((A=s==null?void 0:s.versions)===null||A===void 0?void 0:A.electron)=="string"&&s.type==="renderer";if(typeof navigator=="object"&&!n)r=navigator.userAgent,w=r.indexOf("Windows")>=0,R=r.indexOf("Macintosh")>=0,f=(r.indexOf("Macintosh")>=0||r.indexOf("iPad")>=0||r.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,H=r.indexOf("Linux")>=0,S=!0,d=navigator.language,o=d;else if(typeof s=="object"){w=s.platform==="win32",R=s.platform==="darwin",H=s.platform==="linux",U=H&&!!s.env.SNAP&&!!s.env.SNAP_REVISION,d=k,o=k;const T=s.env.VSCODE_NLS_CONFIG;if(T)try{const L=JSON.parse(T),D=L.availableLanguages["*"];d=L.locale,o=D||k,a=L._translationsConfigFile}catch(L){}e=!0}else console.error("Unable to resolve platform.");let i=0;R?i=1:w?i=3:H&&(i=2);const t=w,b=R,m=H,g=e,E=S,_=f,y=r,c=function(){if(h.setImmediate)return h.setImmediate.bind(h);if(typeof h.postMessage=="function"&&!h.importScripts){let D=[];h.addEventListener("message",M=>{if(M.data&&M.data.vscodeSetImmediateId)for(let j=0,I=D.length;j{const j=++x;D.push({id:j,callback:M}),h.postMessage({vscodeSetImmediateId:j},"*")}}if(typeof(s==null?void 0:s.nextTick)=="function")return s.nextTick.bind(s);const L=Promise.resolve();return D=>L.then(D)}(),u=R||f?2:w?1:3;let l=!0,v=!1;function p(){if(!v){v=!0;const T=new Uint8Array(2);T[0]=1,T[1]=2;const L=new Uint16Array(T.buffer);l=L[0]===(2<<8)+1}return l}}).call(this,V("IyRk"),V("Q2Ig"))},N0LK:function(Je,be,V){"use strict";V.d(be,"C",function(){return ae}),V.d(be,"v",function(){return A}),V.d(be,"s",function(){return k}),V.d(be,"t",function(){return w}),V.d(be,"U",function(){return R}),V.d(be,"J",function(){return H}),V.d(be,"O",function(){return U}),V.d(be,"p",function(){return e}),V.d(be,"T",function(){return S}),V.d(be,"q",function(){return f}),V.d(be,"N",function(){return d}),V.d(be,"M",function(){return o}),V.d(be,"Q",function(){return a}),V.d(be,"u",function(){return r}),V.d(be,"x",function(){return h}),V.d(be,"I",function(){return s}),V.d(be,"f",function(){return n}),V.d(be,"h",function(){return i}),V.d(be,"g",function(){return t}),V.d(be,"i",function(){return b}),V.d(be,"G",function(){return m}),V.d(be,"H",function(){return g}),V.d(be,"r",function(){return E}),V.d(be,"R",function(){return _}),V.d(be,"d",function(){return y}),V.d(be,"e",function(){return c}),V.d(be,"E",function(){return u}),V.d(be,"F",function(){return l}),V.d(be,"j",function(){return v}),V.d(be,"z",function(){return p}),V.d(be,"K",function(){return L}),V.d(be,"L",function(){return D}),V.d(be,"m",function(){return M}),V.d(be,"k",function(){return I}),V.d(be,"A",function(){return Q}),V.d(be,"a",function(){return fe}),V.d(be,"n",function(){return le}),V.d(be,"l",function(){return Ce}),V.d(be,"D",function(){return Oe}),V.d(be,"B",function(){return Re}),V.d(be,"b",function(){return Le}),V.d(be,"S",function(){return Pe}),V.d(be,"o",function(){return _e}),V.d(be,"P",function(){return N}),V.d(be,"w",function(){return O}),V.d(be,"c",function(){return C}),V.d(be,"y",function(){return P});function ae(ee){return!ee||typeof ee!="string"?!0:ee.trim().length===0}const B=/{(\d+)}/g;function A(ee,...de){return de.length===0?ee:ee.replace(B,function(ge,xe){const Me=parseInt(xe,10);return isNaN(Me)||Me<0||Me>=de.length?ge:de[Me]})}function k(ee){return ee.replace(/[<>&]/g,function(de){switch(de){case"<":return"<";case">":return">";case"&":return"&";default:return de}})}function w(ee){return ee.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(ee,de=" "){const ge=H(ee,de);return U(ge,de)}function H(ee,de){if(!ee||!de)return ee;const ge=de.length;if(ge===0||ee.length===0)return ee;let xe=0;for(;ee.indexOf(de,xe)===xe;)xe=xe+ge;return ee.substring(xe)}function U(ee,de){if(!ee||!de)return ee;const ge=de.length,xe=ee.length;if(ge===0||xe===0)return ee;let Me=xe,Ue=-1;for(;!(Ue=ee.lastIndexOf(de,Me-1),Ue===-1||Ue+ge!==Me);){if(Ue===0)return"";Me=Ue}return ee.substring(0,Me)}function e(ee){return ee.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function S(ee){return ee.replace(/\*/g,"")}function f(ee,de,ge={}){if(!ee)throw new Error("Cannot create regex from empty string");de||(ee=w(ee)),ge.wholeWord&&(/\B/.test(ee.charAt(0))||(ee="\\b"+ee),/\B/.test(ee.charAt(ee.length-1))||(ee=ee+"\\b"));let xe="";return ge.global&&(xe+="g"),ge.matchCase||(xe+="i"),ge.multiline&&(xe+="m"),ge.unicode&&(xe+="u"),new RegExp(ee,xe)}function d(ee){if(ee.source==="^"||ee.source==="^$"||ee.source==="$"||ee.source==="^\\s*$")return!1;const de=ee.exec("");return!!(de&&ee.lastIndex===0)}function o(ee){return(ee.global?"g":"")+(ee.ignoreCase?"i":"")+(ee.multiline?"m":"")+(ee.unicode?"u":"")}function a(ee){return ee.split(/\r\n|\r|\n/)}function r(ee){for(let de=0,ge=ee.length;de=0;ge--){const xe=ee.charCodeAt(ge);if(xe!==32&&xe!==9)return ge}return-1}function n(ee,de){return eede?1:0}function i(ee,de,ge=0,xe=ee.length,Me=0,Ue=de.length){for(;geWe)return 1}const He=xe-ge,Be=Ue-Me;return HeBe?1:0}function t(ee,de){return b(ee,de,0,ee.length,0,de.length)}function b(ee,de,ge=0,xe=ee.length,Me=0,Ue=de.length){for(;ge=128||We>=128)return i(ee.toLowerCase(),de.toLowerCase(),ge,xe,Me,Ue);m(ze)&&(ze-=32),m(We)&&(We-=32);const Ke=ze-We;if(Ke===0)continue;return Ke}const He=xe-ge,Be=Ue-Me;return HeBe?1:0}function m(ee){return ee>=97&&ee<=122}function g(ee){return ee>=65&&ee<=90}function E(ee,de){return ee.length===de.length&&b(ee,de)===0}function _(ee,de){const ge=de.length;return de.length>ee.length?!1:b(ee,de,0,ge)===0}function y(ee,de){let ge,xe=Math.min(ee.length,de.length);for(ge=0;ge1){const xe=ee.charCodeAt(de-2);if(u(xe))return v(xe,ge)}return ge}function L(ee,de){const ge=F.getInstance(),xe=de,Me=ee.length,Ue=p(ee,Me,de);de+=Ue>=65536?2:1;let He=ge.getGraphemeBreakType(Ue);for(;de=65536?2:1,He=ze}return de-xe}function D(ee,de){const ge=F.getInstance(),xe=de,Me=T(ee,de);de-=Me>=65536?2:1;let Ue=ge.getGraphemeBreakType(Me);for(;de>0;){const He=T(ee,de),Be=ge.getGraphemeBreakType(He);if(C(Be,Ue))break;de-=He>=65536?2:1,Ue=Be}return xe-de}const x=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function M(ee){return x.test(ee)}const j=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function I(ee){return j.test(ee)}const W=/^[\t\n\r\x20-\x7E]*$/;function Q(ee){return W.test(ee)}const fe=/[\u2028\u2029]/;function le(ee){return fe.test(ee)}function Ce(ee){for(let de=0,ge=ee.length;de=11904&&ee<=55215||ee>=63744&&ee<=64255||ee>=65281&&ee<=65374}function Re(ee){return ee>=127462&&ee<=127487||ee===8986||ee===8987||ee===9200||ee===9203||ee>=9728&&ee<=10175||ee===11088||ee===11093||ee>=127744&&ee<=128591||ee>=128640&&ee<=128764||ee>=128992&&ee<=129003||ee>=129280&&ee<=129535||ee>=129648&&ee<=129750}const Le=String.fromCharCode(65279);function Pe(ee){return!!(ee&&ee.length>0&&ee.charCodeAt(0)===65279)}function _e(ee,de=!1){return ee?(de&&(ee=ee.replace(/\\./g,"")),ee.toLowerCase()!==ee):!1}function N(ee){const de=90-65+1;return ee=ee%(2*de),eede[3*xe+1])xe=2*xe+1;else return de[3*xe+2];return 0}}F._INSTANCE=null;function z(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function P(ee,de){if(ee===0)return 0;const ge=oe(ee,de);if(ge!==void 0)return ge;const xe=T(de,ee);return ee-=we(xe),ee}function oe(ee,de){let ge=T(de,ee);for(ee-=we(ge);Ae(ge)||ge===65039||ge===8419;){if(ee===0)return;ge=T(de,ee),ee-=we(ge)}if(!Re(ge))return;if(ee>=0){const xe=T(de,ee);xe===8205&&(ee-=we(xe))}return ee}function we(ee){return ee>=65536?2:1}function Ae(ee){return 127995<=ee&&ee<=127999}},SJMd:function(Je,be){/**
* @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 V,ae,B,A=!1,k,w;window.PR_SHOULD_USE_CONTINUATION=!0;var R,H;(function(){var U=window,e=["break,continue,do,else,for,if,return,while"],S=[e,"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"],f=[S,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],d=[f,"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"],o=[f,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[f,"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"],r="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",h=[f,"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",n=[e,"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"],i=[e,"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"],t=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[d,a,o,h,s,n,i,t],m=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,g="str",E="kwd",_="com",y="typ",c="lit",u="pun",l="pln",v="tag",p="dec",T="src",L="atn",D="atv",x="nocode",M="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function j(oe){for(var we=0,Ae=!1,ee=!1,de=0,ge=oe.length;de122||(X<65||te>90||Ye.push([Math.max(65,te)|32,Math.min(X,90)|32]),X<97||te>122||Ye.push([Math.max(97,te)&~32,Math.min(X,122)&~32]))}}Ye.sort(function(Te,Ee){return Te[0]-Ee[0]||Ee[1]-Te[1]});for(var $=[],ne=[],K=0;Kse[0]&&(se[1]+1>se[0]&&q.push("-"),q.push(He(se[1])))}return q.push("]"),q.join("")}function ze(Ke){for(var Fe=Ke.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Ye=Fe.length,$e=[],q=0,K=0;q=2&&te==="["?Fe[q]=Be(G):te!=="\\"&&(Fe[q]=G.replace(/[a-zA-Z]/g,function(ne){var se=ne.charCodeAt(0);return"["+String.fromCharCode(se&~32,se|32)+"]"}))}return Fe.join("")}for(var We=[],de=0,ge=oe.length;de=0;)Ae[We.charAt(Ke)]=ze;var Fe=ze[1],Ye=""+Fe;Ue.hasOwnProperty(Ye)||(Me.push(Fe),Ue[Ye]=null)}Me.push(/[\0-\uffff]/),ee=j(Me)})();var de=we.length,ge=function(xe){for(var Me=xe.sourceCode,Ue=xe.basePos,He=xe.sourceNode,Be=[Ue,l],ze=0,We=Me.match(ee)||[],Ke={},Fe=0,Ye=We.length;Fe=5&&q.substring(0,5)==="lang-",G&&!(K&&typeof K[1]=="string")&&(G=!1,q=T),G||(Ke[$e]=q)}var X=ze;if(ze+=$e.length,!G)Be.push(Ue+X,q);else{var $=K[1],ne=$e.indexOf($),se=ne+$.length;K[2]&&(se=$e.length-K[2].length,ne=se-$.length);var Te=q.substring(5);W(He,Ue+X,$e.substring(0,ne),ge,Be),W(He,Ue+X+ne,$,N(Te,$),Be),W(He,Ue+X+se,$e.substring(se),ge,Be)}}xe.decorations=Be};return ge}function Ce(oe){var we=[],Ae=[];oe.tripleQuotedStrings?we.push([g,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):oe.multiLineStrings?we.push([g,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):we.push([g,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),oe.verbatimStrings&&Ae.push([g,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ee=oe.hashComments;ee&&(oe.cStyleComments?(ee>1?we.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):we.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ae.push([g,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):we.push([_,/^#[^\r\n]*/,null,"#"])),oe.cStyleComments&&(Ae.push([_,/^\/\/[^\r\n]*/,null]),Ae.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var de=oe.regexLiterals;if(de){var ge=de>1?"":`
\r`,xe=ge?".":"[\\S\\s]",Me="/(?=[^/*"+ge+"])(?:[^/\\x5B\\x5C"+ge+"]|\\x5C"+xe+"|\\x5B(?:[^\\x5C\\x5D"+ge+"]|\\x5C"+xe+")*(?:\\x5D|$))+/";Ae.push(["lang-regex",RegExp("^"+M+"("+Me+")")])}var Ue=oe.types;Ue&&Ae.push([y,Ue]);var He=(""+oe.keywords).replace(/^ | $/g,"");He.length&&Ae.push([E,new RegExp("^(?:"+He.replace(/[\s,]+/g,"|")+")\\b"),null]),we.push([l,/^\s+/,null,` \r
\xA0`]);var Be="^.[^\\s\\w.$@'\"`/\\\\]*";return oe.regexLiterals&&(Be+="(?!s*/)"),Ae.push([c,/^@[a-z_$][a-z_$@0-9]*/i,null],[y,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[l,/^[a-z_$][a-z_$@0-9]*/i,null],[c,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[l,/^\\[\s\S]?/,null],[u,new RegExp(Be),null]),le(we,Ae)}var Oe=Ce({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Re(oe,we,Ae){for(var ee=/(?:^|\s)nocode(?:\s|$)/,de=/\r\n?|\n/,ge=oe.ownerDocument,xe=ge.createElement("li");oe.firstChild;)xe.appendChild(oe.firstChild);var Me=[xe];function Ue(Fe){var Ye=Fe.nodeType;if(Ye==1&&!ee.test(Fe.className))if(Fe.nodeName==="br")He(Fe),Fe.parentNode&&Fe.parentNode.removeChild(Fe);else for(var $e=Fe.firstChild;$e;$e=$e.nextSibling)Ue($e);else if((Ye==3||Ye==4)&&Ae){var q=Fe.nodeValue,K=q.match(de);if(K){var G=q.substring(0,K.index);Fe.nodeValue=G;var Z=q.substring(K.index+K[0].length);if(Z){var te=Fe.parentNode;te.insertBefore(ge.createTextNode(Z),Fe.nextSibling)}He(Fe),G||Fe.parentNode.removeChild(Fe)}}}function He(Fe){for(;!Fe.nextSibling;)if(Fe=Fe.parentNode,!Fe)return;function Ye(K,G){var Z=G?K.cloneNode(!1):K,te=K.parentNode;if(te){var X=Ye(te,1),$=K.nextSibling;X.appendChild(Z);for(var ne=$;ne;ne=$)$=ne.nextSibling,X.appendChild(ne)}return Z}for(var $e=Ye(Fe.nextSibling,0),q;(q=$e.parentNode)&&q.nodeType===1;)$e=q;Me.push($e)}for(var Be=0;Be=te&&(Ue+=2),ge>=X&&(ze+=2)}}finally{q&&(q.style.display=K)}}var Pe={};function _e(oe,we){for(var Ae=we.length;--Ae>=0;){var ee=we[Ae];Pe.hasOwnProperty(ee)?U.console&&console.warn("cannot override language handler %s",ee):Pe[ee]=oe}}function N(oe,we){return oe&&Pe.hasOwnProperty(oe)||(oe=/^\s*]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[u,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^