(window.webpackJsonp=window.webpackJsonp||[]).push([[240,3,5,6,7,8,9,10,13,20,247],{"+GGh":function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7VXQm4VVXZfvc+5yKzMqiAgpggqGihoBI4Zz+iQA7VX2Fa+GeFmjnmjAZmDlnmDGaDY5KzJmmWAiKIoCihmAN/ySTDvRcF4e691v+s4VvrW2vvcwFB8r/lcy/n7LP32nu9+/3e7/2+tU+CLfwjpaw0NmJfIcRBSYK+Uoq+QNIdEu0AtJMSLaSUABJzZPWn+iUlEiRQb6l37MvsfbOdfs+9qf5htnav6ffsvoP9+mPSsej4+iM0Jr5vPR4aIF0o9po6ziccPx1GnbWQZvzqNfef/rd9j7+uXhPmIqn36XN6H+rf+n/+dTV+2o/6kNq/39YfT72m3le7Vj/Cnq76tx4TGx9tS2Olz5RByc/EZgBNSlm3enU+TAiMkhJHSshtHULchKkrok5WnUY8SQxwNNf2hAmMRWD5ARMG9H4tWAxQ/XHoPQ5kt4cAVBZrHgF2Mw/kePwBYC2ozUDo+OoTFosMr24y7eTpCbY3SzzBZvLN9TMAor/55DMAWYAawHkwanAkBkgejAROvy8POPOe+r/+DL8R2N+14LNZAJNStmpoEGcikWdLKTvpiTbjt0zkJ5z4J5hgDjhiEY01zwyOXAL2spNtZ8GAx5wtAdgxEk14xJh6v3qGOdvFLGlhwW4SN/4YyHRw4lkGWn8DEPsyINkhqG2ILYhBPBNZkEjzOQNcYiILngCYFoAJ387MhQZm8Lq5ERzg1DW078cMZdjPMxyBrTlu+kQAU2GwYXV+shS4HJA7xUwQhjB+J9vwVRIiOZB8fCSgxmGxVriii2+ugmeamD1jINn9EbtE4GiWcdm5hGHa7LOMMQtA4myjgMNkgLmHolDpmMO8Xgh9jOk8Y9kwrMFTZCweBl1YJEC60OrBpc8tlislSNtkgDU0ZEcJyGshsSftj3RTyDY8DHqQ0WT5z/gw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rA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"+NIl":function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){"use strict";L.defineMode("stex",function(g,A){"use strict";function b(a,n){a.cmdState.push(n)}function y(a){return a.cmdState.length>0?a.cmdState[a.cmdState.length-1]:null}function x(a){var n=a.cmdState.pop();n&&n.closeBracket()}function w(a){for(var n=a.cmdState,i=n.length-1;i>=0;i--){var h=n[i];if(h.name=="DEFAULT")continue;return h}return{styleIdentifier:function(){return null}}}function f(a,n,i){return function(){this.name=a,this.bracketNo=0,this.style=n,this.styles=i,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var _={};_.importmodule=f("importmodule","tag",["string","builtin"]),_.documentclass=f("documentclass","tag",["","atom"]),_.usepackage=f("usepackage","tag",["atom"]),_.begin=f("begin","tag",["atom"]),_.end=f("end","tag",["atom"]),_.label=f("label","tag",["atom"]),_.ref=f("ref","tag",["atom"]),_.eqref=f("eqref","tag",["atom"]),_.cite=f("cite","tag",["atom"]),_.bibitem=f("bibitem","tag",["atom"]),_.Bibitem=f("Bibitem","tag",["atom"]),_.RBibitem=f("RBibitem","tag",["atom"]),_.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function d(a,n){a.f=n}function r(a,n){var i;if(a.match(/^\\[a-zA-Z@]+/)){var h=a.current().slice(1);return i=_.hasOwnProperty(h)?_[h]:_.DEFAULT,i=new i,b(n,i),d(n,t),i.style}if(a.match(/^\\[$&%#{}_]/))return"tag";if(a.match(/^\\[,;!\/\\]/))return"tag";if(a.match("\\["))return d(n,function(s,p){return u(s,p,"\\]")}),"keyword";if(a.match("\\("))return d(n,function(s,p){return u(s,p,"\\)")}),"keyword";if(a.match("$$"))return d(n,function(s,p){return u(s,p,"$$")}),"keyword";if(a.match("$"))return d(n,function(s,p){return u(s,p,"$")}),"keyword";var l=a.next();if(l=="%")return a.skipToEnd(),"comment";if(l=="}"||l=="]"){if(i=y(n),i)i.closeBracket(l),d(n,t);else return"error";return"bracket"}else return l=="{"||l=="["?(i=_.DEFAULT,i=new i,b(n,i),"bracket"):/\d/.test(l)?(a.eatWhile(/[\w.%]/),"atom"):(a.eatWhile(/[\w\-_]/),i=w(n),i.name=="begin"&&(i.argument=a.current()),i.styleIdentifier())}function u(a,n,i){if(a.eatSpace())return null;if(i&&a.match(i))return d(n,r),"keyword";if(a.match(/^\\[a-zA-Z@]+/))return"tag";if(a.match(/^[a-zA-Z]+/))return"variable-2";if(a.match(/^\\[$&%#{}_]/))return"tag";if(a.match(/^\\[,;!\/]/))return"tag";if(a.match(/^[\^_&]/))return"tag";if(a.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(a.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var h=a.next();return h=="{"||h=="}"||h=="["||h=="]"||h=="("||h==")"?"bracket":h=="%"?(a.skipToEnd(),"comment"):"error"}function t(a,n){var i=a.peek(),h;return i=="{"||i=="["?(h=y(n),h.openBracket(i),a.eat(i),d(n,r),"bracket"):/[ \t\r]/.test(i)?(a.eat(i),null):(d(n,r),x(n),r(a,n))}return{startState:function(){var a=A.inMathMode?function(n,i){return u(n,i)}:r;return{cmdState:[],f:a}},copyState:function(a){return{cmdState:a.cmdState.slice(),f:a.f}},token:function(a,n){return n.f(a,n)},blankLine:function(a){a.f=r,a.cmdState.length=0},lineComment:"%"}}),L.defineMIME("text/x-stex","stex"),L.defineMIME("text/x-latex","stex")})},"+QRC":function(M,Y,o){"use strict";var L=o("E9nw"),g={"text/plain":"Text","text/html":"Url",default:"Text"},A="Copy to clipboard: #{key}, Enter";function b(x){var w=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return x.replace(/#{\s*key\s*}/g,w)}function y(x,w){var f,_,d,r,u,t,a=!1;w||(w={}),f=w.debug||!1;try{d=L(),r=document.createRange(),u=document.getSelection(),t=document.createElement("span"),t.textContent=x,t.style.all="unset",t.style.position="fixed",t.style.top=0,t.style.clip="rect(0, 0, 0, 0)",t.style.whiteSpace="pre",t.style.webkitUserSelect="text",t.style.MozUserSelect="text",t.style.msUserSelect="text",t.style.userSelect="text",t.addEventListener("copy",function(i){if(i.stopPropagation(),w.format)if(i.preventDefault(),typeof i.clipboardData=="undefined"){f&&console.warn("unable to use e.clipboardData"),f&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=g[w.format]||g.default;window.clipboardData.setData(h,x)}else i.clipboardData.clearData(),i.clipboardData.setData(w.format,x);w.onCopy&&(i.preventDefault(),w.onCopy(i.clipboardData))}),document.body.appendChild(t),r.selectNodeContents(t),u.addRange(r);var n=document.execCommand("copy");if(!n)throw new Error("copy command was unsuccessful");a=!0}catch(i){f&&console.error("unable to copy using execCommand: ",i),f&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(w.format||"text",x),w.onCopy&&w.onCopy(window.clipboardData),a=!0}catch(h){f&&console.error("unable to copy using clipboardData: ",h),f&&console.error("falling back to prompt"),_=b("message"in w?w.message:A),window.prompt(_,x)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(r):u.removeAllRanges()),t&&document.body.removeChild(t),d()}return a}M.exports=y},"+Xk9":function(M,Y,o){M.exports={btn:"btn___2veY9",s1:"s1___ZVDC_",s2:"s2___2Da-A"}},"+ua5":function(M,Y,o){},"/GNS":function(M,Y,o){M.exports=o.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_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("jrin"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("k1fw"),_root_workspace_ppte5yg23_local_v8_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_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("9og8"),_root_workspace_ppte5yg23_local_v8_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_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("WmNS"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v8_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(Y){if(!Y)return Y;var o=Y.split(":");if(o[1]=="00"||o[1]=="30")return Y;var L=parseInt(o[1]);if(L<30||L==60)return[o[0],"30"].join(":");if(L<60){var g=[o[0],"00"].join(":"),A="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(g,A);return b.add(1,"hours"),b.format(A)}return Y},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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_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_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function Y(o){var L;return _root_workspace_ppte5yg23_local_v8_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:o}});case 2:L=A.sent,L&&setDepartmentList(L.shools_name||[]);case 4:case"end":return A.stop()}},Y)}));return function(o){return M.apply(this,arguments)}}();Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var M,Y;(M=shixunsDetail.setting)!==null&&M!==void 0&&(Y=M.shixun)!==null&&Y!==void 0&&Y.main_type&&handleInitState()},[shixunsDetail.setting]),Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var M,Y;dispatch({type:"shixunsDetail/getSettingsData",payload:params}),shixunId.current=(M=location.pathname)===null||M===void 0||((Y=M.split("/"))===null||Y===void 0)?void 0:Y[2]},[]);var handleSelectDepartment=function(Y){if(selectDepartmentList.includes(Y)){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_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(selectDepartmentList),[Y]))};function getRequiredStatus(){return _getRequiredStatus.apply(this,arguments)}function _getRequiredStatus(){return _getRequiredStatus=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function M(){var Y;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_53__.a)("/api/shixuns/".concat(shixunId.current,"/required_status"),{method:"get",params:{}});case 2:Y=L.sent,Y&&setCreateTitle(Y==null?void 0:Y.data);case 4:case"end":return L.stop()}},M)})),_getRequiredStatus.apply(this,arguments)}var handleChangeSeviceConfig=function(Y,o,L){var g=serviceConfigList.map(function(A,b){return b===L?Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)({},A),{},Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__.a)({},o,Y)):A});setServiceConfigList(g)},handleInitState=function(){var Y,o,L,g,A,b,y,x,w,f,_,d,r,u,t,a,n,i,h,l,s,p,O,S,v,P,R,E,C,m,T,I,D,N,z,F,W,K,B,k,G,ne,fe,de,xe,Oe,ce,be,ve,ue,se,q,me,re,ie,we,le,$,J,te,De,Te,ke,tt,ot,gt,Et,xt=(shixunsDetail==null||((Y=shixunsDetail.setting)===null||Y===void 0)?void 0:Y.shixun)||{},St=xt.choice_main_type,Je=xt.main_type,Ue=xt.small_type,ft=xt.choice_small_type,kt=xt.is_secret_repository,ht=xt.standard_scripts,_t=xt.evaluate_script,Qe=xt.shixun_service_configs;if(setEvaluateScript(_t),setServiceConfigList(Qe),setStandardScripts(ht||[]),setWindowVNCTemplate((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0)?void 0:L.windows_start_template),setWebsshCloud((g=shixunsDetail.setting)===null||g===void 0||((A=g.shixun)===null||A===void 0)?void 0:A.webssh_cloud),setWindowVNC((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.windows_vnc),setVirtualMachine((x=shixunsDetail.setting)===null||x===void 0||((w=x.shixun)===null||w===void 0)?void 0:w.virtual_machine),setLinuxVNC((f=shixunsDetail.setting)===null||f===void 0||((_=f.shixun)===null||_===void 0)?void 0:_.linux_vnc),setWindowsConnectionMode(((d=shixunsDetail.setting)===null||d===void 0||((r=d.shixun)===null||r===void 0)?void 0:r.windows_connection_mode)||"vnc"),setVNC((u=shixunsDetail.setting)===null||u===void 0||((t=u.shixun)===null||t===void 0)?void 0:t.vnc),setWebsshShow(!!((a=shixunsDetail.setting)!==null&&a!==void 0&&(n=a.shixun)!==null&&n!==void 0&&n.webssh)),setSshRadioValue((i=shixunsDetail.setting)===null||i===void 0||((h=i.shixun)===null||h===void 0)?void 0:h.webssh),setMultiWebssh((l=shixunsDetail.setting)===null||l===void 0||((s=l.shixun)===null||s===void 0)?void 0:s.multi_webssh),setHideCode((p=shixunsDetail.setting)===null||p===void 0||((O=p.shixun)===null||O===void 0)?void 0:O.hide_code),setCodeEditPermission((S=shixunsDetail.setting)===null||S===void 0||((v=S.shixun)===null||v===void 0)?void 0:v.code_edit_permission),setCodeHidden((P=shixunsDetail.setting)===null||P===void 0||((R=P.shixun)===null||R===void 0)?void 0:R.show_code_dir),setForbidCopy((E=shixunsDetail.setting)===null||E===void 0||((C=E.shixun)===null||C===void 0)?void 0:C.forbid_copy),setTaskPass((m=shixunsDetail.setting)===null||m===void 0||((T=m.shixun)===null||T===void 0)?void 0:T.task_pass),setTestSetPermission((I=shixunsDetail.setting)===null||I===void 0||((D=I.shixun)===null||D===void 0)?void 0:D.test_set_permission),set_display_git_address((N=shixunsDetail.setting.shixun)===null||N===void 0?void 0:N.display_git_address),setIsCopy((z=shixunsDetail.setting)===null||z===void 0||((F=z.shixun)===null||F===void 0)?void 0:F.can_copy),setOpenValue((W=shixunsDetail.setting)===null||W===void 0||((K=W.shixun)===null||K===void 0)?void 0:K.use_scope),setIsOpenTime(!!((B=shixunsDetail.setting)!==null&&B!==void 0&&(k=B.shixun)!==null&&k!==void 0&&k.opening_time)),setOpenTime((G=shixunsDetail.setting)===null||G===void 0||((ne=G.shixun)===null||ne===void 0)?void 0:ne.opening_time),setSelectDepartmentList((fe=shixunsDetail.setting)===null||fe===void 0||((de=fe.shixun)===null||de===void 0)?void 0:de.scope_partment),setevaluationScript((xe=shixunsDetail.setting)===null||xe===void 0||((Oe=xe.shixun)===null||Oe===void 0)?void 0:Oe.choice_standard_scripts),setDisableDiscuss((ce=shixunsDetail.setting)===null||ce===void 0||((be=ce.shixun)===null||be===void 0)?void 0:be.is_disable_discuss),setterminal_count((ve=shixunsDetail.setting)===null||ve===void 0||((ue=ve.shixun)===null||ue===void 0)?void 0:ue.terminal_count),setSurvivalTime((se=shixunsDetail.setting)===null||se===void 0||((q=se.shixun)===null||q===void 0)?void 0:q.survival_time),(shixunsDetail==null||((me=shixunsDetail.setting)===null||me===void 0||((re=me.shixun)===null||re===void 0||((ie=re.shixun_virtual_templates)===null||ie===void 0)))?void 0:ie.length)>0){var He,Ge;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((He=shixunsDetail.setting)===null||He===void 0||((Ge=He.shixun)===null||Ge===void 0))?void 0:Ge.shixun_virtual_templates))}setport((we=shixunsDetail.setting)===null||we===void 0||((le=we.shixun)===null||le===void 0)?void 0:le.port_mapping),($=shixunsDetail.setting)!==null&&$!==void 0&&(J=$.shixun)!==null&&J!==void 0&&J.windows_vnc||(te=shixunsDetail.setting)!==null&&te!==void 0&&(De=te.shixun)!==null&&De!==void 0&&De.linux_vnc||(Te=shixunsDetail.setting)!==null&&Te!==void 0&&(ke=Te.shixun)!==null&&ke!==void 0&&ke.vnc||(tt=shixunsDetail.setting)!==null&&tt!==void 0&&(ot=tt.shixun)!==null&&ot!==void 0&&ot.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(gt=shixunsDetail.setting)!==null&>!==void 0&&(Et=gt.shixun)!==null&&Et!==void 0&&Et.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,Y){var o,L;M!=((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0)?void 0:L.scope_partment[Y])&&(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,Y){var o,L,g,A,b,y,x,w,f,_,d,r;(M==null?void 0:M.cpu_limit)!=((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0||((g=L.shixun_service_configs[Y])===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||((b=A.shixun)===null||b===void 0||((y=b.shixun_service_configs[Y])===null||y===void 0))?void 0:y.lower_cpu_limit)&&(confirmLeave=!0),(M==null?void 0:M.memory_limit)!=((x=shixunsDetail.setting)===null||x===void 0||((w=x.shixun)===null||w===void 0||((f=w.shixun_service_configs[Y])===null||f===void 0))?void 0:f.memory_limit)&&(confirmLeave=!0),(M==null?void 0:M.request_limit)!=((_=shixunsDetail.setting)===null||_===void 0||((d=_.shixun)===null||d===void 0||((r=d.shixun_service_configs[Y])===null||r===void 0))?void 0:r.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_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function M(){var Y,o,L,g;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(isOpenTime&&!openTime)){b.next=3;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),b.abrupt("return");case 3:if(!(hideCode===1&&Remote===!1)){b.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"),b.abrupt("return");case 6:if(!(openValue===1&&!selectDepartmentList.length)){b.next=9;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),b.abrupt("return");case 9:if(o=(Y=shixunsDetail.detail)===null||Y===void 0?void 0:Y.is_jupyter,L=!1,isRadiuvalue==5&&virtual_machine&&(shixun_virtual_templates==null||shixun_virtual_templates.map(function(y){if(!(y!=null&&y.template_name)||!(y!=null&&y.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"),L=!0;return}})),!L){b.next=14;break}return b.abrupt("return");case 14:return b.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:o?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:o?null:evaluateScript},shixun_service_configs:serviceConfigList.map(function(y){return{mirror_repository_id:y.mirror_repository_id,cpu_limit:y.cpu_limit,lower_cpu_limit:y.lower_cpu_limit,memory_limit:y.memory_limit,request_limit:y.request_limit}})}});case 16:g=b.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 b.stop()}},M)})),_handSubmeit.apply(this,arguments)}var handleChangeEvaluationScript=function(Y){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 o=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_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_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,handleGetScriptContent(Y);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 b.stop()}},g)}));function L(){return o.apply(this,arguments)}return L}()})},handleGetScriptContent=function(){var M=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function Y(o){var L;return _root_workspace_ppte5yg23_local_v8_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:o}});case 2:L=A.sent,L&&setEvaluateScript(L.content);case 4:case"end":return A.stop()}},Y)}));return function(o){return M.apply(this,arguments)}}(),handleDeleteShixun=function(){var M=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function Y(){var o,L,g,A,b,y,x;return _root_workspace_ppte5yg23_local_v8_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,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(f.t0=f.sent,f.t0){f.next=5;break}f.t0={};case 5:x=f.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)},!!((o=x.subjects)!==null&&o!==void 0&&o.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"," ",(L=x.subjects)===null||L===void 0||((g=L.splice(0,2))===null||g===void 0)?void 0:g.map(function(_){return"\u300A".concat(_,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},x==null?void 0:x.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),!!((A=x.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",(b=x.courses)===null||b===void 0||((y=b.splice(0,2))===null||y===void 0)?void 0:y.map(function(_){return"\u300A".concat(_,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},x==null?void 0:x.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 _=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function r(){var u;return _root_workspace_ppte5yg23_local_v8_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/deleteShixun",payload:{id:shixunId.current}});case 2:u=a.sent,u.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 a.stop()}},r)}));function d(){return _.apply(this,arguments)}return d}()});case 7:case"end":return f.stop()}},Y)}));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(Y){var o;if(practiceSetting!=null&&(o=practiceSetting.sideBar)!==null&&o!==void 0&&o.confirmLeave){showExitmodel(Y.key);return}setMenuSelectKey(Y.key),parseInt(Y.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(Y){return setTaskPass(Y.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(Y){return setTestSetPermission(Y.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(Y){return setIsCopy(Y.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(Y){return setOpenValue(Y.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(Y){setDepartmentValue(Y),handleGetDepartments(Y)},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(o){return o!==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(Y){setIsOpenTime(Y.target.checked),Y.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(Y){return Y&&Y0){var S,v;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((S=shixunsDetail.setting)===null||S===void 0||((v=S.shixun)===null||v===void 0))?void 0:v.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(Y){return setport(Y.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"))),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(Y){return setWindowVNCTemplate(Y.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),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(Y){return setWindowVNCTemplate(Y.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(Y){return setWindowsConnectionMode(Y)}},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,Y){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(L){M.template_name=L.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_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(L){M.template_identity=L.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_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 L={};L.template_name="",L.template_identity="",shixun_virtual_templates.push(L),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),Y!=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(Y,1),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_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(Y){return set_display_git_address(Y.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(Y){return setCodeHidden(Y.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(Y){return setCodeEditPermission(Y.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(Y){return setForbidCopy(Y.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(Y){return setSurvivalTime(Y)}}),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(Y){handleChangeEvaluationScript(Y),setevaluationScript(Y)}},(standardScriptList||[]).map(function(M,Y){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(Option,{value:parseInt(M.id),name:M.scptname,key:Y},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(Y){return setEvaluateScript(Y)}})),((_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,Y){var o,L,g,A,b,y,x,w;return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{key:Y},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:((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0)?void 0:L.status)===2?!0:!editable,onChange:function(_){return handleChangeSeviceConfig(_.target.value,"cpu_limit",Y)}})),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(_){return handleChangeSeviceConfig(_.target.value,"lower_cpu_limit",Y)}})),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:((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.status)===2?!0:!editable,onChange:function(_){return handleChangeSeviceConfig(_.target.value,"memory_limit",Y)}})),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:((x=shixunsDetail.setting)===null||x===void 0||((w=x.shixun)===null||w===void 0)?void 0:w.status)===2?!0:!editable,onChange:function(_){return handleChangeSeviceConfig(_.target.value,"request_limit",Y)}}),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(Y){return setDisableDiscuss(!Y)}}),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(Y){return setEvaluateScript(Y)}}))}__webpack_exports__.a=Object(umi__WEBPACK_IMPORTED_MODULE_40__.a)(function(M){var Y=M.user,o=M.shixunsDetail,L=M.practiceSetting;return{user:Y,shixunsDetail:o,practiceSetting:L}})(Setting)},"19Vz":function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){L.defineOption("placeholder","",function(f,_,d){var r=d&&d!=L.Init;if(_&&!r)f.on("blur",y),f.on("change",x),f.on("swapDoc",x),L.on(f.getInputField(),"compositionupdate",f.state.placeholderCompose=function(){b(f)}),x(f);else if(!_&&r){f.off("blur",y),f.off("change",x),f.off("swapDoc",x),L.off(f.getInputField(),"compositionupdate",f.state.placeholderCompose),g(f);var u=f.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}_&&!f.hasFocus()&&y(f)});function g(f){f.state.placeholder&&(f.state.placeholder.parentNode.removeChild(f.state.placeholder),f.state.placeholder=null)}function A(f){g(f);var _=f.state.placeholder=document.createElement("pre");_.style.cssText="height: 0; overflow: visible",_.style.direction=f.getOption("direction"),_.className="CodeMirror-placeholder CodeMirror-line-like";var d=f.getOption("placeholder");typeof d=="string"&&(d=document.createTextNode(d)),_.appendChild(d),f.display.lineSpace.insertBefore(_,f.display.lineSpace.firstChild)}function b(f){setTimeout(function(){var _=!1,d=f.getInputField();d.nodeName=="TEXTAREA"?_=!d.value:f.lineCount()==1&&(_=!/[^\u200b]/.test(d.querySelector(".CodeMirror-line").textContent)),_?A(f):g(f)},20)}function y(f){w(f)&&A(f)}function x(f){var _=f.getWrapperElement(),d=w(f);_.className=_.className.replace(" CodeMirror-empty","")+(d?" CodeMirror-empty":""),d?A(f):g(f)}function w(f){return f.lineCount()===1&&f.getLine(0)===""}})},"1Sn+":function(M,Y,o){},"1XHU":function(M,Y,o){"use strict";var L=o("2qtc"),g=o("kLXV"),A=o("q1tI"),b=o.n(A),y=o("9kvl"),x=o("3wET"),w=o.n(x),f=o("bUJZ"),_=o.n(f),d=o("Ct/S"),r=o.n(d),u=function(a){var n=a.visible,i=a.occupationValue,h=a.onCancel,l=h===void 0?function(){}:h,s=function(){return b.a.createElement("div",{className:r.a.flexColumn},b.a.createElement("img",{className:r.a.img,src:_.a}),b.a.createElement("span",{className:r.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},p=function(){return b.a.createElement("div",{className:r.a.flexColumn},b.a.createElement("img",{className:r.a.img,src:w.a}),b.a.createElement("span",{className:r.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},O=function(){return i===3?b.a.createElement(b.a.Fragment,null,p(),s()):i===2?s():p()};return b.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:n,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(){l(),y.d.push("/account/certification")},onCancel:function(){l()}},b.a.createElement("div",{className:r.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),b.a.createElement("div",{className:r.a.flexRow},O()))};Y.a=Object(y.a)(function(t){var a=t.paperlibrary,n=t.loading,i=t.globalSetting;return{paperlibrary:a,globalSetting:i,loading:n.effects}})(u)},"1ZF9":function(M,Y,o){M.exports=o.p+"static/Authorize.cc9c212f.png"},"1eCo":function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){"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};L.defineMode("xml",function(b,y){var x=b.indentUnit,w={},f=y.htmlMode?g:A;for(var _ in f)w[_]=f[_];for(var _ in y)w[_]=y[_];var d,r;function u(T,I){function D(F){return I.tokenize=F,F(T,I)}var N=T.next();if(N=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?D(n("atom","]]>")):null:T.match("--")?D(n("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),D(i(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),I.tokenize=n("meta","?>"),"meta"):(d=T.eat("/")?"closeTag":"openTag",I.tokenize=t,"tag bracket");if(N=="&"){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}u.isInText=!0;function t(T,I){var D=T.next();if(D==">"||D=="/"&&T.eat(">"))return I.tokenize=u,d=D==">"?"endTag":"selfcloseTag","tag bracket";if(D=="=")return d="equals",null;if(D=="<"){I.tokenize=u,I.state=p,I.tagName=I.tagStart=null;var N=I.tokenize(T,I);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(D)?(I.tokenize=a(D),I.stringStartCol=T.column(),I.tokenize(T,I)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function a(T){var I=function(D,N){for(;!D.eol();)if(D.next()==T){N.tokenize=t;break}return"string"};return I.isInAttribute=!0,I}function n(T,I){return function(D,N){for(;!D.eol();){if(D.match(I)){N.tokenize=u;break}D.next()}return T}}function i(T){return function(I,D){for(var N;(N=I.next())!=null;){if(N=="<")return D.tokenize=i(T+1),D.tokenize(I,D);if(N==">")if(T==1){D.tokenize=u;break}else return D.tokenize=i(T-1),D.tokenize(I,D)}return"meta"}}function h(T,I,D){this.prev=T.context,this.tagName=I,this.indent=T.indented,this.startOfLine=D,(w.doNotIndent.hasOwnProperty(I)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function l(T){T.context&&(T.context=T.context.prev)}function s(T,I){for(var D;;){if(!T.context)return;if(D=T.context.tagName,!w.contextGrabbers.hasOwnProperty(D)||!w.contextGrabbers[D].hasOwnProperty(I))return;l(T)}}function p(T,I,D){return T=="openTag"?(D.tagStart=I.column(),O):T=="closeTag"?S:p}function O(T,I,D){return T=="word"?(D.tagName=I.current(),r="tag",R):w.allowMissingTagName&&T=="endTag"?(r="tag bracket",R(T,I,D)):(r="error",O)}function S(T,I,D){if(T=="word"){var N=I.current();return D.context&&D.context.tagName!=N&&w.implicitlyClosed.hasOwnProperty(D.context.tagName)&&l(D),D.context&&D.context.tagName==N||w.matchClosing===!1?(r="tag",v):(r="tag error",P)}else return w.allowMissingTagName&&T=="endTag"?(r="tag bracket",v(T,I,D)):(r="error",P)}function v(T,I,D){return T!="endTag"?(r="error",v):(l(D),p)}function P(T,I,D){return r="error",v(T,I,D)}function R(T,I,D){if(T=="word")return r="attribute",E;if(T=="endTag"||T=="selfcloseTag"){var N=D.tagName,z=D.tagStart;return D.tagName=D.tagStart=null,T=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(N)?s(D,N):(s(D,N),D.context=new h(D,N,z==D.indented)),p}return r="error",R}function E(T,I,D){return T=="equals"?C:(w.allowMissing||(r="error"),R(T,I,D))}function C(T,I,D){return T=="string"?m:T=="word"&&w.allowUnquoted?(r="string",R):(r="error",R(T,I,D))}function m(T,I,D){return T=="string"?m:R(T,I,D)}return{startState:function(T){var I={tokenize:u,state:p,indented:T||0,tagName:null,tagStart:null,context:null};return T!=null&&(I.baseIndent=T),I},token:function(T,I){if(!I.tagName&&T.sol()&&(I.indented=T.indentation()),T.eatSpace())return null;d=null;var D=I.tokenize(T,I);return(D||d)&&D!="comment"&&(r=null,I.state=I.state(d||D,T,I),r&&(D=r=="error"?D+" error":r)),D},indent:function(T,I,D){var N=T.context;if(T.tokenize.isInAttribute)return T.tagStart==T.indented?T.stringStartCol+1:T.indented+x;if(N&&N.noIndent)return L.Pass;if(T.tokenize!=t&&T.tokenize!=u)return D?D.match(/^(\s*)/)[0].length:0;if(T.tagName)return w.multilineTagIndentPastTag!==!1?T.tagStart+T.tagName.length+2:T.tagStart+x*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/$/,blockCommentStart:"",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(T){T.state==C&&(T.state=R)},xmlCurrentTag:function(T){return T.tagName?{name:T.tagName,close:T.type=="closeTag"}:null},xmlCurrentContext:function(T){for(var I=[],D=T.context;D;D=D.prev)D.tagName&&I.push(D.tagName);return I.reverse()}}}),L.defineMIME("text/xml","xml"),L.defineMIME("application/xml","xml"),L.mimeModes.hasOwnProperty("text/html")||L.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(M,Y,o){"use strict";o.d(Y,"d",function(){return tt}),o.d(Y,"b",function(){return Ke}),o.d(Y,"c",function(){return Ot}),o.d(Y,"a",function(){return an});var L=o("VTBJ"),g=o("1OyB"),A=o("vuIU"),b=o("JX7q"),y=o("Ji7U"),x=o("LK+K"),w=o("q1tI"),f=o("I8Z2"),_=o("BGR+"),d=o("wx14"),r=o("rePB"),u=o("4IlW"),t=o("2GS6"),a=o("Gytx"),n=o.n(a),i=o("TSYQ"),h=o.n(i),l=o("U8pU"),s=o("ODXe"),p=/iPhone/i,O=/iPod/i,S=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,R=/\bAndroid(?:.+)SD4930UR\b/i,E=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,C=/Windows Phone/i,m=/\bWindows(?:.+)ARM\b/i,T=/BlackBerry/i,I=/BB10/i,D=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,z=/Mobile(?:.+)Firefox\b/i;function F(bt,Be){return bt.test(Be)}function W(bt){var Be=bt||(typeof navigator!="undefined"?navigator.userAgent:""),at=Be.split("[FBAN");if(typeof at[1]!="undefined"){var it=at,Me=Object(s.a)(it,1);Be=Me[0]}if(at=Be.split("Twitter"),typeof at[1]!="undefined"){var Ye=at,ut=Object(s.a)(Ye,1);Be=ut[0]}var mt={apple:{phone:F(p,Be)&&!F(C,Be),ipod:F(O,Be),tablet:!F(p,Be)&&F(S,Be)&&!F(C,Be),device:(F(p,Be)||F(O,Be)||F(S,Be))&&!F(C,Be)},amazon:{phone:F(R,Be),tablet:!F(R,Be)&&F(E,Be),device:F(R,Be)||F(E,Be)},android:{phone:!F(C,Be)&&F(R,Be)||!F(C,Be)&&F(v,Be),tablet:!F(C,Be)&&!F(R,Be)&&!F(v,Be)&&(F(E,Be)||F(P,Be)),device:!F(C,Be)&&(F(R,Be)||F(E,Be)||F(v,Be)||F(P,Be))||F(/\bokhttp\b/i,Be)},windows:{phone:F(C,Be),tablet:F(m,Be),device:F(C,Be)||F(m,Be)},other:{blackberry:F(T,Be),blackberry10:F(I,Be),opera:F(D,Be),firefox:F(z,Be),chrome:F(N,Be),device:F(T,Be)||F(I,Be)||F(D,Be)||F(z,Be)||F(N,Be)},any:null,phone:null,tablet:null};return mt.any=mt.apple.device||mt.android.device||mt.windows.device||mt.other.device,mt.phone=mt.apple.phone||mt.android.phone||mt.windows.phone,mt.tablet=mt.apple.tablet||mt.android.tablet||mt.windows.tablet,mt}var K=Object(L.a)(Object(L.a)({},W()),{},{isMobile:W}),B=K;function k(){}function G(bt,Be,at){var it=Be||"";return bt.key||"".concat(it,"item_").concat(at)}function ne(bt){return"".concat(bt,"-menu-")}function fe(bt,Be){var at=-1;w.Children.forEach(bt,function(it){at+=1,it&&it.type&&it.type.isMenuItemGroup?w.Children.forEach(it.props.children,function(Me){at+=1,Be(Me,at)}):Be(it,at)})}function de(bt,Be,at){if(!bt||at.find)return;w.Children.forEach(bt,function(it){if(it){var Me=it.type;if(!Me||!(Me.isSubMenu||Me.isMenuItem||Me.isMenuItemGroup))return;Be.indexOf(it.key)!==-1?at.find=!0:it.props.children&&de(it.props.children,Be,at)}})}var xe=["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"],Oe=function(Be){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=Be&&typeof Be.getBoundingClientRect=="function"&&Be.getBoundingClientRect().width;if(it){if(at){var Me=getComputedStyle(Be),Ye=Me.marginLeft,ut=Me.marginRight;it+=+Ye.replace("px","")+ +ut.replace("px","")}it=+it.toFixed(6)}return it||0},ce=function(Be,at,it){Be&&Object(l.a)(Be.style)==="object"&&(Be.style[at]=it)},be=function(){return B.any},ve=o("KQm4"),ue=o("Ff2n"),se=o("i8i4"),q=o("bdgK"),me=o("uciX"),re=o("8XRh"),ie={adjustX:1,adjustY:1},we={topLeft:{points:["bl","tl"],overflow:ie,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ie,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ie,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ie,offset:[4,0]}},le={topLeft:{points:["bl","tl"],overflow:ie,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ie,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ie,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ie,offset:[4,0]}},$=we,J=0,te={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},De=function(Be,at,it){var Me=ne(at),Ye=Be.getState();Be.setState({defaultActiveFirst:Object(L.a)(Object(L.a)({},Ye.defaultActiveFirst),{},Object(r.a)({},Me,it))})},Te=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(it){var Me;Object(g.a)(this,at),Me=Be.call(this,it),Me.onDestroy=function(et){Me.props.onDestroy(et)},Me.onKeyDown=function(et){var Dt=et.keyCode,Ht=Me.menuInstance,bn=Me.props,Cn=bn.isOpen,Yn=bn.store;if(Dt===u.a.ENTER)return Me.onTitleClick(et),De(Yn,Me.props.eventKey,!0),!0;if(Dt===u.a.RIGHT)return Cn?Ht.onKeyDown(et):(Me.triggerOpenChange(!0),De(Yn,Me.props.eventKey,!0)),!0;if(Dt===u.a.LEFT){var qn;if(Cn)qn=Ht.onKeyDown(et);else return;return qn||(Me.triggerOpenChange(!1),qn=!0),qn}return Cn&&(Dt===u.a.UP||Dt===u.a.DOWN)?Ht.onKeyDown(et):void 0},Me.onOpenChange=function(et){Me.props.onOpenChange(et)},Me.onPopupVisibleChange=function(et){Me.triggerOpenChange(et,et?"mouseenter":"mouseleave")},Me.onMouseEnter=function(et){var Dt=Me.props,Ht=Dt.eventKey,bn=Dt.onMouseEnter,Cn=Dt.store;De(Cn,Me.props.eventKey,!1),bn({key:Ht,domEvent:et})},Me.onMouseLeave=function(et){var Dt=Me.props,Ht=Dt.parentMenu,bn=Dt.eventKey,Cn=Dt.onMouseLeave;Ht.subMenuInstance=Object(b.a)(Me),Cn({key:bn,domEvent:et})},Me.onTitleMouseEnter=function(et){var Dt=Me.props,Ht=Dt.eventKey,bn=Dt.onItemHover,Cn=Dt.onTitleMouseEnter;bn({key:Ht,hover:!0}),Cn({key:Ht,domEvent:et})},Me.onTitleMouseLeave=function(et){var Dt=Me.props,Ht=Dt.parentMenu,bn=Dt.eventKey,Cn=Dt.onItemHover,Yn=Dt.onTitleMouseLeave;Ht.subMenuInstance=Object(b.a)(Me),Cn({key:bn,hover:!1}),Yn({key:bn,domEvent:et})},Me.onTitleClick=function(et){var Dt=Object(b.a)(Me),Ht=Dt.props;if(Ht.onTitleClick({key:Ht.eventKey,domEvent:et}),Ht.triggerSubMenuAction==="hover")return;Me.triggerOpenChange(!Ht.isOpen,"click"),De(Ht.store,Me.props.eventKey,!1)},Me.onSubMenuClick=function(et){typeof Me.props.onClick=="function"&&Me.props.onClick(Me.addKeyPath(et))},Me.onSelect=function(et){Me.props.onSelect(et)},Me.onDeselect=function(et){Me.props.onDeselect(et)},Me.getPrefixCls=function(){return"".concat(Me.props.rootPrefixCls,"-submenu")},Me.getActiveClassName=function(){return"".concat(Me.getPrefixCls(),"-active")},Me.getDisabledClassName=function(){return"".concat(Me.getPrefixCls(),"-disabled")},Me.getSelectedClassName=function(){return"".concat(Me.getPrefixCls(),"-selected")},Me.getOpenClassName=function(){return"".concat(Me.props.rootPrefixCls,"-submenu-open")},Me.saveMenuInstance=function(et){Me.menuInstance=et},Me.addKeyPath=function(et){return Object(L.a)(Object(L.a)({},et),{},{keyPath:(et.keyPath||[]).concat(Me.props.eventKey)})},Me.triggerOpenChange=function(et,Dt){var Ht=Me.props.eventKey,bn=function(){Me.onOpenChange({key:Ht,item:Object(b.a)(Me),trigger:Dt,open:et})};Dt==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){bn()},0):bn()},Me.isChildrenSelected=function(){var et={find:!1};return de(Me.props.children,Me.props.selectedKeys,et),et.find},Me.isOpen=function(){return Me.props.openKeys.indexOf(Me.props.eventKey)!==-1},Me.adjustWidth=function(){if(!Me.subMenuTitle||!Me.menuInstance)return;var et=se.findDOMNode(Me.menuInstance);if(et.offsetWidth>=Me.subMenuTitle.offsetWidth)return;et.style.minWidth="".concat(Me.subMenuTitle.offsetWidth,"px")},Me.saveSubMenuTitle=function(et){Me.subMenuTitle=et},Me.getBaseProps=function(){var et=Object(b.a)(Me),Dt=et.props;return{mode:Dt.mode==="horizontal"?"vertical":Dt.mode,visible:Me.props.isOpen,level:Dt.level+1,inlineIndent:Dt.inlineIndent,focusable:!1,onClick:Me.onSubMenuClick,onSelect:Me.onSelect,onDeselect:Me.onDeselect,onDestroy:Me.onDestroy,selectedKeys:Dt.selectedKeys,eventKey:"".concat(Dt.eventKey,"-menu-"),openKeys:Dt.openKeys,motion:Dt.motion,onOpenChange:Me.onOpenChange,subMenuOpenDelay:Dt.subMenuOpenDelay,parentMenu:Object(b.a)(Me),subMenuCloseDelay:Dt.subMenuCloseDelay,forceSubMenuRender:Dt.forceSubMenuRender,triggerSubMenuAction:Dt.triggerSubMenuAction,builtinPlacements:Dt.builtinPlacements,defaultActiveFirst:Dt.store.getState().defaultActiveFirst[ne(Dt.eventKey)],multiple:Dt.multiple,prefixCls:Dt.rootPrefixCls,id:Me.internalMenuId,manualRef:Me.saveMenuInstance,itemIcon:Dt.itemIcon,expandIcon:Dt.expandIcon,direction:Dt.direction}},Me.getMotion=function(et,Dt){var Ht=Object(b.a)(Me),bn=Ht.haveRendered,Cn=Me.props,Yn=Cn.motion,qn=Cn.rootPrefixCls,Pn=Object(L.a)(Object(L.a)({},Yn),{},{leavedClassName:"".concat(qn,"-hidden"),removeOnLeave:!1,motionAppear:bn||!Dt||et!=="inline"});return Pn};var Ye=it.store,ut=it.eventKey,mt=Ye.getState(),Pt=mt.defaultActiveFirst;Me.isRootMenu=!1;var jt=!1;return Pt&&(jt=Pt[ut]),De(Ye,ut,jt),Me}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Ye=this.props,ut=Ye.mode,mt=Ye.parentMenu,Pt=Ye.manualRef;if(Pt&&Pt(this),ut!=="horizontal"||!mt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Ye=Me.onDestroy,ut=Me.eventKey;Ye&&Ye(ut),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Me){var Ye=this,ut=this.getBaseProps(),mt=this.getMotion(ut.mode,ut.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ut.visible||ut.forceSubMenuRender,!this.haveOpened)return w.createElement("div",null);var Pt=ut.direction;return w.createElement(re.default,Object.assign({visible:ut.visible},mt),function(jt){var et=jt.className,Dt=jt.style,Ht=h()("".concat(ut.prefixCls,"-sub"),et,Object(r.a)({},"".concat(ut.prefixCls,"-rtl"),Pt==="rtl"));return w.createElement(Qe,Object.assign({},ut,{id:Ye.internalMenuId,className:Ht,style:Dt}),Me)})}},{key:"render",value:function(){var Me,Ye=Object(L.a)({},this.props),ut=Ye.isOpen,mt=this.getPrefixCls(),Pt=Ye.mode==="inline",jt=h()(mt,"".concat(mt,"-").concat(Ye.mode),(Me={},Object(r.a)(Me,Ye.className,!!Ye.className),Object(r.a)(Me,this.getOpenClassName(),ut),Object(r.a)(Me,this.getActiveClassName(),Ye.active||ut&&!Pt),Object(r.a)(Me,this.getDisabledClassName(),Ye.disabled),Object(r.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||(Ye.eventKey?this.internalMenuId="".concat(Ye.eventKey,"$Menu"):(J+=1,this.internalMenuId="$__$".concat(J,"$Menu")));var et={},Dt={},Ht={};Ye.disabled||(et={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Dt={onClick:this.onTitleClick},Ht={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var bn={},Cn=Ye.direction;Pt&&(Cn==="rtl"?bn.paddingRight=Ye.inlineIndent*Ye.level:bn.paddingLeft=Ye.inlineIndent*Ye.level);var Yn={};this.props.isOpen&&(Yn={"aria-owns":this.internalMenuId});var qn=null;Ye.mode!=="horizontal"&&(qn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qn=w.createElement(this.props.expandIcon,Object(L.a)({},this.props))));var Pn=w.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:bn,className:"".concat(mt,"-title"),role:"button"},Ht,Dt,{"aria-expanded":ut},Yn,{"aria-haspopup":"true",title:typeof Ye.title=="string"?Ye.title:void 0}),Ye.title,qn||w.createElement("i",{className:"".concat(mt,"-arrow")})),cn=this.renderChildren(Ye.children),xr=Ye.parentMenu.isRootMenu?Ye.parentMenu.props.getPopupContainer:function($n){return $n.parentNode},wr=te[Ye.mode],Rr=Ye.popupOffset?{offset:Ye.popupOffset}:{},cr=Ye.mode==="inline"?"":Ye.popupClassName;cr+=Cn==="rtl"?" ".concat(mt,"-rtl"):"";var Ur=Ye.disabled,yr=Ye.triggerSubMenuAction,sn=Ye.subMenuOpenDelay,Zt=Ye.forceSubMenuRender,Tn=Ye.subMenuCloseDelay,jr=Ye.builtinPlacements;xe.forEach(function($n){return delete Ye[$n]}),delete Ye.onClick;var jn=Cn==="rtl"?Object.assign({},le,jr):Object.assign({},we,jr);return delete Ye.direction,w.createElement("li",Object.assign({},Ye,et,{className:jt,role:"menuitem"}),Pt&&Pn,Pt&&cn,!Pt&&w.createElement(me.a,{prefixCls:mt,popupClassName:h()("".concat(mt,"-popup"),cr),getPopupContainer:xr,builtinPlacements:jn,popupPlacement:wr,popupVisible:ut,popupAlign:Rr,popup:cn,action:Ur?[]:[yr],mouseEnterDelay:sn,mouseLeaveDelay:Tn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Zt},Pn))}}]),at}(w.Component);Te.defaultProps={onMouseEnter:k,onMouseLeave:k,onTitleMouseEnter:k,onTitleMouseLeave:k,onTitleClick:k,manualRef:k,mode:"vertical",title:""};var ke=Object(f.b)(function(bt,Be){var at=bt.openKeys,it=bt.activeKey,Me=bt.selectedKeys,Ye=Be.eventKey,ut=Be.subMenuKey;return{isOpen:at.indexOf(Ye)>-1,active:it[ut]===Ye,selectedKeys:Me}})(Te);ke.isSubMenu=!0;var tt=ke,ot="menuitem-overflowed",gt=.5,Et=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(){var it;return Object(g.a)(this,at),it=Be.apply(this,arguments),it.resizeObserver=null,it.mutationObserver=null,it.originalTotalWidth=0,it.overflowedItems=[],it.menuItemSizes=[],it.cancelFrameId=null,it.state={lastVisibleIndex:void 0},it.getMenuItemNodes=function(){var Me=it.props.prefixCls,Ye=se.findDOMNode(Object(b.a)(it));return Ye?[].slice.call(Ye.children).filter(function(ut){return ut.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},it.getOverflowedSubMenuItem=function(Me,Ye,ut){var mt=it.props,Pt=mt.overflowedIndicator,jt=mt.level,et=mt.mode,Dt=mt.prefixCls,Ht=mt.theme;if(jt!==1||et!=="horizontal")return null;var bn=it.props.children[0],Cn=bn.props,Yn=Cn.children,qn=Cn.title,Pn=Cn.style,cn=Object(ue.a)(Cn,["children","title","style"]),xr=Object(L.a)({},Pn),wr="".concat(Me,"-overflowed-indicator"),Rr="".concat(Me,"-overflowed-indicator");Ye.length===0&&ut!==!0?xr=Object(L.a)(Object(L.a)({},xr),{},{display:"none"}):ut&&(xr=Object(L.a)(Object(L.a)({},xr),{},{visibility:"hidden",position:"absolute"}),wr="".concat(wr,"-placeholder"),Rr="".concat(Rr,"-placeholder"));var cr=Ht?"".concat(Dt,"-").concat(Ht):"",Ur={};return xe.forEach(function(yr){cn[yr]!==void 0&&(Ur[yr]=cn[yr])}),w.createElement(tt,Object.assign({title:Pt,className:"".concat(Dt,"-overflowed-submenu"),popupClassName:cr},Ur,{key:wr,eventKey:Rr,disabled:!1,style:xr}),Ye)},it.setChildrenWidthAndResize=function(){if(it.props.mode!=="horizontal")return;var Me=se.findDOMNode(Object(b.a)(it));if(!Me)return;var Ye=Me.children;if(!Ye||Ye.length===0)return;var ut=Me.children[Ye.length-1];ce(ut,"display","inline-block");var mt=it.getMenuItemNodes(),Pt=mt.filter(function(jt){return jt.className.split(" ").indexOf(ot)>=0});Pt.forEach(function(jt){ce(jt,"display","inline-block")}),it.menuItemSizes=mt.map(function(jt){return Oe(jt,!0)}),Pt.forEach(function(jt){ce(jt,"display","none")}),it.overflowedIndicatorWidth=Oe(Me.children[Me.children.length-1],!0),it.originalTotalWidth=it.menuItemSizes.reduce(function(jt,et){return jt+et},0),it.handleResize(),ce(ut,"display","none")},it.handleResize=function(){if(it.props.mode!=="horizontal")return;var Me=se.findDOMNode(Object(b.a)(it));if(!Me)return;var Ye=Oe(Me);it.overflowedItems=[];var ut=0,mt;it.originalTotalWidth>Ye+gt&&(mt=-1,it.menuItemSizes.forEach(function(Pt){ut+=Pt,ut+it.overflowedIndicatorWidth<=Ye&&(mt+=1)})),it.setState({lastVisibleIndex:mt})},it}return Object(A.a)(at,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ye=se.findDOMNode(this);if(!Ye)return;this.resizeObserver=new q.default(function(ut){ut.forEach(function(){var mt=Me.cancelFrameId;cancelAnimationFrame(mt),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Ye.children).concat(Ye).forEach(function(ut){Me.resizeObserver.observe(ut)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Ye.children).concat(Ye).forEach(function(ut){Me.resizeObserver.observe(ut)}),Me.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ye,{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(Me){var Ye=this,ut=this.state.lastVisibleIndex;return(Me||[]).reduce(function(mt,Pt,jt){var et=Pt;if(Ye.props.mode==="horizontal"){var Dt=Ye.getOverflowedSubMenuItem(Pt.props.eventKey,[]);ut!==void 0&&Ye.props.className.indexOf("".concat(Ye.props.prefixCls,"-root"))!==-1&&(jt>ut&&(et=w.cloneElement(Pt,{style:{display:"none"},eventKey:"".concat(Pt.props.eventKey,"-hidden"),className:"".concat(ot)})),jt===ut+1&&(Ye.overflowedItems=Me.slice(ut+1).map(function(bn){return w.cloneElement(bn,{key:bn.props.eventKey,mode:"vertical-left"})}),Dt=Ye.getOverflowedSubMenuItem(Pt.props.eventKey,Ye.overflowedItems)));var Ht=[].concat(Object(ve.a)(mt),[Dt,et]);return jt===Me.length-1&&Ht.push(Ye.getOverflowedSubMenuItem(Pt.props.eventKey,[],!0)),Ht}return[].concat(Object(ve.a)(mt),[et])},[])}},{key:"render",value:function(){var Me=this.props,Ye=Me.visible,ut=Me.prefixCls,mt=Me.overflowedIndicator,Pt=Me.mode,jt=Me.level,et=Me.tag,Dt=Me.children,Ht=Me.theme,bn=Object(ue.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Cn=et;return w.createElement(Cn,Object.assign({},bn),this.renderChildren(Dt))}}]),at}(w.Component);Et.defaultProps={tag:"div",className:""};var xt=Et;function St(bt){return bt.length?bt.every(function(Be){return!!Be.props.disabled}):!0}function Je(bt,Be,at){var it=bt.getState();bt.setState({activeKey:Object(L.a)(Object(L.a)({},it.activeKey),{},Object(r.a)({},Be,at))})}function Ue(bt){return bt.eventKey||"0-menu-"}function ft(bt,Be){var at=Be,it=bt.children,Me=bt.eventKey;if(at){var Ye;if(fe(it,function(ut,mt){ut&&ut.props&&!ut.props.disabled&&at===G(ut,Me,mt)&&(Ye=!0)}),Ye)return at}return at=null,bt.defaultActiveFirst&&fe(it,function(ut,mt){!at&&ut&&!ut.props.disabled&&(at=G(ut,Me,mt))}),at}function kt(bt){if(bt){var Be=this.instanceArray.indexOf(bt);Be!==-1?this.instanceArray[Be]=bt:this.instanceArray.push(bt)}}var ht=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(it){var Me;return Object(g.a)(this,at),Me=Be.call(this,it),Me.onKeyDown=function(Ye,ut){var mt=Ye.keyCode,Pt;if(Me.getFlatInstanceArray().forEach(function(et){et&&et.props.active&&et.onKeyDown&&(Pt=et.onKeyDown(Ye))}),Pt)return 1;var jt=null;return(mt===u.a.UP||mt===u.a.DOWN)&&(jt=Me.step(mt===u.a.UP?-1:1)),jt?(Ye.preventDefault(),Je(Me.props.store,Ue(Me.props),jt.props.eventKey),typeof ut=="function"&&ut(jt),1):void 0},Me.onItemHover=function(Ye){var ut=Ye.key,mt=Ye.hover;Je(Me.props.store,Ue(Me.props),mt?ut:null)},Me.onDeselect=function(Ye){Me.props.onDeselect(Ye)},Me.onSelect=function(Ye){Me.props.onSelect(Ye)},Me.onClick=function(Ye){Me.props.onClick(Ye)},Me.onOpenChange=function(Ye){Me.props.onOpenChange(Ye)},Me.onDestroy=function(Ye){Me.props.onDestroy(Ye)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Ye){var ut=Me.getFlatInstanceArray(),mt=Me.props.store.getState().activeKey[Ue(Me.props)],Pt=ut.length;if(!Pt)return null;Ye<0&&(ut=ut.concat().reverse());var jt=-1;if(ut.every(function(bn,Cn){return bn&&bn.props.eventKey===mt?(jt=Cn,!1):!0}),!Me.props.defaultActiveFirst&&jt!==-1&&St(ut.slice(jt,Pt-1)))return;var et=(jt+1)%Pt,Dt=et;do{var Ht=ut[Dt];if(!Ht||Ht.props.disabled)Dt=(Dt+1)%Pt;else return Ht}while(Dt!==et);return null},Me.renderCommonMenuItem=function(Ye,ut,mt){var Pt=Me.props.store.getState(),jt=Object(b.a)(Me),et=jt.props,Dt=G(Ye,et.eventKey,ut),Ht=Ye.props;if(!Ht||typeof Ye.type=="string")return Ye;var bn=Dt===Pt.activeKey,Cn=Object(L.a)(Object(L.a)({mode:Ht.mode||et.mode,level:et.level,inlineIndent:et.inlineIndent,renderMenuItem:Me.renderMenuItem,rootPrefixCls:et.prefixCls,index:ut,parentMenu:et.parentMenu,manualRef:Ht.disabled?void 0:Object(t.a)(Ye.ref,kt.bind(Object(b.a)(Me))),eventKey:Dt,active:!Ht.disabled&&bn,multiple:et.multiple,onClick:function(qn){(Ht.onClick||k)(qn),Me.onClick(qn)},onItemHover:Me.onItemHover,motion:et.motion,subMenuOpenDelay:et.subMenuOpenDelay,subMenuCloseDelay:et.subMenuCloseDelay,forceSubMenuRender:et.forceSubMenuRender,onOpenChange:Me.onOpenChange,onDeselect:Me.onDeselect,onSelect:Me.onSelect,builtinPlacements:et.builtinPlacements,itemIcon:Ht.itemIcon||Me.props.itemIcon,expandIcon:Ht.expandIcon||Me.props.expandIcon},mt),{},{direction:et.direction});return(et.mode==="inline"||be())&&(Cn.triggerSubMenuAction="click"),w.cloneElement(Ye,Cn)},Me.renderMenuItem=function(Ye,ut,mt){if(!Ye)return null;var Pt=Me.props.store.getState(),jt={openKeys:Pt.openKeys,selectedKeys:Pt.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:mt};return Me.renderCommonMenuItem(Ye,ut,jt)},it.store.setState({activeKey:Object(L.a)(Object(L.a)({},it.store.getState().activeKey),{},Object(r.a)({},it.eventKey,ft(it,it.activeKey)))}),Me.instanceArray=[],Me}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Me){return this.props.visible||Me.visible||this.props.className!==Me.className||!n()(this.props.style,Me.style)}},{key:"componentDidUpdate",value:function(Me){var Ye=this.props,ut="activeKey"in Ye?Ye.activeKey:Ye.store.getState().activeKey[Ue(Ye)],mt=ft(Ye,ut);if(mt!==ut)Je(Ye.store,Ue(Ye),mt);else if("activeKey"in Me){var Pt=ft(Me,Me.activeKey);mt!==Pt&&Je(Ye.store,Ue(Ye),mt)}}},{key:"render",value:function(){var Me=this,Ye=Object(d.a)({},this.props);this.instanceArray=[];var ut=h()(Ye.prefixCls,Ye.className,"".concat(Ye.prefixCls,"-").concat(Ye.mode)),mt={className:ut,role:Ye.role||"menu"};Ye.id&&(mt.id=Ye.id),Ye.focusable&&(mt.tabIndex=0,mt.onKeyDown=this.onKeyDown);var Pt=Ye.prefixCls,jt=Ye.eventKey,et=Ye.visible,Dt=Ye.level,Ht=Ye.mode,bn=Ye.overflowedIndicator,Cn=Ye.theme;return xe.forEach(function(Yn){return delete Ye[Yn]}),delete Ye.onClick,w.createElement(xt,Object.assign({},Ye,{prefixCls:Pt,mode:Ht,tag:"ul",level:Dt,theme:Cn,visible:et,overflowedIndicator:bn},mt),w.Children.map(Ye.children,function(Yn,qn){return Me.renderMenuItem(Yn,qn,jt||"0-menu-")}))}}]),at}(w.Component);ht.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:k};var _t=Object(f.b)()(ht),Qe=_t,He=o("Kwbf");function Ge(bt,Be,at){var it=bt.prefixCls,Me=bt.motion,Ye=bt.defaultMotions,ut=Ye===void 0?{}:Ye,mt=bt.openAnimation,Pt=bt.openTransitionName,jt=Be.switchingModeFromInline;if(Me)return Me;if(Object(l.a)(mt)==="object"&&mt)Object(He.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof mt=="string")return{motionName:"".concat(it,"-open-").concat(mt)};if(Pt)return{motionName:Pt};var et=ut[at];return et||(jt?null:ut.other)}var Ee=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(it){var Me;Object(g.a)(this,at),Me=Be.call(this,it),Me.inlineOpenKeys=[],Me.onSelect=function(mt){var Pt=Object(b.a)(Me),jt=Pt.props;if(jt.selectable){var et=Me.store.getState(),Dt=et.selectedKeys,Ht=mt.key;jt.multiple?Dt=Dt.concat([Ht]):Dt=[Ht],"selectedKeys"in jt||Me.store.setState({selectedKeys:Dt}),jt.onSelect(Object(L.a)(Object(L.a)({},mt),{},{selectedKeys:Dt}))}},Me.onClick=function(mt){var Pt=Me.getRealMenuMode(),jt=Object(b.a)(Me),et=jt.store,Dt=jt.props.onOpenChange;Pt!=="inline"&&!("openKeys"in Me.props)&&(et.setState({openKeys:[]}),Dt([])),Me.props.onClick(mt)},Me.onKeyDown=function(mt,Pt){Me.innerMenu.getWrappedInstance().onKeyDown(mt,Pt)},Me.onOpenChange=function(mt){var Pt=Object(b.a)(Me),jt=Pt.props,et=Me.store.getState().openKeys.concat(),Dt=!1,Ht=function(Cn){var Yn=!1;if(Cn.open)Yn=et.indexOf(Cn.key)===-1,Yn&&et.push(Cn.key);else{var qn=et.indexOf(Cn.key);Yn=qn!==-1,Yn&&et.splice(qn,1)}Dt=Dt||Yn};Array.isArray(mt)?mt.forEach(Ht):Ht(mt),Dt&&("openKeys"in Me.props||Me.store.setState({openKeys:et}),jt.onOpenChange(et))},Me.onDeselect=function(mt){var Pt=Object(b.a)(Me),jt=Pt.props;if(jt.selectable){var et=Me.store.getState().selectedKeys.concat(),Dt=mt.key,Ht=et.indexOf(Dt);Ht!==-1&&et.splice(Ht,1),"selectedKeys"in jt||Me.store.setState({selectedKeys:et}),jt.onDeselect(Object(L.a)(Object(L.a)({},mt),{},{selectedKeys:et}))}},Me.onMouseEnter=function(mt){Me.restoreModeVerticalFromInline();var Pt=Me.props.onMouseEnter;Pt&&Pt(mt)},Me.onTransitionEnd=function(mt){var Pt=mt.propertyName==="width"&&mt.target===mt.currentTarget,jt=mt.target.className,et=Object.prototype.toString.call(jt)==="[object SVGAnimatedString]"?jt.animVal:jt,Dt=mt.propertyName==="font-size"&&et.indexOf("anticon")>=0;(Pt||Dt)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function(mt){Me.innerMenu=mt},Me.isRootMenu=!0;var Ye=it.defaultSelectedKeys,ut=it.defaultOpenKeys;return"selectedKeys"in it&&(Ye=it.selectedKeys||[]),"openKeys"in it&&(ut=it.openKeys||[]),Me.store=Object(f.c)({selectedKeys:Ye,openKeys:ut,activeKey:{"0-menu-":ft(it,it.activeKey)}}),Me.state={switchingModeFromInline:!1},Me}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){this.updateOpentKeysWhenSwitchMode(Me),this.updateMiniStore();var Ye=this.props,ut=Ye.siderCollapsed,mt=Ye.inlineCollapsed,Pt=Ye.onOpenChange;(!Me.inlineCollapsed&&mt||!Me.siderCollapsed&&ut)&&Pt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Me){var Ye=this.props,ut=this.store,mt=this.inlineOpenKeys,Pt=ut.getState(),jt={};Me.mode==="inline"&&Ye.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Ye||((Ye.inlineCollapsed&&!Me.inlineCollapsed||Ye.siderCollapsed&&!Me.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Pt.openKeys.concat(),jt.openKeys=[]),(!Ye.inlineCollapsed&&Me.inlineCollapsed||!Ye.siderCollapsed&&Me.siderCollapsed)&&(jt.openKeys=mt,this.inlineOpenKeys=[])),Object.keys(jt).length&&ut.setState(jt)}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Ye=this.store,ut=this.prevOpenKeys,mt=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");mt?(this.prevOpenKeys=Ye.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ut&&(this.store.setState({openKeys:ut}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Ye=this.state.switchingModeFromInline,ut=this.getInlineCollapsed();return Ye&&ut?"inline":ut?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Ye=Me.inlineCollapsed,ut=Me.siderCollapsed;return ut!==void 0?ut:Ye}},{key:"restoreModeVerticalFromInline",value:function(){var Me=this.state.switchingModeFromInline;Me&&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 Me=Object(L.a)({},Object(_.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ye=this.getRealMenuMode();return Me.className+=" ".concat(Me.prefixCls,"-root"),Me.direction==="rtl"&&(Me.className+=" ".concat(Me.prefixCls,"-rtl")),Me=Object(L.a)(Object(L.a)({},Me),{},{mode:Ye,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ge(this.props,this.state,Ye)}),delete Me.openAnimation,delete Me.openTransitionName,w.createElement(f.a,{store:this.store},w.createElement(Qe,Object.assign({},Me,{ref:this.setInnerMenu}),this.props.children))}}]),at}(w.Component);Ee.defaultProps={selectable:!0,onClick:k,onSelect:k,onOpenChange:k,onDeselect:k,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 Ae=Ee,Fe=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(){var it;return Object(g.a)(this,at),it=Be.apply(this,arguments),it.onKeyDown=function(Me){var Ye=Me.keyCode;return Ye===u.a.ENTER?(it.onClick(Me),!0):void 0},it.onMouseLeave=function(Me){var Ye=it.props,ut=Ye.eventKey,mt=Ye.onItemHover,Pt=Ye.onMouseLeave;mt({key:ut,hover:!1}),Pt({key:ut,domEvent:Me})},it.onMouseEnter=function(Me){var Ye=it.props,ut=Ye.eventKey,mt=Ye.onItemHover,Pt=Ye.onMouseEnter;mt({key:ut,hover:!0}),Pt({key:ut,domEvent:Me})},it.onClick=function(Me){var Ye=it.props,ut=Ye.eventKey,mt=Ye.multiple,Pt=Ye.onClick,jt=Ye.onSelect,et=Ye.onDeselect,Dt=Ye.isSelected,Ht={key:ut,keyPath:[ut],item:Object(b.a)(it),domEvent:Me};Pt(Ht),mt?Dt?et(Ht):jt(Ht):Dt||jt(Ht)},it.saveNode=function(Me){it.node=Me},it}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Me=this.props;Me.onDestroy&&Me.onDestroy(Me.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 Me,Ye=Object(L.a)({},this.props),ut=h()(this.getPrefixCls(),Ye.className,(Me={},Object(r.a)(Me,this.getActiveClassName(),!Ye.disabled&&Ye.active),Object(r.a)(Me,this.getSelectedClassName(),Ye.isSelected),Object(r.a)(Me,this.getDisabledClassName(),Ye.disabled),Me)),mt=Object(L.a)(Object(L.a)({},Ye.attribute),{},{title:typeof Ye.title=="string"?Ye.title:void 0,className:ut,role:Ye.role||"menuitem","aria-disabled":Ye.disabled});Ye.role==="option"?mt=Object(L.a)(Object(L.a)({},mt),{},{role:"option","aria-selected":Ye.isSelected}):(Ye.role===null||Ye.role==="none")&&(mt.role="none");var Pt={onClick:Ye.disabled?null:this.onClick,onMouseLeave:Ye.disabled?null:this.onMouseLeave,onMouseEnter:Ye.disabled?null:this.onMouseEnter},jt=Object(L.a)({},Ye.style);Ye.mode==="inline"&&(Ye.direction==="rtl"?jt.paddingRight=Ye.inlineIndent*Ye.level:jt.paddingLeft=Ye.inlineIndent*Ye.level),xe.forEach(function(Dt){return delete Ye[Dt]}),delete Ye.direction;var et=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(et=w.createElement(this.props.itemIcon,this.props)),w.createElement("li",Object.assign({},Object(_.default)(Ye,["onClick","onMouseEnter","onMouseLeave","onSelect"]),mt,Pt,{style:jt,ref:this.saveNode}),Ye.children,et)}}]),at}(w.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:k,onMouseEnter:k,onMouseLeave:k,manualRef:k};var We=Object(f.b)(function(bt,Be){var at=bt.activeKey,it=bt.selectedKeys,Me=Be.eventKey,Ye=Be.subMenuKey;return{active:at[Ye]===Me,isSelected:it.indexOf(Me)!==-1}})(Fe),Ke=We,st=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(){var it;return Object(g.a)(this,at),it=Be.apply(this,arguments),it.renderInnerMenuItem=function(Me){var Ye=it.props,ut=Ye.renderMenuItem,mt=Ye.index;return ut(Me,mt,it.props.subMenuKey)},it}return Object(A.a)(at,[{key:"render",value:function(){var Me=Object(d.a)({},this.props),Ye=Me.className,ut=Ye===void 0?"":Ye,mt=Me.rootPrefixCls,Pt="".concat(mt,"-item-group-title"),jt="".concat(mt,"-item-group-list"),et=Me.title,Dt=Me.children;return xe.forEach(function(Ht){return delete Me[Ht]}),delete Me.onClick,delete Me.direction,w.createElement("li",Object.assign({},Me,{className:"".concat(ut," ").concat(mt,"-item-group")}),w.createElement("div",{className:Pt,title:typeof et=="string"?et:void 0},et),w.createElement("ul",{className:jt},w.Children.map(Dt,this.renderInnerMenuItem)))}}]),at}(w.Component);st.isMenuItemGroup=!0,st.defaultProps={disabled:!0};var Ot=st,Bt=function(Be){var at=Be.className,it=Be.rootPrefixCls,Me=Be.style;return w.createElement("li",{className:"".concat(at," ").concat(it,"-item-divider"),style:Me})};Bt.defaultProps={disabled:!0,className:"",style:{}};var an=Bt,Kt=Y.e=Ae},"1nVM":function(M,Y,o){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,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("MlIO"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.Hasher,y=g.x64,x=y.Word,w=y.WordArray,f=g.algo;function _(){return x.create.apply(x,arguments)}var d=[_(1116352408,3609767458),_(1899447441,602891725),_(3049323471,3964484399),_(3921009573,2173295548),_(961987163,4081628472),_(1508970993,3053834265),_(2453635748,2937671579),_(2870763221,3664609560),_(3624381080,2734883394),_(310598401,1164996542),_(607225278,1323610764),_(1426881987,3590304994),_(1925078388,4068182383),_(2162078206,991336113),_(2614888103,633803317),_(3248222580,3479774868),_(3835390401,2666613458),_(4022224774,944711139),_(264347078,2341262773),_(604807628,2007800933),_(770255983,1495990901),_(1249150122,1856431235),_(1555081692,3175218132),_(1996064986,2198950837),_(2554220882,3999719339),_(2821834349,766784016),_(2952996808,2566594879),_(3210313671,3203337956),_(3336571891,1034457026),_(3584528711,2466948901),_(113926993,3758326383),_(338241895,168717936),_(666307205,1188179964),_(773529912,1546045734),_(1294757372,1522805485),_(1396182291,2643833823),_(1695183700,2343527390),_(1986661051,1014477480),_(2177026350,1206759142),_(2456956037,344077627),_(2730485921,1290863460),_(2820302411,3158454273),_(3259730800,3505952657),_(3345764771,106217008),_(3516065817,3606008344),_(3600352804,1432725776),_(4094571909,1467031594),_(275423344,851169720),_(430227734,3100823752),_(506948616,1363258195),_(659060556,3750685593),_(883997877,3785050280),_(958139571,3318307427),_(1322822218,3812723403),_(1537002063,2003034995),_(1747873779,3602036899),_(1955562222,1575990012),_(2024104815,1125592928),_(2227730452,2716904306),_(2361852424,442776044),_(2428436474,593698344),_(2756734187,3733110249),_(3204031479,2999351573),_(3329325298,3815920427),_(3391569614,3928383900),_(3515267271,566280711),_(3940187606,3454069534),_(4118630271,4000239992),_(116418474,1914138554),_(174292421,2731055270),_(289380356,3203993006),_(460393269,320620315),_(685471733,587496836),_(852142971,1086792851),_(1017036298,365543100),_(1126000580,2618297676),_(1288033470,3409855158),_(1501505948,4234509866),_(1607167915,987167468),_(1816402316,1246189591)],r=[];(function(){for(var t=0;t<80;t++)r[t]=_()})();var u=f.SHA512=b.extend({_doReset:function(){this._hash=new w.init([new x.init(1779033703,4089235720),new x.init(3144134277,2227873595),new x.init(1013904242,4271175723),new x.init(2773480762,1595750129),new x.init(1359893119,2917565137),new x.init(2600822924,725511199),new x.init(528734635,4215389547),new x.init(1541459225,327033209)])},_doProcessBlock:function(t,a){for(var n=this._hash.words,i=n[0],h=n[1],l=n[2],s=n[3],p=n[4],O=n[5],S=n[6],v=n[7],P=i.high,R=i.low,E=h.high,C=h.low,m=l.high,T=l.low,I=s.high,D=s.low,N=p.high,z=p.low,F=O.high,W=O.low,K=S.high,B=S.low,k=v.high,G=v.low,ne=P,fe=R,de=E,xe=C,Oe=m,ce=T,be=I,ve=D,ue=N,se=z,q=F,me=W,re=K,ie=B,we=k,le=G,$=0;$<80;$++){var J,te,De=r[$];if($<16)te=De.high=t[a+$*2]|0,J=De.low=t[a+$*2+1]|0;else{var Te=r[$-15],ke=Te.high,tt=Te.low,ot=(ke>>>1|tt<<31)^(ke>>>8|tt<<24)^ke>>>7,gt=(tt>>>1|ke<<31)^(tt>>>8|ke<<24)^(tt>>>7|ke<<25),Et=r[$-2],xt=Et.high,St=Et.low,Je=(xt>>>19|St<<13)^(xt<<3|St>>>29)^xt>>>6,Ue=(St>>>19|xt<<13)^(St<<3|xt>>>29)^(St>>>6|xt<<26),ft=r[$-7],kt=ft.high,ht=ft.low,_t=r[$-16],Qe=_t.high,He=_t.low;J=gt+ht,te=ot+kt+(J>>>0>>0?1:0),J=J+Ue,te=te+Je+(J>>>0>>0?1:0),J=J+He,te=te+Qe+(J>>>0>>0?1:0),De.high=te,De.low=J}var Ge=ue&q^~ue&re,Ee=se&me^~se&ie,Ae=ne&de^ne&Oe^de&Oe,Fe=fe&xe^fe&ce^xe&ce,We=(ne>>>28|fe<<4)^(ne<<30|fe>>>2)^(ne<<25|fe>>>7),Ke=(fe>>>28|ne<<4)^(fe<<30|ne>>>2)^(fe<<25|ne>>>7),st=(ue>>>14|se<<18)^(ue>>>18|se<<14)^(ue<<23|se>>>9),Ot=(se>>>14|ue<<18)^(se>>>18|ue<<14)^(se<<23|ue>>>9),Bt=d[$],an=Bt.high,Kt=Bt.low,bt=le+Ot,Be=we+st+(bt>>>0>>0?1:0),bt=bt+Ee,Be=Be+Ge+(bt>>>0>>0?1:0),bt=bt+Kt,Be=Be+an+(bt>>>0>>0?1:0),bt=bt+J,Be=Be+te+(bt>>>0>>0?1:0),at=Ke+Fe,it=We+Ae+(at>>>0>>0?1:0);we=re,le=ie,re=q,ie=me,q=ue,me=se,se=ve+bt|0,ue=be+Be+(se>>>0>>0?1:0)|0,be=Oe,ve=ce,Oe=de,ce=xe,de=ne,xe=fe,fe=bt+at|0,ne=Be+it+(fe>>>0>>0?1:0)|0}R=i.low=R+fe,i.high=P+ne+(R>>>0>>0?1:0),C=h.low=C+xe,h.high=E+de+(C>>>0>>0?1:0),T=l.low=T+ce,l.high=m+Oe+(T>>>0>>0?1:0),D=s.low=D+ve,s.high=I+be+(D>>>0>>0?1:0),z=p.low=z+se,p.high=N+ue+(z>>>0>>0?1:0),W=O.low=W+me,O.high=F+q+(W>>>0>>0?1:0),B=S.low=B+ie,S.high=K+re+(B>>>0>>0?1:0),G=v.low=G+le,v.high=k+we+(G>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,a=t.words,n=this._nDataBytes*8,i=t.sigBytes*8;a[i>>>5]|=128<<24-i%32,a[(i+128>>>10<<5)+30]=Math.floor(n/4294967296),a[(i+128>>>10<<5)+31]=n,t.sigBytes=a.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var t=b.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:1024/32});g.SHA512=b._createHelper(u),g.HmacSHA512=b._createHmacHelper(u)}(),L.SHA512})},"3d99":function(M,Y,o){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,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAY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Y6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"3y9D":function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.WordArray,y=A.Hasher,x=g.algo,w=[],f=x.SHA1=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(_,d){for(var r=this._hash.words,u=r[0],t=r[1],a=r[2],n=r[3],i=r[4],h=0;h<80;h++){if(h<16)w[h]=_[d+h]|0;else{var l=w[h-3]^w[h-8]^w[h-14]^w[h-16];w[h]=l<<1|l>>>31}var s=(u<<5|u>>>27)+i+w[h];h<20?s+=(t&a|~t&n)+1518500249:h<40?s+=(t^a^n)+1859775393:h<60?s+=(t&a|t&n|a&n)-1894007588:s+=(t^a^n)-899497514,i=n,n=a,a=t<<30|t>>>2,t=u,u=s}r[0]=r[0]+u|0,r[1]=r[1]+t|0,r[2]=r[2]+a|0,r[3]=r[3]+n|0,r[4]=r[4]+i|0},_doFinalize:function(){var _=this._data,d=_.words,r=this._nDataBytes*8,u=_.sigBytes*8;return d[u>>>5]|=128<<24-u%32,d[(u+64>>>9<<4)+14]=Math.floor(r/4294967296),d[(u+64>>>9<<4)+15]=r,_.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var _=y.clone.call(this);return _._hash=this._hash.clone(),_}});g.SHA1=y._createHelper(f),g.HmacSHA1=y._createHmacHelper(f)}(),L.SHA1})},4:function(M,Y){},"498V":function(M,Y,o){M.exports=o.p+"static/logo.22b9a281.svg"},"4SAo":function(M,Y,o){M.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAA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O5LXSFJRGOXMTcmcLiDxCsCYRNd0/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,Y,o){"use strict";o.d(Y,"a",function(){return s});var L=o("Ty5D"),g=o("dI71"),A=o("q1tI"),b=o.n(A),y=o("YS25"),x=o("17x9"),w=o.n(x),f=o("wx14"),_=o("zLVn"),d=o("9R94"),r=function(C){Object(g.a)(m,C);function m(){for(var I,D=arguments.length,N=new Array(D),z=0;z>>24)&16711935|(p<<24|p>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360;var S=h[s];S.high^=O,S.low^=p}for(var v=0;v<24;v++){for(var P=0;P<5;P++){for(var R=0,E=0,C=0;C<5;C++){var S=h[P+5*C];R^=S.high,E^=S.low}var m=t[P];m.high=R,m.low=E}for(var P=0;P<5;P++)for(var T=t[(P+4)%5],I=t[(P+1)%5],D=I.high,N=I.low,R=T.high^(D<<1|N>>>31),E=T.low^(N<<1|D>>>31),C=0;C<5;C++){var S=h[P+5*C];S.high^=R,S.low^=E}for(var z=1;z<25;z++){var R,E,S=h[z],F=S.high,W=S.low,K=d[z];K<32?(R=F<>>32-K,E=W<>>32-K):(R=W<>>64-K,E=F<>>64-K);var B=t[r[z]];B.high=R,B.low=E}var k=t[0],G=h[0];k.high=G.high,k.low=G.low;for(var P=0;P<5;P++)for(var C=0;C<5;C++){var z=P+5*C,S=h[z],ne=t[z],fe=t[(P+1)%5+5*C],de=t[(P+2)%5+5*C];S.high=ne.high^~fe.high&de.high,S.low=ne.low^~fe.low&de.low}var S=h[0],xe=u[v];S.high^=xe.high,S.low^=xe.low}},_doFinalize:function(){var n=this._data,i=n.words,h=this._nDataBytes*8,l=n.sigBytes*8,s=this.blockSize*32;i[l>>>5]|=1<<24-l%32,i[(g.ceil((l+1)/s)*s>>>5)-1]|=128,n.sigBytes=i.length*4,this._process();for(var p=this._state,O=this.cfg.outputLength/8,S=O/8,v=[],P=0;P>>24)&16711935|(E<<24|E>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,v.push(C),v.push(E)}return new y.init(v,O)},clone:function(){for(var n=x.clone.call(this),i=n._state=this._state.slice(0),h=0;h<25;h++)i[h]=i[h].clone();return n}});A.SHA3=x._createHelper(a),A.HmacSHA3=x._createHmacHelper(a)}(Math),L.SHA3})},"6+eU":function(M,Y,o){"use strict";o.d(Y,"a",function(){return v});var L=o("wx14"),g=o("rePB"),A=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),x=o("Ji7U"),w=o("LK+K"),f=o("q1tI"),_=o.n(f),d=o("TSYQ"),r=o.n(d),u=function(R){var E,C="".concat(R.rootPrefixCls,"-item"),m=r()(C,"".concat(C,"-").concat(R.page),(E={},Object(g.a)(E,"".concat(C,"-active"),R.active),Object(g.a)(E,R.className,!!R.className),Object(g.a)(E,"".concat(C,"-disabled"),!R.page),E)),T=function(){R.onClick(R.page)},I=function(N){R.onKeyPress(N,R.onClick,R.page)};return _.a.createElement("li",{title:R.showTitle?R.page:null,className:m,onClick:T,onKeyPress:I,tabIndex:"0"},R.itemRender(R.page,"page",_.a.createElement("a",{rel:"nofollow"},R.page)))},t=u,a={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},n=function(P){Object(x.a)(E,P);var R=Object(w.a)(E);function E(){var C;Object(b.a)(this,E);for(var m=arguments.length,T=new Array(m),I=0;I=0||D.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;C.setState({goInputText:""}),F(C.getValidValue())},C.go=function(D){var N=C.state.goInputText;if(N==="")return;(D.keyCode===a.ENTER||D.type==="click")&&(C.setState({goInputText:""}),C.props.quickGo(C.getValidValue()))},C}return Object(y.a)(E,[{key:"getValidValue",value:function(){var m=this.state,T=m.goInputText,I=m.current;return!T||isNaN(T)?I:Number(T)}},{key:"getPageSizeOptions",value:function(){var m=this.props,T=m.pageSize,I=m.pageSizeOptions;return I.some(function(D){return D.toString()===T.toString()})?I:I.concat([T.toString()]).sort(function(D,N){var z=isNaN(Number(D))?0:Number(D),F=isNaN(Number(N))?0:Number(N);return z-F})}},{key:"render",value:function(){var m=this,T=this.props,I=T.pageSize,D=T.locale,N=T.rootPrefixCls,z=T.changeSize,F=T.quickGo,W=T.goButton,K=T.selectComponentClass,B=T.buildOptionText,k=T.selectPrefixCls,G=T.disabled,ne=this.state.goInputText,fe="".concat(N,"-options"),de=K,xe=null,Oe=null,ce=null;if(!z&&!F)return null;var be=this.getPageSizeOptions();if(z&&de){var ve=be.map(function(ue,se){return _.a.createElement(de.Option,{key:se,value:ue.toString()},(B||m.buildOptionText)(ue))});xe=_.a.createElement(de,{disabled:G,prefixCls:k,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(I||be[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},ve)}return F&&(W&&(ce=typeof W=="boolean"?_.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:G,className:"".concat(fe,"-quick-jumper-button")},D.jump_to_confirm):_.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),Oe=_.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},D.jump_to,_.a.createElement("input",{disabled:G,type:"text",value:ne,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),D.page,ce)),_.a.createElement("li",{className:"".concat(fe)},xe,Oe)}}]),E}(_.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var i=n,h=o("N2Kk");function l(){}function s(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function p(P,R,E){return E}function O(P,R,E){var C=typeof P=="undefined"?R.pageSize:P;return Math.floor((E.total-1)/C)+1}var S=function(P){Object(x.a)(E,P);var R=Object(w.a)(E);function E(C){var m;Object(b.a)(this,E),m=R.call(this,C),m.getJumpPrevPage=function(){return Math.max(1,m.state.current-(m.props.showLessItems?3:5))},m.getJumpNextPage=function(){return Math.min(O(void 0,m.state,m.props),m.state.current+(m.props.showLessItems?3:5))},m.getItemIcon=function(z,F){var W=m.props.prefixCls,K=z||_.a.createElement("button",{type:"button","aria-label":F,className:"".concat(W,"-item-link")});return typeof z=="function"&&(K=_.a.createElement(z,Object(A.a)({},m.props))),K},m.savePaginationNode=function(z){m.paginationNode=z},m.isValid=function(z){return s(z)&&z!==m.state.current},m.shouldDisplayQuickJumper=function(){var z=m.props,F=z.showQuickJumper,W=z.pageSize,K=z.total;return K<=W?!1:F},m.handleKeyDown=function(z){(z.keyCode===a.ARROW_UP||z.keyCode===a.ARROW_DOWN)&&z.preventDefault()},m.handleKeyUp=function(z){var F=m.getValidValue(z),W=m.state.currentInputValue;F!==W&&m.setState({currentInputValue:F}),z.keyCode===a.ENTER?m.handleChange(F):z.keyCode===a.ARROW_UP?m.handleChange(F-1):z.keyCode===a.ARROW_DOWN&&m.handleChange(F+1)},m.changePageSize=function(z){var F=m.state.current,W=O(z,m.state,m.props);F=F>W?W:F,W===0&&(F=m.state.current),typeof z=="number"&&("pageSize"in m.props||m.setState({pageSize:z}),"current"in m.props||m.setState({current:F,currentInputValue:F})),m.props.onShowSizeChange(F,z),"onChange"in m.props&&m.props.onChange&&m.props.onChange(F,z)},m.handleChange=function(z){var F=m.props.disabled,W=z;if(m.isValid(W)&&!F){var K=O(void 0,m.state,m.props);W>K?W=K:W<1&&(W=1),"current"in m.props||m.setState({current:W,currentInputValue:W});var B=m.state.pageSize;return m.props.onChange(W,B),W}return m.state.current},m.prev=function(){m.hasPrev()&&m.handleChange(m.state.current-1)},m.next=function(){m.hasNext()&&m.handleChange(m.state.current+1)},m.jumpPrev=function(){m.handleChange(m.getJumpPrevPage())},m.jumpNext=function(){m.handleChange(m.getJumpNextPage())},m.hasPrev=function(){return m.state.current>1},m.hasNext=function(){return m.state.current2?W-2:0),B=2;B=I?N=I:N=Number(T),N}},{key:"getShowSizeChanger",value:function(){var m=this.props,T=m.showSizeChanger,I=m.total,D=m.totalBoundaryShowSizeChanger;return typeof T!="undefined"?T:I>D}},{key:"renderPrev",value:function(m){var T=this.props,I=T.prevIcon,D=T.itemRender,N=D(m,"prev",this.getItemIcon(I,"prev page")),z=!this.hasPrev();return Object(f.isValidElement)(N)?Object(f.cloneElement)(N,{disabled:z}):N}},{key:"renderNext",value:function(m){var T=this.props,I=T.nextIcon,D=T.itemRender,N=D(m,"next",this.getItemIcon(I,"next page")),z=!this.hasNext();return Object(f.isValidElement)(N)?Object(f.cloneElement)(N,{disabled:z}):N}},{key:"render",value:function(){var m=this,T=this.props,I=T.prefixCls,D=T.className,N=T.style,z=T.disabled,F=T.hideOnSinglePage,W=T.total,K=T.locale,B=T.showQuickJumper,k=T.showLessItems,G=T.showTitle,ne=T.showTotal,fe=T.simple,de=T.itemRender,xe=T.showPrevNextJumpers,Oe=T.jumpPrevIcon,ce=T.jumpNextIcon,be=T.selectComponentClass,ve=T.selectPrefixCls,ue=T.pageSizeOptions,se=this.state,q=se.current,me=se.pageSize,re=se.currentInputValue;if(F===!0&&W<=me)return null;var ie=O(void 0,this.state,this.props),we=[],le=null,$=null,J=null,te=null,De=null,Te=B&&B.goButton,ke=k?1:2,tt=q-1>0?q-1:0,ot=q+1=ke*2&&q!==1+2&&(we[0]=Object(f.cloneElement)(we[0],{className:"".concat(I,"-item-after-jump-prev")}),we.unshift(le)),ie-q>=ke*2&&q!==ie-2&&(we[we.length-1]=Object(f.cloneElement)(we[we.length-1],{className:"".concat(I,"-item-before-jump-next")}),we.push($)),ft!==1&&we.unshift(J),kt!==ie&&we.push(te)}var Qe=null;ne&&(Qe=_.a.createElement("li",{className:"".concat(I,"-total-text")},ne(W,[W===0?0:(q-1)*me+1,q*me>W?W:q*me])));var He=!this.hasPrev()||!ie,Ge=!this.hasNext()||!ie;return _.a.createElement("ul",Object(L.a)({className:r()(I,D,Object(g.a)({},"".concat(I,"-disabled"),z)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},gt),Qe,_.a.createElement("li",{title:G?K.prev_page:null,onClick:this.prev,tabIndex:He?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(I,"-prev"),Object(g.a)({},"".concat(I,"-disabled"),He)),"aria-disabled":He},this.renderPrev(tt)),we,_.a.createElement("li",{title:G?K.next_page:null,onClick:this.next,tabIndex:Ge?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(I,"-next"),Object(g.a)({},"".concat(I,"-disabled"),Ge)),"aria-disabled":Ge},this.renderNext(ot)),_.a.createElement(i,{disabled:z,locale:K,rootPrefixCls:I,selectComponentClass:be,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:q,pageSize:me,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Te}))}}],[{key:"getDerivedStateFromProps",value:function(m,T){var I={};if("current"in m&&(I.current=m.current,m.current!==T.current&&(I.currentInputValue=I.current)),"pageSize"in m&&m.pageSize!==T.pageSize){var D=T.current,N=O(m.pageSize,T,m);D=D>N?N:D,"current"in m||(I.current=D,I.currentInputValue=D),I.pageSize=m.pageSize}return I}}]),E}(_.a.Component);S.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:l,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:l,locale:h.a,style:{},itemRender:p,totalBoundaryShowSizeChanger:50};var v=S},"6Fuo":function(M,Y,o){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,Y,o){"use strict";var L=o("wCXF"),g=o("n6Qo");o.d(Y,"b",function(){return g.a});var A=o("IBYe"),b=o("6eGT"),y=o("hW8S");o.d(Y,"a",function(){return y.a}),Y.c=L.b},"6UM0":function(M,Y,o){var L,g;(function(){var A;(function(){"use strict";var y=[function(_,d,r){var u=r(1).Beautifier,t=r(5).Options;function a(n,i){var h=new u(n,i);return h.beautify()}_.exports=a,_.exports.defaultOptions=function(){return new t}},function(_,d,r){var u=r(2).Output,t=r(3).Token,a=r(4),n=r(5).Options,i=r(7).Tokenizer,h=r(7).line_starters,l=r(7).positionable_operators,s=r(7).TOKEN;function p(k,G){return G.indexOf(k)!==-1}function O(k){return k.replace(/^\s+/g,"")}function S(k){for(var G={},ne=0;nene&&(ne=k.line_indent_level));var fe={mode:G,parent:k,last_token:k?k.last_token:new t(s.START_BLOCK,""),last_word:k?k.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:ne,alignment:0,line_indent_level:k?k.line_indent_level:ne,start_line_index:this._output.get_line_number(),ternary_depth:0};return fe},K.prototype._reset=function(k){var G=k.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new u(this._options,G),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(T.BlockStatement);var ne=new i(k,this._options);return this._tokens=ne.tokenize(),k},K.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var k,G=this._reset(this._source_text),ne=this._options.eol;this._options.eol==="auto"&&(ne=`
`,G&&a.lineBreak.test(G||"")&&(ne=G.match(a.lineBreak)[0]));for(var fe=this._tokens.next();fe;)this.handle_token(fe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=fe,fe=this._tokens.next();return k=this._output.get_code(ne),k},K.prototype.handle_token=function(k,G){k.type===s.START_EXPR?this.handle_start_expr(k):k.type===s.END_EXPR?this.handle_end_expr(k):k.type===s.START_BLOCK?this.handle_start_block(k):k.type===s.END_BLOCK?this.handle_end_block(k):k.type===s.WORD?this.handle_word(k):k.type===s.RESERVED?this.handle_word(k):k.type===s.SEMICOLON?this.handle_semicolon(k):k.type===s.STRING?this.handle_string(k):k.type===s.EQUALS?this.handle_equals(k):k.type===s.OPERATOR?this.handle_operator(k):k.type===s.COMMA?this.handle_comma(k):k.type===s.BLOCK_COMMENT?this.handle_block_comment(k,G):k.type===s.COMMENT?this.handle_comment(k,G):k.type===s.DOT?this.handle_dot(k):k.type===s.EOF?this.handle_eof(k):k.type===s.UNKNOWN?this.handle_unknown(k,G):this.handle_unknown(k,G)},K.prototype.handle_whitespace_and_comments=function(k,G){var ne=k.newlines,fe=this._options.keep_array_indentation&&N(this._flags.mode);if(k.comments_before)for(var de=k.comments_before.next();de;)this.handle_whitespace_and_comments(de,G),this.handle_token(de,G),de=k.comments_before.next();if(fe)for(var xe=0;xe0,G);else if(this._options.max_preserve_newlines&&ne>this._options.max_preserve_newlines&&(ne=this._options.max_preserve_newlines),this._options.preserve_newlines&&ne>1){this.print_newline(!1,G);for(var Oe=1;Oe0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},K.prototype.set_mode=function(k){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,k),this._flags=this.create_flags(this._previous_flags,k),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},K.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===T.Statement&&I(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},K.prototype.start_of_object_property=function(){return this._flags.parent.mode===T.ObjectLiteral&&this._flags.mode===T.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},K.prototype.start_of_statement=function(k){var G=!1;return G=G||P(this._flags.last_token,["var","let","const"])&&k.type===s.WORD,G=G||v(this._flags.last_token,"do"),G=G||!(this._flags.parent.mode===T.ObjectLiteral&&this._flags.mode===T.Statement)&&P(this._flags.last_token,B)&&!k.newlines,G=G||v(this._flags.last_token,"else")&&!(v(k,"if")&&!k.comments_before),G=G||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===T.ForInitializer||this._previous_flags.mode===T.Conditional),G=G||this._flags.last_token.type===s.WORD&&this._flags.mode===T.BlockStatement&&!this._flags.in_case&&!(k.text==="--"||k.text==="++")&&this._last_last_text!=="function"&&k.type!==s.WORD&&k.type!==s.RESERVED,G=G||this._flags.mode===T.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),G?(this.set_mode(T.Statement),this.indent(),this.handle_whitespace_and_comments(k,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k,P(k,["do","for","if","while"])),!0):!1},K.prototype.handle_start_expr=function(k){this.start_of_statement(k)||this.handle_whitespace_and_comments(k);var G=T.Expression;if(k.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,h)&&(this._output.space_before_token=!0),this.print_token(k),this.set_mode(G),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}G=T.ArrayLiteral,N(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),p(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,G=T.ForInitializer):p(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,G=T.Conditional):p(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&k.whitespace_before===""?this._output.space_before_token=!1:(p(this._flags.last_token.text,h)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var ne=this._tokens.peek(-3);if(this._options.space_after_named_function&&ne){var fe=this._tokens.peek(-4);P(ne,["async","function"])||ne.text==="*"&&P(fe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===T.ObjectLiteral?(ne.text==="{"||ne.text===","||ne.text==="*"&&(fe.text==="{"||fe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(k);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&p(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(k,k.newlines),this.print_token(k),this.set_mode(G),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},K.prototype.handle_end_expr=function(k){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(k),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(k,k.text==="]"&&N(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(k),this.restore_mode(),I(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===T.Conditional&&(this._previous_flags.mode=T.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},K.prototype.handle_start_block=function(k){this.handle_whitespace_and_comments(k);var G=this._tokens.peek(),ne=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(T.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(T.BlockStatement):ne&&(p(ne.text,[":",","])&&p(G.type,[s.STRING,s.WORD,s.RESERVED])||p(G.text,["get","set","..."])&&p(ne.type,[s.WORD,s.RESERVED]))?p(this._last_last_text,["class","interface"])&&!p(ne.text,[":",","])?this.set_mode(T.BlockStatement):this.set_mode(T.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(T.BlockStatement):p(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||P(this._flags.last_token,["return","throw","import","default"])?this.set_mode(T.ObjectLiteral):this.set_mode(T.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var fe=!G.comments_before&&G.text==="}",de=fe&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var xe=0,Oe=null;this._flags.inline_frame=!0;do if(xe+=1,Oe=this._tokens.peek(xe-1),Oe.newlines){this._flags.inline_frame=!1;break}while(Oe.type!==s.EOF&&!(Oe.type===s.END_BLOCK&&Oe.opened===k))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&k.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(de||this._flags.last_token.type===s.EQUALS||P(this._flags.last_token,R)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(N(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(k),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(this._flags.last_token.type===s.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(k),this.indent(),!fe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},K.prototype.handle_end_block=function(k){for(this.handle_whitespace_and_comments(k);this._flags.mode===T.Statement;)this.restore_mode();var G=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!G?this._output.space_before_token=!0:this._options.brace_style==="expand"?G||this.print_newline():G||(N(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(k)},K.prototype.handle_word=function(k){if(k.type===s.RESERVED){if(p(k.text,["set","get"])&&this._flags.mode!==T.ObjectLiteral)k.type=s.WORD;else if(k.text==="import"&&p(this._tokens.peek().text,["(","."]))k.type=s.WORD;else if(p(k.text,["as","from"])&&!this._flags.import_block)k.type=s.WORD;else if(this._flags.mode===T.ObjectLiteral){var G=this._tokens.peek();G.text===":"&&(k.type=s.WORD)}}if(this.start_of_statement(k)?P(this._flags.last_token,["var","let","const"])&&k.type===s.WORD&&(this._flags.declaration_statement=!0):k.newlines&&!z(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!P(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(k),this.print_newline()):this.handle_whitespace_and_comments(k),this._flags.do_block&&!this._flags.do_while)if(v(k,"while")){this._output.space_before_token=!0,this.print_token(k),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&v(k,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===T.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&P(k,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(k),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k)),v(k,"function")){(p(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(p(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!k.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?P(this._flags.last_token,["get","set","new","export"])||P(this._flags.last_token,B)?this._output.space_before_token=!0:v(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(z(this._flags.mode)||N(this._flags.mode))||this.print_newline(),this.print_token(k),this._flags.last_word=k.text;return}var ne="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?ne="SPACE":P(k,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&k.newlines?ne="NEWLINE":(ne="SPACE",this._output.space_before_token=!0):ne="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===T.BlockStatement?ne="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&z(this._flags.mode)?ne="SPACE":this._flags.last_token.type===s.STRING?ne="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&p(this._last_last_text,["{",","]))?ne="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?ne="SPACE":ne="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,ne="NEWLINE"),P(k,h)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ne="SPACE":ne="NEWLINE"),P(k,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===T.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&k.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var fe=this._output.current_line;fe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ne==="NEWLINE"?P(this._flags.last_token,R)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&P(k,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!P(k,["var","let","const"]))&&this._flags.last_token.text!==":"&&(v(k,"if")&&v(k.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(k,h)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&N(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ne==="SPACE"&&(this._output.space_before_token=!0);k.previous&&(k.previous.type===s.WORD||k.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(k),this._flags.last_word=k.text,k.type===s.RESERVED&&(k.text==="do"?this._flags.do_block=!0:k.text==="if"?this._flags.if_block=!0:k.text==="import"?this._flags.import_block=!0:this._flags.import_block&&v(k,"from")&&(this._flags.import_block=!1))},K.prototype.handle_semicolon=function(k){this.start_of_statement(k)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(k);for(var G=this._tokens.peek();this._flags.mode===T.Statement&&!(this._flags.if_block&&v(G,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(k)},K.prototype.handle_string=function(k){k.text.startsWith("`")&&k.newlines===0&&k.whitespace_before===""&&(k.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(k)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(k),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k):k.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(k.previous.text==="]"||k.previous.text===")")&&k.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(k)},K.prototype.handle_equals=function(k){this.start_of_statement(k)||this.handle_whitespace_and_comments(k),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(k),this._output.space_before_token=!0},K.prototype.handle_comma=function(k){this.handle_whitespace_and_comments(k,!0),this.print_token(k),this._output.space_before_token=!0,this._flags.declaration_statement?(z(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(k)):this._flags.mode===T.ObjectLiteral||this._flags.mode===T.Statement&&this._flags.parent.mode===T.ObjectLiteral?(this._flags.mode===T.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(k)},K.prototype.handle_operator=function(k){var G=k.text==="*"&&(P(this._flags.last_token,["function","yield"])||p(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),ne=p(k.text,["-","+"])&&(p(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||p(this._flags.last_token.text,h)||this._flags.last_token.text===",");if(!this.start_of_statement(k)){var fe=!G;this.handle_whitespace_and_comments(k,fe)}if(k.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(k);return}if(k.text==="::"){this.print_token(k);return}if(this._flags.last_token.type===s.OPERATOR&&p(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(k),k.text===":"&&this._flags.in_case){this.print_token(k),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var de=!0,xe=!0,Oe=!1;if(k.text===":"?this._flags.ternary_depth===0?de=!1:(this._flags.ternary_depth-=1,Oe=!0):k.text==="?"&&(this._flags.ternary_depth+=1),!ne&&!G&&this._options.preserve_newlines&&p(k.text,l)){var ce=k.text===":",be=ce&&Oe,ve=ce&&!Oe;switch(this._options.operator_position){case C.before_newline:this._output.space_before_token=!ve,this.print_token(k),(!ce||be)&&this.allow_wrap_or_preserved_newline(k),this._output.space_before_token=!0;return;case C.after_newline:this._output.space_before_token=!0,!ce||be?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(k):this._output.space_before_token=!1,this.print_token(k),this._output.space_before_token=!0;return;case C.preserve_newline:ve||this.allow_wrap_or_preserved_newline(k),de=!(this._output.just_added_newline()||ve),this._output.space_before_token=de,this.print_token(k),this._output.space_before_token=!0;return}}if(G){this.allow_wrap_or_preserved_newline(k),de=!1;var ue=this._tokens.peek();xe=ue&&p(ue.type,[s.WORD,s.RESERVED])}else if(k.text==="...")this.allow_wrap_or_preserved_newline(k),de=this._flags.last_token.type===s.START_BLOCK,xe=!1;else if(p(k.text,["--","++","!","~"])||ne){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(k),de=!1,xe=!1,k.newlines&&(k.text==="--"||k.text==="++"||k.text==="~")){var se=P(this._flags.last_token,R)&&k.newlines;se&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(se,!0)}this._flags.last_token.text===";"&&z(this._flags.mode)&&(de=!0),this._flags.last_token.type===s.RESERVED?de=!0:this._flags.last_token.type===s.END_EXPR?de=!(this._flags.last_token.text==="]"&&(k.text==="--"||k.text==="++")):this._flags.last_token.type===s.OPERATOR&&(de=p(k.text,["--","-","++","+"])&&p(this._flags.last_token.text,["--","-","++","+"]),p(k.text,["+","-"])&&p(this._flags.last_token.text,["--","++"])&&(xe=!0)),(this._flags.mode===T.BlockStatement&&!this._flags.inline_frame||this._flags.mode===T.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||de,this.print_token(k),this._output.space_before_token=xe},K.prototype.handle_block_comment=function(k,G){if(this._output.raw){this._output.add_raw_token(k),k.directives&&k.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(k.directives){this.print_newline(!1,G),this.print_token(k),k.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(k.text)&&!k.newlines){this._output.space_before_token=!0,this.print_token(k),this._output.space_before_token=!0;return}else this.print_block_commment(k,G)},K.prototype.print_block_commment=function(k,G){var ne=D(k.text),fe,de=!1,xe=!1,Oe=k.whitespace_before,ce=Oe.length;if(this.print_newline(!1,G),this.print_token_line_indentation(k),this._output.add_token(ne[0]),this.print_newline(!1,G),ne.length>1){for(ne=ne.slice(1),de=F(ne,"*"),xe=W(ne,Oe),de&&(this._flags.alignment=1),fe=0;fe=0;a--)if(this.__items[a].match(t))return!0;return!1},d.prototype.set_indent=function(t,a){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},d.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},d.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},d.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},d.prototype.is_empty=function(){return this.__items.length===0},d.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},d.prototype.push=function(t){this.__items.push(t);var a=t.lastIndexOf(`
`);a!==-1?this.__character_count=t.length-a:this.__character_count+=t.length},d.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},d.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},d.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},d.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},d.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function r(t,a){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),a=a||"",t.indent_level>0&&(a=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}r.prototype.get_indent_size=function(t,a){var n=this.__base_string_length;return a=a||0,t<0&&(n=0),n+=t*this.__indent_size,n+=a,n},r.prototype.get_indent_string=function(t,a){var n=this.__base_string;return a=a||0,t<0&&(t=0,n=""),a+=t*this.__indent_size,this.__ensure_cache(a),n+=this.__cache[a],n},r.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,a=0,n="";this.__indent_size&&t>=this.__indent_size&&(a=Math.floor(t/this.__indent_size),t-=a*this.__indent_size,n=new Array(a+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)};function u(t,a){this.__indent_cache=new r(t,a),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new d(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}u.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},u.prototype.get_line_number=function(){return this.__lines.length},u.prototype.get_indent_string=function(t,a){return this.__indent_cache.get_indent_string(t,a)},u.prototype.get_indent_size=function(t,a){return this.__indent_cache.get_indent_size(t,a)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.prototype.get_code=function(t){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
`);return t!==`
`&&(n=n.replace(/[\n]/g,t)),n},u.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},u.prototype.set_indent=function(t,a){return t=t||0,a=a||0,this.next_line.set_indent(t,a),this.__lines.length>1?(this.current_line.set_indent(t,a),!0):(this.current_line.set_indent(),!1)},u.prototype.add_raw_token=function(t){for(var a=0;a1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},u.prototype.just_added_newline=function(){return this.current_line.is_empty()},u.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},u.prototype.ensure_empty_line_above=function(t,a){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(i.item(0).indexOf(t)!==0&&i.item(-1)!==a){this.__lines.splice(n+1,0,new d(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},_.exports.Output=u},function(_){function d(r,u,t,a){this.type=r,this.text=u,this.comments_before=null,this.newlines=t||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}_.exports.Token=d},function(_,d){var r="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",u="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",t="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-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105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",n="(?:\\\\u[0-9a-fA-F]{4}|["+r+t+"])",i="(?:\\\\u[0-9a-fA-F]{4}|["+u+t+a+"])*";d.identifier=new RegExp(n+i,"g"),d.identifierStart=new RegExp(n),d.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+u+t+a+"])+");var h=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;d.newline=/[\n\r\u2028\u2029]/,d.lineBreak=new RegExp(`\r
|`+d.newline.source),d.allLineBreaks=new RegExp(d.lineBreak.source,"g")},function(_,d,r){var u=r(6).Options,t=["before-newline","after-newline","preserve-newline"];function a(n){u.call(this,n,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var h=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var l=0;l>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),E=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";E=E.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),E="\\?\\.(?!\\d) "+E,E=E.replace(/ /g,"|");var C=new RegExp(E),m="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),T=m.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),I=new RegExp("^(?:"+T.join("|")+")$"),D,N=function(F,W){t.call(this,F,W),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var K=new h(this._input),B=new l(this._input).read_options(this._options);this.__patterns={template:B,identifier:B.starting_with(i.identifier).matching(i.identifierMatch),number:K.matching(S),punct:K.matching(C),comment:K.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:K.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:K.matching(//),include:K.starting_with(/#include/).until_after(i.lineBreak),shebang:K.starting_with(/#!/).until_after(i.lineBreak),xml:K.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:B.until(/['\\\n\r\u2028\u2029]/),double_quote:B.until(/["\\\n\r\u2028\u2029]/),template_text:B.until(/[`\\$]/),template_expression:B.until(/[`}\\]/)}};N.prototype=new t,N.prototype._is_comment=function(F){return F.type===p.COMMENT||F.type===p.BLOCK_COMMENT||F.type===p.UNKNOWN},N.prototype._is_opening=function(F){return F.type===p.START_BLOCK||F.type===p.START_EXPR},N.prototype._is_closing=function(F,W){return(F.type===p.END_BLOCK||F.type===p.END_EXPR)&&W&&(F.text==="]"&&W.text==="["||F.text===")"&&W.text==="("||F.text==="}"&&W.text==="{")},N.prototype._reset=function(){D=!1},N.prototype._get_next_token=function(F,W){var K=null;this._readWhitespace();var B=this._input.peek();return B===null?this._create_token(p.EOF,""):(K=K||this._read_non_javascript(B),K=K||this._read_string(B),K=K||this._read_word(F),K=K||this._read_singles(B),K=K||this._read_comment(B),K=K||this._read_regexp(B,F),K=K||this._read_xml(B,F),K=K||this._read_punctuation(),K=K||this._create_token(p.UNKNOWN,this._input.next()),K)},N.prototype._read_word=function(F){var W;if(W=this.__patterns.identifier.read(),W!=="")return W=W.replace(i.allLineBreaks,`
`),!(F.type===p.DOT||F.type===p.RESERVED&&(F.text==="set"||F.text==="get"))&&I.test(W)?(W==="in"||W==="of")&&(F.type===p.WORD||F.type===p.STRING)?this._create_token(p.OPERATOR,W):this._create_token(p.RESERVED,W):this._create_token(p.WORD,W);if(W=this.__patterns.number.read(),W!=="")return this._create_token(p.WORD,W)},N.prototype._read_singles=function(F){var W=null;return F==="("||F==="["?W=this._create_token(p.START_EXPR,F):F===")"||F==="]"?W=this._create_token(p.END_EXPR,F):F==="{"?W=this._create_token(p.START_BLOCK,F):F==="}"?W=this._create_token(p.END_BLOCK,F):F===";"?W=this._create_token(p.SEMICOLON,F):F==="."&&P.test(this._input.peek(1))?W=this._create_token(p.DOT,F):F===","&&(W=this._create_token(p.COMMA,F)),W&&this._input.next(),W},N.prototype._read_punctuation=function(){var F=this.__patterns.punct.read();if(F!=="")return F==="="?this._create_token(p.EQUALS,F):F==="?."?this._create_token(p.DOT,F):this._create_token(p.OPERATOR,F)},N.prototype._read_non_javascript=function(F){var W="";if(F==="#"){if(this._is_first_token()&&(W=this.__patterns.shebang.read(),W))return this._create_token(p.UNKNOWN,W.trim()+`
`);if(W=this.__patterns.include.read(),W)return this._create_token(p.UNKNOWN,W.trim()+`
`);F=this._input.next();var K="#";if(this._input.hasNext()&&this._input.testChar(v)){do F=this._input.next(),K+=F;while(this._input.hasNext()&&F!=="#"&&F!=="=");return F==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(K+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(K+="{}",this._input.next(),this._input.next())),this._create_token(p.WORD,K)}this._input.back()}else if(F==="<"&&this._is_first_token()){if(W=this.__patterns.html_comment_start.read(),W){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)W+=this._input.next();return D=!0,this._create_token(p.COMMENT,W)}}else if(D&&F==="-"&&(W=this.__patterns.html_comment_end.read(),W))return D=!1,this._create_token(p.COMMENT,W);return null},N.prototype._read_comment=function(F){var W=null;if(F==="/"){var K="";if(this._input.peek(1)==="*"){K=this.__patterns.block_comment.read();var B=O.get_directives(K);B&&B.ignore==="start"&&(K+=O.readIgnored(this._input)),K=K.replace(i.allLineBreaks,`
`),W=this._create_token(p.BLOCK_COMMENT,K),W.directives=B}else this._input.peek(1)==="/"&&(K=this.__patterns.comment.read(),W=this._create_token(p.COMMENT,K))}return W},N.prototype._read_string=function(F){if(F==="`"||F==="'"||F==='"'){var W=this._input.next();return this.has_char_escapes=!1,F==="`"?W+=this._read_string_recursive("`",!0,"${"):W+=this._read_string_recursive(F),this.has_char_escapes&&this._options.unescape_strings&&(W=z(W)),this._input.peek()===F&&(W+=this._input.next()),W=W.replace(i.allLineBreaks,`
`),this._create_token(p.STRING,W)}return null},N.prototype._allow_regexp_or_xml=function(F){return F.type===p.RESERVED&&s(F.text,["return","case","throw","else","do","typeof","yield"])||F.type===p.END_EXPR&&F.text===")"&&F.opened.previous.type===p.RESERVED&&s(F.opened.previous.text,["if","while","for"])||s(F.type,[p.COMMENT,p.START_EXPR,p.START_BLOCK,p.START,p.END_BLOCK,p.OPERATOR,p.EQUALS,p.EOF,p.SEMICOLON,p.COMMA])},N.prototype._read_regexp=function(F,W){if(F==="/"&&this._allow_regexp_or_xml(W)){for(var K=this._input.next(),B=!1,k=!1;this._input.hasNext()&&(B||k||this._input.peek()!==F)&&!this._input.testChar(i.newline);)K+=this._input.peek(),B?B=!1:(B=this._input.peek()==="\\",this._input.peek()==="["?k=!0:this._input.peek()==="]"&&(k=!1)),this._input.next();return this._input.peek()===F&&(K+=this._input.next(),K+=this._input.read(i.identifier)),this._create_token(p.STRING,K)}return null},N.prototype._read_xml=function(F,W){if(this._options.e4x&&F==="<"&&this._allow_regexp_or_xml(W)){var K="",B=this.__patterns.xml.read_match();if(B){for(var k=B[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),G=k.indexOf("{")===0,ne=0;B;){var fe=!!B[1],de=B[2],xe=!!B[B.length-1]||de.slice(0,8)==="![CDATA[";if(!xe&&(de===k||G&&de.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(fe?--ne:++ne),K+=B[0],ne<=0)break;B=this.__patterns.xml.read_match()}return B||(K+=this._input.match(/[\s\S]*/g)[0]),K=K.replace(i.allLineBreaks,`
`),this._create_token(p.STRING,K)}}return null};function z(F){for(var W="",K=0,B=new u(F),k=null;B.hasNext();)if(k=B.match(/([\s]|[^\\]|\\\\)+/g),k&&(W+=k[0]),B.peek()==="\\"){if(B.next(),B.peek()==="x")k=B.match(/x([0-9A-Fa-f]{2})/g);else if(B.peek()==="u")k=B.match(/u([0-9A-Fa-f]{4})/g);else{W+="\\",B.hasNext()&&(W+=B.next());continue}if(!k)return F;if(K=parseInt(k[1],16),K>126&&K<=255&&k[0].indexOf("x")===0)return F;if(K>=0&&K<32){W+="\\"+k[0];continue}else K===34||K===39||K===92?W+="\\"+String.fromCharCode(K):W+=String.fromCharCode(K)}return W}N.prototype._read_string_recursive=function(F,W,K){var B,k;F==="'"?k=this.__patterns.single_quote:F==='"'?k=this.__patterns.double_quote:F==="`"?k=this.__patterns.template_text:F==="}"&&(k=this.__patterns.template_expression);for(var G=k.read(),ne="";this._input.hasNext();){if(ne=this._input.next(),ne===F||!W&&i.newline.test(ne)){this._input.back();break}else ne==="\\"&&this._input.hasNext()?(B=this._input.peek(),B==="x"||B==="u"?this.has_char_escapes=!0:B==="\r"&&this._input.peek(1)===`
`&&this._input.next(),ne+=this._input.next()):K&&(K==="${"&&ne==="$"&&this._input.peek()==="{"&&(ne+=this._input.next()),K===ne&&(F==="`"?ne+=this._read_string_recursive("}",W,"`"):ne+=this._read_string_recursive("`",W,"${"),this._input.hasNext()&&(ne+=this._input.next())));ne+=k.read(),G+=ne}return G},_.exports.Tokenizer=N,_.exports.TOKEN=p,_.exports.positionable_operators=R.slice(),_.exports.line_starters=m.slice()},function(_){var d=RegExp.prototype.hasOwnProperty("sticky");function r(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position=0&&u=0&&t=u.length&&this.__input.substring(t-u.length,t).toLowerCase()===u},_.exports.InputScanner=r},function(_,d,r){var u=r(8).InputScanner,t=r(3).Token,a=r(10).TokenStream,n=r(11).WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},h=function(l,s){this._input=new u(l),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new n(this._input)};h.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var l,s=new t(i.START,""),p=null,O=[],S=new a;s.type!==i.EOF;){for(l=this._get_next_token(s,p);this._is_comment(l);)S.add(l),l=this._get_next_token(s,p);S.isEmpty()||(l.comments_before=S,S=new a),l.parent=p,this._is_opening(l)?(O.push(p),p=l):p&&this._is_closing(l,p)&&(l.opened=p,p.closed=l,p=O.pop(),l.parent=p),l.previous=s,s.next=l,this.__tokens.add(l),s=l}return this.__tokens},h.prototype._is_first_token=function(){return this.__tokens.isEmpty()},h.prototype._reset=function(){},h.prototype._get_next_token=function(l,s){this._readWhitespace();var p=this._input.read(/.+/g);return p?this._create_token(i.RAW,p):this._create_token(i.EOF,"")},h.prototype._is_comment=function(l){return!1},h.prototype._is_opening=function(l){return!1},h.prototype._is_closing=function(l,s){return!1},h.prototype._create_token=function(l,s){var p=new t(l,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return p},h.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},_.exports.Tokenizer=h,_.exports.TOKEN=i},function(_){function d(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}d.prototype.restart=function(){this.__position=0},d.prototype.isEmpty=function(){return this.__tokens_length===0},d.prototype.hasNext=function(){return this.__position=0&&r/),erb:h.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:h.starting_with(/{%/).until_after(/%}/),django_value:h.starting_with(/{{/).until_after(/}}/),django_comment:h.starting_with(/{#/).until_after(/#}/),smarty:h.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:h.starting_with(/{\*/).until_after(/\*}/),smarty_literal:h.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new u,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(n){var i=this._create();return i._disabled[n]=!0,i._update(),i},a.prototype.read_options=function(n){var i=this._create();for(var h in t)i._disabled[h]=n.templating.indexOf(h)===-1;return i._update(),i},a.prototype.exclude=function(n){var i=this._create();return i._excluded[n]=!0,i._update(),i},a.prototype.read=function(){var n="";this._match_pattern?n=this._input.read(this._starting_pattern):n=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),n+=i,i=this._read_template();return this._until_after&&(n+=this._input.readUntilAfter(this._until_pattern)),n},a.prototype.__set_templated_pattern=function(){var n=[];this._disabled.php||n.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||n.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||n.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(n.push(this.__patterns.django._starting_pattern.source),n.push(this.__patterns.django_value._starting_pattern.source),n.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||n.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&n.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+n.join("|")+")")},a.prototype._read_template=function(){var n="",i=this._input.peek();if(i==="<"){var h=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&h==="?"&&(n=n||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&h==="%"&&(n=n||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(n=n||this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars_unescaped.read(),n=n||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(n=n||this.__patterns.django_value.read()),this._excluded.django||(n=n||this.__patterns.django_comment.read(),n=n||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(n=n||this.__patterns.smarty_comment.read(),n=n||this.__patterns.smarty_literal.read(),n=n||this.__patterns.smarty.read()));return n},_.exports.TemplatablePattern=a}],x={};function w(_){var d=x[_];if(d!==void 0)return d.exports;var r=x[_]={exports:{}};return y[_](r,r.exports,w),r.exports}var f=w(0);A=f})();var b=A;!(L=[],g=function(){return{js_beautify:b}}.apply(Y,L),g!==void 0&&(M.exports=g))})()},"6eGT":function(M,Y,o){"use strict";function L(g){return null}Y.a=L},"6nfa":function(M,Y,o){M.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"7Cbv":function(M,Y,o){"use strict";var L=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(!L)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return L(g)}var b=/^(?:[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 y(t){return typeof t=="string"&&b.test(t)}for(var x=y,w=[],f=0;f<256;++f)w.push((f+256).toString(16).substr(1));function _(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(w[t[a+0]]+w[t[a+1]]+w[t[a+2]]+w[t[a+3]]+"-"+w[t[a+4]]+w[t[a+5]]+"-"+w[t[a+6]]+w[t[a+7]]+"-"+w[t[a+8]]+w[t[a+9]]+"-"+w[t[a+10]]+w[t[a+11]]+w[t[a+12]]+w[t[a+13]]+w[t[a+14]]+w[t[a+15]]).toLowerCase();if(!x(n))throw TypeError("Stringified UUID is invalid");return n}var d=_;function r(t,a,n){t=t||{};var i=t.random||(t.rng||A)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,a){n=n||0;for(var h=0;h<16;++h)a[n+h]=i[h];return a}return d(i)}var u=Y.a=r},"7ZXX":function(M,Y,o){M.exports=o.p+"static/err.6e7c5817.png"},"7ahc":function(M,Y,o){"use strict";o.d(Y,"a",function(){return O});var L=o("k1fw"),g=o("0Owb"),A=o("+L6B"),b=o("2/Rp"),y=o("y8nQ"),x=o("Vl3Y"),w=o("tJVT"),f=o("OaEy"),_=o("2fM7"),d=o("q1tI"),r=o.n(d),u=o("VrN/"),t=o.n(u),a=o("p77/"),n=o.n(a),i=o("c5Ni"),h=o.n(i),l=_.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},p={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"]};Y.b=function(S){var v=S.callback,P=S.onCancel,R=Object(d.useState)("python"),E=Object(w.a)(R,2),C=E[0],m=E[1];function T(D){m(p[D][1])}function I(D){v(D)}return r.a.createElement(x.a,Object(g.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:I}),r.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},r.a.createElement(_.a,{onChange:T},Object.keys(p).map(function(D){return r.a.createElement(l,{key:D,value:D},p[D][0])}))),r.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},r.a.createElement(O,{mode:C})),r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(b.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(b.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function O(S){var v=S.value,P=S.onChange,R=S.mode,E=S.options,C=E===void 0?{}:E,m=Object(d.useRef)(),T=Object(d.useState)(),I=Object(w.a)(T,2),D=I[0],N=I[1];return Object(d.useEffect)(function(){if(D){function z(F){var W=F.getValue();P&&P(W)}return D.on("change",z),function(){D.off("change",z)}}},[D,P]),Object(d.useEffect)(function(){D&&D.setOption("mode",R)},[D,R]),Object(d.useEffect)(function(){D&&((v!==D.getValue()||v==="")&&setTimeout(function(){D.setValue(v||" ")},300))},[D,v]),Object(d.useEffect)(function(){if(m.current&&!D){var z=t.a.fromTextArea(m.current,Object(L.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},C));N(z)}},[m.current,D]),r.a.createElement("div",{className:"my-codemirror-container"},r.a.createElement("textarea",{ref:m}))}},"7ixt":function(M,Y,o){"use strict";o.d(Y,"a",function(){return A});var L={adjustX:1,adjustY:1},g=[0,0],A={left:{points:["cr","cl"],overflow:L,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:L,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:L,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:L,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:L,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:L,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:L,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:L,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:L,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:L,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:L,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:L,offset:[-4,0],targetOffset:g}},b=A},"7v3h":function(M,Y,o){M.exports=o.p+"static/empty2.dd73f390.png"},"8/bI":function(M,Y,o){M.exports=o.p+"static/empty.8918e228.png"},"815F":function(M,Y,o){"use strict";o.d(Y,"e",function(){return w}),o.d(Y,"c",function(){return _}),o.d(Y,"d",function(){return d}),o.d(Y,"a",function(){return u}),o.d(Y,"f",function(){return t}),o.d(Y,"b",function(){return a});var L=o("KQm4"),g=o("VTBJ"),A=o("Ff2n"),b=o("Zm9Q"),y=o("Kwbf"),x=o("OZM5");function w(n,i){return n!=null?n:i}function f(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=new Map;function h(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(l||[]).forEach(function(p){var O=p.key,S=p.children;Object(y.a)(O!=null,"Tree node must have a certain key: [".concat(s).concat(O,"]"));var v=String(O);Object(y.a)(!i.has(v)||O===null||O===void 0,"Same 'key' exist in the Tree: ".concat(v)),i.set(v,!0),h(S,"".concat(s).concat(v," > "))})}h(n)}function _(n){function i(h){var l=Object(b.a)(h);return l.map(function(s){if(!Object(x.i)(s))return Object(y.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var p=s.key,O=s.props,S=O.children,v=Object(A.a)(O,["children"]),P=Object(g.a)({key:p},v),R=i(S);return R.length&&(P.children=R),P}).filter(function(s){return s})}return i(n)}function d(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=new Set(i===!0?[]:i),l=[];function s(p){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p.map(function(S,v){var P=Object(x.h)(O?O.pos:"0",v),R=w(S.key,P),E=Object(g.a)(Object(g.a)({},S),{},{parent:O,pos:P,children:null,data:S,isStart:[].concat(Object(L.a)(O?O.isStart:[]),[v===0]),isEnd:[].concat(Object(L.a)(O?O.isEnd:[]),[v===p.length-1])});return l.push(E),i===!0||h.has(R)?E.children=s(S.children||[],E):E.children=[],E})}return s(n),l}function r(n,i,h){var l;h?typeof h=="string"?l=function(O){return O[h]}:typeof h=="function"&&(l=function(O){return h(O)}):l=function(O,S){return w(O.key,S)};function s(p,O,S){var v=p?p.children:n,P=p?Object(x.h)(S.pos,O):"0";if(p){var R=l(p,P),E={node:p,index:O,pos:P,key:R,parentPos:S.node?S.pos:null,level:S.level+1};i(E)}v&&v.forEach(function(C,m){s(C,m,{node:p,pos:P,level:S?S.level+1:-1})})}s(null)}function u(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=i.initWrapper,l=i.processEntity,s=i.onProcessFinished,p=arguments.length>2?arguments[2]:void 0,O={},S={},v={posEntities:O,keyEntities:S};return h&&(v=h(v)||v),r(n,function(P){var R=P.node,E=P.index,C=P.pos,m=P.key,T=P.parentPos,I=P.level,D={node:R,index:E,key:m,pos:C,level:I},N=w(m,C);O[C]=D,S[N]=D,D.parent=O[T],D.parent&&(D.parent.children=D.parent.children||[],D.parent.children.push(D)),l&&l(D,v)},p),s&&s(v),v}function t(n,i){var h=i.expandedKeys,l=i.selectedKeys,s=i.loadedKeys,p=i.loadingKeys,O=i.checkedKeys,S=i.halfCheckedKeys,v=i.dragOverNodeKey,P=i.dropPosition,R=i.keyEntities,E=R[n],C={eventKey:n,expanded:h.indexOf(n)!==-1,selected:l.indexOf(n)!==-1,loaded:s.indexOf(n)!==-1,loading:p.indexOf(n)!==-1,checked:O.indexOf(n)!==-1,halfChecked:S.indexOf(n)!==-1,pos:String(E?E.pos:""),dragOver:v===n&&P===0,dragOverGapTop:v===n&&P===-1,dragOverGapBottom:v===n&&P===1};return C}function a(n){var i=n.data,h=n.expanded,l=n.selected,s=n.checked,p=n.loaded,O=n.loading,S=n.halfChecked,v=n.dragOver,P=n.dragOverGapTop,R=n.dragOverGapBottom,E=n.pos,C=n.active,m=Object(g.a)(Object(g.a)({},i),{},{expanded:h,selected:l,checked:s,loaded:p,loading:O,halfChecked:S,dragOver:v,dragOverGapTop:P,dragOverGapBottom:R,pos:E,active:C});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Object(y.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),m}},"8EBN":function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){"use strict";L.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&&b.substring(w+1,b.length);if(f)return L.findModeByExtension(f)},L.findModeByName=function(b){b=b.toLowerCase();for(var y=0;y=B&&FG?"true":"false","aria-posinset":G+1,"aria-setsize":ne,tabIndex:W?-1:0},f.a.createElement("div",{className:"".concat(K,"-first")},de),f.a.createElement("div",{className:"".concat(K,"-second")},de)));return k&&(xe=k(xe,this.props)),xe}}]),T}(f.a.Component);function s(C,m){var T=Object.keys(C);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(C);m&&(I=I.filter(function(D){return Object.getOwnPropertyDescriptor(C,D).enumerable})),T.push.apply(T,I)}return T}function p(C){for(var m=1;m0&&!ne||F===u.a.RIGHT&&fe>0&&ne?(B?fe-=.5:fe-=1,D.changeValue(fe),z.preventDefault()):F===u.a.LEFT&&fene/2||!K&&N-G=oe.length?Ce.slice(oe.length):Ce}).join(`
`)}var h=[],l=[""],s=new a.a.Renderer,p=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function O(){h.length=0,l=[""]}var S={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function v(pe,V,Z,oe){if(V>=pe.length||pe[V].level<=Z)return V;var Ce=pe[V];oe.push("- "+Ce.text+""),V++;var he=[];return V=v(pe,V,Ce.level,he),he.length>0&&(oe.push("
"),he.forEach(function(ct){oe.push(ct)}),oe.push("
")),oe.push(" "),V=v(pe,V,Z,oe),V}function P(){return v(h,0,0,l),l.push("
"),l.join("")}var R={heading:function(V){var Z=p.exec(V);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(V){var Z=this.rules.block.fences.exec(V);if(Z){var oe=Z[0],Ce=i(oe,Z[3]||""),he=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf(he)>=0){var ct=m(),rn=Ce;Ce=ct,T[ct]={type:"block",expression:rn}}return{type:"code",raw:oe,lang:he,text:Ce}}}},E=/(?:\${2})([^\n`]+?)(?:\${2})/gi,C=0,m=function(){return"__special_katext_id_".concat(C++,"__")},T={};function I(){return T}function D(){C=0,T={}}function N(pe){return pe=pe.replace(E,function(V,Z){var oe=m();return T[oe]={type:"inline",expression:Z},oe}),pe}var z=s.listitem;s.listitem=function(pe){return z(N(pe))};var F=s.paragraph;s.paragraph=function(pe){return F(N(pe))};var W=s.tablecell;s.tablecell=function(pe,V){return W(N(pe),V)},s.code=function(pe,V,Z){var oe=(V||"").match(/\S*/)[0];return oe?["latex","katex","math"].indexOf(oe)>=0?"".concat(pe,"
"):'
').concat(Z?pe:Object(n.escape)(pe,!0),`
`):''+(Z?pe:Object(n.escape)(pe,!0))+"
"},s.heading=function(pe,V,Z){var oe=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return h.push({anchor:oe,level:V,text:pe}),"'+pe+""},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:R,renderer:s});var K=a.a,B=o("SJMd"),k=o("ulZh"),G=o.n(k),ne=o("m3rI"),fe=o("Oy/b"),de=o("p5ED"),xe=o("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 Oe=function(pe,V){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,oe){Z.__proto__=oe}||function(Z,oe){for(var Ce in oe)Object.prototype.hasOwnProperty.call(oe,Ce)&&(Z[Ce]=oe[Ce])})(pe,V)};function ce(pe,V){function Z(){this.constructor=pe}Oe(pe,V),pe.prototype=V===null?Object.create(V):(Z.prototype=V.prototype,new Z)}function be(pe,V,Z,oe){return new(Z||(Z=Promise))(function(Ce,he){function ct(Vn){try{In(oe.next(Vn))}catch(tn){he(tn)}}function rn(Vn){try{In(oe.throw(Vn))}catch(tn){he(tn)}}function In(Vn){var tn;Vn.done?Ce(Vn.value):(tn=Vn.value,tn instanceof Z?tn:new Z(function(En){En(tn)})).then(ct,rn)}In((oe=oe.apply(pe,V||[])).next())})}function ve(pe,V){var Z,oe,Ce,he,ct={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return he={next:rn(0),throw:rn(1),return:rn(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function rn(In){return function(Vn){return function(tn){if(Z)throw new TypeError("Generator is already executing.");for(;ct;)try{if(Z=1,oe&&(Ce=2&tn[0]?oe.return:tn[0]?oe.throw||((Ce=oe.return)&&Ce.call(oe),0):oe.next)&&!(Ce=Ce.call(oe,tn[1])).done)return Ce;switch(oe=0,Ce&&(tn=[2&tn[0],Ce.value]),tn[0]){case 0:case 1:Ce=tn;break;case 4:return ct.label++,{value:tn[1],done:!1};case 5:ct.label++,oe=tn[1],tn=[0];continue;case 7:tn=ct.ops.pop(),ct.trys.pop();continue;default:if(!(Ce=ct.trys,(Ce=Ce.length>0&&Ce[Ce.length-1])||tn[0]!==6&&tn[0]!==2)){ct=0;continue}if(tn[0]===3&&(!Ce||tn[1]>Ce[0]&&tn[1]',"select"),this.addActionButton(oe,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'',"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(he){var ct=document.createElement("div");ct.className=""+Z.toolbarButtonStyleClass.name,ct.setAttribute("data-type-name",he.typeName),ct.innerHTML=he.icon,ct.addEventListener("click",function(){Z.markerToolbarButtonClicked(ct,he)}),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 Ce=document.createElement("div");Ce.className=this.toolbarBlockStyleClass.name,Ce.style.whiteSpace="nowrap",Ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ce),this.addActionButton(Ce,'',"render"),this.addActionButton(Ce,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},pe.prototype.addButtonClickListener=function(V){this.buttonClickListeners.push(V)},pe.prototype.removeButtonClickListener=function(V){this.buttonClickListeners.indexOf(V)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(V),1)},pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},pe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var V=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Z=0;Z0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",Z)}),this.markerButtonOverflowBlock.style.display="none"},pe.prototype.actionToolbarButtonClicked=function(V,Z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",Z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},pe.prototype.setActiveButton=function(V){this.resetButtonStyles(),V.className=V.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),V.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},pe.prototype.setActiveMarkerButton=function(V){var Z=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===V});Z&&this.setActiveButton(Z)},pe.prototype.setCurrentMarker=function(V){var Z=this;this.currentMarker=V,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){Z.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},pe}(),J=function(){function pe(V,Z,oe,Ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=V,this.displayMode=Z,this.uiStyleSettings=oe,this.styles=Ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return pe.prototype.addStyles=function(){var V;this.toolboxStyleClass=this.styles.addClass(new le("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 le("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new le("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new le("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new le("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 le("toolbox-panel-row_colors",`
background-color: `+((V=this.uiStyleSettings.toolboxBackgroundColor)!==null&&V!==void 0?V:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new le("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 le("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new we("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new we("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},pe.prototype.show=function(V){var Z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=V,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},pe.prototype.setPanelButtons=function(V){var Z,oe,Ce=this;this.panels=V,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+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(he){var ct;he.uiStyleSettings=Ce.uiStyleSettings;var rn=document.createElement("div");rn.className=Ce.toolboxButtonStyleClass.name+" "+((ct=Ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ct!==void 0?ct:Ce.toolboxButtonStyleColorsClass.name),rn.innerHTML=he.icon,rn.title=he.title,rn.addEventListener("click",function(){Ce.panelButtonClick(he)}),Ce.panelButtons.push(rn),Ce.buttonRow.appendChild(rn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},pe.prototype.panelButtonClick=function(V){var Z=this,oe=-1;if(V!==this.activePanel){oe=this.panels.indexOf(V),this.panelRow.innerHTML="";var Ce=V.getUi();Ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ce),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=V}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(he,ct){var rn,In;he.className=Z.toolboxButtonStyleClass.name+" "+(ct===oe?""+((rn=Z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&rn!==void 0?rn:Z.toolboxActiveButtonStyleColorsClass.name):""+((In=Z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&In!==void 0?In:Z.toolboxButtonStyleColorsClass.name))})},pe}(),te=function(pe,V){this.title=pe,this.icon=V},De=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'')||this;return ct.colors=[],ct.addTransparent=!1,ct.colorBoxes=[],ct.colors=oe,ct.currentColor=Ce,ct.setCurrentColor=ct.setCurrentColor.bind(ct),ct.getColorBox=ct.getColorBox.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(Ce){var he=Z.getColorBox(Ce);oe.appendChild(he),Z.colorBoxes.push(he)}),oe},V.prototype.getColorBox=function(Z){var oe=this,Ce=this.uiStyleSettings.toolbarHeight/4,he=this.uiStyleSettings.toolbarHeight-Ce,ct=document.createElement("div");ct.style.display="inline-block",ct.style.boxSizing="content-box",ct.style.width=he-2+"px",ct.style.height=he-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=(he+2)/2+"px",ct.style.borderColor=Z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ct.addEventListener("click",function(){oe.setCurrentColor(Z,ct)});var rn=document.createElement("div");return rn.style.display="inline-block",rn.style.width=he-2+"px",rn.style.height=he-2+"px",rn.style.backgroundColor=Z,rn.style.borderRadius=he/2+"px",Z==="transparent"&&(rn.style.fill=this.uiStyleSettings.toolboxAccentColor,rn.innerHTML=``),ct.appendChild(rn),ct},V.prototype.setCurrentColor=function(Z,oe){var Ce=this;this.currentColor=Z,this.colorBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Z)},V}(te),Te=function(){function pe(V,Z,oe){this._state="new",this._isSelected=!1,this._container=V,this._overlayContainer=Z,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(pe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(V){return!1},Object.defineProperty(pe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),pe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},pe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},pe.prototype.pointerDown=function(V,Z){},pe.prototype.dblClick=function(V,Z){},pe.prototype.manipulate=function(V){},pe.prototype.pointerUp=function(V){this.stateChanged()},pe.prototype.dispose=function(){},pe.prototype.addMarkerVisualToContainer=function(V){this.container.childNodes.length>0?this.container.insertBefore(V,this.container.childNodes[0]):this.container.appendChild(V)},pe.prototype.getState=function(){return{typeName:pe.typeName,state:this.state,notes:this.notes}},pe.prototype.restoreState=function(V){this._state=V.state,this.notes=V.notes},pe.prototype.scale=function(V,Z){},pe.prototype.colorChanged=function(V){this.onColorChanged&&this.onColorChanged(V),this.stateChanged()},pe.prototype.fillColorChanged=function(V){this.onFillColorChanged&&this.onFillColorChanged(V),this.stateChanged()},pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var V=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),V.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(V)&&this.onStateChanged(this)}},pe.typeName="MarkerBase",pe}(),ke=function(){function pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return pe.prototype.findGripByVisual=function(V){return this.topLeft.ownsTarget(V)?this.topLeft:this.topCenter.ownsTarget(V)?this.topCenter:this.topRight.ownsTarget(V)?this.topRight:this.centerLeft.ownsTarget(V)?this.centerLeft:this.centerRight.ownsTarget(V)?this.centerRight:this.bottomLeft.ownsTarget(V)?this.bottomLeft:this.bottomCenter.ownsTarget(V)?this.bottomCenter:this.bottomRight.ownsTarget(V)?this.bottomRight:void 0},pe}(),tt=function(){function pe(){this.GRIP_SIZE=10,this.visual=se.createGroup(),this.visual.appendChild(se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(se.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(V){return V===this.visual||V===this.visual.childNodes[0]||V===this.visual.childNodes[1]},pe}(),ot=function(){function pe(){}return pe.toITransformMatrix=function(V){return{a:V.a,b:V.b,c:V.c,d:V.d,e:V.e,f:V.f}},pe.toSVGMatrix=function(V,Z){return V.a=Z.a,V.b=Z.b,V.c=Z.c,V.d=Z.d,V.e=Z.e,V.f=Z.f,V},pe}(),gt=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.left=0,he.top=0,he.width=0,he.height=0,he.defaultSize={x:50,y:20},he.offsetX=0,he.offsetY=0,he.rotationAngle=0,he.CB_DISTANCE=10,he._suppressMarkerCreateEvent=!1,he.container.transform.baseVal.appendItem(se.createTransform()),he.setupControlBox(),he}return ce(V,pe),Object.defineProperty(V.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"visual",{get:function(){return this._visual},set:function(Z){this._visual=Z;var oe=se.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),V.prototype.ownsTarget=function(Z){return!!pe.prototype.ownsTarget.call(this,Z)||!!(this.controlGrips.findGripByVisual(Z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Z))},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),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 Ce=this.unrotatePoint(Z);if(this.manipulationStartX=Ce.x,this.manipulationStartY=Ce.y,this.offsetX=Ce.x-this.left,this.offsetY=Ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var he=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=he.x-this.width/2,this.top=he.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"},V.prototype.pointerUp=function(Z){var oe=this.state;pe.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",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},V.prototype.moveVisual=function(Z){this.visual.style.transform="translate("+Z.x+"px, "+Z.y+"px)"},V.prototype.manipulate=function(Z){var oe=this.unrotatePoint(Z);this.state==="creating"?this.resize(Z):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(Z)},V.prototype.resize=function(Z){var oe=this.manipulationStartLeft,Ce=this.manipulationStartWidth,he=this.manipulationStartTop,ct=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+Z.x-this.manipulationStartX,Ce=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ce=this.manipulationStartWidth+Z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:he=this.manipulationStartTop+Z.y-this.manipulationStartY,ct=this.manipulationStartHeight+this.manipulationStartTop-he;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ct=this.manipulationStartHeight+Z.y-this.manipulationStartY}Ce>=0?(this.left=oe,this.width=Ce):(this.left=oe+Ce,this.width=-Ce),ct>=0?(this.top=he,this.height=ct):(this.top=he+ct,this.height=-ct),this.setSize()},V.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},V.prototype.rotate=function(Z){if(Math.abs(Z.x-this.centerX)>.1){var oe=Math.sign(Z.x-this.centerX);this.rotationAngle=180*Math.atan((Z.y-this.centerY)/(Z.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},V.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)},V.prototype.rotatePoint=function(Z){if(this.rotationAngle===0)return Z;var oe=this.container.getCTM(),Ce=se.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(oe)).x,y:Ce.y}},V.prototype.unrotatePoint=function(Z){if(this.rotationAngle===0)return Z;var oe=this.container.getCTM();oe=oe.inverse();var Ce=se.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(oe)).x,y:Ce.y}},V.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},V.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},V.prototype.setupControlBox=function(){this.controlBox=se.createGroup();var Z=se.createTransform();Z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Z),this.container.appendChild(this.controlBox),this.controlRect=se.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=se.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 ke,this.addControlGrips(),this.controlBox.style.display="none"},V.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()},V.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()},V.prototype.createGrip=function(){var Z=new tt;return Z.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(Z.visual),Z},V.prototype.positionGrips=function(){var Z=this.controlGrips.topLeft.GRIP_SIZE,oe=-Z/2,Ce=oe,he=(this.width+this.CB_DISTANCE)/2-Z/2,ct=(this.height+this.CB_DISTANCE)/2-Z/2,rn=this.height+this.CB_DISTANCE-Z/2,In=this.width+this.CB_DISTANCE-Z/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,Ce),this.positionGrip(this.controlGrips.topCenter.visual,he,Ce),this.positionGrip(this.controlGrips.topRight.visual,In,Ce),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ct),this.positionGrip(this.controlGrips.centerRight.visual,In,ct),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,rn),this.positionGrip(this.controlGrips.bottomCenter.visual,he,rn),this.positionGrip(this.controlGrips.bottomRight.visual,In,rn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,he,Ce-3*this.CB_DISTANCE)},V.prototype.positionGrip=function(Z,oe,Ce){var he=Z.transform.baseVal.getItem(0);he.setTranslate(oe,Ce),Z.transform.baseVal.replaceItem(he,0)},V.prototype.hideControlBox=function(){this.controlBox.style.display="none"},V.prototype.showControlBox=function(){this.controlBox.style.display=""},V.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ot.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ot.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},pe.prototype.getState.call(this))},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ot.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ot.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe);var Ce=this.rotatePoint({x:this.left,y:this.top}),he=this.unrotatePoint({x:Ce.x*Z,y:Ce.y*oe});this.left=he.x,this.top=he.y,this.width=this.width*Z,this.height=this.height*oe,this.adjustControlBox()},V}(Te),Et=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.createVisual=he.createVisual.bind(he),he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},V.prototype.createVisual=function(){this.visual=se.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)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},V.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z)},V.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.setSize()},V.prototype.setSize=function(){pe.prototype.setSize.call(this),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},V.prototype.pointerUp=function(Z){pe.prototype.pointerUp.call(this,Z),this.setSize()},V.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},V.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},V.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},V.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},V.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this))},V.prototype.restoreState=function(Z){var oe=Z;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),pe.prototype.restoreState.call(this,Z),this.setSize()},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setSize()},V.title="Rectangle marker",V}(gt),xt=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'')||this;return ct.widths=[],ct.widthBoxes=[],ct.widths=oe,ct.currentWidth=Ce,ct.setCurrentWidth=ct.setCurrentWidth.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(Ce){var he=document.createElement("div");he.style.display="flex",he.style.flexGrow="2",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=Ce===Z.currentWidth?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentWidth(Ce,he)}),oe.appendChild(he);var ct=document.createElement("div");ct.innerText=Ce.toString(),ct.style.marginRight="5px",he.appendChild(ct);var rn=document.createElement("div");rn.style.minHeight="20px",rn.style.flexGrow="2",rn.style.display="flex",rn.style.alignItems="center";var In=document.createElement("hr");In.style.minWidth="20px",In.style.border="0px",In.style.borderTop=Ce+"px solid "+Z.uiStyleSettings.toolboxColor,In.style.flexGrow="2",rn.appendChild(In),he.appendChild(rn),Z.widthBoxes.push(he)}),oe},V.prototype.setCurrentWidth=function(Z,oe){var Ce=this;this.currentWidth=Z,this.widthBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},V}(te),St=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'')||this;return ct.styles=[],ct.styleBoxes=[],ct.styles=oe,ct.currentStyle=Ce,ct.setCurrentStyle=ct.setCurrentStyle.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(Ce){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/Z.styles.length-5+"%",he.style.borderColor=Ce===Z.currentStyle?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentStyle(Ce,he)}),oe.appendChild(he);var ct=document.createElement("div");ct.style.minHeight="20px",ct.style.flexGrow="2",ct.style.overflow="hidden";var rn=``;ct.innerHTML=rn,he.appendChild(ct),Z.styleBoxes.push(he)}),oe},V.prototype.setCurrentStyle=function(Z,oe){var Ce=this;this.currentStyle=Z,this.styleBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},V}(te),Je=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.strokeColor=Ce.defaultColor,he.strokeWidth=Ce.defaultStrokeWidth,he.strokeDasharray=Ce.defaultStrokeDasharray,he.strokePanel=new De("Line color",Ce.defaultColorSet,Ce.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new St("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return ce(V,pe),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.typeName="FrameMarker",V.title="Frame marker",V.icon='',V}(Et),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},ft=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.x1=0,he.y1=0,he.x2=0,he.y2=0,he.defaultLength=50,he.manipulationStartX=0,he.manipulationStartY=0,he.manipulationStartX1=0,he.manipulationStartY1=0,he.manipulationStartX2=0,he.manipulationStartY2=0,he.setupControlBox(),he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!!pe.prototype.ownsTarget.call(this,Z)||!(!this.grip1.ownsTarget(Z)&&!this.grip2.ownsTarget(Z))},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),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(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},V.prototype.pointerUp=function(Z){var oe=this.state;pe.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",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},V.prototype.adjustVisual=function(){},V.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)},V.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()},V.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},V.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},V.prototype.setupControlBox=function(){this.controlBox=se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},V.prototype.adjustControlBox=function(){this.positionGrips()},V.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},V.prototype.createGrip=function(){var Z=new tt;return Z.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(Z.visual),Z},V.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)},V.prototype.positionGrip=function(Z,oe,Ce){var he=Z.transform.baseVal.getItem(0);he.setTranslate(oe,Ce),Z.transform.baseVal.replaceItem(he,0)},V.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},pe.prototype.getState.call(this))},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.x1=this.x1*Z,this.y1=this.y1*oe,this.x2=this.x2*Z,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},V}(Te),kt=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.strokeColor=Ce.defaultColor,he.strokeWidth=Ce.defaultStrokeWidth,he.strokeDasharray=Ce.defaultStrokeDasharray,he.strokePanel=new De("Line color",Ce.defaultColorSet,Ce.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new St("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorLine&&Z!==this.visibleLine)},V.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorLine=se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=se.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)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},V.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()),se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},V.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},V.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},V.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},V.typeName="LineMarker",V.title="Line marker",V.icon='',V}(ft),ht=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'')||this;return ct.fonts=[],ct.fontBoxes=[],ct.fonts=oe,ct.currentFont=Ce,ct.setCurrentFont=ct.setCurrentFont.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(Ce){var he=document.createElement("div");he.style.display="inline-block",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/Z.fonts.length-5+"%",he.style.borderColor=Ce===Z.currentFont?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentFont(Ce,he)}),oe.appendChild(he);var ct=document.createElement("div");ct.style.display="flex",ct.style.minHeight="20px",ct.style.flexGrow="2",ct.style.fontFamily=Ce,ct.style.overflow="hidden";var rn=document.createElement("div");rn.style.whiteSpace="nowrap",rn.style.overflow="hidden",rn.style.textOverflow="ellipsis",rn.innerHTML="The quick brown fox jumps over the lazy dog",ct.appendChild(rn),he.appendChild(ct),Z.fontBoxes.push(he)}),oe},V.prototype.setCurrentFont=function(Z,oe){var Ce=this;this.currentFont=Z,this.fontBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},V}(te),_t=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.color="transparent",he.padding=5,he.DEFAULT_TEXT="your text here",he.text=he.DEFAULT_TEXT,he.isMoved=!1,he.color=Ce.defaultColor,he.fontFamily=Ce.defaultFontFamily,he.defaultSize={x:100,y:30},he.setColor=he.setColor.bind(he),he.setFont=he.setFont.bind(he),he.renderText=he.renderText.bind(he),he.sizeText=he.sizeText.bind(he),he.textEditDivClicked=he.textEditDivClicked.bind(he),he.showTextEditor=he.showTextEditor.bind(he),he.setSize=he.setSize.bind(he),he.positionTextEditor=he.positionTextEditor.bind(he),he.colorPanel=new De("Color",Ce.defaultColorSet,Ce.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.fontFamilyPanel=new ht("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){if(pe.prototype.ownsTarget.call(this,Z)||Z===this.visual||Z===this.textElement||Z===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(Ce){Ce===Z&&(oe=!0)}),oe},V.prototype.createVisual=function(){this.visual=se.createGroup(),this.bgRectangle=se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.isMoved=!1,this.pointerDownPoint=Z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},V.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(oe){Z.textElement.appendChild(se.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},V.prototype.getTextScale=function(){var Z=this.textElement.getBBox(),oe=1;if(Z.width>0&&Z.height>0){var Ce=(1*this.width-this.width*this.padding*2/100)/Z.width,he=(1*this.height-this.height*this.padding*2/100)/Z.height;oe=Math.min(Ce,he)}return oe},V.prototype.getTextPosition=function(Z){var oe=this.textElement.getBBox(),Ce=0,he=0;return oe.width>0&&oe.height>0&&(Ce=(this.width-oe.width*Z)/2,he=this.height/2-oe.height*Z/2),{x:Ce,y:he}},V.prototype.sizeText=function(){var Z=this.textElement.getBBox(),oe=this.getTextScale(),Ce=this.getTextPosition(oe);Ce.y-=Z.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ce.x+"px, "+Ce.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ce.x,Ce.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},V.prototype.manipulate=function(Z){pe.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)},V.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.isMoved=!0,this.setSize(),this.sizeText()},V.prototype.setSize=function(){pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},V.prototype.pointerUp=function(Z){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),pe.prototype.pointerUp.call(this,Z),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},V.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(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(Z.textEditor.style.fontSize);Z.textEditor.clientWidth>=Number.parseInt(Z.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,Z.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var Ce=oe.clipboardData.getData("text"),he=window.getSelection();if(!he.rangeCount)return!1;he.deleteFromDocument(),he.getRangeAt(0).insertNode(document.createTextNode(Ce)),oe.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")},V.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Z=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ce=this.textElement.getBBox(),he={x:Ce.width*Z,y:Ce.height*Z};oe.x-=he.x/2,oe.y-=he.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*Z,12)+"px",this.textElement.style.display="none"}},V.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()},V.prototype.select=function(){pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},V.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),pe.prototype.deselect.call(this)},V.prototype.dblClick=function(Z,oe){pe.prototype.dblClick.call(this,Z,oe),this.showTextEditor()},V.prototype.setColor=function(Z){this.textElement&&se.setAttributes(this.textElement,[["fill",Z]]),this.color=Z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Z)},V.prototype.setFont=function(Z){this.textElement&&se.setAttributes(this.textElement,[["font-family",Z]]),this.fontFamily=Z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},V.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},V.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){var oe=Z;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),pe.prototype.restoreState.call(this,Z),this.setSize()},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},V.typeName="TextMarker",V.title="Text marker",V.icon='',V}(gt),Qe=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.color="transparent",he.lineWidth=3,he.drawing=!1,he.pixelRatio=1,he.color=Ce.defaultColor,he.lineWidth=Ce.defaultStrokeWidth,he.pixelRatio=Ce.freehandPixelRatio,he.setColor=he.setColor.bind(he),he.addCanvas=he.addCanvas.bind(he),he.finishCreation=he.finishCreation.bind(he),he.setLineWidth=he.setLineWidth.bind(he),he.colorPanel=new De("Color",Ce.defaultColorSet,Ce.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.lineWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.lineWidthPanel.onWidthChanged=he.setLineWidth,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.drawingImage)},V.prototype.createVisual=function(){this.visual=se.createGroup(),this.drawingImage=se.createImage(),this.visual.appendChild(this.drawingImage);var Z=se.createTransform();this.visual.transform.baseVal.appendItem(Z),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(Z,oe){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):pe.prototype.pointerDown.call(this,Z,oe)},V.prototype.manipulate=function(Z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Z.x,Z.y),this.canvasContext.stroke()):pe.prototype.manipulate.call(this,Z)},V.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},V.prototype.pointerUp=function(Z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):pe.prototype.pointerUp.call(this,Z)},V.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)},V.prototype.select=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.select.call(this)},V.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.deselect.call(this)},V.prototype.finishCreation=function(){for(var Z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ce=oe[0],he=oe[1],ct=oe[2],rn=oe[3],In=!1,Vn=0;Vn0&&(In=!0,Vnrn&&(rn=Vn),tn>ct&&(ct=tn));if(In){this.left=Ce/this.pixelRatio,this.top=he/this.pixelRatio,this.width=(ct-Ce)/this.pixelRatio,this.height=(rn-he)/this.pixelRatio;var En=document.createElement("canvas");En.width=ct-Ce,En.height=rn-he,En.getContext("2d").putImageData(this.canvasContext.getImageData(Ce,he,ct-Ce,rn-he),0,0),this.drawingImgUrl=En.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},V.prototype.setDrawingImage=function(){se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},V.prototype.setColor=function(Z){this.color=Z,this.colorChanged(Z)},V.prototype.setLineWidth=function(Z){this.lineWidth=Z},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({drawingImgUrl:this.drawingImgUrl},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){this.createVisual(),pe.prototype.restoreState.call(this,Z),this.drawingImgUrl=Z.drawingImgUrl,this.setDrawingImage()},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setDrawingImage()},V.typeName="FreehandMarker",V.title="Freehand marker",V.icon='',V}(gt),He=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,Ce||'')||this;return he.typeBoxes=[],he.currentType=oe,he.setCurrentType=he.setCurrentType.bind(he),he}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var Ce=function(rn){var In="both";switch(rn){case 0:In="both";break;case 1:In="start";break;case 2:In="end";break;case 3:In="none"}var Vn=document.createElement("div");if(Vn.style.display="flex",Vn.style.flexGrow="2",Vn.style.alignItems="center",Vn.style.justifyContent="space-between",Vn.style.padding="5px",Vn.style.borderWidth="2px",Vn.style.borderStyle="solid",Vn.style.borderColor=In===he.currentType?he.uiStyleSettings.toolboxAccentColor:"transparent",Vn.addEventListener("click",function(){Z.setCurrentType(In,Vn)}),oe.appendChild(Vn),In==="both"||In==="start"){var tn=document.createElement("div");tn.style.display="flex",tn.style.alignItems="center",tn.style.minHeight="20px",tn.innerHTML=``,tn.style.marginLeft="5px",Vn.appendChild(tn)}var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.style.flexGrow="2";var Xn=document.createElement("hr");if(Xn.style.minWidth="20px",Xn.style.border="0px",Xn.style.borderTop="3px solid "+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee"),Xn.style.flexGrow="2",En.appendChild(Xn),Vn.appendChild(En),In==="both"||In==="end"){var $r=document.createElement("div");$r.style.display="flex",$r.style.alignItems="center",$r.style.minHeight="20px",$r.innerHTML=``,$r.style.marginRight="5px",Vn.appendChild($r)}he.typeBoxes.push(Vn)},he=this,ct=0;ct<4;ct++)Ce(ct);return oe},V.prototype.setCurrentType=function(Z,oe){var Ce=this;this.currentType=Z,this.typeBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},V}(te),Ge=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.arrowType="end",he.arrowBaseHeight=10,he.arrowBaseWidth=10,he.getArrowPoints=he.getArrowPoints.bind(he),he.setArrowType=he.setArrowType.bind(he),he.arrowTypePanel=new He("Arrow type","end"),he.arrowTypePanel.onArrowTypeChanged=he.setArrowType,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.arrow1&&Z!==this.arrow2)},V.prototype.getArrowPoints=function(Z,oe){var Ce=this.arrowBaseWidth+2*this.strokeWidth,he=this.arrowBaseHeight+2*this.strokeWidth;return Z-Ce/2+","+(oe+he/2)+" "+Z+","+(oe-he/2)+" "+(Z+Ce/2)+","+(oe+he/2)},V.prototype.createTips=function(){this.arrow1=se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow2)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="creating"&&this.createTips()},V.prototype.adjustVisual=function(){if(pe.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",se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),se.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),oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(Z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var Ce=this.arrow2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ce,0)}},V.prototype.setArrowType=function(Z){this.arrowType=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({arrowType:this.arrowType},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},V.typeName="ArrowMarker",V.title="Arrow marker",V.icon='',V}(kt),Ee=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.fillColor=Ce.defaultFillColor,he.strokeWidth=0,he.fillPanel=new De("Color",Ce.defaultColorSet,Ce.defaultFillColor),he.fillPanel.onColorChanged=he.setFillColor,he}return ce(V,pe),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.typeName="CoverMarker",V.title="Cover marker",V.icon='',V}(Et),Ae=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'')||this;return ct.opacities=[],ct.opacityBoxes=[],ct.opacities=oe,ct.currentOpacity=Ce,ct.setCurrentOpacity=ct.setCurrentOpacity.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(Ce){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="center",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=Ce===Z.currentOpacity?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentOpacity(Ce,he)}),oe.appendChild(he);var ct=document.createElement("div");ct.innerText=100*Ce+"%",he.appendChild(ct),Z.opacityBoxes.push(he)}),oe},V.prototype.setCurrentOpacity=function(Z,oe){var Ce=this;this.currentOpacity=Z,this.opacityBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},V}(te),Fe=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.setOpacity=he.setOpacity.bind(he),he.fillColor=Ce.defaultHighlightColor,he.strokeWidth=0,he.opacity=Ce.defaultHighlightOpacity,he.fillPanel=new De("Color",Ce.defaultColorSet,he.fillColor),he.fillPanel.onColorChanged=he.setFillColor,he.opacityPanel=new Ae("Opacity",Ce.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return ce(V,pe),V.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.typeName="HighlightMarker",V.title="Highlight marker",V.icon='',V}(Ee),We='',Ke=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.bgColor="transparent",he.tipPosition={x:0,y:0},he.tipBase1Position={x:0,y:0},he.tipBase2Position={x:0,y:0},he.tipMoving=!1,he.color=Ce.defaultStrokeColor,he.bgColor=Ce.defaultFillColor,he.fontFamily=Ce.defaultFontFamily,he.defaultSize={x:100,y:30},he.setBgColor=he.setBgColor.bind(he),he.getTipPoints=he.getTipPoints.bind(he),he.positionTip=he.positionTip.bind(he),he.setTipPoints=he.setTipPoints.bind(he),he.colorPanel=new De("Text color",Ce.defaultColorSet,he.color,''),he.colorPanel.onColorChanged=he.setColor,he.bgColorPanel=new De("Fill color",Ce.defaultColorSet,he.bgColor,We),he.bgColorPanel.onColorChanged=he.setBgColor,he.fontFamilyPanel=new ht("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he.tipGrip=new tt,he.tipGrip.visual.transform.baseVal.appendItem(se.createTransform()),he.controlBox.appendChild(he.tipGrip.visual),he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return pe.prototype.ownsTarget.call(this,Z)||this.tipGrip.ownsTarget(Z)||this.tip===Z},V.prototype.createTip=function(){se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=se.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},V.prototype.pointerDown=function(Z,oe){this.state==="new"&&pe.prototype.pointerDown.call(this,Z,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):pe.prototype.pointerDown.call(this,Z,oe)},V.prototype.pointerUp=function(Z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,pe.prototype.pointerUp.call(this,Z);else{var oe=this.state==="creating";pe.prototype.pointerUp.call(this,Z),this.setTipPoints(oe),this.positionTip()}},V.prototype.manipulate=function(Z){if(this.tipMoving){var oe=this.unrotatePoint(Z);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else pe.prototype.manipulate.call(this,Z)},V.prototype.setBgColor=function(Z){this.bgRectangle&&this.tip&&(se.setAttributes(this.bgRectangle,[["fill",Z]]),se.setAttributes(this.tip,[["fill",Z]])),this.bgColor=Z,this.fillColorChanged(Z)},V.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},V.prototype.setTipPoints=function(Z){Z===void 0&&(Z=!1);var oe=Math.min(this.height/2,15),Ce=this.height/5;Z&&(this.tipPosition={x:oe+Ce/2,y:this.height+20});var he=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?he',V}(_t),st=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.strokeColor=Ce.defaultColor,he.strokeWidth=Ce.defaultStrokeWidth,he.strokeDasharray=Ce.defaultStrokeDasharray,he.fillColor=Ce.defaultFillColor,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.setOpacity=he.setOpacity.bind(he),he.createVisual=he.createVisual.bind(he),he.strokePanel=new De("Line color",ue(Ce.defaultColorSet,["transparent"]),Ce.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.fillPanel=new De("Fill color",ue(Ce.defaultColorSet,["transparent"]),he.fillColor,We),he.fillPanel.onColorChanged=he.setFillColor,he.strokeWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new St("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he.opacityPanel=new Ae("Opacity",Ce.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},V.prototype.createVisual=function(){this.visual=se.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)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},V.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z)},V.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.setSize()},V.prototype.setSize=function(){pe.prototype.setSize.call(this),se.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},V.prototype.pointerUp=function(Z){pe.prototype.pointerUp.call(this,Z),this.setSize()},V.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},V.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Z),this.stateChanged()},V.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},V.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},V.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){var oe=Z;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),pe.prototype.restoreState.call(this,Z),this.setSize()},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setSize()},V.typeName="EllipseMarker",V.title="Ellipse marker",V.icon='',V}(gt),Ot=function(pe){function V(Z,oe,Ce){return pe.call(this,Z,oe,Ce)||this}return ce(V,pe),Object.defineProperty(V.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.tip1&&Z!==this.tip2)},V.prototype.createTips=function(){this.tip1=se.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(se.createTransform()),this.visual.appendChild(this.tip1),this.tip2=se.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(se.createTransform()),this.visual.appendChild(this.tip2)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="creating"&&this.createTips()},V.prototype.adjustVisual=function(){if(pe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(se.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()]]),se.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),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(Z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var Ce=this.tip2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ce,0)}},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z),this.createTips(),this.adjustVisual()},V.typeName="MeasurementMarker",V.title="Measurement marker",V.icon='',V}(kt),Bt=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.strokePanel.colors=Ce.defaultColorSet,he.fillColor="transparent",he}return ce(V,pe),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.typeName="EllipseFrameMarker",V.title="Ellipse frame marker",V.icon='',V}(st),an=function(){function pe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),pe.prototype.addUndoStep=function(V){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(V)||(this.undoStack.push(V),JSON.stringify(this.lastRedoStep)!==JSON.stringify(V)&&this.redoStack.splice(0,this.redoStack.length))},pe.prototype.replaceLastUndoStep=function(V){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=V)},pe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},pe.prototype.undo=function(){if(this.undoStack.length>1){var V=this.undoStack.pop();return V!==void 0&&this.redoStack.push(V),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},pe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},pe}(),Kt=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.curveX=0,he.curveY=0,he.manipulationStartCurveX=0,he.manipulationStartCurveY=0,he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.positionGrips=he.positionGrips.bind(he),he.addControlGrips=he.addControlGrips.bind(he),he.adjustVisual=he.adjustVisual.bind(he),he.setupControlBox=he.setupControlBox.bind(he),he.resize=he.resize.bind(he),he.strokeColor=Ce.defaultColor,he.strokeWidth=Ce.defaultStrokeWidth,he.strokeDasharray=Ce.defaultStrokeDasharray,he.strokePanel=new De("Line color",Ce.defaultColorSet,Ce.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new St("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorCurve&&Z!==this.visibleCurve&&!this.curveGrip.ownsTarget(Z))},V.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},V.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorCurve=se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=se.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)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),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(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},V.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},V.prototype.setupControlBox=function(){pe.prototype.setupControlBox.call(this),this.curveControlLine1=se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=se.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)},V.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,pe.prototype.addControlGrips.call(this)},V.prototype.positionGrips=function(){pe.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()))},V.prototype.manipulate=function(Z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Z.y-this.manipulationStartY),pe.prototype.manipulate.call(this,Z)},V.prototype.resize=function(Z){this.activeGrip===this.curveGrip&&(this.curveX=Z.x,this.curveY=Z.y),pe.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)},V.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},V.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},V.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual()},V.prototype.scale=function(Z,oe){this.curveX=this.curveX*Z,this.curveY=this.curveY*oe,pe.prototype.scale.call(this,Z,oe)},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},V.typeName="CurveMarker",V.title="Curve marker",V.icon='',V}(ft),bt=function(){function pe(V,Z){Z===void 0&&(Z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=V,this.cancelable=Z}return Object.defineProperty(pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),pe.prototype.preventDefault=function(){this._defaultPrevented=!0},pe}(),Be=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,!1)||this;return he.dataUrl=oe,he.state=Ce,he}return ce(V,pe),V}(bt),at=function(pe){function V(Z,oe,Ce){Ce===void 0&&(Ce=!1);var he=pe.call(this,Z,Ce)||this;return he.marker=oe,he}return ce(V,pe),V}(bt),it=function(){function pe(){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 pe.prototype.addEventListener=function(V,Z){this[V].push(Z)},pe.prototype.removeEventListener=function(V,Z){var oe=this[V].indexOf(Z);oe>-1&&this[V].splice(oe,1)},pe}(),Me=function(){function pe(V){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 an,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 it,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=pe.instanceCounter++,this.styles=new ie(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=V,this.targetRoot=document.body,this.width=V.clientWidth,this.height=V.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(pe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Je,Qe,Ge,_t,Bt,st,Fe,Ke,Ot,Ee,kt,Kt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Je,Qe,Ge,_t,st,Fe,Ke]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Je,Qe,Ge,_t,Fe]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(V){var Z=this;this._availableMarkerTypes.splice(0),V.forEach(function(oe){if(typeof oe=="string"){var Ce=Z.ALL_MARKER_TYPES.find(function(he){return he.typeName===oe});Ce!==void 0&&Z._availableMarkerTypes.push(Ce)}else Z._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(V){this._zoomLevel=V,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(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),pe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),q.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},pe.prototype.show=function(){var V=this;this.styles.styleSheetRoot===void 0&&re.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=re.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Z){return Z(new bt(V))})},pe.prototype.render=function(){return be(this,void 0,void 0,function(){var V;return ve(this,function(Z){switch(Z.label){case 0:return this.setCurrentMarker(),(V=new me).naturalSize=this.renderAtNaturalSize,V.imageType=this.renderImageType,V.imageQuality=this.renderImageQuality,V.markersOnly=this.renderMarkersOnly,V.width=this.renderWidth,V.height=this.renderHeight,[4,V.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Z.sent(),[4,V.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Z.sent()]}})})},pe.prototype.close=function(V){var Z=this;if(V===void 0&&(V=!1),this.isOpen){var oe=!1;V||this.eventListeners.beforeclose.forEach(function(Ce){var he=new bt(Z,!0);Ce(he),he.defaultPrevented&&(oe=!0)}),oe||(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(Ce){return Ce(new bt(Z))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var V,Z=[],oe=0;oethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*V:this.editorCanvas.clientWidth,oe=Z',V.title="Powered by marker.js",V.style.display="grid",V.style.alignItems="center",V.style.justifyItems="center",V.style.padding="3px",V.style.width="20px",V.style.height="20px",this.logoUI.appendChild(V),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},pe.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")},pe.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"},pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},pe.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 V=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=V+"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 $(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(V),1),V.dispose()},pe.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())},pe.prototype.toolbarButtonClicked=function(V,Z){if(V==="marker"&&Z!==void 0)this.createNewMarker(Z);else if(V==="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()}},pe.prototype.deleteSelectedMarker=function(){var V=this;if(this._currentMarker!==void 0){var Z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ce){var he=new at(V,V._currentMarker,!0);Ce(he),he.defaultPrevented&&(Z=!0)}),!Z){var oe=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(Ce){return Ce(new at(V,oe))})}}},pe.prototype.clear=function(){var V=this,Z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ct){var rn=new at(V,void 0,!0);ct(rn),rn.defaultPrevented&&(Z=!0)}),!Z)){this.setCurrentMarker();for(var oe=function(ct){var rn=Ce.markers[ct];Ce.setCurrentMarker(Ce.markers[ct]),Ce._currentMarker.dispose(),Ce.markerImage.removeChild(Ce._currentMarker.container),Ce.markers.splice(Ce.markers.indexOf(Ce._currentMarker),1),Ce.eventListeners.markerdelete.forEach(function(In){return In(new at(V,rn))})},Ce=this,he=this.markers.length-1;he>=0;he--)oe(he);this.addUndoStep()}},Object.defineProperty(pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),pe.prototype.showNotesEditor=function(){var V;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=(V=this._currentMarker.notes)!==null&&V!==void 0?V:"",this.overlayContainer.appendChild(this.notesArea))},pe.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)},pe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},pe.prototype.addUndoStep=function(){var V=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Z=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===Z.width&&oe.height===Z.height){var Ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Z),Ce1&&this.panTo({x:V.clientX,y:V.clientY}))},pe.prototype.onPointerUp=function(V){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(V.clientX,V.clientY)),this.isDragging=!1,this.addUndoStep()},pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},pe.prototype.onKeyUp=function(V){this._currentMarker===void 0||this.notesArea!==void 0||V.key!=="Delete"&&V.key!=="Backspace"||this.deleteSelectedMarker()},pe.prototype.clientToLocalCoordinates=function(V,Z){var oe=this.markerImage.getBoundingClientRect();return{x:(V-oe.left)/this.zoomLevel,y:(Z-oe.top)/this.zoomLevel}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var V=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=V+"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()},pe.prototype.addLicenseKey=function(V){q.addKey(V)},pe.prototype.addEventListener=function(V,Z){this.eventListeners.addEventListener(V,Z)},pe.prototype.removeEventListener=function(V,Z){this.eventListeners.removeEventListener(V,Z)},pe.prototype.renderState=function(V){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(V),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),pe.prototype.focus=function(){var V=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 bt(V))}))},pe.prototype.blur=function(){var V=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Z){return Z(new bt(V))}))},pe.instanceCounter=0,pe}();/* **********************************
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 Ye=function(pe,V){return(Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,oe){Z.__proto__=oe}||function(Z,oe){for(var Ce in oe)Object.prototype.hasOwnProperty.call(oe,Ce)&&(Z[Ce]=oe[Ce])})(pe,V)};function ut(pe,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");function Z(){this.constructor=pe}Ye(pe,V),pe.prototype=V===null?Object.create(V):(Z.prototype=V.prototype,new Z)}function mt(pe,V,Z,oe){return new(Z||(Z=Promise))(function(Ce,he){function ct(Vn){try{In(oe.next(Vn))}catch(tn){he(tn)}}function rn(Vn){try{In(oe.throw(Vn))}catch(tn){he(tn)}}function In(Vn){var tn;Vn.done?Ce(Vn.value):(tn=Vn.value,tn instanceof Z?tn:new Z(function(En){En(tn)})).then(ct,rn)}In((oe=oe.apply(pe,V||[])).next())})}function Pt(pe,V){var Z,oe,Ce,he,ct={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return he={next:rn(0),throw:rn(1),return:rn(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function rn(In){return function(Vn){return function(tn){if(Z)throw new TypeError("Generator is already executing.");for(;ct;)try{if(Z=1,oe&&(Ce=2&tn[0]?oe.return:tn[0]?oe.throw||((Ce=oe.return)&&Ce.call(oe),0):oe.next)&&!(Ce=Ce.call(oe,tn[1])).done)return Ce;switch(oe=0,Ce&&(tn=[2&tn[0],Ce.value]),tn[0]){case 0:case 1:Ce=tn;break;case 4:return ct.label++,{value:tn[1],done:!1};case 5:ct.label++,oe=tn[1],tn=[0];continue;case 7:tn=ct.ops.pop(),ct.trys.pop();continue;default:if(!(Ce=ct.trys,(Ce=Ce.length>0&&Ce[Ce.length-1])||tn[0]!==6&&tn[0]!==2)){ct=0;continue}if(tn[0]===3&&(!Ce||tn[1]>Ce[0]&&tn[1]0&&Z>0){var oe=new xr(V,Z),Ce=oe.ratio>=1?20:oe.getHorizontalLength(20),he=oe.ratio<1?20:oe.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 rn=et.createDefs();ct.appendChild(rn);var In=et.createElement("clipPath",[["id","text-bg-clip"]]);rn.appendChild(In);var Vn=et.createPath(et.getHollowRectanglePath((24-Ce)/2,(24-he)/2,Ce,he,(24-Ce)/2+2,(24-he)/2+2,Ce-4,he-4));ct.appendChild(Vn);var tn=et.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);tn.appendChild(et.createTSpan(V+":"+Z)),ct.appendChild(tn);var En=tn.getBBox();et.setAttributes(tn,[["x",((24-En.width)/2).toString()],["y",((24-En.height)/2-En.y).toString()]]);var Xn=et.createPath(et.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(En.width))/2,(24-Math.ceil(En.height))/2,Math.ceil(En.width),Math.ceil(En.height)));return In.appendChild(Xn),et.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ct),ct.outerHTML}return''},pe}(),Rr=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe)||this;return he.isDropdownOpen=!1,he.onClick=he.dropdownButtonClicked,he.dropdownButtons=Ce,he}return ut(V,pe),V.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(oe){oe.className=Z.className,oe.colorsClassName=Z.colorsClassName,Z.dropdownBlock.appendChild(oe.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},V.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},V.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},V.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},V.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},V.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},V}(Pn),cr=function(){function pe(V,Z){this.GRIP_SIZE=10,this.color=V,this.fillColor=Z,this.visual=et.createGroup(),this.visual.appendChild(et.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(et.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(V){return V===this.visual||V===this.visual.childNodes[0]||V===this.visual.childNodes[1]},pe.prototype.setCenter=function(V,Z){this.visual.childNodes.forEach(function(oe){return et.setAttributes(oe,[["cx",V.toString()],["cy",Z.toString()]])})},pe}(),Ur=function(){function pe(V,Z,oe,Ce){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=V,this.canvasHeight=Z,this.margin=oe,this.container=Ce,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(pe.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(V){this._aspectRatio=V,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(V){this._isGridVisible=V,this.gridContainer&&et.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(V){this._zoomFactor=V,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),pe.prototype.open=function(){var V=this;this.cropShadeElement=et.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=et.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),et.setAttributes(this.cropRectElement,[["x",Z.x.toString()],["y",Z.y.toString()],["width",Z.width.toString()],["height",Z.height.toString()]]);var oe=Z.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(he,ct){var rn=Z.y+oe*(ct+1);et.setAttributes(he,[["x1",""+Z.x],["y1",""+rn],["x2",""+(Z.x+Z.width)],["y2",""+rn]])});var Ce=Z.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(he,ct){var rn=Z.x+Ce*(ct+1);et.setAttributes(he,[["x1",""+rn],["y1",""+Z.y],["x2",""+rn],["y2",""+(Z.y+Z.height)]])}),et.setAttributes(this.cropShadeElement,[["d",et.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},pe.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)},pe.prototype.clientToLocalCoordinates=function(V,Z){var oe=this.container.getBoundingClientRect();return{x:V-oe.left+this.margin,y:Z-oe.top+this.margin}},pe.prototype.onPointerDown=function(V){this.container.setPointerCapture(V.pointerId),this.previousPoint=this.clientToLocalCoordinates(V.clientX,V.clientY),this.cropRectElement===V.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(V.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(V.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(V.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(V.target)&&(this.activeGrip=this.bottomRightGrip)},pe.prototype.onPointerMove=function(V){if(this.isMoving)this.move(this.clientToLocalCoordinates(V.clientX,V.clientY));else if(this.activeGrip){var Z=this.clientToLocalCoordinates(V.clientX,V.clientY);this.resize(Z)}V.preventDefault()},pe.prototype.onPointerUp=function(V){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(V.pointerId)},pe.prototype.move=function(V){var Z=V.x-this.previousPoint.x,oe=V.y-this.previousPoint.y;this.zoomFactor!==1&&(Z=-Z/this.zoomFactor,oe=-oe/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+oe),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=V},pe.prototype.resize=function(V){var Z=Object.assign({},this.cropRect),oe=V.x-this.previousPoint.x,Ce=V.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:Z.x+oethis.canvasWidth*this.zoomFactor&&(oe=this.canvasWidth*this.zoomFactor-Z.width),Z.width+=oe}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(oe),Z.height=this.aspectRatio.getVerticalLength(Z.width)):(Z.y+=Ce,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+=Ce}Z.width<10&&(Z.x=this.cropRect.x,Z.width=10),Z.height<10&&(Z.y=this.cropRect.y,Z.height=10),this.previousPoint=V,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))},pe.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var V=this.cropRect.x+this.cropRect.width/2,Z=this.cropRect.y+this.cropRect.height/2,oe=this.aspectRatio.getHorizontalLength(this.cropRect.height),Ce=this.aspectRatio.getVerticalLength(this.cropRect.width);oe/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=V-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)}},pe.prototype.getRescaledRect=function(V,Z,oe,Ce,he,ct){var rn=oe/V,In=Ce/Z;return{x:(he.x-ct)*rn+ct,y:(he.y-ct)*In+ct,width:he.width*rn,height:he.height*In}},pe.prototype.scaleCanvas=function(V,Z){var oe=this.getRescaledRect(this.canvasWidth,this.canvasHeight,V,Z,this.cropRect,this.margin);this.canvasWidth=V,this.canvasHeight=Z,this.onCropChange&&this.onCropChange(oe),this.setCropRectangle(oe)},pe}(),yr=function(){function pe(V){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=V,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(pe.prototype,"angle",{get:function(){return this._angle},set:function(V){this._angle=V,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),pe.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},pe.prototype.onPointerDown=function(V){this.controlContainer.setPointerCapture(V.pointerId),this.isDragging=!0,this.previousPoint={x:V.clientX,y:V.clientY}},pe.prototype.onPointerMove=function(V){this.isDragging&&(this.onAngleChange&&this.onAngleChange((V.clientX-this.previousPoint.x)/5),this.previousPoint.x=V.clientX)},pe.prototype.onPointerUp=function(V){this.isDragging&&this.onAngleChange&&this.onAngleChange((V.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(V.pointerId)},pe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var V=this.angleLabelText.getBBox();et.setAttributes(this.angleLabelElement,[["x",((this.width-V.width)/2).toString()],["y",(this.height/2).toString()]])}},pe.prototype.positionScaleShape=function(){if(this.scaleShape){var V=this.scaleShape.transform.baseVal.getItem(0);V.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(V,0)}},pe.prototype.getVisual=function(){var V=document.createElementNS("http://www.w3.org/2000/svg","svg");V.setAttribute("xmlns","http://www.w3.org/2000/svg"),V.setAttribute("width",this.width+"px"),V.setAttribute("height",this.height+"px"),V.setAttribute("viewBox","0 0 "+this.width+" "+this.height),V.style.flexShrink="0",document.body.appendChild(V);for(var Z="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,oe=1;oe<=this.width/5+10;oe++){var Ce=oe%5==0?this.height/3:this.height/6;Z+="h4v"+-Ce+"h1v"+Ce}Z+="v1H0Z",this.scaleShape=et.createPath(Z);var he=et.createTransform();this.scaleShape.transform.baseVal.appendItem(he),V.appendChild(this.scaleShape),this.angleLabelElement=et.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=et.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ct=et.createTSpan("");return ct.innerHTML="°",this.angleLabelElement.appendChild(ct),V.appendChild(this.angleLabelElement),document.body.removeChild(V),V},pe}(),sn=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(V,Z,oe,Ce,he,ct,rn){var In=this;return new Promise(function(Vn){var tn=document.createElement("canvas");tn.width=V.width.baseVal.value-2*Ce,tn.height=V.height.baseVal.value-2*Ce;var En=1,Xn=1;In.naturalSize===!0?(En=Z.naturalWidth/(V.width.baseVal.value-2*Ce)/ct,Xn=Z.naturalHeight/(V.height.baseVal.value-2*Ce)/rn,tn.width=Z.naturalWidth/ct,tn.height=Z.naturalHeight/rn):In.width!==void 0&&In.height!==void 0&&(En=In.width/oe.width,Xn=In.height/oe.height,tn.width*=En,tn.height*=Xn);var $r=tn.getContext("2d");$r.translate(tn.width/2,tn.height/2),$r.rotate(he*Math.PI/180),$r.scale(ct,rn),$r.translate(-tn.width/2,-tn.height/2),$r.drawImage(Z,0,0,tn.width,tn.height);var ga=document.createElement("canvas");ga.width=oe.width*En,ga.height=oe.height*Xn,ga.getContext("2d").putImageData($r.getImageData((oe.x-Ce)*En,(oe.y-Ce)*Xn,oe.width*En,oe.height*Xn),0,0),Vn(ga.toDataURL(In.imageType,In.imageQuality))})},pe}(),Zt=function(){function pe(V){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=pe.instanceCounter++,this.styles=new Dt(this.instanceNo),this.target=V,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(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(V){this._zoomToCropEnabled=V,V?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(V){this._isGridVisible=V,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(V){this._gridLines=V,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(V){this._rotationAngle=V,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"aspectRatio",{get:function(){var V;return(V=this._aspectRatio)!==null&&V!==void 0?V:this.aspectRatios[0]},set:function(V){this._aspectRatio=V},enumerable:!1,configurable:!0}),pe.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},pe.prototype.show=function(){this.showUI(),this.open()},pe.prototype.close=function(V){V===void 0&&(V=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),V||this.closeEventListeners.forEach(function(Z){return Z()}),this._isOpen=!1)},pe.prototype.addRenderEventListener=function(V){this.renderEventListeners.push(V)},pe.prototype.removeRenderEventListener=function(V){this.renderEventListeners.indexOf(V)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(V),1)},pe.prototype.addCloseEventListener=function(V){this.closeEventListeners.push(V)},pe.prototype.removeCloseEventListener=function(V){this.closeEventListeners.indexOf(V)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(V),1)},pe.prototype.setupResizeObserver=function(){var V=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){V.resize(V.target.clientWidth,V.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))},pe.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var V=1*this.target.clientWidth/this.target.clientHeight,Z=this.contentDiv.clientWidth/V>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*V:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,oe=Z+2*this.CANVAS_MARGINV+this.CANVAS_MARGIN?this.target.offsetTop-(V+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},pe.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},pe.prototype.addTopToolbar=function(){var V=this;this.topToolbar=new Cn,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 qn;Z.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(Z);var oe=[];this.aspectRatios.forEach(function(Xn){var $r=new Pn(wr.getIcon(Xn.horizontal,Xn.vertical),Xn.horizontal===0&&Xn.vertical===0?"FREE":Xn.horizontal+":"+Xn.vertical);$r.onClick=function(){return V.ratioButtonClicked(Xn)},oe.push($r)}),this.aspectRatioButton=new Rr(wr.getIcon(0,0),"Aspect ratio",oe),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 Ce=new Pn('',"Toggle grid");Ce.isActive=this.isGridVisible,Ce.onClick=function(){V.isGridVisible=!V.isGridVisible,Ce.isActive=V.isGridVisible},Z.addButton(Ce);var he=new Pn('',"Zoom to selection");if(he.isActive=this.zoomToCropEnabled,he.onClick=function(){V.zoomToCropEnabled=!V.zoomToCropEnabled,he.isActive=V.zoomToCropEnabled},Z.addButton(he),!jt.isLicensed){var ct=new cn;this.topToolbar.addElementBlock(ct);var rn=document.createElement("div");rn.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var In=document.createElement("a");In.style.color="currentColor",In.href="https://markerjs.com/products/cropro",In.target="_blank",In.innerHTML='',rn.appendChild(In),ct.addElement(rn)}var Vn=new qn;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var tn=new Pn('',"OK");tn.onClick=this.startRenderAndClose,Vn.addButton(tn),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(tn.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var En=new Pn('',"Close");En.onClick=this.close,Vn.addButton(En),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(En.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var V=this;this.bottomToolbar=new Cn,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 qn;Z.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(Z);var oe=new Pn('',"Rotate left");oe.onClick=this.rotateLeftButtonClicked,Z.addButton(oe);var Ce=new Pn('',"Rotate right");Ce.onClick=this.rotateRightButtonClicked,Z.addButton(Ce);var he=new cn;he.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(he),this.straightener=new yr("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(Vn){V.rotateBy(Vn),V.straightener.angle=V.rotationAngle},he.addElement(this.straightener.getUI());var ct=new qn;ct.minWidth=2*this.toolbarHeight+"px",ct.contentAlign="end",this.bottomToolbar.addButtonBlock(ct);var rn=new Pn('',"Flip horizontal");rn.onClick=this.flipHorizontallyButtonClicked,ct.addButton(rn);var In=new Pn('',"Flip vertical");In.onClick=this.flipVerticallyButtonClicked,ct.addButton(In)},pe.prototype.ratioButtonClicked=function(V){this.aspectRatio=V,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=wr.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},pe.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new xr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},pe.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},pe.prototype.restoreState=function(V){if(V){var Z=this.cropLayer.getRescaledRect(V.width,V.height,this.imageWidth,this.imageHeight,V.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(Z),this.cropRectChanged(Z),this.flippedHorizontally=V.flippedHorizontally,this.flippedVertically=V.flippedVertically,this.applyFlip(),this.rotationAngle=V.rotationAngle,this.applyRotation()}},pe.prototype.clientToLocalCoordinates=function(V,Z){var oe=this.cropImage.getBoundingClientRect();return{x:V-oe.left,y:Z-oe.top}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var V=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=V+"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()},pe.prototype.rotateLeftButtonClicked=function(){var V=this.rotationAngle-90;this.rotationAngle%90!=0&&(V+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(V)},pe.prototype.rotateRightButtonClicked=function(){var V=this.rotationAngle+90;this.rotationAngle%90!=0&&(V-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(V)},pe.prototype.rotateTo=function(V){V=(V=V>180?V-360:V)<=-180?V+360:V,this.rotationAngle=V,this.applyRotation()},pe.prototype.rotateBy=function(V){this.rotateTo((this.rotationAngle+V)%360)},pe.prototype.applyRotation=function(){var V=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 oe=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/oe.width,this.imageHeight/oe.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=V},pe.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},pe.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},pe.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},pe.prototype.startRenderAndClose=function(){return mt(this,void 0,void 0,function(){var V,Z;return Pt(this,function(oe){switch(oe.label){case 0:return[4,this.render()];case 1:return V=oe.sent(),Z=this.getState(),this.renderEventListeners.forEach(function(Ce){return Ce(V,Z)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return mt(this,void 0,void 0,function(){var V;return Pt(this,function(Z){switch(Z.label){case 0:return(V=new sn).naturalSize=this.renderAtNaturalSize,V.imageType=this.renderImageType,V.imageQuality=this.renderImageQuality,V.width=this.renderWidth,V.height=this.renderHeight,this.unzoomFromCrop(),et.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,V.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,V.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()]}})})},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new bn("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 bn("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new bn("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var V=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new bn("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*V)+`px;
height: `+(this.toolbarHeight-2*V)+`px;
padding: `+V+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new bn("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new bn("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new Ht("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ht("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new bn("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 bn("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new bn("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 bn("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*V)+`px;
padding: `+V+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new bn("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},pe.instanceCounter=0,pe}(),Tn=o("8hTe"),jr=o.n(Tn),jn=/]*>/g;function $n(pe){var V=document.createElement("div");return V.innerHTML=pe,V.childNodes.length===0?"":V.childNodes[0].nodeValue}var Wn=Y.a=function(pe){var V=pe.value,Z=V===void 0?"":V,oe=pe.edit,Ce=oe===void 0?!1:oe,he=pe.className,ct=pe.showTextOnly,rn=pe.showLines,In=pe.replaces,Vn=pe.zoomImg,tn=pe.hasMask,En=pe.style,Xn=En===void 0?{}:En,$r=pe.stylesPrev,ga=$r===void 0?{}:$r,pa=String(Z),dr=Object(d.useRef)(),za=Object(d.useRef)(),ja=Object(d.useState)(""),Ra=Object(w.a)(ja,2),Ha=Ra[0],Sa=Ra[1],Ja=Object(d.useState)("office"),ka=Object(w.a)(Ja,2),li=ka[0],oi=ka[1],ua=function(){var Lt=new Zt(za.current);Lt.displayMode="popup",Lt.addRenderEventListener(function(){var Xt=Object(x.a)(_.a.mark(function en(vn){var pn;return _.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return dr.current.style.display="none",wn.next=3,Object(xe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:vn}});case 3:pn=wn.sent,pn!=null&&pn.id&&In(za.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(pn==null?void 0:pn.id,"?type=").concat(pn.content_type));case 5:case"end":return wn.stop()}},en)}));return function(en){return Xt.apply(this,arguments)}}()),Lt.show()},fa=function(){var Lt=new Me(za.current);Lt.settings.displayMode="popup",Lt.addEventListener("render",function(){var Xt=Object(x.a)(_.a.mark(function en(vn){var pn;return _.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(dr.current.style.display="none",!za.current){wn.next=6;break}return wn.next=4,Object(xe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:vn.dataUrl}});case 4:pn=wn.sent,pn!=null&&pn.id&&In(za.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(pn==null?void 0:pn.id,"?type=").concat(pn.content_type));case 6:case"end":return wn.stop()}},en)}));return function(en){return Xt.apply(this,arguments)}}()),Lt.show(),window.markerArea=Lt},oa=Object(d.useMemo)(function(){dr.current&&(dr.current.style.zIndex=-1);try{var Wt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Lt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;pa=pa.replace(Wt,"("+ne.a.API_SERVER+"/api/attachments/").replace(Lt,'"'+ne.a.API_SERVER+"/api/attachments/").replace(Xt,'"'+ne.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Nn){}var en=K(pa),vn=I();if(pa.match(/\[TOC\]/)&&(en=en.replace("[TOC]
",P()),O()),en=en.replace(/(__special_katext_id_\d+__)/g,function(Nn,wn){var nn=vn[wn],Rn=nn.type,gn=nn.expression;return Object(fe.renderToString)($n(gn)||"",{displayMode:Rn==="block",throwOnError:!1,output:"html"})}),en=en.replace(/▁/g,"\u2581\u2581\u2581"),D(),ct){var pn=document.createElement("div");return pn.innerHTML=en,pn.innerText}return setTimeout(function(){return Mt()},500),en},[pa]),ye=Object(d.useRef)();S.WebkitLineClamp=rn,rn&&(Xn=Object(y.a)(Object(y.a)({},Xn),S));function lt(Wt){var Lt=Wt.target;if(Lt.tagName.toUpperCase()==="IMG"){if(Vn){var Xt=Lt.getAttribute("src");Sa(Xt),oi("image")}}else if(Lt.tagName.toUpperCase()==="A"){var en=Lt.getAttribute("href");if(en.indexOf("office")>-1)Wt.preventDefault(),Sa(en),oi("office");else if(en.indexOf("application/pdf")>-1)Wt.preventDefault(),Sa(en),oi("pdf");else if(en.indexOf("text/html")>-1)Wt.preventDefault(),Sa(en),oi("html");else if(en.startsWith("#")){Wt.preventDefault();var vn=document.getElementById(en.replace("#",""));vn&&vn.scrollIntoView(!0)}}}var Mt=function(){var Lt,Xt=(Lt=ye.current)===null||Lt===void 0?void 0:Lt.querySelectorAll("video");Xt==null||Xt.forEach(function(en){if(en.oncontextmenu=function(){return!1},en.src.indexOf(".m3u8")>-1&&!en.canPlayType("application/vnd.apple.mpegurl")){if(G.a.isSupported()){var vn=new G.a;vn.loadSource(en.src),vn.attachMedia(en)}}})};Object(d.useEffect)(function(){if(ye.current&&oa&&(oa.match(jn)&&window.PR.prettyPrint()),ye.current)return ye.current.addEventListener("click",lt),function(){ye.current.removeEventListener("click",lt),D(),O()}},[oa,ye.current,lt]);var wt=function(Lt){if(!Ce)return;Lt.target.nodeName==="IMG"?(dr.current.style.zIndex=1,dr.current.style.display="flex",dr.current.style.width=Lt.target.clientWidth+"px",dr.current.style.height=Lt.target.clientHeight+"px",dr.current.style.top=Lt.target.offsetTop+"px",dr.current.style.left=Lt.target.offsetLeft+"px",za.current.src=Lt.target.getAttribute("src")):dr.current.style.display="none"};return r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("div",{ref:ye,style:Object(y.a)({},Xn),className:"".concat(he||""," markdown-body ").concat(jr.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:oa}}),r.a.createElement("div",{ref:dr,className:jr.a.button},r.a.createElement(g.a,null,r.a.createElement(b.a,{onClick:function(){return ua()}},"\u88C1\u526A"),r.a.createElement(b.a,{onClick:function(){return fa()}},"\u7F16\u8F91"))),r.a.createElement("img",{ref:za,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),r.a.createElement(de.a,{close:!0,data:Ha,type:Ha!=null&&Ha.length?li:"",style:Object(y.a)({},ga),onClose:function(){return Sa("")}}))}},"9JIy":function(M,Y,o){M.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},"9OqN":function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.mode.CTR=function(){var g=L.lib.BlockCipherMode.extend(),A=g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,w=x.blockSize,f=this._iv,_=this._counter;f&&(_=this._counter=f.slice(0),this._iv=void 0);var d=_.slice(0);x.encryptBlock(d,0),_[w-1]=_[w-1]+1|0;for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var d=document.createElement("style");if((f=_.csp)===null||f===void 0?void 0:f.nonce){var r;d.nonce=(r=_.csp)===null||r===void 0?void 0:r.nonce}d.innerHTML=w;var u=A(_),t=u.firstChild;return _.prepend&&u.prepend?u.prepend(d):_.prepend&&t?u.insertBefore(d,t):u.appendChild(d),d}var y=new Map;function x(w,f){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=A(_);if(!y.has(d)){var r=b("",_),u=r.parentNode;y.set(d,u),u.removeChild(r)}var t=Array.from(y.get(d).children).find(function(l){return l.tagName==="STYLE"&&l[g]===f});if(t){var a,n;if(((a=_.csp)===null||a===void 0?void 0:a.nonce)&&t.nonce!==((n=_.csp)===null||n===void 0?void 0:n.nonce)){var i;t.nonce=(i=_.csp)===null||i===void 0?void 0:i.nonce}return t.innerHTML!==w&&(t.innerHTML=w),t}var h=b(w,_);return h[g]=f,h}},Bbdw:function(M,Y,o){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,Y,o){(function(L){L(o("VrN/"),o("osHv"))})(function(L){L.defineOption("autoCloseTags",!1,function(_,d,r){if(r!=L.Init&&r&&_.removeKeyMap("autoCloseTags"),!d)return;var u={name:"autoCloseTags"};(typeof d!="object"||d.whenClosing!==!1)&&(u["'/'"]=function(t){return x(t)}),(typeof d!="object"||d.whenOpening!==!1)&&(u["'>'"]=function(t){return b(t)}),_.addKeyMap(u)});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 b(_){if(_.getOption("disableInput"))return L.Pass;for(var d=_.listSelections(),r=[],u=_.getOption("autoCloseTags"),t=0;ta.ch&&(s=s.slice(0,s.length-n.end+a.ch));var v=s.toLowerCase();if(!s||n.type=="string"&&(n.end!=a.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&l.close||n.string.indexOf("/")==a.ch-n.start-1||O&&w(O,v)>-1||f(_,i.mode.xmlCurrentContext&&i.mode.xmlCurrentContext(h)||[],s,a,!0))return L.Pass;var P=typeof u=="object"&&u.emptyTags;if(P&&w(P,s)>-1){r[t]={text:"/>",newPos:L.Pos(a.line,a.ch+2)};continue}var R=S&&w(S,v)>-1;r[t]={indent:R,text:">"+(R?`
`:"")+""+s+">",newPos:R?L.Pos(a.line+1,0):L.Pos(a.line,a.ch+1)}}for(var E=typeof u=="object"&&u.dontIndentOnAutoClose,t=d.length-1;t>=0;t--){var C=r[t];_.replaceRange(C.text,d[t].head,d[t].anchor,"+insert");var m=_.listSelections().slice(0);m[t]={head:C.newPos,anchor:C.newPos},_.setSelections(m),!E&&C.indent&&(_.indentLine(C.newPos.line,null,!0),_.indentLine(C.newPos.line+1,null,!0))}}function y(_,d){for(var r=_.listSelections(),u=[],t=d?"/":"",a=_.getOption("autoCloseTags"),n=typeof a=="object"&&a.dontIndentOnSlash,i=0;i"&&(O+=">"),u[i]=O}if(_.replaceSelections(u),r=_.listSelections(),!n)for(var i=0;i=0&&d[h]==r;h--)++i;u=n.to;for(var h=1;h0){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:"",d=[],r=0;r=50,title:Ue.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:function(){le(Ue)}}," ",n.a.createElement(W.a,null)," \u6DFB\u52A0\u7EC4\u5458 ")):null):null)}))},k=o("9kvl"),G=o("ju9d");function ne(q){var me=q.children;return n.a.createElement("div",{className:"no-data"},n.a.createElement("img",{src:S.a,alt:"no-data",width:300}),me)}var fe={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},de;(function(q){q[q.INITDATA=0]="INITDATA",q[q.SHOWLOADING=1]="SHOWLOADING",q[q.SHOWFORMPANEL=2]="SHOWFORMPANEL",q[q.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",q[q.SELECTGROUP=4]="SELECTGROUP",q[q.SETINDEX=5]="SETINDEX"})(de||(de={}));function xe(q,me){switch(me.type){case de.INITDATA:return Object(s.a)(Object(s.a)({},q),me.payload);case de.SHOWLOADING:return Object(s.a)(Object(s.a)({},q),{},{loading:me.payload});case de.SETINDEX:return Object(s.a)(Object(s.a)({},q),{},{index:me.payload});case de.SHOWFORMPANEL:return Object(s.a)(Object(s.a)({},q),me.payload);case de.SHOWMEMBERPANEL:return Object(s.a)(Object(s.a)({},q),me.payload);case de.SELECTGROUP:return Object(s.a)(Object(s.a)({},q),{},{selectedGroup:me.payload,showFormPanel:!0});default:throw new Error}}function Oe(q){var me,re=q.user,ie=Object(a.useReducer)(xe,fe),we=Object(_.a)(ie,2),le=we[0],$=we[1],J=le.data,te=le.index,De=le.loading,Te=le.showFormPanel,ke=le.selectedGroup,tt=le.showMemberPanel,ot=(me=re.userInfo)===null||me===void 0?void 0:me.role,gt=Object(a.useMemo)(function(){var Ot=[],Bt=[],an=Object(w.a)(J),Kt;try{for(an.s();!(Kt=an.n()).done;){var bt=Kt.value;bt.is_creat?Ot.push(bt):Bt.push(bt)}}catch(Be){an.e(Be)}finally{an.f()}return[Ot,Bt]},[J]);Object(a.useEffect)(function(){ot===15&&$({type:de.SETINDEX,payload:1})},[ot]);function Et(){return xt.apply(this,arguments)}function xt(){return xt=Object(f.a)(t.a.mark(function Ot(){var Bt;return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,v();case 2:Bt=Kt.sent,$({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Bt.groups}});case 4:case"end":return Kt.stop()}},Ot)})),xt.apply(this,arguments)}Object(a.useEffect)(function(){Et()},[]);function St(Ot){return Je.apply(this,arguments)}function Je(){return Je=Object(f.a)(t.a.mark(function Ot(Bt){return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(!ke.id){Kt.next=5;break}return Kt.next=3,R(ke.id,Bt);case 3:Kt.next=7;break;case 5:return Kt.next=7,P(Bt);case 7:Et();case 8:case"end":return Kt.stop()}},Ot)})),Je.apply(this,arguments)}function Ue(){$({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ft(Ot){$({type:de.SELECTGROUP,payload:Ot})}function kt(){$({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function ht(){$({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function _t(Ot){$({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Ot}})}function Qe(Ot,Bt){return He.apply(this,arguments)}function He(){return He=Object(f.a)(t.a.mark(function Ot(Bt,an){return t.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,m(Bt,an);case 2:Et();case 3:case"end":return bt.stop()}},Ot)})),He.apply(this,arguments)}function Ge(Ot){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(f.a)(t.a.mark(function Ot(Bt){return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,T(Bt);case 2:Et();case 3:case"end":return Kt.stop()}},Ot)})),Ee.apply(this,arguments)}function Ae(Ot){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(f.a)(t.a.mark(function Ot(Bt){return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,C(Bt);case 2:Et();case 3:case"end":return Kt.stop()}},Ot)})),Fe.apply(this,arguments)}function We(Ot){$({type:de.SETINDEX,payload:parseInt(Ot.target.id,10)})}function Ke(Ot,Bt){return st.apply(this,arguments)}function st(){return st=Object(f.a)(t.a.mark(function Ot(Bt,an){return t.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return ht(),bt.next=3,E({user_ids:Bt,group_id:an});case 3:Et();case 4:case"end":return bt.stop()}},Ot)})),st.apply(this,arguments)}return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"teaching-circling-container"},n.a.createElement("h3",null," \u6559\u7814\u56E2\u961F ",ot<=12&&n.a.createElement(g.a,{type:"primary",disabled:J.length>=50,title:J.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:Ue},"\u65B0\u5EFA")," "),n.a.createElement("div",{className:"teaching-circling-body"},ot===15?null:n.a.createElement("ul",{className:"navs"},n.a.createElement("li",{className:te===0?"active":""},n.a.createElement("a",{id:"0",onClick:We},"\u6211\u521B\u5EFA\u7684")),n.a.createElement("li",{className:te===1?"active":""},n.a.createElement("a",{id:"1",onClick:We},"\u6211\u52A0\u5165\u7684"))),n.a.createElement("div",{className:gt[te].length===0?"nodata-content":"main-content"},gt[te].length===0?n.a.createElement(ne,null,ot<=12?n.a.createElement(n.a.Fragment,null," ",n.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")," ",n.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")," "):n.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 ")):n.a.createElement(B,{onExitGroup:Ae,onPlusMember:_t,onDelMember:Qe,onDelGroup:Ge,isAdminOrTeacher:ot<=12,onChangeGroupName:ft,data:gt[te]}))),n.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 ")),n.a.createElement(N,{callback:St,visible:Te,onCancel:kt,id:ke.id,name:ke.name}),n.a.createElement(l.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:tt,onCancel:ht,footer:null,width:1100,bodyStyle:{minHeight:200}},n.a.createElement(G.a,{container_id:ke.id,container_type:4,onSelect:Ke,onCancel:ht})))}var ce=Object(k.a)(function(q){var me=q.user;return{user:me}})(Oe),be=o("SLjR"),ve=o("55Ip"),ue=r.a.Group,se=Y.a=function(q){var me=q.onSelect,re=q.onCancel,ie=Object(a.useState)([]),we=Object(_.a)(ie,2),le=we[0],$=we[1],J=Object(a.useState)(!0),te=Object(_.a)(J,2),De=te[0],Te=te[1];Object(a.useEffect)(function(){function ot(){return gt.apply(this,arguments)}function gt(){return gt=Object(f.a)(t.a.mark(function Et(){var xt,St;return t.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(i.c)("teach_groups/my.json");case 2:xt=Ue.sent,St=xt.groups,$(St),Te(!1);case 6:case"end":return Ue.stop()}},Et)})),gt.apply(this,arguments)}ot()},[]);var ke=Object(a.useMemo)(function(){var ot=[],gt=[],Et=Object(w.a)(le),xt;try{for(Et.s();!(xt=Et.n()).done;){var St=xt.value;St.is_creat?ot.push(St):gt.push(St)}}catch(Je){Et.e(Je)}finally{Et.f()}return[ot,gt]},[le]);function tt(ot){me(ot)}return n.a.createElement(b.a,{className:"select-teach-group",onFinish:tt},De?n.a.createElement(x.a,{paragraph:!0}):le.length===0?n.a.createElement(ne,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",n.a.createElement(ve.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):n.a.createElement(n.a.Fragment,null,n.a.createElement(b.a.Item,{name:"group_id"},n.a.createElement(ue,null,n.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),n.a.createElement("ul",{className:"groups"},ke[0].map(function(ot){return n.a.createElement("li",{key:ot.id},n.a.createElement(r.a,{value:ot.id},ot.name))})),n.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),n.a.createElement("ul",{className:"groups"},ke[1].map(function(ot){return n.a.createElement("li",{key:ot.id},n.a.createElement(r.a,{value:ot.id},ot.name))})))),n.a.createElement("div",{className:"btn-actions"},n.a.createElement(g.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),n.a.createElement(g.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(M,Y,o){(function(L,g){M.exports=g()})(this,function(){"use strict";function L(Qe,He){for(var Ge=0;GeQe.length)&&(He=Qe.length);for(var Ge=0,Ee=new Array(He);Ge=Qe.length?{done:!0}:{done:!1,value:Qe[Ee++]}}}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 Ge=Qe[Symbol.iterator](),Ge.next.bind(Ge)}function x(Qe,He){return He={exports:{}},Qe(He,He.exports),He.exports}var w=x(function(Qe){function He(){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 Ge(Ee){Qe.exports.defaults=Ee}Qe.exports={defaults:He(),getDefaults:He,changeDefaults:Ge}}),f=w.defaults,_=w.getDefaults,d=w.changeDefaults,r=/[&<>"']/,u=/[&<>"']/g,t=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},i=function(He){return n[He]};function h(Qe,He){if(He){if(r.test(Qe))return Qe.replace(u,i)}else if(t.test(Qe))return Qe.replace(a,i);return Qe}var l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Qe){return Qe.replace(l,function(He,Ge){return Ge=Ge.toLowerCase(),Ge==="colon"?":":Ge.charAt(0)==="#"?Ge.charAt(1)==="x"?String.fromCharCode(parseInt(Ge.substring(2),16)):String.fromCharCode(+Ge.substring(1)):""})}var p=/(^|[^\[])\^/g;function O(Qe,He){Qe=Qe.source||Qe,He=He||"";var Ge={replace:function(Ae,Fe){return Fe=Fe.source||Fe,Fe=Fe.replace(p,"$1"),Qe=Qe.replace(Ae,Fe),Ge},getRegex:function(){return new RegExp(Qe,He)}};return Ge}var S=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Qe,He,Ge){if(Qe){var Ee;try{Ee=decodeURIComponent(s(Ge)).replace(S,"").toLowerCase()}catch(Ae){return null}if(Ee.indexOf("javascript:")===0||Ee.indexOf("vbscript:")===0||Ee.indexOf("data:")===0)return null}He&&!v.test(Ge)&&(Ge=T(He,Ge));try{Ge=encodeURI(Ge).replace(/%25/g,"%")}catch(Ae){return null}return Ge}var R={},E=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(Qe,He){R[" "+Qe]||(E.test(Qe)?R[" "+Qe]=Qe+"/":R[" "+Qe]=z(Qe,"/",!0)),Qe=R[" "+Qe];var Ge=Qe.indexOf(":")===-1;return He.substring(0,2)==="//"?Ge?He:Qe.replace(C,"$1")+He:He.charAt(0)==="/"?Ge?He:Qe.replace(m,"$1")+He:Qe+He}var I={exec:function(){}};function D(Qe){for(var He=1,Ge,Ee;He=0&&Ke[Ot]==="\\";)st=!st;return st?"|":" |"}),Ee=Ge.split(/ \|/),Ae=0;if(Ee.length>He)Ee.splice(He);else for(;Ee.length=Ee.length?Ae.slice(Ee.length):Ae}).join(`
`)}var Oe=function(){function Qe(Ge){this.options=Ge||B}var He=Qe.prototype;return He.space=function(Ee){var Ae=this.rules.block.newline.exec(Ee);if(Ae)return Ae[0].length>1?{type:"space",raw:Ae[0]}:{raw:`
`}},He.code=function(Ee,Ae){var Fe=this.rules.block.code.exec(Ee);if(Fe){var We=Ae[Ae.length-1];if(We&&We.type==="paragraph")return{raw:Fe[0],text:Fe[0].trimRight()};var Ke=Fe[0].replace(/^ {4}/gm,"");return{type:"code",raw:Fe[0],codeBlockStyle:"indented",text:this.options.pedantic?Ke:k(Ke,`
`)}}},He.fences=function(Ee){var Ae=this.rules.block.fences.exec(Ee);if(Ae){var Fe=Ae[0],We=xe(Fe,Ae[3]||"");return{type:"code",raw:Fe,lang:Ae[2]?Ae[2].trim():Ae[2],text:We}}},He.heading=function(Ee){var Ae=this.rules.block.heading.exec(Ee);if(Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},He.nptable=function(Ee){var Ae=this.rules.block.nptable.exec(Ee);if(Ae){var Fe={type:"table",header:G(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(`
`):[],raw:Ae[0]};if(Fe.header.length===Fe.align.length){var We=Fe.align.length,Ke;for(Ke=0;Ke ?/gm,"");return{type:"blockquote",raw:Ae[0],text:Fe}}},He.list=function(Ee){var Ae=this.rules.block.list.exec(Ee);if(Ae){for(var Fe=Ae[0],We=Ae[2],Ke=We.length>1,st=We[We.length-1]===")",Ot={type:"list",raw:Fe,ordered:Ke,start:Ke?+We.slice(0,-1):"",loose:!1,items:[]},Bt=Ae[0].match(this.rules.block.item),an=!1,Kt,bt,Be,at,it,Me,Ye,ut=Bt.length,mt=0;mt1||this.options.smartLists&&Be!==We)&&(at=Bt.slice(mt+1).join(`
`),Ot.raw=Ot.raw.substring(0,Ot.raw.length-at.length),mt=ut-1)),it=an||/\n\n(?!\s*$)/.test(Kt),mt!==ut-1&&(an=Kt.charAt(Kt.length-1)===`
`,it||(it=an)),it&&(Ot.loose=!0),Me=/^\[[ xX]\] /.test(Kt),Ye=void 0,Me&&(Ye=Kt[1]!==" ",Kt=Kt.replace(/^\[[ xX]\] +/,"")),Ot.items.push({type:"list_item",raw:Fe,task:Me,checked:Ye,loose:it,text:Kt});return Ot}},He.html=function(Ee){var Ae=this.rules.block.html.exec(Ee);if(Ae)return{type:this.options.sanitize?"paragraph":"html",raw:Ae[0],pre:!this.options.sanitizer&&(Ae[1]==="pre"||Ae[1]==="script"||Ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ae[0]):ne(Ae[0]):Ae[0]}},He.def=function(Ee){var Ae=this.rules.block.def.exec(Ee);if(Ae){Ae[3]&&(Ae[3]=Ae[3].substring(1,Ae[3].length-1));var Fe=Ae[1].toLowerCase().replace(/\s+/g," ");return{tag:Fe,raw:Ae[0],href:Ae[2],title:Ae[3]}}},He.table=function(Ee){var Ae=this.rules.block.table.exec(Ee);if(Ae){var Fe={type:"table",header:G(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(`
`):[]};if(Fe.header.length===Fe.align.length){Fe.raw=Ae[0];var We=Fe.align.length,Ke;for(Ke=0;Ke/i.test(We[0])&&(Ae=!1),!Fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(We[0])?Fe=!0:Fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(We[0])&&(Fe=!1),{type:this.options.sanitize?"text":"html",raw:We[0],inLink:Ae,inRawBlock:Fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):ne(We[0]):We[0]}},He.link=function(Ee){var Ae=this.rules.inline.link.exec(Ee);if(Ae){var Fe=fe(Ae[2],"()");if(Fe>-1){var We=Ae[0].indexOf("!")===0?5:4,Ke=We+Ae[1].length+Fe;Ae[2]=Ae[2].substring(0,Fe),Ae[0]=Ae[0].substring(0,Ke).trim(),Ae[3]=""}var st=Ae[2],Ot="";if(this.options.pedantic){var Bt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(st);Bt?(st=Bt[1],Ot=Bt[3]):Ot=""}else Ot=Ae[3]?Ae[3].slice(1,-1):"";st=st.trim().replace(/^<([\s\S]*)>$/,"$1");var an=de(Ae,{href:st&&st.replace(this.rules.inline._escapes,"$1"),title:Ot&&Ot.replace(this.rules.inline._escapes,"$1")},Ae[0]);return an}},He.reflink=function(Ee,Ae){var Fe;if((Fe=this.rules.inline.reflink.exec(Ee))||(Fe=this.rules.inline.nolink.exec(Ee))){var We=(Fe[2]||Fe[1]).replace(/\s+/g," ");if(We=Ae[We.toLowerCase()],!We||!We.href){var Ke=Fe[0].charAt(0);return{type:"text",raw:Ke,text:Ke}}var st=de(Fe,We,Fe[0]);return st}},He.strong=function(Ee,Ae,Fe){Fe===void 0&&(Fe="");var We=this.rules.inline.strong.start.exec(Ee);if(We&&(!We[1]||We[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ae=Ae.slice(-1*Ee.length);var Ke=We[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ke.lastIndex=0;for(var st;(We=Ke.exec(Ae))!=null;)if(st=this.rules.inline.strong.middle.exec(Ae.slice(0,We.index+3)),st)return{type:"strong",raw:Ee.slice(0,st[0].length),text:Ee.slice(2,st[0].length-2)}}},He.em=function(Ee,Ae,Fe){Fe===void 0&&(Fe="");var We=this.rules.inline.em.start.exec(Ee);if(We&&(!We[1]||We[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ae=Ae.slice(-1*Ee.length);var Ke=We[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ke.lastIndex=0;for(var st;(We=Ke.exec(Ae))!=null;)if(st=this.rules.inline.em.middle.exec(Ae.slice(0,We.index+2)),st)return{type:"em",raw:Ee.slice(0,st[0].length),text:Ee.slice(1,st[0].length-1)}}},He.codespan=function(Ee){var Ae=this.rules.inline.code.exec(Ee);if(Ae){var Fe=Ae[2].replace(/\n/g," "),We=/[^ ]/.test(Fe),Ke=Fe.startsWith(" ")&&Fe.endsWith(" ");return We&&Ke&&(Fe=Fe.substring(1,Fe.length-1)),Fe=ne(Fe,!0),{type:"codespan",raw:Ae[0],text:Fe}}},He.br=function(Ee){var Ae=this.rules.inline.br.exec(Ee);if(Ae)return{type:"br",raw:Ae[0]}},He.del=function(Ee){var Ae=this.rules.inline.del.exec(Ee);if(Ae)return{type:"del",raw:Ae[0],text:Ae[1]}},He.autolink=function(Ee,Ae){var Fe=this.rules.inline.autolink.exec(Ee);if(Fe){var We,Ke;return Fe[2]==="@"?(We=ne(this.options.mangle?Ae(Fe[1]):Fe[1]),Ke="mailto:"+We):(We=ne(Fe[1]),Ke=We),{type:"link",raw:Fe[0],text:We,href:Ke,tokens:[{type:"text",raw:We,text:We}]}}},He.url=function(Ee,Ae){var Fe;if(Fe=this.rules.inline.url.exec(Ee)){var We,Ke;if(Fe[2]==="@")We=ne(this.options.mangle?Ae(Fe[0]):Fe[0]),Ke="mailto:"+We;else{var st;do st=Fe[0],Fe[0]=this.rules.inline._backpedal.exec(Fe[0])[0];while(st!==Fe[0]);We=ne(Fe[0]),Fe[1]==="www."?Ke="http://"+We:Ke=We}return{type:"link",raw:Fe[0],text:We,href:Ke,tokens:[{type:"text",raw:We,text:We}]}}},He.inlineText=function(Ee,Ae,Fe){var We=this.rules.inline.text.exec(Ee);if(We){var Ke;return Ae?Ke=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):ne(We[0]):We[0]:Ke=ne(this.options.smartypants?Fe(We[0]):We[0]),{type:"text",raw:We[0],text:Ke}}},Qe}(),ce=K.noopTest,be=K.edit,ve=K.merge,ue={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ce,table:ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ue.def=be(ue.def).replace("label",ue._label).replace("title",ue._title).getRegex(),ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ue.item=be(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=be(ue.list).replace(/bull/g,ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ue.def.source+")").getRegex(),ue._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ue._comment=//,ue.html=be(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=be(ue._paragraph).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.blockquote=be(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=ve({},ue),ue.gfm=ve({},ue.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ue.gfm.nptable=be(ue.gfm.nptable).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.gfm.table=be(ue.gfm.table).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.pedantic=ve({},ue.normal,{html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ue._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ce,paragraph:be(ue.normal._paragraph).replace("hr",ue.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ue.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var se={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]*?(?:(?=[\\?@\\[\\]`^{|}~",se.punctuation=be(se.punctuation).replace(/punctuation/g,se._punctuation).getRegex(),se._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",se._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",se.em.start=be(se.em.start).replace(/punctuation/g,se._punctuation).getRegex(),se.em.middle=be(se.em.middle).replace(/punctuation/g,se._punctuation).replace(/overlapSkip/g,se._overlapSkip).getRegex(),se.em.endAst=be(se.em.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.em.endUnd=be(se.em.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.start=be(se.strong.start).replace(/punctuation/g,se._punctuation).getRegex(),se.strong.middle=be(se.strong.middle).replace(/punctuation/g,se._punctuation).replace(/blockSkip/g,se._blockSkip).getRegex(),se.strong.endAst=be(se.strong.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.endUnd=be(se.strong.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.blockSkip=be(se._blockSkip,"g").getRegex(),se.overlapSkip=be(se._overlapSkip,"g").getRegex(),se._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,se._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,se._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])?)+(?![-_])/,se.autolink=be(se.autolink).replace("scheme",se._scheme).replace("email",se._email).getRegex(),se._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,se.tag=be(se.tag).replace("comment",ue._comment).replace("attribute",se._attribute).getRegex(),se._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,se._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,se._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,se.link=be(se.link).replace("label",se._label).replace("href",se._href).replace("title",se._title).getRegex(),se.reflink=be(se.reflink).replace("label",se._label).getRegex(),se.reflinkSearch=be(se.reflinkSearch,"g").replace("reflink",se.reflink).replace("nolink",se.nolink).getRegex(),se.normal=ve({},se),se.pedantic=ve({},se.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:be(/^!?\[(label)\]\((.*?)\)/).replace("label",se._label).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",se._label).getRegex()}),se.gfm=ve({},se.normal,{escape:be(se.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&&(Ee="x"+Ee.toString(16)),He+=""+Ee+";";return He}var $=function(){function Qe(Ge){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ge||me,this.options.tokenizer=this.options.tokenizer||new Oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ee={block:re.normal,inline:ie.normal};this.options.pedantic?(Ee.block=re.pedantic,Ee.inline=ie.pedantic):this.options.gfm&&(Ee.block=re.gfm,this.options.breaks?Ee.inline=ie.breaks:Ee.inline=ie.gfm),this.tokenizer.rules=Ee}Qe.lex=function(Ee,Ae){var Fe=new Qe(Ae);return Fe.lex(Ee)};var He=Qe.prototype;return He.lex=function(Ee){return Ee=Ee.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ee,this.tokens,!0),this.inline(this.tokens),this.tokens},He.blockTokens=function(Ee,Ae,Fe){Ae===void 0&&(Ae=[]),Fe===void 0&&(Fe=!0),Ee=Ee.replace(/^ +$/gm,"");for(var We,Ke,st,Ot;Ee;){if(We=this.tokenizer.space(Ee)){Ee=Ee.substring(We.raw.length),We.type&&Ae.push(We);continue}if(We=this.tokenizer.code(Ee,Ae)){Ee=Ee.substring(We.raw.length),We.type?Ae.push(We):(Ot=Ae[Ae.length-1],Ot.raw+=`
`+We.raw,Ot.text+=`
`+We.text);continue}if(We=this.tokenizer.fences(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.heading(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.nptable(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.hr(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.blockquote(Ee)){Ee=Ee.substring(We.raw.length),We.tokens=this.blockTokens(We.text,[],Fe),Ae.push(We);continue}if(We=this.tokenizer.list(Ee)){for(Ee=Ee.substring(We.raw.length),st=We.items.length,Ke=0;Ke0)for(;(Bt=this.tokenizer.rules.inline.reflinkSearch.exec(Ot))!=null;)an.includes(Bt[0].slice(Bt[0].lastIndexOf("[")+1,-1))&&(Ot=Ot.slice(0,Bt.index)+"["+"a".repeat(Bt[0].length-2)+"]"+Ot.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Bt=this.tokenizer.rules.inline.blockSkip.exec(Ot))!=null;)Ot=Ot.slice(0,Bt.index)+"["+"a".repeat(Bt[0].length-2)+"]"+Ot.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ee;){if(st=this.tokenizer.escape(Ee)){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(st=this.tokenizer.tag(Ee,Fe,We)){Ee=Ee.substring(st.raw.length),Fe=st.inLink,We=st.inRawBlock,Ae.push(st);continue}if(st=this.tokenizer.link(Ee)){Ee=Ee.substring(st.raw.length),st.type==="link"&&(st.tokens=this.inlineTokens(st.text,[],!0,We)),Ae.push(st);continue}if(st=this.tokenizer.reflink(Ee,this.tokens.links)){Ee=Ee.substring(st.raw.length),st.type==="link"&&(st.tokens=this.inlineTokens(st.text,[],!0,We)),Ae.push(st);continue}if(st=this.tokenizer.strong(Ee,Ot,Ke)){Ee=Ee.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],Fe,We),Ae.push(st);continue}if(st=this.tokenizer.em(Ee,Ot,Ke)){Ee=Ee.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],Fe,We),Ae.push(st);continue}if(st=this.tokenizer.codespan(Ee)){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(st=this.tokenizer.br(Ee)){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(st=this.tokenizer.del(Ee)){Ee=Ee.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],Fe,We),Ae.push(st);continue}if(st=this.tokenizer.autolink(Ee,le)){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(!Fe&&(st=this.tokenizer.url(Ee,le))){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(st=this.tokenizer.inlineText(Ee,We,we)){Ee=Ee.substring(st.raw.length),Ke=st.raw.slice(-1),Ae.push(st);continue}if(Ee){var Kt="Infinite loop on byte: "+Ee.charCodeAt(0);if(this.options.silent){console.error(Kt);break}else throw new Error(Kt)}}return Ae},g(Qe,null,[{key:"rules",get:function(){return{block:re,inline:ie}}}]),Qe}(),J=w.defaults,te=K.cleanUrl,De=K.escape,Te=function(){function Qe(Ge){this.options=Ge||J}var He=Qe.prototype;return He.code=function(Ee,Ae,Fe){var We=(Ae||"").match(/\S*/)[0];if(this.options.highlight){var Ke=this.options.highlight(Ee,We);Ke!=null&&Ke!==Ee&&(Fe=!0,Ee=Ke)}return We?''+(Fe?Ee:De(Ee,!0))+`
`:""+(Fe?Ee:De(Ee,!0))+`
`},He.blockquote=function(Ee){return`
`+Ee+`
`},He.html=function(Ee){return Ee},He.heading=function(Ee,Ae,Fe,We){return this.options.headerIds?"
`:""+Ee+"
`},He.hr=function(){return this.options.xhtml?`
`:`
`},He.list=function(Ee,Ae,Fe){var We=Ae?"ol":"ul",Ke=Ae&&Fe!==1?' start="'+Fe+'"':"";return"<"+We+Ke+`>
`+Ee+""+We+`>
`},He.listitem=function(Ee){return""+Ee+`
`},He.checkbox=function(Ee){return" "},He.paragraph=function(Ee){return""+Ee+`
`},He.table=function(Ee,Ae){return Ae&&(Ae=""+Ae+""),`
`},He.tablerow=function(Ee){return`
`+Ee+`
`},He.tablecell=function(Ee,Ae){var Fe=Ae.header?"th":"td",We=Ae.align?"<"+Fe+' align="'+Ae.align+'">':"<"+Fe+">";return We+Ee+""+Fe+`>
`},He.strong=function(Ee){return""+Ee+""},He.em=function(Ee){return""+Ee+""},He.codespan=function(Ee){return""+Ee+""},He.br=function(){return this.options.xhtml?"
":"
"},He.del=function(Ee){return""+Ee+""},He.link=function(Ee,Ae,Fe){if(Ee=te(this.options.sanitize,this.options.baseUrl,Ee),Ee===null)return Fe;var We='"+Fe+"",We},He.image=function(Ee,Ae,Fe){if(Ee=te(this.options.sanitize,this.options.baseUrl,Ee),Ee===null)return Fe;var We='
":">",We},He.text=function(Ee){return Ee},Qe}(),ke=function(){function Qe(){}var He=Qe.prototype;return He.strong=function(Ee){return Ee},He.em=function(Ee){return Ee},He.codespan=function(Ee){return Ee},He.del=function(Ee){return Ee},He.html=function(Ee){return Ee},He.text=function(Ee){return Ee},He.link=function(Ee,Ae,Fe){return""+Fe},He.image=function(Ee,Ae,Fe){return""+Fe},He.br=function(){return""},Qe}(),tt=function(){function Qe(){this.seen={}}var He=Qe.prototype;return He.slug=function(Ee){var Ae=Ee.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ae)){var Fe=Ae;do this.seen[Fe]++,Ae=Fe+"-"+this.seen[Fe];while(this.seen.hasOwnProperty(Ae))}return this.seen[Ae]=0,Ae},Qe}(),ot=w.defaults,gt=K.unescape,Et=function(){function Qe(Ge){this.options=Ge||ot,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ke,this.slugger=new tt}Qe.parse=function(Ee,Ae){var Fe=new Qe(Ae);return Fe.parse(Ee)};var He=Qe.prototype;return He.parse=function(Ee,Ae){Ae===void 0&&(Ae=!0);var Fe="",We,Ke,st,Ot,Bt,an,Kt,bt,Be,at,it,Me,Ye,ut,mt,Pt,jt,et,Dt=Ee.length;for(We=0;We0&&mt.tokens[0].type==="text"?(mt.tokens[0].text=et+" "+mt.tokens[0].text,mt.tokens[0].tokens&&mt.tokens[0].tokens.length>0&&mt.tokens[0].tokens[0].type==="text"&&(mt.tokens[0].tokens[0].text=et+" "+mt.tokens[0].tokens[0].text)):mt.tokens.unshift({type:"text",text:et}):ut+=et),ut+=this.parse(mt.tokens,Ye),Be+=this.renderer.listitem(ut,jt,Pt);Fe+=this.renderer.list(Be,it,Me);continue}case"html":{Fe+=this.renderer.html(at.text);continue}case"paragraph":{Fe+=this.renderer.paragraph(this.parseInline(at.tokens));continue}case"text":{for(Be=at.tokens?this.parseInline(at.tokens):at.text;We+1An error occurred:
"+Je(st.message+"",!0)+"
";throw st}}ht.options=ht.setOptions=function(Qe){return xt(ht.defaults,Qe),ft(ht.defaults),ht},ht.getDefaults=Ue,ht.defaults=kt,ht.use=function(Qe){var He=xt({},Qe);if(Qe.renderer&&function(){var Ee=ht.defaults.renderer||new Te,Ae=function(Ke){var st=Ee[Ke];Ee[Ke]=function(){for(var Ot=arguments.length,Bt=new Array(Ot),an=0;an>>24)&16711935|(r[t]<<24|r[t]>>>8)&4278255360;var a=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],n=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var t=0;t<4;t++)d.call(this);for(var t=0;t<8;t++)n[t]^=a[t+4&7];if(u){var i=u.words,h=i[0],l=i[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,p=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,O=s>>>16|p&4294901760,S=p<<16|s&65535;n[0]^=s,n[1]^=O,n[2]^=p,n[3]^=S,n[4]^=s,n[5]^=O,n[6]^=p,n[7]^=S;for(var t=0;t<4;t++)d.call(this)}},_doProcessBlock:function(r,u){var t=this._X;d.call(this),x[0]=t[0]^t[5]>>>16^t[3]<<16,x[1]=t[2]^t[7]>>>16^t[5]<<16,x[2]=t[4]^t[1]>>>16^t[7]<<16,x[3]=t[6]^t[3]>>>16^t[1]<<16;for(var a=0;a<4;a++)x[a]=(x[a]<<8|x[a]>>>24)&16711935|(x[a]<<24|x[a]>>>8)&4278255360,r[u+a]^=x[a]},blockSize:128/32,ivSize:64/32});function d(){for(var r=this._X,u=this._C,t=0;t<8;t++)w[t]=u[t];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0>>0?1:0)|0,this._b=u[7]>>>0>>0?1:0;for(var t=0;t<8;t++){var a=r[t]+u[t],n=a&65535,i=a>>>16,h=((n*n>>>17)+n*i>>>15)+i*i,l=((a&4294901760)*a|0)+((a&65535)*a|0);f[t]=h^l}r[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,r[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,r[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,r[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,r[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,r[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,r[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,r[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}g.Rabbit=b._createHelper(_)}(),L.Rabbit})},E7E6:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8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CFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(M,Y){M.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var L=document.activeElement,g=[],A=0;A"+an+""}),Ke},St=function(){var We=Object(f.a)(r.a.mark(function Ke(st,Ot,Bt){var an,Kt,bt;return r.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(an=ot.current+1,ot.current=an,Kt=function(Me){var Ye=Me==null?void 0:Me.map(function(ut,mt){var Pt=ut.id,jt=ut.name,et=Object(w.a)(Object(w.a)({},ut),{},{label:t.a.createElement("ul",{id:"search-".concat(Te,"-").concat(mt),onClick:function(){return ht(Pt,et)},className:mt===Ot?h.a.searchListActive:h.a.searchList},t.a.createElement("li",{className:h.a.name,dangerouslySetInnerHTML:{__html:xt(jt,st)}}),ut.private&&t.a.createElement("li",{className:h.a.tag},"\u79C1\u6709"))});return et});return Ye},!Bt){at.next=7;break}return bt=Kt(gt.current),we(bt),at.abrupt("return");case 7:clearTimeout(tt.current),tt.current=setTimeout(Object(f.a)(r.a.mark(function it(){var Me,Ye,ut,mt;return r.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(p.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:st,page:1,limit:1e5}});case 2:Me=jt.sent,(Me==null?void 0:Me.status)===0&&(ut=Kt((Me==null||((Ye=Me.data)===null||Ye===void 0)?void 0:Ye.mirrors)||[]),an===ot.current&&(we(ut),gt.current=Object(O.cloneDeep)((Me==null||((mt=Me.data)===null||mt===void 0)?void 0:mt.mirrors)||[])));case 4:case"end":return jt.stop()}},it)})),300);case 9:case"end":return at.stop()}},Ke)}));return function(st,Ot,Bt){return We.apply(this,arguments)}}(),Je=function(Ke){var st=document.getElementById("scroll-".concat(Te,"-").concat(Ke));if(!st)return;var Ot=document.getElementById("scroll-".concat(Te));Ot.scrollTo(0,st.offsetTop)},Ue=function(Ke,st){var Ot=document.getElementById("search-".concat(Te,"-").concat(Ke));if(!Ot)return;var Bt=document.getElementById("search-".concat(Te)),an=Ot.offsetTop-Bt.scrollTop>0&&Ot.offsetTop-Bt.scrollTop`,triples:"",explode:"[]{}"},A=L.Pos;L.defineOption("autoCloseBrackets",!1,function(n,i,h){h&&h!=L.Init&&(n.removeKeyMap(y),n.state.closeBrackets=null),i&&(x(b(i,"pairs")),n.state.closeBrackets=i,n.addKeyMap(y))});function b(n,i){return i=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[i]!=null?n[i]:g[i]}var y={Backspace:_,Enter:d};function x(n){for(var i=0;i=0;s--){var O=l[s].head;n.replaceRange("",A(O.line,O.ch-1),A(O.line,O.ch+1),"+delete")}}function d(n){var i=f(n),h=i&&b(i,"explode");if(!h||n.getOption("disableInput"))return L.Pass;for(var l=n.listSelections(),s=0;s0;return{anchor:new A(n.anchor.line,n.anchor.ch+(i?-1:1)),head:new A(n.head.line,n.head.ch+(i?1:-1))}}function u(n,i){var h=f(n);if(!h||n.getOption("disableInput"))return L.Pass;var l=b(h,"pairs"),s=l.indexOf(i);if(s==-1)return L.Pass;for(var p=b(h,"closeBefore"),O=b(h,"triples"),S=l.charAt(s+1)==i,v=n.listSelections(),P=s%2==0,R,E=0;E=0&&n.getRange(m,A(m.line,m.ch+3))==i+i+i?T="skipThree":T="skip";else if(S&&m.ch>1&&O.indexOf(i)>=0&&n.getRange(A(m.line,m.ch-2),m)==i+i){if(m.ch>2&&/\bstring/.test(n.getTokenTypeAt(A(m.line,m.ch-2))))return L.Pass;T="addFour"}else if(S){var D=m.ch==0?" ":n.getRange(A(m.line,m.ch-1),m);if(!L.isWordChar(I)&&D!=i&&!L.isWordChar(D))T="both";else return L.Pass}else if(P&&(I.length===0||/\s/.test(I)||p.indexOf(I)>-1))T="both";else return L.Pass;if(!R)R=T;else if(R!=T)return L.Pass}var N=s%2?l.charAt(s-1):i,z=s%2?i:l.charAt(s+1);n.operation(function(){if(R=="skip")n.execCommand("goCharRight");else if(R=="skipThree")for(var F=0;F<3;F++)n.execCommand("goCharRight");else if(R=="surround"){for(var W=n.getSelections(),F=0;F>>24)&16711935|(R<<24|R>>>8)&4278255360}var E=this._hash.words,C=u.words,m=t.words,T=f.words,I=_.words,D=d.words,N=r.words,z,F,W,K,B,k,G,ne,fe,de;k=z=E[0],G=F=E[1],ne=W=E[2],fe=K=E[3],de=B=E[4];for(var xe,v=0;v<80;v+=1)xe=z+O[S+T[v]]|0,v<16?xe+=n(F,W,K)+C[0]:v<32?xe+=i(F,W,K)+C[1]:v<48?xe+=h(F,W,K)+C[2]:v<64?xe+=l(F,W,K)+C[3]:xe+=s(F,W,K)+C[4],xe=xe|0,xe=p(xe,D[v]),xe=xe+B|0,z=B,B=K,K=p(W,10),W=F,F=xe,xe=k+O[S+I[v]]|0,v<16?xe+=s(G,ne,fe)+m[0]:v<32?xe+=l(G,ne,fe)+m[1]:v<48?xe+=h(G,ne,fe)+m[2]:v<64?xe+=i(G,ne,fe)+m[3]:xe+=n(G,ne,fe)+m[4],xe=xe|0,xe=p(xe,N[v]),xe=xe+de|0,k=de,de=fe,fe=p(ne,10),ne=G,G=xe;xe=E[1]+W+fe|0,E[1]=E[2]+K+de|0,E[2]=E[3]+B+k|0,E[3]=E[4]+z+G|0,E[4]=E[0]+F+ne|0,E[0]=xe},_doFinalize:function(){var O=this._data,S=O.words,v=this._nDataBytes*8,P=O.sigBytes*8;S[P>>>5]|=128<<24-P%32,S[(P+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,O.sigBytes=(S.length+1)*4,this._process();for(var R=this._hash,E=R.words,C=0;C<5;C++){var m=E[C];E[C]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360}return R},clone:function(){var O=x.clone.call(this);return O._hash=this._hash.clone(),O}});function n(O,S,v){return O^S^v}function i(O,S,v){return O&S|~O&v}function h(O,S,v){return(O|~S)^v}function l(O,S,v){return O&v|S&~v}function s(O,S,v){return O^(S|~v)}function p(O,S){return O<>>32-S}A.RIPEMD160=x._createHelper(a),A.HmacRIPEMD160=x._createHmacHelper(a)}(Math),L.RIPEMD160})},ETIr:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.WordArray,y=g.enc,x=y.Base64={stringify:function(f){var _=f.words,d=f.sigBytes,r=this._map;f.clamp();for(var u=[],t=0;t>>2]>>>24-t%4*8&255,n=_[t+1>>>2]>>>24-(t+1)%4*8&255,i=_[t+2>>>2]>>>24-(t+2)%4*8&255,h=a<<16|n<<8|i,l=0;l<4&&t+l*.75>>6*(3-l)&63));var s=r.charAt(64);if(s)for(;u.length%4;)u.push(s);return u.join("")},parse:function(f){var _=f.length,d=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var u=0;u>>6-t%4*2,i=a|n;r[u>>>2]|=i<<24-u%4*8,u++}return b.create(r,u)}}(),L.enc.Base64})},EkPF:function(M,Y,o){M.exports={practiceSetting:"practiceSetting___2ttNt",wrapHeader:"wrapHeader___2dgOY",wrapLayout:"wrapLayout___3zol1",wrapSidebar:"wrapSidebar___3imKs",wrapContent:"wrapContent___3L8H_"}},"F+F2":function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(){if(typeof ArrayBuffer!="function")return;var g=L,A=g.lib,b=A.WordArray,y=b.init,x=b.init=function(w){if(w instanceof ArrayBuffer&&(w=new Uint8Array(w)),(w instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&w instanceof Uint8ClampedArray||w instanceof Int16Array||w instanceof Uint16Array||w instanceof Int32Array||w instanceof Uint32Array||w instanceof Float32Array||w instanceof Float64Array)&&(w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength)),w instanceof Uint8Array){for(var f=w.byteLength,_=[],d=0;d>>2]|=w[d]<<24-d%4*8;y.call(this,_,f)}else y.apply(this,arguments)};x.prototype=b}(),L.lib.WordArray})},FOrL:function(M,Y,o){M.exports=o.p+"static/nodata.a6b3f948.png"},FPkq:function(M,Y,o){M.exports=o.p+"static/qrCode.dd0fe9b2.png"},FTkQ:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg=="},Fhpe:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___1W7Bl",flex_space_between:"flex_space_between___3S4Sp",flex_box_vertical_center:"flex_box_vertical_center___5mGEA",flex_box_center_end:"flex_box_center_end___1blqp",flex_box_column:"flex_box_column___4i1E0",CustomCss:"CustomCss___3thFA",CustomTipsModalCss:"CustomTipsModalCss___2aNwC",dropdownmenus:"dropdownmenus___19dGk",popupClassNames:"popupClassNames___3LOFQ",selectdown:"selectdown___1_utH"}},FrRK:function(M,Y,o){"use strict";var L=o("+L6B"),g=o("2/Rp"),A=o("DZo9"),b=o("8z0m"),y=o("miYZ"),x=o("tsqr"),w=o("9og8"),f=o("2qtc"),_=o("kLXV"),d=o("y8nQ"),r=o("Vl3Y"),u=o("tJVT"),t=o("PpiC"),a=o("5NDa"),n=o("5rEg"),i=o("WmNS"),h=o.n(i),l=o("q1tI"),s=o.n(l),p=o("9kvl"),O=o("m3rI"),S=o("FPkq"),v=o.n(S),P=o("qB8g"),R=o.n(P),E=n.a.TextArea,C=function(T){var I=T.newShixuns,D=T.globalSetting,N=T.loading,z=T.dispatch,F=Object(t.a)(T,["newShixuns","globalSetting","loading","dispatch"]),W=r.a.useForm(),K=Object(u.a)(W,1),B=K[0],k=Object(l.useState)([]),G=Object(u.a)(k,2),ne=G[0],fe=G[1],de=function(ue){var se=["uploading","done","removed"];se.includes(ue.file.status)&&fe(ue.fileList)},xe=function(ue){if(!ue.percent||ue.percent==100){var se,q=(se=ue.response)===null||se===void 0?void 0:se.id;return _.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var me=Object(w.a)(h.a.mark(function ie(){var we;return h.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,z({type:"newShixuns/deleteAttachment",payload:{id:q}});case 2:we=$.sent,we&&fe(ne.filter(function(J){var te;return((te=J.response)===null||te===void 0?void 0:te.id)!==q}));case 4:case"end":return $.stop()}},ie)}));function re(){return me.apply(this,arguments)}return re}()}),!1}},Oe=function(ue){if(ne.length)return!1;var se=ue.size/1024/1024>50;return se?(x.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},ce=function(){var ve=Object(w.a)(h.a.mark(function ue(se){var q,me,re,ie,we,le,$,J;return h.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return re=se||{},ie=re.language,we=re.env,le=re.mode,$=re.code,De.next=3,z({type:"newShixuns/applyShixunMirror",payload:{language:ie,runtime:we,run_method:le,attachment_id:ne==null||((q=ne[0])===null||q===void 0||((me=q.response)===null||me===void 0))?void 0:me.id}});case 3:J=De.sent,z({type:"newShixuns/setActionTabs",payload:{}}),J&&x.b.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002");case 6:case"end":return De.stop()}},ue)}));return function(se){return ve.apply(this,arguments)}}(),be=function(){B.resetFields(),fe([])};return s.a.createElement(_.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:I.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:be},s.a.createElement("section",{className:R.a.qrCode},s.a.createElement("aside",{className:R.a.a1},s.a.createElement("div",{className:R.a.code},s.a.createElement("img",{width:120,height:120,src:v.a,alt:"\u4E8C\u7EF4\u7801"})),s.a.createElement("div",{className:R.a.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),s.a.createElement("div",{className:R.a.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),s.a.createElement("aside",{className:R.a.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",s.a.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),s.a.createElement(r.a,{className:R.a.formWrap,form:B,labelCol:{span:4},wrapperCol:{span:20},onFinish:ce},s.a.createElement(r.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},s.a.createElement(E,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),s.a.createElement(r.a.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},s.a.createElement(E,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),s.a.createElement(r.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},s.a.createElement(E,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),s.a.createElement(r.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},s.a.createElement("div",{className:R.a.upload},s.a.createElement(b.a,{fileList:ne,action:"".concat(O.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:de,onRemove:xe,beforeUpload:Oe,withCredentials:!0},s.a.createElement("span",{className:"".concat(R.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),s.a.createElement("span",{className:"".concat(R.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),s.a.createElement("div",{className:R.a.footerWrap},s.a.createElement(r.a.Item,null,s.a.createElement(g.a,{className:"mr5",size:"large",onClick:function(){z({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(g.a,{size:"large",type:"primary",htmlType:"submit",loading:N["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};Y.a=Object(p.a)(function(m){var T=m.newShixuns,I=m.loading,D=m.globalSetting;return{newShixuns:T,globalSetting:D,loading:I.effects}})(C)},Fxgj:function(M,Y,o){},GABl:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mF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rL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GRuw:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("lPiR"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.WordArray,y=g.algo,x=y.SHA256,w=y.SHA224=x.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var f=x._doFinalize.call(this);return f.sigBytes-=4,f}});g.SHA224=x._createHelper(w),g.HmacSHA224=x._createHmacHelper(w)}(),L.SHA224})},GfqC:function(M,Y,o){"use strict";var L=o("q1tI"),g=o.n(L),A=o("TSYQ"),b=o.n(A);function y(K,B){var k="cannot "+K.method+" "+K.action+" "+B.status+"'",G=new Error(k);return G.status=B.status,G.method=K.method,G.url=K.action,G}function x(K){var B=K.responseText||K.response;if(!B)return B;try{return JSON.parse(B)}catch(k){return B}}function w(K){var B=new XMLHttpRequest;K.onProgress&&B.upload&&(B.upload.onprogress=function(fe){fe.total>0&&(fe.percent=fe.loaded/fe.total*100),K.onProgress(fe)});var k=new FormData;K.data&&Object.keys(K.data).forEach(function(ne){var fe=K.data[ne];if(Array.isArray(fe)){fe.forEach(function(de){k.append(ne+"[]",de)});return}k.append(ne,K.data[ne])}),K.file instanceof Blob?k.append(K.filename,K.file,K.file.name):k.append(K.filename,K.file),B.onerror=function(fe){K.onError(fe)},B.onload=function(){return B.status<200||B.status>=300?K.onError(y(K,B),x(B)):K.onSuccess(x(B),B)},B.open(K.method,K.action,!0),K.withCredentials&&"withCredentials"in B&&(B.withCredentials=!0);var G=K.headers||{};return G["X-Requested-With"]!==null&&B.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(G).forEach(function(ne){G[ne]!==null&&B.setRequestHeader(ne,G[ne])}),B.send(k),{abort:function(){B.abort()}}}var f=+new Date,_=0;function d(){return"rc-upload-"+f+"-"+ ++_}function r(K,B){return K.indexOf(B,K.length-B.length)!==-1}var u=function(K,B){if(K&&B){var k=Array.isArray(B)?B:B.split(","),G=K.name||"",ne=K.type||"",fe=ne.replace(/\/.*$/,"");return k.some(function(de){var xe=de.trim();return xe.charAt(0)==="."?r(G.toLowerCase(),xe.toLowerCase()):/\/\*$/.test(xe)?fe===xe.replace(/\/.*$/,""):ne===xe})}return!0};function t(K,B){var k=K.createReader(),G=[];function ne(){k.readEntries(function(fe){var de=Array.prototype.slice.apply(fe);G=G.concat(de);var xe=!de.length;xe?B(G):ne()})}ne()}var a=function(B,k,G){var ne=function fe(de,xe){xe=xe||"",de.isFile?de.file(function(Oe){G(Oe)&&(de.fullPath&&!Oe.webkitRelativePath&&(Object.defineProperties(Oe,{webkitRelativePath:{writable:!0}}),Oe.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(Oe,{webkitRelativePath:{writable:!1}})),k([Oe]))}):de.isDirectory&&t(de,function(Oe){Oe.forEach(function(ce){fe(ce,""+xe+de.name+"/")})})};B.forEach(function(fe){ne(fe.webkitGetAsEntry())})},n=a,i=Object.assign||function(K){for(var B=1;B=0)continue;if(!Object.prototype.hasOwnProperty.call(K,G))continue;k[G]=K[G]}return k}function O(K,B){if(!(K instanceof B))throw new TypeError("Cannot call a class as a function")}function S(K,B){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:K}function v(K,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);K.prototype=Object.create(B&&B.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(K,B):K.__proto__=B)}var P=function(B){return Object.keys(B).reduce(function(k,G){return(G.substr(0,5)==="data-"||G.substr(0,5)==="aria-"||G==="role")&&(k[G]=B[G]),k},{})},R=function(K){v(B,K);function B(){var k,G,ne,fe;O(this,B);for(var de=arguments.length,xe=Array(de),Oe=0;Oe>>2]>>>24-P%4*8&255;p[S+P>>>2]|=R<<24-(S+P)%4*8}else for(var E=0;E>>2]=O[E>>>2];return this.sigBytes+=v,this},clamp:function(){var s=this.words,p=this.sigBytes;s[p>>>2]&=4294967295<<32-p%4*8,s.length=A.ceil(p/4)},clone:function(){var s=d.clone.call(this);return s.words=this.words.slice(0),s},random:function(s){for(var p=[],O=0;O>>2]>>>24-v%4*8&255;S.push((P>>>4).toString(16)),S.push((P&15).toString(16))}return S.join("")},parse:function(s){for(var p=s.length,O=[],S=0;S>>3]|=parseInt(s.substr(S,2),16)<<24-S%8*4;return new r.init(O,p/2)}},a=u.Latin1={stringify:function(s){for(var p=s.words,O=s.sigBytes,S=[],v=0;v>>2]>>>24-v%4*8&255;S.push(String.fromCharCode(P))}return S.join("")},parse:function(s){for(var p=s.length,O=[],S=0;S>>2]|=(s.charCodeAt(S)&255)<<24-S%4*8;return new r.init(O,p)}},n=u.Utf8={stringify:function(s){try{return decodeURIComponent(escape(a.stringify(s)))}catch(p){throw new Error("Malformed UTF-8 data")}},parse:function(s){return a.parse(unescape(encodeURIComponent(s)))}},i=_.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(s){typeof s=="string"&&(s=n.parse(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes},_process:function(s){var p,O=this._data,S=O.words,v=O.sigBytes,P=this.blockSize,R=P*4,E=v/R;s?E=A.ceil(E):E=A.max((E|0)-this._minBufferSize,0);var C=E*P,m=A.min(C*4,v);if(C){for(var T=0;T=7){x.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}I(me.target.value)}})),a.a.createElement("div",{className:"mt10 font14"},a.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),a.a.createElement(g.a.Group,{value:z,onChange:function(me){return F(me)}},a.a.createElement(g.a,{value:s.Professor,disabled:z.includes(2)||z.includes(3)},"\u6559\u5E08"),a.a.createElement(g.a,{value:s.AssistantProfessor,disabled:z.includes(1)},"\u52A9\u6559"),a.a.createElement(g.a,{value:s.Student,disabled:z.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),a.a.createElement(h.a,{visible:fe,onCancel:function(){return de(!1)},occupationValue:ce}))};Y.a=Object(n.a)(function(O){var S=O.user;return{user:S}})(p)},Jq4h:function(M,Y,o){M.exports=o.p+"static/qrcode.2267e4d5.png"},Jv0p:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___2RVge",flex_space_between:"flex_space_between___2f-dJ",flex_box_vertical_center:"flex_box_vertical_center___2UjfS",flex_box_center_end:"flex_box_center_end___1RfMW",flex_box_column:"flex_box_column___3uuIq",sidebar:"sidebar___Ik5Ae",items:"items___2qrP5",item:"item___24ylH",name:"name___1UcvU",itemActive:"itemActive___1Bj1D",question:"question___2fGw1"}},K3mO:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.Base,y=A.WordArray,x=g.algo,w=x.MD5,f=x.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:w,iterations:1}),init:function(_){this.cfg=this.cfg.extend(_)},compute:function(_,d){for(var r,u=this.cfg,t=u.hasher.create(),a=y.create(),n=a.words,i=u.keySize,h=u.iterations;n.lengthve)){se.next=7;break}return A.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(ve/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),se.abrupt("return",!1);case 7:return W.push({name:be.name,file:be}),K(Object(b.a)(W)),N.onChange(W),se.abrupt("return",!1);case 11:case"end":return se.stop()}},ce)}));function Oe(ce){return xe.apply(this,arguments)}return Oe}()},de=function(){var xe=Object(f.a)(u.a.mark(function Oe(ce,be){var ve,ue,se,q,me,re,ie,we,le,$;return u.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return be.file_name=ce.name,ie=ce.name,te.next=4,Object(n.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(we=te.sent,we.data=JSON.parse(v(we.data)),!((we==null?void 0:we.status)!==0)){te.next=12;break}return W[W.findIndex(function(De){return De.name===ie})].status="error",W[W.findIndex(function(De){return De.name===ie})].file.status="error",N.onChange(W),A.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),te.abrupt("return");case 12:return G=new O.a({endpoint:we==null||((ve=we.data)===null||ve===void 0)?void 0:ve.end_point,region:we==null||((ue=we.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:we==null||((se=we.data)===null||se===void 0)?void 0:se.access_key_id,accessKeySecret:we==null||((q=we.data)===null||q===void 0)?void 0:q.access_key_secret,bucket:we==null||((me=we.data)===null||me===void 0)?void 0:me.bucket,stsToken:we==null||((re=we.data)===null||re===void 0)?void 0:re.security_token}),console.log(ce,"file"),ne(G),le=ce.name.split("."),le.pop(),$=be.realFileName?le:Object(l.a)(),te.abrupt("return",new Promise(function(De,Te){try{var ke;G.multipartUpload("".concat(N.identifier,"/").concat($).concat(ie.indexOf(".")>-1?"."+ie.split(".").pop():""),new Blob([ce.file],{type:ce.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(ot,gt,Et){try{console.log("\u8FDB\u5EA6",ot,gt,Et);var xt=W.findIndex(function(St){return St.name===ie});W[xt].file.percent=ot*100,W[xt].tempCheckpoint=gt,K(Object(b.a)(W))}catch(St){}},checkpoint:W[W.findIndex(function(tt){return tt.name===ie})].tempCheckpoint,callback:{customValue:{id:ie+""},url:we==null||((ke=we.data)===null||ke===void 0)?void 0:ke.callback_url,host:we==null?void 0:we.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(n.e)(be)}}).then(function(tt){var ot,gt=W.findIndex(function(Ue){return Ue.name===ie}),Et="done";if(((ot=tt.data)===null||ot===void 0?void 0:ot.status)===0){var xt;ce.response=(xt=tt.data)===null||xt===void 0?void 0:xt.data;var St=W.findIndex(function(Ue){return Ue.name===ie});W[St].status="done",W[St].file.status="done"}else{var Je;A.b.warn((Je=tt.data)===null||Je===void 0?void 0:Je.message),Et="error"}W[gt].status=Et,W[gt].file.status=Et,N.onChange(W),De(tt==null?void 0:tt.data)}).catch(function(tt){W[W.findIndex(function(ot){return ot.name===ie})].status="error",W[W.findIndex(function(ot){return ot.name===ie})].file.status="error",A.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),K(Object(b.a)(W)),N.onChange(W),Te(tt),console.log("err:",tt)})}catch(tt){}}));case 19:case"end":return te.stop()}},Oe)}));return function(ce,be){return xe.apply(this,arguments)}}();return Object(t.useEffect)(function(){W.every(function(xe){return xe==="done"||xe==="error"})&&N.onComplete(W)},[W]),Object(t.useEffect)(function(){if(D){var xe;(xe=G)===null||xe===void 0||xe.cancel()}},[D]),Object(t.useEffect)(function(){N.uploading&&W.map(function(){var xe=Object(f.a)(u.a.mark(function Oe(ce){var be,ve;return u.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!((!ce.status||ce.status==="error")&&!D)){se.next=6;break}return ce.status="uploading",ce.file.status="uploading",se.next=5,de(ce,{login:I==null||((be=I.userInfo)===null||be===void 0)?void 0:be.login,container_type:N.container_type,container_id:N.container_id,description:N.description,realFileName:N.realFileName});case 5:ve=se.sent;case 6:case"end":return se.stop()}},Oe)}));return function(Oe){return xe.apply(this,arguments)}}())},[N.uploading]),a.a.createElement(S,Object(L.a)({},fe,{height:N.height,className:N.className}),a.a.createElement("p",{className:"ant-upload-hint"},N.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Y.b=Object(s.a)(function(m){var T=m.loading,I=m.globalSetting,D=m.user;return{globalSetting:I,loading:T.models.competitions,user:D}})(C)},KmYQ:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.pad.ZeroPadding={pad:function(g,A){var b=A*4;g.clamp(),g.sigBytes+=b-(g.sigBytes%b||b)},unpad:function(g){for(var A=g.words,b=g.sigBytes-1,b=g.sigBytes-1;b>=0;b--)if(A[b>>>2]>>>24-b%4*8&255){g.sigBytes=b+1;break}}},L.pad.ZeroPadding})},"L+Ii":function(M,Y,o){M.exports={wrap:"wrap___3xyR8",labelWrap:"labelWrap___1IxCy",label:"label___22JJP",labelContent:"labelContent___3L5_8",flexRow:"flexRow___15gwv",color999:"color999___i4XxJ",radio:"radio___2Vrn9",selectSchool:"selectSchool___20PAH",dataPicker:"dataPicker___3ZrBg",modal:"modal___3_BbV",colorOrange:"colorOrange___3BuSt",colorYellow:"colorYellow___brbb2"}},LSTS:function(M,Y,o){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var L=function(){function u(t,a){for(var n=0;n=0)continue;if(!Object.prototype.hasOwnProperty.call(u,n))continue;a[n]=u[n]}return a}function f(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")}function _(u,t){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:u}function d(u,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(u,t):u.__proto__=t)}var r=function(u){d(t,u);function t(a){f(this,t);var n=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return L(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var n=this.getParentElement(this.scrollComponent);n.scrollTop=n.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var n=!1,i={get passive(){n=!0}};try{document.addEventListener("test",null,i),document.removeEventListener("test",null,i)}catch(h){}return n}},{key:"eventListenerOptions",value:function(){var n=this.props.useCapture;return this.isPassiveSupported()&&(n={useCapture:this.props.useCapture,passive:!0}),n}},{key:"setDefaultLoader",value:function(n){this.defaultLoader=n}},{key:"detachMousewheelListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.scrollComponent.parentNode),n.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.getParentElement(this.scrollComponent)),n.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(n){var i=this.props.getScrollParent&&this.props.getScrollParent();return i!=null?i:n&&n.parentNode}},{key:"filterProps",value:function(n){return n}},{key:"attachScrollListener",value:function(){var n=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!n)return;var i=window;this.props.useWindow===!1&&(i=n),i.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),i.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(n){n.deltaY===1&&!this.isPassiveSupported()&&n.preventDefault()}},{key:"scrollListener",value:function(){var n=this.scrollComponent,i=window,h=this.getParentElement(n),l=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,p=i.pageYOffset!==void 0?i.pageYOffset:s.scrollTop;this.props.isReverse?l=p:l=this.calculateOffset(n,p)}else this.props.isReverse?l=h.scrollTop:l=n.scrollHeight-h.scrollTop-h.clientHeight;l1&&arguments[1]!==void 0?arguments[1]:1,Ge=ke.length,Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(k).map(function(ne,fe){if(!y.isValidElement(ne)||!ne.type)return null;var de=ne.type.isSelectOptGroup,xe=ne.key,Oe=ne.props,ce=Oe.children,be=Object(w.a)(Oe,["children"]);return G||!de?R(ne):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(xe===null?fe:xe,"__"),label:xe},be),{},{options:E(ce)})}).filter(function(ne){return ne})}var C=o("2Qr1"),m=o("qNPg"),T=o("U8pU"),I=o("Kwbf"),D=o("WKfj");function N(k){var G=k.mode,ne=k.options,fe=k.children,de=k.backfill,xe=k.allowClear,Oe=k.placeholder,ce=k.getInputElement,be=k.showSearch,ve=k.onSearch,ue=k.defaultOpen,se=k.autoFocus,q=k.labelInValue,me=k.value,re=k.inputValue,ie=k.optionLabelProp,we=G==="multiple"||G==="tags",le=be!==void 0?be:we||G==="combobox",$=ne||E(fe);if(Object(I.a)(G!=="tags"||$.every(function(Te){return!Te.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var J=$.some(function(Te){return Te.options?Te.options.some(function(ke){return typeof("value"in ke?ke.value:ke.key)=="number"}):typeof("value"in Te?Te.value:Te.key)=="number"});Object(I.a)(!J,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(I.a)(G!=="combobox"||!ie,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(I.a)(G==="combobox"||!de,"`backfill` only works with `combobox` mode."),Object(I.a)(G==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(I.b)(G!=="combobox"||!ce||!xe||!Oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!le&&G!=="combobox"&&G!=="tags"&&Object(I.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(I.b)(!ue||se,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),me!=null){var te=Object(D.d)(me);Object(I.a)(!q||te.every(function(Te){return Object(T.a)(Te)==="object"&&("key"in Te||"value"in Te)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(I.a)(!we||Array.isArray(me),"`value` should be array when `mode` is `multiple` or `tags`")}if(fe){var De=null;Object(P.a)(fe).some(function(Te){if(!y.isValidElement(Te)||!Te.type)return!1;var ke=Te.type;if(ke.isSelectOption)return!1;if(ke.isSelectOptGroup){var tt=Object(P.a)(Te.props.children).every(function(ot){return!y.isValidElement(ot)||!Te.type||ot.type.isSelectOption?!0:(De=ot.type,!1)});return!tt}return De=ke,!0}),De&&Object(I.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(De.displayName||De.name||De,"`.")),Object(I.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var z=N,F=Object(m.a)({prefixCls:"rc-select",components:{optionList:l},convertChildrenToData:E,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:z,fillOptionsWithMissingValue:C.a}),W=function(k){Object(A.a)(ne,k);var G=Object(b.a)(ne);function ne(){var fe;return Object(L.a)(this,ne),fe=G.apply(this,arguments),fe.selectRef=y.createRef(),fe.focus=function(){fe.selectRef.current.focus()},fe.blur=function(){fe.selectRef.current.blur()},fe}return Object(g.a)(ne,[{key:"render",value:function(){return y.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),ne}(y.Component);W.Option=p,W.OptGroup=S;var K=W,B=Y.c=K},Lf5v:function(M,Y,o){"use strict";var L=o("5NDa"),g=o("5rEg"),A=o("2qtc"),b=o("kLXV"),y=o("k1fw"),x=o("oBTY"),w=o("9og8"),f=o("miYZ"),_=o("tsqr"),d=o("y8nQ"),r=o("Vl3Y"),u=o("tJVT"),t=o("DZo9"),a=o("8z0m"),n=o("WmNS"),i=o.n(n),h=o("q1tI"),l=o.n(h),s=o("m3rI"),p=o("ErOA"),O=o("sckv"),S=o.n(O),v=o("KhGG"),P=o("1vsH"),R=a.a.Dragger,E=function(m){var T,I=m.dispatch,D=m.id,N=m.onClose,z=m.onOK,F=m.visible,W=m.wrapClassName,K=m.local,B=m.containerId,k=m.rootIdentifier,G=Object(h.useState)({}),ne=Object(u.a)(G,2),fe=ne[0],de=ne[1],xe=Object(h.useState)([]),Oe=Object(u.a)(xe,2),ce=Oe[0],be=Oe[1],ve=Object(h.useState)([]),ue=Object(u.a)(ve,2),se=ue[0],q=ue[1],me=Object(h.useState)(0),re=Object(u.a)(me,2),ie=re[0],we=re[1],le=Object(h.useState)(!1),$=Object(u.a)(le,2),J=$[0],te=$[1],De=Object(h.useState)(!1),Te=Object(u.a)(De,2),ke=Te[0],tt=Te[1],ot=r.a.useForm(),gt=Object(u.a)(ot,1),Et=gt[0],xt=Object(h.useState)([]),St=Object(u.a)(xt,2),Je=St[0],Ue=St[1],ft=Object(h.useRef)([]);Object(h.useEffect)(function(){F&&(Et.resetFields(),Ue([]),q([]),be([]),we(0),tt(!1),te(!1))},[F]);var kt=function(Be){if(Be.file.status==="done"||Be.file.status==="uploading"){var at,it,Me;if(Ue(Be.fileList),!Be.file.response)return;if((at=Be.file.response)!==null&&at!==void 0&&at.id){_.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Ue(Je.filter(function(Ye){return Ye.uid!==Be.file.uid})),((it=Be.file.response)===null||it===void 0?void 0:it.message)&&_.b.info((Me=Be.file.response)===null||Me===void 0?void 0:Me.message)}},ht=function(){var bt=Object(w.a)(i.a.mark(function Be(at){var it,Me,Ye;return i.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(ie){mt.next=8;break}return Me=Je.filter(function(Pt){return Pt.uid!==at.uid}),Ue(Me),ft.current=Object(x.a)(Me),be(ce.filter(function(Pt){return Pt!==at.name})),_.b.info("\u5220\u9664\u6210\u529F"),Me.length||(Et.setFieldsValue({file:void 0}),Et.validateFields()),mt.abrupt("return");case 8:if(at.response){mt.next=11;break}return _.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),mt.abrupt("return");case 11:return mt.next=13,Object(p.a)("/api/shixuns/".concat(D,"/destroy_data_sets.json"),{method:"Delete",body:{id:[at==null||((it=at.response)===null||it===void 0)?void 0:it.id]}});case 13:Ye=mt.sent,Ye.status===0&&(Ue(Je.filter(function(Pt){return Pt.uid!==at.uid})),_.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return mt.stop()}},Be)}));return function(at){return bt.apply(this,arguments)}}(),_t=function(Be){if(Je!=null&&Je.some(function(it){return it.name===Be.name}))return _.b.info("".concat(Be.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var at={name:Be.name,uid:Be.uid,file:Be,percent:0};return Je.push(at),ft.current=Object(x.a)(Je),Ue(Object(x.a)(Je)),!1},Qe={height:300,multiple:!0,disabled:ie>0,withCredentials:!0,fileList:Je,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:kt,onRemove:ht,beforeUpload:_t},He=function(Be,at,it,Me,Ye){var ut=new FormData;Object.keys(Be).forEach(function(Pt){ut.append(Pt,Be[Pt])});var mt=new window.XMLHttpRequest;return mt.withCredentials=!0,mt.addEventListener("load",function(Pt){var jt;it(JSON.parse(Pt==null||((jt=Pt.target)===null||jt===void 0)?void 0:jt.response))},!1),mt.addEventListener("error",function(Pt){Ye&&Ye(Pt)},!1),mt.upload.onprogress=function(Pt){Me&&Me(Pt)},mt.open("POST",at),mt.send(ut),mt},Ge=function(Be,at){if(Be.lengthComputable){var it=Math.floor(Be.loaded/Be.total*100),Me=Object(y.a)(Object(y.a)({},at),{},{percent:it,status:it===100?"done":"uploading"});console.log(ft.current,333),ft.current=ft.current.map(function(Ye){return Ye.uid===at.uid?Me:Ye}),Ue(ft.current)}},Ee=function(Be,at){var it=Object(y.a)(Object(y.a)({},at),{},{status:"error"});_.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ft.current=ft.current.map(function(Me){return Me.uid===at.uid?it:Me}),ft.current.every(function(Me){return Me.status==="done"||Me.status==="error"})&&(tt(!1),we(2)),Ue(ft.current)},Ae=function(Be,at){var it=Object(y.a)(Object(y.a)({},at),{},{status:"done"});if(Be.status===0||(it=Object(y.a)(Object(y.a)({},at),{},{status:"error"}),_.b.error("\u4E0A\u4F20\u5931\u8D25!")),ft.current=ft.current.map(function(Me){return Me.uid===at.uid?it:Me}),ft.current.every(function(Me){return Me.status==="done"})){_.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ot(!0);return}ft.current.every(function(Me){return Me.status==="done"||Me.status==="error"})&&(tt(!1),we(2)),Ue(ft.current)},Fe=function(){var Be=!0;return window.navigator.onLine==!0?Be=!0:Be=!1,Be},We=function(){var bt=Object(w.a)(i.a.mark(function Be(at){var it,Me,Ye,ut,mt,Pt,jt,et;return i.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(tt(!0),!(ie===3)){Ht.next=4;break}return we(2),Ht.abrupt("return");case 4:if(!(ie===2||ie===1)){Ht.next=7;break}return Ke(),Ht.abrupt("return");case 7:return it=at||{},Me=it.commitMessage,Ye=Me===void 0?"":Me,ut=it.fileOss,mt=ut===void 0?[]:ut,Pt=K?Je:mt,jt=Pt.map(function(bn){return bn.name}),Ht.next=12,Object(p.a)("/api/shixuns/".concat(D,"/check_data_sets"),{method:"post",body:{files_name:jt}});case 12:if(et=Ht.sent,!(et.status===-3)){Ht.next=17;break}return be(et==null?void 0:et.exist_files),tt(!1),Ht.abrupt("return");case 17:if(!(JSON.stringify(et)==="{}")){Ht.next=21;break}return tt(!1),_.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Ht.abrupt("return");case 21:et.status===0&&(Je.forEach(function(bn){var Cn=He({file:bn.file,description:Ye},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(D,"/upload_data_sets.json"),function(Yn){return Ae(Yn,bn)},function(Yn){return Ge(Yn,bn)},function(Yn){return Ee(Yn,bn)});se.push(Cn)}),we(1));case 22:case"end":return Ht.stop()}},Be)}));return function(at){return bt.apply(this,arguments)}}(),Ke=function(){var Be=Object(y.a)({},Et.getFieldsValue())||{},at=Be.commitMessage,it=at===void 0?"":at,Me=ft.current.filter(function(ut){return ut.status==="error"}),Ye=ft.current.map(function(ut){return Object(y.a)(Object(y.a)({},ut),{},{status:ut.status==="error"?"uploading":ut.status})});Ue(Ye),Me.forEach(function(ut){var mt=He({file:ut.file,description:it},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(D,"/upload_data_sets.json"),function(Pt){return Ae(Pt,ut)},function(Pt){return Ge(Pt,ut)},function(Pt){return Ee(Pt,ut)});se.push(mt)})},st=function(Be){if(console.log(Be,"changedValues"),"fileOss"in Be){var at,it;if(Be!=null&&Be.fileOss.every(function(Me){return Me.status==="done"})&&Be!==null&&Be!==void 0&&(at=Be.fileOss)!==null&&at!==void 0&&at.length){_.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ot(!0);return}if(Be!=null&&Be.fileOss.every(function(Me){return Me.status==="done"||Me.status==="error"})&&Be!==null&&Be!==void 0&&(it=Be.fileOss)!==null&&it!==void 0&&it.length){we(3),tt(!1);return}be(ce.filter(function(Me){var Ye;return Be==null||((Ye=Be.fileOss)===null||Ye===void 0)?void 0:Ye.some(function(ut){return ut.name===Me})}))}de(Object(y.a)({},Et.getFieldsValue()))},Ot=function(Be){Be||(te(!0),se.forEach(function(at){at.abort()})),z(),N()},Bt=function(){var Be=Object(y.a)({},Et.getFieldsValue())||{},at=Be.fileOss,it=at===void 0?[]:at,Me=Je==null?void 0:Je.every(function(ut){return ut.status==="done"}),Ye=it==null?void 0:it.every(function(ut){return ut.status==="done"});if(!Me||!Ye){b.a.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Ot()}});return}Ot()},an=function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",null,l.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(S.a.colorBlue)})),l.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",l.a.createElement("span",{className:"".concat(S.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},Kt=function(Be){console.log(Be,444)};return l.a.createElement(b.a,{visible:F,wrapClassName:W,onOk:function(){Object(P.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),Et.submit()},centered:!0,okText:ie===0?"\u786E\u5B9A":ie===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:ke},onCancel:Bt,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},l.a.createElement("div",{className:S.a.wrap},l.a.createElement(r.a,{className:"mt10",form:Et,scrollToFirstError:!0,layout:"vertical",onFinish:We,onValuesChange:st},K?l.a.createElement(r.a.Item,{label:l.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",l.a.createElement("span",{style:{visibility:"hidden"},className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},l.a.createElement(R,Qe," ",an())):l.a.createElement(r.a.Item,{label:l.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",l.a.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},l.a.createElement(v.b,{identifier:k,cancelUpload:J,container_type:"Shixun",container_id:B,uploading:ie<3?ie:0,disabled:ie>0,height:300,maxSize:100*1024*1024*1024,description:fe.commitMessage||"",text:an(),onComplete:Kt,realFileName:!0})),!!ce.length&&l.a.createElement("span",{className:S.a.repeatedName},ce.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),l.a.createElement(r.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},l.a.createElement(g.a,{bordered:!1,disabled:ie>0,maxLength:100,suffix:"".concat(((T=fe.commitMessage)===null||T===void 0?void 0:T.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};Y.a=E},LicW:function(M,Y,o){"use strict";var L=o("T2oS"),g=o("W9HT"),A=o("5Dmo"),b=o("3S7+"),y=o("q1tI"),x=o.n(y),w=o("ZJlW"),f=o.n(w),_=o("m3rI"),d=o("TSYQ"),r=o.n(d),u=o("1vsH"),t=o("z4EP"),a=o.n(t),n=o("+GGh"),i=o.n(n),h=o("cFMs"),l=o.n(h),s=o("BdwD"),p=function(S){var v=S.className,P=S.dataSource,R=P===void 0?[]:P,E=S.col,C=E===void 0?4:E,m=S.right,T=S.bottom,I=T===void 0?23:T,D=S.precision,N=D===void 0?0:D,z=S.wrapWidth,F=z===void 0?1200:z,W=S.trackEventItems,K=S.loading;debugger;var B=Math.floor((F-(C-1)*m)/C);return x.a.createElement(g.a,{spinning:K},x.a.createElement("div",{className:r()(f.a.list,v)},!!R.length&&R.map(function(k,G){var ne=k.name,fe=k.id,de=k.identifier,xe=k.featured,Oe=k.school_name,ce=k.image_url,be=k.excellent;return x.a.createElement("div",{key:fe,className:f.a.wrap,style:{width:B,marginRight:(1+G)%C===0?0:m+N,marginBottom:I}},x.a.createElement("a",{target:"_blank",href:"/paths/".concat(de),className:f.a.li,onClick:function(ue){ue.preventDefault(),W&&Object(u.cb)([W]),Object(u.S)("/paths/".concat(de))}},x.a.createElement("div",{className:f.a.img},x.a.createElement("img",{className:f.a.cover,src:"".concat(_.a.IMG_SERVER,"/").concat(ce)}),xe===1&&x.a.createElement("img",{className:f.a.sign,src:a.a}),xe===2&&x.a.createElement("img",{className:f.a.sign,src:""}),xe===3&&x.a.createElement("img",{className:f.a.sign,src:i.a}),xe===4&&x.a.createElement("img",{className:f.a.sign,src:""}),xe===5&&x.a.createElement("img",{className:f.a.sign,src:l.a})),x.a.createElement("div",{className:f.a.name},x.a.createElement(b.a,{title:ne},x.a.createElement("span",{className:f.a.e},ne))),x.a.createElement(b.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Oe)},x.a.createElement("div",{className:f.a.unit},x.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Oe)),x.a.createElement("div",{className:f.a.tags},x.a.createElement(b.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},x.a.createElement("span",null,x.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),x.a.createElement("span",null,k.stages_count))),x.a.createElement(b.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},x.a.createElement("span",null,x.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),x.a.createElement("span",null,k.members_count))),be&&x.a.createElement("div",{className:f.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!R.length&&x.a.createElement(s.a,null)))};Y.a=p},M8RZ:function(M,Y,o){"use strict";o.d(Y,"a",function(){return _});var L=o("fWQN"),g=o("mtLc"),A=o("yKVA"),b=o("879j"),y=o("q1tI"),x=o.n(y),w=o("i8i4"),f=o.n(w),_=function(d){Object(A.a)(u,d);var r=Object(b.a)(u);function u(t){var a;Object(L.a)(this,u),a=r.call(this,t);var n=window.document;return a.node=n.createElement("div"),n.body.appendChild(a.node),a}return Object(g.a)(u,[{key:"render",value:function(){var a=this.props.children;return Object(w.createPortal)(a,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),u}(x.a.Component)},MEgm:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8Ym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wM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},MlIO:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(g){var A=L,b=A.lib,y=b.Base,x=b.WordArray,w=A.x64={},f=w.Word=y.extend({init:function(d,r){this.high=d,this.low=r}}),_=w.WordArray=y.extend({init:function(d,r){d=this.words=d||[],r!=g?this.sigBytes=r:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,r=d.length,u=[],t=0;t1&&arguments[1]!==void 0?arguments[1]:!1;return!!(O(m)&&S(T))},O=function(m){return Object(r.p)()?!0:(m({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},S=function(){var m,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,I=Object(d.c)()._store.getState(),D=I.user;return(m=D.userInfo)!==null&&m!==void 0&&m.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:T?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){d.d.push("/account/profile/edit")}}),!1)},v=function(){var m,T=Object(d.c)()._store.getState(),I=T.user;return(m=I.userInfo)!==null&&m!==void 0&&m.professional_certification?!0:(y.a.confirm({title:"\u63D0\u793A",centered:!0,content:_.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(u.S)("/account/certification")}}),!1)},P=function(){return Object(r.a)()?!0:(y.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:_.a.createElement("div",{className:"tc",style:{marginLeft:-38}},_.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),_.a.createElement("img",{src:s.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},R=function(m,T){return m?!0:(y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:_.a.createElement("div",null,_.a.createElement("p",null,T||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),_.a.createElement("div",{style:{marginLeft:"110px"}},_.a.createElement("img",{src:h.a,width:200}),_.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(u.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},E=function(m){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",I=Object(d.c)()._store.getState(),D=I.shixunsDetail.detail;return(D==null?void 0:D.public)===2||(D==null?void 0:D.public)===1||(D==null?void 0:D.shixun_status)===3?(y.a.info({centered:!0,icon:_.a.createElement(t.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:_.a.createElement("div",{className:"tc",style:{marginLeft:-38}},_.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},_.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(D==null?void 0:D.public)===2?"\u5DF2\u516C\u5F00":(D==null?void 0:D.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",T,"\u3002"),_.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),_.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:n.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(D==null?void 0:D.shixun_status)===2?(y.a.confirm({centered:!0,icon:_.a.createElement(t.a,null),title:"\u63D0\u793A",content:_.a.createElement("div",null,_.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",T,"\u3002"),_.a.createElement("br",null),_.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){y.a.confirm({width:440,centered:!0,icon:_.a.createElement(t.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var z=Object(A.a)(w.a.mark(function W(){var K;return w.a.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,m({type:"shixunsDetail/cancelRelease",payload:{id:D==null?void 0:D.identifier}});case 2:K=k.sent,K.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),m({type:"shixunsDetail/getShixunsDetail",payload:{id:D==null?void 0:D.identifier}}),m({type:"practiceSetting/getCommonData",payload:{id:D==null?void 0:D.identifier}}));case 4:case"end":return k.stop()}},W)}));function F(){return z.apply(this,arguments)}return F}()})}}),!0):!1}},NQs2:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB"}},Nf5h:function(M,Y,o){"use strict";o.d(Y,"a",function(){return f}),o.d(Y,"h",function(){return n}),o.d(Y,"l",function(){return s}),o.d(Y,"e",function(){return R}),o.d(Y,"i",function(){return T}),o.d(Y,"j",function(){return ue}),o.d(Y,"c",function(){return se.a}),o.d(Y,"b",function(){return we}),o.d(Y,"g",function(){return te}),o.d(Y,"f",function(){return tt}),o.d(Y,"k",function(){return kt}),o.d(Y,"d",function(){return He});var L=o("q1tI"),g=o.n(L),A=o("NQs2"),b=o.n(A),y=o("ygoZ"),x=o.n(y),w=function(Ee){var Ae=Ee.dataSource,Fe=Ae===void 0?[]:Ae,We=Ee.img,Ke=Ee.imgWidth,st=Ke===void 0?346:Ke,Ot=Ee.title,Bt=Ee.sunTitle,an=Ee.bannerExtraContent;return g.a.createElement("div",{className:b.a.banner},g.a.createElement("div",{className:b.a.content},g.a.createElement("aside",null,g.a.createElement("p",null,g.a.createElement("b",null,Ot),g.a.createElement("span",null,Bt)),Fe.length>0&&g.a.createElement("div",{className:b.a.btns},Fe.map(function(Kt,bt){return g.a.createElement("div",{key:bt,onClick:Kt.click},Kt.name,Kt.sign?g.a.createElement("img",{src:x.a,width:39}):null)})),an),g.a.createElement("img",{style:{marginTop:33,marginRight:38},src:We,width:st})))},f=w,_=o("tJVT"),d=o("6nfa"),r=o.n(d),u=o("TSYQ"),t=o.n(u),a=function(Ee){var Ae=Ee.dataSource,Fe=Ae===void 0?[]:Ae,We=Ee.value,Ke=Ee.onChange,st=Ee.className,Ot=Ee.title,Bt=Ee.titleWidth,an=Bt===void 0?41:Bt,Kt=Ee.style,bt=Kt===void 0?{}:Kt,Be=Ee.fontColor,at=Be===void 0?"#6A7283":Be,it=Object(L.useState)(0),Me=Object(_.a)(it,2),Ye=Me[0],ut=Me[1],mt=Object(L.useState)(!1),Pt=Object(_.a)(mt,2),jt=Pt[0],et=Pt[1],Dt=Object(L.useRef)(null);return Object(L.useEffect)(function(){if(Fe.length!==0){var Ht;(Dt==null||((Ht=Dt.current)===null||Ht===void 0)?void 0:Ht.clientHeight)>92?ut(1):ut(0)}Fe.length===0&&ut(0)},[Fe]),g.a.createElement("div",{className:t()(r.a.row,st),style:bt},g.a.createElement("div",{style:{width:an,marginTop:jt?12:4},className:r.a.title},Ot),g.a.createElement("div",{className:jt?"".concat(r.a.tagsWrap," ").concat(r.a.tagsBorderWrap):r.a.tagsWrap},g.a.createElement("div",{className:r.a.bar,style:Ye>0?{height:Ye===1?92:"auto",overflow:Ye===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},g.a.createElement("div",{className:r.a.name,ref:Dt},Fe==null?void 0:Fe.map(function(Ht){return g.a.createElement("span",{onClick:function(){return Ke(Ht.id)},key:Ht.id,title:Ht.name,style:{color:at},className:We===Ht.id?r.a.active:""},Ht.name)}))),!!Ye&&g.a.createElement(L.Fragment,null,Ye===1?g.a.createElement("div",{onClick:function(){var bn;ut(2),(Dt==null||((bn=Dt.current)===null||bn===void 0)?void 0:bn.clientHeight)>205?et(!0):et(!1)},className:r.a.action},"\u5C55\u5F00",g.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):g.a.createElement("div",{onClick:function(){ut(1),et(!1)},className:r.a.action},"\u6536\u8D77",g.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},n=a,i=o("cz0n"),h=o.n(i),l=function(Ee){var Ae=Ee.dataSource,Fe=Ae===void 0?[]:Ae,We=Ee.value,Ke=Ee.onChange,st=Ee.className;return g.a.createElement("div",{className:t()(h.a.tabs,st)},Fe.map(function(Ot){return g.a.createElement("span",{onClick:function(){return Ke(Ot.id)},className:We===Ot.id?h.a.active:"",key:Ot.id},Ot.name)}))},s=l,p=o("5NDa"),O=o("5rEg"),S=o("KOXS"),v=o.n(S),P=function(Ee){var Ae,Fe=Ee.dataSource,We=Fe===void 0?[]:Fe,Ke=Ee.value,st=Ee.onChange,Ot=Ee.className,Bt=Ee.style,an=Bt===void 0?{}:Bt,Kt=Ee.placeholder,bt=Object(L.useState)(""),Be=Object(_.a)(bt,2),at=Be[0],it=Be[1],Me=Object(L.useState)(""),Ye=Object(_.a)(Me,2),ut=Ye[0],mt=Ye[1];Object(L.useEffect)(function(){var et;(et=JSON.stringify(Ke))!==null&&et!==void 0&&et.includes("{")?(it(Ke.id),mt(Ke.value)):mt(Ke)},[Ke]);var Pt=function(){st(ut,at||null)},jt=function(Dt){if(Dt===at)return;it(Dt),st(ut,Dt)};return g.a.createElement("div",{className:t()(v.a.input,Ot),style:an},!!We.length&&g.a.createElement("div",{className:v.a.dropdown},g.a.createElement("div",{className:v.a.text},(Ae=We.find(function(et){return et.id===at}))===null||Ae===void 0?void 0:Ae.name,g.a.createElement("i",{className:"iconfont icon-zhankai4"}),g.a.createElement("b",{className:v.a.b1}),g.a.createElement("b",{className:v.a.b2})),g.a.createElement("div",{className:v.a.menu},We.map(function(et,Dt){return g.a.createElement("div",{key:Dt,onClick:function(){return jt(et.id)}},et.name)}))),g.a.createElement(O.a,{onPressEnter:Pt,value:ut,onChange:function(Dt){return mt(Dt.target.value)},bordered:!1,placeholder:Kt}),g.a.createElement("i",{onClick:Pt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=P,E=o("f9pc"),C=o.n(E),m=function(Ee){var Ae=Ee.value,Fe=Ee.onChange,We=Ee.className,Ke=Ee.total,st=Ee.pageSize,Ot=Ee.style,Bt=Ot===void 0?{}:Ot,an=Ae<2,Kt=Ae>=Math.ceil(Ke/st);return Ke<=st?g.a.createElement(g.a.Fragment,null):g.a.createElement("div",{className:t()(C.a.quickPager,We),style:Bt},g.a.createElement("div",{onClick:function(){an||Fe(Ae-1,"prev")},className:an?C.a.disabled:""},"\u4E0A\u4E00\u9875"),g.a.createElement("div",{onClick:function(){Kt||Fe(Ae+1,"next")},className:Kt?C.a.disabled:""},"\u4E0B\u4E00\u9875"))},T=m,I=o("T2oS"),D=o("W9HT"),N=o("pC0b"),z=o("GzdX"),F=o("5Dmo"),W=o("3S7+"),K=o("Oe0F"),B=o.n(K),k=o("m3rI"),G=o("1vsH"),ne=o("JAbv"),fe=o.n(ne),de=o("Bq7L"),xe=o.n(de),Oe=o("MEgm"),ce=o.n(Oe),be=o("BdwD"),ve=function(Ee){var Ae=Ee.className,Fe=Ee.dataSource,We=Fe===void 0?[]:Fe,Ke=Ee.col,st=Ke===void 0?4:Ke,Ot=Ee.right,Bt=Ee.bottom,an=Bt===void 0?23:Bt,Kt=Ee.precision,bt=Kt===void 0?0:Kt,Be=Ee.wrapWidth,at=Be===void 0?1200:Be,it=Ee.trackEventItems,Me=Ee.loading,Ye=Math.floor((at-(st-1)*Ot)/st);return g.a.createElement(D.a,{spinning:Me},g.a.createElement("div",{className:t()(B.a.list,Ae)},!!We.length&&We.map(function(ut,mt){var Pt=ut.name,jt=ut.id,et=ut.identifier,Dt=ut.power,Ht=ut.cover_image_id,bn=ut.pic;return g.a.createElement("div",{className:B.a.wrap,key:jt,style:{width:Ye,marginRight:(1+mt)%st===0?0:Ot+bt,marginBottom:an}},g.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(et,"/challenges"),className:B.a.li,onClick:function(Yn){Yn.preventDefault(),it&&Object(G.cb)([it]),Dt&&Object(G.S)("/shixuns/".concat(et,"/challenges"))}},g.a.createElement("div",{className:B.a.img},g.a.createElement("img",{className:B.a.cover,src:Ht?"".concat(k.a.API_SERVER,"/api/attachments/").concat(Ht):"".concat(k.a.IMG_SERVER,"/").concat(bn)}),ut.is_jupyter&&g.a.createElement("img",{className:B.a.sign,src:fe.a}),ut.is_jupyter_lab&&g.a.createElement("img",{className:B.a.sign,src:xe.a}),ut.is_unity_3d&&g.a.createElement("img",{className:B.a.sign,src:ce.a})),g.a.createElement("div",{className:B.a.name},g.a.createElement(W.a,{title:Pt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},g.a.createElement("span",{className:B.a.e},Pt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),g.a.createElement("div",{className:B.a.tags},g.a.createElement(W.a,{placement:"bottom",title:"\u5173\u5361\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),g.a.createElement("span",null,ut.challenges_count))),!!ut.myshixuns_count&&g.a.createElement(W.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.a.createElement("span",null,ut.myshixuns_count))),g.a.createElement(W.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},g.a.createElement("span",null,g.a.createElement("span",null,ut.level))),g.a.createElement("div",{className:B.a.rate},g.a.createElement(z.a,{allowHalf:!0,disabled:!0,defaultValue:ut.score_info}),g.a.createElement("span",null,"\xA0",ut.score_info?"".concat(ut.score_info,"\u5206"):"5\u5206")))),!Dt&&g.a.createElement("div",{className:B.a.lockWrap},g.a.createElement("img",{src:"".concat(k.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!We.length&&g.a.createElement(be.a,null)))},ue=ve,se=o("LicW"),q=o("iL++"),me=o.n(q),re=o("xiVL"),ie=function(Ee){var Ae=Ee.className,Fe=Ee.dataSource,We=Fe===void 0?[]:Fe,Ke=Ee.col,st=Ke===void 0?4:Ke,Ot=Ee.right,Bt=Ee.bottom,an=Bt===void 0?23:Bt,Kt=Ee.precision,bt=Kt===void 0?0:Kt,Be=Ee.wrapWidth,at=Be===void 0?1200:Be,it=Ee.trackEventItems,Me=Ee.loading,Ye=Math.floor((at-(st-1)*Ot)/st);return g.a.createElement(D.a,{spinning:Me},g.a.createElement("div",{className:t()(me.a.list,Ae)},!!We.length&&We.map(function(ut,mt){var Pt=ut.subject_identifier,jt=ut.id,et=ut.identifier,Dt=ut.power,Ht=ut.is_public!=0&&ut.is_public;return g.a.createElement("div",{className:me.a.wrap,key:jt,style:{width:Ye,marginRight:(1+mt)%st===0?0:Ot+bt,marginBottom:an}},g.a.createElement("a",{className:me.a.li,onClick:function(Cn){Cn.preventDefault()}},g.a.createElement("div",{className:me.a.top},g.a.createElement(W.a,{title:ut.name},g.a.createElement("div",{className:me.a.name},ut.name)),g.a.createElement("img",{className:me.a.img,src:k.a.IMG_SERVER+"/images/"+ut.avatar_url}),g.a.createElement("div",{className:me.a.text},ut.creator),Pt&&g.a.createElement("div",{className:me.a.btns},g.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),g.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ht&&g.a.createElement("div",{className:me.a.sign},"\u516C\u5F00")),g.a.createElement("div",{className:me.a.bottom},ut.visits>0&&g.a.createElement(W.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-liulanyan"}),g.a.createElement("span",null,ut.visits))),ut.course_members_count>0&&g.a.createElement(W.a,{title:"\u6210\u5458",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan"}),ut.course_members_count)),ut.tasks_count>0&&g.a.createElement(W.a,{title:"\u4F5C\u4E1A",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-zuoye"}),ut.tasks_count)),ut.is_end?g.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):g.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),g.a.createElement("div",{className:me.a.lockWrap},ut.is_accessible?g.a.createElement(g.a.Fragment,null,Pt&&g.a.createElement("div",{onClick:function(){return Object(G.S)("/paths/".concat(Pt))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),g.a.createElement("div",{onClick:function(Cn){it&&Object(G.cb)([it]),Object(G.S)(ut.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):g.a.createElement(g.a.Fragment,null,g.a.createElement("img",{src:"".concat(k.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!We.length&&g.a.createElement(be.a,null)))},we=ie,le=o("f0W+"),$=o.n(le),J=function(Ee){var Ae=Ee.dataSource,Fe=Ae===void 0?[]:Ae,We=Ee.value,Ke=Ee.onChange,st=Ee.className,Ot=Ee.style,Bt=Ot===void 0?{}:Ot,an=Ee.tabBarExtraContent;return g.a.createElement("div",{className:t()($.a.tabs,st),style:Bt},g.a.createElement("div",{className:$.a.tabsWrap},Fe.map(function(Kt,bt){return g.a.createElement("div",{onClick:function(){return Ke(Kt.id)},className:We===Kt.id?$.a.active:"",key:bt},Kt.name)})),g.a.createElement("div",{className:$.a.tabBar},an))},te=J,De=o("9JIy"),Te=o.n(De),ke=function(Ee){var Ae=Ee.className,Fe=Ee.style,We=Fe===void 0?{}:Fe,Ke=Ee.children;return g.a.createElement("div",{className:t()(Te.a.table,Ae),style:We},Ke)},tt=ke,ot=o("qVdP"),gt=o("jsC+"),Et=o("lUTK"),xt=o("BvKs"),St=o("8WcF"),Je=o.n(St),Ue=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],ft=function(Ee){var Ae,Fe=Ee.sortValue,We=Ee.dropValue,Ke=Ee.className,st=Ee.onSort,Ot=Ee.onDrop,Bt=Ee.dataSource,an=Bt===void 0?Ue:Bt;return g.a.createElement("div",{className:t()(Je.a.orderWrap,Ke)},g.a.createElement(gt.a,{overlay:g.a.createElement(xt.a,null,an.map(function(Kt,bt){return g.a.createElement(xt.a.Item,{key:bt,onClick:function(){return Ot(Kt.id)}},Kt.name)}))},g.a.createElement("span",{className:Je.a.orderTextWrap},(Ae=an.find(function(Kt){return We===Kt.id}))===null||Ae===void 0?void 0:Ae.name)),g.a.createElement("span",{className:Je.a.orderIconWrap},g.a.createElement("span",{className:Je.a.orderAsc},g.a.createElement("i",{className:Fe==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Je.a.cursorPointer," ").concat(Je.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Je.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}})),g.a.createElement("span",{className:Je.a.orderDesc},g.a.createElement("i",{className:Fe==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Je.a.cursorPointer," ").concat(Je.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Je.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}}))))},kt=ft,ht=o("siWv"),_t=o.n(ht),Qe=function(Ee){var Ae=Ee.className,Fe=Ee.style,We=Ee.children,Ke=Ee.onClick;return g.a.createElement("div",{onClick:Ke,className:t()(_t.a.btn,Ae),style:Fe},We)},He=Qe},Nmxd:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmx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ZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NoGO:function(M,Y,o){M.exports=o.p+"static/newqrcode.d852fdfc.png"},NvD2:function(M,Y,o){"use strict";o.d(Y,"a",function(){return x});var L=o("Kwbf");function g(w,f){var _=new Set;return w.forEach(function(d){f.has(d)||_.add(d)}),_}function A(w){var f=w||{},_=f.disabled,d=f.disableCheckbox,r=f.checkable;return!!(_||d)||r===!1}function b(w,f,_,d){for(var r=new Set(w),u=new Set,t=0;t<=_;t+=1){var a=f.get(t)||new Set;a.forEach(function(l){var s=l.key,p=l.node,O=l.children,S=O===void 0?[]:O;r.has(s)&&!d(p)&&S.filter(function(v){return!d(v.node)}).forEach(function(v){r.add(v.key)})})}for(var n=new Set,i=_;i>=0;i-=1){var h=f.get(i)||new Set;h.forEach(function(l){var s=l.parent,p=l.node;if(d(p)||!l.parent||n.has(l.parent.key))return;if(d(l.parent.node)){n.add(s.key);return}var O=!0,S=!1;(s.children||[]).filter(function(v){return!d(v.node)}).forEach(function(v){var P=v.key,R=r.has(P);O&&!R&&(O=!1),!S&&(R||u.has(P))&&(S=!0)}),O&&r.add(s.key),S&&u.add(s.key),n.add(s.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(g(u,r))}}function y(w,f,_,d,r){for(var u=new Set(w),t=new Set(f),a=0;a<=d;a+=1){var n=_.get(a)||new Set;n.forEach(function(s){var p=s.key,O=s.node,S=s.children,v=S===void 0?[]:S;!u.has(p)&&!t.has(p)&&!r(O)&&v.filter(function(P){return!r(P.node)}).forEach(function(P){u.delete(P.key)})})}t=new Set;for(var i=new Set,h=d;h>=0;h-=1){var l=_.get(h)||new Set;l.forEach(function(s){var p=s.parent,O=s.node;if(r(O)||!s.parent||i.has(s.parent.key))return;if(r(s.parent.node)){i.add(p.key);return}var S=!0,v=!1;(p.children||[]).filter(function(P){return!r(P.node)}).forEach(function(P){var R=P.key,E=u.has(R);S&&!E&&(S=!1),!v&&(E||t.has(R))&&(v=!0)}),S||u.delete(p.key),v&&t.add(p.key),i.add(p.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(g(t,u))}}function x(w,f,_,d){var r=[],u;d?u=d:u=A;var t=new Set(w.filter(function(h){var l=!!_[h];return l||r.push(h),l})),a=new Map,n=0;Object.keys(_).forEach(function(h){var l=_[h],s=l.level,p=a.get(s);p||(p=new Set,a.set(s,p)),p.add(l),n=Math.max(n,s)}),Object(L.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var i;return f===!0?i=b(t,a,n,u):i=y(t,f.halfCheckedKeys,a,n,u),i}},OLES:function(M,Y,o){"use strict";var L=o("U8pU"),g=o("VTBJ"),A=o("Ff2n"),b=o("q1tI"),y=o("uciX"),x=o("7ixt"),w=function(t){var a=t.overlay,n=t.prefixCls,i=t.id,h=t.overlayInnerStyle;return b.createElement("div",{className:"".concat(n,"-inner"),id:i,role:"tooltip",style:h},typeof a=="function"?a():a)},f=w,_=function(t,a){var n=t.overlayClassName,i=t.trigger,h=i===void 0?["hover"]:i,l=t.mouseEnterDelay,s=l===void 0?0:l,p=t.mouseLeaveDelay,O=p===void 0?.1:p,S=t.overlayStyle,v=t.prefixCls,P=v===void 0?"rc-tooltip":v,R=t.children,E=t.onVisibleChange,C=t.afterVisibleChange,m=t.transitionName,T=t.animation,I=t.placement,D=I===void 0?"right":I,N=t.align,z=N===void 0?{}:N,F=t.destroyTooltipOnHide,W=F===void 0?!1:F,K=t.defaultVisible,B=t.getTooltipContainer,k=t.overlayInnerStyle,G=Object(A.a)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ne=Object(b.useRef)(null);Object(b.useImperativeHandle)(a,function(){return ne.current});var fe=Object(g.a)({},G);"visible"in t&&(fe.popupVisible=t.visible);var de=function(){var ve=t.arrowContent,ue=ve===void 0?null:ve,se=t.overlay,q=t.id;return[b.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},ue),b.createElement(f,{key:"content",prefixCls:P,id:q,overlay:se,overlayInnerStyle:k})]},xe=!1,Oe=!1;if(typeof W=="boolean")xe=W;else if(W&&Object(L.a)(W)==="object"){var ce=W.keepParent;xe=ce===!0,Oe=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:n,prefixCls:P,popup:de,action:h,builtinPlacements:x.a,popupPlacement:D,ref:ne,popupAlign:z,getPopupContainer:B,onPopupVisibleChange:E,afterPopupVisibleChange:C,popupTransitionName:m,popupAnimation:T,defaultPopupVisible:K,destroyPopupOnHide:xe,autoDestroy:Oe,mouseLeaveDelay:O,popupStyle:S,mouseEnterDelay:s},fe),R)},d=Object(b.forwardRef)(_),r=Y.a=d},OLod:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("K3mO"))})(this,function(L){L.lib.Cipher||function(g){var A=L,b=A.lib,y=b.Base,x=b.WordArray,w=b.BufferedBlockAlgorithm,f=A.enc,_=f.Utf8,d=f.Base64,r=A.algo,u=r.EvpKDF,t=b.Cipher=w.extend({cfg:y.extend(),createEncryptor:function(m,T){return this.create(this._ENC_XFORM_MODE,m,T)},createDecryptor:function(m,T){return this.create(this._DEC_XFORM_MODE,m,T)},init:function(m,T,I){this.cfg=this.cfg.extend(I),this._xformMode=m,this._key=T,this.reset()},reset:function(){w.reset.call(this),this._doReset()},process:function(m){return this._append(m),this._process()},finalize:function(m){m&&this._append(m);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function m(T){return typeof T=="string"?C:P}return function(T){return{encrypt:function(I,D,N){return m(D).encrypt(T,I,D,N)},decrypt:function(I,D,N){return m(D).decrypt(T,I,D,N)}}}}()}),a=b.StreamCipher=t.extend({_doFinalize:function(){var m=this._process(!0);return m},blockSize:1}),n=A.mode={},i=b.BlockCipherMode=y.extend({createEncryptor:function(m,T){return this.Encryptor.create(m,T)},createDecryptor:function(m,T){return this.Decryptor.create(m,T)},init:function(m,T){this._cipher=m,this._iv=T}}),h=n.CBC=function(){var m=i.extend();m.Encryptor=m.extend({processBlock:function(I,D){var N=this._cipher,z=N.blockSize;T.call(this,I,D,z),N.encryptBlock(I,D),this._prevBlock=I.slice(D,D+z)}}),m.Decryptor=m.extend({processBlock:function(I,D){var N=this._cipher,z=N.blockSize,F=I.slice(D,D+z);N.decryptBlock(I,D),T.call(this,I,D,z),this._prevBlock=F}});function T(I,D,N){var z,F=this._iv;F?(z=F,this._iv=g):z=this._prevBlock;for(var W=0;W>>2]&255;m.sigBytes-=T}},p=b.BlockCipher=t.extend({cfg:t.cfg.extend({mode:h,padding:s}),reset:function(){var m;t.reset.call(this);var T=this.cfg,I=T.iv,D=T.mode;this._xformMode==this._ENC_XFORM_MODE?m=D.createEncryptor:(m=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==m?this._mode.init(this,I&&I.words):(this._mode=m.call(D,this,I&&I.words),this._mode.__creator=m)},_doProcessBlock:function(m,T){this._mode.processBlock(m,T)},_doFinalize:function(){var m,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),m=this._process(!0)):(m=this._process(!0),T.unpad(m)),m},blockSize:128/32}),O=b.CipherParams=y.extend({init:function(m){this.mixIn(m)},toString:function(m){return(m||this.formatter).stringify(this)}}),S=A.format={},v=S.OpenSSL={stringify:function(m){var T,I=m.ciphertext,D=m.salt;return D?T=x.create([1398893684,1701076831]).concat(D).concat(I):T=I,T.toString(d)},parse:function(m){var T,I=d.parse(m),D=I.words;return D[0]==1398893684&&D[1]==1701076831&&(T=x.create(D.slice(2,4)),D.splice(0,4),I.sigBytes-=16),O.create({ciphertext:I,salt:T})}},P=b.SerializableCipher=y.extend({cfg:y.extend({format:v}),encrypt:function(m,T,I,D){D=this.cfg.extend(D);var N=m.createEncryptor(I,D),z=N.finalize(T),F=N.cfg;return O.create({ciphertext:z,key:I,iv:F.iv,algorithm:m,mode:F.mode,padding:F.padding,blockSize:m.blockSize,formatter:D.format})},decrypt:function(m,T,I,D){D=this.cfg.extend(D),T=this._parse(T,D.format);var N=m.createDecryptor(I,D).finalize(T.ciphertext);return N},_parse:function(m,T){return typeof m=="string"?T.parse(m,this):m}}),R=A.kdf={},E=R.OpenSSL={execute:function(m,T,I,D){D||(D=x.random(64/8));var N=u.create({keySize:T+I}).compute(m,D),z=x.create(N.words.slice(T),I*4);return N.sigBytes=T*4,O.create({key:N,iv:z,salt:D})}},C=b.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:E}),encrypt:function(m,T,I,D){D=this.cfg.extend(D);var N=D.kdf.execute(I,m.keySize,m.ivSize);D.iv=N.iv;var z=P.encrypt.call(this,m,T,N.key,D);return z.mixIn(N),z},decrypt:function(m,T,I,D){D=this.cfg.extend(D),T=this._parse(T,D.format);var N=D.kdf.execute(I,m.keySize,m.ivSize,T.salt);D.iv=N.iv;var z=P.decrypt.call(this,m,T,N.key,D);return z}})}()})},OZM5:function(M,Y,o){"use strict";o.d(Y,"b",function(){return d}),o.d(Y,"a",function(){return r}),o.d(Y,"k",function(){return u}),o.d(Y,"h",function(){return t}),o.d(Y,"i",function(){return a}),o.d(Y,"g",function(){return n}),o.d(Y,"c",function(){return i}),o.d(Y,"d",function(){return h}),o.d(Y,"j",function(){return p}),o.d(Y,"e",function(){return O}),o.d(Y,"f",function(){return S});var L=o("KQm4"),g=o("U8pU"),A=o("Ff2n"),b=o("q1tI"),y=o.n(b),x=o("Kwbf"),w=o("WaYH"),f=.25,_=2;function d(v,P){var R=v.slice(),E=R.indexOf(P);return E>=0&&R.splice(E,1),R}function r(v,P){var R=v.slice();return R.indexOf(P)===-1&&R.push(P),R}function u(v){return v.split("-")}function t(v,P){return"".concat(v,"-").concat(P)}function a(v){return v&&v.type&&v.type.isTreeNode}function n(v,P){var R=[v],E=P[v];function C(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];m.forEach(function(T){var I=T.key,D=T.children;R.push(I),C(D)})}return C(E.children),R}function i(v,P){var R=v.clientY,E=P.selectHandle.getBoundingClientRect(),C=E.top,m=E.bottom,T=E.height,I=Math.max(T*f,_);return R<=C+I?-1:R>=m-I?1:0}function h(v,P){if(!v)return;var R=P.multiple;return R?v.slice():v.length?[v[0]]:v}var l=function(P){return P};function s(v,P){if(!v)return[];var R=P||{},E=R.processProps,C=E===void 0?l:E,m=Array.isArray(v)?v:[v];return m.map(function(T){var I=T.children,D=Object(A.a)(T,["children"]),N=s(I,P);return y.a.createElement(w.a,Object.assign({},C(D)),N)})}function p(v){if(!v)return null;var P;if(Array.isArray(v))P={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(g.a)(v)==="object")P={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(x.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function O(v,P){var R=new Set;function E(C){if(R.has(C))return;var m=P[C];if(!m)return;R.add(C);var T=m.parent,I=m.node;if(I.disabled)return;T&&E(T.key)}return(v||[]).forEach(function(C){E(C)}),Object(L.a)(R)}function S(v){var P={};return Object.keys(v).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(P[R]=v[R])}),P}},Oe0F:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},Ohmc:function(M,Y,o){M.exports=o.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(M,Y,o){"use strict";var L=o("2qtc"),g=o("kLXV"),A=o("rAM+"),b=o("miYZ"),y=o("tsqr"),x=o("9og8"),w=o("tJVT"),f=o("jrin"),_=o("WmNS"),d=o.n(_),r=o("q1tI"),u=o.n(r),t=o("VrN/"),a=o.n(t),n=o("bdgK"),i=o("p77/"),h=o("Bd2K"),l=o("ELLl"),s=o("19Vz"),p=o("lZu9"),O=o("+NIl"),S=o("kSUc"),v=o("9Bee"),P=function(Ke){var st=Ke.value,Ot=st===void 0?"":st,Bt=Ke.className,an=Ke.showTextOnly,Kt=Ke.showLines,bt=Ke.style,Be=bt===void 0?{}:bt,at=Object(r.useMemo)(function(){return""},[Ot]);return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},R=o("0Owb"),E=o("dejd"),C=o("C+DQ"),m=o("1vsH"),T=o("m3rI"),I=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function D(Ke){var st=Ke.onActionCallback,Ot=Ke.title,Bt=Ke.icon,an=Ke.actionName,Kt=Ke.className,bt=Kt===void 0?"":Kt,Be=Ke.children;function at(){st(an)}return u.a.createElement("a",{title:Ot,className:bt,onClick:at},u.a.createElement("i",{className:"md-iconfont ".concat(Bt)}),Be)}var N=function(Ke){var st=Ke.watch,Ot=Ke.showNullButton,Bt=Ke.onActionCallback,an=Ke.fullScreen,Kt=Ke.insertTemp,bt=Ke.hidetoolBar,Be=Ke.uuid,at=Ke.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(m.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(m.F)("_educoder_session"),"&key=").concat(Be,"&api=").concat(encodeURIComponent(T.a.PROXY_SERVER)));var it=[].concat(I,[{title:"".concat(st?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(st?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return u.a.createElement("ul",{className:"markdown-toolbar-container"},!bt&&it.map(function(Me,Ye){return u.a.createElement("li",{key:Ye},Me.actionName?u.a.createElement(D,Object(R.a)({},Me,{onActionCallback:Bt})):u.a.createElement("span",{className:"v-line"}))}),Ot?u.a.createElement("li",null,u.a.createElement(D,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Bt},u.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Kt&&u.a.createElement("li",null,u.a.createElement(D,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Kt),onActionCallback:Bt},u.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),u.a.createElement("li",{className:"btn-full-screen"},u.a.createElement(D,{icon:"".concat(an?"icon-shrink":"icon-enlarge"),title:an?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Bt})))},z=o("M8RZ"),F=o("+L6B"),W=o("2/Rp"),K=o("y8nQ"),B=o("Vl3Y"),k=o("5NDa"),G=o("5rEg"),ne={labelCol:{span:4},wrapperCol:{span:20}},fe=function(Ke){var st=Ke.callback,Ot=Ke.onCancel;function Bt(an){st(an)}return u.a.createElement(B.a,Object(R.a)({},ne,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Bt}),u.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},u.a.createElement(G.a,null)),u.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},u.a.createElement(G.a,null)),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(W.a,{type:"ghost",onClick:Ot},"\u53D6\u6D88")))},de=o("7ahc"),xe=o("HmJG"),Oe=o("BjJ7"),ce=B.a.useForm,be={width:280,marginRight:10},ve={labelCol:{span:5},wrapperCol:{span:19}},ue=function(Ke){var st=Ke.callback,Ot=Ke.onCancel,Bt=ce(),an=Object(w.a)(Bt,1),Kt=an[0];function bt(it){st(it)}function Be(it,Me){if(it.status===-1){y.b.error(it.message);return}Kt.setFieldsValue({src:"/api/attachments/".concat(it.id),type:Me.type})}function at(it){var Me=it.target.files[0];q(Me,Be)}return u.a.createElement(B.a,Object(R.a)({form:Kt},ve,{className:"upload-image-panel",onFinish:bt}),u.a.createElement(B.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},u.a.createElement("div",{className:"flex-container"},u.a.createElement(B.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},u.a.createElement(G.a,{style:be})),u.a.createElement(se,{onFileChange:at}))),u.a.createElement(B.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},u.a.createElement(G.a,{style:{width:264}})),u.a.createElement(B.a.Item,{style:{textAlign:"right"}},u.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(W.a,{type:"ghost",onClick:Ot},"\u53D6\u6D88")))};function se(Ke){var st=Ke.onFileChange;return u.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",u.a.createElement("input",{type:"file",onChange:st}))}function q(Ke,st){if(!Ke)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ot=new FormData;Ot.append("editormd-image-file",Ke),Ot.append("file_param_name","editormd-image-file"),Ot.append("byxhr","true");var Bt=new window.XMLHttpRequest;Bt.withCredentials=!0,Bt.addEventListener("load",function(an){st(JSON.parse(an.target.responseText),Ke)},!1),Bt.addEventListener("error",function(an){console.error(an)},!1),Bt.open("POST","".concat(Oe.a,"/api/attachments.json")),Bt.send(Ot)}var me=o("giR+"),re=o("fyUT"),ie=o("7Kak"),we=o("9yH6"),le=we.a.Group,$={margin:"0 8px"},J=function(Ke){var st=Ke.callback,Ot=Ke.onCancel;function Bt(an){st(an)}return u.a.createElement(B.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Bt},u.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},u.a.createElement("span",{style:$},"\u5355\u5143\u683C\u6570\uFF1A"),u.a.createElement("span",{style:$},"\u884C\u6570"),u.a.createElement(B.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},u.a.createElement(re.a,null)),u.a.createElement("span",{style:$},"\u5217\u6570"),u.a.createElement(B.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},u.a.createElement(re.a,null))),u.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},u.a.createElement("span",{style:$},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),u.a.createElement(B.a.Item,{name:"align"},u.a.createElement(le,null,u.a.createElement(we.a,{value:"default"},u.a.createElement("i",{className:"fa fa-align-justify"})),u.a.createElement(we.a,{value:"left"},u.a.createElement("i",{className:"fa fa-align-left"})),u.a.createElement(we.a,{value:"center"},u.a.createElement("i",{className:"fa fa-align-center"})),u.a.createElement(we.a,{value:"right"},u.a.createElement("i",{className:"fa fa-align-right"}))))),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(W.a,{type:"ghost",onClick:Ot},"\u53D6\u6D88")))},te=o("ErOA"),De=o("7Cbv"),Te="link",ke="upload-image",tt="code-block",ot="add-table",gt="------------",Et={default:gt,left:":".concat(gt),center:":".concat(gt,":"),right:"".concat(gt,":")},xt=o("9VGf"),St,Je;function Ue(){}var ft=0,kt=1e4,ht="\u2581",_t=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Qe(Ke){return/^\d+$/.test(Ke)?"".concat(Ke,"px"):Ke}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ge=He?"Cmd":"Ctrl",Ee=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Ae=(St={},Object(f.a)(St,Ge+"-B","bold"),Object(f.a)(St,Ge+"-I","italic"),St),Fe=(Je={},Object(f.a)(Je,Te,"\u6DFB\u52A0\u94FE\u63A5"),Object(f.a)(Je,tt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(f.a)(Je,ke,"\u6DFB\u52A0\u6587\u4EF6"),Object(f.a)(Je,ot,"\u6DFB\u52A0\u8868\u683C"),Je),We=Y.a=function(Ke){var st=Ke.defaultValue,Ot=st===void 0?"":st,Bt=Ke.onChange,an=Ke.width,Kt=an===void 0?"100%":an,bt=Ke.height,Be=bt===void 0?400:bt,at=Ke.miniToolbar,it=at===void 0?!1:at,Me=Ke.isFocus,Ye=Me===void 0?!1:Me,ut=Ke.watch,mt=Ke.insertTemp,Pt=Ke.mode,jt=Pt===void 0?"markdown":Pt,et=Ke.id,Dt=et===void 0?"markdown-editor-id":et,Ht=Ke.showResizeBar,bn=Ht===void 0?!1:Ht,Cn=Ke.noStorage,Yn=Cn===void 0?!1:Cn,qn=Ke.showNullButton,Pn=qn===void 0?!1:qn,cn=Ke.hidetoolBar,xr=cn===void 0?!1:cn,wr=Ke.fullScreen,Rr=wr===void 0?!1:wr,cr=Ke.onBlur,Ur=Ke.onCMBeforeChange,yr=Ke.onFullScreen,sn=Ke.className,Zt=sn===void 0?"":sn,Tn=Ke.disablePaste,jr=Tn===void 0?!1:Tn,jn=Ke.placeholder,$n=jn===void 0?"":jn,Wn=Ke.values,pe=Wn===void 0?"":Wn,V=Object(r.useState)(null),Z=Object(w.a)(V,2),oe=Z[0],Ce=Z[1],he=Object(r.useState)(Ot),ct=Object(w.a)(he,2),rn=ct[0],In=ct[1],Vn=Object(r.useState)(ut),tn=Object(w.a)(Vn,2),En=tn[0],Xn=tn[1],$r=Object(r.useState)(Rr),ga=Object(w.a)($r,2),pa=ga[0],dr=ga[1],za=Object(r.useState)(""),ja=Object(w.a)(za,2),Ra=ja[0],Ha=ja[1],Sa=Object(r.useState)(0),Ja=Object(w.a)(Sa,2),ka=Ja[0],li=Ja[1],oi=Object(r.useState)(Be),ua=Object(w.a)(oi,2),fa=ua[0],oa=ua[1],ye=Object(r.useState)(!1),lt=Object(w.a)(ye,2),Mt=lt[0],wt=lt[1],Wt=Object(r.useRef)(Object(De.a)()),Lt=Object(r.useRef)(!1),Xt=Object(r.useRef)(),en=Object(r.useRef)(),vn=Object(r.useRef)(),pn=Object(r.useRef)(),Nn=Object(r.useRef)(),wn=function(){var qt=Object(x.a)(d.a.mark(function Sn(){var mn,Mn;return d.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.next=2,Object(te.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Wt.current}});case 2:Mn=ir.sent,Mn!=null&&(mn=Mn.attachments)!==null&&mn!==void 0&&mn.length&&(console.log("cm:",oe,en),Mn.attachments.map(function(er){er.content_type.indexOf("image")>-1?oe.replaceSelection(".concat(er.content_type,")")):er.content_type.indexOf("video")>-1?oe.replaceSelection('')):er.content_type.indexOf("pdf")>-1?oe.replaceSelection('').concat(er.name,"")):oe.replaceSelection("[".concat(er.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(er.id,"?type=").concat(er.content_type,")"))}));case 4:case"end":return ir.stop()}},Sn)}));return function(){return qt.apply(this,arguments)}}();Object(r.useEffect)(function(){In(pe),oe==null||oe.setValue(pe)},[pe]),Object(r.useEffect)(function(){yr==null||yr(pa)},[pa]),Object(r.useEffect)(function(){if(en.current){var qt=a.a.fromTextArea(en.current,{mode:jt,lineNumbers:!it,lineWrapping:!0,value:Ot,autoCloseTags:!0,autoCloseBrackets:!0});Ye&&qt.focus();function Sn(mn,Mn){if(jr){Mn.preventDefault();return}var Un=Mn.clipboardData;if(Un){var ir=Un.types.toString(),er=Un.items;if(ir==="Files"||Un.types.indexOf("Files")>-1){if(Mn.preventDefault(),jt=="stex")return;try{var Ar,Mr=er[1];((Ar=er[0])===null||Ar===void 0?void 0:Ar.kind)==="file"&&(Mr=er[0]);var Qn=Mr.getAsFile(),Tr=Qn.name.split(".").pop();q(Qn,function(mr){if(mr.id){var Gr,Ir,qr;(Qn==null||((Gr=Qn.type)===null||Gr===void 0)?void 0:Gr.indexOf("image"))>-1?qt.replaceSelection(".concat(mr.content_type,")")):(Qn==null||((Ir=Qn.type)===null||Ir===void 0)?void 0:Ir.indexOf("video"))>-1?qt.replaceSelection('')):(Qn==null||((qr=Qn.type)===null||qr===void 0)?void 0:qr.indexOf("pdf"))>-1?qt.replaceSelection('').concat(Qn.name,"")):Ee.includes(Tr)?qt.replaceSelection('').concat(Qn.name,"")):qt.replaceSelection("[".concat(Qn.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(mr.content_type,")"))}else(mr==null?void 0:mr.status)===401&&(document.location.href="/user/login")})}catch(mr){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return qt.on("paste",Sn),qt.on("dragleave",function(mn,Mn){vn.current.classList.remove("mouse-hover-md")}),qt.on("dragover",function(mn,Mn){vn.current.classList.add("mouse-hover-md")}),qt.on("drop",function(mn,Mn){vn.current.classList.add("mouse-hover-md");var Un;if(Un=Mn.dataTransfer.files,Un.length>0){Mn.preventDefault(),Mn.stopPropagation();for(var ir=function(Mr){var Qn=Un[Mr],Tr=Qn.name.split(".").pop();q(Qn,function(mr){if(mr.id){var Gr,Ir,qr;(Qn==null||((Gr=Qn.type)===null||Gr===void 0)?void 0:Gr.indexOf("image"))>-1?qt.replaceSelection(".concat(mr.content_type,")")):(Qn==null||((Ir=Qn.type)===null||Ir===void 0)?void 0:Ir.indexOf("video"))>-1?qt.replaceSelection('')):(Qn==null||((qr=Qn.type)===null||qr===void 0)?void 0:qr.indexOf("pdf"))>-1?qt.replaceSelection('').concat(Qn.name,"")):Ee.includes(Tr)?qt.replaceSelection('').concat(Qn.name,"")):qt.replaceSelection("[".concat(Qn.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(mr.content_type,")"))}else(mr==null?void 0:mr.status)===401&&(document.location.href="/user/login")})},er=0;er0||er.target.offsetWidth>0)&&(nn(),oe.setSize("100%","100%"),oe.refresh())}}catch(Ar){Un.e(Ar)}finally{Un.f()}});return mn.observe(en.current.parentElement),mn}if(oe){var Sn=qt();return function(){Sn.unobserve(en.current.parentElement)}}},[oe,nn]),Object(r.useEffect)(function(){if(oe){for(var qt=[],Sn=function(){var er=Mn[mn];Un=Object(w.a)(er,2);var Ar=Un[0],Mr=Un[1],Qn=Object(f.a)({},Ar,function(){Rn(Mr)});qt.push(Qn),oe.addKeyMap(Qn)},mn=0,Mn=Object.entries(Ae);mn0){var qt=new Date().getTime(),Sn=window.sessionStorage.getItem(Dt);qt>=ka+kt&&(!Sn||Sn!==rn)&&(window.sessionStorage.setItem(Dt,rn),wt(!0))}},kt),Object(r.useEffect)(function(){Xn(ut)},[oe,ut]),Object(r.useEffect)(function(){oe&&(Ye&&oe.focus())},[oe,Ye]),Object(r.useEffect)(function(){if(En&&oe){var qt=oe.getScrollerElement();function Sn(mn){var Mn=mn.target;if(Nn.current){var Un=Mn.scrollTop/Mn.scrollHeight;Nn.current.scrollTop=Nn.current.scrollHeight*Un}}return qt.addEventListener("scroll",Sn),function(){qt.removeEventListener("scroll",Sn)}}},[oe,En]),Object(r.useEffect)(function(){if(oe&&Ur){function qt(Sn,mn){Ur(Sn,mn)}return oe.on("beforeChange",qt),function(){oe.off("beforeChange",qt)}}},[oe,Ur]),Object(r.useEffect)(function(){if(oe&&cr){function qt(){cr(oe.getValue())}return oe.on("blur",qt),function(){oe.off("blur",qt)}}},[oe,cr]),Object(r.useEffect)(function(){if(oe){function qt(Sn){var mn=Sn.getValue();In(mn),li(new Date().getTime()),Sn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Bt&&Bt(mn)}return oe.on("change",qt),function(){oe.off("change",qt)}}},[oe,Bt]),Object(r.useEffect)(function(){oe&&(Ot==null?(oe.setValue(""),In("")):Ot!==oe.getValue()&&(oe.setValue(Ot),In(Ot),oe.setCursor(oe.lineCount(),0)))},[oe,Ot]);var Rn=Object(r.useCallback)(function(qt){var Sn=oe.getCursor(),mn=oe.getSelection(),Mn=mn.split(`
`);switch(qt){case"bold":return oe.replaceSelection("**"+mn+"**"),mn===""&&oe.setCursor(Sn.line,Sn.ch+2),oe.focus();case"italic":return oe.replaceSelection("*"+mn+"*"),mn===""&&oe.setCursor(Sn.line,Sn.ch+1),oe.focus();case"code":return oe.replaceSelection("`"+mn+"`"),mn===""&&oe.setCursor(Sn.line,Sn.ch+1),oe.focus();case"inline-latex":return oe.replaceSelection("`$$"+mn+"$$`"),mn===""&&oe.setCursor(Sn.line,Sn.ch+3),oe.focus();case"latex":return oe.replaceSelection("```latex\n"+mn+"\n```"),oe.setCursor(Sn.line+1,mn.length+1),oe.focus();case"line-break":return oe.replaceSelection(`
`),oe.focus();case"list-ul":return mn===""?oe.replaceSelection("- "+mn):oe.replaceSelection(Mn.map(function(Un){return Un===""?"":"- ".concat(Un)}).join(`
`)),oe.focus();case"list-ol":return mn===""?oe.replaceSelection("1. "+mn):oe.replaceSelection(Mn.map(function(Un,ir){return Un===""?"":"".concat(ir+1,". ").concat(Un)}).join(`
`)),oe.focus();case"add-null-ch":return mn===""&&oe.setCursor(Sn.line,Sn.ch+1),oe.replaceSelection(ht),oe.focus();case"inster-template-1":return mn===""&&oe.setCursor(Sn.line,Sn.ch),oe.replaceSelection(_t),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return Xn(!En),oe.focus();case"trigger-full-screen":return dr(!pa),oe.focus();case Te:Ha(Te);return;case tt:Ha(tt);return;case ke:Ha(ke);return;case ot:Ha(ot);return;default:throw new Error}},[oe,En,pa]),gn=Object(r.useCallback)(function(qt){Ha("");switch(Ra){case Te:var Sn=qt.title,mn=qt.link;return oe.replaceSelection("[".concat(Sn,"](").concat(mn,")")),oe.focus();case tt:var Mn=qt.language,Un=qt.content;return oe.replaceSelection(["```"+Mn,Un,"```"].join(`
`)),oe.focus();case ke:var ir=qt.src,er=qt.alt;return er?oe.replaceSelection(".concat(ir,' "').concat(er,'" )')):oe.replaceSelection("")),oe.focus();case ot:for(var Ar=qt.row,Mr=qt.col,Qn=qt.align,Tr=`
`,mr=0;mr300&&(Ar=300);var Mr=Be+Ar+"px";oa(Mr)}}return qt.addEventListener("mousedown",Mn),document.addEventListener("mousemove",ir),document.addEventListener("mouseup",Un),function(){qt.removeEventListener("mousedown",Mn),document.removeEventListener("mousemove",ir),document.removeEventListener("mouseup",Un)}}},[oe,pn]),Object(r.useEffect)(function(){oa(Be)},[Be]);var Jn=Qe(Kt),hr=Qe(fa),Br={width:Jn,height:hr},xn=Object(r.useMemo)(function(){if(ka){var qt=new Date(ka),Sn=qt.getHours(),mn=qt.getMinutes(),Mn=qt.getSeconds();return Sn=Sn<10?"0"+Sn:Sn,mn=mn<10?"0"+mn:mn,Mn=Mn<10?"0"+Mn:Mn,"".concat(Sn,":").concat(mn,":").concat(Mn)}return 0},[ka]);function Yt(){window.sessionStorage.removeItem(Dt),wt(!1),li(0)}function dn(){wt(!1),li(0),oe.setValue(window.sessionStorage.getItem(Dt))}function An(qt,Sn){var mn=oe.getValue();mn=mn.replace(qt,Sn),In(mn),oe==null||oe.setValue(mn)}return u.a.createElement(r.Fragment,null,u.a.createElement("div",{className:"markdown-editor-wrapper",ref:vn},u.a.createElement("div",{className:"markdown-editor-container ".concat(Zt," ").concat(En?"on-preview":""," ").concat(it?"mini":""," ").concat(pa?"full-screen":""),style:Br},u.a.createElement(N,{insertTemp:mt,watch:En,fullScreen:pa,showNullButton:Pn,onActionCallback:Rn,hidetoolBar:xr,uuid:Wt.current,setOpenPhones:function(){Lt.current=!0}}),u.a.createElement("div",{className:"markdown-editor-body"},u.a.createElement("div",{className:"codemirror-container"},u.a.createElement("textarea",{ref:en,placeholder:$n})),En?u.a.createElement("div",{ref:Nn,className:"preview-container"},jt==="stex"&&u.a.createElement(P,{value:rn}),jt!=="stex"&&u.a.createElement(v.a,{edit:!0,value:rn,replaces:An})):null))),bn?u.a.createElement("a",{ref:pn,className:"editor-resize"}):null,u.a.createElement(z.a,null,Fe[Ra]?u.a.createElement(g.a,{centered:!0,title:Fe[Ra],visible:!0,onCancel:Dn,footer:null,className:"markdown-popup-form"},kn):null))}},P5Jw:function(M,Y,o){"use strict";var L=o("rHrb"),g=L.CopyToClipboard;g.CopyToClipboard=g,M.exports=g},PVpz:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.StreamCipher,y=g.algo,x=[],w=[],f=[],_=y.RabbitLegacy=b.extend({_doReset:function(){var r=this._key.words,u=this.cfg.iv,t=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],a=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var n=0;n<4;n++)d.call(this);for(var n=0;n<8;n++)a[n]^=t[n+4&7];if(u){var i=u.words,h=i[0],l=i[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,p=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,O=s>>>16|p&4294901760,S=p<<16|s&65535;a[0]^=s,a[1]^=O,a[2]^=p,a[3]^=S,a[4]^=s,a[5]^=O,a[6]^=p,a[7]^=S;for(var n=0;n<4;n++)d.call(this)}},_doProcessBlock:function(r,u){var t=this._X;d.call(this),x[0]=t[0]^t[5]>>>16^t[3]<<16,x[1]=t[2]^t[7]>>>16^t[5]<<16,x[2]=t[4]^t[1]>>>16^t[7]<<16,x[3]=t[6]^t[3]>>>16^t[1]<<16;for(var a=0;a<4;a++)x[a]=(x[a]<<8|x[a]>>>24)&16711935|(x[a]<<24|x[a]>>>8)&4278255360,r[u+a]^=x[a]},blockSize:128/32,ivSize:64/32});function d(){for(var r=this._X,u=this._C,t=0;t<8;t++)w[t]=u[t];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0>>0?1:0)|0,this._b=u[7]>>>0>>0?1:0;for(var t=0;t<8;t++){var a=r[t]+u[t],n=a&65535,i=a>>>16,h=((n*n>>>17)+n*i>>>15)+i*i,l=((a&4294901760)*a|0)+((a&65535)*a|0);f[t]=h^l}r[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,r[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,r[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,r[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,r[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,r[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,r[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,r[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}g.RabbitLegacy=b._createHelper(_)}(),L.RabbitLegacy})},QNag:function(M,Y,o){"use strict";var L=o("2qtc"),g=o("kLXV"),A=o("+L6B"),b=o("2/Rp"),y=o("9og8"),x=o("y8nQ"),w=o("Vl3Y"),f=o("tJVT"),_=o("PpiC"),d=o("5NDa"),r=o("5rEg"),u=o("WmNS"),t=o.n(u),a=o("q1tI"),n=o.n(a),i=o("9kvl"),h=o("JFl9"),l=o.n(h),s=r.a.TextArea,p=function(S){var v=S.shixunsDetail,P=S.globalSetting,R=S.loading,E=S.dispatch,C=S.onFinish,m=C===void 0?function(){}:C,T=Object(_.a)(S,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),I=w.a.useForm(),D=Object(f.a)(I,1),N=D[0],z=function(){var W=Object(y.a)(t.a.mark(function K(B){var k,G;return t.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,E({type:"shixunsDetail/getCustomScript",payload:{id:(k=v.actionTabs.params)===null||k===void 0?void 0:k.id,compile:B.execute,excutive:B.compile}});case 2:G=fe.sent,F(),G&&m(G==null?void 0:G.shixun_script);case 5:case"end":return fe.stop()}},K)}));return function(B){return W.apply(this,arguments)}}(),F=function(){E({type:"shixunsDetail/setActionTabs",payload:{}})};return n.a.createElement(g.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:v.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:F},n.a.createElement(w.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:z},n.a.createElement(w.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},n.a.createElement(s,{rows:4})),n.a.createElement(w.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},n.a.createElement(s,{rows:4})),n.a.createElement("div",{className:l.a.footerWrap},n.a.createElement(w.a.Item,null,n.a.createElement(b.a,{className:"mr5",size:"large",onClick:F},"\u53D6\u6D88"),n.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:R.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};Y.a=Object(i.a)(function(O){var S=O.shixunsDetail,v=O.loading,P=O.globalSetting;return{shixunsDetail:S,globalSetting:P,loading:v}})(p)},Qvpy:function(M,Y,o){M.exports={title:"title___39Oep",content:"content___Xl7wK",add:"add___1luKB",colorBlue:"colorBlue___c0Swt",radio:"radio___OK4CQ"}},RC3E:function(M,Y,o){M.exports={wrap:"wrap___2zh4E",title:"title___Os-Oa",path:"path___eUXXC",colorBlue:"colorBlue___2IORo"}},RMFE:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAg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BAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RotF:function(M,Y,o){M.exports=o("LSTS")},RxwV:function(M,Y,o){"use strict";var L=o("q1tI"),g=o("uciX"),A=o("2W6z"),b=o.n(A),y=o("4IlW"),x=o("uK0f"),w=o.n(x);function f(be,ve){if(be===ve)return!0;if(!be||!ve)return!1;var ue=be.length;if(ve.length!==ue)return!1;for(var se=0;se0;(ot||me.isLeaf===!1)&&(ke+=" ".concat(we,"-menu-item-expand"),me.loading||(tt=L.createElement("span",{className:"".concat(we,"-menu-item-expand-icon")},$))),le==="hover"&&(ot||me.isLeaf===!1)&&(Te={onMouseEnter:this.delayOnSelect.bind(this,te),onMouseLeave:this.delayOnSelect.bind(this),onClick:te}),this.isActiveOption(me,re)&&(ke+=" ".concat(we,"-menu-item-active"),Te.ref=this.saveMenuItem(re)),me.disabled&&(ke+=" ".concat(we,"-menu-item-disabled"));var gt=null;me.loading&&(ke+=" ".concat(we,"-menu-item-loading"),gt=J||null);var Et="";return"title"in me?Et=me.title:typeof me[this.getFieldName("label")]=="string"&&(Et=me[this.getFieldName("label")]),L.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:ke,title:Et},Te,{role:"menuitem",onMouseDown:function(St){return St.preventDefault()}}),me[this.getFieldName("label")],tt,gt)}},{key:"getActiveOptions",value:function(me){var re=this,ie=this.props.options,we=me||this.props.activeValue;return w()(ie,function(le,$){return le[re.getFieldName("value")]===we[$]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ie=this.getActiveOptions().map(function(we){return we[me.getFieldName("children")]}).filter(function(we){return!!we});return ie.unshift(re),ie}},{key:"delayOnSelect",value:function(me){for(var re=this,ie=arguments.length,we=new Array(ie>1?ie-1:0),le=1;le=0)continue;if(!Object.prototype.propertyIsEnumerable.call(be,se))continue;ue[se]=be[se]}}return ue}function E(be,ve){if(be==null)return{};var ue={},se=Object.keys(be),q,me;for(me=0;me=0)continue;ue[q]=be[q]}return ue}function C(be){return D(be)||I(be)||T(be)||m()}function m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(be,ve){if(!be)return;if(typeof be=="string")return N(be,ve);var ue=Object.prototype.toString.call(be).slice(8,-1);if(ue==="Object"&&be.constructor&&(ue=be.constructor.name),ue==="Map"||ue==="Set")return Array.from(be);if(ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return N(be,ve)}function I(be){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(be))return Array.from(be)}function D(be){if(Array.isArray(be))return N(be)}function N(be,ve){(ve==null||ve>be.length)&&(ve=be.length);for(var ue=0,se=new Array(ve);ue=J.length?0:De):(De-=1,De=De<0?J.length-1:De):De=0,le[$]=J[De][me.getFieldName("value")]}else if(ie.keyCode===y.a.LEFT||ie.keyCode===y.a.BACKSPACE)ie.preventDefault(),le.splice(le.length-1,1);else if(ie.keyCode===y.a.RIGHT)ie.preventDefault(),J[te]&&J[te][me.getFieldName("children")]&&le.push(J[te][me.getFieldName("children")][0][me.getFieldName("value")]);else if(ie.keyCode===y.a.ESC||ie.keyCode===y.a.TAB){me.setPopupVisible(!1);return}(!le||le.length===0)&&me.setPopupVisible(!1);var Te=me.getActiveOptions(le),ke=Te[Te.length-1];me.handleMenuSelect(ke,Te.length-1,ie),me.props.onKeyDown&&me.props.onKeyDown(ie)},me.saveTrigger=function(ie){me.trigger=ie};var re=[];return"value"in q?re=q.value||[]:"defaultValue"in q&&(re=q.defaultValue||[]),b()(!("filedNames"in q),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),me.state={popupVisible:q.popupVisible,activeValue:re,value:re,prevProps:q},me.defaultFieldNames={label:"label",value:"value",children:"children"},me}return W(se,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(me){var re=this.defaultFieldNames,ie=this.props,we=ie.fieldNames,le=ie.filedNames;return"filedNames"in this.props?le[me]||re[me]:we[me]||re[me]}},{key:"getFieldNames",value:function(){var me=this.props,re=me.fieldNames,ie=me.filedNames;return"filedNames"in this.props?ie:re}},{key:"getCurrentLevelOptions",value:function(){var me=this,re=this.props.options,ie=re===void 0?[]:re,we=this.state.activeValue,le=we===void 0?[]:we,$=w()(ie,function(J,te){return J[me.getFieldName("value")]===le[te]},{childrenKeyName:this.getFieldName("children")});return $[$.length-2]?$[$.length-2][this.getFieldName("children")]:C(ie).filter(function(J){return!J.disabled})}},{key:"getActiveOptions",value:function(me){var re=this;return w()(this.props.options||[],function(ie,we){return ie[re.getFieldName("value")]===me[we]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var me=this.props,re=me.prefixCls,ie=me.transitionName,we=me.popupClassName,le=me.options,$=le===void 0?[]:le,J=me.disabled,te=me.builtinPlacements,De=me.popupPlacement,Te=me.children,ke=me.dropdownRender,tt=R(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ot=L.createElement("div",null),gt="";$&&$.length>0?ot=L.createElement(O,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):gt=" ".concat(re,"-menus-empty");var Et=ot;return ke&&(Et=ke(ot)),L.createElement(g.a,Object.assign({ref:this.saveTrigger},tt,{popupPlacement:De,builtinPlacements:te,popupTransitionName:ie,action:J?[]:["click"],popupVisible:J?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:we+gt,popup:Et}),L.cloneElement(Te,{onKeyDown:this.handleKeyDown,tabIndex:J?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(me,re){var ie=re.prevProps,we=ie===void 0?{}:ie,le={prevProps:me};return"value"in me&&!f(we.value,me.value)&&(le.value=me.value||[],"loadData"in me||(le.activeValue=me.value||[])),"popupVisible"in me&&(le.popupVisible=me.popupVisible),le}}]),se}(L.Component);return be.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:v,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},be}(),Oe=xe,ce=Y.a=Oe},S6kV:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.mode.OFB=function(){var g=L.lib.BlockCipherMode.extend(),A=g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,w=x.blockSize,f=this._iv,_=this._keystream;f&&(_=this._keystream=f.slice(0),this._iv=void 0),x.encryptBlock(_,0);for(var d=0;d|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(le){for(var $=0,J=!1,te=!1,De=0,Te=le.length;De122||(Ee<65||Ge>90||ft.push([Math.max(65,Ge)|32,Math.min(Ee,90)|32]),Ee<97||Ge>122||ft.push([Math.max(97,Ge)&~32,Math.min(Ee,122)&~32]))}}ft.sort(function(Ke,st){return Ke[0]-st[0]||st[1]-Ke[1]});for(var Ae=[],Fe=[],_t=0;_tWe[0]&&(We[1]+1>We[0]&&ht.push("-"),ht.push(gt(We[1])))}return ht.push("]"),ht.join("")}function xt(Je){for(var Ue=Je.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ft=Ue.length,kt=[],ht=0,_t=0;ht=2&&Ge==="["?Ue[ht]=Et(Qe):Ge!=="\\"&&(Ue[ht]=Qe.replace(/[a-zA-Z]/g,function(Fe){var We=Fe.charCodeAt(0);return"["+String.fromCharCode(We&~32,We|32)+"]"}))}return Ue.join("")}for(var St=[],De=0,Te=le.length;De=0;)J[St.charAt(Je)]=xt;var Ue=xt[1],ft=""+Ue;ot.hasOwnProperty(ft)||(tt.push(Ue),ot[ft]=null)}tt.push(/[\0-\uffff]/),te=B(tt)})();var De=$.length,Te=function(ke){for(var tt=ke.sourceCode,ot=ke.basePos,gt=ke.sourceNode,Et=[ot,T],xt=0,St=tt.match(te)||[],Je={},Ue=0,ft=St.length;Ue=5&&ht.substring(0,5)==="lang-",Qe&&!(_t&&typeof _t[1]=="string")&&(Qe=!1,ht=N),Qe||(Je[kt]=ht)}var Ee=xt;if(xt+=kt.length,!Qe)Et.push(ot+Ee,ht);else{var Ae=_t[1],Fe=kt.indexOf(Ae),We=Fe+Ae.length;_t[2]&&(We=kt.length-_t[2].length,Fe=We-Ae.length);var Ke=ht.substring(5);G(gt,ot+Ee,kt.substring(0,Fe),Te,Et),G(gt,ot+Ee+Fe,Ae,se(Ke,Ae),Et),G(gt,ot+Ee+We,kt.substring(We),Te,Et)}}ke.decorations=Et};return Te}function xe(le){var $=[],J=[];le.tripleQuotedStrings?$.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):le.multiLineStrings?$.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):$.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),le.verbatimStrings&&J.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var te=le.hashComments;te&&(le.cStyleComments?(te>1?$.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):$.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),J.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):$.push([R,/^#[^\r\n]*/,null,"#"])),le.cStyleComments&&(J.push([R,/^\/\/[^\r\n]*/,null]),J.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var De=le.regexLiterals;if(De){var Te=De>1?"":`
\r`,ke=Te?".":"[\\S\\s]",tt="/(?=[^/*"+Te+"])(?:[^/\\x5B\\x5C"+Te+"]|\\x5C"+ke+"|\\x5B(?:[^\\x5C\\x5D"+Te+"]|\\x5C"+ke+")*(?:\\x5D|$))+/";J.push(["lang-regex",RegExp("^"+K+"("+tt+")")])}var ot=le.types;ot&&J.push([E,ot]);var gt=(""+le.keywords).replace(/^ | $/g,"");gt.length&&J.push([P,new RegExp("^(?:"+gt.replace(/[\s,]+/g,"|")+")\\b"),null]),$.push([T,/^\s+/,null,` \r
\xA0`]);var Et="^.[^\\s\\w.$@'\"`/\\\\]*";return le.regexLiterals&&(Et+="(?!s*/)"),J.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[E,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[T,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[T,/^\\[\s\S]?/,null],[m,new RegExp(Et),null]),de($,J)}var Oe=xe({keywords:O,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(le,$,J){for(var te=/(?:^|\s)nocode(?:\s|$)/,De=/\r\n?|\n/,Te=le.ownerDocument,ke=Te.createElement("li");le.firstChild;)ke.appendChild(le.firstChild);var tt=[ke];function ot(Ue){var ft=Ue.nodeType;if(ft==1&&!te.test(Ue.className))if(Ue.nodeName==="br")gt(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var kt=Ue.firstChild;kt;kt=kt.nextSibling)ot(kt);else if((ft==3||ft==4)&&J){var ht=Ue.nodeValue,_t=ht.match(De);if(_t){var Qe=ht.substring(0,_t.index);Ue.nodeValue=Qe;var He=ht.substring(_t.index+_t[0].length);if(He){var Ge=Ue.parentNode;Ge.insertBefore(Te.createTextNode(He),Ue.nextSibling)}gt(Ue),Qe||Ue.parentNode.removeChild(Ue)}}}function gt(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function ft(_t,Qe){var He=Qe?_t.cloneNode(!1):_t,Ge=_t.parentNode;if(Ge){var Ee=ft(Ge,1),Ae=_t.nextSibling;Ee.appendChild(He);for(var Fe=Ae;Fe;Fe=Ae)Ae=Fe.nextSibling,Ee.appendChild(Fe)}return He}for(var kt=ft(Ue.nextSibling,0),ht;(ht=kt.parentNode)&&ht.nodeType===1;)kt=ht;tt.push(kt)}for(var Et=0;Et=Ge&&(ot+=2),Te>=Ee&&(xt+=2)}}finally{ht&&(ht.style.display=_t)}}var ve={};function ue(le,$){for(var J=$.length;--J>=0;){var te=$[J];ve.hasOwnProperty(te)?f.console&&console.warn("cannot override language handler %s",te):ve[te]=le}}function se(le,$){return le&&ve.hasOwnProperty(le)||(le=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^