(window.webpackJsonp=window.webpackJsonp||[]).push([[213,5,7,8,10,13],{"+92d":function(Ge,Re,F){Ge.exports=F.p+"static/b1.8d46544a.svg"},"+GGh":function(Ge,Re){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7VXQm4VVXZfvc+5yKzMqiAgpggqGihoBI4Zz+iQA7VX2Fa+GeFmjnmjAZmDlnmDGaDY5KzJmmWAiKIoCihmAN/ySTDvRcF4e691v+s4VvrW2vvcwFB8r/lcy/n7LP32nu9+/3e7/2+tU+CLfwjpaw0NmJfIcRBSYK+Uoq+QNIdEu0AtJMSLaSUABJzZPWn+iUlEiRQb6l37MvsfbOdfs+9qf5htnav6ffsvoP9+mPSsej4+iM0Jr5vPR4aIF0o9po6ziccPx1GnbWQZvzqNfef/rd9j7+uXhPmIqn36XN6H+rf+n/+dTV+2o/6kNq/39YfT72m3le7Vj/Cnq76tx4TGx9tS2Olz5RByc/EZgBNSlm3enU+TAiMkhJHSshtHULchKkrok5WnUY8SQxwNNf2hAmMRWD5ARMG9H4tWAxQ/XHoPQ5kt4cAVBZrHgF2Mw/kePwBYC2ozUDo+OoTFosMr24y7eTpCbY3SzzBZvLN9TMAor/55DMAWYAawHkwanAkBkgejAROvy8POPOe+r/+DL8R2N+14LNZAJNStmpoEGcikWdLKTvpiTbjt0zkJ5z4J5hgDjhiEY01zwyOXAL2spNtZ8GAx5wtAdgxEk14xJh6v3qGOdvFLGlhwW4SN/4YyHRw4lkGWn8DEPsyINkhqG2ILYhBPBNZkEjzOQNcYiILngCYFoAJ387MhQZm8Lq5ERzg1DW078cMZdjPMxyBrTlu+kQAU2GwYXV+shS4HJA7xUwQhjB+J9vwVRIiOZB8fCSgxmGxVriii2+ugmeamD1jINn9EbtE4GiWcdm5hGHa7LOMMQtA4myjgMNkgLmHolDpmMO8Xgh9jOk8Y9kwrMFTZCweBl1YJEC60OrBpc8tlislSNt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ZvjswYvrrA3YWza8V+anyzz5HIJuZMX4xGQ7IUOrA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"+ua5":function(Ge,Re,F){},"5A5F":function(Ge,Re,F){Ge.exports={flex_box_center:"flex_box_center___3fvo9",flex_space_between:"flex_space_between___2dIWe",flex_box_vertical_center:"flex_box_vertical_center___213Et",flex_box_center_end:"flex_box_center_end___1GXlY",flex_box_column:"flex_box_column___2XTWO",wrap:"wrap___1JbzU",addQuestion:"addQuestion___3n7jZ",content:"content___2Crhb",left:"left___12ObT",filterPoint:"filterPoint___1wSyY",filterType:"filterType___32Vjx",btnWarp:"btnWarp___XLUgV",btn:"btn___33IXa",count:"count___2zHIG",btnActive:"btnActive___2vIUq",fold:"fold___26POp",action:"action___m_eZE",filterOrigin:"filterOrigin___OKol4",control:"control___1SAJX",search:"search___2AvaM",searchIcon:"searchIcon___2TozR",table:"table___1Q9AI",tabWarp:"tabWarp___3884f",customTable:"customTable___6Ubut","btn-style-1":"btn-style-1___m4kGi","btn-style-2":"btn-style-2___2uJ8s","btn-style-3":"btn-style-3___3kuYl",right:"right___Ie2u1",statistics:"statistics___TecQK",title:"title___1uK2v",statisticItem:"statisticItem___oBHb3",rate:"rate___15q55",dataName:"dataName___1uxmm",sort:"sort___1hyjY",rankHeader:"rankHeader___3MEZr",rankIcon:"rankIcon___t_Ggc",li:"li___3lR-W",myRecord:"myRecord___3MQJH",recordPrefix:"recordPrefix___3rIwK",mine:"mine___1LgRJ",avatar:"avatar___2X3bF",nickname:"nickname___3uP5f",myRank:"myRank___3GS-w",questionNumber:"questionNumber___3kBy-",titleWarp:"titleWarp___t0Zdh",hov:"hov___30B5q",statusText:"statusText___3pFTN",hovBtn:"hovBtn___3ciGX",tag:"tag___hllWE",problemsclose:"problemsclose___1X9HB",imgsrc:"imgsrc___3koep",sendModal:"sendModal___1P3qc",bottom:"bottom___1gmim",line:"line___psQHn",del:"del___1Qufp"}},"5VLF":function(Ge,Re,F){"use strict";var ie,L;function I(j,C,w){var H=function(U,R){return j.js_beautify(U,R)};return H.js=j.js_beautify,H.css=C.css_beautify,H.html=w.html_beautify,H.js_beautify=j.js_beautify,H.css_beautify=C.css_beautify,H.html_beautify=w.html_beautify,H}!(ie=[F("6UM0"),F("TXwP"),F("psGv")],L=function(j,C,w){return I(j,C,w)}.apply(Re,ie),L!==void 0&&(Ge.exports=L))},"6+eU":function(Ge,Re,F){"use strict";F.d(Re,"a",function(){return m});var ie=F("wx14"),L=F("rePB"),I=F("VTBJ"),j=F("1OyB"),C=F("vuIU"),w=F("Ji7U"),H=F("LK+K"),U=F("cDcd"),R=F.n(U),S=F("TSYQ"),y=F.n(S),v=function(g){var h,u="".concat(g.rootPrefixCls,"-item"),r=y()(u,"".concat(u,"-").concat(g.page),(h={},Object(L.a)(h,"".concat(u,"-active"),g.active),Object(L.a)(h,g.className,!!g.className),Object(L.a)(h,"".concat(u,"-disabled"),!g.page),h)),l=function(){g.onClick(g.page)},f=function(x){g.onKeyPress(x,g.onClick,g.page)};return R.a.createElement("li",{title:g.showTitle?g.page:null,className:r,onClick:l,onKeyPress:f,tabIndex:"0"},g.itemRender(g.page,"page",R.a.createElement("a",{rel:"nofollow"},g.page)))},d=v,o={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},n=function(E){Object(w.a)(h,E);var g=Object(H.a)(h);function h(){var u;Object(j.a)(this,h);for(var r=arguments.length,l=new Array(r),f=0;f=0||c.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;u.setState({goInputText:""}),A(u.getValidValue())},u.go=function(c){var x=u.state.goInputText;if(x==="")return;(c.keyCode===o.ENTER||c.type==="click")&&(u.setState({goInputText:""}),u.props.quickGo(u.getValidValue()))},u}return Object(C.a)(h,[{key:"getValidValue",value:function(){var r=this.state,l=r.goInputText,f=r.current;return!l||isNaN(l)?f:Number(l)}},{key:"getPageSizeOptions",value:function(){var r=this.props,l=r.pageSize,f=r.pageSizeOptions;return f.some(function(c){return c.toString()===l.toString()})?f:f.concat([l.toString()]).sort(function(c,x){var D=isNaN(Number(c))?0:Number(c),A=isNaN(Number(x))?0:Number(x);return D-A})}},{key:"render",value:function(){var r=this,l=this.props,f=l.pageSize,c=l.locale,x=l.rootPrefixCls,D=l.changeSize,A=l.quickGo,B=l.goButton,O=l.selectComponentClass,W=l.buildOptionText,P=l.selectPrefixCls,G=l.disabled,Q=this.state.goInputText,re="".concat(x,"-options"),le=O,Ee=null,_e=null,ne=null;if(!D&&!A)return null;var Te=this.getPageSizeOptions();if(D&&le){var Ae=Te.map(function(fe,J){return R.a.createElement(le.Option,{key:J,value:fe.toString()},(W||r.buildOptionText)(fe))});Ee=R.a.createElement(le,{disabled:G,prefixCls:P,showSearch:!1,className:"".concat(re,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(f||Te[0]).toString(),onChange:this.changeSize,getPopupContainer:function(J){return J.parentNode}},Ae)}return A&&(B&&(ne=typeof B=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:G,className:"".concat(re,"-quick-jumper-button")},c.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),_e=R.a.createElement("div",{className:"".concat(re,"-quick-jumper")},c.jump_to,R.a.createElement("input",{disabled:G,type:"text",value:Q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),c.page,ne)),R.a.createElement("li",{className:"".concat(re)},Ee,_e)}}]),h}(R.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var a=n,s=F("N2Kk");function e(){}function t(E){return typeof E=="number"&&isFinite(E)&&Math.floor(E)===E}function i(E,g,h){return h}function T(E,g,h){var u=typeof E=="undefined"?g.pageSize:E;return Math.floor((h.total-1)/u)+1}var _=function(E){Object(w.a)(h,E);var g=Object(H.a)(h);function h(u){var r;Object(j.a)(this,h),r=g.call(this,u),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(T(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(D,A){var B=r.props.prefixCls,O=D||R.a.createElement("button",{type:"button","aria-label":A,className:"".concat(B,"-item-link")});return typeof D=="function"&&(O=R.a.createElement(D,Object(I.a)({},r.props))),O},r.savePaginationNode=function(D){r.paginationNode=D},r.isValid=function(D){return t(D)&&D!==r.state.current},r.shouldDisplayQuickJumper=function(){var D=r.props,A=D.showQuickJumper,B=D.pageSize,O=D.total;return O<=B?!1:A},r.handleKeyDown=function(D){(D.keyCode===o.ARROW_UP||D.keyCode===o.ARROW_DOWN)&&D.preventDefault()},r.handleKeyUp=function(D){var A=r.getValidValue(D),B=r.state.currentInputValue;A!==B&&r.setState({currentInputValue:A}),D.keyCode===o.ENTER?r.handleChange(A):D.keyCode===o.ARROW_UP?r.handleChange(A-1):D.keyCode===o.ARROW_DOWN&&r.handleChange(A+1)},r.changePageSize=function(D){var A=r.state.current,B=T(D,r.state,r.props);A=A>B?B:A,B===0&&(A=r.state.current),typeof D=="number"&&("pageSize"in r.props||r.setState({pageSize:D}),"current"in r.props||r.setState({current:A,currentInputValue:A})),r.props.onShowSizeChange(A,D),"onChange"in r.props&&r.props.onChange&&r.props.onChange(A,D)},r.handleChange=function(D){var A=r.props.disabled,B=D;if(r.isValid(B)&&!A){var O=T(void 0,r.state,r.props);B>O?B=O:B<1&&(B=1),"current"in r.props||r.setState({current:B,currentInputValue:B});var W=r.state.pageSize;return r.props.onChange(B,W),B}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?B-2:0),W=2;W=f?x=f:x=Number(l),x}},{key:"getShowSizeChanger",value:function(){var r=this.props,l=r.showSizeChanger,f=r.total,c=r.totalBoundaryShowSizeChanger;return typeof l!="undefined"?l:f>c}},{key:"renderPrev",value:function(r){var l=this.props,f=l.prevIcon,c=l.itemRender,x=c(r,"prev",this.getItemIcon(f,"prev page")),D=!this.hasPrev();return Object(U.isValidElement)(x)?Object(U.cloneElement)(x,{disabled:D}):x}},{key:"renderNext",value:function(r){var l=this.props,f=l.nextIcon,c=l.itemRender,x=c(r,"next",this.getItemIcon(f,"next page")),D=!this.hasNext();return Object(U.isValidElement)(x)?Object(U.cloneElement)(x,{disabled:D}):x}},{key:"render",value:function(){var r=this,l=this.props,f=l.prefixCls,c=l.className,x=l.style,D=l.disabled,A=l.hideOnSinglePage,B=l.total,O=l.locale,W=l.showQuickJumper,P=l.showLessItems,G=l.showTitle,Q=l.showTotal,re=l.simple,le=l.itemRender,Ee=l.showPrevNextJumpers,_e=l.jumpPrevIcon,ne=l.jumpNextIcon,Te=l.selectComponentClass,Ae=l.selectPrefixCls,fe=l.pageSizeOptions,J=this.state,Ie=J.current,it=J.pageSize,et=J.currentInputValue;if(A===!0&&B<=it)return null;var Qe=T(void 0,this.state,this.props),nt=[],Me=null,ze=null,Je=null,$e=null,Xe=null,Fe=W&&W.goButton,We=P?1:2,yt=Ie-1>0?Ie-1:0,ft=Ie+1=We*2&&Ie!==1+2&&(nt[0]=Object(U.cloneElement)(nt[0],{className:"".concat(f,"-item-after-jump-prev")}),nt.unshift(Me)),Qe-Ie>=We*2&&Ie!==Qe-2&&(nt[nt.length-1]=Object(U.cloneElement)(nt[nt.length-1],{className:"".concat(f,"-item-before-jump-next")}),nt.push(ze)),De!==1&&nt.unshift(Je),ke!==Qe&&nt.push($e)}var ce=null;Q&&(ce=R.a.createElement("li",{className:"".concat(f,"-total-text")},Q(B,[B===0?0:(Ie-1)*it+1,Ie*it>B?B:Ie*it])));var ee=!this.hasPrev()||!Qe,te=!this.hasNext()||!Qe;return R.a.createElement("ul",Object(ie.a)({className:y()(f,c,Object(L.a)({},"".concat(f,"-disabled"),D)),style:x,unselectable:"unselectable",ref:this.savePaginationNode},ut),ce,R.a.createElement("li",{title:G?O.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(f,"-prev"),Object(L.a)({},"".concat(f,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(yt)),nt,R.a.createElement("li",{title:G?O.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(f,"-next"),Object(L.a)({},"".concat(f,"-disabled"),te)),"aria-disabled":te},this.renderNext(ft)),R.a.createElement(a,{disabled:D,locale:O,rootPrefixCls:f,selectComponentClass:Te,selectPrefixCls:Ae,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ie,pageSize:it,pageSizeOptions:fe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Fe}))}}],[{key:"getDerivedStateFromProps",value:function(r,l){var f={};if("current"in r&&(f.current=r.current,r.current!==l.current&&(f.currentInputValue=f.current)),"pageSize"in r&&r.pageSize!==l.pageSize){var c=l.current,x=T(r.pageSize,l,r);c=c>x?x:c,"current"in r||(f.current=c,f.currentInputValue=c),f.pageSize=r.pageSize}return f}}]),h}(R.a.Component);_.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:e,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:e,locale:s.a,style:{},itemRender:i,totalBoundaryShowSizeChanger:50};var m=_},"6RRn":function(Ge,Re,F){"use strict";var ie=F("wCXF"),L=F("n6Qo");F.d(Re,"b",function(){return L.a});var I=F("IBYe"),j=F("6eGT"),C=F("hW8S");F.d(Re,"a",function(){return C.a}),Re.c=ie.b},"6UM0":function(Ge,Re,F){var ie,L;(function(){var I;(function(){"use strict";var C=[function(R,S,y){var v=y(1).Beautifier,d=y(5).Options;function o(n,a){var s=new v(n,a);return s.beautify()}R.exports=o,R.exports.defaultOptions=function(){return new d}},function(R,S,y){var v=y(2).Output,d=y(3).Token,o=y(4),n=y(5).Options,a=y(7).Tokenizer,s=y(7).line_starters,e=y(7).positionable_operators,t=y(7).TOKEN;function i(P,G){return G.indexOf(P)!==-1}function T(P){return P.replace(/^\s+/g,"")}function _(P){for(var G={},Q=0;QQ&&(Q=P.line_indent_level));var re={mode:G,parent:P,last_token:P?P.last_token:new d(t.START_BLOCK,""),last_word:P?P.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:P?P.line_indent_level:Q,start_line_index:this._output.get_line_number(),ternary_depth:0};return re},O.prototype._reset=function(P){var G=P.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new v(this._options,G),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(l.BlockStatement);var Q=new a(P,this._options);return this._tokens=Q.tokenize(),P},O.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P,G=this._reset(this._source_text),Q=this._options.eol;this._options.eol==="auto"&&(Q=`
`,G&&o.lineBreak.test(G||"")&&(Q=G.match(o.lineBreak)[0]));for(var re=this._tokens.next();re;)this.handle_token(re),this._last_last_text=this._flags.last_token.text,this._flags.last_token=re,re=this._tokens.next();return P=this._output.get_code(Q),P},O.prototype.handle_token=function(P,G){P.type===t.START_EXPR?this.handle_start_expr(P):P.type===t.END_EXPR?this.handle_end_expr(P):P.type===t.START_BLOCK?this.handle_start_block(P):P.type===t.END_BLOCK?this.handle_end_block(P):P.type===t.WORD?this.handle_word(P):P.type===t.RESERVED?this.handle_word(P):P.type===t.SEMICOLON?this.handle_semicolon(P):P.type===t.STRING?this.handle_string(P):P.type===t.EQUALS?this.handle_equals(P):P.type===t.OPERATOR?this.handle_operator(P):P.type===t.COMMA?this.handle_comma(P):P.type===t.BLOCK_COMMENT?this.handle_block_comment(P,G):P.type===t.COMMENT?this.handle_comment(P,G):P.type===t.DOT?this.handle_dot(P):P.type===t.EOF?this.handle_eof(P):P.type===t.UNKNOWN?this.handle_unknown(P,G):this.handle_unknown(P,G)},O.prototype.handle_whitespace_and_comments=function(P,G){var Q=P.newlines,re=this._options.keep_array_indentation&&x(this._flags.mode);if(P.comments_before)for(var le=P.comments_before.next();le;)this.handle_whitespace_and_comments(le,G),this.handle_token(le,G),le=P.comments_before.next();if(re)for(var Ee=0;Ee0,G);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,G);for(var _e=1;_e0&&(!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))},O.prototype.set_mode=function(P){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,P),this._flags=this.create_flags(this._previous_flags,P),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},O.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&&f(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},O.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"]))},O.prototype.start_of_statement=function(P){var G=!1;return G=G||E(this._flags.last_token,["var","let","const"])&&P.type===t.WORD,G=G||m(this._flags.last_token,"do"),G=G||!(this._flags.parent.mode===l.ObjectLiteral&&this._flags.mode===l.Statement)&&E(this._flags.last_token,W)&&!P.newlines,G=G||m(this._flags.last_token,"else")&&!(m(P,"if")&&!P.comments_before),G=G||this._flags.last_token.type===t.END_EXPR&&(this._previous_flags.mode===l.ForInitializer||this._previous_flags.mode===l.Conditional),G=G||this._flags.last_token.type===t.WORD&&this._flags.mode===l.BlockStatement&&!this._flags.in_case&&!(P.text==="--"||P.text==="++")&&this._last_last_text!=="function"&&P.type!==t.WORD&&P.type!==t.RESERVED,G=G||this._flags.mode===l.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"])),G?(this.set_mode(l.Statement),this.indent(),this.handle_whitespace_and_comments(P,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P,E(P,["do","for","if","while"])),!0):!1},O.prototype.handle_start_expr=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P);var G=l.Expression;if(P.text==="["){if(this._flags.last_token.type===t.WORD||this._flags.last_token.text===")"){E(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(P),this.set_mode(G),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}G=l.ArrayLiteral,x(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())),i(this._flags.last_token.type,[t.START_EXPR,t.END_EXPR,t.WORD,t.OPERATOR,t.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===t.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,G=l.ForInitializer):i(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,G=l.Conditional):i(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&P.whitespace_before===""?this._output.space_before_token=!1:(i(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===t.EQUALS||this._flags.last_token.type===t.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P);else if(this._flags.last_token.type===t.WORD){this._output.space_before_token=!1;var Q=this._tokens.peek(-3);if(this._options.space_after_named_function&&Q){var re=this._tokens.peek(-4);E(Q,["async","function"])||Q.text==="*"&&E(re,["async","function"])?this._output.space_before_token=!0:this._flags.mode===l.ObjectLiteral?(Q.text==="{"||Q.text===","||Q.text==="*"&&(re.text==="{"||re.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(P);(this._flags.last_token.type===t.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(i(this._last_last_text,["function","yield"])||this._flags.mode===l.ObjectLiteral&&i(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===t.START_BLOCK?this.print_newline():(this._flags.last_token.type===t.END_EXPR||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===t.COMMA)&&this.allow_wrap_or_preserved_newline(P,P.newlines),this.print_token(P),this.set_mode(G),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},O.prototype.handle_end_expr=function(P){for(;this._flags.mode===l.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(P,P.text==="]"&&x(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===t.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(P),this.restore_mode(),f(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)},O.prototype.handle_start_block=function(P){this.handle_whitespace_and_comments(P);var G=this._tokens.peek(),Q=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===t.END_EXPR?(this.set_mode(l.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(l.BlockStatement):Q&&(i(Q.text,[":",","])&&i(G.type,[t.STRING,t.WORD,t.RESERVED])||i(G.text,["get","set","..."])&&i(Q.type,[t.WORD,t.RESERVED]))?i(this._last_last_text,["class","interface"])&&!i(Q.text,[":",","])?this.set_mode(l.BlockStatement):this.set_mode(l.ObjectLiteral):this._flags.last_token.type===t.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(l.BlockStatement):i(this._flags.last_token.type,[t.EQUALS,t.START_EXPR,t.COMMA,t.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 re=!G.comments_before&&G.text==="}",le=re&&this._flags.last_word==="function"&&this._flags.last_token.type===t.END_EXPR;if(this._options.brace_preserve_inline){var Ee=0,_e=null;this._flags.inline_frame=!0;do if(Ee+=1,_e=this._tokens.peek(Ee-1),_e.newlines){this._flags.inline_frame=!1;break}while(_e.type!==t.EOF&&!(_e.type===t.END_BLOCK&&_e.opened===P))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==t.OPERATOR&&(le||this._flags.last_token.type===t.EQUALS||E(this._flags.last_token,g)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(x(this._previous_flags.mode)&&(this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.COMMA)&&((this._flags.last_token.type===t.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(P),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==t.OPERATOR&&this._flags.last_token.type!==t.START_EXPR&&(this._flags.last_token.type===t.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(P),this.indent(),!re&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},O.prototype.handle_end_block=function(P){for(this.handle_whitespace_and_comments(P);this._flags.mode===l.Statement;)this.restore_mode();var G=this._flags.last_token.type===t.START_BLOCK;this._flags.inline_frame&&!G?this._output.space_before_token=!0:this._options.brace_style==="expand"?G||this.print_newline():G||(x(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(P)},O.prototype.handle_word=function(P){if(P.type===t.RESERVED){if(i(P.text,["set","get"])&&this._flags.mode!==l.ObjectLiteral)P.type=t.WORD;else if(P.text==="import"&&i(this._tokens.peek().text,["(","."]))P.type=t.WORD;else if(i(P.text,["as","from"])&&!this._flags.import_block)P.type=t.WORD;else if(this._flags.mode===l.ObjectLiteral){var G=this._tokens.peek();G.text===":"&&(P.type=t.WORD)}}if(this.start_of_statement(P)?E(this._flags.last_token,["var","let","const"])&&P.type===t.WORD&&(this._flags.declaration_statement=!0):P.newlines&&!D(this._flags.mode)&&(this._flags.last_token.type!==t.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==t.EQUALS&&(this._options.preserve_newlines||!E(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(P),this.print_newline()):this.handle_whitespace_and_comments(P),this._flags.do_block&&!this._flags.do_while)if(m(P,"while")){this._output.space_before_token=!0,this.print_token(P),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&&m(P,"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(P,["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(P),this._flags.in_case=!0;return}if((this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P)),m(P,"function")){(i(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(i(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===t.OPERATOR))&&(!this._output.just_added_blankline()&&!P.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD?E(this._flags.last_token,["get","set","new","export"])||E(this._flags.last_token,W)?this._output.space_before_token=!0:m(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===t.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(D(this._flags.mode)||x(this._flags.mode))||this.print_newline(),this.print_token(P),this._flags.last_word=P.text;return}var Q="NONE";if(this._flags.last_token.type===t.END_BLOCK?this._previous_flags.inline_frame?Q="SPACE":E(P,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines?Q="NEWLINE":(Q="SPACE",this._output.space_before_token=!0):Q="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&this._flags.mode===l.BlockStatement?Q="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&D(this._flags.mode)?Q="SPACE":this._flags.last_token.type===t.STRING?Q="NEWLINE":this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD||this._flags.last_token.text==="*"&&(i(this._last_last_text,["function","yield"])||this._flags.mode===l.ObjectLiteral&&i(this._last_last_text,["{",","]))?Q="SPACE":this._flags.last_token.type===t.START_BLOCK?this._flags.inline_frame?Q="SPACE":Q="NEWLINE":this._flags.last_token.type===t.END_EXPR&&(this._output.space_before_token=!0,Q="NEWLINE"),E(P,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(P,["else","catch","finally"]))if((!(this._flags.last_token.type===t.END_BLOCK&&this._previous_flags.mode===l.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var re=this._output.current_line;re.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else Q==="NEWLINE"?E(this._flags.last_token,g)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&E(P,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==t.END_EXPR?(this._flags.last_token.type!==t.START_EXPR||!E(P,["var","let","const"]))&&this._flags.last_token.text!==":"&&(m(P,"if")&&m(P.previous,"else")?this._output.space_before_token=!0:this.print_newline()):E(P,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():Q==="SPACE"&&(this._output.space_before_token=!0);P.previous&&(P.previous.type===t.WORD||P.previous.type===t.RESERVED)&&(this._output.space_before_token=!0),this.print_token(P),this._flags.last_word=P.text,P.type===t.RESERVED&&(P.text==="do"?this._flags.do_block=!0:P.text==="if"?this._flags.if_block=!0:P.text==="import"?this._flags.import_block=!0:this._flags.import_block&&m(P,"from")&&(this._flags.import_block=!1))},O.prototype.handle_semicolon=function(P){this.start_of_statement(P)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(P);for(var G=this._tokens.peek();this._flags.mode===l.Statement&&!(this._flags.if_block&&m(G,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(P)},O.prototype.handle_string=function(P){P.text.startsWith("`")&&P.newlines===0&&P.whitespace_before===""&&(P.previous.text===")"||this._flags.last_token.type===t.WORD)||(this.start_of_statement(P)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(P),this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P):P.text.startsWith("`")&&this._flags.last_token.type===t.END_EXPR&&(P.previous.text==="]"||P.previous.text===")")&&P.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(P)},O.prototype.handle_equals=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0},O.prototype.handle_comma=function(P){this.handle_whitespace_and_comments(P,!0),this.print_token(P),this._output.space_before_token=!0,this._flags.declaration_statement?(D(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(P)):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(P)},O.prototype.handle_operator=function(P){var G=P.text==="*"&&(E(this._flags.last_token,["function","yield"])||i(this._flags.last_token.type,[t.START_BLOCK,t.COMMA,t.END_BLOCK,t.SEMICOLON])),Q=i(P.text,["-","+"])&&(i(this._flags.last_token.type,[t.START_BLOCK,t.START_EXPR,t.EQUALS,t.OPERATOR])||i(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(P)){var re=!G;this.handle_whitespace_and_comments(P,re)}if(P.text==="*"&&this._flags.last_token.type===t.DOT){this.print_token(P);return}if(P.text==="::"){this.print_token(P);return}if(this._flags.last_token.type===t.OPERATOR&&i(this._options.operator_position,r)&&this.allow_wrap_or_preserved_newline(P),P.text===":"&&this._flags.in_case){this.print_token(P),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==t.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,Ee=!0,_e=!1;if(P.text===":"?this._flags.ternary_depth===0?le=!1:(this._flags.ternary_depth-=1,_e=!0):P.text==="?"&&(this._flags.ternary_depth+=1),!Q&&!G&&this._options.preserve_newlines&&i(P.text,e)){var ne=P.text===":",Te=ne&&_e,Ae=ne&&!_e;switch(this._options.operator_position){case u.before_newline:this._output.space_before_token=!Ae,this.print_token(P),(!ne||Te)&&this.allow_wrap_or_preserved_newline(P),this._output.space_before_token=!0;return;case u.after_newline:this._output.space_before_token=!0,!ne||Te?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(P):this._output.space_before_token=!1,this.print_token(P),this._output.space_before_token=!0;return;case u.preserve_newline:Ae||this.allow_wrap_or_preserved_newline(P),le=!(this._output.just_added_newline()||Ae),this._output.space_before_token=le,this.print_token(P),this._output.space_before_token=!0;return}}if(G){this.allow_wrap_or_preserved_newline(P),le=!1;var fe=this._tokens.peek();Ee=fe&&i(fe.type,[t.WORD,t.RESERVED])}else if(P.text==="...")this.allow_wrap_or_preserved_newline(P),le=this._flags.last_token.type===t.START_BLOCK,Ee=!1;else if(i(P.text,["--","++","!","~"])||Q){if((this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR)&&this.allow_wrap_or_preserved_newline(P),le=!1,Ee=!1,P.newlines&&(P.text==="--"||P.text==="++"||P.text==="~")){var J=E(this._flags.last_token,g)&&P.newlines;J&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(J,!0)}this._flags.last_token.text===";"&&D(this._flags.mode)&&(le=!0),this._flags.last_token.type===t.RESERVED?le=!0:this._flags.last_token.type===t.END_EXPR?le=!(this._flags.last_token.text==="]"&&(P.text==="--"||P.text==="++")):this._flags.last_token.type===t.OPERATOR&&(le=i(P.text,["--","-","++","+"])&&i(this._flags.last_token.text,["--","-","++","+"]),i(P.text,["+","-"])&&i(this._flags.last_token.text,["--","++"])&&(Ee=!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(P),this._output.space_before_token=Ee},O.prototype.handle_block_comment=function(P,G){if(this._output.raw){this._output.add_raw_token(P),P.directives&&P.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(P.directives){this.print_newline(!1,G),this.print_token(P),P.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!o.newline.test(P.text)&&!P.newlines){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0;return}else this.print_block_commment(P,G)},O.prototype.print_block_commment=function(P,G){var Q=c(P.text),re,le=!1,Ee=!1,_e=P.whitespace_before,ne=_e.length;if(this.print_newline(!1,G),this.print_token_line_indentation(P),this._output.add_token(Q[0]),this.print_newline(!1,G),Q.length>1){for(Q=Q.slice(1),le=A(Q,"*"),Ee=B(Q,_e),le&&(this._flags.alignment=1),re=0;re=0;o--)if(this.__items[o].match(d))return!0;return!1},S.prototype.set_indent=function(d,o){this.is_empty()&&(this.__indent_count=d||0,this.__alignment_count=o||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 d=this.__parent.current_line;return d.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),d.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),d.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,d.__items[0]===" "&&(d.__items.splice(0,1),d.__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(d){this.__items.push(d);var o=d.lastIndexOf(`
`);o!==-1?this.__character_count=d.length-o:this.__character_count+=d.length},S.prototype.pop=function(){var d=null;return this.is_empty()||(d=this.__items.pop(),this.__character_count-=d.length),d},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 d="";return this.is_empty()?this.__parent.indent_empty_lines&&(d=this.__parent.get_indent_string(this.__indent_count)):(d=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),d+=this.__items.join("")),d};function y(d,o){this.__cache=[""],this.__indent_size=d.indent_size,this.__indent_string=d.indent_char,d.indent_with_tabs||(this.__indent_string=new Array(d.indent_size+1).join(d.indent_char)),o=o||"",d.indent_level>0&&(o=new Array(d.indent_level+1).join(this.__indent_string)),this.__base_string=o,this.__base_string_length=o.length}y.prototype.get_indent_size=function(d,o){var n=this.__base_string_length;return o=o||0,d<0&&(n=0),n+=d*this.__indent_size,n+=o,n},y.prototype.get_indent_string=function(d,o){var n=this.__base_string;return o=o||0,d<0&&(d=0,n=""),o+=d*this.__indent_size,this.__ensure_cache(o),n+=this.__cache[o],n},y.prototype.__ensure_cache=function(d){for(;d>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var d=this.__cache.length,o=0,n="";this.__indent_size&&d>=this.__indent_size&&(o=Math.floor(d/this.__indent_size),d-=o*this.__indent_size,n=new Array(o+1).join(this.__indent_string)),d&&(n+=new Array(d+1).join(" ")),this.__cache.push(n)};function v(d,o){this.__indent_cache=new y(d,o),this.raw=!1,this._end_with_newline=d.end_with_newline,this.indent_size=d.indent_size,this.wrap_line_length=d.wrap_line_length,this.indent_empty_lines=d.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()}v.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},v.prototype.get_line_number=function(){return this.__lines.length},v.prototype.get_indent_string=function(d,o){return this.__indent_cache.get_indent_string(d,o)},v.prototype.get_indent_size=function(d,o){return this.__indent_cache.get_indent_size(d,o)},v.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},v.prototype.add_new_line=function(d){return this.is_empty()||!d&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},v.prototype.get_code=function(d){this.trim(!0);var o=this.current_line.pop();o&&(o[o.length-1]===`
`&&(o=o.replace(/\n+$/g,"")),this.current_line.push(o)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
`);return d!==`
`&&(n=n.replace(/[\n]/g,d)),n},v.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},v.prototype.set_indent=function(d,o){return d=d||0,o=o||0,this.next_line.set_indent(d,o),this.__lines.length>1?(this.current_line.set_indent(d,o),!0):(this.current_line.set_indent(),!1)},v.prototype.add_raw_token=function(d){for(var o=0;o1&&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},v.prototype.just_added_newline=function(){return this.current_line.is_empty()},v.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},v.prototype.ensure_empty_line_above=function(d,o){for(var n=this.__lines.length-2;n>=0;){var a=this.__lines[n];if(a.is_empty())break;if(a.item(0).indexOf(d)!==0&&a.item(-1)!==o){this.__lines.splice(n+1,0,new S(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},R.exports.Output=v},function(R){function S(y,v,d,o){this.type=y,this.text=v,this.comments_before=null,this.newlines=d||0,this.whitespace_before=o||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}R.exports.Token=S},function(R,S){var y="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",v="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",d="\\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",o="\\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",n="(?:\\\\u[0-9a-fA-F]{4}|["+y+d+"])",a="(?:\\\\u[0-9a-fA-F]{4}|["+v+d+o+"])*";S.identifier=new RegExp(n+a,"g"),S.identifierStart=new RegExp(n),S.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+v+d+o+"])+");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(R,S,y){var v=y(6).Options,d=["before-newline","after-newline","preserve-newline"];function o(n){v.call(this,n,"js");var a=this.raw_options.brace_style||null;a==="expand-strict"?this.raw_options.brace_style="expand":a==="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 e=0;e>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),h=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";h=h.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),h="\\?\\.(?!\\d) "+h,h=h.replace(/ /g,"|");var u=new RegExp(h),r="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),l=r.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),f=new RegExp("^(?:"+l.join("|")+")$"),c,x=function(A,B){d.call(this,A,B),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var O=new s(this._input),W=new e(this._input).read_options(this._options);this.__patterns={template:W,identifier:W.starting_with(a.identifier).matching(a.identifierMatch),number:O.matching(_),punct:O.matching(u),comment:O.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:O.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:O.matching(//),include:O.starting_with(/#include/).until_after(a.lineBreak),shebang:O.starting_with(/#!/).until_after(a.lineBreak),xml:O.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:W.until(/['\\\n\r\u2028\u2029]/),double_quote:W.until(/["\\\n\r\u2028\u2029]/),template_text:W.until(/[`\\$]/),template_expression:W.until(/[`}\\]/)}};x.prototype=new d,x.prototype._is_comment=function(A){return A.type===i.COMMENT||A.type===i.BLOCK_COMMENT||A.type===i.UNKNOWN},x.prototype._is_opening=function(A){return A.type===i.START_BLOCK||A.type===i.START_EXPR},x.prototype._is_closing=function(A,B){return(A.type===i.END_BLOCK||A.type===i.END_EXPR)&&B&&(A.text==="]"&&B.text==="["||A.text===")"&&B.text==="("||A.text==="}"&&B.text==="{")},x.prototype._reset=function(){c=!1},x.prototype._get_next_token=function(A,B){var O=null;this._readWhitespace();var W=this._input.peek();return W===null?this._create_token(i.EOF,""):(O=O||this._read_non_javascript(W),O=O||this._read_string(W),O=O||this._read_word(A),O=O||this._read_singles(W),O=O||this._read_comment(W),O=O||this._read_regexp(W,A),O=O||this._read_xml(W,A),O=O||this._read_punctuation(),O=O||this._create_token(i.UNKNOWN,this._input.next()),O)},x.prototype._read_word=function(A){var B;if(B=this.__patterns.identifier.read(),B!=="")return B=B.replace(a.allLineBreaks,`
`),!(A.type===i.DOT||A.type===i.RESERVED&&(A.text==="set"||A.text==="get"))&&f.test(B)?(B==="in"||B==="of")&&(A.type===i.WORD||A.type===i.STRING)?this._create_token(i.OPERATOR,B):this._create_token(i.RESERVED,B):this._create_token(i.WORD,B);if(B=this.__patterns.number.read(),B!=="")return this._create_token(i.WORD,B)},x.prototype._read_singles=function(A){var B=null;return A==="("||A==="["?B=this._create_token(i.START_EXPR,A):A===")"||A==="]"?B=this._create_token(i.END_EXPR,A):A==="{"?B=this._create_token(i.START_BLOCK,A):A==="}"?B=this._create_token(i.END_BLOCK,A):A===";"?B=this._create_token(i.SEMICOLON,A):A==="."&&E.test(this._input.peek(1))?B=this._create_token(i.DOT,A):A===","&&(B=this._create_token(i.COMMA,A)),B&&this._input.next(),B},x.prototype._read_punctuation=function(){var A=this.__patterns.punct.read();if(A!=="")return A==="="?this._create_token(i.EQUALS,A):A==="?."?this._create_token(i.DOT,A):this._create_token(i.OPERATOR,A)},x.prototype._read_non_javascript=function(A){var B="";if(A==="#"){if(this._is_first_token()&&(B=this.__patterns.shebang.read(),B))return this._create_token(i.UNKNOWN,B.trim()+`
`);if(B=this.__patterns.include.read(),B)return this._create_token(i.UNKNOWN,B.trim()+`
`);A=this._input.next();var O="#";if(this._input.hasNext()&&this._input.testChar(m)){do A=this._input.next(),O+=A;while(this._input.hasNext()&&A!=="#"&&A!=="=");return A==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(O+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(O+="{}",this._input.next(),this._input.next())),this._create_token(i.WORD,O)}this._input.back()}else if(A==="<"&&this._is_first_token()){if(B=this.__patterns.html_comment_start.read(),B){for(;this._input.hasNext()&&!this._input.testChar(a.newline);)B+=this._input.next();return c=!0,this._create_token(i.COMMENT,B)}}else if(c&&A==="-"&&(B=this.__patterns.html_comment_end.read(),B))return c=!1,this._create_token(i.COMMENT,B);return null},x.prototype._read_comment=function(A){var B=null;if(A==="/"){var O="";if(this._input.peek(1)==="*"){O=this.__patterns.block_comment.read();var W=T.get_directives(O);W&&W.ignore==="start"&&(O+=T.readIgnored(this._input)),O=O.replace(a.allLineBreaks,`
`),B=this._create_token(i.BLOCK_COMMENT,O),B.directives=W}else this._input.peek(1)==="/"&&(O=this.__patterns.comment.read(),B=this._create_token(i.COMMENT,O))}return B},x.prototype._read_string=function(A){if(A==="`"||A==="'"||A==='"'){var B=this._input.next();return this.has_char_escapes=!1,A==="`"?B+=this._read_string_recursive("`",!0,"${"):B+=this._read_string_recursive(A),this.has_char_escapes&&this._options.unescape_strings&&(B=D(B)),this._input.peek()===A&&(B+=this._input.next()),B=B.replace(a.allLineBreaks,`
`),this._create_token(i.STRING,B)}return null},x.prototype._allow_regexp_or_xml=function(A){return A.type===i.RESERVED&&t(A.text,["return","case","throw","else","do","typeof","yield"])||A.type===i.END_EXPR&&A.text===")"&&A.opened.previous.type===i.RESERVED&&t(A.opened.previous.text,["if","while","for"])||t(A.type,[i.COMMENT,i.START_EXPR,i.START_BLOCK,i.START,i.END_BLOCK,i.OPERATOR,i.EQUALS,i.EOF,i.SEMICOLON,i.COMMA])},x.prototype._read_regexp=function(A,B){if(A==="/"&&this._allow_regexp_or_xml(B)){for(var O=this._input.next(),W=!1,P=!1;this._input.hasNext()&&(W||P||this._input.peek()!==A)&&!this._input.testChar(a.newline);)O+=this._input.peek(),W?W=!1:(W=this._input.peek()==="\\",this._input.peek()==="["?P=!0:this._input.peek()==="]"&&(P=!1)),this._input.next();return this._input.peek()===A&&(O+=this._input.next(),O+=this._input.read(a.identifier)),this._create_token(i.STRING,O)}return null},x.prototype._read_xml=function(A,B){if(this._options.e4x&&A==="<"&&this._allow_regexp_or_xml(B)){var O="",W=this.__patterns.xml.read_match();if(W){for(var P=W[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),G=P.indexOf("{")===0,Q=0;W;){var re=!!W[1],le=W[2],Ee=!!W[W.length-1]||le.slice(0,8)==="![CDATA[";if(!Ee&&(le===P||G&&le.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(re?--Q:++Q),O+=W[0],Q<=0)break;W=this.__patterns.xml.read_match()}return W||(O+=this._input.match(/[\s\S]*/g)[0]),O=O.replace(a.allLineBreaks,`
`),this._create_token(i.STRING,O)}}return null};function D(A){for(var B="",O=0,W=new v(A),P=null;W.hasNext();)if(P=W.match(/([\s]|[^\\]|\\\\)+/g),P&&(B+=P[0]),W.peek()==="\\"){if(W.next(),W.peek()==="x")P=W.match(/x([0-9A-Fa-f]{2})/g);else if(W.peek()==="u")P=W.match(/u([0-9A-Fa-f]{4})/g);else{B+="\\",W.hasNext()&&(B+=W.next());continue}if(!P)return A;if(O=parseInt(P[1],16),O>126&&O<=255&&P[0].indexOf("x")===0)return A;if(O>=0&&O<32){B+="\\"+P[0];continue}else O===34||O===39||O===92?B+="\\"+String.fromCharCode(O):B+=String.fromCharCode(O)}return B}x.prototype._read_string_recursive=function(A,B,O){var W,P;A==="'"?P=this.__patterns.single_quote:A==='"'?P=this.__patterns.double_quote:A==="`"?P=this.__patterns.template_text:A==="}"&&(P=this.__patterns.template_expression);for(var G=P.read(),Q="";this._input.hasNext();){if(Q=this._input.next(),Q===A||!B&&a.newline.test(Q)){this._input.back();break}else Q==="\\"&&this._input.hasNext()?(W=this._input.peek(),W==="x"||W==="u"?this.has_char_escapes=!0:W==="\r"&&this._input.peek(1)===`
`&&this._input.next(),Q+=this._input.next()):O&&(O==="${"&&Q==="$"&&this._input.peek()==="{"&&(Q+=this._input.next()),O===Q&&(A==="`"?Q+=this._read_string_recursive("}",B,"`"):Q+=this._read_string_recursive("`",B,"${"),this._input.hasNext()&&(Q+=this._input.next())));Q+=P.read(),G+=Q}return G},R.exports.Tokenizer=x,R.exports.TOKEN=i,R.exports.positionable_operators=g.slice(),R.exports.line_starters=r.slice()},function(R){var S=RegExp.prototype.hasOwnProperty("sticky");function y(v){this.__input=v||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position=0&&v=0&&d=v.length&&this.__input.substring(d-v.length,d).toLowerCase()===v},R.exports.InputScanner=y},function(R,S,y){var v=y(8).InputScanner,d=y(3).Token,o=y(10).TokenStream,n=y(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(e,t){this._input=new v(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new n(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new o,this._reset();for(var e,t=new d(a.START,""),i=null,T=[],_=new o;t.type!==a.EOF;){for(e=this._get_next_token(t,i);this._is_comment(e);)_.add(e),e=this._get_next_token(t,i);_.isEmpty()||(e.comments_before=_,_=new o),e.parent=i,this._is_opening(e)?(T.push(i),i=e):i&&this._is_closing(e,i)&&(e.opened=i,i.closed=e,i=T.pop(),e.parent=i),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(e,t){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(a.RAW,i):this._create_token(a.EOF,"")},s.prototype._is_comment=function(e){return!1},s.prototype._is_opening=function(e){return!1},s.prototype._is_closing=function(e,t){return!1},s.prototype._create_token=function(e,t){var i=new d(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return i},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},R.exports.Tokenizer=s,R.exports.TOKEN=a},function(R){function S(y){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=y}S.prototype.restart=function(){this.__position=0},S.prototype.isEmpty=function(){return this.__tokens_length===0},S.prototype.hasNext=function(){return this.__position=0&&y/),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}/)}}o.prototype=new v,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(n){var a=this._create();return a._disabled[n]=!0,a._update(),a},o.prototype.read_options=function(n){var a=this._create();for(var s in d)a._disabled[s]=n.templating.indexOf(s)===-1;return a._update(),a},o.prototype.exclude=function(n){var a=this._create();return a._excluded[n]=!0,a._update(),a},o.prototype.read=function(){var n="";this._match_pattern?n=this._input.read(this._starting_pattern):n=this._input.read(this._starting_pattern,this.__template_pattern);for(var a=this._read_template();a;)this._match_pattern?a+=this._input.read(this._match_pattern):a+=this._input.readUntil(this.__template_pattern),n+=a,a=this._read_template();return this._until_after&&(n+=this._input.readUntilAfter(this._until_pattern)),n},o.prototype.__set_templated_pattern=function(){var n=[];this._disabled.php||n.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||n.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||n.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(n.push(this.__patterns.django._starting_pattern.source),n.push(this.__patterns.django_value._starting_pattern.source),n.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||n.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&n.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+n.join("|")+")")},o.prototype._read_template=function(){var n="",a=this._input.peek();if(a==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(n=n||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(n=n||this.__patterns.erb.read())}else a==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(n=n||this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars_unescaped.read(),n=n||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(n=n||this.__patterns.django_value.read()),this._excluded.django||(n=n||this.__patterns.django_comment.read(),n=n||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(n=n||this.__patterns.smarty_comment.read(),n=n||this.__patterns.smarty_literal.read(),n=n||this.__patterns.smarty.read()));return n},R.exports.TemplatablePattern=o}],w={};function H(R){var S=w[R];if(S!==void 0)return S.exports;var y=w[R]={exports:{}};return C[R](y,y.exports,H),y.exports}var U=H(0);I=U})();var j=I;!(ie=[],L=function(){return{js_beautify:j}}.apply(Re,ie),L!==void 0&&(Ge.exports=L))})()},"6eGT":function(Ge,Re,F){"use strict";function ie(L){return null}Re.a=ie},"6nfa":function(Ge,Re,F){Ge.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"815F":function(Ge,Re,F){"use strict";F.d(Re,"e",function(){return H}),F.d(Re,"c",function(){return R}),F.d(Re,"d",function(){return S}),F.d(Re,"a",function(){return v}),F.d(Re,"f",function(){return d}),F.d(Re,"b",function(){return o});var ie=F("KQm4"),L=F("VTBJ"),I=F("Ff2n"),j=F("Zm9Q"),C=F("Kwbf"),w=F("OZM5");function H(n,a){return n!=null?n:a}function U(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=new Map;function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(e||[]).forEach(function(i){var T=i.key,_=i.children;Object(C.a)(T!=null,"Tree node must have a certain key: [".concat(t).concat(T,"]"));var m=String(T);Object(C.a)(!a.has(m)||T===null||T===void 0,"Same 'key' exist in the Tree: ".concat(m)),a.set(m,!0),s(_,"".concat(t).concat(m," > "))})}s(n)}function R(n){function a(s){var e=Object(j.a)(s);return e.map(function(t){if(!Object(w.i)(t))return Object(C.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var i=t.key,T=t.props,_=T.children,m=Object(I.a)(T,["children"]),E=Object(L.a)({key:i},m),g=a(_);return g.length&&(E.children=g),E}).filter(function(t){return t})}return a(n)}function S(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=new Set(a===!0?[]:a),e=[];function t(i){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return i.map(function(_,m){var E=Object(w.h)(T?T.pos:"0",m),g=H(_.key,E),h=Object(L.a)(Object(L.a)({},_),{},{parent:T,pos:E,children:null,data:_,isStart:[].concat(Object(ie.a)(T?T.isStart:[]),[m===0]),isEnd:[].concat(Object(ie.a)(T?T.isEnd:[]),[m===i.length-1])});return e.push(h),a===!0||s.has(g)?h.children=t(_.children||[],h):h.children=[],h})}return t(n),e}function y(n,a,s){var e;s?typeof s=="string"?e=function(T){return T[s]}:typeof s=="function"&&(e=function(T){return s(T)}):e=function(T,_){return H(T.key,_)};function t(i,T,_){var m=i?i.children:n,E=i?Object(w.h)(_.pos,T):"0";if(i){var g=e(i,E),h={node:i,index:T,pos:E,key:g,parentPos:_.node?_.pos:null,level:_.level+1};a(h)}m&&m.forEach(function(u,r){t(u,r,{node:i,pos:E,level:_?_.level+1:-1})})}t(null)}function v(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.initWrapper,e=a.processEntity,t=a.onProcessFinished,i=arguments.length>2?arguments[2]:void 0,T={},_={},m={posEntities:T,keyEntities:_};return s&&(m=s(m)||m),y(n,function(E){var g=E.node,h=E.index,u=E.pos,r=E.key,l=E.parentPos,f=E.level,c={node:g,index:h,key:r,pos:u,level:f},x=H(r,u);T[u]=c,_[x]=c,c.parent=T[l],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),e&&e(c,m)},i),t&&t(m),m}function d(n,a){var s=a.expandedKeys,e=a.selectedKeys,t=a.loadedKeys,i=a.loadingKeys,T=a.checkedKeys,_=a.halfCheckedKeys,m=a.dragOverNodeKey,E=a.dropPosition,g=a.keyEntities,h=g[n],u={eventKey:n,expanded:s.indexOf(n)!==-1,selected:e.indexOf(n)!==-1,loaded:t.indexOf(n)!==-1,loading:i.indexOf(n)!==-1,checked:T.indexOf(n)!==-1,halfChecked:_.indexOf(n)!==-1,pos:String(h?h.pos:""),dragOver:m===n&&E===0,dragOverGapTop:m===n&&E===-1,dragOverGapBottom:m===n&&E===1};return u}function o(n){var a=n.data,s=n.expanded,e=n.selected,t=n.checked,i=n.loaded,T=n.loading,_=n.halfChecked,m=n.dragOver,E=n.dragOverGapTop,g=n.dragOverGapBottom,h=n.pos,u=n.active,r=Object(L.a)(Object(L.a)({},a),{},{expanded:s,selected:e,checked:t,loaded:i,loading:T,halfChecked:_,dragOver:m,dragOverGapTop:E,dragOverGapBottom:g,pos:h,active:u});return"props"in r||Object.defineProperty(r,"props",{get:function(){return Object(C.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),r}},"8WcF":function(Ge,Re,F){Ge.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8hTe":function(Ge,Re,F){Ge.exports={button:"button___1wy9m"}},"8mKB":function(Ge,Re,F){"use strict";var ie=F("rePB"),L=F("1OyB"),I=F("vuIU"),j=F("Ji7U"),C=F("md7G"),w=F("foSv"),H=F("cDcd"),U=F.n(H),R=F("m+aA"),S=F("TSYQ"),y=F.n(S),v=F("4IlW");function d(u){var r=u.pageXOffset,l="scrollLeft";if(typeof r!="number"){var f=u.document;r=f.documentElement[l],typeof r!="number"&&(r=f.body[l])}return r}function o(u){var r,l,f=u.ownerDocument,c=f.body,x=f&&f.documentElement,D=u.getBoundingClientRect();return r=D.left,l=D.top,r-=x.clientLeft||c.clientLeft||0,l-=x.clientTop||c.clientTop||0,{left:r,top:l}}function n(u){var r=o(u),l=u.ownerDocument,f=l.defaultView||l.parentWindow;return r.left+=d(f),r.left}function a(u){var r=s();return function(){var f=Object(w.a)(u),c;if(r){var x=Object(w.a)(this).constructor;c=Reflect.construct(f,arguments,x)}else c=f.apply(this,arguments);return Object(C.a)(this,c)}}function s(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(u){return!1}}var e=function(u){Object(j.a)(l,u);var r=a(l);function l(){var f;return Object(L.a)(this,l),f=r.apply(this,arguments),f.onHover=function(c){var x=f.props,D=x.onHover,A=x.index;D(c,A)},f.onClick=function(c){var x=f.props,D=x.onClick,A=x.index;D(c,A)},f.onKeyDown=function(c){var x=f.props,D=x.onClick,A=x.index;c.keyCode===13&&D(c,A)},f}return Object(I.a)(l,[{key:"getClassName",value:function(){var c=this.props,x=c.prefixCls,D=c.index,A=c.value,B=c.allowHalf,O=c.focused,W=D+1,P=x;return A===0&&D===0&&O?P+=" ".concat(x,"-focused"):B&&A+.5>=W&&AG?"true":"false","aria-posinset":G+1,"aria-setsize":Q,tabIndex:B?-1:0},U.a.createElement("div",{className:"".concat(O,"-first")},le),U.a.createElement("div",{className:"".concat(O,"-second")},le)));return P&&(Ee=P(Ee,this.props)),Ee}}]),l}(U.a.Component);function t(u,r){var l=Object.keys(u);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(u);r&&(f=f.filter(function(c){return Object.getOwnPropertyDescriptor(u,c).enumerable})),l.push.apply(l,f)}return l}function i(u){for(var r=1;r0&&!Q||A===v.a.RIGHT&&re>0&&Q?(W?re-=.5:re-=1,c.changeValue(re),D.preventDefault()):A===v.a.LEFT&&reQ/2||!O&&x-G=M.length?K.slice(M.length):K}).join(`
`)}var s=[],e=[""],t=new o.a.Renderer,i=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function T(){s.length=0,e=[""]}var _={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function m(N,p,b,M){if(p>=N.length||N[p].level<=b)return p;var K=N[p];M.push("- "+K.text+""),p++;var k=[];return p=m(N,p,K.level,k),k.length>0&&(M.push("
"),k.forEach(function(he){M.push(he)}),M.push("
")),M.push(" "),p=m(N,p,b,M),p}function E(){return m(s,0,0,e),e.push("
"),e.join("")}var g={heading:function(p){var b=i.exec(p);if(b)return{type:"heading",raw:b[0],depth:b[1].length,text:b[2]}},fences:function(p){var b=this.rules.block.fences.exec(p);if(b){var M=b[0],K=a(M,b[3]||""),k=b[2]?b[2].trim():b[2];if(["latex","katex","math"].indexOf(k)>=0){var he=r(),He=K;K=he,l[he]={type:"block",expression:He}}return{type:"code",raw:M,lang:k,text:K}}}},h=/(?:\${2})([^\n`]+?)(?:\${2})/gi,u=0,r=function(){return"__special_katext_id_".concat(u++,"__")},l={};function f(){return l}function c(){u=0,l={}}function x(N){return N=N.replace(h,function(p,b){var M=r();return l[M]={type:"inline",expression:b},M}),N}var D=t.listitem;t.listitem=function(N){return D(x(N))};var A=t.paragraph;t.paragraph=function(N){return A(x(N))};var B=t.tablecell;t.tablecell=function(N,p){return B(x(N),p)},t.code=function(N,p,b){var M=(p||"").match(/\S*/)[0];return M?["latex","katex","math"].indexOf(M)>=0?"".concat(N,"
"):'
').concat(b?N:Object(n.escape)(N,!0),`
`):''+(b?N:Object(n.escape)(N,!0))+"
"},t.heading=function(N,p,b){var M=this.options.headerPrefix+b.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:M,level:p,text:N}),"'+N+""},o.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),o.a.use({tokenizer:g,renderer:t});var O=o.a,W=F("SJMd"),P=F("ulZh"),G=F.n(P),Q=F("m3rI"),re=F("Oy/b"),le=F("p5ED"),Ee=F("ErOA");/*! *****************************************************************************
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 _e=function(N,p){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,M){b.__proto__=M}||function(b,M){for(var K in M)Object.prototype.hasOwnProperty.call(M,K)&&(b[K]=M[K])})(N,p)};function ne(N,p){function b(){this.constructor=N}_e(N,p),N.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}function Te(N,p,b,M){return new(b||(b=Promise))(function(K,k){function he(Et){try{lt(M.next(Et))}catch(Ke){k(Ke)}}function He(Et){try{lt(M.throw(Et))}catch(Ke){k(Ke)}}function lt(Et){var Ke;Et.done?K(Et.value):(Ke=Et.value,Ke instanceof b?Ke:new b(function(It){It(Ke)})).then(he,He)}lt((M=M.apply(N,p||[])).next())})}function Ae(N,p){var b,M,K,k,he={label:0,sent:function(){if(1&K[0])throw K[1];return K[1]},trys:[],ops:[]};return k={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function He(lt){return function(Et){return function(Ke){if(b)throw new TypeError("Generator is already executing.");for(;he;)try{if(b=1,M&&(K=2&Ke[0]?M.return:Ke[0]?M.throw||((K=M.return)&&K.call(M),0):M.next)&&!(K=K.call(M,Ke[1])).done)return K;switch(M=0,K&&(Ke=[2&Ke[0],K.value]),Ke[0]){case 0:case 1:K=Ke;break;case 4:return he.label++,{value:Ke[1],done:!1};case 5:he.label++,M=Ke[1],Ke=[0];continue;case 7:Ke=he.ops.pop(),he.trys.pop();continue;default:if(!(K=he.trys,(K=K.length>0&&K[K.length-1])||Ke[0]!==6&&Ke[0]!==2)){he=0;continue}if(Ke[0]===3&&(!K||Ke[1]>K[0]&&Ke[1]',"select"),this.addActionButton(M,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(M,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(M,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(M,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(M,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(M,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(M,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(k){var he=document.createElement("div");he.className=""+b.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",k.typeName),he.innerHTML=k.icon,he.addEventListener("click",function(){b.markerToolbarButtonClicked(he,k)}),b.buttons.push(he),b.markerButtons.push(he)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var K=document.createElement("div");K.className=this.toolbarBlockStyleClass.name,K.style.whiteSpace="nowrap",K.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(K),this.addActionButton(K,'',"render"),this.addActionButton(K,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},N.prototype.addButtonClickListener=function(p){this.buttonClickListeners.push(p)},N.prototype.removeButtonClickListener=function(p){this.buttonClickListeners.indexOf(p)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(p),1)},N.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},N.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var p=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var b=0;b0&&this.buttonClickListeners.forEach(function(M){return M("marker",b)}),this.markerButtonOverflowBlock.style.display="none"},N.prototype.actionToolbarButtonClicked=function(p,b){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(M){return M("action",b)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},N.prototype.setActiveButton=function(p){this.resetButtonStyles(),p.className=p.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),p.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},N.prototype.setActiveMarkerButton=function(p){var b=this.markerButtons.find(function(M){return M.getAttribute("data-type-name")===p});b&&this.setActiveButton(b)},N.prototype.setCurrentMarker=function(p){var b=this;this.currentMarker=p,this.buttons.filter(function(M){return/delete|notes/.test(M.getAttribute("data-action"))}).forEach(function(M){b.currentMarker===void 0?(M.style.fillOpacity="0.4",M.style.pointerEvents="none"):(M.style.fillOpacity="1",M.style.pointerEvents="all")})},N}(),Je=function(){function N(p,b,M,K){this.panels=[],this.panelButtons=[],this.markerjsContainer=p,this.displayMode=b,this.uiStyleSettings=M,this.styles=K,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return N.prototype.addStyles=function(){var p;this.toolboxStyleClass=this.styles.addClass(new Me("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Me("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var b=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Me("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Me("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Me("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Me("toolbox-panel-row_colors",`
background-color: `+((p=this.uiStyleSettings.toolboxBackgroundColor)!==null&&p!==void 0?p:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Me("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*b)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*b)+`px;
padding: `+b+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Me("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Me("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},N.prototype.show=function(p){var b;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=p,this.uiContainer.className=this.toolboxStyleClass.name+" "+((b=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&b!==void 0?b:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},N.prototype.setPanelButtons=function(p){var b,M,K=this;this.panels=p,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((b=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&b!==void 0?b:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((M=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&M!==void 0?M:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(k){var he;k.uiStyleSettings=K.uiStyleSettings;var He=document.createElement("div");He.className=K.toolboxButtonStyleClass.name+" "+((he=K.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:K.toolboxButtonStyleColorsClass.name),He.innerHTML=k.icon,He.title=k.title,He.addEventListener("click",function(){K.panelButtonClick(k)}),K.panelButtons.push(He),K.buttonRow.appendChild(He)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},N.prototype.panelButtonClick=function(p){var b=this,M=-1;if(p!==this.activePanel){M=this.panels.indexOf(p),this.panelRow.innerHTML="";var K=p.getUi();K.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(K),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=p}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){b.displayMode==="inline"?b.panelRow.style.display="none":b.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(k,he){var He,lt;k.className=b.toolboxButtonStyleClass.name+" "+(he===M?""+((He=b.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&He!==void 0?He:b.toolboxActiveButtonStyleColorsClass.name):""+((lt=b.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&<!==void 0?lt:b.toolboxButtonStyleColorsClass.name))})},N}(),$e=function(N,p){this.title=N,this.icon=p},Xe=function(N){function p(b,M,K,k){var he=N.call(this,b,k||'')||this;return he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=M,he.currentColor=K,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return ne(p,N),p.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.overflow="hidden",M.style.whiteSpace="nowrap",this.colors.forEach(function(K){var k=b.getColorBox(K);M.appendChild(k),b.colorBoxes.push(k)}),M},p.prototype.getColorBox=function(b){var M=this,K=this.uiStyleSettings.toolbarHeight/4,k=this.uiStyleSettings.toolbarHeight-K,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=k-2+"px",he.style.height=k-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(k+2)/2+"px",he.style.borderColor=b===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){M.setCurrentColor(b,he)});var He=document.createElement("div");return He.style.display="inline-block",He.style.width=k-2+"px",He.style.height=k-2+"px",He.style.backgroundColor=b,He.style.borderRadius=k/2+"px",b==="transparent"&&(He.style.fill=this.uiStyleSettings.toolboxAccentColor,He.innerHTML=``),he.appendChild(He),he},p.prototype.setCurrentColor=function(b,M){var K=this;this.currentColor=b,this.colorBoxes.forEach(function(k){k.style.borderColor=k===M?K.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(b)},p}($e),Fe=function(){function N(p,b,M){this._state="new",this._isSelected=!1,this._container=p,this._overlayContainer=b,this.globalSettings=M,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(N.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),N.prototype.ownsTarget=function(p){return!1},Object.defineProperty(N.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),N.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},N.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},N.prototype.pointerDown=function(p,b){},N.prototype.dblClick=function(p,b){},N.prototype.manipulate=function(p){},N.prototype.pointerUp=function(p){this.stateChanged()},N.prototype.dispose=function(){},N.prototype.addMarkerVisualToContainer=function(p){this.container.childNodes.length>0?this.container.insertBefore(p,this.container.childNodes[0]):this.container.appendChild(p)},N.prototype.getState=function(){return{typeName:N.typeName,state:this.state,notes:this.notes}},N.prototype.restoreState=function(p){this._state=p.state,this.notes=p.notes},N.prototype.scale=function(p,b){},N.prototype.colorChanged=function(p){this.onColorChanged&&this.onColorChanged(p),this.stateChanged()},N.prototype.fillColorChanged=function(p){this.onFillColorChanged&&this.onFillColorChanged(p),this.stateChanged()},N.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var p=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),p.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(p)&&this.onStateChanged(this)}},N.typeName="MarkerBase",N}(),We=function(){function N(){this.findGripByVisual=this.findGripByVisual.bind(this)}return N.prototype.findGripByVisual=function(p){return this.topLeft.ownsTarget(p)?this.topLeft:this.topCenter.ownsTarget(p)?this.topCenter:this.topRight.ownsTarget(p)?this.topRight:this.centerLeft.ownsTarget(p)?this.centerLeft:this.centerRight.ownsTarget(p)?this.centerRight:this.bottomLeft.ownsTarget(p)?this.bottomLeft:this.bottomCenter.ownsTarget(p)?this.bottomCenter:this.bottomRight.ownsTarget(p)?this.bottomRight:void 0},N}(),yt=function(){function N(){this.GRIP_SIZE=10,this.visual=J.createGroup(),this.visual.appendChild(J.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(J.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return N.prototype.ownsTarget=function(p){return p===this.visual||p===this.visual.childNodes[0]||p===this.visual.childNodes[1]},N}(),ft=function(){function N(){}return N.toITransformMatrix=function(p){return{a:p.a,b:p.b,c:p.c,d:p.d,e:p.e,f:p.f}},N.toSVGMatrix=function(p,b){return p.a=b.a,p.b=b.b,p.c=b.c,p.d=b.d,p.e=b.e,p.f=b.f,p},N}(),ut=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.left=0,k.top=0,k.width=0,k.height=0,k.defaultSize={x:50,y:20},k.offsetX=0,k.offsetY=0,k.rotationAngle=0,k.CB_DISTANCE=10,k._suppressMarkerCreateEvent=!1,k.container.transform.baseVal.appendItem(J.createTransform()),k.setupControlBox(),k}return ne(p,N),Object.defineProperty(p.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"visual",{get:function(){return this._visual},set:function(b){this._visual=b;var M=J.createTransform();this._visual.transform.baseVal.appendItem(M)},enumerable:!1,configurable:!0}),p.prototype.ownsTarget=function(b){return!!N.prototype.ownsTarget.call(this,b)||!!(this.controlGrips.findGripByVisual(b)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(b))},p.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="new"&&(this.left=b.x,this.top=b.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var K=this.unrotatePoint(b);if(this.manipulationStartX=K.x,this.manipulationStartY=K.y,this.offsetX=K.x-this.left,this.offsetY=K.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(M),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(M)){this.activeGrip=this.rotatorGrip;var k=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=k.x-this.width/2,this.top=k.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},p.prototype.pointerUp=function(b){var M=this.state;N.prototype.pointerUp.call(this,b),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(b),this._state="select",M==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},p.prototype.moveVisual=function(b){this.visual.style.transform="translate("+b.x+"px, "+b.y+"px)"},p.prototype.manipulate=function(b){var M=this.unrotatePoint(b);this.state==="creating"?this.resize(b):this.state==="move"?(this.left=this.manipulationStartLeft+(M.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(M.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(M):this.state==="rotate"&&this.rotate(b)},p.prototype.resize=function(b){var M=this.manipulationStartLeft,K=this.manipulationStartWidth,k=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:M=this.manipulationStartLeft+b.x-this.manipulationStartX,K=this.manipulationStartWidth+this.manipulationStartLeft-M;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:K=this.manipulationStartWidth+b.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:k=this.manipulationStartTop+b.y-this.manipulationStartY,he=this.manipulationStartHeight+this.manipulationStartTop-k;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+b.y-this.manipulationStartY}K>=0?(this.left=M,this.width=K):(this.left=M+K,this.width=-K),he>=0?(this.top=k,this.height=he):(this.top=k+he,this.height=-he),this.setSize()},p.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},p.prototype.rotate=function(b){if(Math.abs(b.x-this.centerX)>.1){var M=Math.sign(b.x-this.centerX);this.rotationAngle=180*Math.atan((b.y-this.centerY)/(b.x-this.centerX))/Math.PI+90*M,this.applyRotation()}},p.prototype.applyRotation=function(){var b=this.container.transform.baseVal.getItem(0);b.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(b,0)},p.prototype.rotatePoint=function(b){if(this.rotationAngle===0)return b;var M=this.container.getCTM(),K=J.createPoint(b.x,b.y);return{x:(K=K.matrixTransform(M)).x,y:K.y}},p.prototype.unrotatePoint=function(b){if(this.rotationAngle===0)return b;var M=this.container.getCTM();M=M.inverse();var K=J.createPoint(b.x,b.y);return{x:(K=K.matrixTransform(M)).x,y:K.y}},p.prototype.select=function(){N.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},p.prototype.deselect=function(){N.prototype.deselect.call(this),this.controlBox.style.display="none"},p.prototype.setupControlBox=function(){this.controlBox=J.createGroup();var b=J.createTransform();b.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(b),this.container.appendChild(this.controlBox),this.controlRect=J.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=J.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new We,this.addControlGrips(),this.controlBox.style.display="none"},p.prototype.adjustControlBox=function(){var b=this.controlBox.transform.baseVal.getItem(0);b.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(b,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},p.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},p.prototype.createGrip=function(){var b=new yt;return b.visual.transform.baseVal.appendItem(J.createTransform()),this.controlBox.appendChild(b.visual),b},p.prototype.positionGrips=function(){var b=this.controlGrips.topLeft.GRIP_SIZE,M=-b/2,K=M,k=(this.width+this.CB_DISTANCE)/2-b/2,he=(this.height+this.CB_DISTANCE)/2-b/2,He=this.height+this.CB_DISTANCE-b/2,lt=this.width+this.CB_DISTANCE-b/2;this.positionGrip(this.controlGrips.topLeft.visual,M,K),this.positionGrip(this.controlGrips.topCenter.visual,k,K),this.positionGrip(this.controlGrips.topRight.visual,lt,K),this.positionGrip(this.controlGrips.centerLeft.visual,M,he),this.positionGrip(this.controlGrips.centerRight.visual,lt,he),this.positionGrip(this.controlGrips.bottomLeft.visual,M,He),this.positionGrip(this.controlGrips.bottomCenter.visual,k,He),this.positionGrip(this.controlGrips.bottomRight.visual,lt,He),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,k,K-3*this.CB_DISTANCE)},p.prototype.positionGrip=function(b,M,K){var k=b.transform.baseVal.getItem(0);k.setTranslate(M,K),b.transform.baseVal.replaceItem(k,0)},p.prototype.hideControlBox=function(){this.controlBox.style.display="none"},p.prototype.showControlBox=function(){this.controlBox.style.display=""},p.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ft.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ft.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},N.prototype.getState.call(this))},p.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.left=M.left,this.top=M.top,this.width=M.width,this.height=M.height,this.rotationAngle=M.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,M.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,M.containerTransformMatrix))},p.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M);var K=this.rotatePoint({x:this.left,y:this.top}),k=this.unrotatePoint({x:K.x*b,y:K.y*M});this.left=k.x,this.top=k.y,this.width=this.width*b,this.height=this.height*M,this.adjustControlBox()},p}(Fe),rt=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.fillColor="transparent",k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.opacity=1,k.setStrokeColor=k.setStrokeColor.bind(k),k.setFillColor=k.setFillColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.createVisual=k.createVisual.bind(k),k}return ne(p,N),p.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual)},p.prototype.createVisual=function(){this.visual=J.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},p.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="new"&&(this.createVisual(),this.moveVisual(b),this._state="creating")},p.prototype.manipulate=function(b){N.prototype.manipulate.call(this,b)},p.prototype.resize=function(b){N.prototype.resize.call(this,b),this.setSize()},p.prototype.setSize=function(){N.prototype.setSize.call(this),J.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},p.prototype.pointerUp=function(b){N.prototype.pointerUp.call(this,b),this.setSize()},p.prototype.setStrokeColor=function(b){this.strokeColor=b,this.visual&&J.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(b),this.stateChanged()},p.prototype.setFillColor=function(b){this.fillColor=b,this.visual&&J.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},p.prototype.setStrokeWidth=function(b){this.strokeWidth=b,this.visual&&J.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},p.prototype.setStrokeDasharray=function(b){this.strokeDasharray=b,this.visual&&J.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},p.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},N.prototype.getState.call(this))},p.prototype.restoreState=function(b){var M=b;this.fillColor=M.fillColor,this.strokeColor=M.strokeColor,this.strokeWidth=M.strokeWidth,this.strokeDasharray=M.strokeDasharray,this.opacity=M.opacity,this.createVisual(),N.prototype.restoreState.call(this,b),this.setSize()},p.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.setSize()},p.title="Rectangle marker",p}(ut),Tt=function(N){function p(b,M,K,k){var he=N.call(this,b,k||'')||this;return he.widths=[],he.widthBoxes=[],he.widths=M,he.currentWidth=K,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return ne(p,N),p.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.display="flex",M.style.overflow="hidden",M.style.flexGrow="2",this.widths.forEach(function(K){var k=document.createElement("div");k.style.display="flex",k.style.flexGrow="2",k.style.alignItems="center",k.style.justifyContent="space-between",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.borderColor=K===b.currentWidth?b.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){b.setCurrentWidth(K,k)}),M.appendChild(k);var he=document.createElement("div");he.innerText=K.toString(),he.style.marginRight="5px",k.appendChild(he);var He=document.createElement("div");He.style.minHeight="20px",He.style.flexGrow="2",He.style.display="flex",He.style.alignItems="center";var lt=document.createElement("hr");lt.style.minWidth="20px",lt.style.border="0px",lt.style.borderTop=K+"px solid "+b.uiStyleSettings.toolboxColor,lt.style.flexGrow="2",He.appendChild(lt),k.appendChild(He),b.widthBoxes.push(k)}),M},p.prototype.setCurrentWidth=function(b,M){var K=this;this.currentWidth=b,this.widthBoxes.forEach(function(k){k.style.borderColor=k===M?K.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},p}($e),_t=function(N){function p(b,M,K,k){var he=N.call(this,b,k||'')||this;return he.styles=[],he.styleBoxes=[],he.styles=M,he.currentStyle=K,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return ne(p,N),p.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.display="flex",M.style.overflow="hidden",M.style.flexGrow="2",this.styles.forEach(function(K){var k=document.createElement("div");k.style.display="flex",k.style.alignItems="center",k.style.justifyContent="space-between",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.overflow="hidden",k.style.maxWidth=100/b.styles.length-5+"%",k.style.borderColor=K===b.currentStyle?b.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){b.setCurrentStyle(K,k)}),M.appendChild(k);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var He=``;he.innerHTML=He,k.appendChild(he),b.styleBoxes.push(k)}),M},p.prototype.setCurrentStyle=function(b,M){var K=this;this.currentStyle=b,this.styleBoxes.forEach(function(k){k.style.borderColor=k===M?K.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},p}($e),me=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.strokeColor=K.defaultColor,k.strokeWidth=K.defaultStrokeWidth,k.strokeDasharray=K.defaultStrokeDasharray,k.strokePanel=new Xe("Line color",K.defaultColorSet,K.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.strokeWidthPanel=new Tt("Line width",K.defaultStrokeWidths,K.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new _t("Line style",K.defaultStrokeDasharrays,K.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k}return ne(p,N),Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=p.typeName,b},p.typeName="FrameMarker",p.title="Frame marker",p.icon='',p}(rt),xe=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},De=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.x1=0,k.y1=0,k.x2=0,k.y2=0,k.defaultLength=50,k.manipulationStartX=0,k.manipulationStartY=0,k.manipulationStartX1=0,k.manipulationStartY1=0,k.manipulationStartX2=0,k.manipulationStartY2=0,k.setupControlBox(),k}return ne(p,N),p.prototype.ownsTarget=function(b){return!!N.prototype.ownsTarget.call(this,b)||!(!this.grip1.ownsTarget(b)&&!this.grip2.ownsTarget(b))},p.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.manipulationStartX=b.x,this.manipulationStartY=b.y,this.state==="new"&&(this.x1=b.x,this.y1=b.y,this.x2=b.x,this.y2=b.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(M)?this.activeGrip=this.grip1:this.grip2.ownsTarget(M)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},p.prototype.pointerUp=function(b){var M=this.state;N.prototype.pointerUp.call(this,b),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(b),this._state="select",M==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},p.prototype.adjustVisual=function(){},p.prototype.manipulate=function(b){this.state==="creating"?this.resize(b):this.state==="move"?(this.x1=this.manipulationStartX1+b.x-this.manipulationStartX,this.y1=this.manipulationStartY1+b.y-this.manipulationStartY,this.x2=this.manipulationStartX2+b.x-this.manipulationStartX,this.y2=this.manipulationStartY2+b.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(b)},p.prototype.resize=function(b){switch(this.activeGrip){case this.grip1:this.x1=b.x,this.y1=b.y;break;case this.grip2:case void 0:this.x2=b.x,this.y2=b.y}this.adjustVisual(),this.adjustControlBox()},p.prototype.select=function(){N.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},p.prototype.deselect=function(){N.prototype.deselect.call(this),this.controlBox.style.display="none"},p.prototype.setupControlBox=function(){this.controlBox=J.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},p.prototype.adjustControlBox=function(){this.positionGrips()},p.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},p.prototype.createGrip=function(){var b=new yt;return b.visual.transform.baseVal.appendItem(J.createTransform()),this.controlBox.appendChild(b.visual),b},p.prototype.positionGrips=function(){var b=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-b/2,this.y1-b/2),this.positionGrip(this.grip2.visual,this.x2-b/2,this.y2-b/2)},p.prototype.positionGrip=function(b,M,K){var k=b.transform.baseVal.getItem(0);k.setTranslate(M,K),b.transform.baseVal.replaceItem(k,0)},p.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},N.prototype.getState.call(this))},p.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.x1=M.x1,this.y1=M.y1,this.x2=M.x2,this.y2=M.y2},p.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.x1=this.x1*b,this.y1=this.y1*M,this.x2=this.x2*b,this.y2=this.y2*M,this.adjustVisual(),this.adjustControlBox()},p}(Fe),ke=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.setStrokeColor=k.setStrokeColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.strokeColor=K.defaultColor,k.strokeWidth=K.defaultStrokeWidth,k.strokeDasharray=K.defaultStrokeDasharray,k.strokePanel=new Xe("Line color",K.defaultColorSet,K.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.strokeWidthPanel=new Tt("Line width",K.defaultStrokeWidths,K.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new _t("Line style",K.defaultStrokeDasharrays,K.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k}return ne(p,N),p.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual&&b!==this.selectorLine&&b!==this.visibleLine)},p.prototype.createVisual=function(){this.visual=J.createGroup(),this.selectorLine=J.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=J.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},p.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},p.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),J.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),J.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),J.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},p.prototype.setStrokeColor=function(b){this.strokeColor=b,this.adjustVisual(),this.colorChanged(b)},p.prototype.setStrokeWidth=function(b){this.strokeWidth=b,this.adjustVisual()},p.prototype.setStrokeDasharray=function(b){this.strokeDasharray=b,this.adjustVisual(),this.stateChanged()},Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},N.prototype.getState.call(this));return b.typeName=p.typeName,b},p.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.strokeColor=M.strokeColor,this.strokeWidth=M.strokeWidth,this.strokeDasharray=M.strokeDasharray,this.createVisual(),this.adjustVisual()},p.typeName="LineMarker",p.title="Line marker",p.icon='',p}(De),be=function(N){function p(b,M,K,k){var he=N.call(this,b,k||'')||this;return he.fonts=[],he.fontBoxes=[],he.fonts=M,he.currentFont=K,he.setCurrentFont=he.setCurrentFont.bind(he),he}return ne(p,N),p.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.overflow="hidden",M.style.flexGrow="2",this.fonts.forEach(function(K){var k=document.createElement("div");k.style.display="inline-block",k.style.alignItems="center",k.style.justifyContent="space-between",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.overflow="hidden",k.style.maxWidth=100/b.fonts.length-5+"%",k.style.borderColor=K===b.currentFont?b.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){b.setCurrentFont(K,k)}),M.appendChild(k);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=K,he.style.overflow="hidden";var He=document.createElement("div");He.style.whiteSpace="nowrap",He.style.overflow="hidden",He.style.textOverflow="ellipsis",He.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(He),k.appendChild(he),b.fontBoxes.push(k)}),M},p.prototype.setCurrentFont=function(b,M){var K=this;this.currentFont=b,this.fontBoxes.forEach(function(k){k.style.borderColor=k===M?K.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},p}($e),Le=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.color="transparent",k.padding=5,k.DEFAULT_TEXT="your text here",k.text=k.DEFAULT_TEXT,k.isMoved=!1,k.color=K.defaultColor,k.fontFamily=K.defaultFontFamily,k.defaultSize={x:100,y:30},k.setColor=k.setColor.bind(k),k.setFont=k.setFont.bind(k),k.renderText=k.renderText.bind(k),k.sizeText=k.sizeText.bind(k),k.textEditDivClicked=k.textEditDivClicked.bind(k),k.showTextEditor=k.showTextEditor.bind(k),k.setSize=k.setSize.bind(k),k.positionTextEditor=k.positionTextEditor.bind(k),k.colorPanel=new Xe("Color",K.defaultColorSet,K.defaultColor),k.colorPanel.onColorChanged=k.setColor,k.fontFamilyPanel=new be("Font",K.defaultFontFamilies,K.defaultFontFamily),k.fontFamilyPanel.onFontChanged=k.setFont,k}return ne(p,N),p.prototype.ownsTarget=function(b){if(N.prototype.ownsTarget.call(this,b)||b===this.visual||b===this.textElement||b===this.bgRectangle)return!0;var M=!1;return this.textElement.childNodes.forEach(function(K){K===b&&(M=!0)}),M},p.prototype.createVisual=function(){this.visual=J.createGroup(),this.bgRectangle=J.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=J.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(J.createTransform()),this.textElement.transform.baseVal.appendItem(J.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},p.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.isMoved=!1,this.pointerDownPoint=b,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(b),this._state="creating")},p.prototype.renderText=function(){var b=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(M){b.textElement.appendChild(J.createTSpan(M.trim()===""?" ":M.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},p.prototype.getTextScale=function(){var b=this.textElement.getBBox(),M=1;if(b.width>0&&b.height>0){var K=(1*this.width-this.width*this.padding*2/100)/b.width,k=(1*this.height-this.height*this.padding*2/100)/b.height;M=Math.min(K,k)}return M},p.prototype.getTextPosition=function(b){var M=this.textElement.getBBox(),K=0,k=0;return M.width>0&&M.height>0&&(K=(this.width-M.width*b)/2,k=this.height/2-M.height*b/2),{x:K,y:k}},p.prototype.sizeText=function(){var b=this.textElement.getBBox(),M=this.getTextScale(),K=this.getTextPosition(M);K.y-=b.y*M,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+K.x+"px, "+K.y+"px) scale("+M+", "+M+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(K.x,K.y),this.textElement.transform.baseVal.getItem(1).setScale(M,M))},p.prototype.manipulate=function(b){N.prototype.manipulate.call(this,b),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(b.x-this.pointerDownPoint.x)>5||Math.abs(b.y-this.pointerDownPoint.y)>5)},p.prototype.resize=function(b){N.prototype.resize.call(this,b),this.isMoved=!0,this.setSize(),this.sizeText()},p.prototype.setSize=function(){N.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(J.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),J.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},p.prototype.pointerUp=function(b){var M=this.state;M==="creating"&&(this._suppressMarkerCreateEvent=!0),N.prototype.pointerUp.call(this,b),this.setSize(),(M==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},p.prototype.showTextEditor=function(){var b=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(M){M.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var M=Number.parseFloat(b.textEditor.style.fontSize);b.textEditor.clientWidth>=Number.parseInt(b.textEditor.style.maxWidth)&&M>.9;)M-=.1,b.textEditor.style.fontSize=Math.max(M,.9)+"em"}),this.textEditor.addEventListener("keyup",function(M){M.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(M){if(M.clipboardData){var K=M.clipboardData.getData("text"),k=window.getSelection();if(!k.rangeCount)return!1;k.deleteFromDocument(),k.getRangeAt(0).insertNode(document.createTextNode(K)),M.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){b.textEditDivClicked(b.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},p.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var b=this.getTextScale(),M=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),K=this.textElement.getBBox(),k={x:K.width*b,y:K.height*b};M.x-=k.x/2,M.y-=k.y/2,this.textEditor.style.top=M.y+"px",this.textEditor.style.left=M.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-M.x+"px",this.textEditor.style.fontSize=Math.max(16*b,12)+"px",this.textElement.style.display="none"}},p.prototype.textEditDivClicked=function(b){this.text=b.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},p.prototype.select=function(){N.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},p.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),N.prototype.deselect.call(this)},p.prototype.dblClick=function(b,M){N.prototype.dblClick.call(this,b,M),this.showTextEditor()},p.prototype.setColor=function(b){this.textElement&&J.setAttributes(this.textElement,[["fill",b]]),this.color=b,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(b)},p.prototype.setFont=function(b){this.textElement&&J.setAttributes(this.textElement,[["font-family",b]]),this.fontFamily=b,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},p.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},p.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},N.prototype.getState.call(this));return b.typeName=p.typeName,b},p.prototype.restoreState=function(b){var M=b;this.color=M.color,this.fontFamily=M.fontFamily,this.padding=M.padding,this.text=M.text,this.createVisual(),N.prototype.restoreState.call(this,b),this.setSize()},p.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.setSize(),this.sizeText(),this.positionTextEditor()},p.typeName="TextMarker",p.title="Text marker",p.icon='',p}(ut),ce=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.color="transparent",k.lineWidth=3,k.drawing=!1,k.pixelRatio=1,k.color=K.defaultColor,k.lineWidth=K.defaultStrokeWidth,k.pixelRatio=K.freehandPixelRatio,k.setColor=k.setColor.bind(k),k.addCanvas=k.addCanvas.bind(k),k.finishCreation=k.finishCreation.bind(k),k.setLineWidth=k.setLineWidth.bind(k),k.colorPanel=new Xe("Color",K.defaultColorSet,K.defaultColor),k.colorPanel.onColorChanged=k.setColor,k.lineWidthPanel=new Tt("Line width",K.defaultStrokeWidths,K.defaultStrokeWidth),k.lineWidthPanel.onWidthChanged=k.setLineWidth,k}return ne(p,N),p.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual&&b!==this.drawingImage)},p.prototype.createVisual=function(){this.visual=J.createGroup(),this.drawingImage=J.createImage(),this.visual.appendChild(this.drawingImage);var b=J.createTransform();this.visual.transform.baseVal.appendItem(b),this.addMarkerVisualToContainer(this.visual)},p.prototype.pointerDown=function(b,M){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(b.x,b.y),this.drawing=!0):N.prototype.pointerDown.call(this,b,M)},p.prototype.manipulate=function(b){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(b.x,b.y),this.canvasContext.stroke()):N.prototype.manipulate.call(this,b)},p.prototype.resize=function(b){N.prototype.resize.call(this,b),J.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),J.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},p.prototype.pointerUp=function(b){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):N.prototype.pointerUp.call(this,b)},p.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},p.prototype.select=function(){this.state==="creating"&&this.finishCreation(),N.prototype.select.call(this)},p.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),N.prototype.deselect.call(this)},p.prototype.finishCreation=function(){for(var b=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),M=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],K=M[0],k=M[1],he=M[2],He=M[3],lt=!1,Et=0;Et0&&(lt=!0,EtHe&&(He=Et),Ke>he&&(he=Ke));if(lt){this.left=K/this.pixelRatio,this.top=k/this.pixelRatio,this.width=(he-K)/this.pixelRatio,this.height=(He-k)/this.pixelRatio;var It=document.createElement("canvas");It.width=he-K,It.height=He-k,It.getContext("2d").putImageData(this.canvasContext.getImageData(K,k,he-K,He-k),0,0),this.drawingImgUrl=It.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},p.prototype.setDrawingImage=function(){J.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),J.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},p.prototype.setColor=function(b){this.color=b,this.colorChanged(b)},p.prototype.setLineWidth=function(b){this.lineWidth=b},Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=Object.assign({drawingImgUrl:this.drawingImgUrl},N.prototype.getState.call(this));return b.typeName=p.typeName,b},p.prototype.restoreState=function(b){this.createVisual(),N.prototype.restoreState.call(this,b),this.drawingImgUrl=b.drawingImgUrl,this.setDrawingImage()},p.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.setDrawingImage()},p.typeName="FreehandMarker",p.title="Freehand marker",p.icon='',p}(ut),ee=function(N){function p(b,M,K){var k=N.call(this,b,K||'')||this;return k.typeBoxes=[],k.currentType=M,k.setCurrentType=k.setCurrentType.bind(k),k}return ne(p,N),p.prototype.getUi=function(){var b=this,M=document.createElement("div");M.style.display="flex",M.style.overflow="hidden",M.style.flexGrow="2";for(var K=function(He){var lt="both";switch(He){case 0:lt="both";break;case 1:lt="start";break;case 2:lt="end";break;case 3:lt="none"}var Et=document.createElement("div");if(Et.style.display="flex",Et.style.flexGrow="2",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=lt===k.currentType?k.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){b.setCurrentType(lt,Et)}),M.appendChild(Et),lt==="both"||lt==="start"){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.innerHTML=``,Ke.style.marginLeft="5px",Et.appendChild(Ke)}var It=document.createElement("div");It.style.display="flex",It.style.alignItems="center",It.style.minHeight="20px",It.style.flexGrow="2";var Nt=document.createElement("hr");if(Nt.style.minWidth="20px",Nt.style.border="0px",Nt.style.borderTop="3px solid "+(k.uiStyleSettings!==void 0?k.uiStyleSettings.toolboxColor:"#eeeeee"),Nt.style.flexGrow="2",It.appendChild(Nt),Et.appendChild(It),lt==="both"||lt==="end"){var on=document.createElement("div");on.style.display="flex",on.style.alignItems="center",on.style.minHeight="20px",on.innerHTML=``,on.style.marginRight="5px",Et.appendChild(on)}k.typeBoxes.push(Et)},k=this,he=0;he<4;he++)K(he);return M},p.prototype.setCurrentType=function(b,M){var K=this;this.currentType=b,this.typeBoxes.forEach(function(k){k.style.borderColor=k===M?K.uiStyleSettings!==void 0?K.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},p}($e),te=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.arrowType="end",k.arrowBaseHeight=10,k.arrowBaseWidth=10,k.getArrowPoints=k.getArrowPoints.bind(k),k.setArrowType=k.setArrowType.bind(k),k.arrowTypePanel=new ee("Arrow type","end"),k.arrowTypePanel.onArrowTypeChanged=k.setArrowType,k}return ne(p,N),p.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.arrow1&&b!==this.arrow2)},p.prototype.getArrowPoints=function(b,M){var K=this.arrowBaseWidth+2*this.strokeWidth,k=this.arrowBaseHeight+2*this.strokeWidth;return b-K/2+","+(M+k/2)+" "+b+","+(M-k/2)+" "+(b+K/2)+","+(M+k/2)},p.prototype.createTips=function(){this.arrow1=J.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(J.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=J.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(J.createTransform()),this.visual.appendChild(this.arrow2)},p.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="creating"&&this.createTips()},p.prototype.adjustVisual=function(){if(N.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",J.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),J.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var b=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),M=this.arrow1.transform.baseVal.getItem(0);M.setRotate(b,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(M,0);var K=this.arrow2.transform.baseVal.getItem(0);K.setRotate(b+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(K,0)}},p.prototype.setArrowType=function(b){this.arrowType=b,this.adjustVisual(),this.stateChanged()},Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=Object.assign({arrowType:this.arrowType},N.prototype.getState.call(this));return b.typeName=p.typeName,b},p.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.arrowType=M.arrowType,this.createTips(),this.adjustVisual()},p.typeName="ArrowMarker",p.title="Arrow marker",p.icon='',p}(ke),V=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.fillColor=K.defaultFillColor,k.strokeWidth=0,k.fillPanel=new Xe("Color",K.defaultColorSet,K.defaultFillColor),k.fillPanel.onColorChanged=k.setFillColor,k}return ne(p,N),Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=p.typeName,b},p.typeName="CoverMarker",p.title="Cover marker",p.icon='',p}(rt),X=function(N){function p(b,M,K,k){var he=N.call(this,b,k||'')||this;return he.opacities=[],he.opacityBoxes=[],he.opacities=M,he.currentOpacity=K,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return ne(p,N),p.prototype.getUi=function(){var b=this,M=document.createElement("div");return M.style.display="flex",M.style.overflow="hidden",M.style.flexGrow="2",M.style.justifyContent="space-between",this.opacities.forEach(function(K){var k=document.createElement("div");k.style.display="flex",k.style.alignItems="center",k.style.justifyContent="center",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.borderColor=K===b.currentOpacity?b.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){b.setCurrentOpacity(K,k)}),M.appendChild(k);var he=document.createElement("div");he.innerText=100*K+"%",k.appendChild(he),b.opacityBoxes.push(k)}),M},p.prototype.setCurrentOpacity=function(b,M){var K=this;this.currentOpacity=b,this.opacityBoxes.forEach(function(k){k.style.borderColor=k===M?K.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},p}($e),q=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.setOpacity=k.setOpacity.bind(k),k.fillColor=K.defaultHighlightColor,k.strokeWidth=0,k.opacity=K.defaultHighlightOpacity,k.fillPanel=new Xe("Color",K.defaultColorSet,k.fillColor),k.fillPanel.onColorChanged=k.setFillColor,k.opacityPanel=new X("Opacity",K.defaultOpacitySteps,k.opacity),k.opacityPanel.onOpacityChanged=k.setOpacity,k}return ne(p,N),p.prototype.setOpacity=function(b){this.opacity=b,this.visual&&J.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=p.typeName,b},p.typeName="HighlightMarker",p.title="Highlight marker",p.icon='',p}(V),ae='',ge=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.bgColor="transparent",k.tipPosition={x:0,y:0},k.tipBase1Position={x:0,y:0},k.tipBase2Position={x:0,y:0},k.tipMoving=!1,k.color=K.defaultStrokeColor,k.bgColor=K.defaultFillColor,k.fontFamily=K.defaultFontFamily,k.defaultSize={x:100,y:30},k.setBgColor=k.setBgColor.bind(k),k.getTipPoints=k.getTipPoints.bind(k),k.positionTip=k.positionTip.bind(k),k.setTipPoints=k.setTipPoints.bind(k),k.colorPanel=new Xe("Text color",K.defaultColorSet,k.color,''),k.colorPanel.onColorChanged=k.setColor,k.bgColorPanel=new Xe("Fill color",K.defaultColorSet,k.bgColor,ae),k.bgColorPanel.onColorChanged=k.setBgColor,k.fontFamilyPanel=new be("Font",K.defaultFontFamilies,K.defaultFontFamily),k.fontFamilyPanel.onFontChanged=k.setFont,k.tipGrip=new yt,k.tipGrip.visual.transform.baseVal.appendItem(J.createTransform()),k.controlBox.appendChild(k.tipGrip.visual),k}return ne(p,N),p.prototype.ownsTarget=function(b){return N.prototype.ownsTarget.call(this,b)||this.tipGrip.ownsTarget(b)||this.tip===b},p.prototype.createTip=function(){J.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=J.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},p.prototype.pointerDown=function(b,M){this.state==="new"&&N.prototype.pointerDown.call(this,b,M),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(M)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):N.prototype.pointerDown.call(this,b,M)},p.prototype.pointerUp=function(b){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,N.prototype.pointerUp.call(this,b);else{var M=this.state==="creating";N.prototype.pointerUp.call(this,b),this.setTipPoints(M),this.positionTip()}},p.prototype.manipulate=function(b){if(this.tipMoving){var M=this.unrotatePoint(b);this.tipPosition={x:M.x-this.manipulationStartLeft,y:M.y-this.manipulationStartTop},this.positionTip()}else N.prototype.manipulate.call(this,b)},p.prototype.setBgColor=function(b){this.bgRectangle&&this.tip&&(J.setAttributes(this.bgRectangle,[["fill",b]]),J.setAttributes(this.tip,[["fill",b]])),this.bgColor=b,this.fillColorChanged(b)},p.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},p.prototype.setTipPoints=function(b){b===void 0&&(b=!1);var M=Math.min(this.height/2,15),K=this.height/5;b&&(this.tipPosition={x:M+K/2,y:this.height+20});var k=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?k',p}(Le),we=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.fillColor="transparent",k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.opacity=1,k.strokeColor=K.defaultColor,k.strokeWidth=K.defaultStrokeWidth,k.strokeDasharray=K.defaultStrokeDasharray,k.fillColor=K.defaultFillColor,k.setStrokeColor=k.setStrokeColor.bind(k),k.setFillColor=k.setFillColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.setOpacity=k.setOpacity.bind(k),k.createVisual=k.createVisual.bind(k),k.strokePanel=new Xe("Line color",fe(K.defaultColorSet,["transparent"]),K.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.fillPanel=new Xe("Fill color",fe(K.defaultColorSet,["transparent"]),k.fillColor,ae),k.fillPanel.onColorChanged=k.setFillColor,k.strokeWidthPanel=new Tt("Line width",K.defaultStrokeWidths,K.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new _t("Line style",K.defaultStrokeDasharrays,K.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k.opacityPanel=new X("Opacity",K.defaultOpacitySteps,k.opacity),k.opacityPanel.onOpacityChanged=k.setOpacity,k}return ne(p,N),p.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual)},p.prototype.createVisual=function(){this.visual=J.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},p.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="new"&&(this.createVisual(),this.moveVisual(b),this._state="creating")},p.prototype.manipulate=function(b){N.prototype.manipulate.call(this,b)},p.prototype.resize=function(b){N.prototype.resize.call(this,b),this.setSize()},p.prototype.setSize=function(){N.prototype.setSize.call(this),J.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},p.prototype.pointerUp=function(b){N.prototype.pointerUp.call(this,b),this.setSize()},p.prototype.setStrokeColor=function(b){this.strokeColor=b,this.visual&&J.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(b),this.stateChanged()},p.prototype.setFillColor=function(b){this.fillColor=b,this.visual&&J.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(b),this.stateChanged()},p.prototype.setStrokeWidth=function(b){this.strokeWidth=b,this.visual&&J.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},p.prototype.setStrokeDasharray=function(b){this.strokeDasharray=b,this.visual&&J.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},p.prototype.setOpacity=function(b){this.opacity=b,this.visual&&J.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},N.prototype.getState.call(this));return b.typeName=p.typeName,b},p.prototype.restoreState=function(b){var M=b;this.fillColor=M.fillColor,this.strokeColor=M.strokeColor,this.strokeWidth=M.strokeWidth,this.strokeDasharray=M.strokeDasharray,this.opacity=M.opacity,this.createVisual(),N.prototype.restoreState.call(this,b),this.setSize()},p.prototype.scale=function(b,M){N.prototype.scale.call(this,b,M),this.setSize()},p.typeName="EllipseMarker",p.title="Ellipse marker",p.icon='',p}(ut),je=function(N){function p(b,M,K){return N.call(this,b,M,K)||this}return ne(p,N),Object.defineProperty(p.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),p.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.tip1&&b!==this.tip2)},p.prototype.createTips=function(){this.tip1=J.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(J.createTransform()),this.visual.appendChild(this.tip1),this.tip2=J.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(J.createTransform()),this.visual.appendChild(this.tip2)},p.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.state==="creating"&&this.createTips()},p.prototype.adjustVisual=function(){if(N.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(J.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),J.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var b=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),M=this.tip1.transform.baseVal.getItem(0);M.setRotate(b,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(M,0);var K=this.tip2.transform.baseVal.getItem(0);K.setRotate(b+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(K,0)}},Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=p.typeName,b},p.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b),this.createTips(),this.adjustVisual()},p.typeName="MeasurementMarker",p.title="Measurement marker",p.icon='',p}(ke),at=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.strokePanel.colors=K.defaultColorSet,k.fillColor="transparent",k}return ne(p,N),Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=N.prototype.getState.call(this);return b.typeName=p.typeName,b},p.typeName="EllipseFrameMarker",p.title="Ellipse frame marker",p.icon='',p}(we),ot=function(){function N(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(N.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),N.prototype.addUndoStep=function(p){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(p)||(this.undoStack.push(p),JSON.stringify(this.lastRedoStep)!==JSON.stringify(p)&&this.redoStack.splice(0,this.redoStack.length))},N.prototype.replaceLastUndoStep=function(p){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=p)},N.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},N.prototype.undo=function(){if(this.undoStack.length>1){var p=this.undoStack.pop();return p!==void 0&&this.redoStack.push(p),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},N.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},N}(),Se=function(N){function p(b,M,K){var k=N.call(this,b,M,K)||this;return k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.curveX=0,k.curveY=0,k.manipulationStartCurveX=0,k.manipulationStartCurveY=0,k.setStrokeColor=k.setStrokeColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.positionGrips=k.positionGrips.bind(k),k.addControlGrips=k.addControlGrips.bind(k),k.adjustVisual=k.adjustVisual.bind(k),k.setupControlBox=k.setupControlBox.bind(k),k.resize=k.resize.bind(k),k.strokeColor=K.defaultColor,k.strokeWidth=K.defaultStrokeWidth,k.strokeDasharray=K.defaultStrokeDasharray,k.strokePanel=new Xe("Line color",K.defaultColorSet,K.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.strokeWidthPanel=new Tt("Line width",K.defaultStrokeWidths,K.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new _t("Line style",K.defaultStrokeDasharrays,K.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k}return ne(p,N),p.prototype.ownsTarget=function(b){return!(!N.prototype.ownsTarget.call(this,b)&&b!==this.visual&&b!==this.selectorCurve&&b!==this.visibleCurve&&!this.curveGrip.ownsTarget(b))},p.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},p.prototype.createVisual=function(){this.visual=J.createGroup(),this.selectorCurve=J.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=J.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},p.prototype.pointerDown=function(b,M){N.prototype.pointerDown.call(this,b,M),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=b.x,this.curveY=b.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(M)&&(this.activeGrip=this.curveGrip,this._state="resize")},p.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),J.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),J.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),J.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},p.prototype.setupControlBox=function(){N.prototype.setupControlBox.call(this),this.curveControlLine1=J.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=J.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},p.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,N.prototype.addControlGrips.call(this)},p.prototype.positionGrips=function(){N.prototype.positionGrips.call(this);var b=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-b/2,this.curveY-b/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},p.prototype.manipulate=function(b){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+b.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+b.y-this.manipulationStartY),N.prototype.manipulate.call(this,b)},p.prototype.resize=function(b){this.activeGrip===this.curveGrip&&(this.curveX=b.x,this.curveY=b.y),N.prototype.resize.call(this,b),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},p.prototype.setStrokeColor=function(b){this.strokeColor=b,this.adjustVisual(),this.colorChanged(b)},p.prototype.setStrokeWidth=function(b){this.strokeWidth=b,this.adjustVisual()},p.prototype.setStrokeDasharray=function(b){this.strokeDasharray=b,this.adjustVisual()},p.prototype.scale=function(b,M){this.curveX=this.curveX*b,this.curveY=this.curveY*M,N.prototype.scale.call(this,b,M)},Object.defineProperty(p.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),p.prototype.getState=function(){var b=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},N.prototype.getState.call(this));return b.typeName=p.typeName,b},p.prototype.restoreState=function(b){N.prototype.restoreState.call(this,b);var M=b;this.strokeColor=M.strokeColor,this.strokeWidth=M.strokeWidth,this.strokeDasharray=M.strokeDasharray,this.curveX=M.curveX,this.curveY=M.curveY,this.createVisual(),this.adjustVisual()},p.typeName="CurveMarker",p.title="Curve marker",p.icon='',p}(De),st=function(){function N(p,b){b===void 0&&(b=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=p,this.cancelable=b}return Object.defineProperty(N.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),N.prototype.preventDefault=function(){this._defaultPrevented=!0},N}(),tt=function(N){function p(b,M,K){var k=N.call(this,b,!1)||this;return k.dataUrl=M,k.state=K,k}return ne(p,N),p}(st),Ye=function(N){function p(b,M,K){K===void 0&&(K=!1);var k=N.call(this,b,K)||this;return k.marker=M,k}return ne(p,N),p}(st),mt=function(){function N(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return N.prototype.addEventListener=function(p,b){this[p].push(b)},N.prototype.removeEventListener=function(p,b){var M=this[p].indexOf(b);M>-1&&this[p].splice(M,1)},N}(),bt=function(){function N(p){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new xe,this._isOpen=!1,this.undoRedoManager=new ot,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new mt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=N.instanceCounter++,this.styles=new Qe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=p,this.targetRoot=document.body,this.width=p.clientWidth,this.height=p.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.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.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(N.prototype,"ALL_MARKER_TYPES",{get:function(){return[me,ce,te,Le,at,we,q,ge,je,V,ke,Se]},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[me,ce,te,Le,we,q,ge]},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"BASIC_MARKER_TYPES",{get:function(){return[me,ce,te,Le,q]},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(p){var b=this;this._availableMarkerTypes.splice(0),p.forEach(function(M){if(typeof M=="string"){var K=b.ALL_MARKER_TYPES.find(function(k){return k.typeName===M});K!==void 0&&b._availableMarkerTypes.push(K)}else b._availableMarkerTypes.push(M)})},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(p){this._zoomLevel=p,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),N.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ie.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},N.prototype.show=function(){var p=this;this.styles.styleSheetRoot===void 0&&et.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=et.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(b){return b(new st(p))})},N.prototype.render=function(){return Te(this,void 0,void 0,function(){var p;return Ae(this,function(b){switch(b.label){case 0:return this.setCurrentMarker(),(p=new it).naturalSize=this.renderAtNaturalSize,p.imageType=this.renderImageType,p.imageQuality=this.renderImageQuality,p.markersOnly=this.renderMarkersOnly,p.width=this.renderWidth,p.height=this.renderHeight,[4,p.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return b.sent(),[4,p.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,b.sent()]}})})},N.prototype.close=function(p){var b=this;if(p===void 0&&(p=!1),this.isOpen){var M=!1;p||this.eventListeners.beforeclose.forEach(function(K){var k=new st(b,!0);K(k),k.defaultPrevented&&(M=!0)}),M||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(K){return K(new st(b))}),this.detachEvents(),this._isOpen=!1)}},N.prototype.addMarkersToToolbar=function(){for(var p,b=[],M=0;Mthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*p:this.editorCanvas.clientWidth,M=b',p.title="Powered by marker.js",p.style.display="grid",p.style.alignItems="center",p.style.justifyItems="center",p.style.padding="3px",p.style.width="20px",p.style.height="20px",this.logoUI.appendChild(p),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},N.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},N.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},N.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},N.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var p=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=p+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.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.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.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.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ze(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",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.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(p),1),p.dispose()},N.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},N.prototype.toolbarButtonClicked=function(p,b){if(p==="marker"&&b!==void 0)this.createNewMarker(b);else if(p==="action")switch(b){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},N.prototype.deleteSelectedMarker=function(){var p=this;if(this._currentMarker!==void 0){var b=!1;if(this.eventListeners.markerbeforedelete.forEach(function(K){var k=new Ye(p,p._currentMarker,!0);K(k),k.defaultPrevented&&(b=!0)}),!b){var M=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(K){return K(new Ye(p,M))})}}},N.prototype.clear=function(){var p=this,b=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var He=new Ye(p,void 0,!0);he(He),He.defaultPrevented&&(b=!0)}),!b)){this.setCurrentMarker();for(var M=function(he){var He=K.markers[he];K.setCurrentMarker(K.markers[he]),K._currentMarker.dispose(),K.markerImage.removeChild(K._currentMarker.container),K.markers.splice(K.markers.indexOf(K._currentMarker),1),K.eventListeners.markerdelete.forEach(function(lt){return lt(new Ye(p,He))})},K=this,k=this.markers.length-1;k>=0;k--)M(k);this.addUndoStep()}},Object.defineProperty(N.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),N.prototype.showNotesEditor=function(){var p;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(p=this._currentMarker.notes)!==null&&p!==void 0?p:"",this.overlayContainer.appendChild(this.notesArea))},N.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},N.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},N.prototype.addUndoStep=function(){var p=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var b=this.getState(),M=this.undoRedoManager.getLastUndoStep();if(!M||M.width===b.width&&M.height===b.height){var K=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(b),K1&&this.panTo({x:p.clientX,y:p.clientY}))},N.prototype.onPointerUp=function(p){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(p.clientX,p.clientY)),this.isDragging=!1,this.addUndoStep()},N.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},N.prototype.onKeyUp=function(p){this._currentMarker===void 0||this.notesArea!==void 0||p.key!=="Delete"&&p.key!=="Backspace"||this.deleteSelectedMarker()},N.prototype.clientToLocalCoordinates=function(p,b){var M=this.markerImage.getBoundingClientRect();return{x:(p-M.left)/this.zoomLevel,y:(b-M.top)/this.zoomLevel}},N.prototype.onWindowResize=function(){this.positionUI()},N.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var p=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=p+"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=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},N.prototype.addLicenseKey=function(p){Ie.addKey(p)},N.prototype.addEventListener=function(p,b){this.eventListeners.addEventListener(p,b)},N.prototype.removeEventListener=function(p,b){this.eventListeners.removeEventListener(p,b)},N.prototype.renderState=function(p){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(p),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(N.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),N.prototype.focus=function(){var p=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(b){return b(new st(p))}))},N.prototype.blur=function(){var p=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(b){return b(new st(p))}))},N.instanceCounter=0,N}();/* **********************************
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 gt=function(N,p){return(gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,M){b.__proto__=M}||function(b,M){for(var K in M)Object.prototype.hasOwnProperty.call(M,K)&&(b[K]=M[K])})(N,p)};function At(N,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function b(){this.constructor=N}gt(N,p),N.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}function ht(N,p,b,M){return new(b||(b=Promise))(function(K,k){function he(Et){try{lt(M.next(Et))}catch(Ke){k(Ke)}}function He(Et){try{lt(M.throw(Et))}catch(Ke){k(Ke)}}function lt(Et){var Ke;Et.done?K(Et.value):(Ke=Et.value,Ke instanceof b?Ke:new b(function(It){It(Ke)})).then(he,He)}lt((M=M.apply(N,p||[])).next())})}function vt(N,p){var b,M,K,k,he={label:0,sent:function(){if(1&K[0])throw K[1];return K[1]},trys:[],ops:[]};return k={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function He(lt){return function(Et){return function(Ke){if(b)throw new TypeError("Generator is already executing.");for(;he;)try{if(b=1,M&&(K=2&Ke[0]?M.return:Ke[0]?M.throw||((K=M.return)&&K.call(M),0):M.next)&&!(K=K.call(M,Ke[1])).done)return K;switch(M=0,K&&(Ke=[2&Ke[0],K.value]),Ke[0]){case 0:case 1:K=Ke;break;case 4:return he.label++,{value:Ke[1],done:!1};case 5:he.label++,M=Ke[1],Ke=[0];continue;case 7:Ke=he.ops.pop(),he.trys.pop();continue;default:if(!(K=he.trys,(K=K.length>0&&K[K.length-1])||Ke[0]!==6&&Ke[0]!==2)){he=0;continue}if(Ke[0]===3&&(!K||Ke[1]>K[0]&&Ke[1]0&&b>0){var M=new zt(p,b),K=M.ratio>=1?20:M.getHorizontalLength(20),k=M.ratio<1?20:M.getVerticalLength(20),he=document.createElementNS("http://www.w3.org/2000/svg","svg");he.setAttribute("xmlns","http://www.w3.org/2000/svg"),he.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(he);var He=Pe.createDefs();he.appendChild(He);var lt=Pe.createElement("clipPath",[["id","text-bg-clip"]]);He.appendChild(lt);var Et=Pe.createPath(Pe.getHollowRectanglePath((24-K)/2,(24-k)/2,K,k,(24-K)/2+2,(24-k)/2+2,K-4,k-4));he.appendChild(Et);var Ke=Pe.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ke.appendChild(Pe.createTSpan(p+":"+b)),he.appendChild(Ke);var It=Ke.getBBox();Pe.setAttributes(Ke,[["x",((24-It.width)/2).toString()],["y",((24-It.height)/2-It.y).toString()]]);var Nt=Pe.createPath(Pe.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(It.width))/2,(24-Math.ceil(It.height))/2,Math.ceil(It.width),Math.ceil(It.height)));return lt.appendChild(Nt),Pe.setAttributes(Et,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(he),he.outerHTML}return''},N}(),tn=function(N){function p(b,M,K){var k=N.call(this,b,M)||this;return k.isDropdownOpen=!1,k.onClick=k.dropdownButtonClicked,k.dropdownButtons=K,k}return At(p,N),p.prototype.setupDropdown=function(){var b=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(M){M.className=b.className,M.colorsClassName=b.colorsClassName,b.dropdownBlock.appendChild(M.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},p.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},p.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},p.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},p.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},p.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},p}($t),gn=function(){function N(p,b){this.GRIP_SIZE=10,this.color=p,this.fillColor=b,this.visual=Pe.createGroup(),this.visual.appendChild(Pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Pe.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return N.prototype.ownsTarget=function(p){return p===this.visual||p===this.visual.childNodes[0]||p===this.visual.childNodes[1]},N.prototype.setCenter=function(p,b){this.visual.childNodes.forEach(function(M){return Pe.setAttributes(M,[["cx",p.toString()],["cy",b.toString()]])})},N}(),_n=function(){function N(p,b,M,K){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=p,this.canvasHeight=b,this.margin=M,this.container=K,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(N.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(p){this._aspectRatio=p,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(p){this._isGridVisible=p,this.gridContainer&&Pe.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(p){this._zoomFactor=p,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),N.prototype.open=function(){var p=this;this.cropShadeElement=Pe.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Pe.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var b=0;bthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-b.height/2),Pe.setAttributes(this.cropRectElement,[["x",b.x.toString()],["y",b.y.toString()],["width",b.width.toString()],["height",b.height.toString()]]);var M=b.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(k,he){var He=b.y+M*(he+1);Pe.setAttributes(k,[["x1",""+b.x],["y1",""+He],["x2",""+(b.x+b.width)],["y2",""+He]])});var K=b.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(k,he){var He=b.x+K*(he+1);Pe.setAttributes(k,[["x1",""+He],["y1",""+b.y],["x2",""+He],["y2",""+(b.y+b.height)]])}),Pe.setAttributes(this.cropShadeElement,[["d",Pe.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,b.x,b.y,b.width,b.height)]]),this.topLeftGrip.setCenter(b.x,b.y),this.topRightGrip.setCenter(b.x+b.width,b.y),this.bottomLeftGrip.setCenter(b.x,b.y+b.height),this.bottomRightGrip.setCenter(b.x+b.width,b.y+b.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},N.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)},N.prototype.clientToLocalCoordinates=function(p,b){var M=this.container.getBoundingClientRect();return{x:p-M.left+this.margin,y:b-M.top+this.margin}},N.prototype.onPointerDown=function(p){this.container.setPointerCapture(p.pointerId),this.previousPoint=this.clientToLocalCoordinates(p.clientX,p.clientY),this.cropRectElement===p.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(p.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(p.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(p.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(p.target)&&(this.activeGrip=this.bottomRightGrip)},N.prototype.onPointerMove=function(p){if(this.isMoving)this.move(this.clientToLocalCoordinates(p.clientX,p.clientY));else if(this.activeGrip){var b=this.clientToLocalCoordinates(p.clientX,p.clientY);this.resize(b)}p.preventDefault()},N.prototype.onPointerUp=function(p){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(p.pointerId)},N.prototype.move=function(p){var b=p.x-this.previousPoint.x,M=p.y-this.previousPoint.y;this.zoomFactor!==1&&(b=-b/this.zoomFactor,M=-M/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+b),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+M),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=p},N.prototype.resize=function(p){var b=Object.assign({},this.cropRect),M=p.x-this.previousPoint.x,K=p.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:b.x+Mthis.canvasWidth*this.zoomFactor&&(M=this.canvasWidth*this.zoomFactor-b.width),b.width+=M}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(b.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(M),b.height=this.aspectRatio.getVerticalLength(b.width)):(b.y+=K,b.height=this.cropRect.y+this.cropRect.height-b.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?b.height=this.aspectRatio.getVerticalLength(b.width):b.height+=K}b.width<10&&(b.x=this.cropRect.x,b.width=10),b.height<10&&(b.y=this.cropRect.y,b.height=10),this.previousPoint=p,b.x>=this.margin&&b.y>=this.margin&&b.x-this.margin+b.width<=this.canvasWidth&&b.y-this.margin+b.height<=this.canvasHeight&&(this.cropRect=b,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},N.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var p=this.cropRect.x+this.cropRect.width/2,b=this.cropRect.y+this.cropRect.height/2,M=this.aspectRatio.getHorizontalLength(this.cropRect.height),K=this.aspectRatio.getVerticalLength(this.cropRect.width);M/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=p-this.cropRect.width/2,this.cropRect.y=b-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)}},N.prototype.getRescaledRect=function(p,b,M,K,k,he){var He=M/p,lt=K/b;return{x:(k.x-he)*He+he,y:(k.y-he)*lt+he,width:k.width*He,height:k.height*lt}},N.prototype.scaleCanvas=function(p,b){var M=this.getRescaledRect(this.canvasWidth,this.canvasHeight,p,b,this.cropRect,this.margin);this.canvasWidth=p,this.canvasHeight=b,this.onCropChange&&this.onCropChange(M),this.setCropRectangle(M)},N}(),Pn=function(){function N(p){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=p,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(N.prototype,"angle",{get:function(){return this._angle},set:function(p){this._angle=p,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),N.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},N.prototype.onPointerDown=function(p){this.controlContainer.setPointerCapture(p.pointerId),this.isDragging=!0,this.previousPoint={x:p.clientX,y:p.clientY}},N.prototype.onPointerMove=function(p){this.isDragging&&(this.onAngleChange&&this.onAngleChange((p.clientX-this.previousPoint.x)/5),this.previousPoint.x=p.clientX)},N.prototype.onPointerUp=function(p){this.isDragging&&this.onAngleChange&&this.onAngleChange((p.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(p.pointerId)},N.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var p=this.angleLabelText.getBBox();Pe.setAttributes(this.angleLabelElement,[["x",((this.width-p.width)/2).toString()],["y",(this.height/2).toString()]])}},N.prototype.positionScaleShape=function(){if(this.scaleShape){var p=this.scaleShape.transform.baseVal.getItem(0);p.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(p,0)}},N.prototype.getVisual=function(){var p=document.createElementNS("http://www.w3.org/2000/svg","svg");p.setAttribute("xmlns","http://www.w3.org/2000/svg"),p.setAttribute("width",this.width+"px"),p.setAttribute("height",this.height+"px"),p.setAttribute("viewBox","0 0 "+this.width+" "+this.height),p.style.flexShrink="0",document.body.appendChild(p);for(var b="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,M=1;M<=this.width/5+10;M++){var K=M%5==0?this.height/3:this.height/6;b+="h4v"+-K+"h1v"+K}b+="v1H0Z",this.scaleShape=Pe.createPath(b);var k=Pe.createTransform();this.scaleShape.transform.baseVal.appendItem(k),p.appendChild(this.scaleShape),this.angleLabelElement=Pe.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Pe.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var he=Pe.createTSpan("");return he.innerHTML="°",this.angleLabelElement.appendChild(he),p.appendChild(this.angleLabelElement),document.body.removeChild(p),p},N}(),Wn=function(){function N(){this.naturalSize=!1,this.imageType="image/png"}return N.prototype.rasterize=function(p,b,M,K,k,he,He){var lt=this;return new Promise(function(Et){var Ke=document.createElement("canvas");Ke.width=p.width.baseVal.value-2*K,Ke.height=p.height.baseVal.value-2*K;var It=1,Nt=1;lt.naturalSize===!0?(It=b.naturalWidth/(p.width.baseVal.value-2*K)/he,Nt=b.naturalHeight/(p.height.baseVal.value-2*K)/He,Ke.width=b.naturalWidth/he,Ke.height=b.naturalHeight/He):lt.width!==void 0&<.height!==void 0&&(It=lt.width/M.width,Nt=lt.height/M.height,Ke.width*=It,Ke.height*=Nt);var on=Ke.getContext("2d");on.translate(Ke.width/2,Ke.height/2),on.rotate(k*Math.PI/180),on.scale(he,He),on.translate(-Ke.width/2,-Ke.height/2),on.drawImage(b,0,0,Ke.width,Ke.height);var Nn=document.createElement("canvas");Nn.width=M.width*It,Nn.height=M.height*Nt,Nn.getContext("2d").putImageData(on.getImageData((M.x-K)*It,(M.y-K)*Nt,M.width*It,M.height*Nt),0,0),Et(Nn.toDataURL(lt.imageType,lt.imageQuality))})},N}(),oi=function(){function N(p){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=N.instanceCounter++,this.styles=new pt(this.instanceNo),this.target=p,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(N.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(p){this._zoomToCropEnabled=p,p?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(p){this._isGridVisible=p,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"gridLines",{get:function(){return this._gridLines},set:function(p){this._gridLines=p,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(p){this._rotationAngle=p,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"aspectRatio",{get:function(){var p;return(p=this._aspectRatio)!==null&&p!==void 0?p:this.aspectRatios[0]},set:function(p){this._aspectRatio=p},enumerable:!1,configurable:!0}),N.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},N.prototype.show=function(){this.showUI(),this.open()},N.prototype.close=function(p){p===void 0&&(p=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),p||this.closeEventListeners.forEach(function(b){return b()}),this._isOpen=!1)},N.prototype.addRenderEventListener=function(p){this.renderEventListeners.push(p)},N.prototype.removeRenderEventListener=function(p){this.renderEventListeners.indexOf(p)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(p),1)},N.prototype.addCloseEventListener=function(p){this.closeEventListeners.push(p)},N.prototype.removeCloseEventListener=function(p){this.closeEventListeners.indexOf(p)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(p),1)},N.prototype.setupResizeObserver=function(){var p=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){p.resize(p.target.clientWidth,p.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))},N.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var p=1*this.target.clientWidth/this.target.clientHeight,b=this.contentDiv.clientWidth/p>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*p:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,M=b+2*this.CANVAS_MARGINp+this.CANVAS_MARGIN?this.target.offsetTop-(p+this.CANVAS_MARGIN):0;this.coverDiv.style.top=b+"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},N.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},N.prototype.addTopToolbar=function(){var p=this;this.topToolbar=new Mt,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 b=new mn;b.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(b);var M=[];this.aspectRatios.forEach(function(Nt){var on=new $t(Bt.getIcon(Nt.horizontal,Nt.vertical),Nt.horizontal===0&&Nt.vertical===0?"FREE":Nt.horizontal+":"+Nt.vertical);on.onClick=function(){return p.ratioButtonClicked(Nt)},M.push(on)}),this.aspectRatioButton=new tn(Bt.getIcon(0,0),"Aspect ratio",M),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,b.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var K=new $t('',"Toggle grid");K.isActive=this.isGridVisible,K.onClick=function(){p.isGridVisible=!p.isGridVisible,K.isActive=p.isGridVisible},b.addButton(K);var k=new $t('',"Zoom to selection");if(k.isActive=this.zoomToCropEnabled,k.onClick=function(){p.zoomToCropEnabled=!p.zoomToCropEnabled,k.isActive=p.zoomToCropEnabled},b.addButton(k),!Ot.isLicensed){var he=new hn;this.topToolbar.addElementBlock(he);var He=document.createElement("div");He.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var lt=document.createElement("a");lt.style.color="currentColor",lt.href="https://markerjs.com/products/cropro",lt.target="_blank",lt.innerHTML='',He.appendChild(lt),he.addElement(He)}var Et=new mn;Et.minWidth=3*this.toolbarHeight+"px",Et.contentAlign="end",this.topToolbar.addButtonBlock(Et);var Ke=new $t('',"OK");Ke.onClick=this.startRenderAndClose,Et.addButton(Ke),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ke.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var It=new $t('',"Close");It.onClick=this.close,Et.addButton(It),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(It.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},N.prototype.addBottomToolbar=function(){var p=this;this.bottomToolbar=new Mt,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 b=new mn;b.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(b);var M=new $t('',"Rotate left");M.onClick=this.rotateLeftButtonClicked,b.addButton(M);var K=new $t('',"Rotate right");K.onClick=this.rotateRightButtonClicked,b.addButton(K);var k=new hn;k.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(k),this.straightener=new Pn("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(Et){p.rotateBy(Et),p.straightener.angle=p.rotationAngle},k.addElement(this.straightener.getUI());var he=new mn;he.minWidth=2*this.toolbarHeight+"px",he.contentAlign="end",this.bottomToolbar.addButtonBlock(he);var He=new $t('',"Flip horizontal");He.onClick=this.flipHorizontallyButtonClicked,he.addButton(He);var lt=new $t('',"Flip vertical");lt.onClick=this.flipVerticallyButtonClicked,he.addButton(lt)},N.prototype.ratioButtonClicked=function(p){this.aspectRatio=p,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},N.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Bt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},N.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new zt(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},N.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},N.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},N.prototype.restoreState=function(p){if(p){var b=this.cropLayer.getRescaledRect(p.width,p.height,this.imageWidth,this.imageHeight,p.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(b),this.cropRectChanged(b),this.flippedHorizontally=p.flippedHorizontally,this.flippedVertically=p.flippedVertically,this.applyFlip(),this.rotationAngle=p.rotationAngle,this.applyRotation()}},N.prototype.clientToLocalCoordinates=function(p,b){var M=this.cropImage.getBoundingClientRect();return{x:p-M.left,y:b-M.top}},N.prototype.onWindowResize=function(){this.positionUI()},N.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var p=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=p+"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()},N.prototype.rotateLeftButtonClicked=function(){var p=this.rotationAngle-90;this.rotationAngle%90!=0&&(p+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(p)},N.prototype.rotateRightButtonClicked=function(){var p=this.rotationAngle+90;this.rotationAngle%90!=0&&(p-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(p)},N.prototype.rotateTo=function(p){p=(p=p>180?p-360:p)<=-180?p+360:p,this.rotationAngle=p,this.applyRotation()},N.prototype.rotateBy=function(p){this.rotateTo((this.rotationAngle+p)%360)},N.prototype.applyRotation=function(){var p=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var b=this.editingTargetRotationContainer.transform.baseVal.getItem(0);b.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(b,0);var M=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/M.width,this.imageHeight/M.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=p},N.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},N.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},N.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},N.prototype.startRenderAndClose=function(){return ht(this,void 0,void 0,function(){var p,b;return vt(this,function(M){switch(M.label){case 0:return[4,this.render()];case 1:return p=M.sent(),b=this.getState(),this.renderEventListeners.forEach(function(K){return K(p,b)}),this.close(!0),[2]}})})},N.prototype.render=function(){return ht(this,void 0,void 0,function(){var p;return vt(this,function(b){switch(b.label){case 0:return(p=new Wn).naturalSize=this.renderAtNaturalSize,p.imageType=this.renderImageType,p.imageQuality=this.renderImageQuality,p.width=this.renderWidth,p.height=this.renderHeight,this.unzoomFromCrop(),Pe.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,p.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 b.sent(),[4,p.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,b.sent()]}})})},N.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ct("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 Ct("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ct("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var p=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ct("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*p)+`px;
height: `+(this.toolbarHeight-2*p)+`px;
padding: `+p+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ct("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ct("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new St("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new St("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new Ct("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 Ct("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new Ct("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 Ct("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*p)+`px;
padding: `+p+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Ct("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},N.instanceCounter=0,N}(),Vn=F("8hTe"),Ut=F.n(Vn),Zn=/]*>/g;function fi(N){var p=document.createElement("div");return p.innerHTML=N,p.childNodes.length===0?"":p.childNodes[0].nodeValue}var qn=Re.a=function(N){var p=N.value,b=p===void 0?"":p,M=N.edit,K=M===void 0?!1:M,k=N.className,he=N.showTextOnly,He=N.showLines,lt=N.replaces,Et=N.zoomImg,Ke=N.hasMask,It=N.style,Nt=It===void 0?{}:It,on=N.stylesPrev,Nn=on===void 0?{}:on,Yn=String(b),Oe=Object(S.useRef)(),In=Object(S.useRef)(),si=Object(S.useState)(""),Xn=Object(H.a)(si,2),pi=Xn[0],$n=Xn[1],Cn=Object(S.useState)("office"),Kn=Object(H.a)(Cn,2),li=Kn[0],mi=Kn[1],Ti=function(){var Ft=new oi(In.current);Ft.displayMode="popup",Ft.addRenderEventListener(function(){var vn=Object(w.a)(R.a.mark(function Qt(An){var sn;return R.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:return Oe.current.style.display="none",On.next=3,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:An}});case 3:sn=On.sent,sn!=null&&sn.id&<(In.current.getAttribute("src").replace(Q.a.API_SERVER,""),"/api/attachments/".concat(sn==null?void 0:sn.id,"?type=").concat(sn.content_type));case 5:case"end":return On.stop()}},Qt)}));return function(Qt){return vn.apply(this,arguments)}}()),Ft.show()},Ni=function(){var Ft=new bt(In.current);Ft.settings.displayMode="popup",Ft.addEventListener("render",function(){var vn=Object(w.a)(R.a.mark(function Qt(An){var sn;return R.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:if(Oe.current.style.display="none",!In.current){On.next=6;break}return On.next=4,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:An.dataUrl}});case 4:sn=On.sent,sn!=null&&sn.id&<(In.current.getAttribute("src").replace(Q.a.API_SERVER,""),"/api/attachments/".concat(sn==null?void 0:sn.id,"?type=").concat(sn.content_type));case 6:case"end":return On.stop()}},Qt)}));return function(Qt){return vn.apply(this,arguments)}}()),Ft.show(),window.markerArea=Ft},ui=Object(S.useMemo)(function(){Oe.current&&(Oe.current.style.zIndex=-1);try{var ln=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ft=/\"\/api\/attachments\/|\"\/attachments\/download\//g,vn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Yn=Yn.replace(ln,"("+Q.a.API_SERVER+"/api/attachments/").replace(Ft,'"'+Q.a.API_SERVER+"/api/attachments/").replace(vn,'"'+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(vi){}var Qt=O(Yn),An=f();if(Yn.match(/\[TOC\]/)&&(Qt=Qt.replace("[TOC]
",E()),T()),Qt=Qt.replace(/(__special_katext_id_\d+__)/g,function(vi,On){var xi=An[On],yi=xi.type,_i=xi.expression;return Object(re.renderToString)(fi(_i)||"",{displayMode:yi==="block",throwOnError:!1,output:"html"})}),Qt=Qt.replace(/▁/g,"\u2581\u2581\u2581"),c(),he){var sn=document.createElement("div");return sn.innerHTML=Qt,sn.innerText}return setTimeout(function(){return Ri()},500),Qt},[Yn]),Dn=Object(S.useRef)();_.WebkitLineClamp=He,He&&(Nt=Object(C.a)(Object(C.a)({},Nt),_));function ei(ln){var Ft=ln.target;if(Ft.tagName.toUpperCase()==="IMG"){if(Et){var vn=Ft.getAttribute("src");$n(vn),mi("image")}}else if(Ft.tagName.toUpperCase()==="A"){var Qt=Ft.getAttribute("href");if(Qt.indexOf("office")>-1)ln.preventDefault(),$n(Qt),mi("office");else if(Qt.indexOf("application/pdf")>-1)ln.preventDefault(),$n(Qt),mi("pdf");else if(Qt.indexOf("text/html")>-1)ln.preventDefault(),$n(Qt),mi("html");else if(Qt.startsWith("#")){ln.preventDefault();var An=document.getElementById(Qt.replace("#",""));An&&An.scrollIntoView(!0)}}}var Ri=function(){var Ft,vn=(Ft=Dn.current)===null||Ft===void 0?void 0:Ft.querySelectorAll("video");vn==null||vn.forEach(function(Qt){if(Qt.oncontextmenu=function(){return!1},Qt.src.indexOf(".m3u8")>-1&&!Qt.canPlayType("application/vnd.apple.mpegurl")){if(G.a.isSupported()){var An=new G.a;An.loadSource(Qt.src),An.attachMedia(Qt)}}})};Object(S.useEffect)(function(){if(Dn.current&&ui&&(ui.match(Zn)&&window.PR.prettyPrint()),Dn.current)return Dn.current.addEventListener("click",ei),function(){Dn.current.removeEventListener("click",ei),c(),T()}},[ui,Dn.current,ei]);var gi=function(Ft){if(!K)return;Ft.target.nodeName==="IMG"?(Oe.current.style.zIndex=1,Oe.current.style.display="flex",Oe.current.style.width=Ft.target.clientWidth+"px",Oe.current.style.height=Ft.target.clientHeight+"px",Oe.current.style.top=Ft.target.offsetTop+"px",Oe.current.style.left=Ft.target.offsetLeft+"px",In.current.src=Ft.target.getAttribute("src")):Oe.current.style.display="none"};return y.a.createElement("div",{style:{position:"relative"}},y.a.createElement("div",{ref:Dn,style:Object(C.a)({},Nt),className:"".concat(k||""," markdown-body ").concat(Ut.a.mdBody),onMouseOver:gi,dangerouslySetInnerHTML:{__html:ui}}),y.a.createElement("div",{ref:Oe,className:Ut.a.button},y.a.createElement(L.a,null,y.a.createElement(j.a,{onClick:function(){return Ti()}},"\u88C1\u526A"),y.a.createElement(j.a,{onClick:function(){return Ni()}},"\u7F16\u8F91"))),y.a.createElement("img",{ref:In,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),y.a.createElement(le.a,{close:!0,data:pi,type:pi!=null&&pi.length?li:"",style:Object(C.a)({},Nn),onClose:function(){return $n("")}}))}},"9JIy":function(Ge,Re,F){Ge.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},BJfS:function(Ge,Re){var F=function(ie){return ie.replace(/[A-Z]/g,function(L){return"-"+L.toLowerCase()}).toLowerCase()};Ge.exports=F},BU3w:function(Ge,Re,F){"use strict";F.d(Re,"a",function(){return w});var ie=F("MNnm"),L="rc-util-key";function I(H){if(H.attachTo)return H.attachTo;var U=document.querySelector("head");return U||document.body}function j(H){var U,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var S=document.createElement("style");if((U=R.csp)===null||U===void 0?void 0:U.nonce){var y;S.nonce=(y=R.csp)===null||y===void 0?void 0:y.nonce}S.innerHTML=H;var v=I(R),d=v.firstChild;return R.prepend&&v.prepend?v.prepend(S):R.prepend&&d?v.insertBefore(S,d):v.appendChild(S),S}var C=new Map;function w(H,U){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=I(R);if(!C.has(S)){var y=j("",R),v=y.parentNode;C.set(S,v),v.removeChild(y)}var d=Array.from(C.get(S).children).find(function(e){return e.tagName==="STYLE"&&e[L]===U});if(d){var o,n;if(((o=R.csp)===null||o===void 0?void 0:o.nonce)&&d.nonce!==((n=R.csp)===null||n===void 0?void 0:n.nonce)){var a;d.nonce=(a=R.csp)===null||a===void 0?void 0:a.nonce}return d.innerHTML!==H&&(d.innerHTML=H),d}var s=j(H,R);return s[L]=U,s}},BdwD:function(Ge,Re,F){"use strict";var ie=F("+L6B"),L=F("2/Rp"),I=F("0Owb"),j=F("k1fw"),C=F("cDcd"),w=F.n(C),H=F("FOrL"),U=F.n(H),R=function(y){var v=y.buttonProps,d=v===void 0?{}:v,o=y.styles,n=o===void 0?{}:o,a=y.customText,s=y.ButtonText,e=y.ButtonClick,t=y.Buttonclass,i=y.ButtonTwo;return w.a.createElement("section",{className:"tc animated fadeIn",style:Object(j.a)(Object(j.a)({},{color:"#999",margin:"200px auto"}),n)},w.a.createElement("img",{src:U.a}),w.a.createElement("p",{className:"mt20 font14"},a||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),s&&w.a.createElement(L.a,Object(I.a)({className:t,onClick:e},d),s),i&&i)};Re.a=R},Bq7L:function(Ge,Re){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+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sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},DlQD:function(Ge,Re,F){(function(ie,L){Ge.exports=L()})(this,function(){"use strict";function ie(ce,ee){for(var te=0;tece.length)&&(ee=ce.length);for(var te=0,V=new Array(ee);te=ce.length?{done:!0}:{done:!1,value:ce[V++]}}}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=ce[Symbol.iterator](),te.next.bind(te)}function w(ce,ee){return ee={exports:{}},ce(ee,ee.exports),ee.exports}var H=w(function(ce){function ee(){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(V){ce.exports.defaults=V}ce.exports={defaults:ee(),getDefaults:ee,changeDefaults:te}}),U=H.defaults,R=H.getDefaults,S=H.changeDefaults,y=/[&<>"']/,v=/[&<>"']/g,d=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},a=function(ee){return n[ee]};function s(ce,ee){if(ee){if(y.test(ce))return ce.replace(v,a)}else if(d.test(ce))return ce.replace(o,a);return ce}var e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function t(ce){return ce.replace(e,function(ee,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 i=/(^|[^\[])\^/g;function T(ce,ee){ce=ce.source||ce,ee=ee||"";var te={replace:function(X,q){return q=q.source||q,q=q.replace(i,"$1"),ce=ce.replace(X,q),te},getRegex:function(){return new RegExp(ce,ee)}};return te}var _=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function E(ce,ee,te){if(ce){var V;try{V=decodeURIComponent(t(te)).replace(_,"").toLowerCase()}catch(X){return null}if(V.indexOf("javascript:")===0||V.indexOf("vbscript:")===0||V.indexOf("data:")===0)return null}ee&&!m.test(te)&&(te=l(ee,te));try{te=encodeURI(te).replace(/%25/g,"%")}catch(X){return null}return te}var g={},h=/^[^:]+:\/*[^/]*$/,u=/^([^:]+:)[\s\S]*$/,r=/^([^:]+:\/*[^/]*)[\s\S]*$/;function l(ce,ee){g[" "+ce]||(h.test(ce)?g[" "+ce]=ce+"/":g[" "+ce]=D(ce,"/",!0)),ce=g[" "+ce];var te=ce.indexOf(":")===-1;return ee.substring(0,2)==="//"?te?ee:ce.replace(u,"$1")+ee:ee.charAt(0)==="/"?te?ee:ce.replace(r,"$1")+ee:ce+ee}var f={exec:function(){}};function c(ce){for(var ee=1,te,V;ee=0&&ge[je]==="\\";)we=!we;return we?"|":" |"}),V=te.split(/ \|/),X=0;if(V.length>ee)V.splice(ee);else for(;V.length=V.length?X.slice(V.length):X}).join(`
`)}var _e=function(){function ce(te){this.options=te||W}var ee=ce.prototype;return ee.space=function(V){var X=this.rules.block.newline.exec(V);if(X)return X[0].length>1?{type:"space",raw:X[0]}:{raw:`
`}},ee.code=function(V,X){var q=this.rules.block.code.exec(V);if(q){var ae=X[X.length-1];if(ae&&ae.type==="paragraph")return{raw:q[0],text:q[0].trimRight()};var ge=q[0].replace(/^ {4}/gm,"");return{type:"code",raw:q[0],codeBlockStyle:"indented",text:this.options.pedantic?ge:P(ge,`
`)}}},ee.fences=function(V){var X=this.rules.block.fences.exec(V);if(X){var q=X[0],ae=Ee(q,X[3]||"");return{type:"code",raw:q,lang:X[2]?X[2].trim():X[2],text:ae}}},ee.heading=function(V){var X=this.rules.block.heading.exec(V);if(X)return{type:"heading",raw:X[0],depth:X[1].length,text:X[2]}},ee.nptable=function(V){var X=this.rules.block.nptable.exec(V);if(X){var q={type:"table",header:G(X[1].replace(/^ *| *\| *$/g,"")),align:X[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:X[3]?X[3].replace(/\n$/,"").split(`
`):[],raw:X[0]};if(q.header.length===q.align.length){var ae=q.align.length,ge;for(ge=0;ge ?/gm,"");return{type:"blockquote",raw:X[0],text:q}}},ee.list=function(V){var X=this.rules.block.list.exec(V);if(X){for(var q=X[0],ae=X[2],ge=ae.length>1,we=ae[ae.length-1]===")",je={type:"list",raw:q,ordered:ge,start:ge?+ae.slice(0,-1):"",loose:!1,items:[]},at=X[0].match(this.rules.block.item),ot=!1,Se,st,tt,Ye,mt,bt,gt,At=at.length,ht=0;ht1||this.options.smartLists&&tt!==ae)&&(Ye=at.slice(ht+1).join(`
`),je.raw=je.raw.substring(0,je.raw.length-Ye.length),ht=At-1)),mt=ot||/\n\n(?!\s*$)/.test(Se),ht!==At-1&&(ot=Se.charAt(Se.length-1)===`
`,mt||(mt=ot)),mt&&(je.loose=!0),bt=/^\[[ xX]\] /.test(Se),gt=void 0,bt&&(gt=Se[1]!==" ",Se=Se.replace(/^\[[ xX]\] +/,"")),je.items.push({type:"list_item",raw:q,task:bt,checked:gt,loose:mt,text:Se});return je}},ee.html=function(V){var X=this.rules.block.html.exec(V);if(X)return{type:this.options.sanitize?"paragraph":"html",raw:X[0],pre:!this.options.sanitizer&&(X[1]==="pre"||X[1]==="script"||X[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(X[0]):Q(X[0]):X[0]}},ee.def=function(V){var X=this.rules.block.def.exec(V);if(X){X[3]&&(X[3]=X[3].substring(1,X[3].length-1));var q=X[1].toLowerCase().replace(/\s+/g," ");return{tag:q,raw:X[0],href:X[2],title:X[3]}}},ee.table=function(V){var X=this.rules.block.table.exec(V);if(X){var q={type:"table",header:G(X[1].replace(/^ *| *\| *$/g,"")),align:X[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:X[3]?X[3].replace(/\n$/,"").split(`
`):[]};if(q.header.length===q.align.length){q.raw=X[0];var ae=q.align.length,ge;for(ge=0;ge/i.test(ae[0])&&(X=!1),!q&&/^<(pre|code|kbd|script)(\s|>)/i.test(ae[0])?q=!0:q&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ae[0])&&(q=!1),{type:this.options.sanitize?"text":"html",raw:ae[0],inLink:X,inRawBlock:q,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ae[0]):Q(ae[0]):ae[0]}},ee.link=function(V){var X=this.rules.inline.link.exec(V);if(X){var q=re(X[2],"()");if(q>-1){var ae=X[0].indexOf("!")===0?5:4,ge=ae+X[1].length+q;X[2]=X[2].substring(0,q),X[0]=X[0].substring(0,ge).trim(),X[3]=""}var we=X[2],je="";if(this.options.pedantic){var at=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(we);at?(we=at[1],je=at[3]):je=""}else je=X[3]?X[3].slice(1,-1):"";we=we.trim().replace(/^<([\s\S]*)>$/,"$1");var ot=le(X,{href:we&&we.replace(this.rules.inline._escapes,"$1"),title:je&&je.replace(this.rules.inline._escapes,"$1")},X[0]);return ot}},ee.reflink=function(V,X){var q;if((q=this.rules.inline.reflink.exec(V))||(q=this.rules.inline.nolink.exec(V))){var ae=(q[2]||q[1]).replace(/\s+/g," ");if(ae=X[ae.toLowerCase()],!ae||!ae.href){var ge=q[0].charAt(0);return{type:"text",raw:ge,text:ge}}var we=le(q,ae,q[0]);return we}},ee.strong=function(V,X,q){q===void 0&&(q="");var ae=this.rules.inline.strong.start.exec(V);if(ae&&(!ae[1]||ae[1]&&(q===""||this.rules.inline.punctuation.exec(q)))){X=X.slice(-1*V.length);var ge=ae[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ge.lastIndex=0;for(var we;(ae=ge.exec(X))!=null;)if(we=this.rules.inline.strong.middle.exec(X.slice(0,ae.index+3)),we)return{type:"strong",raw:V.slice(0,we[0].length),text:V.slice(2,we[0].length-2)}}},ee.em=function(V,X,q){q===void 0&&(q="");var ae=this.rules.inline.em.start.exec(V);if(ae&&(!ae[1]||ae[1]&&(q===""||this.rules.inline.punctuation.exec(q)))){X=X.slice(-1*V.length);var ge=ae[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ge.lastIndex=0;for(var we;(ae=ge.exec(X))!=null;)if(we=this.rules.inline.em.middle.exec(X.slice(0,ae.index+2)),we)return{type:"em",raw:V.slice(0,we[0].length),text:V.slice(1,we[0].length-1)}}},ee.codespan=function(V){var X=this.rules.inline.code.exec(V);if(X){var q=X[2].replace(/\n/g," "),ae=/[^ ]/.test(q),ge=q.startsWith(" ")&&q.endsWith(" ");return ae&&ge&&(q=q.substring(1,q.length-1)),q=Q(q,!0),{type:"codespan",raw:X[0],text:q}}},ee.br=function(V){var X=this.rules.inline.br.exec(V);if(X)return{type:"br",raw:X[0]}},ee.del=function(V){var X=this.rules.inline.del.exec(V);if(X)return{type:"del",raw:X[0],text:X[1]}},ee.autolink=function(V,X){var q=this.rules.inline.autolink.exec(V);if(q){var ae,ge;return q[2]==="@"?(ae=Q(this.options.mangle?X(q[1]):q[1]),ge="mailto:"+ae):(ae=Q(q[1]),ge=ae),{type:"link",raw:q[0],text:ae,href:ge,tokens:[{type:"text",raw:ae,text:ae}]}}},ee.url=function(V,X){var q;if(q=this.rules.inline.url.exec(V)){var ae,ge;if(q[2]==="@")ae=Q(this.options.mangle?X(q[0]):q[0]),ge="mailto:"+ae;else{var we;do we=q[0],q[0]=this.rules.inline._backpedal.exec(q[0])[0];while(we!==q[0]);ae=Q(q[0]),q[1]==="www."?ge="http://"+ae:ge=ae}return{type:"link",raw:q[0],text:ae,href:ge,tokens:[{type:"text",raw:ae,text:ae}]}}},ee.inlineText=function(V,X,q){var ae=this.rules.inline.text.exec(V);if(ae){var ge;return X?ge=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ae[0]):Q(ae[0]):ae[0]:ge=Q(this.options.smartypants?q(ae[0]):ae[0]),{type:"text",raw:ae[0],text:ge}}},ce}(),ne=O.noopTest,Te=O.edit,Ae=O.merge,fe={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:ne,table:ne,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};fe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,fe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,fe.def=Te(fe.def).replace("label",fe._label).replace("title",fe._title).getRegex(),fe.bullet=/(?:[*+-]|\d{1,9}[.)])/,fe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,fe.item=Te(fe.item,"gm").replace(/bull/g,fe.bullet).getRegex(),fe.list=Te(fe.list).replace(/bull/g,fe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+fe.def.source+")").getRegex(),fe._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",fe._comment=//,fe.html=Te(fe.html,"i").replace("comment",fe._comment).replace("tag",fe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fe.paragraph=Te(fe._paragraph).replace("hr",fe.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",fe._tag).getRegex(),fe.blockquote=Te(fe.blockquote).replace("paragraph",fe.paragraph).getRegex(),fe.normal=Ae({},fe),fe.gfm=Ae({},fe.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*|$)"}),fe.gfm.nptable=Te(fe.gfm.nptable).replace("hr",fe.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",fe._tag).getRegex(),fe.gfm.table=Te(fe.gfm.table).replace("hr",fe.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",fe._tag).getRegex(),fe.pedantic=Ae({},fe.normal,{html:Te(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",fe._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:ne,paragraph:Te(fe.normal._paragraph).replace("hr",fe.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",fe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var J={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ne,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:ne,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",J.punctuation=Te(J.punctuation).replace(/punctuation/g,J._punctuation).getRegex(),J._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",J._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",J.em.start=Te(J.em.start).replace(/punctuation/g,J._punctuation).getRegex(),J.em.middle=Te(J.em.middle).replace(/punctuation/g,J._punctuation).replace(/overlapSkip/g,J._overlapSkip).getRegex(),J.em.endAst=Te(J.em.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.em.endUnd=Te(J.em.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.start=Te(J.strong.start).replace(/punctuation/g,J._punctuation).getRegex(),J.strong.middle=Te(J.strong.middle).replace(/punctuation/g,J._punctuation).replace(/blockSkip/g,J._blockSkip).getRegex(),J.strong.endAst=Te(J.strong.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.endUnd=Te(J.strong.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.blockSkip=Te(J._blockSkip,"g").getRegex(),J.overlapSkip=Te(J._overlapSkip,"g").getRegex(),J._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,J._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,J._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,J.autolink=Te(J.autolink).replace("scheme",J._scheme).replace("email",J._email).getRegex(),J._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,J.tag=Te(J.tag).replace("comment",fe._comment).replace("attribute",J._attribute).getRegex(),J._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,J._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,J._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,J.link=Te(J.link).replace("label",J._label).replace("href",J._href).replace("title",J._title).getRegex(),J.reflink=Te(J.reflink).replace("label",J._label).getRegex(),J.reflinkSearch=Te(J.reflinkSearch,"g").replace("reflink",J.reflink).replace("nolink",J.nolink).getRegex(),J.normal=Ae({},J),J.pedantic=Ae({},J.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Te(/^!?\[(label)\]\((.*?)\)/).replace("label",J._label).getRegex(),reflink:Te(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",J._label).getRegex()}),J.gfm=Ae({},J.normal,{escape:Te(J.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(V="x"+V.toString(16)),ee+=""+V+";";return ee}var ze=function(){function ce(te){this.tokens=[],this.tokens.links=Object.create(null),this.options=te||it,this.options.tokenizer=this.options.tokenizer||new _e,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var V={block:et.normal,inline:Qe.normal};this.options.pedantic?(V.block=et.pedantic,V.inline=Qe.pedantic):this.options.gfm&&(V.block=et.gfm,this.options.breaks?V.inline=Qe.breaks:V.inline=Qe.gfm),this.tokenizer.rules=V}ce.lex=function(V,X){var q=new ce(X);return q.lex(V)};var ee=ce.prototype;return ee.lex=function(V){return V=V.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(V,this.tokens,!0),this.inline(this.tokens),this.tokens},ee.blockTokens=function(V,X,q){X===void 0&&(X=[]),q===void 0&&(q=!0),V=V.replace(/^ +$/gm,"");for(var ae,ge,we,je;V;){if(ae=this.tokenizer.space(V)){V=V.substring(ae.raw.length),ae.type&&X.push(ae);continue}if(ae=this.tokenizer.code(V,X)){V=V.substring(ae.raw.length),ae.type?X.push(ae):(je=X[X.length-1],je.raw+=`
`+ae.raw,je.text+=`
`+ae.text);continue}if(ae=this.tokenizer.fences(V)){V=V.substring(ae.raw.length),X.push(ae);continue}if(ae=this.tokenizer.heading(V)){V=V.substring(ae.raw.length),X.push(ae);continue}if(ae=this.tokenizer.nptable(V)){V=V.substring(ae.raw.length),X.push(ae);continue}if(ae=this.tokenizer.hr(V)){V=V.substring(ae.raw.length),X.push(ae);continue}if(ae=this.tokenizer.blockquote(V)){V=V.substring(ae.raw.length),ae.tokens=this.blockTokens(ae.text,[],q),X.push(ae);continue}if(ae=this.tokenizer.list(V)){for(V=V.substring(ae.raw.length),we=ae.items.length,ge=0;ge0)for(;(at=this.tokenizer.rules.inline.reflinkSearch.exec(je))!=null;)ot.includes(at[0].slice(at[0].lastIndexOf("[")+1,-1))&&(je=je.slice(0,at.index)+"["+"a".repeat(at[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(at=this.tokenizer.rules.inline.blockSkip.exec(je))!=null;)je=je.slice(0,at.index)+"["+"a".repeat(at[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;V;){if(we=this.tokenizer.escape(V)){V=V.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.tag(V,q,ae)){V=V.substring(we.raw.length),q=we.inLink,ae=we.inRawBlock,X.push(we);continue}if(we=this.tokenizer.link(V)){V=V.substring(we.raw.length),we.type==="link"&&(we.tokens=this.inlineTokens(we.text,[],!0,ae)),X.push(we);continue}if(we=this.tokenizer.reflink(V,this.tokens.links)){V=V.substring(we.raw.length),we.type==="link"&&(we.tokens=this.inlineTokens(we.text,[],!0,ae)),X.push(we);continue}if(we=this.tokenizer.strong(V,je,ge)){V=V.substring(we.raw.length),we.tokens=this.inlineTokens(we.text,[],q,ae),X.push(we);continue}if(we=this.tokenizer.em(V,je,ge)){V=V.substring(we.raw.length),we.tokens=this.inlineTokens(we.text,[],q,ae),X.push(we);continue}if(we=this.tokenizer.codespan(V)){V=V.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.br(V)){V=V.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.del(V)){V=V.substring(we.raw.length),we.tokens=this.inlineTokens(we.text,[],q,ae),X.push(we);continue}if(we=this.tokenizer.autolink(V,Me)){V=V.substring(we.raw.length),X.push(we);continue}if(!q&&(we=this.tokenizer.url(V,Me))){V=V.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.inlineText(V,ae,nt)){V=V.substring(we.raw.length),ge=we.raw.slice(-1),X.push(we);continue}if(V){var Se="Infinite loop on byte: "+V.charCodeAt(0);if(this.options.silent){console.error(Se);break}else throw new Error(Se)}}return X},L(ce,null,[{key:"rules",get:function(){return{block:et,inline:Qe}}}]),ce}(),Je=H.defaults,$e=O.cleanUrl,Xe=O.escape,Fe=function(){function ce(te){this.options=te||Je}var ee=ce.prototype;return ee.code=function(V,X,q){var ae=(X||"").match(/\S*/)[0];if(this.options.highlight){var ge=this.options.highlight(V,ae);ge!=null&&ge!==V&&(q=!0,V=ge)}return ae?''+(q?V:Xe(V,!0))+`
`:""+(q?V:Xe(V,!0))+`
`},ee.blockquote=function(V){return`
`+V+`
`},ee.html=function(V){return V},ee.heading=function(V,X,q,ae){return this.options.headerIds?"
`:""+V+"
`},ee.hr=function(){return this.options.xhtml?`
`:`
`},ee.list=function(V,X,q){var ae=X?"ol":"ul",ge=X&&q!==1?' start="'+q+'"':"";return"<"+ae+ge+`>
`+V+""+ae+`>
`},ee.listitem=function(V){return""+V+`
`},ee.checkbox=function(V){return" "},ee.paragraph=function(V){return""+V+`
`},ee.table=function(V,X){return X&&(X=""+X+""),`
`},ee.tablerow=function(V){return`
`+V+`
`},ee.tablecell=function(V,X){var q=X.header?"th":"td",ae=X.align?"<"+q+' align="'+X.align+'">':"<"+q+">";return ae+V+""+q+`>
`},ee.strong=function(V){return""+V+""},ee.em=function(V){return""+V+""},ee.codespan=function(V){return""+V+""},ee.br=function(){return this.options.xhtml?"
":"
"},ee.del=function(V){return""+V+""},ee.link=function(V,X,q){if(V=$e(this.options.sanitize,this.options.baseUrl,V),V===null)return q;var ae='"+q+"",ae},ee.image=function(V,X,q){if(V=$e(this.options.sanitize,this.options.baseUrl,V),V===null)return q;var ae='
":">",ae},ee.text=function(V){return V},ce}(),We=function(){function ce(){}var ee=ce.prototype;return ee.strong=function(V){return V},ee.em=function(V){return V},ee.codespan=function(V){return V},ee.del=function(V){return V},ee.html=function(V){return V},ee.text=function(V){return V},ee.link=function(V,X,q){return""+q},ee.image=function(V,X,q){return""+q},ee.br=function(){return""},ce}(),yt=function(){function ce(){this.seen={}}var ee=ce.prototype;return ee.slug=function(V){var X=V.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(X)){var q=X;do this.seen[q]++,X=q+"-"+this.seen[q];while(this.seen.hasOwnProperty(X))}return this.seen[X]=0,X},ce}(),ft=H.defaults,ut=O.unescape,rt=function(){function ce(te){this.options=te||ft,this.options.renderer=this.options.renderer||new Fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new We,this.slugger=new yt}ce.parse=function(V,X){var q=new ce(X);return q.parse(V)};var ee=ce.prototype;return ee.parse=function(V,X){X===void 0&&(X=!0);var q="",ae,ge,we,je,at,ot,Se,st,tt,Ye,mt,bt,gt,At,ht,vt,Ot,Pe,pt=V.length;for(ae=0;ae0&&ht.tokens[0].type==="text"?(ht.tokens[0].text=Pe+" "+ht.tokens[0].text,ht.tokens[0].tokens&&ht.tokens[0].tokens.length>0&&ht.tokens[0].tokens[0].type==="text"&&(ht.tokens[0].tokens[0].text=Pe+" "+ht.tokens[0].tokens[0].text)):ht.tokens.unshift({type:"text",text:Pe}):At+=Pe),At+=this.parse(ht.tokens,gt),tt+=this.renderer.listitem(At,Ot,vt);q+=this.renderer.list(tt,mt,bt);continue}case"html":{q+=this.renderer.html(Ye.text);continue}case"paragraph":{q+=this.renderer.paragraph(this.parseInline(Ye.tokens));continue}case"text":{for(tt=Ye.tokens?this.parseInline(Ye.tokens):Ye.text;ae+1An error occurred:
"+me(we.message+"",!0)+"
";throw we}}be.options=be.setOptions=function(ce){return Tt(be.defaults,ce),De(be.defaults),be},be.getDefaults=xe,be.defaults=ke,be.use=function(ce){var ee=Tt({},ce);if(ce.renderer&&function(){var V=be.defaults.renderer||new Fe,X=function(ge){var we=V[ge];V[ge]=function(){for(var je=arguments.length,at=new Array(je),ot=0;ot1&&arguments[1]!==void 0?arguments[1]:1,te=We.length,V=0;V1&&arguments[1]!==void 0?arguments[1]:!1;return Object(E.a)(P).map(function(Q,re){if(!C.isValidElement(Q)||!Q.type)return null;var le=Q.type.isSelectOptGroup,Ee=Q.key,_e=Q.props,ne=_e.children,Te=Object(H.a)(_e,["children"]);return G||!le?g(Q):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?re:Ee,"__"),label:Ee},Te),{},{options:h(ne)})}).filter(function(Q){return Q})}var u=F("2Qr1"),r=F("qNPg"),l=F("U8pU"),f=F("Kwbf"),c=F("WKfj");function x(P){var G=P.mode,Q=P.options,re=P.children,le=P.backfill,Ee=P.allowClear,_e=P.placeholder,ne=P.getInputElement,Te=P.showSearch,Ae=P.onSearch,fe=P.defaultOpen,J=P.autoFocus,Ie=P.labelInValue,it=P.value,et=P.inputValue,Qe=P.optionLabelProp,nt=G==="multiple"||G==="tags",Me=Te!==void 0?Te:nt||G==="combobox",ze=Q||h(re);if(Object(f.a)(G!=="tags"||ze.every(function(Fe){return!Fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var Je=ze.some(function(Fe){return Fe.options?Fe.options.some(function(We){return typeof("value"in We?We.value:We.key)=="number"}):typeof("value"in Fe?Fe.value:Fe.key)=="number"});Object(f.a)(!Je,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(f.a)(G!=="combobox"||!Qe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(f.a)(G==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(f.a)(G==="combobox"||!ne,"`getInputElement` only work with `combobox` mode."),Object(f.b)(G!=="combobox"||!ne||!Ee||!_e,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ae&&!Me&&G!=="combobox"&&G!=="tags"&&Object(f.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(f.b)(!fe||J,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),it!=null){var $e=Object(c.d)(it);Object(f.a)(!Ie||$e.every(function(Fe){return Object(l.a)(Fe)==="object"&&("key"in Fe||"value"in Fe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(f.a)(!nt||Array.isArray(it),"`value` should be array when `mode` is `multiple` or `tags`")}if(re){var Xe=null;Object(E.a)(re).some(function(Fe){if(!C.isValidElement(Fe)||!Fe.type)return!1;var We=Fe.type;if(We.isSelectOption)return!1;if(We.isSelectOptGroup){var yt=Object(E.a)(Fe.props.children).every(function(ft){return!C.isValidElement(ft)||!Fe.type||ft.type.isSelectOption?!0:(Xe=ft.type,!1)});return!yt}return Xe=We,!0}),Xe&&Object(f.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Xe.displayName||Xe.name||Xe,"`.")),Object(f.a)(et===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var D=x,A=Object(r.a)({prefixCls:"rc-select",components:{optionList:e},convertChildrenToData:h,flattenOptions:u.d,getLabeledValue:u.e,filterOptions:u.b,isValueDisabled:u.g,findValueOption:u.c,warningProps:D,fillOptionsWithMissingValue:u.a}),B=function(P){Object(I.a)(Q,P);var G=Object(j.a)(Q);function Q(){var re;return Object(ie.a)(this,Q),re=G.apply(this,arguments),re.selectRef=C.createRef(),re.focus=function(){re.selectRef.current.focus()},re.blur=function(){re.selectRef.current.blur()},re}return Object(L.a)(Q,[{key:"render",value:function(){return C.createElement(A,Object.assign({ref:this.selectRef},this.props))}}]),Q}(C.Component);B.Option=i,B.OptGroup=_;var O=B,W=Re.c=O},MEgm:function(Ge,Re){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74t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P7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},NQs2:function(Ge,Re,F){Ge.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB"}},Nf5h:function(Ge,Re,F){"use strict";F.d(Re,"a",function(){return U}),F.d(Re,"h",function(){return n}),F.d(Re,"l",function(){return t}),F.d(Re,"e",function(){return g}),F.d(Re,"i",function(){return l}),F.d(Re,"j",function(){return fe}),F.d(Re,"c",function(){return $e}),F.d(Re,"b",function(){return ft}),F.d(Re,"g",function(){return _t}),F.d(Re,"f",function(){return ke}),F.d(Re,"k",function(){return ae}),F.d(Re,"d",function(){return at});var ie=F("cDcd"),L=F.n(ie),I=F("NQs2"),j=F.n(I),C=F("ygoZ"),w=F.n(C),H=function(Se){var st=Se.dataSource,tt=st===void 0?[]:st,Ye=Se.img,mt=Se.imgWidth,bt=mt===void 0?346:mt,gt=Se.title,At=Se.sunTitle,ht=Se.bannerExtraContent;return L.a.createElement("div",{className:j.a.banner},L.a.createElement("div",{className:j.a.content},L.a.createElement("aside",null,L.a.createElement("p",null,L.a.createElement("b",null,gt),L.a.createElement("span",null,At)),tt.length>0&&L.a.createElement("div",{className:j.a.btns},tt.map(function(vt,Ot){return L.a.createElement("div",{key:Ot,onClick:vt.click},vt.name,vt.sign?L.a.createElement("img",{src:w.a,width:39}):null)})),ht),L.a.createElement("img",{style:{marginTop:33,marginRight:38},src:Ye,width:bt})))},U=H,R=F("tJVT"),S=F("6nfa"),y=F.n(S),v=F("TSYQ"),d=F.n(v),o=function(Se){var st=Se.dataSource,tt=st===void 0?[]:st,Ye=Se.value,mt=Se.onChange,bt=Se.className,gt=Se.title,At=Se.titleWidth,ht=At===void 0?41:At,vt=Se.style,Ot=vt===void 0?{}:vt,Pe=Se.fontColor,pt=Pe===void 0?"#6A7283":Pe,St=Object(ie.useState)(0),Ct=Object(R.a)(St,2),Mt=Ct[0],xt=Ct[1],mn=Object(ie.useState)(!1),$t=Object(R.a)(mn,2),hn=$t[0],zt=$t[1],Bt=Object(ie.useRef)(null);return Object(ie.useEffect)(function(){if(tt.length!==0){var tn;(Bt==null||((tn=Bt.current)===null||tn===void 0)?void 0:tn.clientHeight)>92?xt(1):xt(0)}tt.length===0&&xt(0)},[tt]),L.a.createElement("div",{className:d()(y.a.row,bt),style:Ot},L.a.createElement("div",{style:{width:ht,marginTop:hn?12:4},className:y.a.title},gt),L.a.createElement("div",{className:hn?"".concat(y.a.tagsWrap," ").concat(y.a.tagsBorderWrap):y.a.tagsWrap},L.a.createElement("div",{className:y.a.bar,style:Mt>0?{height:Mt===1?92:"auto",overflow:Mt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},L.a.createElement("div",{className:y.a.name,ref:Bt},tt==null?void 0:tt.map(function(tn){return L.a.createElement("span",{onClick:function(){return mt(tn.id)},key:tn.id,title:tn.name,style:{color:pt},className:Ye===tn.id?y.a.active:""},tn.name)}))),!!Mt&&L.a.createElement(ie.Fragment,null,Mt===1?L.a.createElement("div",{onClick:function(){var gn;xt(2),(Bt==null||((gn=Bt.current)===null||gn===void 0)?void 0:gn.clientHeight)>205?zt(!0):zt(!1)},className:y.a.action},"\u5C55\u5F00",L.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):L.a.createElement("div",{onClick:function(){xt(1),zt(!1)},className:y.a.action},"\u6536\u8D77",L.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},n=o,a=F("cz0n"),s=F.n(a),e=function(Se){var st=Se.dataSource,tt=st===void 0?[]:st,Ye=Se.value,mt=Se.onChange,bt=Se.className;return L.a.createElement("div",{className:d()(s.a.tabs,bt)},tt.map(function(gt){return L.a.createElement("span",{onClick:function(){return mt(gt.id)},className:Ye===gt.id?s.a.active:"",key:gt.id},gt.name)}))},t=e,i=F("5NDa"),T=F("5rEg"),_=F("KOXS"),m=F.n(_),E=function(Se){var st,tt=Se.dataSource,Ye=tt===void 0?[]:tt,mt=Se.value,bt=Se.onChange,gt=Se.className,At=Se.style,ht=At===void 0?{}:At,vt=Se.placeholder,Ot=Object(ie.useState)(""),Pe=Object(R.a)(Ot,2),pt=Pe[0],St=Pe[1],Ct=Object(ie.useState)(""),Mt=Object(R.a)(Ct,2),xt=Mt[0],mn=Mt[1];Object(ie.useEffect)(function(){var zt;(zt=JSON.stringify(mt))!==null&&zt!==void 0&&zt.includes("{")?(St(mt.id),mn(mt.value)):mn(mt)},[mt]);var $t=function(){bt(xt,pt||null)},hn=function(Bt){if(Bt===pt)return;St(Bt),bt(xt,Bt)};return L.a.createElement("div",{className:d()(m.a.input,gt),style:ht},!!Ye.length&&L.a.createElement("div",{className:m.a.dropdown},L.a.createElement("div",{className:m.a.text},(st=Ye.find(function(zt){return zt.id===pt}))===null||st===void 0?void 0:st.name,L.a.createElement("i",{className:"iconfont icon-zhankai4"}),L.a.createElement("b",{className:m.a.b1}),L.a.createElement("b",{className:m.a.b2})),L.a.createElement("div",{className:m.a.menu},Ye.map(function(zt,Bt){return L.a.createElement("div",{key:Bt,onClick:function(){return hn(zt.id)}},zt.name)}))),L.a.createElement(T.a,{onPressEnter:$t,value:xt,onChange:function(Bt){return mn(Bt.target.value)},bordered:!1,placeholder:vt}),L.a.createElement("i",{onClick:$t,className:"iconfont icon-sousuo9 font14 pl10 current"}))},g=E,h=F("f9pc"),u=F.n(h),r=function(Se){var st=Se.value,tt=Se.onChange,Ye=Se.className,mt=Se.total,bt=Se.pageSize,gt=Se.style,At=gt===void 0?{}:gt,ht=st<2,vt=st>=Math.ceil(mt/bt);return mt<=bt?L.a.createElement(L.a.Fragment,null):L.a.createElement("div",{className:d()(u.a.quickPager,Ye),style:At},L.a.createElement("div",{onClick:function(){ht||tt(st-1,"prev")},className:ht?u.a.disabled:""},"\u4E0A\u4E00\u9875"),L.a.createElement("div",{onClick:function(){vt||tt(st+1,"next")},className:vt?u.a.disabled:""},"\u4E0B\u4E00\u9875"))},l=r,f=F("T2oS"),c=F("W9HT"),x=F("pC0b"),D=F("GzdX"),A=F("5Dmo"),B=F("3S7+"),O=F("Oe0F"),W=F.n(O),P=F("m3rI"),G=F("1vsH"),Q=F("JAbv"),re=F.n(Q),le=F("Bq7L"),Ee=F.n(le),_e=F("MEgm"),ne=F.n(_e),Te=F("BdwD"),Ae=function(Se){var st=Se.className,tt=Se.dataSource,Ye=tt===void 0?[]:tt,mt=Se.col,bt=mt===void 0?4:mt,gt=Se.right,At=Se.bottom,ht=At===void 0?23:At,vt=Se.precision,Ot=vt===void 0?0:vt,Pe=Se.wrapWidth,pt=Pe===void 0?1200:Pe,St=Se.trackEventItems,Ct=Se.loading,Mt=Math.floor((pt-(bt-1)*gt)/bt);return L.a.createElement(c.a,{spinning:Ct},L.a.createElement("div",{className:d()(W.a.list,st)},!!Ye.length&&Ye.map(function(xt,mn){var $t=xt.name,hn=xt.id,zt=xt.identifier,Bt=xt.power,tn=xt.cover_image_id,gn=xt.pic;return L.a.createElement("div",{className:W.a.wrap,key:hn,style:{width:Mt,marginRight:(1+mn)%bt===0?0:gt+Ot,marginBottom:ht}},L.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(zt,"/challenges"),className:W.a.li,onClick:function(Pn){Pn.preventDefault(),St&&Object(G.eb)([St]),Bt&&Object(G.U)("/shixuns/".concat(zt,"/challenges"))}},L.a.createElement("div",{className:W.a.img},L.a.createElement("img",{className:W.a.cover,src:tn?"".concat(P.a.API_SERVER,"/api/attachments/").concat(tn):"".concat(P.a.IMG_SERVER,"/").concat(gn)}),xt.is_jupyter&&L.a.createElement("img",{className:W.a.sign,src:re.a}),xt.is_jupyter_lab&&L.a.createElement("img",{className:W.a.sign,src:Ee.a}),xt.is_unity_3d&&L.a.createElement("img",{className:W.a.sign,src:ne.a})),L.a.createElement("div",{className:W.a.name},L.a.createElement(B.a,{title:$t||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},L.a.createElement("span",{className:W.a.e},$t||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),L.a.createElement("div",{className:W.a.tags},L.a.createElement(B.a,{placement:"bottom",title:"\u5173\u5361\u6570"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),L.a.createElement("span",null,xt.challenges_count))),!!xt.myshixuns_count&&L.a.createElement(B.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),L.a.createElement("span",null,xt.myshixuns_count))),L.a.createElement(B.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},L.a.createElement("span",null,L.a.createElement("span",null,xt.level))),L.a.createElement("div",{className:W.a.rate},L.a.createElement(D.a,{allowHalf:!0,disabled:!0,defaultValue:xt.score_info}),L.a.createElement("span",null,"\xA0",xt.score_info?"".concat(xt.score_info,"\u5206"):"5\u5206")))),!Bt&&L.a.createElement("div",{className:W.a.lockWrap},L.a.createElement("img",{src:"".concat(P.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),L.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ye.length&&L.a.createElement(Te.a,null)))},fe=Ae,J=F("ZJlW"),Ie=F.n(J),it=F("z4EP"),et=F.n(it),Qe=F("+GGh"),nt=F.n(Qe),Me=F("cFMs"),ze=F.n(Me),Je=function(Se){var st=Se.className,tt=Se.dataSource,Ye=tt===void 0?[]:tt,mt=Se.col,bt=mt===void 0?4:mt,gt=Se.right,At=Se.bottom,ht=At===void 0?23:At,vt=Se.precision,Ot=vt===void 0?0:vt,Pe=Se.wrapWidth,pt=Pe===void 0?1200:Pe,St=Se.trackEventItems,Ct=Se.loading,Mt=Math.floor((pt-(bt-1)*gt)/bt);return L.a.createElement(c.a,{spinning:Ct},L.a.createElement("div",{className:d()(Ie.a.list,st)},!!Ye.length&&Ye.map(function(xt,mn){var $t=xt.name,hn=xt.id,zt=xt.identifier,Bt=xt.featured,tn=xt.school_name,gn=xt.image_url,_n=xt.excellent;return L.a.createElement("div",{key:hn,className:Ie.a.wrap,style:{width:Mt,marginRight:(1+mn)%bt===0?0:gt+Ot,marginBottom:ht}},L.a.createElement("a",{target:"_blank",href:"/paths/".concat(zt),className:Ie.a.li,onClick:function(Wn){Wn.preventDefault(),St&&Object(G.eb)([St]),Object(G.U)("/paths/".concat(zt))}},L.a.createElement("div",{className:Ie.a.img},L.a.createElement("img",{className:Ie.a.cover,src:"".concat(P.a.IMG_SERVER,"/").concat(gn)}),Bt===1&&L.a.createElement("img",{className:Ie.a.sign,src:et.a}),Bt===2&&L.a.createElement("img",{className:Ie.a.sign,src:""}),Bt===3&&L.a.createElement("img",{className:Ie.a.sign,src:nt.a}),Bt===4&&L.a.createElement("img",{className:Ie.a.sign,src:""}),Bt===5&&L.a.createElement("img",{className:Ie.a.sign,src:ze.a})),L.a.createElement("div",{className:Ie.a.name},L.a.createElement(B.a,{title:$t},L.a.createElement("span",{className:Ie.a.e},$t))),L.a.createElement(B.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(tn)},L.a.createElement("div",{className:Ie.a.unit},L.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),tn)),L.a.createElement("div",{className:Ie.a.tags},L.a.createElement(B.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),L.a.createElement("span",null,xt.stages_count))),L.a.createElement(B.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),L.a.createElement("span",null,xt.members_count))),_n&&L.a.createElement("div",{className:Ie.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!Ye.length&&L.a.createElement(Te.a,null)))},$e=Je,Xe=F("iL++"),Fe=F.n(Xe),We=F("xiVL"),yt=function(Se){var st=Se.className,tt=Se.dataSource,Ye=tt===void 0?[]:tt,mt=Se.col,bt=mt===void 0?4:mt,gt=Se.right,At=Se.bottom,ht=At===void 0?23:At,vt=Se.precision,Ot=vt===void 0?0:vt,Pe=Se.wrapWidth,pt=Pe===void 0?1200:Pe,St=Se.trackEventItems,Ct=Se.loading,Mt=Math.floor((pt-(bt-1)*gt)/bt);return L.a.createElement(c.a,{spinning:Ct},L.a.createElement("div",{className:d()(Fe.a.list,st)},!!Ye.length&&Ye.map(function(xt,mn){var $t=xt.subject_identifier,hn=xt.id,zt=xt.identifier,Bt=xt.power,tn=xt.is_public!=0&&xt.is_public;return L.a.createElement("div",{className:Fe.a.wrap,key:hn,style:{width:Mt,marginRight:(1+mn)%bt===0?0:gt+Ot,marginBottom:ht}},L.a.createElement("a",{className:Fe.a.li,onClick:function(_n){_n.preventDefault()}},L.a.createElement("div",{className:Fe.a.top},L.a.createElement(B.a,{title:xt.name},L.a.createElement("div",{className:Fe.a.name},xt.name)),L.a.createElement("img",{className:Fe.a.img,src:P.a.IMG_SERVER+"/images/"+xt.avatar_url}),L.a.createElement("div",{className:Fe.a.text},xt.creator),$t&&L.a.createElement("div",{className:Fe.a.btns},L.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),L.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),tn&&L.a.createElement("div",{className:Fe.a.sign},"\u516C\u5F00")),L.a.createElement("div",{className:Fe.a.bottom},xt.visits>0&&L.a.createElement(B.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-liulanyan"}),L.a.createElement("span",null,xt.visits))),xt.course_members_count>0&&L.a.createElement(B.a,{title:"\u6210\u5458",placement:"bottom"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-chengyuan"}),xt.course_members_count)),xt.tasks_count>0&&L.a.createElement(B.a,{title:"\u4F5C\u4E1A",placement:"bottom"},L.a.createElement("span",null,L.a.createElement("i",{className:"iconfont icon-zuoye"}),xt.tasks_count)),xt.is_end?L.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):L.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),L.a.createElement("div",{className:Fe.a.lockWrap},xt.is_accessible?L.a.createElement(L.a.Fragment,null,$t&&L.a.createElement("div",{onClick:function(){return Object(G.U)("/paths/".concat($t))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),L.a.createElement("div",{onClick:function(_n){St&&Object(G.eb)([St]),Object(G.U)(xt.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):L.a.createElement(L.a.Fragment,null,L.a.createElement("img",{src:"".concat(P.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),L.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!Ye.length&&L.a.createElement(Te.a,null)))},ft=yt,ut=F("f0W+"),rt=F.n(ut),Tt=function(Se){var st=Se.dataSource,tt=st===void 0?[]:st,Ye=Se.value,mt=Se.onChange,bt=Se.className,gt=Se.style,At=gt===void 0?{}:gt,ht=Se.tabBarExtraContent;return L.a.createElement("div",{className:d()(rt.a.tabs,bt),style:At},L.a.createElement("div",{className:rt.a.tabsWrap},tt.map(function(vt,Ot){return L.a.createElement("div",{onClick:function(){return mt(vt.id)},className:Ye===vt.id?rt.a.active:"",key:Ot},vt.name)})),L.a.createElement("div",{className:rt.a.tabBar},ht))},_t=Tt,me=F("9JIy"),xe=F.n(me),De=function(Se){var st=Se.className,tt=Se.style,Ye=tt===void 0?{}:tt,mt=Se.children;return L.a.createElement("div",{className:d()(xe.a.table,st),style:Ye},mt)},ke=De,be=F("qVdP"),Le=F("jsC+"),ce=F("lUTK"),ee=F("BvKs"),te=F("8WcF"),V=F.n(te),X=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],q=function(Se){var st,tt=Se.sortValue,Ye=Se.dropValue,mt=Se.className,bt=Se.onSort,gt=Se.onDrop,At=Se.dataSource,ht=At===void 0?X:At;return L.a.createElement("div",{className:d()(V.a.orderWrap,mt)},L.a.createElement(Le.a,{overlay:L.a.createElement(ee.a,null,ht.map(function(vt,Ot){return L.a.createElement(ee.a.Item,{key:Ot,onClick:function(){return gt(vt.id)}},vt.name)}))},L.a.createElement("span",{className:V.a.orderTextWrap},(st=ht.find(function(vt){return Ye===vt.id}))===null||st===void 0?void 0:st.name)),L.a.createElement("span",{className:V.a.orderIconWrap},L.a.createElement("span",{className:V.a.orderAsc},L.a.createElement("i",{className:tt==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(V.a.cursorPointer," ").concat(V.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(V.a.cursorPointer),onClick:function(){return bt(tt==="asc"?"desc":"asc")}})),L.a.createElement("span",{className:V.a.orderDesc},L.a.createElement("i",{className:tt==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(V.a.cursorPointer," ").concat(V.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(V.a.cursorPointer),onClick:function(){return bt(tt==="asc"?"desc":"asc")}}))))},ae=q,ge=F("siWv"),we=F.n(ge),je=function(Se){var st=Se.className,tt=Se.style,Ye=Se.children,mt=Se.onClick;return L.a.createElement("div",{onClick:mt,className:d()(we.a.btn,st),style:tt},Ye)},at=je},NvD2:function(Ge,Re,F){"use strict";F.d(Re,"a",function(){return w});var ie=F("Kwbf");function L(H,U){var R=new Set;return H.forEach(function(S){U.has(S)||R.add(S)}),R}function I(H){var U=H||{},R=U.disabled,S=U.disableCheckbox,y=U.checkable;return!!(R||S)||y===!1}function j(H,U,R,S){for(var y=new Set(H),v=new Set,d=0;d<=R;d+=1){var o=U.get(d)||new Set;o.forEach(function(e){var t=e.key,i=e.node,T=e.children,_=T===void 0?[]:T;y.has(t)&&!S(i)&&_.filter(function(m){return!S(m.node)}).forEach(function(m){y.add(m.key)})})}for(var n=new Set,a=R;a>=0;a-=1){var s=U.get(a)||new Set;s.forEach(function(e){var t=e.parent,i=e.node;if(S(i)||!e.parent||n.has(e.parent.key))return;if(S(e.parent.node)){n.add(t.key);return}var T=!0,_=!1;(t.children||[]).filter(function(m){return!S(m.node)}).forEach(function(m){var E=m.key,g=y.has(E);T&&!g&&(T=!1),!_&&(g||v.has(E))&&(_=!0)}),T&&y.add(t.key),_&&v.add(t.key),n.add(t.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(L(v,y))}}function C(H,U,R,S,y){for(var v=new Set(H),d=new Set(U),o=0;o<=S;o+=1){var n=R.get(o)||new Set;n.forEach(function(t){var i=t.key,T=t.node,_=t.children,m=_===void 0?[]:_;!v.has(i)&&!d.has(i)&&!y(T)&&m.filter(function(E){return!y(E.node)}).forEach(function(E){v.delete(E.key)})})}d=new Set;for(var a=new Set,s=S;s>=0;s-=1){var e=R.get(s)||new Set;e.forEach(function(t){var i=t.parent,T=t.node;if(y(T)||!t.parent||a.has(t.parent.key))return;if(y(t.parent.node)){a.add(i.key);return}var _=!0,m=!1;(i.children||[]).filter(function(E){return!y(E.node)}).forEach(function(E){var g=E.key,h=v.has(g);_&&!h&&(_=!1),!m&&(h||d.has(g))&&(m=!0)}),_||v.delete(i.key),m&&d.add(i.key),a.add(i.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(L(d,v))}}function w(H,U,R,S){var y=[],v;S?v=S:v=I;var d=new Set(H.filter(function(s){var e=!!R[s];return e||y.push(s),e})),o=new Map,n=0;Object.keys(R).forEach(function(s){var e=R[s],t=e.level,i=o.get(t);i||(i=new Set,o.set(t,i)),i.add(e),n=Math.max(n,t)}),Object(ie.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var a;return U===!0?a=j(d,o,n,v):a=C(d,U.halfCheckedKeys,o,n,v),a}},OZM5:function(Ge,Re,F){"use strict";F.d(Re,"b",function(){return S}),F.d(Re,"a",function(){return y}),F.d(Re,"k",function(){return v}),F.d(Re,"h",function(){return d}),F.d(Re,"i",function(){return o}),F.d(Re,"g",function(){return n}),F.d(Re,"c",function(){return a}),F.d(Re,"d",function(){return s}),F.d(Re,"j",function(){return i}),F.d(Re,"e",function(){return T}),F.d(Re,"f",function(){return _});var ie=F("KQm4"),L=F("U8pU"),I=F("Ff2n"),j=F("cDcd"),C=F.n(j),w=F("Kwbf"),H=F("WaYH"),U=.25,R=2;function S(m,E){var g=m.slice(),h=g.indexOf(E);return h>=0&&g.splice(h,1),g}function y(m,E){var g=m.slice();return g.indexOf(E)===-1&&g.push(E),g}function v(m){return m.split("-")}function d(m,E){return"".concat(m,"-").concat(E)}function o(m){return m&&m.type&&m.type.isTreeNode}function n(m,E){var g=[m],h=E[m];function u(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];r.forEach(function(l){var f=l.key,c=l.children;g.push(f),u(c)})}return u(h.children),g}function a(m,E){var g=m.clientY,h=E.selectHandle.getBoundingClientRect(),u=h.top,r=h.bottom,l=h.height,f=Math.max(l*U,R);return g<=u+f?-1:g>=r-f?1:0}function s(m,E){if(!m)return;var g=E.multiple;return g?m.slice():m.length?[m[0]]:m}var e=function(E){return E};function t(m,E){if(!m)return[];var g=E||{},h=g.processProps,u=h===void 0?e:h,r=Array.isArray(m)?m:[m];return r.map(function(l){var f=l.children,c=Object(I.a)(l,["children"]),x=t(f,E);return C.a.createElement(H.a,Object.assign({},u(c)),x)})}function i(m){if(!m)return null;var E;if(Array.isArray(m))E={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(L.a)(m)==="object")E={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(w.a)(!1,"`checkedKeys` is not an array or an object"),null;return E}function T(m,E){var g=new Set;function h(u){if(g.has(u))return;var r=E[u];if(!r)return;g.add(u);var l=r.parent,f=r.node;if(f.disabled)return;l&&h(l.key)}return(m||[]).forEach(function(u){h(u)}),Object(ie.a)(g)}function _(m){var E={};return Object.keys(m).forEach(function(g){(g.startsWith("data-")||g.startsWith("aria-"))&&(E[g]=m[g])}),E}},Oe0F:function(Ge,Re,F){Ge.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},"SA+Z":function(Ge,Re,F){var ie=F("wTVA"),L=F("EbDI"),I=F("ZhPi"),j=F("wkBT");function C(w){return ie(w)||L(w)||I(w)||j()}Ge.exports=C,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},SJMd:function(Ge,Re){/**
* @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 F,ie,L,I=!1,j,C;window.PR_SHOULD_USE_CONTINUATION=!0;var w,H;(function(){var U=window,R=["break,continue,do,else,for,if,return,while"],S=[R,"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"],y=[S,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],v=[y,"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"],d=[y,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],o=[y,"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"],n="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",a=[y,"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",e=[R,"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"],t=[R,"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"],i=[R,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],T=[v,o,d,a,s,e,t,i],_=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,m="str",E="kwd",g="com",h="typ",u="lit",r="pun",l="pln",f="tag",c="dec",x="src",D="atn",A="atv",B="nocode",O="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(Me){for(var ze=0,Je=!1,$e=!1,Xe=0,Fe=Me.length;Xe122||(V<65||te>90||De.push([Math.max(65,te)|32,Math.min(V,90)|32]),V<97||te>122||De.push([Math.max(97,te)&~32,Math.min(V,122)&~32]))}}De.sort(function(ge,we){return ge[0]-we[0]||we[1]-ge[1]});for(var X=[],q=[],Le=0;Leae[0]&&(ae[1]+1>ae[0]&&be.push("-"),be.push(ut(ae[1])))}return be.push("]"),be.join("")}function Tt(me){for(var xe=me.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")),De=xe.length,ke=[],be=0,Le=0;be=2&&te==="["?xe[be]=rt(ce):te!=="\\"&&(xe[be]=ce.replace(/[a-zA-Z]/g,function(q){var ae=q.charCodeAt(0);return"["+String.fromCharCode(ae&~32,ae|32)+"]"}))}return xe.join("")}for(var _t=[],Xe=0,Fe=Me.length;Xe=0;)Je[_t.charAt(me)]=Tt;var xe=Tt[1],De=""+xe;ft.hasOwnProperty(De)||(yt.push(xe),ft[De]=null)}yt.push(/[\0-\uffff]/),$e=W(yt)})();var Xe=ze.length,Fe=function(We){for(var yt=We.sourceCode,ft=We.basePos,ut=We.sourceNode,rt=[ft,l],Tt=0,_t=yt.match($e)||[],me={},xe=0,De=_t.length;xe=5&&be.substring(0,5)==="lang-",ce&&!(Le&&typeof Le[1]=="string")&&(ce=!1,be=x),ce||(me[ke]=be)}var V=Tt;if(Tt+=ke.length,!ce)rt.push(ft+V,be);else{var X=Le[1],q=ke.indexOf(X),ae=q+X.length;Le[2]&&(ae=ke.length-Le[2].length,q=ae-X.length);var ge=be.substring(5);G(ut,ft+V,ke.substring(0,q),Fe,rt),G(ut,ft+V+q,X,J(ge,X),rt),G(ut,ft+V+ae,ke.substring(ae),Fe,rt)}}We.decorations=rt};return Fe}function Ee(Me){var ze=[],Je=[];Me.tripleQuotedStrings?ze.push([m,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Me.multiLineStrings?ze.push([m,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ze.push([m,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Me.verbatimStrings&&Je.push([m,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var $e=Me.hashComments;$e&&(Me.cStyleComments?($e>1?ze.push([g,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ze.push([g,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Je.push([m,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ze.push([g,/^#[^\r\n]*/,null,"#"])),Me.cStyleComments&&(Je.push([g,/^\/\/[^\r\n]*/,null]),Je.push([g,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Xe=Me.regexLiterals;if(Xe){var Fe=Xe>1?"":`
\r`,We=Fe?".":"[\\S\\s]",yt="/(?=[^/*"+Fe+"])(?:[^/\\x5B\\x5C"+Fe+"]|\\x5C"+We+"|\\x5B(?:[^\\x5C\\x5D"+Fe+"]|\\x5C"+We+")*(?:\\x5D|$))+/";Je.push(["lang-regex",RegExp("^"+O+"("+yt+")")])}var ft=Me.types;ft&&Je.push([h,ft]);var ut=(""+Me.keywords).replace(/^ | $/g,"");ut.length&&Je.push([E,new RegExp("^(?:"+ut.replace(/[\s,]+/g,"|")+")\\b"),null]),ze.push([l,/^\s+/,null,` \r
\xA0`]);var rt="^.[^\\s\\w.$@'\"`/\\\\]*";return Me.regexLiterals&&(rt+="(?!s*/)"),Je.push([u,/^@[a-z_$][a-z_$@0-9]*/i,null],[h,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[l,/^[a-z_$][a-z_$@0-9]*/i,null],[u,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[l,/^\\[\s\S]?/,null],[r,new RegExp(rt),null]),le(ze,Je)}var _e=Ee({keywords:T,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ne(Me,ze,Je){for(var $e=/(?:^|\s)nocode(?:\s|$)/,Xe=/\r\n?|\n/,Fe=Me.ownerDocument,We=Fe.createElement("li");Me.firstChild;)We.appendChild(Me.firstChild);var yt=[We];function ft(xe){var De=xe.nodeType;if(De==1&&!$e.test(xe.className))if(xe.nodeName==="br")ut(xe),xe.parentNode&&xe.parentNode.removeChild(xe);else for(var ke=xe.firstChild;ke;ke=ke.nextSibling)ft(ke);else if((De==3||De==4)&&Je){var be=xe.nodeValue,Le=be.match(Xe);if(Le){var ce=be.substring(0,Le.index);xe.nodeValue=ce;var ee=be.substring(Le.index+Le[0].length);if(ee){var te=xe.parentNode;te.insertBefore(Fe.createTextNode(ee),xe.nextSibling)}ut(xe),ce||xe.parentNode.removeChild(xe)}}}function ut(xe){for(;!xe.nextSibling;)if(xe=xe.parentNode,!xe)return;function De(Le,ce){var ee=ce?Le.cloneNode(!1):Le,te=Le.parentNode;if(te){var V=De(te,1),X=Le.nextSibling;V.appendChild(ee);for(var q=X;q;q=X)X=q.nextSibling,V.appendChild(q)}return ee}for(var ke=De(xe.nextSibling,0),be;(be=ke.parentNode)&&be.nodeType===1;)ke=be;yt.push(ke)}for(var rt=0;rt=te&&(ft+=2),Fe>=V&&(Tt+=2)}}finally{be&&(be.style.display=Le)}}var Ae={};function fe(Me,ze){for(var Je=ze.length;--Je>=0;){var $e=ze[Je];Ae.hasOwnProperty($e)?U.console&&console.warn("cannot override language handler %s",$e):Ae[$e]=Me}}function J(Me,ze){return Me&&Ae.hasOwnProperty(Me)||(Me=/^\s*]*(?:>|$)/],[g,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[r,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^