(window.webpackJsonp=window.webpackJsonp||[]).push([[219,3,5,6,7,8,9,10,13,16,226],{"+NIl":function(M,J,a){(function(R){R(a("VrN/"))})(function(R){"use strict";R.defineMode("stex",function(g,A){"use strict";function f(s,_){s.cmdState.push(_)}function h(s){return s.cmdState.length>0?s.cmdState[s.cmdState.length-1]:null}function E(s){var _=s.cmdState.pop();_&&_.closeBracket()}function w(s){for(var _=s.cmdState,v=_.length-1;v>=0;v--){var C=_[v];if(C.name=="DEFAULT")continue;return C}return{styleIdentifier:function(){return null}}}function r(s,_,v){return function(){this.name=s,this.bracketNo=0,this.style=_,this.styles=v,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var m={};m.importmodule=r("importmodule","tag",["string","builtin"]),m.documentclass=r("documentclass","tag",["","atom"]),m.usepackage=r("usepackage","tag",["atom"]),m.begin=r("begin","tag",["atom"]),m.end=r("end","tag",["atom"]),m.label=r("label","tag",["atom"]),m.ref=r("ref","tag",["atom"]),m.eqref=r("eqref","tag",["atom"]),m.cite=r("cite","tag",["atom"]),m.bibitem=r("bibitem","tag",["atom"]),m.Bibitem=r("Bibitem","tag",["atom"]),m.RBibitem=r("RBibitem","tag",["atom"]),m.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function o(s,_){s.f=_}function t(s,_){var v;if(s.match(/^\\[a-zA-Z@]+/)){var C=s.current().slice(1);return v=m.hasOwnProperty(C)?m[C]:m.DEFAULT,v=new v,f(_,v),o(_,d),v.style}if(s.match(/^\\[$&%#{}_]/))return"tag";if(s.match(/^\\[,;!\/\\]/))return"tag";if(s.match("\\["))return o(_,function(u,b){return p(u,b,"\\]")}),"keyword";if(s.match("\\("))return o(_,function(u,b){return p(u,b,"\\)")}),"keyword";if(s.match("$$"))return o(_,function(u,b){return p(u,b,"$$")}),"keyword";if(s.match("$"))return o(_,function(u,b){return p(u,b,"$")}),"keyword";var i=s.next();if(i=="%")return s.skipToEnd(),"comment";if(i=="}"||i=="]"){if(v=h(_),v)v.closeBracket(i),o(_,d);else return"error";return"bracket"}else return i=="{"||i=="["?(v=m.DEFAULT,v=new v,f(_,v),"bracket"):/\d/.test(i)?(s.eatWhile(/[\w.%]/),"atom"):(s.eatWhile(/[\w\-_]/),v=w(_),v.name=="begin"&&(v.argument=s.current()),v.styleIdentifier())}function p(s,_,v){if(s.eatSpace())return null;if(v&&s.match(v))return o(_,t),"keyword";if(s.match(/^\\[a-zA-Z@]+/))return"tag";if(s.match(/^[a-zA-Z]+/))return"variable-2";if(s.match(/^\\[$&%#{}_]/))return"tag";if(s.match(/^\\[,;!\/]/))return"tag";if(s.match(/^[\^_&]/))return"tag";if(s.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(s.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var C=s.next();return C=="{"||C=="}"||C=="["||C=="]"||C=="("||C==")"?"bracket":C=="%"?(s.skipToEnd(),"comment"):"error"}function d(s,_){var v=s.peek(),C;return v=="{"||v=="["?(C=h(_),C.openBracket(v),s.eat(v),o(_,t),"bracket"):/[ \t\r]/.test(v)?(s.eat(v),null):(o(_,t),E(_),t(s,_))}return{startState:function(){var s=A.inMathMode?function(_,v){return p(_,v)}:t;return{cmdState:[],f:s}},copyState:function(s){return{cmdState:s.cmdState.slice(),f:s.f}},token:function(s,_){return _.f(s,_)},blankLine:function(s){s.f=t,s.cmdState.length=0},lineComment:"%"}}),R.defineMIME("text/x-stex","stex"),R.defineMIME("text/x-latex","stex")})},"+QRC":function(M,J,a){"use strict";var R=a("E9nw"),g={"text/plain":"Text","text/html":"Url",default:"Text"},A="Copy to clipboard: #{key}, Enter";function f(E){var w=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return E.replace(/#{\s*key\s*}/g,w)}function h(E,w){var r,m,o,t,p,d,s=!1;w||(w={}),r=w.debug||!1;try{o=R(),t=document.createRange(),p=document.getSelection(),d=document.createElement("span"),d.textContent=E,d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(v){if(v.stopPropagation(),w.format)if(v.preventDefault(),typeof v.clipboardData=="undefined"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var C=g[w.format]||g.default;window.clipboardData.setData(C,E)}else v.clipboardData.clearData(),v.clipboardData.setData(w.format,E);w.onCopy&&(v.preventDefault(),w.onCopy(v.clipboardData))}),document.body.appendChild(d),t.selectNodeContents(d),p.addRange(t);var _=document.execCommand("copy");if(!_)throw new Error("copy command was unsuccessful");s=!0}catch(v){r&&console.error("unable to copy using execCommand: ",v),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(w.format||"text",E),w.onCopy&&w.onCopy(window.clipboardData),s=!0}catch(C){r&&console.error("unable to copy using clipboardData: ",C),r&&console.error("falling back to prompt"),m=f("message"in w?w.message:A),window.prompt(m,E)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(t):p.removeAllRanges()),d&&document.body.removeChild(d),o()}return s}M.exports=h},"+Xk9":function(M,J,a){M.exports={btn:"btn___2veY9",s1:"s1___ZVDC_",s2:"s2___2Da-A"}},"/GNS":function(M,J,a){M.exports=a.p+"static/search1.c4136dd4.png"},"11/R":function(module,__webpack_exports__,__webpack_require__){"use strict";var antd_es_switch_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("BoS7"),antd_es_switch__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("Sdc0"),antd_es_popover_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("Q9mQ"),antd_es_popover__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("diRs"),antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("5Dmo"),antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("3S7+"),antd_es_input_number_style__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("giR+"),antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("fyUT"),antd_es_input_style__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("5NDa"),antd_es_input__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("5rEg"),antd_es_space_style__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("DYRE"),antd_es_space__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("zeV3"),antd_es_date_picker_style__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("iQDF"),antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("+eQT"),antd_es_badge_style__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("Awhp"),antd_es_badge__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("KrTs"),antd_es_auto_complete_style__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("O3gP"),antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("lrIw"),antd_es_radio_style__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("7Kak"),antd_es_radio__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("9yH6"),antd_es_checkbox_style__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("sRBo"),antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("kaz8"),antd_es_button_style__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("+L6B"),antd_es_button__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("2/Rp"),antd_es_menu_style__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("lUTK"),antd_es_menu__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("BvKs"),antd_es_modal_style__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("2qtc"),antd_es_modal__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("kLXV"),_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("jrin"),_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("k1fw"),_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("oBTY"),antd_es_message_style__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("miYZ"),antd_es_message__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("tsqr"),_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("9og8"),_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("tJVT"),antd_es_select_style__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("OaEy"),antd_es_select__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("2fM7"),_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("WmNS"),_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__),react__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("q1tI"),react__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_38__),umi__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("Ty5D"),umi__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("9kvl"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("1nVM"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_41__),moment__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("wd/R"),moment__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_42__),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("Z0Lh"),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("w5pM"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("wlus"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("y3Kf"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("8Skl"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("RCxd"),_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("ZW9T"),_utils_authority__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("xKgJ"),_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("FrRK"),_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("QNag"),_utils_fetch__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("ErOA"),_components_Permission__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("sLOW"),_utils_env__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("m3rI"),_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("NLgs"),timeFormat="YYYY-MM-DD HH:mm",Option=antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,handleDateString=function(J){if(!J)return J;var a=J.split(":");if(a[1]=="00"||a[1]=="30")return J;var R=parseInt(a[1]);if(R<30||R==60)return[a[0],"30"].join(":");if(R<60){var g=[a[0],"00"].join(":"),A="YYYY-MM-DD HH:mm",f=moment__WEBPACK_IMPORTED_MODULE_42___default()(g,A);return f.add(1,"hours"),f.format(A)}return J},radioStyle={display:"block",height:"30px",lineHeight:"30px"};function Setting(_ref){var _user$userInfo,_user$userInfo$shixun,_shixunsDetail$detail,_shixunsDetail$detail2,_shixunsDetail$detail3,_shixunsDetail$detail4,_shixunsDetail$detail5,_shixunsDetail$settin97,_shixunsDetail$settin98,_shixunsDetail$detail6,_shixunsDetail$detail7,_shixunsDetail$settin150,_shixunsDetail$settin151,_shixunsDetail$settin152,_shixunsDetail$settin153,_shixunsDetail$detail8,user=_ref.user,dispatch=_ref.dispatch,shixunsDetail=_ref.shixunsDetail,practiceSetting=_ref.practiceSetting,shixunId=Object(react__WEBPACK_IMPORTED_MODULE_38__.useRef)(),_useState=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!0),_useState2=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState,2),isShowSetting=_useState2[0],setIsShowSetting=_useState2[1],_useState3=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState4=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState3,2),taskPass=_useState4[0],setTaskPass=_useState4[1],_useState5=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState6=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState5,2),testSetPermission=_useState6[0],setTestSetPermission=_useState6[1],_useState7=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState8=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState7,2),isCopy=_useState8[0],setIsCopy=_useState8[1],_useState9=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState10=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState9,2),openValue=_useState10[0],setOpenValue=_useState10[1],_useState11=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState12=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState11,2),selectDepartmentList=_useState12[0],setSelectDepartmentList=_useState12[1],_useState13=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState14=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState13,2),departmentList=_useState14[0],setDepartmentList=_useState14[1],_useState15=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState16=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState15,2),departmentValue=_useState16[0],setDepartmentValue=_useState16[1],_useState17=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState18=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState17,2),isOpenTime=_useState18[0],setIsOpenTime=_useState18[1],_useState19=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState20=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState19,2),openTime=_useState20[0],setOpenTime=_useState20[1],_useState21=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState22=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState21,2),vnc=_useState22[0],setVNC=_useState22[1],_useState23=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState24=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState23,2),windows_vnc=_useState24[0],setWindowVNC=_useState24[1],_useState25=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState26=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState25,2),virtual_machine=_useState26[0],setVirtualMachine=_useState26[1],_useState27=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState28=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState27,2),linux_vnc=_useState28[0],setLinuxVNC=_useState28[1],_useState29=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState30=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState29,2),windows_start_template=_useState30[0],setWindowVNCTemplate=_useState30[1],_useState31=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState32=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState31,2),websshShow=_useState32[0],setWebsshShow=_useState32[1],_useState33=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState34=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState33,2),sshRadioValue=_useState34[0],setSshRadioValue=_useState34[1],_useState35=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState36=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState35,2),multiWebssh=_useState36[0],setMultiWebssh=_useState36[1],_useState37=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState38=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState37,2),hideCode=_useState38[0],setHideCode=_useState38[1],_useState39=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState40=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState39,2),codeEditPermission=_useState40[0],setCodeEditPermission=_useState40[1],_useState41=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState42=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState41,2),codeHidden=_useState42[0],setCodeHidden=_useState42[1],_useState43=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState44=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState43,2),forbidCopy=_useState44[0],setForbidCopy=_useState44[1],_useState45=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState46=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState45,2),display_git_address=_useState46[0],set_display_git_address=_useState46[1],_useState47=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState48=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState47,2),advancedsettingshow=_useState48[0],setAdvancedSettingShow=_useState48[1],_useState49=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("vnc"),_useState50=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState49,2),windows_connection_mode=_useState50[0],setWindowsConnectionMode=_useState50[1],_useState51=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState52=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState51,2),evaluateScript=_useState52[0],setEvaluateScript=_useState52[1],_useState53=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState54=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState53,2),serviceConfigList=_useState54[0],setServiceConfigList=_useState54[1],_useState55=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState56=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState55,2),evaluationScript=_useState56[0],setevaluationScript=_useState56[1],_useState57=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState58=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState57,2),standardScriptList=_useState58[0],setStandardScripts=_useState58[1],_useState59=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("1"),_useState60=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState59,2),MenuSelectKey=_useState60[0],setMenuSelectKey=_useState60[1],_useState61=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState62=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState61,2),disableDiscuss=_useState62[0],setDisableDiscuss=_useState62[1],_useState63=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState64=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState63,2),Remote=_useState64[0],setRemote=_useState64[1],_useState65=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState66=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState65,2),createTitle=_useState66[0],setCreateTitle=_useState66[1],_useState67=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState68=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState67,2),isupdate=_useState68[0],setIsupdate=_useState68[1],_useState69=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(3),_useState70=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState69,2),terminal_count=_useState70[0],setterminal_count=_useState70[1],_useState71=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState72=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState71,2),port=_useState72[0],setport=_useState72[1],_useState73=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState74=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState73,2),webssh_cloud=_useState74[0],setWebsshCloud=_useState74[1],_useState75=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(0),_useState76=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState75,2),survival_time=_useState76[0],setSurvivalTime=_useState76[1],_useState77=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([{template_name:"",template_identity:""}]),_useState78=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState77,2),shixun_virtual_templates=_useState78[0],setshixun_virtual_templates=_useState78[1],params=Object(umi__WEBPACK_IMPORTED_MODULE_39__.i)(),diffObj={forbid_copy:"forbidCopy",hide_code:"hideCode",multi_webssh:"multiWebssh",task_pass:"taskPass",test_set_permission:"testSetPermission",code_edit_permission:"codeEditPermission",can_copy:"isCopy",use_scope:"openValue",windows_vnc:"windows_vnc",windows_start_template:"windows_start_template",webssh_cloud:"webssh_cloud",opening_time:"openTime",webssh:"sshRadioValue",display_git_address:"display_git_address",show_code_dir:"codeHidden",choice_standard_scripts:"evaluationScript",evaluate_script:"evaluateScript"},_useState79=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState80=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState79,2),isRadiuvalue=_useState80[0],setIsRadiuValue=_useState80[1],editable=(_user$userInfo=user.userInfo)===null||_user$userInfo===void 0||((_user$userInfo$shixun=_user$userInfo.shixun)===null||_user$userInfo$shixun===void 0)?void 0:_user$userInfo$shixun.editable,handleGetDepartments=function(){var M=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function J(a){var R;return _root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,dispatch({type:"shixunsDetail/getDepartments",payload:{q:a}});case 2:R=A.sent,R&&setDepartmentList(R.shools_name||[]);case 4:case"end":return A.stop()}},J)}));return function(a){return M.apply(this,arguments)}}();Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var M,J;(M=shixunsDetail.setting)!==null&&M!==void 0&&(J=M.shixun)!==null&&J!==void 0&&J.main_type&&handleInitState()},[shixunsDetail.setting]),Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var M,J;dispatch({type:"shixunsDetail/getSettingsData",payload:params}),shixunId.current=(M=location.pathname)===null||M===void 0||((J=M.split("/"))===null||J===void 0)?void 0:J[2]},[]);var handleSelectDepartment=function(J){if(selectDepartmentList.includes(J)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}setDepartmentValue(null),setSelectDepartmentList([].concat(Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(selectDepartmentList),[J]))};function getRequiredStatus(){return _getRequiredStatus.apply(this,arguments)}function _getRequiredStatus(){return _getRequiredStatus=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function M(){var J;return _root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_53__.a)("/api/shixuns/".concat(shixunId.current,"/required_status"),{method:"get",params:{}});case 2:J=R.sent,J&&setCreateTitle(J==null?void 0:J.data);case 4:case"end":return R.stop()}},M)})),_getRequiredStatus.apply(this,arguments)}var handleChangeSeviceConfig=function(J,a,R){var g=serviceConfigList.map(function(A,f){return f===R?Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)(Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)({},A),{},Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__.a)({},a,J)):A});setServiceConfigList(g)},handleInitState=function(){var J,a,R,g,A,f,h,E,w,r,m,o,t,p,d,s,_,v,C,i,u,b,O,y,c,P,D,S,x,l,T,k,N,U,z,H,K,V,W,B,X,ue,ve,he,Pe,Re,ce,Ee,ye,se,oe,$,pe,ne,re,Se,ie,q,Y,te,Oe,Ce,Me,$e,nt,ut,ht,pt=(shixunsDetail==null||((J=shixunsDetail.setting)===null||J===void 0)?void 0:J.shixun)||{},xt=pt.choice_main_type,Ke=pt.main_type,Ue=pt.small_type,st=pt.choice_small_type,kt=pt.is_secret_repository,gt=pt.standard_scripts,bt=pt.evaluate_script,Ve=pt.shixun_service_configs;if(setEvaluateScript(bt),setServiceConfigList(Ve),setStandardScripts(gt||[]),setWindowVNCTemplate((a=shixunsDetail.setting)===null||a===void 0||((R=a.shixun)===null||R===void 0)?void 0:R.windows_start_template),setWebsshCloud((g=shixunsDetail.setting)===null||g===void 0||((A=g.shixun)===null||A===void 0)?void 0:A.webssh_cloud),setWindowVNC((f=shixunsDetail.setting)===null||f===void 0||((h=f.shixun)===null||h===void 0)?void 0:h.windows_vnc),setVirtualMachine((E=shixunsDetail.setting)===null||E===void 0||((w=E.shixun)===null||w===void 0)?void 0:w.virtual_machine),setLinuxVNC((r=shixunsDetail.setting)===null||r===void 0||((m=r.shixun)===null||m===void 0)?void 0:m.linux_vnc),setWindowsConnectionMode(((o=shixunsDetail.setting)===null||o===void 0||((t=o.shixun)===null||t===void 0)?void 0:t.windows_connection_mode)||"vnc"),setVNC((p=shixunsDetail.setting)===null||p===void 0||((d=p.shixun)===null||d===void 0)?void 0:d.vnc),setWebsshShow(!!((s=shixunsDetail.setting)!==null&&s!==void 0&&(_=s.shixun)!==null&&_!==void 0&&_.webssh)),setSshRadioValue((v=shixunsDetail.setting)===null||v===void 0||((C=v.shixun)===null||C===void 0)?void 0:C.webssh),setMultiWebssh((i=shixunsDetail.setting)===null||i===void 0||((u=i.shixun)===null||u===void 0)?void 0:u.multi_webssh),setHideCode((b=shixunsDetail.setting)===null||b===void 0||((O=b.shixun)===null||O===void 0)?void 0:O.hide_code),setCodeEditPermission((y=shixunsDetail.setting)===null||y===void 0||((c=y.shixun)===null||c===void 0)?void 0:c.code_edit_permission),setCodeHidden((P=shixunsDetail.setting)===null||P===void 0||((D=P.shixun)===null||D===void 0)?void 0:D.show_code_dir),setForbidCopy((S=shixunsDetail.setting)===null||S===void 0||((x=S.shixun)===null||x===void 0)?void 0:x.forbid_copy),setTaskPass((l=shixunsDetail.setting)===null||l===void 0||((T=l.shixun)===null||T===void 0)?void 0:T.task_pass),setTestSetPermission((k=shixunsDetail.setting)===null||k===void 0||((N=k.shixun)===null||N===void 0)?void 0:N.test_set_permission),set_display_git_address((U=shixunsDetail.setting.shixun)===null||U===void 0?void 0:U.display_git_address),setIsCopy((z=shixunsDetail.setting)===null||z===void 0||((H=z.shixun)===null||H===void 0)?void 0:H.can_copy),setOpenValue((K=shixunsDetail.setting)===null||K===void 0||((V=K.shixun)===null||V===void 0)?void 0:V.use_scope),setIsOpenTime(!!((W=shixunsDetail.setting)!==null&&W!==void 0&&(B=W.shixun)!==null&&B!==void 0&&B.opening_time)),setOpenTime((X=shixunsDetail.setting)===null||X===void 0||((ue=X.shixun)===null||ue===void 0)?void 0:ue.opening_time),setSelectDepartmentList((ve=shixunsDetail.setting)===null||ve===void 0||((he=ve.shixun)===null||he===void 0)?void 0:he.scope_partment),setevaluationScript((Pe=shixunsDetail.setting)===null||Pe===void 0||((Re=Pe.shixun)===null||Re===void 0)?void 0:Re.choice_standard_scripts),setDisableDiscuss((ce=shixunsDetail.setting)===null||ce===void 0||((Ee=ce.shixun)===null||Ee===void 0)?void 0:Ee.is_disable_discuss),setterminal_count((ye=shixunsDetail.setting)===null||ye===void 0||((se=ye.shixun)===null||se===void 0)?void 0:se.terminal_count),setSurvivalTime((oe=shixunsDetail.setting)===null||oe===void 0||(($=oe.shixun)===null||$===void 0)?void 0:$.survival_time),(shixunsDetail==null||((pe=shixunsDetail.setting)===null||pe===void 0||((ne=pe.shixun)===null||ne===void 0||((re=ne.shixun_virtual_templates)===null||re===void 0)))?void 0:re.length)>0){var We,Je;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((We=shixunsDetail.setting)===null||We===void 0||((Je=We.shixun)===null||Je===void 0))?void 0:Je.shixun_virtual_templates))}setport((Se=shixunsDetail.setting)===null||Se===void 0||((ie=Se.shixun)===null||ie===void 0)?void 0:ie.port_mapping),(q=shixunsDetail.setting)!==null&&q!==void 0&&(Y=q.shixun)!==null&&Y!==void 0&&Y.windows_vnc||(te=shixunsDetail.setting)!==null&&te!==void 0&&(Oe=te.shixun)!==null&&Oe!==void 0&&Oe.linux_vnc||(Ce=shixunsDetail.setting)!==null&&Ce!==void 0&&(Me=Ce.shixun)!==null&&Me!==void 0&&Me.vnc||($e=shixunsDetail.setting)!==null&&$e!==void 0&&(nt=$e.shixun)!==null&&nt!==void 0&&nt.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(ut=shixunsDetail.setting)!==null&&ut!==void 0&&(ht=ut.shixun)!==null&&ht!==void 0&&ht.webssh&&(setRemote(!0),setIsRadiuValue(3))};Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var _Object$keys$filter,_shixunsDetail$settin73,_shixunsDetail$settin74,_shixunsDetail$settin75,_shixunsDetail$settin76,_shixunsDetail$settin77,_shixunsDetail$settin78,_shixunsDetail$settin79,_shixunsDetail$settin82,_shixunsDetail$settin83,_shixunsDetail$settin84,confirmLeave=!1;(_Object$keys$filter=Object.keys(diffObj).filter(function(item){var _shixunsDetail$settin72;return((_shixunsDetail$settin72=shixunsDetail.setting)===null||_shixunsDetail$settin72===void 0?void 0:_shixunsDetail$settin72.shixun[item])!=eval(diffObj[item])}))!==null&&_Object$keys$filter!==void 0&&_Object$keys$filter.length&&(confirmLeave=!0),isOpenTime!=!!((_shixunsDetail$settin73=shixunsDetail.setting)!==null&&_shixunsDetail$settin73!==void 0&&(_shixunsDetail$settin74=_shixunsDetail$settin73.shixun)!==null&&_shixunsDetail$settin74!==void 0&&_shixunsDetail$settin74.opening_time)&&(confirmLeave=!0),disableDiscuss!=!!((_shixunsDetail$settin75=shixunsDetail.setting)!==null&&_shixunsDetail$settin75!==void 0&&(_shixunsDetail$settin76=_shixunsDetail$settin75.shixun)!==null&&_shixunsDetail$settin76!==void 0&&_shixunsDetail$settin76.is_disable_discuss)&&(confirmLeave=!0),selectDepartmentList.length!=((_shixunsDetail$settin77=shixunsDetail.setting)===null||_shixunsDetail$settin77===void 0||((_shixunsDetail$settin78=_shixunsDetail$settin77.shixun)===null||_shixunsDetail$settin78===void 0||((_shixunsDetail$settin79=_shixunsDetail$settin78.scope_partment)===null||_shixunsDetail$settin79===void 0))?void 0:_shixunsDetail$settin79.length)&&(confirmLeave=!0),selectDepartmentList==null||selectDepartmentList.map(function(M,J){var a,R;M!=((a=shixunsDetail.setting)===null||a===void 0||((R=a.shixun)===null||R===void 0)?void 0:R.scope_partment[J])&&(confirmLeave=!0)}),serviceConfigList.length!=((_shixunsDetail$settin82=shixunsDetail.setting)===null||_shixunsDetail$settin82===void 0||((_shixunsDetail$settin83=_shixunsDetail$settin82.shixun)===null||_shixunsDetail$settin83===void 0||((_shixunsDetail$settin84=_shixunsDetail$settin83.shixun_service_configs)===null||_shixunsDetail$settin84===void 0))?void 0:_shixunsDetail$settin84.length)&&(confirmLeave=!0),serviceConfigList==null||serviceConfigList.map(function(M,J){var a,R,g,A,f,h,E,w,r,m,o,t;(M==null?void 0:M.cpu_limit)!=((a=shixunsDetail.setting)===null||a===void 0||((R=a.shixun)===null||R===void 0||((g=R.shixun_service_configs[J])===null||g===void 0))?void 0:g.cpu_limit)&&(confirmLeave=!0),(M==null?void 0:M.lower_cpu_limit)!=((A=shixunsDetail.setting)===null||A===void 0||((f=A.shixun)===null||f===void 0||((h=f.shixun_service_configs[J])===null||h===void 0))?void 0:h.lower_cpu_limit)&&(confirmLeave=!0),(M==null?void 0:M.memory_limit)!=((E=shixunsDetail.setting)===null||E===void 0||((w=E.shixun)===null||w===void 0||((r=w.shixun_service_configs[J])===null||r===void 0))?void 0:r.memory_limit)&&(confirmLeave=!0),(M==null?void 0:M.request_limit)!=((m=shixunsDetail.setting)===null||m===void 0||((o=m.shixun)===null||o===void 0||((t=o.shixun_service_configs[J])===null||t===void 0))?void 0:t.request_limit)&&(confirmLeave=!0)}),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave}})},[taskPass,testSetPermission,isCopy,openValue,selectDepartmentList,isOpenTime,openTime,isRadiuvalue,sshRadioValue,multiWebssh,hideCode,display_git_address,codeHidden,codeEditPermission,forbidCopy,evaluationScript,evaluateScript,serviceConfigList,disableDiscuss,webssh_cloud]);var handleUseCustomScript=function(){dispatch({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:shixunId.current}}})};function handSubmeit(){return _handSubmeit.apply(this,arguments)}function _handSubmeit(){return _handSubmeit=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function M(){var J,a,R,g;return _root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!(isOpenTime&&!openTime)){f.next=3;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),f.abrupt("return");case 3:if(!(hideCode===1&&Remote===!1)){f.next=6;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u81F3\u5C11\u52FE\u9009\u4E00\u79CD\u7F16\u7A0B\u9875\u9762\uFF01"),f.abrupt("return");case 6:if(!(openValue===1&&!selectDepartmentList.length)){f.next=9;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),f.abrupt("return");case 9:if(a=(J=shixunsDetail.detail)===null||J===void 0?void 0:J.is_jupyter,R=!1,isRadiuvalue==5&&virtual_machine&&(shixun_virtual_templates==null||shixun_virtual_templates.map(function(h){if(!(h!=null&&h.template_name)||!(h!=null&&h.template_identity)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0\u6216\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u4E0D\u80FD\u4E3A\u7A7A"),R=!0;return}})),!R){f.next=14;break}return f.abrupt("return");case 14:return f.next=16,dispatch({type:"shixunsDetail/updateSetting",payload:{id:shixunId.current,scope_partment:openValue===0?null:selectDepartmentList,shixun:{show_code_dir:codeHidden,forbid_copy:forbidCopy,hide_code:hideCode,multi_webssh:multiWebssh,task_pass:taskPass,test_set_permission:testSetPermission,display_git_address,vnc,windows_vnc,virtual_machine,linux_vnc,windows_start_template,webssh_cloud,webssh:websshShow?sshRadioValue:0,code_edit_permission:codeEditPermission,can_copy:isCopy,use_scope:openValue,opening_time:openTime,mirror_script_id:a?null:evaluationScript,is_disable_discuss:disableDiscuss,terminal_count,port_mapping:port,survival_time,shixun_virtual_templates,windows_connection_mode:windows_vnc?windows_connection_mode:null},shixun_info:{evaluate_script:a?null:evaluateScript},shixun_service_configs:serviceConfigList.map(function(h){return{mirror_repository_id:h.mirror_repository_id,cpu_limit:h.cpu_limit,lower_cpu_limit:h.lower_cpu_limit,memory_limit:h.memory_limit,request_limit:h.request_limit}})}});case 16:g=f.sent,(g==null?void 0:g.status)===0&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u4FEE\u6539\u6210\u529F"),dispatch({type:"shixunsDetail/getSettingsData",payload:params}),dispatch({type:"shixunsDetail/getShixunsDetail",payload:params}));case 18:case"end":return f.stop()}},M)})),_handSubmeit.apply(this,arguments)}var handleChangeEvaluationScript=function(J){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var a=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function g(){return _root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,handleGetScriptContent(J);case 2:antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return f.stop()}},g)}));function R(){return a.apply(this,arguments)}return R}()})},handleGetScriptContent=function(){var M=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function J(a){var R;return _root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,dispatch({type:"shixunsDetail/getScriptContent",payload:{id:shixunId.current,script_id:a}});case 2:R=A.sent,R&&setEvaluateScript(R.content);case 4:case"end":return A.stop()}},J)}));return function(a){return M.apply(this,arguments)}}(),handleDeleteShixun=function(){var M=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function J(){var a,R,g,A,f,h,E;return _root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(r.t0=r.sent,r.t0){r.next=5;break}r.t0={};case 5:E=r.t0,antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font14 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.modal)},!!((a=E.subjects)!==null&&a!==void 0&&a.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230 ",(R=E.subjects)===null||R===void 0||((g=R.splice(0,2))===null||g===void 0)?void 0:g.map(function(m){return"\u300A".concat(m,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},E==null?void 0:E.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),!!((A=E.courses)!==null&&A!==void 0&&A.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(f=E.courses)===null||f===void 0||((h=f.splice(0,2))===null||h===void 0)?void 0:h.map(function(m){return"\u300A".concat(m,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},E==null?void 0:E.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorYellow," mt30")},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:function(){var m=Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function t(){var p;return _root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,dispatch({type:"shixunsDetail/deleteShixun",payload:{id:shixunId.current}});case 2:p=s.sent,p.status===1&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.success("\u64CD\u4F5C\u6210\u529F"),umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns"));case 4:case"end":return s.stop()}},t)}));function o(){return m.apply(this,arguments)}return o}()});case 7:case"end":return r.stop()}},J)}));return function(){return M.apply(this,arguments)}}(),handleDeleteElseShixun=function(){if(Object(_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__.b)(dispatch,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return};function showExitmodel(M){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){setMenuSelectKey(M),parseInt(M)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus()),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}})}return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",display:"flex",background:"#fff",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",background:"#0A143D",width:"25%",maxWidth:"440px",padding:"20px 20px",color:"#ffffff"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{padding:"0px 15px",fontSize:"16px"}},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a,{selectedKeys:[MenuSelectKey],theme:"dark",style:{background:"#0A143D",marginTop:"30px",fontSize:"14px"},onClick:function(J){var a;if(practiceSetting!=null&&(a=practiceSetting.sideBar)!==null&&a!==void 0&&a.confirmLeave){showExitmodel(J.key);return}setMenuSelectKey(J.key),parseInt(J.key)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus())}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:1},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:2},"\u5173\u4E8E\u5B9E\u8BAD"))),isShowSetting&&(shixunsDetail==null||((_shixunsDetail$detail=shixunsDetail.detail)===null||_shixunsDetail$detail===void 0)?void 0:_shixunsDetail$detail.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_Permission__WEBPACK_IMPORTED_MODULE_54__.a,null),isShowSetting&&!(shixunsDetail!=null&&(_shixunsDetail$detail2=shixunsDetail.detail)!==null&&_shixunsDetail$detail2!==void 0&&_shixunsDetail$detail2.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{width:"calc(100% - 24%)",overflow:"auto"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px 40px",marginBottom:"70px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{flex:"1"}},"\u5173\u5361\u548C\u6D4B\u8BD5\u96C6"),(shixunsDetail==null||((_shixunsDetail$detail3=shixunsDetail.detail)===null||_shixunsDetail$detail3===void 0)?void 0:_shixunsDetail$detail3.shixun_status)!==2?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteElseShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u8DF3\u5173\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:taskPass,disabled:!editable,onChange:function(J){return setTaskPass(J.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u5B66\u4E60\u5B9E\u8BAD\u5173\u5361\u4EFB\u52A1\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u6D4B\u8BD5\u96C6\u89E3\u9501\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:testSetPermission,disabled:!editable,onChange:function(J){return setTestSetPermission(J.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u7684\u5185\u5BB9\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u6743\u9650"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u590D\u5236/\u5408\u5E76:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isCopy,onChange:function(J){return setIsCopy(J.target.checked)},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((_shixunsDetail$detail4=shixunsDetail.detail)===null||_shixunsDetail$detail4===void 0?void 0:_shixunsDetail$detail4.shixun_status)>1||((_shixunsDetail$detail5=shixunsDetail.detail)===null||_shixunsDetail$detail5===void 0?void 0:_shixunsDetail$detail5.public)===2)&&((_shixunsDetail$settin97=shixunsDetail.setting)===null||_shixunsDetail$settin97===void 0||((_shixunsDetail$settin98=_shixunsDetail$settin97.shixun)===null||_shixunsDetail$settin98===void 0)?void 0:_shixunsDetail$settin98.use_scope)===0&&((_shixunsDetail$detail6=shixunsDetail.detail)===null||_shixunsDetail$detail6===void 0?void 0:_shixunsDetail$detail6.identity)>2)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{padding:"4px 0px"}},"\u516C\u5F00\u7A0B\u5EA6:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:openValue,onChange:function(J){return setOpenValue(J.target.value)},disabled:!editable},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,value:0},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:1},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),openValue===1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__.a,{showSearch:!0,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.selectSchool,bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:departmentValue,onChange:function(J){setDepartmentValue(J),handleGetDepartments(J)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map(function(M){return{value:M}})})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map(function(M){return editable?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_badge__WEBPACK_IMPORTED_MODULE_15__.a,{count:"x",className:"mr20 current",onClick:function(){return setSelectDepartmentList(selectDepartmentList.filter(function(a){return a!==M}))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0},M)):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0,className:"mr20"},M)}))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5F00\u542F\u65F6\u95F4:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isOpenTime,onChange:function(J){setIsOpenTime(J.target.checked),J.target.checked||setOpenTime("")},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\u624D\u80FD\u5F00\u542F\u6311\u6218\uFF09")),isOpenTime&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__.a,{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.dataPicker),format:timeFormat,locale:antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default.a,bordered:!1,disabled:!editable,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(J){return J&&J0){var y,c;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((y=shixunsDetail.setting)===null||y===void 0||((c=y.shixun)===null||c===void 0))?void 0:c.shixun_virtual_templates))}else setshixun_virtual_templates([{template_name:"",template_identity:""}]);break}}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:"linux",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"Linux\u5BB9\u5668",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528Linux\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")),!linux_vnc&&!windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(J){return setport(J.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u5230\u6307\u5B9A\u7AEF\u53E3\uFF09"))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:"linux_vnc",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"Linux\u4E91\u4E3B\u673A\u56FE\u5F62\u5316\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528Linux\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")),isRadiuvalue==5&&linux_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(J){return setWindowVNCTemplate(J.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:"windows_vnc",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"Windows\u4E91\u4E3B\u673A\u56FE\u5F62\u5316\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528Windows\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")),isRadiuvalue==5&&windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(J){return setWindowVNCTemplate(J.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Windows\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{value:windows_connection_mode,onChange:function(J){return setWindowsConnectionMode(J)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"vnc"},"VNC\u65B9\u5F0F\u542F\u52A8"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"rdp"},"RDP\u65B9\u5F0F\u542F\u52A8")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__.a,{title:Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)()?"":"\u53EA\u6709\u5E73\u53F0\u7BA1\u7406\u5458\u6216\u8FD0\u8425\u4EBA\u5458\u624D\u80FD\u914D\u7F6E\u865A\u62DF\u673A\u6A21\u5F0F"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{disabled:!Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)(),value:"virtual_machine",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u865A\u62DF\u673A\u56FE\u5F62\u5316\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u865A\u62DF\u673A\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09"))),isRadiuvalue==5&&virtual_machine&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",width:213,marginRight:42,color:"#333333"}},"\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",color:"#333333"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A")),shixun_virtual_templates==null?void 0:shixun_virtual_templates.map(function(M,J){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{maxLength:8,style:{width:213,height:32,marginRight:42},placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0",value:M==null?void 0:M.template_name,onChange:function(R){M.template_name=R.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{style:{width:380,height:32},placeholder:"\u8BF7\u8F93\u5165\u865A\u62DF\u673A\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u540D\u79F0",value:M==null?void 0:M.template_identity,onChange:function(R){M.template_identity=R.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&(shixun_virtual_templates==null?void 0:shixun_virtual_templates.length)<5&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__.a,{style:{fontSize:"16px",marginLeft:15,color:"#165DFF"},onClick:function(){var R={};R.template_name="",R.template_identity="",shixun_virtual_templates.push(R),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),J!=0&&Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__.a,{style:{fontSize:"16px",marginLeft:10,color:"#165DFF"},onClick:function(){shixun_virtual_templates.splice(J,1),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v7_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}))}))))))),hideCode&&websshShow?null:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u5E93\u5730\u5740\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:display_git_address,disabled:!editable,onChange:function(J){return set_display_git_address(J.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")}," \uFF08\u9009\u4E2D\u5219\u5BF9\u5B66\u5458\u516C\u5F00\u4EE3\u7801\u5E93\u5730\u5740\uFF0C\u5B66\u5458\u53EF\u4EE5\u5C06\u6240\u6709\u4EE3\u7801\u4E0B\u8F7D\u5230\u672C\u5730\uFF09")))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u76EE\u5F55\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeHidden,disabled:!editable,onChange:function(J){return setCodeHidden(J.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u9875\u9762\u663E\u793A\u7248\u672C\u5E93\u76EE\u5F55\uFF09")),codeHidden&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"54px",background:"#f5f5f5",marginTop:"10px",borderRadius:"8px",display:"flex",justifyContent:"left",alignItems:"center",padding:"0px 20px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",null,"\u4EE3\u7801\u5E93\u6587\u4EF6\u4FEE\u6539\u6743\u9650\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent,style:{padding:"0px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeEditPermission,disabled:!editable,onChange:function(J){return setCodeEditPermission(J.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u52FE\u9009\u540E\u5141\u8BB8\u5B66\u5458\u4FEE\u6539\u4EE3\u7801\u5E93\u6240\u6709\u6587\u4EF6\uFF0C\u5426\u5219\u4EC5\u53EF\u4FEE\u6539\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\uFF09"))))))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u7981\u7528\u7C98\u8D34\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:forbidCopy,disabled:!editable,onChange:function(J){return setForbidCopy(J.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u7F16\u7801\u533A\u57DF\u65E0\u6CD5\u4F7F\u7528\u7C98\u8D34\u529F\u80FD\uFF09")))),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__.a,{value:survival_time,onChange:function(J){return setSurvivalTime(J)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\u5206")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px",display:"none"}},"\u9AD8\u7EA7\u8BBE\u7F6E ",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{onClick:function(){return setAdvancedSettingShow(!advancedsettingshow)},style:{color:"#0152d9",fontSize:"14px",cursor:"pointer",marginLeft:"20px"}},advancedsettingshow?"\u6536\u8D77":"\u5C55\u5F00",advancedsettingshow?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__.a,null):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__.a,null))),advancedsettingshow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,!((_shixunsDetail$detail7=shixunsDetail.detail)!==null&&_shixunsDetail$detail7!==void 0&&_shixunsDetail$detail7.is_jupyter)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexRow," ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexAlignCenter)},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{style:{fontSize:"16px"}},"\u8BC4\u6D4B\u811A\u672C\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{style:{width:"200px"},value:evaluationScript,disabled:((_shixunsDetail$settin150=shixunsDetail.setting)===null||_shixunsDetail$settin150===void 0||((_shixunsDetail$settin151=_shixunsDetail$settin150.shixun)===null||_shixunsDetail$settin151===void 0)?void 0:_shixunsDetail$settin151.status)===2?!0:!editable,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(J){handleChangeEvaluationScript(J),setevaluationScript(J)}},(standardScriptList||[]).map(function(M,J){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(Option,{value:parseInt(M.id),name:M.scptname,key:J},M.scptname)})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color0152d9," font14 current ml10"),style:{marginTop:"2px"},onClick:handleUseCustomScript},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_popover__WEBPACK_IMPORTED_MODULE_3__.a,{overlayClassName:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.popover,placement:"bottomLeft",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"challengeProgramNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"sourceClassNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step1/HelloWorld.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step2/Other.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step1.HelloWorld",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step2.Other",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'" "step2.Other")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__.a,null)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:evaluateScript,options:{readOnly:((_shixunsDetail$settin152=shixunsDetail.setting)===null||_shixunsDetail$settin152===void 0||((_shixunsDetail$settin153=_shixunsDetail$settin152.shixun)===null||_shixunsDetail$settin153===void 0)?void 0:_shixunsDetail$settin153.status)===2?!0:!editable},onChange:function(J){return setEvaluateScript(J)}})),((_shixunsDetail$detail8=shixunsDetail.detail)===null||_shixunsDetail$detail8===void 0?void 0:_shixunsDetail$detail8.identity)<3&&editable&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingName},"\u670D\u52A1\u914D\u7F6E"),serviceConfigList==null?void 0:serviceConfigList.map(function(M,J){var a,R,g,A,f,h,E,w;return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{key:J},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"font16"},M.name)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:M.cpu_limit,disabled:((a=shixunsDetail.setting)===null||a===void 0||((R=a.shixun)===null||R===void 0)?void 0:R.status)===2?!0:!editable,onChange:function(m){return handleChangeSeviceConfig(m.target.value,"cpu_limit",J)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:M.lower_cpu_limit,disabled:((g=shixunsDetail.setting)===null||g===void 0||((A=g.shixun)===null||A===void 0)?void 0:A.status)===2?!0:!editable,onChange:function(m){return handleChangeSeviceConfig(m.target.value,"lower_cpu_limit",J)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:M.memory_limit,disabled:((f=shixunsDetail.setting)===null||f===void 0||((h=f.shixun)===null||h===void 0)?void 0:h.status)===2?!0:!editable,onChange:function(m){return handleChangeSeviceConfig(m.target.value,"memory_limit",J)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetMemoryInput,value:M.request_limit,disabled:((E=shixunsDetail.setting)===null||E===void 0||((w=E.shixun)===null||w===void 0)?void 0:w.status)===2?!0:!editable,onChange:function(m){return handleChangeSeviceConfig(m.target.value,"request_limit",J)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetTip," ml5")},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")))}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}}," \u8BC4\u8BBA\u533A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u8BC4\u8BBA\u533A\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_switch__WEBPACK_IMPORTED_MODULE_1__.a,{checked:!disableDiscuss,onChange:function(J){return setDisableDiscuss(!J)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5173\u95ED\u540E\uFF0C\u5B9E\u8DF5\u9879\u76EE\u8BE6\u60C5\u9875\u53CA\u5173\u5361\u6311\u6218\u9875\u9762\u4E0D\u663E\u793A\u4EFB\u4F55\u8BC4\u8BBA\uFF09"))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"70px",width:"76%",background:"#ffffff",boxShadow:"0px -4px 8px 1px #F1F1F1",position:"absolute",bottom:"0px",display:"flex",alignItems:"center",justifyContent:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginRight:"10px",width:"100px",height:"40px",borderRadius:"4px",border:"1px solid #0152d9",color:"#0152d9"},onClick:function(){umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns/".concat(params.id,"/challenges"))}},"\u53D6\u6D88"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginLeft:"10px",width:"100px",height:"40px",fontSize:"16px",background:"#0152d9",borderRadius:"4px"},type:"primary",onClick:function(){return handSubmeit()}},"\u4FDD\u5B58"))),!isShowSetting&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u8005"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"60",width:"60",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.img,src:"".concat(_utils_env__WEBPACK_IMPORTED_MODULE_55__.a.IMG_SERVER,"/images/").concat(createTitle==null?void 0:createTitle.user_image_url)}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.nameWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.name},createTitle==null?void 0:createTitle.user_name),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.actionGroup})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.schoolWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.school},createTitle==null?void 0:createTitle.user_school)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.created_at),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u66F4\u65B0\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.updated_at)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__.a,null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__.a,{onFinish:function(J){return setEvaluateScript(J)}}))}__webpack_exports__.a=Object(umi__WEBPACK_IMPORTED_MODULE_40__.a)(function(M){var J=M.user,a=M.shixunsDetail,R=M.practiceSetting;return{user:J,shixunsDetail:a,practiceSetting:R}})(Setting)},"19Vz":function(M,J,a){(function(R){R(a("VrN/"))})(function(R){R.defineOption("placeholder","",function(r,m,o){var t=o&&o!=R.Init;if(m&&!t)r.on("blur",h),r.on("change",E),r.on("swapDoc",E),R.on(r.getInputField(),"compositionupdate",r.state.placeholderCompose=function(){f(r)}),E(r);else if(!m&&t){r.off("blur",h),r.off("change",E),r.off("swapDoc",E),R.off(r.getInputField(),"compositionupdate",r.state.placeholderCompose),g(r);var p=r.getWrapperElement();p.className=p.className.replace(" CodeMirror-empty","")}m&&!r.hasFocus()&&h(r)});function g(r){r.state.placeholder&&(r.state.placeholder.parentNode.removeChild(r.state.placeholder),r.state.placeholder=null)}function A(r){g(r);var m=r.state.placeholder=document.createElement("pre");m.style.cssText="height: 0; overflow: visible",m.style.direction=r.getOption("direction"),m.className="CodeMirror-placeholder CodeMirror-line-like";var o=r.getOption("placeholder");typeof o=="string"&&(o=document.createTextNode(o)),m.appendChild(o),r.display.lineSpace.insertBefore(m,r.display.lineSpace.firstChild)}function f(r){setTimeout(function(){var m=!1,o=r.getInputField();o.nodeName=="TEXTAREA"?m=!o.value:r.lineCount()==1&&(m=!/[^\u200b]/.test(o.querySelector(".CodeMirror-line").textContent)),m?A(r):g(r)},20)}function h(r){w(r)&&A(r)}function E(r){var m=r.getWrapperElement(),o=w(r);m.className=m.className.replace(" CodeMirror-empty","")+(o?" CodeMirror-empty":""),o?A(r):g(r)}function w(r){return r.lineCount()===1&&r.getLine(0)===""}})},"1Sn+":function(M,J,a){},"1XHU":function(M,J,a){"use strict";var R=a("2qtc"),g=a("kLXV"),A=a("q1tI"),f=a.n(A),h=a("9kvl"),E=a("3wET"),w=a.n(E),r=a("bUJZ"),m=a.n(r),o=a("Ct/S"),t=a.n(o),p=function(s){var _=s.visible,v=s.occupationValue,C=s.onCancel,i=C===void 0?function(){}:C,u=function(){return f.a.createElement("div",{className:t.a.flexColumn},f.a.createElement("img",{className:t.a.img,src:m.a}),f.a.createElement("span",{className:t.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},b=function(){return f.a.createElement("div",{className:t.a.flexColumn},f.a.createElement("img",{className:t.a.img,src:w.a}),f.a.createElement("span",{className:t.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},O=function(){return v===3?f.a.createElement(f.a.Fragment,null,b(),u()):v===2?u():b()};return f.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:_,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){i(),h.d.push("/account/certification")},onCancel:function(){i()}},f.a.createElement("div",{className:t.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),f.a.createElement("div",{className:t.a.flexRow},O()))};J.a=Object(h.a)(function(d){var s=d.paperlibrary,_=d.loading,v=d.globalSetting;return{paperlibrary:s,globalSetting:v,loading:_.effects}})(p)},"1ZF9":function(M,J,a){M.exports=a.p+"static/Authorize.cc9c212f.png"},"1eCo":function(M,J,a){(function(R){R(a("VrN/"))})(function(R){"use strict";var g={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},A={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};R.defineMode("xml",function(f,h){var E=f.indentUnit,w={},r=h.htmlMode?g:A;for(var m in r)w[m]=r[m];for(var m in h)w[m]=h[m];var o,t;function p(T,k){function N(H){return k.tokenize=H,H(T,k)}var U=T.next();if(U=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?N(_("atom","]]>")):null:T.match("--")?N(_("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),N(v(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),k.tokenize=_("meta","?>"),"meta"):(o=T.eat("/")?"closeTag":"openTag",k.tokenize=d,"tag bracket");if(U=="&"){var z;return T.eat("#")?T.eat("x")?z=T.eatWhile(/[a-fA-F\d]/)&&T.eat(";"):z=T.eatWhile(/[\d]/)&&T.eat(";"):z=T.eatWhile(/[\w\.\-:]/)&&T.eat(";"),z?"atom":"error"}else return T.eatWhile(/[^&<]/),null}p.isInText=!0;function d(T,k){var N=T.next();if(N==">"||N=="/"&&T.eat(">"))return k.tokenize=p,o=N==">"?"endTag":"selfcloseTag","tag bracket";if(N=="=")return o="equals",null;if(N=="<"){k.tokenize=p,k.state=b,k.tagName=k.tagStart=null;var U=k.tokenize(T,k);return U?U+" tag error":"tag error"}else return/[\'\"]/.test(N)?(k.tokenize=s(N),k.stringStartCol=T.column(),k.tokenize(T,k)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(T){var k=function(N,U){for(;!N.eol();)if(N.next()==T){U.tokenize=d;break}return"string"};return k.isInAttribute=!0,k}function _(T,k){return function(N,U){for(;!N.eol();){if(N.match(k)){U.tokenize=p;break}N.next()}return T}}function v(T){return function(k,N){for(var U;(U=k.next())!=null;){if(U=="<")return N.tokenize=v(T+1),N.tokenize(k,N);if(U==">")if(T==1){N.tokenize=p;break}else return N.tokenize=v(T-1),N.tokenize(k,N)}return"meta"}}function C(T,k,N){this.prev=T.context,this.tagName=k,this.indent=T.indented,this.startOfLine=N,(w.doNotIndent.hasOwnProperty(k)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function i(T){T.context&&(T.context=T.context.prev)}function u(T,k){for(var N;;){if(!T.context)return;if(N=T.context.tagName,!w.contextGrabbers.hasOwnProperty(N)||!w.contextGrabbers[N].hasOwnProperty(k))return;i(T)}}function b(T,k,N){return T=="openTag"?(N.tagStart=k.column(),O):T=="closeTag"?y:b}function O(T,k,N){return T=="word"?(N.tagName=k.current(),t="tag",D):w.allowMissingTagName&&T=="endTag"?(t="tag bracket",D(T,k,N)):(t="error",O)}function y(T,k,N){if(T=="word"){var U=k.current();return N.context&&N.context.tagName!=U&&w.implicitlyClosed.hasOwnProperty(N.context.tagName)&&i(N),N.context&&N.context.tagName==U||w.matchClosing===!1?(t="tag",c):(t="tag error",P)}else return w.allowMissingTagName&&T=="endTag"?(t="tag bracket",c(T,k,N)):(t="error",P)}function c(T,k,N){return T!="endTag"?(t="error",c):(i(N),b)}function P(T,k,N){return t="error",c(T,k,N)}function D(T,k,N){if(T=="word")return t="attribute",S;if(T=="endTag"||T=="selfcloseTag"){var U=N.tagName,z=N.tagStart;return N.tagName=N.tagStart=null,T=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(U)?u(N,U):(u(N,U),N.context=new C(N,U,z==N.indented)),b}return t="error",D}function S(T,k,N){return T=="equals"?x:(w.allowMissing||(t="error"),D(T,k,N))}function x(T,k,N){return T=="string"?l:T=="word"&&w.allowUnquoted?(t="string",D):(t="error",D(T,k,N))}function l(T,k,N){return T=="string"?l:D(T,k,N)}return{startState:function(T){var k={tokenize:p,state:b,indented:T||0,tagName:null,tagStart:null,context:null};return T!=null&&(k.baseIndent=T),k},token:function(T,k){if(!k.tagName&&T.sol()&&(k.indented=T.indentation()),T.eatSpace())return null;o=null;var N=k.tokenize(T,k);return(N||o)&&N!="comment"&&(t=null,k.state=k.state(o||N,T,k),t&&(N=t=="error"?N+" error":t)),N},indent:function(T,k,N){var U=T.context;if(T.tokenize.isInAttribute)return T.tagStart==T.indented?T.stringStartCol+1:T.indented+E;if(U&&U.noIndent)return R.Pass;if(T.tokenize!=d&&T.tokenize!=p)return N?N.match(/^(\s*)/)[0].length:0;if(T.tagName)return w.multilineTagIndentPastTag!==!1?T.tagStart+T.tagName.length+2:T.tagStart+E*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/$/,blockCommentStart:"",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(T){T.state==x&&(T.state=D)},xmlCurrentTag:function(T){return T.tagName?{name:T.tagName,close:T.type=="closeTag"}:null},xmlCurrentContext:function(T){for(var k=[],N=T.context;N;N=N.prev)N.tagName&&k.push(N.tagName);return k.reverse()}}}),R.defineMIME("text/xml","xml"),R.defineMIME("application/xml","xml"),R.mimeModes.hasOwnProperty("text/html")||R.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(M,J,a){"use strict";a.d(J,"d",function(){return $e}),a.d(J,"b",function(){return vt}),a.d(J,"c",function(){return Lt}),a.d(J,"a",function(){return En});var R=a("VTBJ"),g=a("1OyB"),A=a("vuIU"),f=a("JX7q"),h=a("Ji7U"),E=a("LK+K"),w=a("q1tI"),r=a("I8Z2"),m=a("BGR+"),o=a("wx14"),t=a("rePB"),p=a("4IlW"),d=a("2GS6"),s=a("Gytx"),_=a.n(s),v=a("TSYQ"),C=a.n(v),i=a("U8pU"),u=a("ODXe"),b=/iPhone/i,O=/iPod/i,y=/iPad/i,c=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,D=/\bAndroid(?:.+)SD4930UR\b/i,S=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,x=/Windows Phone/i,l=/\bWindows(?:.+)ARM\b/i,T=/BlackBerry/i,k=/BB10/i,N=/Opera Mini/i,U=/\b(CriOS|Chrome)(?:.+)Mobile/i,z=/Mobile(?:.+)Firefox\b/i;function H(Ot,He){return Ot.test(He)}function K(Ot){var He=Ot||(typeof navigator!="undefined"?navigator.userAgent:""),it=He.split("[FBAN");if(typeof it[1]!="undefined"){var ot=it,Ne=Object(u.a)(ot,1);He=Ne[0]}if(it=He.split("Twitter"),typeof it[1]!="undefined"){var Qe=it,At=Object(u.a)(Qe,1);He=At[0]}var yt={apple:{phone:H(b,He)&&!H(x,He),ipod:H(O,He),tablet:!H(b,He)&&H(y,He)&&!H(x,He),device:(H(b,He)||H(O,He)||H(y,He))&&!H(x,He)},amazon:{phone:H(D,He),tablet:!H(D,He)&&H(S,He),device:H(D,He)||H(S,He)},android:{phone:!H(x,He)&&H(D,He)||!H(x,He)&&H(c,He),tablet:!H(x,He)&&!H(D,He)&&!H(c,He)&&(H(S,He)||H(P,He)),device:!H(x,He)&&(H(D,He)||H(S,He)||H(c,He)||H(P,He))||H(/\bokhttp\b/i,He)},windows:{phone:H(x,He),tablet:H(l,He),device:H(x,He)||H(l,He)},other:{blackberry:H(T,He),blackberry10:H(k,He),opera:H(N,He),firefox:H(z,He),chrome:H(U,He),device:H(T,He)||H(k,He)||H(N,He)||H(z,He)||H(U,He)},any:null,phone:null,tablet:null};return yt.any=yt.apple.device||yt.android.device||yt.windows.device||yt.other.device,yt.phone=yt.apple.phone||yt.android.phone||yt.windows.phone,yt.tablet=yt.apple.tablet||yt.android.tablet||yt.windows.tablet,yt}var V=Object(R.a)(Object(R.a)({},K()),{},{isMobile:K}),W=V;function B(){}function X(Ot,He,it){var ot=He||"";return Ot.key||"".concat(ot,"item_").concat(it)}function ue(Ot){return"".concat(Ot,"-menu-")}function ve(Ot,He){var it=-1;w.Children.forEach(Ot,function(ot){it+=1,ot&&ot.type&&ot.type.isMenuItemGroup?w.Children.forEach(ot.props.children,function(Ne){it+=1,He(Ne,it)}):He(ot,it)})}function he(Ot,He,it){if(!Ot||it.find)return;w.Children.forEach(Ot,function(ot){if(ot){var Ne=ot.type;if(!Ne||!(Ne.isSubMenu||Ne.isMenuItem||Ne.isMenuItemGroup))return;He.indexOf(ot.key)!==-1?it.find=!0:ot.props.children&&he(ot.props.children,He,it)}})}var Pe=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Re=function(He){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=He&&typeof He.getBoundingClientRect=="function"&&He.getBoundingClientRect().width;if(ot){if(it){var Ne=getComputedStyle(He),Qe=Ne.marginLeft,At=Ne.marginRight;ot+=+Qe.replace("px","")+ +At.replace("px","")}ot=+ot.toFixed(6)}return ot||0},ce=function(He,it,ot){He&&Object(i.a)(He.style)==="object"&&(He.style[it]=ot)},Ee=function(){return W.any},ye=a("KQm4"),se=a("Ff2n"),oe=a("i8i4"),$=a("bdgK"),pe=a("uciX"),ne=a("8XRh"),re={adjustX:1,adjustY:1},Se={topLeft:{points:["bl","tl"],overflow:re,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:re,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:re,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:re,offset:[4,0]}},ie={topLeft:{points:["bl","tl"],overflow:re,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:re,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:re,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:re,offset:[4,0]}},q=Se,Y=0,te={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Oe=function(He,it,ot){var Ne=ue(it),Qe=He.getState();He.setState({defaultActiveFirst:Object(R.a)(Object(R.a)({},Qe.defaultActiveFirst),{},Object(t.a)({},Ne,ot))})},Ce=function(Ot){Object(h.a)(it,Ot);var He=Object(E.a)(it);function it(ot){var Ne;Object(g.a)(this,it),Ne=He.call(this,ot),Ne.onDestroy=function(dt){Ne.props.onDestroy(dt)},Ne.onKeyDown=function(dt){var Wt=dt.keyCode,tn=Ne.menuInstance,Fn=Ne.props,Tn=Fn.isOpen,Jn=Fn.store;if(Wt===p.a.ENTER)return Ne.onTitleClick(dt),Oe(Jn,Ne.props.eventKey,!0),!0;if(Wt===p.a.RIGHT)return Tn?tn.onKeyDown(dt):(Ne.triggerOpenChange(!0),Oe(Jn,Ne.props.eventKey,!0)),!0;if(Wt===p.a.LEFT){var $n;if(Tn)$n=tn.onKeyDown(dt);else return;return $n||(Ne.triggerOpenChange(!1),$n=!0),$n}return Tn&&(Wt===p.a.UP||Wt===p.a.DOWN)?tn.onKeyDown(dt):void 0},Ne.onOpenChange=function(dt){Ne.props.onOpenChange(dt)},Ne.onPopupVisibleChange=function(dt){Ne.triggerOpenChange(dt,dt?"mouseenter":"mouseleave")},Ne.onMouseEnter=function(dt){var Wt=Ne.props,tn=Wt.eventKey,Fn=Wt.onMouseEnter,Tn=Wt.store;Oe(Tn,Ne.props.eventKey,!1),Fn({key:tn,domEvent:dt})},Ne.onMouseLeave=function(dt){var Wt=Ne.props,tn=Wt.parentMenu,Fn=Wt.eventKey,Tn=Wt.onMouseLeave;tn.subMenuInstance=Object(f.a)(Ne),Tn({key:Fn,domEvent:dt})},Ne.onTitleMouseEnter=function(dt){var Wt=Ne.props,tn=Wt.eventKey,Fn=Wt.onItemHover,Tn=Wt.onTitleMouseEnter;Fn({key:tn,hover:!0}),Tn({key:tn,domEvent:dt})},Ne.onTitleMouseLeave=function(dt){var Wt=Ne.props,tn=Wt.parentMenu,Fn=Wt.eventKey,Tn=Wt.onItemHover,Jn=Wt.onTitleMouseLeave;tn.subMenuInstance=Object(f.a)(Ne),Tn({key:Fn,hover:!1}),Jn({key:Fn,domEvent:dt})},Ne.onTitleClick=function(dt){var Wt=Object(f.a)(Ne),tn=Wt.props;if(tn.onTitleClick({key:tn.eventKey,domEvent:dt}),tn.triggerSubMenuAction==="hover")return;Ne.triggerOpenChange(!tn.isOpen,"click"),Oe(tn.store,Ne.props.eventKey,!1)},Ne.onSubMenuClick=function(dt){typeof Ne.props.onClick=="function"&&Ne.props.onClick(Ne.addKeyPath(dt))},Ne.onSelect=function(dt){Ne.props.onSelect(dt)},Ne.onDeselect=function(dt){Ne.props.onDeselect(dt)},Ne.getPrefixCls=function(){return"".concat(Ne.props.rootPrefixCls,"-submenu")},Ne.getActiveClassName=function(){return"".concat(Ne.getPrefixCls(),"-active")},Ne.getDisabledClassName=function(){return"".concat(Ne.getPrefixCls(),"-disabled")},Ne.getSelectedClassName=function(){return"".concat(Ne.getPrefixCls(),"-selected")},Ne.getOpenClassName=function(){return"".concat(Ne.props.rootPrefixCls,"-submenu-open")},Ne.saveMenuInstance=function(dt){Ne.menuInstance=dt},Ne.addKeyPath=function(dt){return Object(R.a)(Object(R.a)({},dt),{},{keyPath:(dt.keyPath||[]).concat(Ne.props.eventKey)})},Ne.triggerOpenChange=function(dt,Wt){var tn=Ne.props.eventKey,Fn=function(){Ne.onOpenChange({key:tn,item:Object(f.a)(Ne),trigger:Wt,open:dt})};Wt==="mouseenter"?Ne.mouseenterTimeout=setTimeout(function(){Fn()},0):Fn()},Ne.isChildrenSelected=function(){var dt={find:!1};return he(Ne.props.children,Ne.props.selectedKeys,dt),dt.find},Ne.isOpen=function(){return Ne.props.openKeys.indexOf(Ne.props.eventKey)!==-1},Ne.adjustWidth=function(){if(!Ne.subMenuTitle||!Ne.menuInstance)return;var dt=oe.findDOMNode(Ne.menuInstance);if(dt.offsetWidth>=Ne.subMenuTitle.offsetWidth)return;dt.style.minWidth="".concat(Ne.subMenuTitle.offsetWidth,"px")},Ne.saveSubMenuTitle=function(dt){Ne.subMenuTitle=dt},Ne.getBaseProps=function(){var dt=Object(f.a)(Ne),Wt=dt.props;return{mode:Wt.mode==="horizontal"?"vertical":Wt.mode,visible:Ne.props.isOpen,level:Wt.level+1,inlineIndent:Wt.inlineIndent,focusable:!1,onClick:Ne.onSubMenuClick,onSelect:Ne.onSelect,onDeselect:Ne.onDeselect,onDestroy:Ne.onDestroy,selectedKeys:Wt.selectedKeys,eventKey:"".concat(Wt.eventKey,"-menu-"),openKeys:Wt.openKeys,motion:Wt.motion,onOpenChange:Ne.onOpenChange,subMenuOpenDelay:Wt.subMenuOpenDelay,parentMenu:Object(f.a)(Ne),subMenuCloseDelay:Wt.subMenuCloseDelay,forceSubMenuRender:Wt.forceSubMenuRender,triggerSubMenuAction:Wt.triggerSubMenuAction,builtinPlacements:Wt.builtinPlacements,defaultActiveFirst:Wt.store.getState().defaultActiveFirst[ue(Wt.eventKey)],multiple:Wt.multiple,prefixCls:Wt.rootPrefixCls,id:Ne.internalMenuId,manualRef:Ne.saveMenuInstance,itemIcon:Wt.itemIcon,expandIcon:Wt.expandIcon,direction:Wt.direction}},Ne.getMotion=function(dt,Wt){var tn=Object(f.a)(Ne),Fn=tn.haveRendered,Tn=Ne.props,Jn=Tn.motion,$n=Tn.rootPrefixCls,Mn=Object(R.a)(Object(R.a)({},Jn),{},{leavedClassName:"".concat($n,"-hidden"),removeOnLeave:!1,motionAppear:Fn||!Wt||dt!=="inline"});return Mn};var Qe=ot.store,At=ot.eventKey,yt=Qe.getState(),It=yt.defaultActiveFirst;Ne.isRootMenu=!1;var Ft=!1;return It&&(Ft=It[At]),Oe(Qe,At,Ft),Ne}return Object(A.a)(it,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ne=this,Qe=this.props,At=Qe.mode,yt=Qe.parentMenu,It=Qe.manualRef;if(It&&It(this),At!=="horizontal"||!yt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Ne.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ne=this.props,Qe=Ne.onDestroy,At=Ne.eventKey;Qe&&Qe(At),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Ne){var Qe=this,At=this.getBaseProps(),yt=this.getMotion(At.mode,At.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||At.visible||At.forceSubMenuRender,!this.haveOpened)return w.createElement("div",null);var It=At.direction;return w.createElement(ne.default,Object.assign({visible:At.visible},yt),function(Ft){var dt=Ft.className,Wt=Ft.style,tn=C()("".concat(At.prefixCls,"-sub"),dt,Object(t.a)({},"".concat(At.prefixCls,"-rtl"),It==="rtl"));return w.createElement(Ve,Object.assign({},At,{id:Qe.internalMenuId,className:tn,style:Wt}),Ne)})}},{key:"render",value:function(){var Ne,Qe=Object(R.a)({},this.props),At=Qe.isOpen,yt=this.getPrefixCls(),It=Qe.mode==="inline",Ft=C()(yt,"".concat(yt,"-").concat(Qe.mode),(Ne={},Object(t.a)(Ne,Qe.className,!!Qe.className),Object(t.a)(Ne,this.getOpenClassName(),At),Object(t.a)(Ne,this.getActiveClassName(),Qe.active||At&&!It),Object(t.a)(Ne,this.getDisabledClassName(),Qe.disabled),Object(t.a)(Ne,this.getSelectedClassName(),this.isChildrenSelected()),Ne));this.internalMenuId||(Qe.eventKey?this.internalMenuId="".concat(Qe.eventKey,"$Menu"):(Y+=1,this.internalMenuId="$__$".concat(Y,"$Menu")));var dt={},Wt={},tn={};Qe.disabled||(dt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Wt={onClick:this.onTitleClick},tn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Fn={},Tn=Qe.direction;It&&(Tn==="rtl"?Fn.paddingRight=Qe.inlineIndent*Qe.level:Fn.paddingLeft=Qe.inlineIndent*Qe.level);var Jn={};this.props.isOpen&&(Jn={"aria-owns":this.internalMenuId});var $n=null;Qe.mode!=="horizontal"&&($n=this.props.expandIcon,typeof this.props.expandIcon=="function"&&($n=w.createElement(this.props.expandIcon,Object(R.a)({},this.props))));var Mn=w.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Fn,className:"".concat(yt,"-title"),role:"button"},tn,Wt,{"aria-expanded":At},Jn,{"aria-haspopup":"true",title:typeof Qe.title=="string"?Qe.title:void 0}),Qe.title,$n||w.createElement("i",{className:"".concat(yt,"-arrow")})),ln=this.renderChildren(Qe.children),Sr=Qe.parentMenu.isRootMenu?Qe.parentMenu.props.getPopupContainer:function(dr){return dr.parentNode},Pr=te[Qe.mode],Mr=Qe.popupOffset?{offset:Qe.popupOffset}:{},cr=Qe.mode==="inline"?"":Qe.popupClassName;cr+=Tn==="rtl"?" ".concat(yt,"-rtl"):"";var Hn=Qe.disabled,qn=Qe.triggerSubMenuAction,an=Qe.subMenuOpenDelay,Gt=Qe.forceSubMenuRender,_n=Qe.subMenuCloseDelay,Br=Qe.builtinPlacements;Pe.forEach(function(dr){return delete Qe[dr]}),delete Qe.onClick;var Ir=Tn==="rtl"?Object.assign({},ie,Br):Object.assign({},Se,Br);return delete Qe.direction,w.createElement("li",Object.assign({},Qe,dt,{className:Ft,role:"menuitem"}),It&&Mn,It&&ln,!It&&w.createElement(pe.a,{prefixCls:yt,popupClassName:C()("".concat(yt,"-popup"),cr),getPopupContainer:Sr,builtinPlacements:Ir,popupPlacement:Pr,popupVisible:At,popupAlign:Mr,popup:ln,action:Hn?[]:[qn],mouseEnterDelay:an,mouseLeaveDelay:_n,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Gt},Mn))}}]),it}(w.Component);Ce.defaultProps={onMouseEnter:B,onMouseLeave:B,onTitleMouseEnter:B,onTitleMouseLeave:B,onTitleClick:B,manualRef:B,mode:"vertical",title:""};var Me=Object(r.b)(function(Ot,He){var it=Ot.openKeys,ot=Ot.activeKey,Ne=Ot.selectedKeys,Qe=He.eventKey,At=He.subMenuKey;return{isOpen:it.indexOf(Qe)>-1,active:ot[At]===Qe,selectedKeys:Ne}})(Ce);Me.isSubMenu=!0;var $e=Me,nt="menuitem-overflowed",ut=.5,ht=function(Ot){Object(h.a)(it,Ot);var He=Object(E.a)(it);function it(){var ot;return Object(g.a)(this,it),ot=He.apply(this,arguments),ot.resizeObserver=null,ot.mutationObserver=null,ot.originalTotalWidth=0,ot.overflowedItems=[],ot.menuItemSizes=[],ot.cancelFrameId=null,ot.state={lastVisibleIndex:void 0},ot.getMenuItemNodes=function(){var Ne=ot.props.prefixCls,Qe=oe.findDOMNode(Object(f.a)(ot));return Qe?[].slice.call(Qe.children).filter(function(At){return At.className.split(" ").indexOf("".concat(Ne,"-overflowed-submenu"))<0}):[]},ot.getOverflowedSubMenuItem=function(Ne,Qe,At){var yt=ot.props,It=yt.overflowedIndicator,Ft=yt.level,dt=yt.mode,Wt=yt.prefixCls,tn=yt.theme;if(Ft!==1||dt!=="horizontal")return null;var Fn=ot.props.children[0],Tn=Fn.props,Jn=Tn.children,$n=Tn.title,Mn=Tn.style,ln=Object(se.a)(Tn,["children","title","style"]),Sr=Object(R.a)({},Mn),Pr="".concat(Ne,"-overflowed-indicator"),Mr="".concat(Ne,"-overflowed-indicator");Qe.length===0&&At!==!0?Sr=Object(R.a)(Object(R.a)({},Sr),{},{display:"none"}):At&&(Sr=Object(R.a)(Object(R.a)({},Sr),{},{visibility:"hidden",position:"absolute"}),Pr="".concat(Pr,"-placeholder"),Mr="".concat(Mr,"-placeholder"));var cr=tn?"".concat(Wt,"-").concat(tn):"",Hn={};return Pe.forEach(function(qn){ln[qn]!==void 0&&(Hn[qn]=ln[qn])}),w.createElement($e,Object.assign({title:It,className:"".concat(Wt,"-overflowed-submenu"),popupClassName:cr},Hn,{key:Pr,eventKey:Mr,disabled:!1,style:Sr}),Qe)},ot.setChildrenWidthAndResize=function(){if(ot.props.mode!=="horizontal")return;var Ne=oe.findDOMNode(Object(f.a)(ot));if(!Ne)return;var Qe=Ne.children;if(!Qe||Qe.length===0)return;var At=Ne.children[Qe.length-1];ce(At,"display","inline-block");var yt=ot.getMenuItemNodes(),It=yt.filter(function(Ft){return Ft.className.split(" ").indexOf(nt)>=0});It.forEach(function(Ft){ce(Ft,"display","inline-block")}),ot.menuItemSizes=yt.map(function(Ft){return Re(Ft,!0)}),It.forEach(function(Ft){ce(Ft,"display","none")}),ot.overflowedIndicatorWidth=Re(Ne.children[Ne.children.length-1],!0),ot.originalTotalWidth=ot.menuItemSizes.reduce(function(Ft,dt){return Ft+dt},0),ot.handleResize(),ce(At,"display","none")},ot.handleResize=function(){if(ot.props.mode!=="horizontal")return;var Ne=oe.findDOMNode(Object(f.a)(ot));if(!Ne)return;var Qe=Re(Ne);ot.overflowedItems=[];var At=0,yt;ot.originalTotalWidth>Qe+ut&&(yt=-1,ot.menuItemSizes.forEach(function(It){At+=It,At+ot.overflowedIndicatorWidth<=Qe&&(yt+=1)})),ot.setState({lastVisibleIndex:yt})},ot}return Object(A.a)(it,[{key:"componentDidMount",value:function(){var Ne=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Qe=oe.findDOMNode(this);if(!Qe)return;this.resizeObserver=new $.default(function(At){At.forEach(function(){var yt=Ne.cancelFrameId;cancelAnimationFrame(yt),Ne.cancelFrameId=requestAnimationFrame(Ne.setChildrenWidthAndResize)})}),[].slice.call(Qe.children).concat(Qe).forEach(function(At){Ne.resizeObserver.observe(At)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ne.resizeObserver.disconnect(),[].slice.call(Qe.children).concat(Qe).forEach(function(At){Ne.resizeObserver.observe(At)}),Ne.setChildrenWidthAndResize()}),this.mutationObserver.observe(Qe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Ne){var Qe=this,At=this.state.lastVisibleIndex;return(Ne||[]).reduce(function(yt,It,Ft){var dt=It;if(Qe.props.mode==="horizontal"){var Wt=Qe.getOverflowedSubMenuItem(It.props.eventKey,[]);At!==void 0&&Qe.props.className.indexOf("".concat(Qe.props.prefixCls,"-root"))!==-1&&(Ft>At&&(dt=w.cloneElement(It,{style:{display:"none"},eventKey:"".concat(It.props.eventKey,"-hidden"),className:"".concat(nt)})),Ft===At+1&&(Qe.overflowedItems=Ne.slice(At+1).map(function(Fn){return w.cloneElement(Fn,{key:Fn.props.eventKey,mode:"vertical-left"})}),Wt=Qe.getOverflowedSubMenuItem(It.props.eventKey,Qe.overflowedItems)));var tn=[].concat(Object(ye.a)(yt),[Wt,dt]);return Ft===Ne.length-1&&tn.push(Qe.getOverflowedSubMenuItem(It.props.eventKey,[],!0)),tn}return[].concat(Object(ye.a)(yt),[dt])},[])}},{key:"render",value:function(){var Ne=this.props,Qe=Ne.visible,At=Ne.prefixCls,yt=Ne.overflowedIndicator,It=Ne.mode,Ft=Ne.level,dt=Ne.tag,Wt=Ne.children,tn=Ne.theme,Fn=Object(se.a)(Ne,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Tn=dt;return w.createElement(Tn,Object.assign({},Fn),this.renderChildren(Wt))}}]),it}(w.Component);ht.defaultProps={tag:"div",className:""};var pt=ht;function xt(Ot){return Ot.length?Ot.every(function(He){return!!He.props.disabled}):!0}function Ke(Ot,He,it){var ot=Ot.getState();Ot.setState({activeKey:Object(R.a)(Object(R.a)({},ot.activeKey),{},Object(t.a)({},He,it))})}function Ue(Ot){return Ot.eventKey||"0-menu-"}function st(Ot,He){var it=He,ot=Ot.children,Ne=Ot.eventKey;if(it){var Qe;if(ve(ot,function(At,yt){At&&At.props&&!At.props.disabled&&it===X(At,Ne,yt)&&(Qe=!0)}),Qe)return it}return it=null,Ot.defaultActiveFirst&&ve(ot,function(At,yt){!it&&At&&!At.props.disabled&&(it=X(At,Ne,yt))}),it}function kt(Ot){if(Ot){var He=this.instanceArray.indexOf(Ot);He!==-1?this.instanceArray[He]=Ot:this.instanceArray.push(Ot)}}var gt=function(Ot){Object(h.a)(it,Ot);var He=Object(E.a)(it);function it(ot){var Ne;return Object(g.a)(this,it),Ne=He.call(this,ot),Ne.onKeyDown=function(Qe,At){var yt=Qe.keyCode,It;if(Ne.getFlatInstanceArray().forEach(function(dt){dt&&dt.props.active&&dt.onKeyDown&&(It=dt.onKeyDown(Qe))}),It)return 1;var Ft=null;return(yt===p.a.UP||yt===p.a.DOWN)&&(Ft=Ne.step(yt===p.a.UP?-1:1)),Ft?(Qe.preventDefault(),Ke(Ne.props.store,Ue(Ne.props),Ft.props.eventKey),typeof At=="function"&&At(Ft),1):void 0},Ne.onItemHover=function(Qe){var At=Qe.key,yt=Qe.hover;Ke(Ne.props.store,Ue(Ne.props),yt?At:null)},Ne.onDeselect=function(Qe){Ne.props.onDeselect(Qe)},Ne.onSelect=function(Qe){Ne.props.onSelect(Qe)},Ne.onClick=function(Qe){Ne.props.onClick(Qe)},Ne.onOpenChange=function(Qe){Ne.props.onOpenChange(Qe)},Ne.onDestroy=function(Qe){Ne.props.onDestroy(Qe)},Ne.getFlatInstanceArray=function(){return Ne.instanceArray},Ne.step=function(Qe){var At=Ne.getFlatInstanceArray(),yt=Ne.props.store.getState().activeKey[Ue(Ne.props)],It=At.length;if(!It)return null;Qe<0&&(At=At.concat().reverse());var Ft=-1;if(At.every(function(Fn,Tn){return Fn&&Fn.props.eventKey===yt?(Ft=Tn,!1):!0}),!Ne.props.defaultActiveFirst&&Ft!==-1&&xt(At.slice(Ft,It-1)))return;var dt=(Ft+1)%It,Wt=dt;do{var tn=At[Wt];if(!tn||tn.props.disabled)Wt=(Wt+1)%It;else return tn}while(Wt!==dt);return null},Ne.renderCommonMenuItem=function(Qe,At,yt){var It=Ne.props.store.getState(),Ft=Object(f.a)(Ne),dt=Ft.props,Wt=X(Qe,dt.eventKey,At),tn=Qe.props;if(!tn||typeof Qe.type=="string")return Qe;var Fn=Wt===It.activeKey,Tn=Object(R.a)(Object(R.a)({mode:tn.mode||dt.mode,level:dt.level,inlineIndent:dt.inlineIndent,renderMenuItem:Ne.renderMenuItem,rootPrefixCls:dt.prefixCls,index:At,parentMenu:dt.parentMenu,manualRef:tn.disabled?void 0:Object(d.a)(Qe.ref,kt.bind(Object(f.a)(Ne))),eventKey:Wt,active:!tn.disabled&&Fn,multiple:dt.multiple,onClick:function($n){(tn.onClick||B)($n),Ne.onClick($n)},onItemHover:Ne.onItemHover,motion:dt.motion,subMenuOpenDelay:dt.subMenuOpenDelay,subMenuCloseDelay:dt.subMenuCloseDelay,forceSubMenuRender:dt.forceSubMenuRender,onOpenChange:Ne.onOpenChange,onDeselect:Ne.onDeselect,onSelect:Ne.onSelect,builtinPlacements:dt.builtinPlacements,itemIcon:tn.itemIcon||Ne.props.itemIcon,expandIcon:tn.expandIcon||Ne.props.expandIcon},yt),{},{direction:dt.direction});return(dt.mode==="inline"||Ee())&&(Tn.triggerSubMenuAction="click"),w.cloneElement(Qe,Tn)},Ne.renderMenuItem=function(Qe,At,yt){if(!Qe)return null;var It=Ne.props.store.getState(),Ft={openKeys:It.openKeys,selectedKeys:It.selectedKeys,triggerSubMenuAction:Ne.props.triggerSubMenuAction,subMenuKey:yt};return Ne.renderCommonMenuItem(Qe,At,Ft)},ot.store.setState({activeKey:Object(R.a)(Object(R.a)({},ot.store.getState().activeKey),{},Object(t.a)({},ot.eventKey,st(ot,ot.activeKey)))}),Ne.instanceArray=[],Ne}return Object(A.a)(it,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ne){return this.props.visible||Ne.visible||this.props.className!==Ne.className||!_()(this.props.style,Ne.style)}},{key:"componentDidUpdate",value:function(Ne){var Qe=this.props,At="activeKey"in Qe?Qe.activeKey:Qe.store.getState().activeKey[Ue(Qe)],yt=st(Qe,At);if(yt!==At)Ke(Qe.store,Ue(Qe),yt);else if("activeKey"in Ne){var It=st(Ne,Ne.activeKey);yt!==It&&Ke(Qe.store,Ue(Qe),yt)}}},{key:"render",value:function(){var Ne=this,Qe=Object(o.a)({},this.props);this.instanceArray=[];var At=C()(Qe.prefixCls,Qe.className,"".concat(Qe.prefixCls,"-").concat(Qe.mode)),yt={className:At,role:Qe.role||"menu"};Qe.id&&(yt.id=Qe.id),Qe.focusable&&(yt.tabIndex=0,yt.onKeyDown=this.onKeyDown);var It=Qe.prefixCls,Ft=Qe.eventKey,dt=Qe.visible,Wt=Qe.level,tn=Qe.mode,Fn=Qe.overflowedIndicator,Tn=Qe.theme;return Pe.forEach(function(Jn){return delete Qe[Jn]}),delete Qe.onClick,w.createElement(pt,Object.assign({},Qe,{prefixCls:It,mode:tn,tag:"ul",level:Wt,theme:Tn,visible:dt,overflowedIndicator:Fn},yt),w.Children.map(Qe.children,function(Jn,$n){return Ne.renderMenuItem(Jn,$n,Ft||"0-menu-")}))}}]),it}(w.Component);gt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:B};var bt=Object(r.b)()(gt),Ve=bt,We=a("Kwbf");function Je(Ot,He,it){var ot=Ot.prefixCls,Ne=Ot.motion,Qe=Ot.defaultMotions,At=Qe===void 0?{}:Qe,yt=Ot.openAnimation,It=Ot.openTransitionName,Ft=He.switchingModeFromInline;if(Ne)return Ne;if(Object(i.a)(yt)==="object"&&yt)Object(We.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof yt=="string")return{motionName:"".concat(ot,"-open-").concat(yt)};if(It)return{motionName:It};var dt=At[it];return dt||(Ft?null:At.other)}var Te=function(Ot){Object(h.a)(it,Ot);var He=Object(E.a)(it);function it(ot){var Ne;Object(g.a)(this,it),Ne=He.call(this,ot),Ne.inlineOpenKeys=[],Ne.onSelect=function(yt){var It=Object(f.a)(Ne),Ft=It.props;if(Ft.selectable){var dt=Ne.store.getState(),Wt=dt.selectedKeys,tn=yt.key;Ft.multiple?Wt=Wt.concat([tn]):Wt=[tn],"selectedKeys"in Ft||Ne.store.setState({selectedKeys:Wt}),Ft.onSelect(Object(R.a)(Object(R.a)({},yt),{},{selectedKeys:Wt}))}},Ne.onClick=function(yt){var It=Ne.getRealMenuMode(),Ft=Object(f.a)(Ne),dt=Ft.store,Wt=Ft.props.onOpenChange;It!=="inline"&&!("openKeys"in Ne.props)&&(dt.setState({openKeys:[]}),Wt([])),Ne.props.onClick(yt)},Ne.onKeyDown=function(yt,It){Ne.innerMenu.getWrappedInstance().onKeyDown(yt,It)},Ne.onOpenChange=function(yt){var It=Object(f.a)(Ne),Ft=It.props,dt=Ne.store.getState().openKeys.concat(),Wt=!1,tn=function(Tn){var Jn=!1;if(Tn.open)Jn=dt.indexOf(Tn.key)===-1,Jn&&dt.push(Tn.key);else{var $n=dt.indexOf(Tn.key);Jn=$n!==-1,Jn&&dt.splice($n,1)}Wt=Wt||Jn};Array.isArray(yt)?yt.forEach(tn):tn(yt),Wt&&("openKeys"in Ne.props||Ne.store.setState({openKeys:dt}),Ft.onOpenChange(dt))},Ne.onDeselect=function(yt){var It=Object(f.a)(Ne),Ft=It.props;if(Ft.selectable){var dt=Ne.store.getState().selectedKeys.concat(),Wt=yt.key,tn=dt.indexOf(Wt);tn!==-1&&dt.splice(tn,1),"selectedKeys"in Ft||Ne.store.setState({selectedKeys:dt}),Ft.onDeselect(Object(R.a)(Object(R.a)({},yt),{},{selectedKeys:dt}))}},Ne.onMouseEnter=function(yt){Ne.restoreModeVerticalFromInline();var It=Ne.props.onMouseEnter;It&&It(yt)},Ne.onTransitionEnd=function(yt){var It=yt.propertyName==="width"&&yt.target===yt.currentTarget,Ft=yt.target.className,dt=Object.prototype.toString.call(Ft)==="[object SVGAnimatedString]"?Ft.animVal:Ft,Wt=yt.propertyName==="font-size"&&dt.indexOf("anticon")>=0;(It||Wt)&&Ne.restoreModeVerticalFromInline()},Ne.setInnerMenu=function(yt){Ne.innerMenu=yt},Ne.isRootMenu=!0;var Qe=ot.defaultSelectedKeys,At=ot.defaultOpenKeys;return"selectedKeys"in ot&&(Qe=ot.selectedKeys||[]),"openKeys"in ot&&(At=ot.openKeys||[]),Ne.store=Object(r.c)({selectedKeys:Qe,openKeys:At,activeKey:{"0-menu-":st(ot,ot.activeKey)}}),Ne.state={switchingModeFromInline:!1},Ne}return Object(A.a)(it,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ne){this.updateOpentKeysWhenSwitchMode(Ne),this.updateMiniStore();var Qe=this.props,At=Qe.siderCollapsed,yt=Qe.inlineCollapsed,It=Qe.onOpenChange;(!Ne.inlineCollapsed&&yt||!Ne.siderCollapsed&&At)&&It([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ne){var Qe=this.props,At=this.store,yt=this.inlineOpenKeys,It=At.getState(),Ft={};Ne.mode==="inline"&&Qe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Qe||((Qe.inlineCollapsed&&!Ne.inlineCollapsed||Qe.siderCollapsed&&!Ne.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=It.openKeys.concat(),Ft.openKeys=[]),(!Qe.inlineCollapsed&&Ne.inlineCollapsed||!Qe.siderCollapsed&&Ne.siderCollapsed)&&(Ft.openKeys=yt,this.inlineOpenKeys=[])),Object.keys(Ft).length&&At.setState(Ft)}},{key:"updateMenuDisplay",value:function(){var Ne=this.props.collapsedWidth,Qe=this.store,At=this.prevOpenKeys,yt=this.getInlineCollapsed()&&(Ne===0||Ne==="0"||Ne==="0px");yt?(this.prevOpenKeys=Qe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):At&&(this.store.setState({openKeys:At}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ne=this.props.mode,Qe=this.state.switchingModeFromInline,At=this.getInlineCollapsed();return Qe&&At?"inline":At?"vertical":Ne}},{key:"getInlineCollapsed",value:function(){var Ne=this.props,Qe=Ne.inlineCollapsed,At=Ne.siderCollapsed;return At!==void 0?At:Qe}},{key:"restoreModeVerticalFromInline",value:function(){var Ne=this.state.switchingModeFromInline;Ne&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Ne=Object(R.a)({},Object(m.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Qe=this.getRealMenuMode();return Ne.className+=" ".concat(Ne.prefixCls,"-root"),Ne.direction==="rtl"&&(Ne.className+=" ".concat(Ne.prefixCls,"-rtl")),Ne=Object(R.a)(Object(R.a)({},Ne),{},{mode:Qe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Je(this.props,this.state,Qe)}),delete Ne.openAnimation,delete Ne.openTransitionName,w.createElement(r.a,{store:this.store},w.createElement(Ve,Object.assign({},Ne,{ref:this.setInnerMenu}),this.props.children))}}]),it}(w.Component);Te.defaultProps={selectable:!0,onClick:B,onSelect:B,onOpenChange:B,onDeselect:B,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:w.createElement("span",null,"\xB7\xB7\xB7")};var Ie=Te,Fe=function(Ot){Object(h.a)(it,Ot);var He=Object(E.a)(it);function it(){var ot;return Object(g.a)(this,it),ot=He.apply(this,arguments),ot.onKeyDown=function(Ne){var Qe=Ne.keyCode;return Qe===p.a.ENTER?(ot.onClick(Ne),!0):void 0},ot.onMouseLeave=function(Ne){var Qe=ot.props,At=Qe.eventKey,yt=Qe.onItemHover,It=Qe.onMouseLeave;yt({key:At,hover:!1}),It({key:At,domEvent:Ne})},ot.onMouseEnter=function(Ne){var Qe=ot.props,At=Qe.eventKey,yt=Qe.onItemHover,It=Qe.onMouseEnter;yt({key:At,hover:!0}),It({key:At,domEvent:Ne})},ot.onClick=function(Ne){var Qe=ot.props,At=Qe.eventKey,yt=Qe.multiple,It=Qe.onClick,Ft=Qe.onSelect,dt=Qe.onDeselect,Wt=Qe.isSelected,tn={key:At,keyPath:[At],item:Object(f.a)(ot),domEvent:Ne};It(tn),yt?Wt?dt(tn):Ft(tn):Wt||Ft(tn)},ot.saveNode=function(Ne){ot.node=Ne},ot}return Object(A.a)(it,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ne=this.props;Ne.onDestroy&&Ne.onDestroy(Ne.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Ne,Qe=Object(R.a)({},this.props),At=C()(this.getPrefixCls(),Qe.className,(Ne={},Object(t.a)(Ne,this.getActiveClassName(),!Qe.disabled&&Qe.active),Object(t.a)(Ne,this.getSelectedClassName(),Qe.isSelected),Object(t.a)(Ne,this.getDisabledClassName(),Qe.disabled),Ne)),yt=Object(R.a)(Object(R.a)({},Qe.attribute),{},{title:typeof Qe.title=="string"?Qe.title:void 0,className:At,role:Qe.role||"menuitem","aria-disabled":Qe.disabled});Qe.role==="option"?yt=Object(R.a)(Object(R.a)({},yt),{},{role:"option","aria-selected":Qe.isSelected}):(Qe.role===null||Qe.role==="none")&&(yt.role="none");var It={onClick:Qe.disabled?null:this.onClick,onMouseLeave:Qe.disabled?null:this.onMouseLeave,onMouseEnter:Qe.disabled?null:this.onMouseEnter},Ft=Object(R.a)({},Qe.style);Qe.mode==="inline"&&(Qe.direction==="rtl"?Ft.paddingRight=Qe.inlineIndent*Qe.level:Ft.paddingLeft=Qe.inlineIndent*Qe.level),Pe.forEach(function(Wt){return delete Qe[Wt]}),delete Qe.direction;var dt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(dt=w.createElement(this.props.itemIcon,this.props)),w.createElement("li",Object.assign({},Object(m.default)(Qe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),yt,It,{style:Ft,ref:this.saveNode}),Qe.children,dt)}}]),it}(w.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:B,onMouseEnter:B,onMouseLeave:B,manualRef:B};var Xe=Object(r.b)(function(Ot,He){var it=Ot.activeKey,ot=Ot.selectedKeys,Ne=He.eventKey,Qe=He.subMenuKey;return{active:it[Qe]===Ne,isSelected:ot.indexOf(Ne)!==-1}})(Fe),vt=Xe,rt=function(Ot){Object(h.a)(it,Ot);var He=Object(E.a)(it);function it(){var ot;return Object(g.a)(this,it),ot=He.apply(this,arguments),ot.renderInnerMenuItem=function(Ne){var Qe=ot.props,At=Qe.renderMenuItem,yt=Qe.index;return At(Ne,yt,ot.props.subMenuKey)},ot}return Object(A.a)(it,[{key:"render",value:function(){var Ne=Object(o.a)({},this.props),Qe=Ne.className,At=Qe===void 0?"":Qe,yt=Ne.rootPrefixCls,It="".concat(yt,"-item-group-title"),Ft="".concat(yt,"-item-group-list"),dt=Ne.title,Wt=Ne.children;return Pe.forEach(function(tn){return delete Ne[tn]}),delete Ne.onClick,delete Ne.direction,w.createElement("li",Object.assign({},Ne,{className:"".concat(At," ").concat(yt,"-item-group")}),w.createElement("div",{className:It,title:typeof dt=="string"?dt:void 0},dt),w.createElement("ul",{className:Ft},w.Children.map(Wt,this.renderInnerMenuItem)))}}]),it}(w.Component);rt.isMenuItemGroup=!0,rt.defaultProps={disabled:!0};var Lt=rt,Jt=function(He){var it=He.className,ot=He.rootPrefixCls,Ne=He.style;return w.createElement("li",{className:"".concat(it," ").concat(ot,"-item-divider"),style:Ne})};Jt.defaultProps={disabled:!0,className:"",style:{}};var En=Jt,nn=J.e=Ie},"1nVM":function(M,J,a){M.exports={titlesize:"titlesize___3R6Gt",wrap:"wrap___33HQq",labelWrap:"labelWrap___1iqwF",label:"label___27cm-",labelContent:"labelContent___1fVMu",flexRow:"flexRow___PEsIJ",color999:"color999___2Yr8Q",radio:"radio___OcreT",color0152d9:"color0152d9___1FV6h",popover:"popover___2xk-c",serviceSettingName:"serviceSettingName___Ld9Mm",flexJustifyCenter:"flexJustifyCenter___18x9a",flexAlignEnd:"flexAlignEnd___1C-X3",flexAlignCenter:"flexAlignCenter___2oSmu",flexColumn:"flexColumn___2ysFR",formWrap:"formWrap___EPA-v",titleWrap:"titleWrap___3_rFr",fieldWrap:"fieldWrap___2jAZP",button:"button___3XvNW",buttonFixed:"buttonFixed___2Zm2R",buttonWrap:"buttonWrap___1OYLR",width180:"width180___jK9Il",width100:"width100___3krQH",width280:"width280___2XLRF",difficultyHint:"difficultyHint___haMiD",color888:"color888___N5haY",serviceSettingWrap:"serviceSettingWrap___2mA8Y",serviceSetLeft:"serviceSetLeft___15ZiZ",serviceSetInput:"serviceSetInput___1xV8R",serviceSetMemoryInput:"serviceSetMemoryInput___1b9Wn",serviceSetTip:"serviceSetTip___3OSZX",installPackage:"installPackage___2Q149",selectSchool:"selectSchool___3jjwJ",dataPicker:"dataPicker___3FMTF",bg:"bg___SWlll",content:"content___3UkVO",head:"head___35V3S",headCount:"headCount___2pjjr",itemWrap:"itemWrap___1yg5K",imgWrap:"imgWrap___R0ss7",img:"img___VI1B8",manager:"manager___8Zuo9",itemContent:"itemContent___2pnzz",nameWrap:"nameWrap___3Ntoy",name:"name___3v0W9",actionGroup:"actionGroup___nzwV5",deleteIcon:"deleteIcon___tZStC",schoolWrap:"schoolWrap___qVkuP",school:"school___2WDSB",countWrap:"countWrap___1ZPyo",deletetitle:"deletetitle___3PnVP",yseTitle:"yseTitle___2rGJC",modal:"modal___TzuWu",colorOrange:"colorOrange___WAQOi",colorYellow:"colorYellow___giatj",graaytitle:"graaytitle___1xud8",graaymingl:"graaymingl___KdIA9",graayminglthree:"graayminglthree___1To0y",graaymingltow:"graaymingltow___2ZE_h"}},"1uat":function(M,J,a){(function(R,g,A){M.exports=J=g(a("Ib8C"),a("MlIO"))})(this,function(R){return function(){var g=R,A=g.lib,f=A.Hasher,h=g.x64,E=h.Word,w=h.WordArray,r=g.algo;function m(){return E.create.apply(E,arguments)}var o=[m(1116352408,3609767458),m(1899447441,602891725),m(3049323471,3964484399),m(3921009573,2173295548),m(961987163,4081628472),m(1508970993,3053834265),m(2453635748,2937671579),m(2870763221,3664609560),m(3624381080,2734883394),m(310598401,1164996542),m(607225278,1323610764),m(1426881987,3590304994),m(1925078388,4068182383),m(2162078206,991336113),m(2614888103,633803317),m(3248222580,3479774868),m(3835390401,2666613458),m(4022224774,944711139),m(264347078,2341262773),m(604807628,2007800933),m(770255983,1495990901),m(1249150122,1856431235),m(1555081692,3175218132),m(1996064986,2198950837),m(2554220882,3999719339),m(2821834349,766784016),m(2952996808,2566594879),m(3210313671,3203337956),m(3336571891,1034457026),m(3584528711,2466948901),m(113926993,3758326383),m(338241895,168717936),m(666307205,1188179964),m(773529912,1546045734),m(1294757372,1522805485),m(1396182291,2643833823),m(1695183700,2343527390),m(1986661051,1014477480),m(2177026350,1206759142),m(2456956037,344077627),m(2730485921,1290863460),m(2820302411,3158454273),m(3259730800,3505952657),m(3345764771,106217008),m(3516065817,3606008344),m(3600352804,1432725776),m(4094571909,1467031594),m(275423344,851169720),m(430227734,3100823752),m(506948616,1363258195),m(659060556,3750685593),m(883997877,3785050280),m(958139571,3318307427),m(1322822218,3812723403),m(1537002063,2003034995),m(1747873779,3602036899),m(1955562222,1575990012),m(2024104815,1125592928),m(2227730452,2716904306),m(2361852424,442776044),m(2428436474,593698344),m(2756734187,3733110249),m(3204031479,2999351573),m(3329325298,3815920427),m(3391569614,3928383900),m(3515267271,566280711),m(3940187606,3454069534),m(4118630271,4000239992),m(116418474,1914138554),m(174292421,2731055270),m(289380356,3203993006),m(460393269,320620315),m(685471733,587496836),m(852142971,1086792851),m(1017036298,365543100),m(1126000580,2618297676),m(1288033470,3409855158),m(1501505948,4234509866),m(1607167915,987167468),m(1816402316,1246189591)],t=[];(function(){for(var d=0;d<80;d++)t[d]=m()})();var p=r.SHA512=f.extend({_doReset:function(){this._hash=new w.init([new E.init(1779033703,4089235720),new E.init(3144134277,2227873595),new E.init(1013904242,4271175723),new E.init(2773480762,1595750129),new E.init(1359893119,2917565137),new E.init(2600822924,725511199),new E.init(528734635,4215389547),new E.init(1541459225,327033209)])},_doProcessBlock:function(d,s){for(var _=this._hash.words,v=_[0],C=_[1],i=_[2],u=_[3],b=_[4],O=_[5],y=_[6],c=_[7],P=v.high,D=v.low,S=C.high,x=C.low,l=i.high,T=i.low,k=u.high,N=u.low,U=b.high,z=b.low,H=O.high,K=O.low,V=y.high,W=y.low,B=c.high,X=c.low,ue=P,ve=D,he=S,Pe=x,Re=l,ce=T,Ee=k,ye=N,se=U,oe=z,$=H,pe=K,ne=V,re=W,Se=B,ie=X,q=0;q<80;q++){var Y,te,Oe=t[q];if(q<16)te=Oe.high=d[s+q*2]|0,Y=Oe.low=d[s+q*2+1]|0;else{var Ce=t[q-15],Me=Ce.high,$e=Ce.low,nt=(Me>>>1|$e<<31)^(Me>>>8|$e<<24)^Me>>>7,ut=($e>>>1|Me<<31)^($e>>>8|Me<<24)^($e>>>7|Me<<25),ht=t[q-2],pt=ht.high,xt=ht.low,Ke=(pt>>>19|xt<<13)^(pt<<3|xt>>>29)^pt>>>6,Ue=(xt>>>19|pt<<13)^(xt<<3|pt>>>29)^(xt>>>6|pt<<26),st=t[q-7],kt=st.high,gt=st.low,bt=t[q-16],Ve=bt.high,We=bt.low;Y=ut+gt,te=nt+kt+(Y>>>0>>0?1:0),Y=Y+Ue,te=te+Ke+(Y>>>0>>0?1:0),Y=Y+We,te=te+Ve+(Y>>>0>>0?1:0),Oe.high=te,Oe.low=Y}var Je=se&$^~se&ne,Te=oe&pe^~oe&re,Ie=ue&he^ue&Re^he&Re,Fe=ve&Pe^ve&ce^Pe&ce,Xe=(ue>>>28|ve<<4)^(ue<<30|ve>>>2)^(ue<<25|ve>>>7),vt=(ve>>>28|ue<<4)^(ve<<30|ue>>>2)^(ve<<25|ue>>>7),rt=(se>>>14|oe<<18)^(se>>>18|oe<<14)^(se<<23|oe>>>9),Lt=(oe>>>14|se<<18)^(oe>>>18|se<<14)^(oe<<23|se>>>9),Jt=o[q],En=Jt.high,nn=Jt.low,Ot=ie+Lt,He=Se+rt+(Ot>>>0>>0?1:0),Ot=Ot+Te,He=He+Je+(Ot>>>0>>0?1:0),Ot=Ot+nn,He=He+En+(Ot>>>0>>0?1:0),Ot=Ot+Y,He=He+te+(Ot>>>0>>0?1:0),it=vt+Fe,ot=Xe+Ie+(it>>>0>>0?1:0);Se=ne,ie=re,ne=$,re=pe,$=se,pe=oe,oe=ye+Ot|0,se=Ee+He+(oe>>>0>>0?1:0)|0,Ee=Re,ye=ce,Re=he,ce=Pe,he=ue,Pe=ve,ve=Ot+it|0,ue=He+ot+(ve>>>0>>0?1:0)|0}D=v.low=D+ve,v.high=P+ue+(D>>>0>>0?1:0),x=C.low=x+Pe,C.high=S+he+(x>>>0>>0?1:0),T=i.low=T+ce,i.high=l+Re+(T>>>0>>0?1:0),N=u.low=N+ye,u.high=k+Ee+(N>>>0>>0?1:0),z=b.low=z+oe,b.high=U+se+(z>>>0>>0?1:0),K=O.low=K+pe,O.high=H+$+(K>>>0>>0?1:0),W=y.low=W+re,y.high=V+ne+(W>>>0>>0?1:0),X=c.low=X+ie,c.high=B+Se+(X>>>0>>0?1:0)},_doFinalize:function(){var d=this._data,s=d.words,_=this._nDataBytes*8,v=d.sigBytes*8;s[v>>>5]|=128<<24-v%32,s[(v+128>>>10<<5)+30]=Math.floor(_/4294967296),s[(v+128>>>10<<5)+31]=_,d.sigBytes=s.length*4,this._process();var C=this._hash.toX32();return C},clone:function(){var d=f.clone.call(this);return d._hash=this._hash.clone(),d},blockSize:1024/32});g.SHA512=f._createHelper(p),g.HmacSHA512=f._createHmacHelper(p)}(),R.SHA512})},"3d99":function(M,J,a){M.exports={flex_box_center:"flex_box_center___29402",flex_space_between:"flex_space_between___1DQkL",flex_box_vertical_center:"flex_box_vertical_center___2c5rw",flex_box_center_end:"flex_box_center_end___31UwQ",flex_box_column:"flex_box_column___27HfP",dataset:"dataset___1COtX",header:"header___3oVtK",title:"title___pTdL6",dataPath:"dataPath___2IjLi",pathTitle:"pathTitle___3y3r0",btns:"btns___3HrP1",content:"content___2DtrV",customTable:"customTable____cu3-",row:"row___18XmF",empty:"empty___1WFDJ",path:"path___2fzVn",text:"text___5NWvD",actionsBtns:"actionsBtns___YB-ud",customModal:"customModal___S24dW",shareModal:"shareModal___1fTc3",fileName:"fileName___3b0gK",renameModal:"renameModal___3antI",errorDes:"errorDes___3PXc9",uploadFileModal:"uploadFileModal___3cGWq"}},"3wET":function(M,J){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"3y9D":function(M,J,a){(function(R,g){M.exports=J=g(a("Ib8C"))})(this,function(R){return function(){var g=R,A=g.lib,f=A.WordArray,h=A.Hasher,E=g.algo,w=[],r=E.SHA1=h.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(m,o){for(var t=this._hash.words,p=t[0],d=t[1],s=t[2],_=t[3],v=t[4],C=0;C<80;C++){if(C<16)w[C]=m[o+C]|0;else{var i=w[C-3]^w[C-8]^w[C-14]^w[C-16];w[C]=i<<1|i>>>31}var u=(p<<5|p>>>27)+v+w[C];C<20?u+=(d&s|~d&_)+1518500249:C<40?u+=(d^s^_)+1859775393:C<60?u+=(d&s|d&_|s&_)-1894007588:u+=(d^s^_)-899497514,v=_,_=s,s=d<<30|d>>>2,d=p,p=u}t[0]=t[0]+p|0,t[1]=t[1]+d|0,t[2]=t[2]+s|0,t[3]=t[3]+_|0,t[4]=t[4]+v|0},_doFinalize:function(){var m=this._data,o=m.words,t=this._nDataBytes*8,p=m.sigBytes*8;return o[p>>>5]|=128<<24-p%32,o[(p+64>>>9<<4)+14]=Math.floor(t/4294967296),o[(p+64>>>9<<4)+15]=t,m.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var m=h.clone.call(this);return m._hash=this._hash.clone(),m}});g.SHA1=h._createHelper(r),g.HmacSHA1=h._createHmacHelper(r)}(),R.SHA1})},4:function(M,J){},"498V":function(M,J,a){M.exports=a.p+"static/logo.22b9a281.svg"},"4SAo":function(M,J,a){M.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(M,J){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(M,J){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(M,J,a){"use strict";a.d(J,"a",function(){return u}),a.d(J,"b",function(){return D});var R=a("Ty5D"),g=a("dI71"),A=a("q1tI"),f=a.n(A),h=a("YS25"),E=a("17x9"),w=a.n(E),r=a("wx14"),m=a("zLVn"),o=a("9R94"),t=function(x){Object(g.a)(l,x);function l(){for(var k,N=arguments.length,U=new Array(N),z=0;z>>24)&16711935|(b<<24|b>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360;var y=C[u];y.high^=O,y.low^=b}for(var c=0;c<24;c++){for(var P=0;P<5;P++){for(var D=0,S=0,x=0;x<5;x++){var y=C[P+5*x];D^=y.high,S^=y.low}var l=d[P];l.high=D,l.low=S}for(var P=0;P<5;P++)for(var T=d[(P+4)%5],k=d[(P+1)%5],N=k.high,U=k.low,D=T.high^(N<<1|U>>>31),S=T.low^(U<<1|N>>>31),x=0;x<5;x++){var y=C[P+5*x];y.high^=D,y.low^=S}for(var z=1;z<25;z++){var D,S,y=C[z],H=y.high,K=y.low,V=o[z];V<32?(D=H<>>32-V,S=K<>>32-V):(D=K<>>64-V,S=H<>>64-V);var W=d[t[z]];W.high=D,W.low=S}var B=d[0],X=C[0];B.high=X.high,B.low=X.low;for(var P=0;P<5;P++)for(var x=0;x<5;x++){var z=P+5*x,y=C[z],ue=d[z],ve=d[(P+1)%5+5*x],he=d[(P+2)%5+5*x];y.high=ue.high^~ve.high&he.high,y.low=ue.low^~ve.low&he.low}var y=C[0],Pe=p[c];y.high^=Pe.high,y.low^=Pe.low}},_doFinalize:function(){var _=this._data,v=_.words,C=this._nDataBytes*8,i=_.sigBytes*8,u=this.blockSize*32;v[i>>>5]|=1<<24-i%32,v[(g.ceil((i+1)/u)*u>>>5)-1]|=128,_.sigBytes=v.length*4,this._process();for(var b=this._state,O=this.cfg.outputLength/8,y=O/8,c=[],P=0;P>>24)&16711935|(S<<24|S>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,c.push(x),c.push(S)}return new h.init(c,O)},clone:function(){for(var _=E.clone.call(this),v=_._state=this._state.slice(0),C=0;C<25;C++)v[C]=v[C].clone();return _}});A.SHA3=E._createHelper(s),A.HmacSHA3=E._createHmacHelper(s)}(Math),R.SHA3})},"6+eU":function(M,J,a){"use strict";a.d(J,"a",function(){return c});var R=a("wx14"),g=a("rePB"),A=a("VTBJ"),f=a("1OyB"),h=a("vuIU"),E=a("Ji7U"),w=a("LK+K"),r=a("q1tI"),m=a.n(r),o=a("TSYQ"),t=a.n(o),p=function(D){var S,x="".concat(D.rootPrefixCls,"-item"),l=t()(x,"".concat(x,"-").concat(D.page),(S={},Object(g.a)(S,"".concat(x,"-active"),D.active),Object(g.a)(S,D.className,!!D.className),Object(g.a)(S,"".concat(x,"-disabled"),!D.page),S)),T=function(){D.onClick(D.page)},k=function(U){D.onKeyPress(U,D.onClick,D.page)};return m.a.createElement("li",{title:D.showTitle?D.page:null,className:l,onClick:T,onKeyPress:k,tabIndex:"0"},D.itemRender(D.page,"page",m.a.createElement("a",{rel:"nofollow"},D.page)))},d=p,s={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},_=function(P){Object(E.a)(S,P);var D=Object(w.a)(S);function S(){var x;Object(f.a)(this,S);for(var l=arguments.length,T=new Array(l),k=0;k=0||N.relatedTarget.className.indexOf("".concat(K,"-next"))>=0))return;x.setState({goInputText:""}),H(x.getValidValue())},x.go=function(N){var U=x.state.goInputText;if(U==="")return;(N.keyCode===s.ENTER||N.type==="click")&&(x.setState({goInputText:""}),x.props.quickGo(x.getValidValue()))},x}return Object(h.a)(S,[{key:"getValidValue",value:function(){var l=this.state,T=l.goInputText,k=l.current;return!T||isNaN(T)?k:Number(T)}},{key:"getPageSizeOptions",value:function(){var l=this.props,T=l.pageSize,k=l.pageSizeOptions;return k.some(function(N){return N.toString()===T.toString()})?k:k.concat([T.toString()]).sort(function(N,U){var z=isNaN(Number(N))?0:Number(N),H=isNaN(Number(U))?0:Number(U);return z-H})}},{key:"render",value:function(){var l=this,T=this.props,k=T.pageSize,N=T.locale,U=T.rootPrefixCls,z=T.changeSize,H=T.quickGo,K=T.goButton,V=T.selectComponentClass,W=T.buildOptionText,B=T.selectPrefixCls,X=T.disabled,ue=this.state.goInputText,ve="".concat(U,"-options"),he=V,Pe=null,Re=null,ce=null;if(!z&&!H)return null;var Ee=this.getPageSizeOptions();if(z&&he){var ye=Ee.map(function(se,oe){return m.a.createElement(he.Option,{key:oe,value:se.toString()},(W||l.buildOptionText)(se))});Pe=m.a.createElement(he,{disabled:X,prefixCls:B,showSearch:!1,className:"".concat(ve,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(k||Ee[0]).toString(),onChange:this.changeSize,getPopupContainer:function(oe){return oe.parentNode}},ye)}return H&&(K&&(ce=typeof K=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:X,className:"".concat(ve,"-quick-jumper-button")},N.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},K)),Re=m.a.createElement("div",{className:"".concat(ve,"-quick-jumper")},N.jump_to,m.a.createElement("input",{disabled:X,type:"text",value:ue,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),N.page,ce)),m.a.createElement("li",{className:"".concat(ve)},Pe,Re)}}]),S}(m.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var v=_,C=a("N2Kk");function i(){}function u(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function b(P,D,S){return S}function O(P,D,S){var x=typeof P=="undefined"?D.pageSize:P;return Math.floor((S.total-1)/x)+1}var y=function(P){Object(E.a)(S,P);var D=Object(w.a)(S);function S(x){var l;Object(f.a)(this,S),l=D.call(this,x),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(O(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(z,H){var K=l.props.prefixCls,V=z||m.a.createElement("button",{type:"button","aria-label":H,className:"".concat(K,"-item-link")});return typeof z=="function"&&(V=m.a.createElement(z,Object(A.a)({},l.props))),V},l.savePaginationNode=function(z){l.paginationNode=z},l.isValid=function(z){return u(z)&&z!==l.state.current},l.shouldDisplayQuickJumper=function(){var z=l.props,H=z.showQuickJumper,K=z.pageSize,V=z.total;return V<=K?!1:H},l.handleKeyDown=function(z){(z.keyCode===s.ARROW_UP||z.keyCode===s.ARROW_DOWN)&&z.preventDefault()},l.handleKeyUp=function(z){var H=l.getValidValue(z),K=l.state.currentInputValue;H!==K&&l.setState({currentInputValue:H}),z.keyCode===s.ENTER?l.handleChange(H):z.keyCode===s.ARROW_UP?l.handleChange(H-1):z.keyCode===s.ARROW_DOWN&&l.handleChange(H+1)},l.changePageSize=function(z){var H=l.state.current,K=O(z,l.state,l.props);H=H>K?K:H,K===0&&(H=l.state.current),typeof z=="number"&&("pageSize"in l.props||l.setState({pageSize:z}),"current"in l.props||l.setState({current:H,currentInputValue:H})),l.props.onShowSizeChange(H,z),"onChange"in l.props&&l.props.onChange&&l.props.onChange(H,z)},l.handleChange=function(z){var H=l.props.disabled,K=z;if(l.isValid(K)&&!H){var V=O(void 0,l.state,l.props);K>V?K=V:K<1&&(K=1),"current"in l.props||l.setState({current:K,currentInputValue:K});var W=l.state.pageSize;return l.props.onChange(K,W),K}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current2?K-2:0),W=2;W=k?U=k:U=Number(T),U}},{key:"getShowSizeChanger",value:function(){var l=this.props,T=l.showSizeChanger,k=l.total,N=l.totalBoundaryShowSizeChanger;return typeof T!="undefined"?T:k>N}},{key:"renderPrev",value:function(l){var T=this.props,k=T.prevIcon,N=T.itemRender,U=N(l,"prev",this.getItemIcon(k,"prev page")),z=!this.hasPrev();return Object(r.isValidElement)(U)?Object(r.cloneElement)(U,{disabled:z}):U}},{key:"renderNext",value:function(l){var T=this.props,k=T.nextIcon,N=T.itemRender,U=N(l,"next",this.getItemIcon(k,"next page")),z=!this.hasNext();return Object(r.isValidElement)(U)?Object(r.cloneElement)(U,{disabled:z}):U}},{key:"render",value:function(){var l=this,T=this.props,k=T.prefixCls,N=T.className,U=T.style,z=T.disabled,H=T.hideOnSinglePage,K=T.total,V=T.locale,W=T.showQuickJumper,B=T.showLessItems,X=T.showTitle,ue=T.showTotal,ve=T.simple,he=T.itemRender,Pe=T.showPrevNextJumpers,Re=T.jumpPrevIcon,ce=T.jumpNextIcon,Ee=T.selectComponentClass,ye=T.selectPrefixCls,se=T.pageSizeOptions,oe=this.state,$=oe.current,pe=oe.pageSize,ne=oe.currentInputValue;if(H===!0&&K<=pe)return null;var re=O(void 0,this.state,this.props),Se=[],ie=null,q=null,Y=null,te=null,Oe=null,Ce=W&&W.goButton,Me=B?1:2,$e=$-1>0?$-1:0,nt=$+1=Me*2&&$!==1+2&&(Se[0]=Object(r.cloneElement)(Se[0],{className:"".concat(k,"-item-after-jump-prev")}),Se.unshift(ie)),re-$>=Me*2&&$!==re-2&&(Se[Se.length-1]=Object(r.cloneElement)(Se[Se.length-1],{className:"".concat(k,"-item-before-jump-next")}),Se.push(q)),st!==1&&Se.unshift(Y),kt!==re&&Se.push(te)}var Ve=null;ue&&(Ve=m.a.createElement("li",{className:"".concat(k,"-total-text")},ue(K,[K===0?0:($-1)*pe+1,$*pe>K?K:$*pe])));var We=!this.hasPrev()||!re,Je=!this.hasNext()||!re;return m.a.createElement("ul",Object(R.a)({className:t()(k,N,Object(g.a)({},"".concat(k,"-disabled"),z)),style:U,unselectable:"unselectable",ref:this.savePaginationNode},ut),Ve,m.a.createElement("li",{title:X?V.prev_page:null,onClick:this.prev,tabIndex:We?null:0,onKeyPress:this.runIfEnterPrev,className:t()("".concat(k,"-prev"),Object(g.a)({},"".concat(k,"-disabled"),We)),"aria-disabled":We},this.renderPrev($e)),Se,m.a.createElement("li",{title:X?V.next_page:null,onClick:this.next,tabIndex:Je?null:0,onKeyPress:this.runIfEnterNext,className:t()("".concat(k,"-next"),Object(g.a)({},"".concat(k,"-disabled"),Je)),"aria-disabled":Je},this.renderNext(nt)),m.a.createElement(v,{disabled:z,locale:V,rootPrefixCls:k,selectComponentClass:Ee,selectPrefixCls:ye,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$,pageSize:pe,pageSizeOptions:se,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ce}))}}],[{key:"getDerivedStateFromProps",value:function(l,T){var k={};if("current"in l&&(k.current=l.current,l.current!==T.current&&(k.currentInputValue=k.current)),"pageSize"in l&&l.pageSize!==T.pageSize){var N=T.current,U=O(l.pageSize,T,l);N=N>U?U:N,"current"in l||(k.current=N,k.currentInputValue=N),k.pageSize=l.pageSize}return k}}]),S}(m.a.Component);y.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:i,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:i,locale:C.a,style:{},itemRender:b,totalBoundaryShowSizeChanger:50};var c=y},"6Fuo":function(M,J,a){M.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6RRn":function(M,J,a){"use strict";var R=a("wCXF"),g=a("n6Qo");a.d(J,"b",function(){return g.a});var A=a("IBYe"),f=a("6eGT"),h=a("hW8S");a.d(J,"a",function(){return h.a}),J.c=R.b},"6eGT":function(M,J,a){"use strict";function R(g){return null}J.a=R},"7Cbv":function(M,J,a){"use strict";var R=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),g=new Uint8Array(16);function A(){if(!R)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return R(g)}var f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function h(d){return typeof d=="string"&&f.test(d)}for(var E=h,w=[],r=0;r<256;++r)w.push((r+256).toString(16).substr(1));function m(d){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=(w[d[s+0]]+w[d[s+1]]+w[d[s+2]]+w[d[s+3]]+"-"+w[d[s+4]]+w[d[s+5]]+"-"+w[d[s+6]]+w[d[s+7]]+"-"+w[d[s+8]]+w[d[s+9]]+"-"+w[d[s+10]]+w[d[s+11]]+w[d[s+12]]+w[d[s+13]]+w[d[s+14]]+w[d[s+15]]).toLowerCase();if(!E(_))throw TypeError("Stringified UUID is invalid");return _}var o=m;function t(d,s,_){d=d||{};var v=d.random||(d.rng||A)();if(v[6]=v[6]&15|64,v[8]=v[8]&63|128,s){_=_||0;for(var C=0;C<16;++C)s[_+C]=v[C];return s}return o(v)}var p=J.a=t},"7ZXX":function(M,J,a){M.exports=a.p+"static/err.6e7c5817.png"},"7ahc":function(M,J,a){"use strict";a.d(J,"a",function(){return O});var R=a("k1fw"),g=a("0Owb"),A=a("+L6B"),f=a("2/Rp"),h=a("y8nQ"),E=a("Vl3Y"),w=a("tJVT"),r=a("OaEy"),m=a("2fM7"),o=a("q1tI"),t=a.n(o),p=a("VrN/"),d=a.n(p),s=a("p77/"),_=a.n(s),v=a("c5Ni"),C=a.n(v),i=m.a.Option,u={labelCol:{span:4},wrapperCol:{span:20}},b={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};J.b=function(y){var c=y.callback,P=y.onCancel,D=Object(o.useState)("python"),S=Object(w.a)(D,2),x=S[0],l=S[1];function T(N){l(b[N][1])}function k(N){c(N)}return t.a.createElement(E.a,Object(g.a)({},u,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:k}),t.a.createElement(E.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},t.a.createElement(m.a,{onChange:T},Object.keys(b).map(function(N){return t.a.createElement(i,{key:N,value:N},b[N][0])}))),t.a.createElement(E.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},t.a.createElement(O,{mode:x})),t.a.createElement("div",{className:"flex-container flex-end"},t.a.createElement(f.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(f.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function O(y){var c=y.value,P=y.onChange,D=y.mode,S=y.options,x=S===void 0?{}:S,l=Object(o.useRef)(),T=Object(o.useState)(),k=Object(w.a)(T,2),N=k[0],U=k[1];return Object(o.useEffect)(function(){if(N){function z(H){var K=H.getValue();P&&P(K)}return N.on("change",z),function(){N.off("change",z)}}},[N,P]),Object(o.useEffect)(function(){N&&N.setOption("mode",D)},[N,D]),Object(o.useEffect)(function(){N&&((c!==N.getValue()||c==="")&&setTimeout(function(){N.setValue(c||" ")},300))},[N,c]),Object(o.useEffect)(function(){if(l.current&&!N){var z=d.a.fromTextArea(l.current,Object(R.a)({mode:D,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},x));U(z)}},[l.current,N]),t.a.createElement("div",{className:"my-codemirror-container"},t.a.createElement("textarea",{ref:l}))}},"7ixt":function(M,J,a){"use strict";a.d(J,"a",function(){return A});var R={adjustX:1,adjustY:1},g=[0,0],A={left:{points:["cr","cl"],overflow:R,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:R,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:R,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:R,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:R,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:R,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:R,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:R,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:R,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:R,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:R,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:R,offset:[-4,0],targetOffset:g}},f=A},"7v3h":function(M,J,a){M.exports=a.p+"static/empty2.dd73f390.png"},"8/bI":function(M,J,a){M.exports=a.p+"static/empty.8918e228.png"},"815F":function(M,J,a){"use strict";a.d(J,"e",function(){return w}),a.d(J,"c",function(){return m}),a.d(J,"d",function(){return o}),a.d(J,"a",function(){return p}),a.d(J,"f",function(){return d}),a.d(J,"b",function(){return s});var R=a("KQm4"),g=a("VTBJ"),A=a("Ff2n"),f=a("Zm9Q"),h=a("Kwbf"),E=a("OZM5");function w(_,v){return _!=null?_:v}function r(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=new Map;function C(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(i||[]).forEach(function(b){var O=b.key,y=b.children;Object(h.a)(O!=null,"Tree node must have a certain key: [".concat(u).concat(O,"]"));var c=String(O);Object(h.a)(!v.has(c)||O===null||O===void 0,"Same 'key' exist in the Tree: ".concat(c)),v.set(c,!0),C(y,"".concat(u).concat(c," > "))})}C(_)}function m(_){function v(C){var i=Object(f.a)(C);return i.map(function(u){if(!Object(E.i)(u))return Object(h.a)(!u,"Tree/TreeNode can only accept TreeNode as children."),null;var b=u.key,O=u.props,y=O.children,c=Object(A.a)(O,["children"]),P=Object(g.a)({key:b},c),D=v(y);return D.length&&(P.children=D),P}).filter(function(u){return u})}return v(_)}function o(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],C=new Set(v===!0?[]:v),i=[];function u(b){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return b.map(function(y,c){var P=Object(E.h)(O?O.pos:"0",c),D=w(y.key,P),S=Object(g.a)(Object(g.a)({},y),{},{parent:O,pos:P,children:null,data:y,isStart:[].concat(Object(R.a)(O?O.isStart:[]),[c===0]),isEnd:[].concat(Object(R.a)(O?O.isEnd:[]),[c===b.length-1])});return i.push(S),v===!0||C.has(D)?S.children=u(y.children||[],S):S.children=[],S})}return u(_),i}function t(_,v,C){var i;C?typeof C=="string"?i=function(O){return O[C]}:typeof C=="function"&&(i=function(O){return C(O)}):i=function(O,y){return w(O.key,y)};function u(b,O,y){var c=b?b.children:_,P=b?Object(E.h)(y.pos,O):"0";if(b){var D=i(b,P),S={node:b,index:O,pos:P,key:D,parentPos:y.node?y.pos:null,level:y.level+1};v(S)}c&&c.forEach(function(x,l){u(x,l,{node:b,pos:P,level:y?y.level+1:-1})})}u(null)}function p(_){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=v.initWrapper,i=v.processEntity,u=v.onProcessFinished,b=arguments.length>2?arguments[2]:void 0,O={},y={},c={posEntities:O,keyEntities:y};return C&&(c=C(c)||c),t(_,function(P){var D=P.node,S=P.index,x=P.pos,l=P.key,T=P.parentPos,k=P.level,N={node:D,index:S,key:l,pos:x,level:k},U=w(l,x);O[x]=N,y[U]=N,N.parent=O[T],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),i&&i(N,c)},b),u&&u(c),c}function d(_,v){var C=v.expandedKeys,i=v.selectedKeys,u=v.loadedKeys,b=v.loadingKeys,O=v.checkedKeys,y=v.halfCheckedKeys,c=v.dragOverNodeKey,P=v.dropPosition,D=v.keyEntities,S=D[_],x={eventKey:_,expanded:C.indexOf(_)!==-1,selected:i.indexOf(_)!==-1,loaded:u.indexOf(_)!==-1,loading:b.indexOf(_)!==-1,checked:O.indexOf(_)!==-1,halfChecked:y.indexOf(_)!==-1,pos:String(S?S.pos:""),dragOver:c===_&&P===0,dragOverGapTop:c===_&&P===-1,dragOverGapBottom:c===_&&P===1};return x}function s(_){var v=_.data,C=_.expanded,i=_.selected,u=_.checked,b=_.loaded,O=_.loading,y=_.halfChecked,c=_.dragOver,P=_.dragOverGapTop,D=_.dragOverGapBottom,S=_.pos,x=_.active,l=Object(g.a)(Object(g.a)({},v),{},{expanded:C,selected:i,checked:u,loaded:b,loading:O,halfChecked:y,dragOver:c,dragOverGapTop:P,dragOverGapBottom:D,pos:S,active:x});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(h.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),l}},"8EBN":function(M,J,a){(function(R){R(a("VrN/"))})(function(R){"use strict";R.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var g=0;g-1&&f.substring(w+1,f.length);if(r)return R.findModeByExtension(r)},R.findModeByName=function(f){f=f.toLowerCase();for(var h=0;h=le.length?_e.slice(le.length):_e}).join(`
`)}var C=[],i=[""],u=new s.a.Renderer,b=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function O(){C.length=0,i=[""]}var y={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function c(fe,F,Z,le){if(F>=fe.length||fe[F].level<=Z)return F;var _e=fe[F];le.push("- "+_e.text+""),F++;var de=[];return F=c(fe,F,_e.level,de),de.length>0&&(le.push("
"),de.forEach(function(ct){le.push(ct)}),le.push("
")),le.push(" "),F=c(fe,F,Z,le),F}function P(){return c(C,0,0,i),i.push("
"),i.join("")}var D={heading:function(F){var Z=b.exec(F);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(F){var Z=this.rules.block.fences.exec(F);if(Z){var le=Z[0],_e=v(le,Z[3]||""),de=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf(de)>=0){var ct=l(),hn=_e;_e=ct,T[ct]={type:"block",expression:hn}}return{type:"code",raw:le,lang:de,text:_e}}}},S=/(?:\${2})([^\n`]+?)(?:\${2})/gi,x=0,l=function(){return"__special_katext_id_".concat(x++,"__")},T={};function k(){return T}function N(){x=0,T={}}function U(fe){return fe=fe.replace(S,function(F,Z){var le=l();return T[le]={type:"inline",expression:Z},le}),fe}var z=u.listitem;u.listitem=function(fe){return z(U(fe))};var H=u.paragraph;u.paragraph=function(fe){return H(U(fe))};var K=u.tablecell;u.tablecell=function(fe,F){return K(U(fe),F)},u.code=function(fe,F,Z){var le=(F||"").match(/\S*/)[0];return le?["latex","katex","math"].indexOf(le)>=0?"".concat(fe,"
"):'
').concat(Z?fe:Object(_.escape)(fe,!0),`
`):''+(Z?fe:Object(_.escape)(fe,!0))+"
"},u.heading=function(fe,F,Z){var le=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return C.push({anchor:le,level:F,text:fe}),"'+fe+""},s.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),s.a.use({tokenizer:D,renderer:u});var V=s.a,W=a("SJMd"),B=a("ulZh"),X=a.n(B),ue=a("m3rI"),ve=a("Oy/b"),he=a("p5ED"),Pe=a("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 Re=function(fe,F){return(Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,le){Z.__proto__=le}||function(Z,le){for(var _e in le)Object.prototype.hasOwnProperty.call(le,_e)&&(Z[_e]=le[_e])})(fe,F)};function ce(fe,F){function Z(){this.constructor=fe}Re(fe,F),fe.prototype=F===null?Object.create(F):(Z.prototype=F.prototype,new Z)}function Ee(fe,F,Z,le){return new(Z||(Z=Promise))(function(_e,de){function ct(er){try{Wn(le.next(er))}catch(en){de(en)}}function hn(er){try{Wn(le.throw(er))}catch(en){de(en)}}function Wn(er){var en;er.done?_e(er.value):(en=er.value,en instanceof Z?en:new Z(function(Ln){Ln(en)})).then(ct,hn)}Wn((le=le.apply(fe,F||[])).next())})}function ye(fe,F){var Z,le,_e,de,ct={label:0,sent:function(){if(1&_e[0])throw _e[1];return _e[1]},trys:[],ops:[]};return de={next:hn(0),throw:hn(1),return:hn(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function hn(Wn){return function(er){return function(en){if(Z)throw new TypeError("Generator is already executing.");for(;ct;)try{if(Z=1,le&&(_e=2&en[0]?le.return:en[0]?le.throw||((_e=le.return)&&_e.call(le),0):le.next)&&!(_e=_e.call(le,en[1])).done)return _e;switch(le=0,_e&&(en=[2&en[0],_e.value]),en[0]){case 0:case 1:_e=en;break;case 4:return ct.label++,{value:en[1],done:!1};case 5:ct.label++,le=en[1],en=[0];continue;case 7:en=ct.ops.pop(),ct.trys.pop();continue;default:if(!(_e=ct.trys,(_e=_e.length>0&&_e[_e.length-1])||en[0]!==6&&en[0]!==2)){ct=0;continue}if(en[0]===3&&(!_e||en[1]>_e[0]&&en[1]<_e[3])){ct.label=en[1];break}if(en[0]===6&&ct.label<_e[1]){ct.label=_e[1],_e=en;break}if(_e&&ct.label<_e[2]){ct.label=_e[2],ct.ops.push(en);break}_e[2]&&ct.ops.pop(),ct.trys.pop();continue}en=F.call(fe,ct)}catch(Ln){en=[6,Ln],le=0}finally{Z=_e=0}if(5&en[0])throw en[1];return{value:en[0]?en[1]:void 0,done:!0}}([Wn,er])}}}function se(){for(var fe=0,F=0,Z=arguments.length;F',"select"),this.addActionButton(le,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(le,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(le,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(le,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(le,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(le,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(le,'',"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(de){var ct=document.createElement("div");ct.className=""+Z.toolbarButtonStyleClass.name,ct.setAttribute("data-type-name",de.typeName),ct.innerHTML=de.icon,ct.addEventListener("click",function(){Z.markerToolbarButtonClicked(ct,de)}),Z.buttons.push(ct),Z.markerButtons.push(ct)}),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 _e=document.createElement("div");_e.className=this.toolbarBlockStyleClass.name,_e.style.whiteSpace="nowrap",_e.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(_e),this.addActionButton(_e,'',"render"),this.addActionButton(_e,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},fe.prototype.addButtonClickListener=function(F){this.buttonClickListeners.push(F)},fe.prototype.removeButtonClickListener=function(F){this.buttonClickListeners.indexOf(F)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(F),1)},fe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},fe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var F=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Z=0;Z0&&this.buttonClickListeners.forEach(function(le){return le("marker",Z)}),this.markerButtonOverflowBlock.style.display="none"},fe.prototype.actionToolbarButtonClicked=function(F,Z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(le){return le("action",Z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},fe.prototype.setActiveButton=function(F){this.resetButtonStyles(),F.className=F.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),F.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},fe.prototype.setActiveMarkerButton=function(F){var Z=this.markerButtons.find(function(le){return le.getAttribute("data-type-name")===F});Z&&this.setActiveButton(Z)},fe.prototype.setCurrentMarker=function(F){var Z=this;this.currentMarker=F,this.buttons.filter(function(le){return/delete|notes/.test(le.getAttribute("data-action"))}).forEach(function(le){Z.currentMarker===void 0?(le.style.fillOpacity="0.4",le.style.pointerEvents="none"):(le.style.fillOpacity="1",le.style.pointerEvents="all")})},fe}(),Y=function(){function fe(F,Z,le,_e){this.panels=[],this.panelButtons=[],this.markerjsContainer=F,this.displayMode=Z,this.uiStyleSettings=le,this.styles=_e,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return fe.prototype.addStyles=function(){var F;this.toolboxStyleClass=this.styles.addClass(new ie("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 ie("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ie("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ie("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ie("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 ie("toolbox-panel-row_colors",`
background-color: `+((F=this.uiStyleSettings.toolboxBackgroundColor)!==null&&F!==void 0?F:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ie("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px;
padding: `+Z+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Se("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Se("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},fe.prototype.show=function(F){var Z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=F,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},fe.prototype.setPanelButtons=function(F){var Z,le,_e=this;this.panels=F,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((le=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&le!==void 0?le:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(de){var ct;de.uiStyleSettings=_e.uiStyleSettings;var hn=document.createElement("div");hn.className=_e.toolboxButtonStyleClass.name+" "+((ct=_e.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ct!==void 0?ct:_e.toolboxButtonStyleColorsClass.name),hn.innerHTML=de.icon,hn.title=de.title,hn.addEventListener("click",function(){_e.panelButtonClick(de)}),_e.panelButtons.push(hn),_e.buttonRow.appendChild(hn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},fe.prototype.panelButtonClick=function(F){var Z=this,le=-1;if(F!==this.activePanel){le=this.panels.indexOf(F),this.panelRow.innerHTML="";var _e=F.getUi();_e.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(_e),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=F}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Z.displayMode==="inline"?Z.panelRow.style.display="none":Z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(de,ct){var hn,Wn;de.className=Z.toolboxButtonStyleClass.name+" "+(ct===le?""+((hn=Z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&hn!==void 0?hn:Z.toolboxActiveButtonStyleColorsClass.name):""+((Wn=Z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Wn!==void 0?Wn:Z.toolboxButtonStyleColorsClass.name))})},fe}(),te=function(fe,F){this.title=fe,this.icon=F},Oe=function(fe){function F(Z,le,_e,de){var ct=fe.call(this,Z,de||'')||this;return ct.colors=[],ct.addTransparent=!1,ct.colorBoxes=[],ct.colors=le,ct.currentColor=_e,ct.setCurrentColor=ct.setCurrentColor.bind(ct),ct.getColorBox=ct.getColorBox.bind(ct),ct}return ce(F,fe),F.prototype.getUi=function(){var Z=this,le=document.createElement("div");return le.style.overflow="hidden",le.style.whiteSpace="nowrap",this.colors.forEach(function(_e){var de=Z.getColorBox(_e);le.appendChild(de),Z.colorBoxes.push(de)}),le},F.prototype.getColorBox=function(Z){var le=this,_e=this.uiStyleSettings.toolbarHeight/4,de=this.uiStyleSettings.toolbarHeight-_e,ct=document.createElement("div");ct.style.display="inline-block",ct.style.boxSizing="content-box",ct.style.width=de-2+"px",ct.style.height=de-2+"px",ct.style.padding="1px",ct.style.marginRight="2px",ct.style.marginBottom="2px",ct.style.borderWidth="2px",ct.style.borderStyle="solid",ct.style.borderRadius=(de+2)/2+"px",ct.style.borderColor=Z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ct.addEventListener("click",function(){le.setCurrentColor(Z,ct)});var hn=document.createElement("div");return hn.style.display="inline-block",hn.style.width=de-2+"px",hn.style.height=de-2+"px",hn.style.backgroundColor=Z,hn.style.borderRadius=de/2+"px",Z==="transparent"&&(hn.style.fill=this.uiStyleSettings.toolboxAccentColor,hn.innerHTML=``),ct.appendChild(hn),ct},F.prototype.setCurrentColor=function(Z,le){var _e=this;this.currentColor=Z,this.colorBoxes.forEach(function(de){de.style.borderColor=de===le?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Z)},F}(te),Ce=function(){function fe(F,Z,le){this._state="new",this._isSelected=!1,this._container=F,this._overlayContainer=Z,this.globalSettings=le,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(fe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(F){return!1},Object.defineProperty(fe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),fe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},fe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},fe.prototype.pointerDown=function(F,Z){},fe.prototype.dblClick=function(F,Z){},fe.prototype.manipulate=function(F){},fe.prototype.pointerUp=function(F){this.stateChanged()},fe.prototype.dispose=function(){},fe.prototype.addMarkerVisualToContainer=function(F){this.container.childNodes.length>0?this.container.insertBefore(F,this.container.childNodes[0]):this.container.appendChild(F)},fe.prototype.getState=function(){return{typeName:fe.typeName,state:this.state,notes:this.notes}},fe.prototype.restoreState=function(F){this._state=F.state,this.notes=F.notes},fe.prototype.scale=function(F,Z){},fe.prototype.colorChanged=function(F){this.onColorChanged&&this.onColorChanged(F),this.stateChanged()},fe.prototype.fillColorChanged=function(F){this.onFillColorChanged&&this.onFillColorChanged(F),this.stateChanged()},fe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var F=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),F.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(F)&&this.onStateChanged(this)}},fe.typeName="MarkerBase",fe}(),Me=function(){function fe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return fe.prototype.findGripByVisual=function(F){return this.topLeft.ownsTarget(F)?this.topLeft:this.topCenter.ownsTarget(F)?this.topCenter:this.topRight.ownsTarget(F)?this.topRight:this.centerLeft.ownsTarget(F)?this.centerLeft:this.centerRight.ownsTarget(F)?this.centerRight:this.bottomLeft.ownsTarget(F)?this.bottomLeft:this.bottomCenter.ownsTarget(F)?this.bottomCenter:this.bottomRight.ownsTarget(F)?this.bottomRight:void 0},fe}(),$e=function(){function fe(){this.GRIP_SIZE=10,this.visual=oe.createGroup(),this.visual.appendChild(oe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(oe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return fe.prototype.ownsTarget=function(F){return F===this.visual||F===this.visual.childNodes[0]||F===this.visual.childNodes[1]},fe}(),nt=function(){function fe(){}return fe.toITransformMatrix=function(F){return{a:F.a,b:F.b,c:F.c,d:F.d,e:F.e,f:F.f}},fe.toSVGMatrix=function(F,Z){return F.a=Z.a,F.b=Z.b,F.c=Z.c,F.d=Z.d,F.e=Z.e,F.f=Z.f,F},fe}(),ut=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.left=0,de.top=0,de.width=0,de.height=0,de.defaultSize={x:50,y:20},de.offsetX=0,de.offsetY=0,de.rotationAngle=0,de.CB_DISTANCE=10,de._suppressMarkerCreateEvent=!1,de.container.transform.baseVal.appendItem(oe.createTransform()),de.setupControlBox(),de}return ce(F,fe),Object.defineProperty(F.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"visual",{get:function(){return this._visual},set:function(Z){this._visual=Z;var le=oe.createTransform();this._visual.transform.baseVal.appendItem(le)},enumerable:!1,configurable:!0}),F.prototype.ownsTarget=function(Z){return!!fe.prototype.ownsTarget.call(this,Z)||!!(this.controlGrips.findGripByVisual(Z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Z))},F.prototype.pointerDown=function(Z,le){fe.prototype.pointerDown.call(this,Z,le),this.state==="new"&&(this.left=Z.x,this.top=Z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var _e=this.unrotatePoint(Z);if(this.manipulationStartX=_e.x,this.manipulationStartY=_e.y,this.offsetX=_e.x-this.left,this.offsetY=_e.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(le),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(le)){this.activeGrip=this.rotatorGrip;var de=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=de.x-this.width/2,this.top=de.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ct=this.container.transform.baseVal.getItem(0);ct.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ct,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},F.prototype.pointerUp=function(Z){var le=this.state;fe.prototype.pointerUp.call(this,Z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Z),this._state="select",le==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},F.prototype.moveVisual=function(Z){this.visual.style.transform="translate("+Z.x+"px, "+Z.y+"px)"},F.prototype.manipulate=function(Z){var le=this.unrotatePoint(Z);this.state==="creating"?this.resize(Z):this.state==="move"?(this.left=this.manipulationStartLeft+(le.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(le.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(le):this.state==="rotate"&&this.rotate(Z)},F.prototype.resize=function(Z){var le=this.manipulationStartLeft,_e=this.manipulationStartWidth,de=this.manipulationStartTop,ct=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:le=this.manipulationStartLeft+Z.x-this.manipulationStartX,_e=this.manipulationStartWidth+this.manipulationStartLeft-le;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:_e=this.manipulationStartWidth+Z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:de=this.manipulationStartTop+Z.y-this.manipulationStartY,ct=this.manipulationStartHeight+this.manipulationStartTop-de;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ct=this.manipulationStartHeight+Z.y-this.manipulationStartY}_e>=0?(this.left=le,this.width=_e):(this.left=le+_e,this.width=-_e),ct>=0?(this.top=de,this.height=ct):(this.top=de+ct,this.height=-ct),this.setSize()},F.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},F.prototype.rotate=function(Z){if(Math.abs(Z.x-this.centerX)>.1){var le=Math.sign(Z.x-this.centerX);this.rotationAngle=180*Math.atan((Z.y-this.centerY)/(Z.x-this.centerX))/Math.PI+90*le,this.applyRotation()}},F.prototype.applyRotation=function(){var Z=this.container.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Z,0)},F.prototype.rotatePoint=function(Z){if(this.rotationAngle===0)return Z;var le=this.container.getCTM(),_e=oe.createPoint(Z.x,Z.y);return{x:(_e=_e.matrixTransform(le)).x,y:_e.y}},F.prototype.unrotatePoint=function(Z){if(this.rotationAngle===0)return Z;var le=this.container.getCTM();le=le.inverse();var _e=oe.createPoint(Z.x,Z.y);return{x:(_e=_e.matrixTransform(le)).x,y:_e.y}},F.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},F.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},F.prototype.setupControlBox=function(){this.controlBox=oe.createGroup();var Z=oe.createTransform();Z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Z),this.container.appendChild(this.controlBox),this.controlRect=oe.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=oe.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 Me,this.addControlGrips(),this.controlBox.style.display="none"},F.prototype.adjustControlBox=function(){var Z=this.controlBox.transform.baseVal.getItem(0);Z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Z,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()},F.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()},F.prototype.createGrip=function(){var Z=new $e;return Z.visual.transform.baseVal.appendItem(oe.createTransform()),this.controlBox.appendChild(Z.visual),Z},F.prototype.positionGrips=function(){var Z=this.controlGrips.topLeft.GRIP_SIZE,le=-Z/2,_e=le,de=(this.width+this.CB_DISTANCE)/2-Z/2,ct=(this.height+this.CB_DISTANCE)/2-Z/2,hn=this.height+this.CB_DISTANCE-Z/2,Wn=this.width+this.CB_DISTANCE-Z/2;this.positionGrip(this.controlGrips.topLeft.visual,le,_e),this.positionGrip(this.controlGrips.topCenter.visual,de,_e),this.positionGrip(this.controlGrips.topRight.visual,Wn,_e),this.positionGrip(this.controlGrips.centerLeft.visual,le,ct),this.positionGrip(this.controlGrips.centerRight.visual,Wn,ct),this.positionGrip(this.controlGrips.bottomLeft.visual,le,hn),this.positionGrip(this.controlGrips.bottomCenter.visual,de,hn),this.positionGrip(this.controlGrips.bottomRight.visual,Wn,hn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,de,_e-3*this.CB_DISTANCE)},F.prototype.positionGrip=function(Z,le,_e){var de=Z.transform.baseVal.getItem(0);de.setTranslate(le,_e),Z.transform.baseVal.replaceItem(de,0)},F.prototype.hideControlBox=function(){this.controlBox.style.display="none"},F.prototype.showControlBox=function(){this.controlBox.style.display=""},F.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:nt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:nt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},fe.prototype.getState.call(this))},F.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var le=Z;this.left=le.left,this.top=le.top,this.width=le.width,this.height=le.height,this.rotationAngle=le.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(nt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,le.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(nt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,le.containerTransformMatrix))},F.prototype.scale=function(Z,le){fe.prototype.scale.call(this,Z,le);var _e=this.rotatePoint({x:this.left,y:this.top}),de=this.unrotatePoint({x:_e.x*Z,y:_e.y*le});this.left=de.x,this.top=de.y,this.width=this.width*Z,this.height=this.height*le,this.adjustControlBox()},F}(Ce),ht=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.fillColor="transparent",de.strokeColor="transparent",de.strokeWidth=0,de.strokeDasharray="",de.opacity=1,de.setStrokeColor=de.setStrokeColor.bind(de),de.setFillColor=de.setFillColor.bind(de),de.setStrokeWidth=de.setStrokeWidth.bind(de),de.setStrokeDasharray=de.setStrokeDasharray.bind(de),de.createVisual=de.createVisual.bind(de),de}return ce(F,fe),F.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},F.prototype.createVisual=function(){this.visual=oe.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)},F.prototype.pointerDown=function(Z,le){fe.prototype.pointerDown.call(this,Z,le),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},F.prototype.manipulate=function(Z){fe.prototype.manipulate.call(this,Z)},F.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),this.setSize()},F.prototype.setSize=function(){fe.prototype.setSize.call(this),oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},F.prototype.pointerUp=function(Z){fe.prototype.pointerUp.call(this,Z),this.setSize()},F.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},F.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},F.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},F.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&oe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},F.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this))},F.prototype.restoreState=function(Z){var le=Z;this.fillColor=le.fillColor,this.strokeColor=le.strokeColor,this.strokeWidth=le.strokeWidth,this.strokeDasharray=le.strokeDasharray,this.opacity=le.opacity,this.createVisual(),fe.prototype.restoreState.call(this,Z),this.setSize()},F.prototype.scale=function(Z,le){fe.prototype.scale.call(this,Z,le),this.setSize()},F.title="Rectangle marker",F}(ut),pt=function(fe){function F(Z,le,_e,de){var ct=fe.call(this,Z,de||'')||this;return ct.widths=[],ct.widthBoxes=[],ct.widths=le,ct.currentWidth=_e,ct.setCurrentWidth=ct.setCurrentWidth.bind(ct),ct}return ce(F,fe),F.prototype.getUi=function(){var Z=this,le=document.createElement("div");return le.style.display="flex",le.style.overflow="hidden",le.style.flexGrow="2",this.widths.forEach(function(_e){var de=document.createElement("div");de.style.display="flex",de.style.flexGrow="2",de.style.alignItems="center",de.style.justifyContent="space-between",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.borderColor=_e===Z.currentWidth?Z.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){Z.setCurrentWidth(_e,de)}),le.appendChild(de);var ct=document.createElement("div");ct.innerText=_e.toString(),ct.style.marginRight="5px",de.appendChild(ct);var hn=document.createElement("div");hn.style.minHeight="20px",hn.style.flexGrow="2",hn.style.display="flex",hn.style.alignItems="center";var Wn=document.createElement("hr");Wn.style.minWidth="20px",Wn.style.border="0px",Wn.style.borderTop=_e+"px solid "+Z.uiStyleSettings.toolboxColor,Wn.style.flexGrow="2",hn.appendChild(Wn),de.appendChild(hn),Z.widthBoxes.push(de)}),le},F.prototype.setCurrentWidth=function(Z,le){var _e=this;this.currentWidth=Z,this.widthBoxes.forEach(function(de){de.style.borderColor=de===le?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},F}(te),xt=function(fe){function F(Z,le,_e,de){var ct=fe.call(this,Z,de||'')||this;return ct.styles=[],ct.styleBoxes=[],ct.styles=le,ct.currentStyle=_e,ct.setCurrentStyle=ct.setCurrentStyle.bind(ct),ct}return ce(F,fe),F.prototype.getUi=function(){var Z=this,le=document.createElement("div");return le.style.display="flex",le.style.overflow="hidden",le.style.flexGrow="2",this.styles.forEach(function(_e){var de=document.createElement("div");de.style.display="flex",de.style.alignItems="center",de.style.justifyContent="space-between",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.overflow="hidden",de.style.maxWidth=100/Z.styles.length-5+"%",de.style.borderColor=_e===Z.currentStyle?Z.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){Z.setCurrentStyle(_e,de)}),le.appendChild(de);var ct=document.createElement("div");ct.style.minHeight="20px",ct.style.flexGrow="2",ct.style.overflow="hidden";var hn=``;ct.innerHTML=hn,de.appendChild(ct),Z.styleBoxes.push(de)}),le},F.prototype.setCurrentStyle=function(Z,le){var _e=this;this.currentStyle=Z,this.styleBoxes.forEach(function(de){de.style.borderColor=de===le?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},F}(te),Ke=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.strokeColor=_e.defaultColor,de.strokeWidth=_e.defaultStrokeWidth,de.strokeDasharray=_e.defaultStrokeDasharray,de.strokePanel=new Oe("Line color",_e.defaultColorSet,_e.defaultColor),de.strokePanel.onColorChanged=de.setStrokeColor,de.strokeWidthPanel=new pt("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),de.strokeWidthPanel.onWidthChanged=de.setStrokeWidth,de.strokeStylePanel=new xt("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),de.strokeStylePanel.onStyleChanged=de.setStrokeDasharray,de}return ce(F,fe),Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=F.typeName,Z},F.typeName="FrameMarker",F.title="Frame marker",F.icon='',F}(ht),Ue=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},st=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.x1=0,de.y1=0,de.x2=0,de.y2=0,de.defaultLength=50,de.manipulationStartX=0,de.manipulationStartY=0,de.manipulationStartX1=0,de.manipulationStartY1=0,de.manipulationStartX2=0,de.manipulationStartY2=0,de.setupControlBox(),de}return ce(F,fe),F.prototype.ownsTarget=function(Z){return!!fe.prototype.ownsTarget.call(this,Z)||!(!this.grip1.ownsTarget(Z)&&!this.grip2.ownsTarget(Z))},F.prototype.pointerDown=function(Z,le){fe.prototype.pointerDown.call(this,Z,le),this.manipulationStartX=Z.x,this.manipulationStartY=Z.y,this.state==="new"&&(this.x1=Z.x,this.y1=Z.y,this.x2=Z.x,this.y2=Z.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(le)?this.activeGrip=this.grip1:this.grip2.ownsTarget(le)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},F.prototype.pointerUp=function(Z){var le=this.state;fe.prototype.pointerUp.call(this,Z),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(Z),this._state="select",le==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},F.prototype.adjustVisual=function(){},F.prototype.manipulate=function(Z){this.state==="creating"?this.resize(Z):this.state==="move"?(this.x1=this.manipulationStartX1+Z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Z)},F.prototype.resize=function(Z){switch(this.activeGrip){case this.grip1:this.x1=Z.x,this.y1=Z.y;break;case this.grip2:case void 0:this.x2=Z.x,this.y2=Z.y}this.adjustVisual(),this.adjustControlBox()},F.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},F.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},F.prototype.setupControlBox=function(){this.controlBox=oe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},F.prototype.adjustControlBox=function(){this.positionGrips()},F.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},F.prototype.createGrip=function(){var Z=new $e;return Z.visual.transform.baseVal.appendItem(oe.createTransform()),this.controlBox.appendChild(Z.visual),Z},F.prototype.positionGrips=function(){var Z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Z/2,this.y1-Z/2),this.positionGrip(this.grip2.visual,this.x2-Z/2,this.y2-Z/2)},F.prototype.positionGrip=function(Z,le,_e){var de=Z.transform.baseVal.getItem(0);de.setTranslate(le,_e),Z.transform.baseVal.replaceItem(de,0)},F.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},fe.prototype.getState.call(this))},F.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var le=Z;this.x1=le.x1,this.y1=le.y1,this.x2=le.x2,this.y2=le.y2},F.prototype.scale=function(Z,le){fe.prototype.scale.call(this,Z,le),this.x1=this.x1*Z,this.y1=this.y1*le,this.x2=this.x2*Z,this.y2=this.y2*le,this.adjustVisual(),this.adjustControlBox()},F}(Ce),kt=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.strokeColor="transparent",de.strokeWidth=0,de.strokeDasharray="",de.setStrokeColor=de.setStrokeColor.bind(de),de.setStrokeWidth=de.setStrokeWidth.bind(de),de.setStrokeDasharray=de.setStrokeDasharray.bind(de),de.strokeColor=_e.defaultColor,de.strokeWidth=_e.defaultStrokeWidth,de.strokeDasharray=_e.defaultStrokeDasharray,de.strokePanel=new Oe("Line color",_e.defaultColorSet,_e.defaultColor),de.strokePanel.onColorChanged=de.setStrokeColor,de.strokeWidthPanel=new pt("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),de.strokeWidthPanel.onWidthChanged=de.setStrokeWidth,de.strokeStylePanel=new xt("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),de.strokeStylePanel.onStyleChanged=de.setStrokeDasharray,de}return ce(F,fe),F.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorLine&&Z!==this.visibleLine)},F.prototype.createVisual=function(){this.visual=oe.createGroup(),this.selectorLine=oe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=oe.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)},F.prototype.pointerDown=function(Z,le){fe.prototype.pointerDown.call(this,Z,le),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},F.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()),oe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),oe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),oe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},F.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},F.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},F.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},fe.prototype.getState.call(this));return Z.typeName=F.typeName,Z},F.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var le=Z;this.strokeColor=le.strokeColor,this.strokeWidth=le.strokeWidth,this.strokeDasharray=le.strokeDasharray,this.createVisual(),this.adjustVisual()},F.typeName="LineMarker",F.title="Line marker",F.icon='',F}(st),gt=function(fe){function F(Z,le,_e,de){var ct=fe.call(this,Z,de||'')||this;return ct.fonts=[],ct.fontBoxes=[],ct.fonts=le,ct.currentFont=_e,ct.setCurrentFont=ct.setCurrentFont.bind(ct),ct}return ce(F,fe),F.prototype.getUi=function(){var Z=this,le=document.createElement("div");return le.style.overflow="hidden",le.style.flexGrow="2",this.fonts.forEach(function(_e){var de=document.createElement("div");de.style.display="inline-block",de.style.alignItems="center",de.style.justifyContent="space-between",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.overflow="hidden",de.style.maxWidth=100/Z.fonts.length-5+"%",de.style.borderColor=_e===Z.currentFont?Z.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){Z.setCurrentFont(_e,de)}),le.appendChild(de);var ct=document.createElement("div");ct.style.display="flex",ct.style.minHeight="20px",ct.style.flexGrow="2",ct.style.fontFamily=_e,ct.style.overflow="hidden";var hn=document.createElement("div");hn.style.whiteSpace="nowrap",hn.style.overflow="hidden",hn.style.textOverflow="ellipsis",hn.innerHTML="The quick brown fox jumps over the lazy dog",ct.appendChild(hn),de.appendChild(ct),Z.fontBoxes.push(de)}),le},F.prototype.setCurrentFont=function(Z,le){var _e=this;this.currentFont=Z,this.fontBoxes.forEach(function(de){de.style.borderColor=de===le?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},F}(te),bt=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.color="transparent",de.padding=5,de.DEFAULT_TEXT="your text here",de.text=de.DEFAULT_TEXT,de.isMoved=!1,de.color=_e.defaultColor,de.fontFamily=_e.defaultFontFamily,de.defaultSize={x:100,y:30},de.setColor=de.setColor.bind(de),de.setFont=de.setFont.bind(de),de.renderText=de.renderText.bind(de),de.sizeText=de.sizeText.bind(de),de.textEditDivClicked=de.textEditDivClicked.bind(de),de.showTextEditor=de.showTextEditor.bind(de),de.setSize=de.setSize.bind(de),de.positionTextEditor=de.positionTextEditor.bind(de),de.colorPanel=new Oe("Color",_e.defaultColorSet,_e.defaultColor),de.colorPanel.onColorChanged=de.setColor,de.fontFamilyPanel=new gt("Font",_e.defaultFontFamilies,_e.defaultFontFamily),de.fontFamilyPanel.onFontChanged=de.setFont,de}return ce(F,fe),F.prototype.ownsTarget=function(Z){if(fe.prototype.ownsTarget.call(this,Z)||Z===this.visual||Z===this.textElement||Z===this.bgRectangle)return!0;var le=!1;return this.textElement.childNodes.forEach(function(_e){_e===Z&&(le=!0)}),le},F.prototype.createVisual=function(){this.visual=oe.createGroup(),this.bgRectangle=oe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=oe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(oe.createTransform()),this.textElement.transform.baseVal.appendItem(oe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},F.prototype.pointerDown=function(Z,le){fe.prototype.pointerDown.call(this,Z,le),this.isMoved=!1,this.pointerDownPoint=Z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},F.prototype.renderText=function(){var Z=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(le){Z.textElement.appendChild(oe.createTSpan(le.trim()===""?" ":le.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},F.prototype.getTextScale=function(){var Z=this.textElement.getBBox(),le=1;if(Z.width>0&&Z.height>0){var _e=(1*this.width-this.width*this.padding*2/100)/Z.width,de=(1*this.height-this.height*this.padding*2/100)/Z.height;le=Math.min(_e,de)}return le},F.prototype.getTextPosition=function(Z){var le=this.textElement.getBBox(),_e=0,de=0;return le.width>0&&le.height>0&&(_e=(this.width-le.width*Z)/2,de=this.height/2-le.height*Z/2),{x:_e,y:de}},F.prototype.sizeText=function(){var Z=this.textElement.getBBox(),le=this.getTextScale(),_e=this.getTextPosition(le);_e.y-=Z.y*le,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+_e.x+"px, "+_e.y+"px) scale("+le+", "+le+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(_e.x,_e.y),this.textElement.transform.baseVal.getItem(1).setScale(le,le))},F.prototype.manipulate=function(Z){fe.prototype.manipulate.call(this,Z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Z.x-this.pointerDownPoint.x)>5||Math.abs(Z.y-this.pointerDownPoint.y)>5)},F.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),this.isMoved=!0,this.setSize(),this.sizeText()},F.prototype.setSize=function(){fe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),oe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},F.prototype.pointerUp=function(Z){var le=this.state;le==="creating"&&(this._suppressMarkerCreateEvent=!0),fe.prototype.pointerUp.call(this,Z),this.setSize(),(le==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},F.prototype.showTextEditor=function(){var Z=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(le){le.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var le=Number.parseFloat(Z.textEditor.style.fontSize);Z.textEditor.clientWidth>=Number.parseInt(Z.textEditor.style.maxWidth)&&le>.9;)le-=.1,Z.textEditor.style.fontSize=Math.max(le,.9)+"em"}),this.textEditor.addEventListener("keyup",function(le){le.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(le){if(le.clipboardData){var _e=le.clipboardData.getData("text"),de=window.getSelection();if(!de.rangeCount)return!1;de.deleteFromDocument(),de.getRangeAt(0).insertNode(document.createTextNode(_e)),le.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Z.textEditDivClicked(Z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},F.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Z=this.getTextScale(),le=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),_e=this.textElement.getBBox(),de={x:_e.width*Z,y:_e.height*Z};le.x-=de.x/2,le.y-=de.y/2,this.textEditor.style.top=le.y+"px",this.textEditor.style.left=le.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-le.x+"px",this.textEditor.style.fontSize=Math.max(16*Z,12)+"px",this.textElement.style.display="none"}},F.prototype.textEditDivClicked=function(Z){this.text=Z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},F.prototype.select=function(){fe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},F.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),fe.prototype.deselect.call(this)},F.prototype.dblClick=function(Z,le){fe.prototype.dblClick.call(this,Z,le),this.showTextEditor()},F.prototype.setColor=function(Z){this.textElement&&oe.setAttributes(this.textElement,[["fill",Z]]),this.color=Z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Z)},F.prototype.setFont=function(Z){this.textElement&&oe.setAttributes(this.textElement,[["font-family",Z]]),this.fontFamily=Z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},F.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},F.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},fe.prototype.getState.call(this));return Z.typeName=F.typeName,Z},F.prototype.restoreState=function(Z){var le=Z;this.color=le.color,this.fontFamily=le.fontFamily,this.padding=le.padding,this.text=le.text,this.createVisual(),fe.prototype.restoreState.call(this,Z),this.setSize()},F.prototype.scale=function(Z,le){fe.prototype.scale.call(this,Z,le),this.setSize(),this.sizeText(),this.positionTextEditor()},F.typeName="TextMarker",F.title="Text marker",F.icon='',F}(ut),Ve=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.color="transparent",de.lineWidth=3,de.drawing=!1,de.pixelRatio=1,de.color=_e.defaultColor,de.lineWidth=_e.defaultStrokeWidth,de.pixelRatio=_e.freehandPixelRatio,de.setColor=de.setColor.bind(de),de.addCanvas=de.addCanvas.bind(de),de.finishCreation=de.finishCreation.bind(de),de.setLineWidth=de.setLineWidth.bind(de),de.colorPanel=new Oe("Color",_e.defaultColorSet,_e.defaultColor),de.colorPanel.onColorChanged=de.setColor,de.lineWidthPanel=new pt("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),de.lineWidthPanel.onWidthChanged=de.setLineWidth,de}return ce(F,fe),F.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.drawingImage)},F.prototype.createVisual=function(){this.visual=oe.createGroup(),this.drawingImage=oe.createImage(),this.visual.appendChild(this.drawingImage);var Z=oe.createTransform();this.visual.transform.baseVal.appendItem(Z),this.addMarkerVisualToContainer(this.visual)},F.prototype.pointerDown=function(Z,le){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(Z.x,Z.y),this.drawing=!0):fe.prototype.pointerDown.call(this,Z,le)},F.prototype.manipulate=function(Z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Z.x,Z.y),this.canvasContext.stroke()):fe.prototype.manipulate.call(this,Z)},F.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),oe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},F.prototype.pointerUp=function(Z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):fe.prototype.pointerUp.call(this,Z)},F.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)},F.prototype.select=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.select.call(this)},F.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.deselect.call(this)},F.prototype.finishCreation=function(){for(var Z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),le=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],_e=le[0],de=le[1],ct=le[2],hn=le[3],Wn=!1,er=0;er0&&(Wn=!0,erhn&&(hn=er),en>ct&&(ct=en));if(Wn){this.left=_e/this.pixelRatio,this.top=de/this.pixelRatio,this.width=(ct-_e)/this.pixelRatio,this.height=(hn-de)/this.pixelRatio;var Ln=document.createElement("canvas");Ln.width=ct-_e,Ln.height=hn-de,Ln.getContext("2d").putImageData(this.canvasContext.getImageData(_e,de,ct-_e,hn-de),0,0),this.drawingImgUrl=Ln.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},F.prototype.setDrawingImage=function(){oe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),oe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},F.prototype.setColor=function(Z){this.color=Z,this.colorChanged(Z)},F.prototype.setLineWidth=function(Z){this.lineWidth=Z},Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=Object.assign({drawingImgUrl:this.drawingImgUrl},fe.prototype.getState.call(this));return Z.typeName=F.typeName,Z},F.prototype.restoreState=function(Z){this.createVisual(),fe.prototype.restoreState.call(this,Z),this.drawingImgUrl=Z.drawingImgUrl,this.setDrawingImage()},F.prototype.scale=function(Z,le){fe.prototype.scale.call(this,Z,le),this.setDrawingImage()},F.typeName="FreehandMarker",F.title="Freehand marker",F.icon='',F}(ut),We=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,_e||'')||this;return de.typeBoxes=[],de.currentType=le,de.setCurrentType=de.setCurrentType.bind(de),de}return ce(F,fe),F.prototype.getUi=function(){var Z=this,le=document.createElement("div");le.style.display="flex",le.style.overflow="hidden",le.style.flexGrow="2";for(var _e=function(hn){var Wn="both";switch(hn){case 0:Wn="both";break;case 1:Wn="start";break;case 2:Wn="end";break;case 3:Wn="none"}var er=document.createElement("div");if(er.style.display="flex",er.style.flexGrow="2",er.style.alignItems="center",er.style.justifyContent="space-between",er.style.padding="5px",er.style.borderWidth="2px",er.style.borderStyle="solid",er.style.borderColor=Wn===de.currentType?de.uiStyleSettings.toolboxAccentColor:"transparent",er.addEventListener("click",function(){Z.setCurrentType(Wn,er)}),le.appendChild(er),Wn==="both"||Wn==="start"){var en=document.createElement("div");en.style.display="flex",en.style.alignItems="center",en.style.minHeight="20px",en.innerHTML=``,en.style.marginLeft="5px",er.appendChild(en)}var Ln=document.createElement("div");Ln.style.display="flex",Ln.style.alignItems="center",Ln.style.minHeight="20px",Ln.style.flexGrow="2";var kn=document.createElement("hr");if(kn.style.minWidth="20px",kn.style.border="0px",kn.style.borderTop="3px solid "+(de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxColor:"#eeeeee"),kn.style.flexGrow="2",Ln.appendChild(kn),er.appendChild(Ln),Wn==="both"||Wn==="end"){var $r=document.createElement("div");$r.style.display="flex",$r.style.alignItems="center",$r.style.minHeight="20px",$r.innerHTML=``,$r.style.marginRight="5px",er.appendChild($r)}de.typeBoxes.push(er)},de=this,ct=0;ct<4;ct++)_e(ct);return le},F.prototype.setCurrentType=function(Z,le){var _e=this;this.currentType=Z,this.typeBoxes.forEach(function(de){de.style.borderColor=de===le?_e.uiStyleSettings!==void 0?_e.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},F}(te),Je=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.arrowType="end",de.arrowBaseHeight=10,de.arrowBaseWidth=10,de.getArrowPoints=de.getArrowPoints.bind(de),de.setArrowType=de.setArrowType.bind(de),de.arrowTypePanel=new We("Arrow type","end"),de.arrowTypePanel.onArrowTypeChanged=de.setArrowType,de}return ce(F,fe),F.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.arrow1&&Z!==this.arrow2)},F.prototype.getArrowPoints=function(Z,le){var _e=this.arrowBaseWidth+2*this.strokeWidth,de=this.arrowBaseHeight+2*this.strokeWidth;return Z-_e/2+","+(le+de/2)+" "+Z+","+(le-de/2)+" "+(Z+_e/2)+","+(le+de/2)},F.prototype.createTips=function(){this.arrow1=oe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(oe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=oe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(oe.createTransform()),this.visual.appendChild(this.arrow2)},F.prototype.pointerDown=function(Z,le){fe.prototype.pointerDown.call(this,Z,le),this.state==="creating"&&this.createTips()},F.prototype.adjustVisual=function(){if(fe.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",oe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),oe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),le=this.arrow1.transform.baseVal.getItem(0);le.setRotate(Z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(le,0);var _e=this.arrow2.transform.baseVal.getItem(0);_e.setRotate(Z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(_e,0)}},F.prototype.setArrowType=function(Z){this.arrowType=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=Object.assign({arrowType:this.arrowType},fe.prototype.getState.call(this));return Z.typeName=F.typeName,Z},F.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var le=Z;this.arrowType=le.arrowType,this.createTips(),this.adjustVisual()},F.typeName="ArrowMarker",F.title="Arrow marker",F.icon='',F}(kt),Te=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.fillColor=_e.defaultFillColor,de.strokeWidth=0,de.fillPanel=new Oe("Color",_e.defaultColorSet,_e.defaultFillColor),de.fillPanel.onColorChanged=de.setFillColor,de}return ce(F,fe),Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=F.typeName,Z},F.typeName="CoverMarker",F.title="Cover marker",F.icon='',F}(ht),Ie=function(fe){function F(Z,le,_e,de){var ct=fe.call(this,Z,de||'')||this;return ct.opacities=[],ct.opacityBoxes=[],ct.opacities=le,ct.currentOpacity=_e,ct.setCurrentOpacity=ct.setCurrentOpacity.bind(ct),ct}return ce(F,fe),F.prototype.getUi=function(){var Z=this,le=document.createElement("div");return le.style.display="flex",le.style.overflow="hidden",le.style.flexGrow="2",le.style.justifyContent="space-between",this.opacities.forEach(function(_e){var de=document.createElement("div");de.style.display="flex",de.style.alignItems="center",de.style.justifyContent="center",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.borderColor=_e===Z.currentOpacity?Z.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){Z.setCurrentOpacity(_e,de)}),le.appendChild(de);var ct=document.createElement("div");ct.innerText=100*_e+"%",de.appendChild(ct),Z.opacityBoxes.push(de)}),le},F.prototype.setCurrentOpacity=function(Z,le){var _e=this;this.currentOpacity=Z,this.opacityBoxes.forEach(function(de){de.style.borderColor=de===le?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},F}(te),Fe=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.setOpacity=de.setOpacity.bind(de),de.fillColor=_e.defaultHighlightColor,de.strokeWidth=0,de.opacity=_e.defaultHighlightOpacity,de.fillPanel=new Oe("Color",_e.defaultColorSet,de.fillColor),de.fillPanel.onColorChanged=de.setFillColor,de.opacityPanel=new Ie("Opacity",_e.defaultOpacitySteps,de.opacity),de.opacityPanel.onOpacityChanged=de.setOpacity,de}return ce(F,fe),F.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&oe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=F.typeName,Z},F.typeName="HighlightMarker",F.title="Highlight marker",F.icon='',F}(Te),Xe='',vt=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.bgColor="transparent",de.tipPosition={x:0,y:0},de.tipBase1Position={x:0,y:0},de.tipBase2Position={x:0,y:0},de.tipMoving=!1,de.color=_e.defaultStrokeColor,de.bgColor=_e.defaultFillColor,de.fontFamily=_e.defaultFontFamily,de.defaultSize={x:100,y:30},de.setBgColor=de.setBgColor.bind(de),de.getTipPoints=de.getTipPoints.bind(de),de.positionTip=de.positionTip.bind(de),de.setTipPoints=de.setTipPoints.bind(de),de.colorPanel=new Oe("Text color",_e.defaultColorSet,de.color,''),de.colorPanel.onColorChanged=de.setColor,de.bgColorPanel=new Oe("Fill color",_e.defaultColorSet,de.bgColor,Xe),de.bgColorPanel.onColorChanged=de.setBgColor,de.fontFamilyPanel=new gt("Font",_e.defaultFontFamilies,_e.defaultFontFamily),de.fontFamilyPanel.onFontChanged=de.setFont,de.tipGrip=new $e,de.tipGrip.visual.transform.baseVal.appendItem(oe.createTransform()),de.controlBox.appendChild(de.tipGrip.visual),de}return ce(F,fe),F.prototype.ownsTarget=function(Z){return fe.prototype.ownsTarget.call(this,Z)||this.tipGrip.ownsTarget(Z)||this.tip===Z},F.prototype.createTip=function(){oe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=oe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},F.prototype.pointerDown=function(Z,le){this.state==="new"&&fe.prototype.pointerDown.call(this,Z,le),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(le)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):fe.prototype.pointerDown.call(this,Z,le)},F.prototype.pointerUp=function(Z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,fe.prototype.pointerUp.call(this,Z);else{var le=this.state==="creating";fe.prototype.pointerUp.call(this,Z),this.setTipPoints(le),this.positionTip()}},F.prototype.manipulate=function(Z){if(this.tipMoving){var le=this.unrotatePoint(Z);this.tipPosition={x:le.x-this.manipulationStartLeft,y:le.y-this.manipulationStartTop},this.positionTip()}else fe.prototype.manipulate.call(this,Z)},F.prototype.setBgColor=function(Z){this.bgRectangle&&this.tip&&(oe.setAttributes(this.bgRectangle,[["fill",Z]]),oe.setAttributes(this.tip,[["fill",Z]])),this.bgColor=Z,this.fillColorChanged(Z)},F.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},F.prototype.setTipPoints=function(Z){Z===void 0&&(Z=!1);var le=Math.min(this.height/2,15),_e=this.height/5;Z&&(this.tipPosition={x:le+_e/2,y:this.height+20});var de=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?de',F}(bt),rt=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.fillColor="transparent",de.strokeColor="transparent",de.strokeWidth=0,de.strokeDasharray="",de.opacity=1,de.strokeColor=_e.defaultColor,de.strokeWidth=_e.defaultStrokeWidth,de.strokeDasharray=_e.defaultStrokeDasharray,de.fillColor=_e.defaultFillColor,de.setStrokeColor=de.setStrokeColor.bind(de),de.setFillColor=de.setFillColor.bind(de),de.setStrokeWidth=de.setStrokeWidth.bind(de),de.setStrokeDasharray=de.setStrokeDasharray.bind(de),de.setOpacity=de.setOpacity.bind(de),de.createVisual=de.createVisual.bind(de),de.strokePanel=new Oe("Line color",se(_e.defaultColorSet,["transparent"]),_e.defaultColor),de.strokePanel.onColorChanged=de.setStrokeColor,de.fillPanel=new Oe("Fill color",se(_e.defaultColorSet,["transparent"]),de.fillColor,Xe),de.fillPanel.onColorChanged=de.setFillColor,de.strokeWidthPanel=new pt("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),de.strokeWidthPanel.onWidthChanged=de.setStrokeWidth,de.strokeStylePanel=new xt("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),de.strokeStylePanel.onStyleChanged=de.setStrokeDasharray,de.opacityPanel=new Ie("Opacity",_e.defaultOpacitySteps,de.opacity),de.opacityPanel.onOpacityChanged=de.setOpacity,de}return ce(F,fe),F.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},F.prototype.createVisual=function(){this.visual=oe.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)},F.prototype.pointerDown=function(Z,le){fe.prototype.pointerDown.call(this,Z,le),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},F.prototype.manipulate=function(Z){fe.prototype.manipulate.call(this,Z)},F.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),this.setSize()},F.prototype.setSize=function(){fe.prototype.setSize.call(this),oe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},F.prototype.pointerUp=function(Z){fe.prototype.pointerUp.call(this,Z),this.setSize()},F.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},F.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Z),this.stateChanged()},F.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},F.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&oe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},F.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&oe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this));return Z.typeName=F.typeName,Z},F.prototype.restoreState=function(Z){var le=Z;this.fillColor=le.fillColor,this.strokeColor=le.strokeColor,this.strokeWidth=le.strokeWidth,this.strokeDasharray=le.strokeDasharray,this.opacity=le.opacity,this.createVisual(),fe.prototype.restoreState.call(this,Z),this.setSize()},F.prototype.scale=function(Z,le){fe.prototype.scale.call(this,Z,le),this.setSize()},F.typeName="EllipseMarker",F.title="Ellipse marker",F.icon='',F}(ut),Lt=function(fe){function F(Z,le,_e){return fe.call(this,Z,le,_e)||this}return ce(F,fe),Object.defineProperty(F.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),F.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.tip1&&Z!==this.tip2)},F.prototype.createTips=function(){this.tip1=oe.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(oe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=oe.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(oe.createTransform()),this.visual.appendChild(this.tip2)},F.prototype.pointerDown=function(Z,le){fe.prototype.pointerDown.call(this,Z,le),this.state==="creating"&&this.createTips()},F.prototype.adjustVisual=function(){if(fe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(oe.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()]]),oe.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 Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),le=this.tip1.transform.baseVal.getItem(0);le.setRotate(Z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(le,0);var _e=this.tip2.transform.baseVal.getItem(0);_e.setRotate(Z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(_e,0)}},Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=F.typeName,Z},F.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z),this.createTips(),this.adjustVisual()},F.typeName="MeasurementMarker",F.title="Measurement marker",F.icon='',F}(kt),Jt=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.strokePanel.colors=_e.defaultColorSet,de.fillColor="transparent",de}return ce(F,fe),Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=F.typeName,Z},F.typeName="EllipseFrameMarker",F.title="Ellipse frame marker",F.icon='',F}(rt),En=function(){function fe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(fe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),fe.prototype.addUndoStep=function(F){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(F)||(this.undoStack.push(F),JSON.stringify(this.lastRedoStep)!==JSON.stringify(F)&&this.redoStack.splice(0,this.redoStack.length))},fe.prototype.replaceLastUndoStep=function(F){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=F)},fe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},fe.prototype.undo=function(){if(this.undoStack.length>1){var F=this.undoStack.pop();return F!==void 0&&this.redoStack.push(F),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},fe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},fe}(),nn=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le,_e)||this;return de.strokeColor="transparent",de.strokeWidth=0,de.strokeDasharray="",de.curveX=0,de.curveY=0,de.manipulationStartCurveX=0,de.manipulationStartCurveY=0,de.setStrokeColor=de.setStrokeColor.bind(de),de.setStrokeWidth=de.setStrokeWidth.bind(de),de.setStrokeDasharray=de.setStrokeDasharray.bind(de),de.positionGrips=de.positionGrips.bind(de),de.addControlGrips=de.addControlGrips.bind(de),de.adjustVisual=de.adjustVisual.bind(de),de.setupControlBox=de.setupControlBox.bind(de),de.resize=de.resize.bind(de),de.strokeColor=_e.defaultColor,de.strokeWidth=_e.defaultStrokeWidth,de.strokeDasharray=_e.defaultStrokeDasharray,de.strokePanel=new Oe("Line color",_e.defaultColorSet,_e.defaultColor),de.strokePanel.onColorChanged=de.setStrokeColor,de.strokeWidthPanel=new pt("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),de.strokeWidthPanel.onWidthChanged=de.setStrokeWidth,de.strokeStylePanel=new xt("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),de.strokeStylePanel.onStyleChanged=de.setStrokeDasharray,de}return ce(F,fe),F.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorCurve&&Z!==this.visibleCurve&&!this.curveGrip.ownsTarget(Z))},F.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},F.prototype.createVisual=function(){this.visual=oe.createGroup(),this.selectorCurve=oe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=oe.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)},F.prototype.pointerDown=function(Z,le){fe.prototype.pointerDown.call(this,Z,le),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Z.x,this.curveY=Z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(le)&&(this.activeGrip=this.curveGrip,this._state="resize")},F.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),oe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),oe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),oe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},F.prototype.setupControlBox=function(){fe.prototype.setupControlBox.call(this),this.curveControlLine1=oe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=oe.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)},F.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,fe.prototype.addControlGrips.call(this)},F.prototype.positionGrips=function(){fe.prototype.positionGrips.call(this);var Z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Z/2,this.curveY-Z/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()))},F.prototype.manipulate=function(Z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Z.y-this.manipulationStartY),fe.prototype.manipulate.call(this,Z)},F.prototype.resize=function(Z){this.activeGrip===this.curveGrip&&(this.curveX=Z.x,this.curveY=Z.y),fe.prototype.resize.call(this,Z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},F.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},F.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},F.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual()},F.prototype.scale=function(Z,le){this.curveX=this.curveX*Z,this.curveY=this.curveY*le,fe.prototype.scale.call(this,Z,le)},Object.defineProperty(F.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),F.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},fe.prototype.getState.call(this));return Z.typeName=F.typeName,Z},F.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var le=Z;this.strokeColor=le.strokeColor,this.strokeWidth=le.strokeWidth,this.strokeDasharray=le.strokeDasharray,this.curveX=le.curveX,this.curveY=le.curveY,this.createVisual(),this.adjustVisual()},F.typeName="CurveMarker",F.title="Curve marker",F.icon='',F}(st),Ot=function(){function fe(F,Z){Z===void 0&&(Z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=F,this.cancelable=Z}return Object.defineProperty(fe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),fe.prototype.preventDefault=function(){this._defaultPrevented=!0},fe}(),He=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,!1)||this;return de.dataUrl=le,de.state=_e,de}return ce(F,fe),F}(Ot),it=function(fe){function F(Z,le,_e){_e===void 0&&(_e=!1);var de=fe.call(this,Z,_e)||this;return de.marker=le,de}return ce(F,fe),F}(Ot),ot=function(){function fe(){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 fe.prototype.addEventListener=function(F,Z){this[F].push(Z)},fe.prototype.removeEventListener=function(F,Z){var le=this[F].indexOf(Z);le>-1&&this[F].splice(le,1)},fe}(),Ne=function(){function fe(F){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ue,this._isOpen=!1,this.undoRedoManager=new En,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 ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=fe.instanceCounter++,this.styles=new re(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=F,this.targetRoot=document.body,this.width=F.clientWidth,this.height=F.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(fe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ke,Ve,Je,bt,Jt,rt,Fe,vt,Lt,Te,kt,nn]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ke,Ve,Je,bt,rt,Fe,vt]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ke,Ve,Je,bt,Fe]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(F){var Z=this;this._availableMarkerTypes.splice(0),F.forEach(function(le){if(typeof le=="string"){var _e=Z.ALL_MARKER_TYPES.find(function(de){return de.typeName===le});_e!==void 0&&Z._availableMarkerTypes.push(_e)}else Z._availableMarkerTypes.push(le)})},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(F){this._zoomLevel=F,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(fe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),fe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),$.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},fe.prototype.show=function(){var F=this;this.styles.styleSheetRoot===void 0&&ne.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ne.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Z){return Z(new Ot(F))})},fe.prototype.render=function(){return Ee(this,void 0,void 0,function(){var F;return ye(this,function(Z){switch(Z.label){case 0:return this.setCurrentMarker(),(F=new pe).naturalSize=this.renderAtNaturalSize,F.imageType=this.renderImageType,F.imageQuality=this.renderImageQuality,F.markersOnly=this.renderMarkersOnly,F.width=this.renderWidth,F.height=this.renderHeight,[4,F.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Z.sent(),[4,F.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Z.sent()]}})})},fe.prototype.close=function(F){var Z=this;if(F===void 0&&(F=!1),this.isOpen){var le=!1;F||this.eventListeners.beforeclose.forEach(function(_e){var de=new Ot(Z,!0);_e(de),de.defaultPrevented&&(le=!0)}),le||(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(_e){return _e(new Ot(Z))}),this.detachEvents(),this._isOpen=!1)}},fe.prototype.addMarkersToToolbar=function(){for(var F,Z=[],le=0;lethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*F:this.editorCanvas.clientWidth,le=Z',F.title="Powered by marker.js",F.style.display="grid",F.style.alignItems="center",F.style.justifyItems="center",F.style.padding="3px",F.style.width="20px",F.style.height="20px",this.logoUI.appendChild(F),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},fe.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")},fe.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"},fe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},fe.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 F=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=F+"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 q(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(F),1),F.dispose()},fe.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())},fe.prototype.toolbarButtonClicked=function(F,Z){if(F==="marker"&&Z!==void 0)this.createNewMarker(Z);else if(F==="action")switch(Z){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()}},fe.prototype.deleteSelectedMarker=function(){var F=this;if(this._currentMarker!==void 0){var Z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(_e){var de=new it(F,F._currentMarker,!0);_e(de),de.defaultPrevented&&(Z=!0)}),!Z){var le=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(_e){return _e(new it(F,le))})}}},fe.prototype.clear=function(){var F=this,Z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ct){var hn=new it(F,void 0,!0);ct(hn),hn.defaultPrevented&&(Z=!0)}),!Z)){this.setCurrentMarker();for(var le=function(ct){var hn=_e.markers[ct];_e.setCurrentMarker(_e.markers[ct]),_e._currentMarker.dispose(),_e.markerImage.removeChild(_e._currentMarker.container),_e.markers.splice(_e.markers.indexOf(_e._currentMarker),1),_e.eventListeners.markerdelete.forEach(function(Wn){return Wn(new it(F,hn))})},_e=this,de=this.markers.length-1;de>=0;de--)le(de);this.addUndoStep()}},Object.defineProperty(fe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),fe.prototype.showNotesEditor=function(){var F;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=(F=this._currentMarker.notes)!==null&&F!==void 0?F:"",this.overlayContainer.appendChild(this.notesArea))},fe.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)},fe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},fe.prototype.addUndoStep=function(){var F=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Z=this.getState(),le=this.undoRedoManager.getLastUndoStep();if(!le||le.width===Z.width&&le.height===Z.height){var _e=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Z),_e1&&this.panTo({x:F.clientX,y:F.clientY}))},fe.prototype.onPointerUp=function(F){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(F.clientX,F.clientY)),this.isDragging=!1,this.addUndoStep()},fe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},fe.prototype.onKeyUp=function(F){this._currentMarker===void 0||this.notesArea!==void 0||F.key!=="Delete"&&F.key!=="Backspace"||this.deleteSelectedMarker()},fe.prototype.clientToLocalCoordinates=function(F,Z){var le=this.markerImage.getBoundingClientRect();return{x:(F-le.left)/this.zoomLevel,y:(Z-le.top)/this.zoomLevel}},fe.prototype.onWindowResize=function(){this.positionUI()},fe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var F=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=F+"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()},fe.prototype.addLicenseKey=function(F){$.addKey(F)},fe.prototype.addEventListener=function(F,Z){this.eventListeners.addEventListener(F,Z)},fe.prototype.removeEventListener=function(F,Z){this.eventListeners.removeEventListener(F,Z)},fe.prototype.renderState=function(F){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(F),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(fe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),fe.prototype.focus=function(){var F=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Z){return Z(new Ot(F))}))},fe.prototype.blur=function(){var F=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Z){return Z(new Ot(F))}))},fe.instanceCounter=0,fe}();/* **********************************
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 Qe=function(fe,F){return(Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,le){Z.__proto__=le}||function(Z,le){for(var _e in le)Object.prototype.hasOwnProperty.call(le,_e)&&(Z[_e]=le[_e])})(fe,F)};function At(fe,F){if(typeof F!="function"&&F!==null)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function Z(){this.constructor=fe}Qe(fe,F),fe.prototype=F===null?Object.create(F):(Z.prototype=F.prototype,new Z)}function yt(fe,F,Z,le){return new(Z||(Z=Promise))(function(_e,de){function ct(er){try{Wn(le.next(er))}catch(en){de(en)}}function hn(er){try{Wn(le.throw(er))}catch(en){de(en)}}function Wn(er){var en;er.done?_e(er.value):(en=er.value,en instanceof Z?en:new Z(function(Ln){Ln(en)})).then(ct,hn)}Wn((le=le.apply(fe,F||[])).next())})}function It(fe,F){var Z,le,_e,de,ct={label:0,sent:function(){if(1&_e[0])throw _e[1];return _e[1]},trys:[],ops:[]};return de={next:hn(0),throw:hn(1),return:hn(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function hn(Wn){return function(er){return function(en){if(Z)throw new TypeError("Generator is already executing.");for(;ct;)try{if(Z=1,le&&(_e=2&en[0]?le.return:en[0]?le.throw||((_e=le.return)&&_e.call(le),0):le.next)&&!(_e=_e.call(le,en[1])).done)return _e;switch(le=0,_e&&(en=[2&en[0],_e.value]),en[0]){case 0:case 1:_e=en;break;case 4:return ct.label++,{value:en[1],done:!1};case 5:ct.label++,le=en[1],en=[0];continue;case 7:en=ct.ops.pop(),ct.trys.pop();continue;default:if(!(_e=ct.trys,(_e=_e.length>0&&_e[_e.length-1])||en[0]!==6&&en[0]!==2)){ct=0;continue}if(en[0]===3&&(!_e||en[1]>_e[0]&&en[1]<_e[3])){ct.label=en[1];break}if(en[0]===6&&ct.label<_e[1]){ct.label=_e[1],_e=en;break}if(_e&&ct.label<_e[2]){ct.label=_e[2],ct.ops.push(en);break}_e[2]&&ct.ops.pop(),ct.trys.pop();continue}en=F.call(fe,ct)}catch(Ln){en=[6,Ln],le=0}finally{Z=_e=0}if(5&en[0])throw en[1];return{value:en[0]?en[1]:void 0,done:!0}}([Wn,er])}}}var Ft=function(){function fe(){}return fe.addKey=function(F){fe.key=F},Object.defineProperty(fe,"isLicensed",{get:function(){return!!fe.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(fe.key)},enumerable:!1,configurable:!0}),fe}(),dt=function(){function fe(){}return fe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},fe.setAttributes=function(F,Z){for(var le=0,_e=Z;le<_e.length;le++){var de=_e[le],ct=de[0],hn=de[1];F.setAttribute(ct,hn)}},fe.createRect=function(F,Z,le){var _e=document.createElementNS("http://www.w3.org/2000/svg","rect");return _e.setAttribute("width",F.toString()),_e.setAttribute("height",Z.toString()),le&&fe.setAttributes(_e,le),_e},fe.createLine=function(F,Z,le,_e,de){var ct=document.createElementNS("http://www.w3.org/2000/svg","line");return ct.setAttribute("x1",F.toString()),ct.setAttribute("y1",Z.toString()),ct.setAttribute("x2",le.toString()),ct.setAttribute("y2",_e.toString()),de&&fe.setAttributes(ct,de),ct},fe.createPolygon=function(F,Z){var le=document.createElementNS("http://www.w3.org/2000/svg","polygon");return le.setAttribute("points",F),Z&&fe.setAttributes(le,Z),le},fe.createCircle=function(F,Z){var le=document.createElementNS("http://www.w3.org/2000/svg","circle");return le.setAttribute("cx",(F/2).toString()),le.setAttribute("cy",(F/2).toString()),le.setAttribute("r",F.toString()),Z&&fe.setAttributes(le,Z),le},fe.createEllipse=function(F,Z,le){var _e=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return _e.setAttribute("cx",(F/2).toString()),_e.setAttribute("cy",(Z/2).toString()),_e.setAttribute("rx",(F/2).toString()),_e.setAttribute("ry",(Z/2).toString()),le&&fe.setAttributes(_e,le),_e},fe.createGroup=function(F){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return F&&fe.setAttributes(Z,F),Z},fe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},fe.createMarker=function(F,Z,le,_e,de,ct,hn){var Wn=document.createElementNS("http://www.w3.org/2000/svg","marker");return fe.setAttributes(Wn,[["id",F],["orient",Z],["markerWidth",le.toString()],["markerHeight",_e.toString()],["refX",de.toString()],["refY",ct.toString()]]),Wn.appendChild(hn),Wn},fe.createText=function(F){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),F&&fe.setAttributes(Z,F),Z},fe.createTSpan=function(F,Z){var le=document.createElementNS("http://www.w3.org/2000/svg","tspan");return le.textContent=F,Z&&fe.setAttributes(le,Z),le},fe.createImage=function(F){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return F&&fe.setAttributes(Z,F),Z},fe.createPoint=function(F,Z){var le=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return le.x=F,le.y=Z,le},fe.createPath=function(F,Z){var le=document.createElementNS("http://www.w3.org/2000/svg","path");return le.setAttribute("d",F),Z&&fe.setAttributes(le,Z),le},fe.createElement=function(F,Z){var le=document.createElementNS("http://www.w3.org/2000/svg",F);return Z&&fe.setAttributes(le,Z),le},fe.getHollowRectanglePath=function(F,Z,le,_e,de,ct,hn,Wn){return"M"+F+","+Z+"V"+(Z+_e)+"H"+(F+le)+"V"+Z+"H"+de+"V"+ct+"H"+(de+hn)+"V"+(ct+Wn)+"H"+de+"V"+Z+"Z"},fe}(),Wt=function(){function fe(F){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+F+"_"}return Object.defineProperty(fe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),fe.prototype.addClass=function(F){return this.styleSheet===void 0&&this.addStyleSheet(),F.name=""+this.classNamePrefix+F.localName,this.classes.push(F),this.styleSheet.sheet.insertRule("."+F.name+" {"+F.style+"}",this.styleSheet.sheet.cssRules.length),F},fe.prototype.addRule=function(F){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(F),this.styleSheet.sheet.insertRule(F.selector+" {"+F.style+"}",this.styleSheet.sheet.cssRules.length)},fe.prototype.addStyleSheet=function(){var F;this.styleSheet=document.createElement("style"),((F=this.styleSheetRoot)!==null&&F!==void 0?F:document.head).appendChild(this.styleSheet),this.addRule(new tn("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new tn("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new tn("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Fn("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Fn("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},fe.prototype.removeStyleSheet=function(){var F;this.styleSheet&&(((F=this.styleSheetRoot)!==null&&F!==void 0?F:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},fe}(),tn=function(fe,F){this.selector=fe,this.style=F},Fn=function(fe,F){this.localName=fe,this.style=F},Tn=function(){function fe(){this.blocks=[],this.display=""}return fe.prototype.addButtonBlock=function(F){F.className=this.blockClassName,F.buttonClassName=this.buttonClassName,F.buttonColorsClassName=this.buttonColorsClassName,F.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(F)},fe.prototype.addElementBlock=function(F){F.className===void 0&&(F.className=this.blockClassName),this.blocks.push(F)},fe.prototype.getUI=function(){var F=document.createElement("div");return F.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,F.style.display=this.display,this.blocks.forEach(function(Z){return F.appendChild(Z.getUI())}),F},fe}(),Jn=function(){function fe(){}return fe.prototype.getUI=function(){var F=document.createElement("div");if(F.className=this.className,this.minWidth!==void 0&&(F.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":F.style.justifyContent="flex-start";break;case"center":F.style.justifyContent="center";break;case"end":F.style.justifyContent="flex-end"}return F.style.whiteSpace="nowrap",F},fe}(),$n=function(fe){function F(){var Z=fe!==null&&fe.apply(this,arguments)||this;return Z.buttons=[],Z}return At(F,fe),F.prototype.addButton=function(Z){Z.className=this.buttonClassName,Z.colorsClassName=this.buttonColorsClassName,Z.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(Z)},F.prototype.getUI=function(){var Z=fe.prototype.getUI.call(this);return this.buttons.forEach(function(le){return Z.appendChild(le.getUI())}),Z},F}(Jn),Mn=function(){function fe(F,Z){this._isActive=!1,this._isHidden=!1,this._icon=F,this.title=Z,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(fe.prototype,"icon",{get:function(){return this._icon},set:function(F){this._icon=F,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isActive",{get:function(){return this._isActive},set:function(F){this._isActive=F,this.adjustClassName()},enumerable:!1,configurable:!0}),fe.prototype.getUI=function(){var F=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return F.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},fe.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},fe.prototype.hide=function(){this._isHidden=!0},fe}(),ln=function(fe){function F(){var Z=fe!==null&&fe.apply(this,arguments)||this;return Z.elements=[],Z}return At(F,fe),F.prototype.addElement=function(Z){this.elements.push(Z)},F.prototype.getUI=function(){var Z=fe.prototype.getUI.call(this);return this.elements.forEach(function(le){return Z.appendChild(le)}),Z},F}(Jn),Sr=function(){function fe(F,Z){this.horizontal=F,this.vertical=Z}return Object.defineProperty(fe.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),fe.prototype.getVerticalLength=function(F){return F/this.ratio},fe.prototype.getHorizontalLength=function(F){return F*this.ratio},fe}(),Pr=function(){function fe(){}return fe.getIcon=function(F,Z){if(F>0&&Z>0){var le=new Sr(F,Z),_e=le.ratio>=1?20:le.getHorizontalLength(20),de=le.ratio<1?20:le.getVerticalLength(20),ct=document.createElementNS("http://www.w3.org/2000/svg","svg");ct.setAttribute("xmlns","http://www.w3.org/2000/svg"),ct.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ct);var hn=dt.createDefs();ct.appendChild(hn);var Wn=dt.createElement("clipPath",[["id","text-bg-clip"]]);hn.appendChild(Wn);var er=dt.createPath(dt.getHollowRectanglePath((24-_e)/2,(24-de)/2,_e,de,(24-_e)/2+2,(24-de)/2+2,_e-4,de-4));ct.appendChild(er);var en=dt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);en.appendChild(dt.createTSpan(F+":"+Z)),ct.appendChild(en);var Ln=en.getBBox();dt.setAttributes(en,[["x",((24-Ln.width)/2).toString()],["y",((24-Ln.height)/2-Ln.y).toString()]]);var kn=dt.createPath(dt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Ln.width))/2,(24-Math.ceil(Ln.height))/2,Math.ceil(Ln.width),Math.ceil(Ln.height)));return Wn.appendChild(kn),dt.setAttributes(er,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ct),ct.outerHTML}return''},fe}(),Mr=function(fe){function F(Z,le,_e){var de=fe.call(this,Z,le)||this;return de.isDropdownOpen=!1,de.onClick=de.dropdownButtonClicked,de.dropdownButtons=_e,de}return At(F,fe),F.prototype.setupDropdown=function(){var Z=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(le){le.className=Z.className,le.colorsClassName=Z.colorsClassName,Z.dropdownBlock.appendChild(le.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},F.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},F.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},F.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},F.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},F.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},F}(Mn),cr=function(){function fe(F,Z){this.GRIP_SIZE=10,this.color=F,this.fillColor=Z,this.visual=dt.createGroup(),this.visual.appendChild(dt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(dt.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return fe.prototype.ownsTarget=function(F){return F===this.visual||F===this.visual.childNodes[0]||F===this.visual.childNodes[1]},fe.prototype.setCenter=function(F,Z){this.visual.childNodes.forEach(function(le){return dt.setAttributes(le,[["cx",F.toString()],["cy",Z.toString()]])})},fe}(),Hn=function(){function fe(F,Z,le,_e){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=F,this.canvasHeight=Z,this.margin=le,this.container=_e,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(fe.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(F){this._aspectRatio=F,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(F){this._isGridVisible=F,this.gridContainer&&dt.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(F){this._zoomFactor=F,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),fe.prototype.open=function(){var F=this;this.cropShadeElement=dt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=dt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var Z=0;Zthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-Z.height/2),dt.setAttributes(this.cropRectElement,[["x",Z.x.toString()],["y",Z.y.toString()],["width",Z.width.toString()],["height",Z.height.toString()]]);var le=Z.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(de,ct){var hn=Z.y+le*(ct+1);dt.setAttributes(de,[["x1",""+Z.x],["y1",""+hn],["x2",""+(Z.x+Z.width)],["y2",""+hn]])});var _e=Z.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(de,ct){var hn=Z.x+_e*(ct+1);dt.setAttributes(de,[["x1",""+hn],["y1",""+Z.y],["x2",""+hn],["y2",""+(Z.y+Z.height)]])}),dt.setAttributes(this.cropShadeElement,[["d",dt.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,Z.x,Z.y,Z.width,Z.height)]]),this.topLeftGrip.setCenter(Z.x,Z.y),this.topRightGrip.setCenter(Z.x+Z.width,Z.y),this.bottomLeftGrip.setCenter(Z.x,Z.y+Z.height),this.bottomRightGrip.setCenter(Z.x+Z.width,Z.y+Z.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},fe.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)},fe.prototype.clientToLocalCoordinates=function(F,Z){var le=this.container.getBoundingClientRect();return{x:F-le.left+this.margin,y:Z-le.top+this.margin}},fe.prototype.onPointerDown=function(F){this.container.setPointerCapture(F.pointerId),this.previousPoint=this.clientToLocalCoordinates(F.clientX,F.clientY),this.cropRectElement===F.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(F.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(F.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(F.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(F.target)&&(this.activeGrip=this.bottomRightGrip)},fe.prototype.onPointerMove=function(F){if(this.isMoving)this.move(this.clientToLocalCoordinates(F.clientX,F.clientY));else if(this.activeGrip){var Z=this.clientToLocalCoordinates(F.clientX,F.clientY);this.resize(Z)}F.preventDefault()},fe.prototype.onPointerUp=function(F){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(F.pointerId)},fe.prototype.move=function(F){var Z=F.x-this.previousPoint.x,le=F.y-this.previousPoint.y;this.zoomFactor!==1&&(Z=-Z/this.zoomFactor,le=-le/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+Z),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+le),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=F},fe.prototype.resize=function(F){var Z=Object.assign({},this.cropRect),le=F.x-this.previousPoint.x,_e=F.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:Z.x+lethis.canvasWidth*this.zoomFactor&&(le=this.canvasWidth*this.zoomFactor-Z.width),Z.width+=le}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(Z.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(le),Z.height=this.aspectRatio.getVerticalLength(Z.width)):(Z.y+=_e,Z.height=this.cropRect.y+this.cropRect.height-Z.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?Z.height=this.aspectRatio.getVerticalLength(Z.width):Z.height+=_e}Z.width<10&&(Z.x=this.cropRect.x,Z.width=10),Z.height<10&&(Z.y=this.cropRect.y,Z.height=10),this.previousPoint=F,Z.x>=this.margin&&Z.y>=this.margin&&Z.x-this.margin+Z.width<=this.canvasWidth&&Z.y-this.margin+Z.height<=this.canvasHeight&&(this.cropRect=Z,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},fe.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var F=this.cropRect.x+this.cropRect.width/2,Z=this.cropRect.y+this.cropRect.height/2,le=this.aspectRatio.getHorizontalLength(this.cropRect.height),_e=this.aspectRatio.getVerticalLength(this.cropRect.width);le/this.canvasWidth<_e/this.canvasHeight?this.cropRect.width=le:this.cropRect.height=_e,this.cropRect.width>this.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=F-this.cropRect.width/2,this.cropRect.y=Z-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)}},fe.prototype.getRescaledRect=function(F,Z,le,_e,de,ct){var hn=le/F,Wn=_e/Z;return{x:(de.x-ct)*hn+ct,y:(de.y-ct)*Wn+ct,width:de.width*hn,height:de.height*Wn}},fe.prototype.scaleCanvas=function(F,Z){var le=this.getRescaledRect(this.canvasWidth,this.canvasHeight,F,Z,this.cropRect,this.margin);this.canvasWidth=F,this.canvasHeight=Z,this.onCropChange&&this.onCropChange(le),this.setCropRectangle(le)},fe}(),qn=function(){function fe(F){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=F,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(fe.prototype,"angle",{get:function(){return this._angle},set:function(F){this._angle=F,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),fe.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},fe.prototype.onPointerDown=function(F){this.controlContainer.setPointerCapture(F.pointerId),this.isDragging=!0,this.previousPoint={x:F.clientX,y:F.clientY}},fe.prototype.onPointerMove=function(F){this.isDragging&&(this.onAngleChange&&this.onAngleChange((F.clientX-this.previousPoint.x)/5),this.previousPoint.x=F.clientX)},fe.prototype.onPointerUp=function(F){this.isDragging&&this.onAngleChange&&this.onAngleChange((F.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(F.pointerId)},fe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var F=this.angleLabelText.getBBox();dt.setAttributes(this.angleLabelElement,[["x",((this.width-F.width)/2).toString()],["y",(this.height/2).toString()]])}},fe.prototype.positionScaleShape=function(){if(this.scaleShape){var F=this.scaleShape.transform.baseVal.getItem(0);F.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(F,0)}},fe.prototype.getVisual=function(){var F=document.createElementNS("http://www.w3.org/2000/svg","svg");F.setAttribute("xmlns","http://www.w3.org/2000/svg"),F.setAttribute("width",this.width+"px"),F.setAttribute("height",this.height+"px"),F.setAttribute("viewBox","0 0 "+this.width+" "+this.height),F.style.flexShrink="0",document.body.appendChild(F);for(var Z="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,le=1;le<=this.width/5+10;le++){var _e=le%5==0?this.height/3:this.height/6;Z+="h4v"+-_e+"h1v"+_e}Z+="v1H0Z",this.scaleShape=dt.createPath(Z);var de=dt.createTransform();this.scaleShape.transform.baseVal.appendItem(de),F.appendChild(this.scaleShape),this.angleLabelElement=dt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=dt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ct=dt.createTSpan("");return ct.innerHTML="°",this.angleLabelElement.appendChild(ct),F.appendChild(this.angleLabelElement),document.body.removeChild(F),F},fe}(),an=function(){function fe(){this.naturalSize=!1,this.imageType="image/png"}return fe.prototype.rasterize=function(F,Z,le,_e,de,ct,hn){var Wn=this;return new Promise(function(er){var en=document.createElement("canvas");en.width=F.width.baseVal.value-2*_e,en.height=F.height.baseVal.value-2*_e;var Ln=1,kn=1;Wn.naturalSize===!0?(Ln=Z.naturalWidth/(F.width.baseVal.value-2*_e)/ct,kn=Z.naturalHeight/(F.height.baseVal.value-2*_e)/hn,en.width=Z.naturalWidth/ct,en.height=Z.naturalHeight/hn):Wn.width!==void 0&&Wn.height!==void 0&&(Ln=Wn.width/le.width,kn=Wn.height/le.height,en.width*=Ln,en.height*=kn);var $r=en.getContext("2d");$r.translate(en.width/2,en.height/2),$r.rotate(de*Math.PI/180),$r.scale(ct,hn),$r.translate(-en.width/2,-en.height/2),$r.drawImage(Z,0,0,en.width,en.height);var _a=document.createElement("canvas");_a.width=le.width*Ln,_a.height=le.height*kn,_a.getContext("2d").putImageData($r.getImageData((le.x-_e)*Ln,(le.y-_e)*kn,le.width*Ln,le.height*kn),0,0),er(_a.toDataURL(Wn.imageType,Wn.imageQuality))})},fe}(),Gt=function(){function fe(F){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=fe.instanceCounter++,this.styles=new Wt(this.instanceNo),this.target=F,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(fe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(F){this._zoomToCropEnabled=F,F?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(F){this._isGridVisible=F,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(F){this._gridLines=F,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(F){this._rotationAngle=F,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"aspectRatio",{get:function(){var F;return(F=this._aspectRatio)!==null&&F!==void 0?F:this.aspectRatios[0]},set:function(F){this._aspectRatio=F},enumerable:!1,configurable:!0}),fe.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},fe.prototype.show=function(){this.showUI(),this.open()},fe.prototype.close=function(F){F===void 0&&(F=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),F||this.closeEventListeners.forEach(function(Z){return Z()}),this._isOpen=!1)},fe.prototype.addRenderEventListener=function(F){this.renderEventListeners.push(F)},fe.prototype.removeRenderEventListener=function(F){this.renderEventListeners.indexOf(F)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(F),1)},fe.prototype.addCloseEventListener=function(F){this.closeEventListeners.push(F)},fe.prototype.removeCloseEventListener=function(F){this.closeEventListeners.indexOf(F)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(F),1)},fe.prototype.setupResizeObserver=function(){var F=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){F.resize(F.target.clientWidth,F.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))},fe.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var F=1*this.target.clientWidth/this.target.clientHeight,Z=this.contentDiv.clientWidth/F>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*F:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,le=Z+2*this.CANVAS_MARGINF+this.CANVAS_MARGIN?this.target.offsetTop-(F+this.CANVAS_MARGIN):0;this.coverDiv.style.top=Z+"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},fe.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},fe.prototype.addTopToolbar=function(){var F=this;this.topToolbar=new Tn,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 Z=new $n;Z.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(Z);var le=[];this.aspectRatios.forEach(function(kn){var $r=new Mn(Pr.getIcon(kn.horizontal,kn.vertical),kn.horizontal===0&&kn.vertical===0?"FREE":kn.horizontal+":"+kn.vertical);$r.onClick=function(){return F.ratioButtonClicked(kn)},le.push($r)}),this.aspectRatioButton=new Mr(Pr.getIcon(0,0),"Aspect ratio",le),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,Z.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var _e=new Mn('',"Toggle grid");_e.isActive=this.isGridVisible,_e.onClick=function(){F.isGridVisible=!F.isGridVisible,_e.isActive=F.isGridVisible},Z.addButton(_e);var de=new Mn('',"Zoom to selection");if(de.isActive=this.zoomToCropEnabled,de.onClick=function(){F.zoomToCropEnabled=!F.zoomToCropEnabled,de.isActive=F.zoomToCropEnabled},Z.addButton(de),!Ft.isLicensed){var ct=new ln;this.topToolbar.addElementBlock(ct);var hn=document.createElement("div");hn.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Wn=document.createElement("a");Wn.style.color="currentColor",Wn.href="https://markerjs.com/products/cropro",Wn.target="_blank",Wn.innerHTML='',hn.appendChild(Wn),ct.addElement(hn)}var er=new $n;er.minWidth=3*this.toolbarHeight+"px",er.contentAlign="end",this.topToolbar.addButtonBlock(er);var en=new Mn('',"OK");en.onClick=this.startRenderAndClose,er.addButton(en),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(en.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Ln=new Mn('',"Close");Ln.onClick=this.close,er.addButton(Ln),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Ln.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},fe.prototype.addBottomToolbar=function(){var F=this;this.bottomToolbar=new Tn,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 Z=new $n;Z.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(Z);var le=new Mn('',"Rotate left");le.onClick=this.rotateLeftButtonClicked,Z.addButton(le);var _e=new Mn('',"Rotate right");_e.onClick=this.rotateRightButtonClicked,Z.addButton(_e);var de=new ln;de.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(de),this.straightener=new qn("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(er){F.rotateBy(er),F.straightener.angle=F.rotationAngle},de.addElement(this.straightener.getUI());var ct=new $n;ct.minWidth=2*this.toolbarHeight+"px",ct.contentAlign="end",this.bottomToolbar.addButtonBlock(ct);var hn=new Mn('',"Flip horizontal");hn.onClick=this.flipHorizontallyButtonClicked,ct.addButton(hn);var Wn=new Mn('',"Flip vertical");Wn.onClick=this.flipVerticallyButtonClicked,ct.addButton(Wn)},fe.prototype.ratioButtonClicked=function(F){this.aspectRatio=F,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},fe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Pr.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},fe.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Sr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},fe.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},fe.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},fe.prototype.restoreState=function(F){if(F){var Z=this.cropLayer.getRescaledRect(F.width,F.height,this.imageWidth,this.imageHeight,F.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(Z),this.cropRectChanged(Z),this.flippedHorizontally=F.flippedHorizontally,this.flippedVertically=F.flippedVertically,this.applyFlip(),this.rotationAngle=F.rotationAngle,this.applyRotation()}},fe.prototype.clientToLocalCoordinates=function(F,Z){var le=this.cropImage.getBoundingClientRect();return{x:F-le.left,y:Z-le.top}},fe.prototype.onWindowResize=function(){this.positionUI()},fe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var F=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=F+"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()},fe.prototype.rotateLeftButtonClicked=function(){var F=this.rotationAngle-90;this.rotationAngle%90!=0&&(F+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(F)},fe.prototype.rotateRightButtonClicked=function(){var F=this.rotationAngle+90;this.rotationAngle%90!=0&&(F-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(F)},fe.prototype.rotateTo=function(F){F=(F=F>180?F-360:F)<=-180?F+360:F,this.rotationAngle=F,this.applyRotation()},fe.prototype.rotateBy=function(F){this.rotateTo((this.rotationAngle+F)%360)},fe.prototype.applyRotation=function(){var F=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var Z=this.editingTargetRotationContainer.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(Z,0);var le=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/le.width,this.imageHeight/le.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=F},fe.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},fe.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},fe.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},fe.prototype.startRenderAndClose=function(){return yt(this,void 0,void 0,function(){var F,Z;return It(this,function(le){switch(le.label){case 0:return[4,this.render()];case 1:return F=le.sent(),Z=this.getState(),this.renderEventListeners.forEach(function(_e){return _e(F,Z)}),this.close(!0),[2]}})})},fe.prototype.render=function(){return yt(this,void 0,void 0,function(){var F;return It(this,function(Z){switch(Z.label){case 0:return(F=new an).naturalSize=this.renderAtNaturalSize,F.imageType=this.renderImageType,F.imageQuality=this.renderImageQuality,F.width=this.renderWidth,F.height=this.renderHeight,this.unzoomFromCrop(),dt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,F.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 Z.sent(),[4,F.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,Z.sent()]}})})},fe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Fn("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 Fn("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Fn("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var F=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Fn("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*F)+`px;
height: `+(this.toolbarHeight-2*F)+`px;
padding: `+F+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Fn("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Fn("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new tn("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new tn("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new Fn("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 Fn("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new Fn("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 Fn("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*F)+`px;
padding: `+F+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Fn("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},fe.instanceCounter=0,fe}(),_n=a("8hTe"),Br=a.n(_n),Ir=/]*>/g;function dr(fe){var F=document.createElement("div");return F.innerHTML=fe,F.childNodes.length===0?"":F.childNodes[0].nodeValue}var _r=J.a=function(fe){var F=fe.value,Z=F===void 0?"":F,le=fe.edit,_e=le===void 0?!1:le,de=fe.className,ct=fe.showTextOnly,hn=fe.showLines,Wn=fe.replaces,er=fe.zoomImg,en=fe.hasMask,Ln=fe.style,kn=Ln===void 0?{}:Ln,$r=fe.stylesPrev,_a=$r===void 0?{}:$r,ba=String(Z),sr=Object(o.useRef)(),Ha=Object(o.useRef)(),Ba=Object(o.useState)(""),Ia=Object(w.a)(Ba,2),Wa=Ia[0],ma=Ia[1],Qa=Object(o.useState)("office"),Ka=Object(w.a)(Qa,2),ri=Ka[0],ei=Ka[1],da=function(){var Pt=new Gt(Ha.current);Pt.displayMode="popup",Pt.addRenderEventListener(function(){var Ht=Object(E.a)(m.a.mark(function $t(pn){var un;return m.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return sr.current.style.display="none",yn.next=3,Object(Pe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:pn}});case 3:un=yn.sent,un!=null&&un.id&&Wn(Ha.current.getAttribute("src").replace(ue.a.API_SERVER,""),"/api/attachments/".concat(un==null?void 0:un.id,"?type=").concat(un.content_type));case 5:case"end":return yn.stop()}},$t)}));return function($t){return Ht.apply(this,arguments)}}()),Pt.show()},ha=function(){var Pt=new Ne(Ha.current);Pt.settings.displayMode="popup",Pt.addEventListener("render",function(){var Ht=Object(E.a)(m.a.mark(function $t(pn){var un;return m.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:if(sr.current.style.display="none",!Ha.current){yn.next=6;break}return yn.next=4,Object(Pe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:pn.dataUrl}});case 4:un=yn.sent,un!=null&&un.id&&Wn(Ha.current.getAttribute("src").replace(ue.a.API_SERVER,""),"/api/attachments/".concat(un==null?void 0:un.id,"?type=").concat(un.content_type));case 6:case"end":return yn.stop()}},$t)}));return function($t){return Ht.apply(this,arguments)}}()),Pt.show(),window.markerArea=Pt},ua=Object(o.useMemo)(function(){try{var jt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Pt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ht=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;ba=ba.replace(jt,"("+ue.a.API_SERVER+"/api/attachments/").replace(Pt,'"'+ue.a.API_SERVER+"/api/attachments/").replace(Ht,'"'+ue.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,`
`),ba=ba.replace(new RegExp("(?[TOC]
",P()),O()),$t=$t.replace(/(__special_katext_id_\d+__)/g,function(Un,yn){var on=pn[yn],Sn=on.type,mn=on.expression;return Object(ve.renderToString)(dr(mn)||"",{displayMode:Sn==="block",throwOnError:!1,output:"html"})}),$t=$t.replace(/▁/g,"\u2581\u2581\u2581"),N(),ct){var un=document.createElement("div");return un.innerHTML=$t,un.innerText}return setTimeout(function(){return Dt()},500),$t},[ba]),be=Object(o.useRef)();y.WebkitLineClamp=hn,hn&&(kn=Object(h.a)(Object(h.a)({},kn),y));function at(jt){var Pt=jt.target;if(Pt.tagName.toUpperCase()==="IMG"){if(er){var Ht=Pt.getAttribute("src");ma(Ht),ei("image")}}else if(Pt.tagName.toUpperCase()==="A"){var $t=Pt.getAttribute("href");if($t.indexOf("office")>-1)jt.preventDefault(),ma($t),ei("office");else if($t.indexOf("application/pdf")>-1)jt.preventDefault(),ma($t),ei("pdf");else if($t.indexOf("type=text")>-1)jt.preventDefault(),ma($t),ei("html");else if($t.startsWith("#")){jt.preventDefault();var pn=document.getElementById($t.replace("#",""));pn&&pn.scrollIntoView(!0)}}}var Dt=function(){var Pt,Ht=(Pt=be.current)===null||Pt===void 0?void 0:Pt.querySelectorAll("video");Ht==null||Ht.forEach(function($t){if($t.oncontextmenu=function(){return!1},$t.src.indexOf(".m3u8")>-1&&!$t.canPlayType("application/vnd.apple.mpegurl")){if(X.a.isSupported()){var pn=new X.a;pn.loadSource($t.src),pn.attachMedia($t)}}})};Object(o.useEffect)(function(){if(be.current&&ua&&(ua.match(Ir)&&window.PR.prettyPrint()),be.current)return be.current.addEventListener("click",at),function(){be.current.removeEventListener("click",at),N(),O()}},[ua,be.current,at]);var wt=function(Pt){if(!_e)return;Pt.target.nodeName==="IMG"?(sr.current.style.display="flex",sr.current.style.width=Pt.target.clientWidth+"px",sr.current.style.height=Pt.target.clientHeight+"px",sr.current.style.top=Pt.target.offsetTop+"px",sr.current.style.left=Pt.target.offsetLeft+"px",Ha.current.src=Pt.target.getAttribute("src")):sr.current.style.display="none"};return t.a.createElement("div",{style:{position:"relative"}},t.a.createElement("div",{ref:be,style:Object(h.a)({},kn),className:"".concat(de||""," markdown-body ").concat(Br.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:ua}}),t.a.createElement("div",{ref:sr,className:Br.a.button},t.a.createElement(g.a,null,t.a.createElement(f.a,{onClick:function(){return da()}},"\u88C1\u526A"),t.a.createElement(f.a,{onClick:function(){return ha()}},"\u7F16\u8F91"))),t.a.createElement("img",{ref:Ha,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),t.a.createElement(he.a,{close:!0,data:Wa,hasMask:en,type:Wa!=null&&Wa.length?ri:"",style:Object(h.a)({},_a),onClose:function(){return ma("")}}))}},"9OqN":function(M,J,a){(function(R,g,A){M.exports=J=g(a("Ib8C"),a("OLod"))})(this,function(R){return R.mode.CTR=function(){var g=R.lib.BlockCipherMode.extend(),A=g.Encryptor=g.extend({processBlock:function(f,h){var E=this._cipher,w=E.blockSize,r=this._iv,m=this._counter;r&&(m=this._counter=r.slice(0),this._iv=void 0);var o=m.slice(0);E.encryptBlock(o,0),m[w-1]=m[w-1]+1|0;for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(R.a)())return null;var o=document.createElement("style");if((r=m.csp)===null||r===void 0?void 0:r.nonce){var t;o.nonce=(t=m.csp)===null||t===void 0?void 0:t.nonce}o.innerHTML=w;var p=A(m),d=p.firstChild;return m.prepend&&p.prepend?p.prepend(o):m.prepend&&d?p.insertBefore(o,d):p.appendChild(o),o}var h=new Map;function E(w,r){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=A(m);if(!h.has(o)){var t=f("",m),p=t.parentNode;h.set(o,p),p.removeChild(t)}var d=Array.from(h.get(o).children).find(function(i){return i.tagName==="STYLE"&&i[g]===r});if(d){var s,_;if(((s=m.csp)===null||s===void 0?void 0:s.nonce)&&d.nonce!==((_=m.csp)===null||_===void 0?void 0:_.nonce)){var v;d.nonce=(v=m.csp)===null||v===void 0?void 0:v.nonce}return d.innerHTML!==w&&(d.innerHTML=w),d}var C=f(w,m);return C[g]=r,C}},Bbdw:function(M,J,a){M.exports={flex_box_center:"flex_box_center___1d7HC",flex_space_between:"flex_space_between___2tGvG",flex_box_vertical_center:"flex_box_vertical_center___3lO4f",flex_box_center_end:"flex_box_center_end___22Avr",flex_box_column:"flex_box_column___3SksD",headLeft:"headLeft___9XMDS",colorBlue:"colorBlue___1Qpec",wrap:"wrap___1u-Va",nodata:"nodata___V_2Oo",nodataText:"nodataText___1G_zo",content:"content___314Bx",gitCode:"gitCode___2GwFG",ellipsis:"ellipsis___2M7s4",menu:"menu___3Tf01",overlayClass:"overlayClass___3ckGv",tips:"tips___-Fisb"}},Bd2K:function(M,J,a){(function(R){R(a("VrN/"),a("osHv"))})(function(R){R.defineOption("autoCloseTags",!1,function(m,o,t){if(t!=R.Init&&t&&m.removeKeyMap("autoCloseTags"),!o)return;var p={name:"autoCloseTags"};(typeof o!="object"||o.whenClosing!==!1)&&(p["'/'"]=function(d){return E(d)}),(typeof o!="object"||o.whenOpening!==!1)&&(p["'>'"]=function(d){return f(d)}),m.addKeyMap(p)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],A=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function f(m){if(m.getOption("disableInput"))return R.Pass;for(var o=m.listSelections(),t=[],p=m.getOption("autoCloseTags"),d=0;ds.ch&&(u=u.slice(0,u.length-_.end+s.ch));var c=u.toLowerCase();if(!u||_.type=="string"&&(_.end!=s.ch||!/[\"\']/.test(_.string.charAt(_.string.length-1))||_.string.length==1)||_.type=="tag"&&i.close||_.string.indexOf("/")==s.ch-_.start-1||O&&w(O,c)>-1||r(m,v.mode.xmlCurrentContext&&v.mode.xmlCurrentContext(C)||[],u,s,!0))return R.Pass;var P=typeof p=="object"&&p.emptyTags;if(P&&w(P,u)>-1){t[d]={text:"/>",newPos:R.Pos(s.line,s.ch+2)};continue}var D=y&&w(y,c)>-1;t[d]={indent:D,text:">"+(D?`
`:"")+""+u+">",newPos:D?R.Pos(s.line+1,0):R.Pos(s.line,s.ch+1)}}for(var S=typeof p=="object"&&p.dontIndentOnAutoClose,d=o.length-1;d>=0;d--){var x=t[d];m.replaceRange(x.text,o[d].head,o[d].anchor,"+insert");var l=m.listSelections().slice(0);l[d]={head:x.newPos,anchor:x.newPos},m.setSelections(l),!S&&x.indent&&(m.indentLine(x.newPos.line,null,!0),m.indentLine(x.newPos.line+1,null,!0))}}function h(m,o){for(var t=m.listSelections(),p=[],d=o?"/":"",s=m.getOption("autoCloseTags"),_=typeof s=="object"&&s.dontIndentOnSlash,v=0;v"&&(O+=">"),p[v]=O}if(m.replaceSelections(p),t=m.listSelections(),!_)for(var v=0;v=0&&o[C]==t;C--)++v;p=_.to;for(var C=1;C0){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:"",o=[],t=0;t=50,title:Ue.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:function(){ie(Ue)}}," ",_.a.createElement(K.a,null)," \u6DFB\u52A0\u7EC4\u5458 ")):null):null)}))},B=a("9kvl"),X=a("ju9d");function ue($){var pe=$.children;return _.a.createElement("div",{className:"no-data"},_.a.createElement("img",{src:y.a,alt:"no-data",width:300}),pe)}var ve={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},he;(function($){$[$.INITDATA=0]="INITDATA",$[$.SHOWLOADING=1]="SHOWLOADING",$[$.SHOWFORMPANEL=2]="SHOWFORMPANEL",$[$.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",$[$.SELECTGROUP=4]="SELECTGROUP",$[$.SETINDEX=5]="SETINDEX"})(he||(he={}));function Pe($,pe){switch(pe.type){case he.INITDATA:return Object(u.a)(Object(u.a)({},$),pe.payload);case he.SHOWLOADING:return Object(u.a)(Object(u.a)({},$),{},{loading:pe.payload});case he.SETINDEX:return Object(u.a)(Object(u.a)({},$),{},{index:pe.payload});case he.SHOWFORMPANEL:return Object(u.a)(Object(u.a)({},$),pe.payload);case he.SHOWMEMBERPANEL:return Object(u.a)(Object(u.a)({},$),pe.payload);case he.SELECTGROUP:return Object(u.a)(Object(u.a)({},$),{},{selectedGroup:pe.payload,showFormPanel:!0});default:throw new Error}}function Re($){var pe,ne=$.user,re=Object(s.useReducer)(Pe,ve),Se=Object(m.a)(re,2),ie=Se[0],q=Se[1],Y=ie.data,te=ie.index,Oe=ie.loading,Ce=ie.showFormPanel,Me=ie.selectedGroup,$e=ie.showMemberPanel,nt=(pe=ne.userInfo)===null||pe===void 0?void 0:pe.role,ut=Object(s.useMemo)(function(){var Lt=[],Jt=[],En=Object(w.a)(Y),nn;try{for(En.s();!(nn=En.n()).done;){var Ot=nn.value;Ot.is_creat?Lt.push(Ot):Jt.push(Ot)}}catch(He){En.e(He)}finally{En.f()}return[Lt,Jt]},[Y]);Object(s.useEffect)(function(){nt===15&&q({type:he.SETINDEX,payload:1})},[nt]);function ht(){return pt.apply(this,arguments)}function pt(){return pt=Object(r.a)(d.a.mark(function Lt(){var Jt;return d.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,c();case 2:Jt=nn.sent,q({type:he.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Jt.groups}});case 4:case"end":return nn.stop()}},Lt)})),pt.apply(this,arguments)}Object(s.useEffect)(function(){ht()},[]);function xt(Lt){return Ke.apply(this,arguments)}function Ke(){return Ke=Object(r.a)(d.a.mark(function Lt(Jt){return d.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(!Me.id){nn.next=5;break}return nn.next=3,D(Me.id,Jt);case 3:nn.next=7;break;case 5:return nn.next=7,P(Jt);case 7:ht();case 8:case"end":return nn.stop()}},Lt)})),Ke.apply(this,arguments)}function Ue(){q({type:he.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function st(Lt){q({type:he.SELECTGROUP,payload:Lt})}function kt(){q({type:he.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function gt(){q({type:he.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function bt(Lt){q({type:he.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Lt}})}function Ve(Lt,Jt){return We.apply(this,arguments)}function We(){return We=Object(r.a)(d.a.mark(function Lt(Jt,En){return d.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,l(Jt,En);case 2:ht();case 3:case"end":return Ot.stop()}},Lt)})),We.apply(this,arguments)}function Je(Lt){return Te.apply(this,arguments)}function Te(){return Te=Object(r.a)(d.a.mark(function Lt(Jt){return d.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,T(Jt);case 2:ht();case 3:case"end":return nn.stop()}},Lt)})),Te.apply(this,arguments)}function Ie(Lt){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(r.a)(d.a.mark(function Lt(Jt){return d.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,x(Jt);case 2:ht();case 3:case"end":return nn.stop()}},Lt)})),Fe.apply(this,arguments)}function Xe(Lt){q({type:he.SETINDEX,payload:parseInt(Lt.target.id,10)})}function vt(Lt,Jt){return rt.apply(this,arguments)}function rt(){return rt=Object(r.a)(d.a.mark(function Lt(Jt,En){return d.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return gt(),Ot.next=3,S({user_ids:Jt,group_id:En});case 3:ht();case 4:case"end":return Ot.stop()}},Lt)})),rt.apply(this,arguments)}return _.a.createElement(_.a.Fragment,null,_.a.createElement("div",{className:"teaching-circling-container"},_.a.createElement("h3",null," \u6559\u7814\u56E2\u961F ",nt<=12&&_.a.createElement(g.a,{type:"primary",disabled:Y.length>=50,title:Y.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:Ue},"\u65B0\u5EFA")," "),_.a.createElement("div",{className:"teaching-circling-body"},nt===15?null:_.a.createElement("ul",{className:"navs"},_.a.createElement("li",{className:te===0?"active":""},_.a.createElement("a",{id:"0",onClick:Xe},"\u6211\u521B\u5EFA\u7684")),_.a.createElement("li",{className:te===1?"active":""},_.a.createElement("a",{id:"1",onClick:Xe},"\u6211\u52A0\u5165\u7684"))),_.a.createElement("div",{className:ut[te].length===0?"nodata-content":"main-content"},ut[te].length===0?_.a.createElement(ue,null,nt<=12?_.a.createElement(_.a.Fragment,null," ",_.a.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",_.a.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):_.a.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):_.a.createElement(W,{onExitGroup:Ie,onPlusMember:bt,onDelMember:Ve,onDelGroup:Je,isAdminOrTeacher:nt<=12,onChangeGroupName:st,data:ut[te]}))),_.a.createElement("p",{style:{width:1200,margin:"0 auto 40px auto"},className:"desc"}," * \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732 ")),_.a.createElement(U,{callback:xt,visible:Ce,onCancel:kt,id:Me.id,name:Me.name}),_.a.createElement(i.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:$e,onCancel:gt,footer:null,width:1100,bodyStyle:{minHeight:200}},_.a.createElement(X.a,{container_id:Me.id,container_type:4,onSelect:vt,onCancel:gt})))}var ce=Object(B.a)(function($){var pe=$.user;return{user:pe}})(Re),Ee=a("SLjR"),ye=a("55Ip"),se=t.a.Group,oe=J.a=function($){var pe=$.onSelect,ne=$.onCancel,re=Object(s.useState)([]),Se=Object(m.a)(re,2),ie=Se[0],q=Se[1],Y=Object(s.useState)(!0),te=Object(m.a)(Y,2),Oe=te[0],Ce=te[1];Object(s.useEffect)(function(){function nt(){return ut.apply(this,arguments)}function ut(){return ut=Object(r.a)(d.a.mark(function ht(){var pt,xt;return d.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(v.c)("teach_groups/my.json");case 2:pt=Ue.sent,xt=pt.groups,q(xt),Ce(!1);case 6:case"end":return Ue.stop()}},ht)})),ut.apply(this,arguments)}nt()},[]);var Me=Object(s.useMemo)(function(){var nt=[],ut=[],ht=Object(w.a)(ie),pt;try{for(ht.s();!(pt=ht.n()).done;){var xt=pt.value;xt.is_creat?nt.push(xt):ut.push(xt)}}catch(Ke){ht.e(Ke)}finally{ht.f()}return[nt,ut]},[ie]);function $e(nt){pe(nt)}return _.a.createElement(f.a,{className:"select-teach-group",onFinish:$e},Oe?_.a.createElement(E.a,{paragraph:!0}):ie.length===0?_.a.createElement(ue,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",_.a.createElement(ye.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):_.a.createElement(_.a.Fragment,null,_.a.createElement(f.a.Item,{name:"group_id"},_.a.createElement(se,null,_.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),_.a.createElement("ul",{className:"groups"},Me[0].map(function(nt){return _.a.createElement("li",{key:nt.id},_.a.createElement(t.a,{value:nt.id},nt.name))})),_.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),_.a.createElement("ul",{className:"groups"},Me[1].map(function(nt){return _.a.createElement("li",{key:nt.id},_.a.createElement(t.a,{value:nt.id},nt.name))})))),_.a.createElement("div",{className:"btn-actions"},_.a.createElement(g.a,{type:"ghost",onClick:ne,style:{marginRight:10}},"\u53D6\u6D88"),_.a.createElement(g.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(M,J,a){(function(R,g){M.exports=g()})(this,function(){"use strict";function R(Ve,We){for(var Je=0;JeVe.length)&&(We=Ve.length);for(var Je=0,Te=new Array(We);Je=Ve.length?{done:!0}:{done:!1,value:Ve[Te++]}}}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 Je=Ve[Symbol.iterator](),Je.next.bind(Je)}function E(Ve,We){return We={exports:{}},Ve(We,We.exports),We.exports}var w=E(function(Ve){function We(){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 Je(Te){Ve.exports.defaults=Te}Ve.exports={defaults:We(),getDefaults:We,changeDefaults:Je}}),r=w.defaults,m=w.getDefaults,o=w.changeDefaults,t=/[&<>"']/,p=/[&<>"']/g,d=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,_={"&":"&","<":"<",">":">",'"':""","'":"'"},v=function(We){return _[We]};function C(Ve,We){if(We){if(t.test(Ve))return Ve.replace(p,v)}else if(d.test(Ve))return Ve.replace(s,v);return Ve}var i=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(Ve){return Ve.replace(i,function(We,Je){return Je=Je.toLowerCase(),Je==="colon"?":":Je.charAt(0)==="#"?Je.charAt(1)==="x"?String.fromCharCode(parseInt(Je.substring(2),16)):String.fromCharCode(+Je.substring(1)):""})}var b=/(^|[^\[])\^/g;function O(Ve,We){Ve=Ve.source||Ve,We=We||"";var Je={replace:function(Ie,Fe){return Fe=Fe.source||Fe,Fe=Fe.replace(b,"$1"),Ve=Ve.replace(Ie,Fe),Je},getRegex:function(){return new RegExp(Ve,We)}};return Je}var y=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Ve,We,Je){if(Ve){var Te;try{Te=decodeURIComponent(u(Je)).replace(y,"").toLowerCase()}catch(Ie){return null}if(Te.indexOf("javascript:")===0||Te.indexOf("vbscript:")===0||Te.indexOf("data:")===0)return null}We&&!c.test(Je)&&(Je=T(We,Je));try{Je=encodeURI(Je).replace(/%25/g,"%")}catch(Ie){return null}return Je}var D={},S=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(Ve,We){D[" "+Ve]||(S.test(Ve)?D[" "+Ve]=Ve+"/":D[" "+Ve]=z(Ve,"/",!0)),Ve=D[" "+Ve];var Je=Ve.indexOf(":")===-1;return We.substring(0,2)==="//"?Je?We:Ve.replace(x,"$1")+We:We.charAt(0)==="/"?Je?We:Ve.replace(l,"$1")+We:Ve+We}var k={exec:function(){}};function N(Ve){for(var We=1,Je,Te;We=0&&vt[Lt]==="\\";)rt=!rt;return rt?"|":" |"}),Te=Je.split(/ \|/),Ie=0;if(Te.length>We)Te.splice(We);else for(;Te.length=Te.length?Ie.slice(Te.length):Ie}).join(`
`)}var Re=function(){function Ve(Je){this.options=Je||W}var We=Ve.prototype;return We.space=function(Te){var Ie=this.rules.block.newline.exec(Te);if(Ie)return Ie[0].length>1?{type:"space",raw:Ie[0]}:{raw:`
`}},We.code=function(Te,Ie){var Fe=this.rules.block.code.exec(Te);if(Fe){var Xe=Ie[Ie.length-1];if(Xe&&Xe.type==="paragraph")return{raw:Fe[0],text:Fe[0].trimRight()};var vt=Fe[0].replace(/^ {4}/gm,"");return{type:"code",raw:Fe[0],codeBlockStyle:"indented",text:this.options.pedantic?vt:B(vt,`
`)}}},We.fences=function(Te){var Ie=this.rules.block.fences.exec(Te);if(Ie){var Fe=Ie[0],Xe=Pe(Fe,Ie[3]||"");return{type:"code",raw:Fe,lang:Ie[2]?Ie[2].trim():Ie[2],text:Xe}}},We.heading=function(Te){var Ie=this.rules.block.heading.exec(Te);if(Ie)return{type:"heading",raw:Ie[0],depth:Ie[1].length,text:Ie[2]}},We.nptable=function(Te){var Ie=this.rules.block.nptable.exec(Te);if(Ie){var Fe={type:"table",header:X(Ie[1].replace(/^ *| *\| *$/g,"")),align:Ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ie[3]?Ie[3].replace(/\n$/,"").split(`
`):[],raw:Ie[0]};if(Fe.header.length===Fe.align.length){var Xe=Fe.align.length,vt;for(vt=0;vt ?/gm,"");return{type:"blockquote",raw:Ie[0],text:Fe}}},We.list=function(Te){var Ie=this.rules.block.list.exec(Te);if(Ie){for(var Fe=Ie[0],Xe=Ie[2],vt=Xe.length>1,rt=Xe[Xe.length-1]===")",Lt={type:"list",raw:Fe,ordered:vt,start:vt?+Xe.slice(0,-1):"",loose:!1,items:[]},Jt=Ie[0].match(this.rules.block.item),En=!1,nn,Ot,He,it,ot,Ne,Qe,At=Jt.length,yt=0;yt1||this.options.smartLists&&He!==Xe)&&(it=Jt.slice(yt+1).join(`
`),Lt.raw=Lt.raw.substring(0,Lt.raw.length-it.length),yt=At-1)),ot=En||/\n\n(?!\s*$)/.test(nn),yt!==At-1&&(En=nn.charAt(nn.length-1)===`
`,ot||(ot=En)),ot&&(Lt.loose=!0),Ne=/^\[[ xX]\] /.test(nn),Qe=void 0,Ne&&(Qe=nn[1]!==" ",nn=nn.replace(/^\[[ xX]\] +/,"")),Lt.items.push({type:"list_item",raw:Fe,task:Ne,checked:Qe,loose:ot,text:nn});return Lt}},We.html=function(Te){var Ie=this.rules.block.html.exec(Te);if(Ie)return{type:this.options.sanitize?"paragraph":"html",raw:Ie[0],pre:!this.options.sanitizer&&(Ie[1]==="pre"||Ie[1]==="script"||Ie[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ie[0]):ue(Ie[0]):Ie[0]}},We.def=function(Te){var Ie=this.rules.block.def.exec(Te);if(Ie){Ie[3]&&(Ie[3]=Ie[3].substring(1,Ie[3].length-1));var Fe=Ie[1].toLowerCase().replace(/\s+/g," ");return{tag:Fe,raw:Ie[0],href:Ie[2],title:Ie[3]}}},We.table=function(Te){var Ie=this.rules.block.table.exec(Te);if(Ie){var Fe={type:"table",header:X(Ie[1].replace(/^ *| *\| *$/g,"")),align:Ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ie[3]?Ie[3].replace(/\n$/,"").split(`
`):[]};if(Fe.header.length===Fe.align.length){Fe.raw=Ie[0];var Xe=Fe.align.length,vt;for(vt=0;vt/i.test(Xe[0])&&(Ie=!1),!Fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(Xe[0])?Fe=!0:Fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Xe[0])&&(Fe=!1),{type:this.options.sanitize?"text":"html",raw:Xe[0],inLink:Ie,inRawBlock:Fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Xe[0]):ue(Xe[0]):Xe[0]}},We.link=function(Te){var Ie=this.rules.inline.link.exec(Te);if(Ie){var Fe=ve(Ie[2],"()");if(Fe>-1){var Xe=Ie[0].indexOf("!")===0?5:4,vt=Xe+Ie[1].length+Fe;Ie[2]=Ie[2].substring(0,Fe),Ie[0]=Ie[0].substring(0,vt).trim(),Ie[3]=""}var rt=Ie[2],Lt="";if(this.options.pedantic){var Jt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(rt);Jt?(rt=Jt[1],Lt=Jt[3]):Lt=""}else Lt=Ie[3]?Ie[3].slice(1,-1):"";rt=rt.trim().replace(/^<([\s\S]*)>$/,"$1");var En=he(Ie,{href:rt&&rt.replace(this.rules.inline._escapes,"$1"),title:Lt&&Lt.replace(this.rules.inline._escapes,"$1")},Ie[0]);return En}},We.reflink=function(Te,Ie){var Fe;if((Fe=this.rules.inline.reflink.exec(Te))||(Fe=this.rules.inline.nolink.exec(Te))){var Xe=(Fe[2]||Fe[1]).replace(/\s+/g," ");if(Xe=Ie[Xe.toLowerCase()],!Xe||!Xe.href){var vt=Fe[0].charAt(0);return{type:"text",raw:vt,text:vt}}var rt=he(Fe,Xe,Fe[0]);return rt}},We.strong=function(Te,Ie,Fe){Fe===void 0&&(Fe="");var Xe=this.rules.inline.strong.start.exec(Te);if(Xe&&(!Xe[1]||Xe[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ie=Ie.slice(-1*Te.length);var vt=Xe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;vt.lastIndex=0;for(var rt;(Xe=vt.exec(Ie))!=null;)if(rt=this.rules.inline.strong.middle.exec(Ie.slice(0,Xe.index+3)),rt)return{type:"strong",raw:Te.slice(0,rt[0].length),text:Te.slice(2,rt[0].length-2)}}},We.em=function(Te,Ie,Fe){Fe===void 0&&(Fe="");var Xe=this.rules.inline.em.start.exec(Te);if(Xe&&(!Xe[1]||Xe[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ie=Ie.slice(-1*Te.length);var vt=Xe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;vt.lastIndex=0;for(var rt;(Xe=vt.exec(Ie))!=null;)if(rt=this.rules.inline.em.middle.exec(Ie.slice(0,Xe.index+2)),rt)return{type:"em",raw:Te.slice(0,rt[0].length),text:Te.slice(1,rt[0].length-1)}}},We.codespan=function(Te){var Ie=this.rules.inline.code.exec(Te);if(Ie){var Fe=Ie[2].replace(/\n/g," "),Xe=/[^ ]/.test(Fe),vt=Fe.startsWith(" ")&&Fe.endsWith(" ");return Xe&&vt&&(Fe=Fe.substring(1,Fe.length-1)),Fe=ue(Fe,!0),{type:"codespan",raw:Ie[0],text:Fe}}},We.br=function(Te){var Ie=this.rules.inline.br.exec(Te);if(Ie)return{type:"br",raw:Ie[0]}},We.del=function(Te){var Ie=this.rules.inline.del.exec(Te);if(Ie)return{type:"del",raw:Ie[0],text:Ie[1]}},We.autolink=function(Te,Ie){var Fe=this.rules.inline.autolink.exec(Te);if(Fe){var Xe,vt;return Fe[2]==="@"?(Xe=ue(this.options.mangle?Ie(Fe[1]):Fe[1]),vt="mailto:"+Xe):(Xe=ue(Fe[1]),vt=Xe),{type:"link",raw:Fe[0],text:Xe,href:vt,tokens:[{type:"text",raw:Xe,text:Xe}]}}},We.url=function(Te,Ie){var Fe;if(Fe=this.rules.inline.url.exec(Te)){var Xe,vt;if(Fe[2]==="@")Xe=ue(this.options.mangle?Ie(Fe[0]):Fe[0]),vt="mailto:"+Xe;else{var rt;do rt=Fe[0],Fe[0]=this.rules.inline._backpedal.exec(Fe[0])[0];while(rt!==Fe[0]);Xe=ue(Fe[0]),Fe[1]==="www."?vt="http://"+Xe:vt=Xe}return{type:"link",raw:Fe[0],text:Xe,href:vt,tokens:[{type:"text",raw:Xe,text:Xe}]}}},We.inlineText=function(Te,Ie,Fe){var Xe=this.rules.inline.text.exec(Te);if(Xe){var vt;return Ie?vt=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Xe[0]):ue(Xe[0]):Xe[0]:vt=ue(this.options.smartypants?Fe(Xe[0]):Xe[0]),{type:"text",raw:Xe[0],text:vt}}},Ve}(),ce=V.noopTest,Ee=V.edit,ye=V.merge,se={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:ce,table:ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};se._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,se._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,se.def=Ee(se.def).replace("label",se._label).replace("title",se._title).getRegex(),se.bullet=/(?:[*+-]|\d{1,9}[.)])/,se.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,se.item=Ee(se.item,"gm").replace(/bull/g,se.bullet).getRegex(),se.list=Ee(se.list).replace(/bull/g,se.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+se.def.source+")").getRegex(),se._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",se._comment=//,se.html=Ee(se.html,"i").replace("comment",se._comment).replace("tag",se._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),se.paragraph=Ee(se._paragraph).replace("hr",se.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",se._tag).getRegex(),se.blockquote=Ee(se.blockquote).replace("paragraph",se.paragraph).getRegex(),se.normal=ye({},se),se.gfm=ye({},se.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*|$)"}),se.gfm.nptable=Ee(se.gfm.nptable).replace("hr",se.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",se._tag).getRegex(),se.gfm.table=Ee(se.gfm.table).replace("hr",se.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",se._tag).getRegex(),se.pedantic=ye({},se.normal,{html:Ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",se._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:ce,paragraph:Ee(se.normal._paragraph).replace("hr",se.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",se.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var oe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ce,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:ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",oe.punctuation=Ee(oe.punctuation).replace(/punctuation/g,oe._punctuation).getRegex(),oe._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",oe._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",oe.em.start=Ee(oe.em.start).replace(/punctuation/g,oe._punctuation).getRegex(),oe.em.middle=Ee(oe.em.middle).replace(/punctuation/g,oe._punctuation).replace(/overlapSkip/g,oe._overlapSkip).getRegex(),oe.em.endAst=Ee(oe.em.endAst,"g").replace(/punctuation/g,oe._punctuation).getRegex(),oe.em.endUnd=Ee(oe.em.endUnd,"g").replace(/punctuation/g,oe._punctuation).getRegex(),oe.strong.start=Ee(oe.strong.start).replace(/punctuation/g,oe._punctuation).getRegex(),oe.strong.middle=Ee(oe.strong.middle).replace(/punctuation/g,oe._punctuation).replace(/blockSkip/g,oe._blockSkip).getRegex(),oe.strong.endAst=Ee(oe.strong.endAst,"g").replace(/punctuation/g,oe._punctuation).getRegex(),oe.strong.endUnd=Ee(oe.strong.endUnd,"g").replace(/punctuation/g,oe._punctuation).getRegex(),oe.blockSkip=Ee(oe._blockSkip,"g").getRegex(),oe.overlapSkip=Ee(oe._overlapSkip,"g").getRegex(),oe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,oe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,oe._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])?)+(?![-_])/,oe.autolink=Ee(oe.autolink).replace("scheme",oe._scheme).replace("email",oe._email).getRegex(),oe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,oe.tag=Ee(oe.tag).replace("comment",se._comment).replace("attribute",oe._attribute).getRegex(),oe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,oe._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,oe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,oe.link=Ee(oe.link).replace("label",oe._label).replace("href",oe._href).replace("title",oe._title).getRegex(),oe.reflink=Ee(oe.reflink).replace("label",oe._label).getRegex(),oe.reflinkSearch=Ee(oe.reflinkSearch,"g").replace("reflink",oe.reflink).replace("nolink",oe.nolink).getRegex(),oe.normal=ye({},oe),oe.pedantic=ye({},oe.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:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",oe._label).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",oe._label).getRegex()}),oe.gfm=ye({},oe.normal,{escape:Ee(oe.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&&(Te="x"+Te.toString(16)),We+=""+Te+";";return We}var q=function(){function Ve(Je){this.tokens=[],this.tokens.links=Object.create(null),this.options=Je||pe,this.options.tokenizer=this.options.tokenizer||new Re,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Te={block:ne.normal,inline:re.normal};this.options.pedantic?(Te.block=ne.pedantic,Te.inline=re.pedantic):this.options.gfm&&(Te.block=ne.gfm,this.options.breaks?Te.inline=re.breaks:Te.inline=re.gfm),this.tokenizer.rules=Te}Ve.lex=function(Te,Ie){var Fe=new Ve(Ie);return Fe.lex(Te)};var We=Ve.prototype;return We.lex=function(Te){return Te=Te.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Te,this.tokens,!0),this.inline(this.tokens),this.tokens},We.blockTokens=function(Te,Ie,Fe){Ie===void 0&&(Ie=[]),Fe===void 0&&(Fe=!0),Te=Te.replace(/^ +$/gm,"");for(var Xe,vt,rt,Lt;Te;){if(Xe=this.tokenizer.space(Te)){Te=Te.substring(Xe.raw.length),Xe.type&&Ie.push(Xe);continue}if(Xe=this.tokenizer.code(Te,Ie)){Te=Te.substring(Xe.raw.length),Xe.type?Ie.push(Xe):(Lt=Ie[Ie.length-1],Lt.raw+=`
`+Xe.raw,Lt.text+=`
`+Xe.text);continue}if(Xe=this.tokenizer.fences(Te)){Te=Te.substring(Xe.raw.length),Ie.push(Xe);continue}if(Xe=this.tokenizer.heading(Te)){Te=Te.substring(Xe.raw.length),Ie.push(Xe);continue}if(Xe=this.tokenizer.nptable(Te)){Te=Te.substring(Xe.raw.length),Ie.push(Xe);continue}if(Xe=this.tokenizer.hr(Te)){Te=Te.substring(Xe.raw.length),Ie.push(Xe);continue}if(Xe=this.tokenizer.blockquote(Te)){Te=Te.substring(Xe.raw.length),Xe.tokens=this.blockTokens(Xe.text,[],Fe),Ie.push(Xe);continue}if(Xe=this.tokenizer.list(Te)){for(Te=Te.substring(Xe.raw.length),rt=Xe.items.length,vt=0;vt