You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Shixuns__Edit.5136049d.a...

589 lines
2.4 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(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,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"},"+NIl":function(M,Y,s){(function(L){L(s("VrN/"))})(function(L){"use strict";L.defineMode("stex",function(p,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 S(a){var n=a.cmdState.pop();n&&n.closeBracket()}function T(a){for(var n=a.cmdState,i=n.length-1;i>=0;i--){var f=n[i];if(f.name=="DEFAULT")continue;return f}return{styleIdentifier:function(){return null}}}function h(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=h("importmodule","tag",["string","builtin"]),_.documentclass=h("documentclass","tag",["","atom"]),_.usepackage=h("usepackage","tag",["atom"]),_.begin=h("begin","tag",["atom"]),_.end=h("end","tag",["atom"]),_.label=h("label","tag",["atom"]),_.ref=h("ref","tag",["atom"]),_.eqref=h("eqref","tag",["atom"]),_.cite=h("cite","tag",["atom"]),_.bibitem=h("bibitem","tag",["atom"]),_.Bibitem=h("Bibitem","tag",["atom"]),_.RBibitem=h("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 f=a.current().slice(1);return i=_.hasOwnProperty(f)?_[f]:_.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(o,m){return c(o,m,"\\]")}),"keyword";if(a.match("\\("))return d(n,function(o,m){return c(o,m,"\\)")}),"keyword";if(a.match("$$"))return d(n,function(o,m){return c(o,m,"$$")}),"keyword";if(a.match("$"))return d(n,function(o,m){return c(o,m,"$")}),"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=T(n),i.name=="begin"&&(i.argument=a.current()),i.styleIdentifier())}function c(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 f=a.next();return f=="{"||f=="}"||f=="["||f=="]"||f=="("||f==")"?"bracket":f=="%"?(a.skipToEnd(),"comment"):"error"}function t(a,n){var i=a.peek(),f;return i=="{"||i=="["?(f=y(n),f.openBracket(i),a.eat(i),d(n,r),"bracket"):/[ \t\r]/.test(i)?(a.eat(i),null):(d(n,r),S(n),r(a,n))}return{startState:function(){var a=A.inMathMode?function(n,i){return c(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,s){"use strict";var L=s("E9nw"),p={"text/plain":"Text","text/html":"Url",default:"Text"},A="Copy to clipboard: #{key}, Enter";function b(S){var T=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return S.replace(/#{\s*key\s*}/g,T)}function y(S,T){var h,_,d,r,c,t,a=!1;T||(T={}),h=T.debug||!1;try{d=L(),r=document.createRange(),c=document.getSelection(),t=document.createElement("span"),t.textContent=S,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(),T.format)if(i.preventDefault(),typeof i.clipboardData=="undefined"){h&&console.warn("unable to use e.clipboardData"),h&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=p[T.format]||p.default;window.clipboardData.setData(f,S)}else i.clipboardData.clearData(),i.clipboardData.setData(T.format,S);T.onCopy&&(i.preventDefault(),T.onCopy(i.clipboardData))}),document.body.appendChild(t),r.selectNodeContents(t),c.addRange(r);var n=document.execCommand("copy");if(!n)throw new Error("copy command was unsuccessful");a=!0}catch(i){h&&console.error("unable to copy using execCommand: ",i),h&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(T.format||"text",S),T.onCopy&&T.onCopy(window.clipboardData),a=!0}catch(f){h&&console.error("unable to copy using clipboardData: ",f),h&&console.error("falling back to prompt"),_=b("message"in T?T.message:A),window.prompt(_,S)}}finally{c&&(typeof c.removeRange=="function"?c.removeRange(r):c.removeAllRanges()),t&&document.body.removeChild(t),d()}return a}M.exports=y},"+Xk9":function(M,Y,s){M.exports={btn:"btn___2veY9",s1:"s1___ZVDC_",s2:"s2___2Da-A"}},"+ua5":function(M,Y,s){},"/GNS":function(M,Y,s){M.exports=s.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__("cDcd"),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 s=Y.split(":");if(s[1]=="00"||s[1]=="30")return Y;var L=parseInt(s[1]);if(L<30||L==60)return[s[0],"30"].join(":");if(L<60){var p=[s[0],"00"].join(":"),A="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(p,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(s){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:s}});case 2:L=A.sent,L&&setDepartmentList(L.shools_name||[]);case 4:case"end":return A.stop()}},Y)}));return function(s){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,s,L){var p=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)({},s,Y)):A});setServiceConfigList(p)},handleInitState=function(){var Y,s,L,p,A,b,y,S,T,h,_,d,r,c,t,a,n,i,f,l,o,m,w,C,v,P,R,E,x,g,O,I,D,N,V,F,W,K,B,k,G,ne,fe,de,Ee,we,ce,be,ve,ue,se,q,me,re,ie,Oe,le,$,J,te,Ae,Se,ke,rt,ot,gt,Et,Ct=(shixunsDetail==null||((Y=shixunsDetail.setting)===null||Y===void 0)?void 0:Y.shixun)||{},wt=Ct.choice_main_type,Qe=Ct.main_type,Ue=Ct.small_type,ft=Ct.choice_small_type,jt=Ct.is_secret_repository,ht=Ct.standard_scripts,_t=Ct.evaluate_script,Ye=Ct.shixun_service_configs;if(setEvaluateScript(_t),setServiceConfigList(Ye),setStandardScripts(ht||[]),setWindowVNCTemplate((s=shixunsDetail.setting)===null||s===void 0||((L=s.shixun)===null||L===void 0)?void 0:L.windows_start_template),setWebsshCloud((p=shixunsDetail.setting)===null||p===void 0||((A=p.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((S=shixunsDetail.setting)===null||S===void 0||((T=S.shixun)===null||T===void 0)?void 0:T.virtual_machine),setLinuxVNC((h=shixunsDetail.setting)===null||h===void 0||((_=h.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((c=shixunsDetail.setting)===null||c===void 0||((t=c.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||((f=i.shixun)===null||f===void 0)?void 0:f.webssh),setMultiWebssh((l=shixunsDetail.setting)===null||l===void 0||((o=l.shixun)===null||o===void 0)?void 0:o.multi_webssh),setHideCode((m=shixunsDetail.setting)===null||m===void 0||((w=m.shixun)===null||w===void 0)?void 0:w.hide_code),setCodeEditPermission((C=shixunsDetail.setting)===null||C===void 0||((v=C.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||((x=E.shixun)===null||x===void 0)?void 0:x.forbid_copy),setTaskPass((g=shixunsDetail.setting)===null||g===void 0||((O=g.shixun)===null||O===void 0)?void 0:O.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((V=shixunsDetail.setting)===null||V===void 0||((F=V.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((Ee=shixunsDetail.setting)===null||Ee===void 0||((we=Ee.shixun)===null||we===void 0)?void 0:we.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 We,Xe;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||((We=shixunsDetail.setting)===null||We===void 0||((Xe=We.shixun)===null||Xe===void 0))?void 0:Xe.shixun_virtual_templates))}setport((Oe=shixunsDetail.setting)===null||Oe===void 0||((le=Oe.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&&(Ae=te.shixun)!==null&&Ae!==void 0&&Ae.linux_vnc||(Se=shixunsDetail.setting)!==null&&Se!==void 0&&(ke=Se.shixun)!==null&&ke!==void 0&&ke.vnc||(rt=shixunsDetail.setting)!==null&&rt!==void 0&&(ot=rt.shixun)!==null&&ot!==void 0&&ot.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(gt=shixunsDetail.setting)!==null&&gt!==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 s,L;M!=((s=shixunsDetail.setting)===null||s===void 0||((L=s.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 s,L,p,A,b,y,S,T,h,_,d,r;(M==null?void 0:M.cpu_limit)!=((s=shixunsDetail.setting)===null||s===void 0||((L=s.shixun)===null||L===void 0||((p=L.shixun_service_configs[Y])===null||p===void 0))?void 0:p.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)!=((S=shixunsDetail.setting)===null||S===void 0||((T=S.shixun)===null||T===void 0||((h=T.shixun_service_configs[Y])===null||h===void 0))?void 0:h.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,s,L,p;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(s=(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:s?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:s?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:p=b.sent,(p==null?void 0:p.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 s=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 p(){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()}},p)}));function L(){return s.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(s){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:s}});case 2:L=A.sent,L&&setEvaluateScript(L.content);case 4:case"end":return A.stop()}},Y)}));return function(s){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 s,L,p,A,b,y,S;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(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(h.t0=h.sent,h.t0){h.next=5;break}h.t0={};case 5:S=h.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)},!!((s=S.subjects)!==null&&s!==void 0&&s.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=S.subjects)===null||L===void 0||((p=L.splice(0,2))===null||p===void 0)?void 0:p.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},S==null?void 0:S.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),!!((A=S.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=S.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},S==null?void 0:S.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 c;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:c=a.sent,c.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 h.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 s;if(practiceSetting!=null&&(s=practiceSetting.sideBar)!==null&&s!==void 0&&s.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(s){return s!==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&&Y<moment__WEBPACK_IMPORTED_MODULE_42___default()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:openTime&&moment__WEBPACK_IMPORTED_MODULE_42___default()(openTime,timeFormat),onChange:function(Y,s){return setOpenTime(handleDateString(s))}})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u5B9E\u9A8C\u6A21\u5F0F"),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:"5px 0px"}},"\u7F16\u7A0B\u754C\u9762\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(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginTop:"5px"},value:0,checked:hideCode!=1,onChange:function(Y){var s=Y.target.checked;setHideCode(hideCode===1?0:1),s?setCodeEditPermission(!1):(setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1))}},"IDE\u754C\u9762",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\u4E3A\u5B66\u5458\u63D0\u4F9B\u4EE3\u7801\u7F16\u8F91\u5668\uFF0C\u7F16\u8BD1\u5668\uFF0C\u8C03\u8BD5\u5668\u7B49\u5DE5\u5177\uFF09")),hideCode!=1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:hideCode,className:"mt20",onChange:function(Y){setHideCode(Y.target.value)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_space__WEBPACK_IMPORTED_MODULE_11__.a,{direction:"vertical"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:0},"\u9ED8\u8BA4\u7F16\u8F91\u5668"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:2},"VSCode\u7F16\u8F91\u5668"))),hideCode===2&&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,{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\u52308081\u7AEF\u53E3\uFF09")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:Remote,onChange:function(Y){var s=Y.target.checked;setRemote(s),s?(setIsRadiuValue(3),setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2)):(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1),setshixun_virtual_templates([]),setVirtualMachine(!1))}},"\u8FDC\u7A0B\u8FDE\u63A5\u754C\u9762",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\u4E3A\u5B66\u5458\u63D0\u4F9B\u8FDC\u7A0B\u8FDE\u63A5\u754C\u9762\uFF09")),Remote&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{marginTop:"5px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:isRadiuvalue,onChange:function(Y){var s,L,p,A,b,y,S,T,h,_;if(setIsRadiuValue(Y.target.value),setSshRadioValue(1),setport(!1),Y.target.value===3&&((s=shixunsDetail.setting)===null||s===void 0||((L=s.shixun)===null||L===void 0)?void 0:L.webssh)===2&&!((p=shixunsDetail.setting)!==null&&p!==void 0&&(A=p.shixun)!==null&&A!==void 0&&A.vnc)){var d,r;setport((d=shixunsDetail.setting)===null||d===void 0||((r=d.shixun)===null||r===void 0)?void 0:r.port_mapping)}if(Y.target.value===5&&!((b=shixunsDetail.setting)!==null&&b!==void 0&&(y=b.shixun)!==null&&y!==void 0&&y.linux_vnc)&&!((S=shixunsDetail.setting)!==null&&S!==void 0&&(T=S.shixun)!==null&&T!==void 0&&T.windows_vnc)&&(h=shixunsDetail.setting)!==null&&h!==void 0&&(_=h.shixun)!==null&&_!==void 0&&_.vnc){var c,t;setport((c=shixunsDetail.setting)===null||c===void 0||((t=c.shixun)===null||t===void 0)?void 0:t.port_mapping)}Y.target.value===1?(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1)):Y.target.value===2?(setWindowVNC(!1),setLinuxVNC(!1),setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0)):Y.target.value===3?(setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2),setshixun_virtual_templates([]),setVirtualMachine(!1)):Y.target.value===4?(setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1)):Y.target.value===5&&(setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:3,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u547D\u4EE4\u884C\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\u4E3A\u5B66\u5458\u63D0\u4F9B\u547D\u4EE4\u884C\u7A97\u53E3\uFF09")),websshShow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl," ml40"),style:{borderRadius:"8px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:sshRadioValue,disabled:!editable,onChange:function(Y){var s,L,p,A,b,y,S=Y.target.value;if(setport(!1),S===1&&((s=shixunsDetail.setting)===null||s===void 0||((L=s.shixun)===null||L===void 0)?void 0:L.webssh)===1){var T,h;setport((T=shixunsDetail.setting)===null||T===void 0||((h=T.shixun)===null||h===void 0)?void 0:h.port_mapping)}else if(S===2&&((p=shixunsDetail.setting)===null||p===void 0||((A=p.shixun)===null||A===void 0)?void 0:A.webssh)===2){var _,d;setport((_=shixunsDetail.setting)===null||_===void 0||((d=_.shixun)===null||d===void 0)?void 0:d.port_mapping)}if(setSshRadioValue(S),S!==1&&setMultiWebssh(!1),setWindowVNCTemplate(""),setWebsshCloud(1),S===3&&((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.webssh)===3){var r,c,t,a;setWebsshCloud((r=shixunsDetail.setting)===null||r===void 0||((c=r.shixun)===null||c===void 0)?void 0:c.webssh_cloud),setWindowVNCTemplate((t=shixunsDetail.setting)===null||t===void 0||((a=t.shixun)===null||a===void 0)?void 0:a.windows_start_template)}}},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:2},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BC4\u6D4B\u7A97\u53E3"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u7ED9\u5B66\u5458\u63D0\u4F9B\u7528\u4E8E\u8BC4\u6D4B\u64CD\u4F5C\u7684\u547D\u4EE4\u884C\uFF0C\u547D\u4EE4\u884C\u7684\u64CD\u4F5C\u53EF\u4EE5\u5BF9\u5B66\u751F\u7684\u5B9E\u9A8C\u73AF\u5883\u4EA7\u751F\u5F71\u54CD\uFF09")),sshRadioValue===2&&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,{style:{marginLeft:"30px",marginTop:"10px"},checked:multiWebssh,disabled:!editable,onChange:function(Y){return setMultiWebssh(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,"\u591A\u4E2A\u547D\u4EE4\u884C\u7A97\u53E3\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u540C\u65F6\u5F00\u542F\u591A\u4E2A\u547D\u4EE4\u884C\u7A97\u53E3\uFF09")))),sshRadioValue===2&&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\u52308081\u7AEF\u53E3\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,"\u7EC3\u4E60\u7A97\u53E3"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u7ED9\u5B66\u5458\u63D0\u4F9B\u7528\u4E8E\u7EC3\u4E60\u64CD\u4F5C\u7684\u547D\u4EE4\u884C\uFF0C\u547D\u4EE4\u884C\u7684\u64CD\u4F5C\u4E0D\u4F1A\u5BF9\u5B66\u751F\u7684\u5B9E\u9A8C\u73AF\u5883\u9020\u6210\u5F71\u54CD\uFF09")),sshRadioValue===1&&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\u52308081\u7AEF\u53E3\uFF09"))),webssh_cloud===1&&sshRadioValue===3&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap,style:{alignItems:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\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"})))),webssh_cloud===1&&sshRadioValue===3&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap,style:{alignItems:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u4E91\u4E3B\u673A\u6570\u91CF\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:terminal_count,onChange:function(Y){setterminal_count(Y)},max:3,min:1,defaultValue:1}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"c-grey-999 ml20 font14"},"(\u6CE8\u610F\uFF1A\u4E91\u4E3B\u673A\u4E0A\u9650\u662F10\u53F0)")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:5,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u56FE\u5F62\u5316\u754C\u9762",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\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")))),isRadiuvalue===5&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(sshRadioValue!=2?_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graayminglthree:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl," ml40")},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:linux_vnc?"linux_vnc":windows_vnc?"windows_vnc":virtual_machine?"virtual_machine":"linux",disabled:!editable,onChange:function(Y){var s,L,p,A,b,y,S,T,h,_=Y.target.value;if(setWindowVNCTemplate(""),setport(!1),_==="linux_vnc"&&(s=shixunsDetail.setting)!==null&&s!==void 0&&(L=s.shixun)!==null&&L!==void 0&&L.linux_vnc){var d,r;setWindowVNCTemplate((d=shixunsDetail.setting)===null||d===void 0||((r=d.shixun)===null||r===void 0)?void 0:r.windows_start_template)}else if(_==="windows_vnc"&&(p=shixunsDetail.setting)!==null&&p!==void 0&&(A=p.shixun)!==null&&A!==void 0&&A.windows_vnc){var c,t;setWindowVNCTemplate((c=shixunsDetail.setting)===null||c===void 0||((t=c.shixun)===null||t===void 0)?void 0:t.windows_start_template)}else if(_==="virtual_machine"&&(b=shixunsDetail.setting)!==null&&b!==void 0&&(y=b.shixun)!==null&&y!==void 0&&y.virtual_machine){var a,n;setWindowVNCTemplate((a=shixunsDetail.setting)===null||a===void 0||((n=a.shixun)===null||n===void 0)?void 0:n.windows_start_template)}else{var i,f,l,o,m,w;_==="linux"&&!((i=shixunsDetail.setting)!==null&&i!==void 0&&(f=i.shixun)!==null&&f!==void 0&&f.linux_vnc)&&!((l=shixunsDetail.setting)!==null&&l!==void 0&&(o=l.shixun)!==null&&o!==void 0&&o.windows_vnc)&&setport((m=shixunsDetail.setting)===null||m===void 0||((w=m.shixun)===null||w===void 0)?void 0:w.port_mapping)}switch(_){case"linux_vnc":setLinuxVNC(!0),setWindowVNC(!1),setVirtualMachine(!1),setVNC(!1);break;case"windows_vnc":setLinuxVNC(!1),setWindowVNC(!0),setVirtualMachine(!1),setVNC(!1);break;case"linux":setWindowVNC(!1),setLinuxVNC(!1),setMultiWebssh(!1),setWebsshShow(!1),setVirtualMachine(!1),setVNC(!0);break;case"virtual_machine":if(setWindowVNC(!1),setLinuxVNC(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1),setVirtualMachine(!0),(shixunsDetail==null||((S=shixunsDetail.setting)===null||S===void 0||((T=S.shixun)===null||T===void 0||((h=T.shixun_virtual_templates)===null||h===void 0)))?void 0:h.length)>0){var C,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||((C=shixunsDetail.setting)===null||C===void 0||((v=C.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 s,L,p,A,b,y,S,T;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:((s=shixunsDetail.setting)===null||s===void 0||((L=s.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:((p=shixunsDetail.setting)===null||p===void 0||((A=p.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:((S=shixunsDetail.setting)===null||S===void 0||((T=S.shixun)===null||T===void 0)?void 0:T.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,s=M.shixunsDetail,L=M.practiceSetting;return{user:Y,shixunsDetail:s,practiceSetting:L}})(Setting)},"19Vz":function(M,Y,s){(function(L){L(s("VrN/"))})(function(L){L.defineOption("placeholder","",function(h,_,d){var r=d&&d!=L.Init;if(_&&!r)h.on("blur",y),h.on("change",S),h.on("swapDoc",S),L.on(h.getInputField(),"compositionupdate",h.state.placeholderCompose=function(){b(h)}),S(h);else if(!_&&r){h.off("blur",y),h.off("change",S),h.off("swapDoc",S),L.off(h.getInputField(),"compositionupdate",h.state.placeholderCompose),p(h);var c=h.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}_&&!h.hasFocus()&&y(h)});function p(h){h.state.placeholder&&(h.state.placeholder.parentNode.removeChild(h.state.placeholder),h.state.placeholder=null)}function A(h){p(h);var _=h.state.placeholder=document.createElement("pre");_.style.cssText="height: 0; overflow: visible",_.style.direction=h.getOption("direction"),_.className="CodeMirror-placeholder CodeMirror-line-like";var d=h.getOption("placeholder");typeof d=="string"&&(d=document.createTextNode(d)),_.appendChild(d),h.display.lineSpace.insertBefore(_,h.display.lineSpace.firstChild)}function b(h){setTimeout(function(){var _=!1,d=h.getInputField();d.nodeName=="TEXTAREA"?_=!d.value:h.lineCount()==1&&(_=!/[^\u200b]/.test(d.querySelector(".CodeMirror-line").textContent)),_?A(h):p(h)},20)}function y(h){T(h)&&A(h)}function S(h){var _=h.getWrapperElement(),d=T(h);_.className=_.className.replace(" CodeMirror-empty","")+(d?" CodeMirror-empty":""),d?A(h):p(h)}function T(h){return h.lineCount()===1&&h.getLine(0)===""}})},"1Sn+":function(M,Y,s){},"1XHU":function(M,Y,s){"use strict";var L=s("2qtc"),p=s("kLXV"),A=s("cDcd"),b=s.n(A),y=s("9kvl"),S=s("3wET"),T=s.n(S),h=s("bUJZ"),_=s.n(h),d=s("Ct/S"),r=s.n(d),c=function(a){var n=a.visible,i=a.occupationValue,f=a.onCancel,l=f===void 0?function(){}:f,o=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"))},m=function(){return b.a.createElement("div",{className:r.a.flexColumn},b.a.createElement("img",{className:r.a.img,src:T.a}),b.a.createElement("span",{className:r.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},w=function(){return i===3?b.a.createElement(b.a.Fragment,null,m(),o()):i===2?o():m()};return b.a.createElement(p.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},w()))};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}})(c)},"1ZF9":function(M,Y,s){M.exports=s.p+"static/Authorize.cc9c212f.png"},"1eCo":function(M,Y,s){(function(L){L(s("VrN/"))})(function(L){"use strict";var p={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 S=b.indentUnit,T={},h=y.htmlMode?p:A;for(var _ in h)T[_]=h[_];for(var _ in y)T[_]=y[_];var d,r;function c(O,I){function D(F){return I.tokenize=F,F(O,I)}var N=O.next();if(N=="<")return O.eat("!")?O.eat("[")?O.match("CDATA[")?D(n("atom","]]>")):null:O.match("--")?D(n("comment","-->")):O.match("DOCTYPE",!0,!0)?(O.eatWhile(/[\w\._\-]/),D(i(1))):null:O.eat("?")?(O.eatWhile(/[\w\._\-]/),I.tokenize=n("meta","?>"),"meta"):(d=O.eat("/")?"closeTag":"openTag",I.tokenize=t,"tag bracket");if(N=="&"){var V;return O.eat("#")?O.eat("x")?V=O.eatWhile(/[a-fA-F\d]/)&&O.eat(";"):V=O.eatWhile(/[\d]/)&&O.eat(";"):V=O.eatWhile(/[\w\.\-:]/)&&O.eat(";"),V?"atom":"error"}else return O.eatWhile(/[^&<]/),null}c.isInText=!0;function t(O,I){var D=O.next();if(D==">"||D=="/"&&O.eat(">"))return I.tokenize=c,d=D==">"?"endTag":"selfcloseTag","tag bracket";if(D=="=")return d="equals",null;if(D=="<"){I.tokenize=c,I.state=m,I.tagName=I.tagStart=null;var N=I.tokenize(O,I);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(D)?(I.tokenize=a(D),I.stringStartCol=O.column(),I.tokenize(O,I)):(O.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function a(O){var I=function(D,N){for(;!D.eol();)if(D.next()==O){N.tokenize=t;break}return"string"};return I.isInAttribute=!0,I}function n(O,I){return function(D,N){for(;!D.eol();){if(D.match(I)){N.tokenize=c;break}D.next()}return O}}function i(O){return function(I,D){for(var N;(N=I.next())!=null;){if(N=="<")return D.tokenize=i(O+1),D.tokenize(I,D);if(N==">")if(O==1){D.tokenize=c;break}else return D.tokenize=i(O-1),D.tokenize(I,D)}return"meta"}}function f(O,I,D){this.prev=O.context,this.tagName=I,this.indent=O.indented,this.startOfLine=D,(T.doNotIndent.hasOwnProperty(I)||O.context&&O.context.noIndent)&&(this.noIndent=!0)}function l(O){O.context&&(O.context=O.context.prev)}function o(O,I){for(var D;;){if(!O.context)return;if(D=O.context.tagName,!T.contextGrabbers.hasOwnProperty(D)||!T.contextGrabbers[D].hasOwnProperty(I))return;l(O)}}function m(O,I,D){return O=="openTag"?(D.tagStart=I.column(),w):O=="closeTag"?C:m}function w(O,I,D){return O=="word"?(D.tagName=I.current(),r="tag",R):T.allowMissingTagName&&O=="endTag"?(r="tag bracket",R(O,I,D)):(r="error",w)}function C(O,I,D){if(O=="word"){var N=I.current();return D.context&&D.context.tagName!=N&&T.implicitlyClosed.hasOwnProperty(D.context.tagName)&&l(D),D.context&&D.context.tagName==N||T.matchClosing===!1?(r="tag",v):(r="tag error",P)}else return T.allowMissingTagName&&O=="endTag"?(r="tag bracket",v(O,I,D)):(r="error",P)}function v(O,I,D){return O!="endTag"?(r="error",v):(l(D),m)}function P(O,I,D){return r="error",v(O,I,D)}function R(O,I,D){if(O=="word")return r="attribute",E;if(O=="endTag"||O=="selfcloseTag"){var N=D.tagName,V=D.tagStart;return D.tagName=D.tagStart=null,O=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(N)?o(D,N):(o(D,N),D.context=new f(D,N,V==D.indented)),m}return r="error",R}function E(O,I,D){return O=="equals"?x:(T.allowMissing||(r="error"),R(O,I,D))}function x(O,I,D){return O=="string"?g:O=="word"&&T.allowUnquoted?(r="string",R):(r="error",R(O,I,D))}function g(O,I,D){return O=="string"?g:R(O,I,D)}return{startState:function(O){var I={tokenize:c,state:m,indented:O||0,tagName:null,tagStart:null,context:null};return O!=null&&(I.baseIndent=O),I},token:function(O,I){if(!I.tagName&&O.sol()&&(I.indented=O.indentation()),O.eatSpace())return null;d=null;var D=I.tokenize(O,I);return(D||d)&&D!="comment"&&(r=null,I.state=I.state(d||D,O,I),r&&(D=r=="error"?D+" error":r)),D},indent:function(O,I,D){var N=O.context;if(O.tokenize.isInAttribute)return O.tagStart==O.indented?O.stringStartCol+1:O.indented+S;if(N&&N.noIndent)return L.Pass;if(O.tokenize!=t&&O.tokenize!=c)return D?D.match(/^(\s*)/)[0].length:0;if(O.tagName)return T.multilineTagIndentPastTag!==!1?O.tagStart+O.tagName.length+2:O.tagStart+S*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/<!\[CDATA\[/.test(I))return 0;var V=I&&/^<(\/)?([\w_:\.-]*)/.exec(I);if(V&&V[1])for(;N;)if(N.tagName==V[2]){N=N.prev;break}else if(T.implicitlyClosed.hasOwnProperty(N.tagName))N=N.prev;else break;else if(V)for(;N;){var F=T.contextGrabbers[N.tagName];if(F&&F.hasOwnProperty(V[2]))N=N.prev;else break}for(;N&&N.prev&&!N.startOfLine;)N=N.prev;return N?N.indent+S:O.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(O){O.state==x&&(O.state=R)},xmlCurrentTag:function(O){return O.tagName?{name:O.tagName,close:O.type=="closeTag"}:null},xmlCurrentContext:function(O){for(var I=[],D=O.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,s){"use strict";s.d(Y,"d",function(){return rt}),s.d(Y,"b",function(){return Ze}),s.d(Y,"c",function(){return Pt}),s.d(Y,"a",function(){return dn});var L=s("VTBJ"),p=s("1OyB"),A=s("vuIU"),b=s("JX7q"),y=s("Ji7U"),S=s("LK+K"),T=s("cDcd"),h=s("I8Z2"),_=s("BGR+"),d=s("wx14"),r=s("rePB"),c=s("4IlW"),t=s("2GS6"),a=s("Gytx"),n=s.n(a),i=s("TSYQ"),f=s.n(i),l=s("U8pU"),o=s("ODXe"),m=/iPhone/i,w=/iPod/i,C=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,R=/\bAndroid(?:.+)SD4930UR\b/i,E=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,x=/Windows Phone/i,g=/\bWindows(?:.+)ARM\b/i,O=/BlackBerry/i,I=/BB10/i,D=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,V=/Mobile(?:.+)Firefox\b/i;function F(ut,je){return ut.test(je)}function W(ut){var je=ut||(typeof navigator!="undefined"?navigator.userAgent:""),tt=je.split("[FBAN");if(typeof tt[1]!="undefined"){var nt=tt,De=Object(o.a)(nt,1);je=De[0]}if(tt=je.split("Twitter"),typeof tt[1]!="undefined"){var Fe=tt,bt=Object(o.a)(Fe,1);je=bt[0]}var dt={apple:{phone:F(m,je)&&!F(x,je),ipod:F(w,je),tablet:!F(m,je)&&F(C,je)&&!F(x,je),device:(F(m,je)||F(w,je)||F(C,je))&&!F(x,je)},amazon:{phone:F(R,je),tablet:!F(R,je)&&F(E,je),device:F(R,je)||F(E,je)},android:{phone:!F(x,je)&&F(R,je)||!F(x,je)&&F(v,je),tablet:!F(x,je)&&!F(R,je)&&!F(v,je)&&(F(E,je)||F(P,je)),device:!F(x,je)&&(F(R,je)||F(E,je)||F(v,je)||F(P,je))||F(/\bokhttp\b/i,je)},windows:{phone:F(x,je),tablet:F(g,je),device:F(x,je)||F(g,je)},other:{blackberry:F(O,je),blackberry10:F(I,je),opera:F(D,je),firefox:F(V,je),chrome:F(N,je),device:F(O,je)||F(I,je)||F(D,je)||F(V,je)||F(N,je)},any:null,phone:null,tablet:null};return dt.any=dt.apple.device||dt.android.device||dt.windows.device||dt.other.device,dt.phone=dt.apple.phone||dt.android.phone||dt.windows.phone,dt.tablet=dt.apple.tablet||dt.android.tablet||dt.windows.tablet,dt}var K=Object(L.a)(Object(L.a)({},W()),{},{isMobile:W}),B=K;function k(){}function G(ut,je,tt){var nt=je||"";return ut.key||"".concat(nt,"item_").concat(tt)}function ne(ut){return"".concat(ut,"-menu-")}function fe(ut,je){var tt=-1;T.Children.forEach(ut,function(nt){tt+=1,nt&&nt.type&&nt.type.isMenuItemGroup?T.Children.forEach(nt.props.children,function(De){tt+=1,je(De,tt)}):je(nt,tt)})}function de(ut,je,tt){if(!ut||tt.find)return;T.Children.forEach(ut,function(nt){if(nt){var De=nt.type;if(!De||!(De.isSubMenu||De.isMenuItem||De.isMenuItemGroup))return;je.indexOf(nt.key)!==-1?tt.find=!0:nt.props.children&&de(nt.props.children,je,tt)}})}var Ee=["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"],we=function(je){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=je&&typeof je.getBoundingClientRect=="function"&&je.getBoundingClientRect().width;if(nt){if(tt){var De=getComputedStyle(je),Fe=De.marginLeft,bt=De.marginRight;nt+=+Fe.replace("px","")+ +bt.replace("px","")}nt=+nt.toFixed(6)}return nt||0},ce=function(je,tt,nt){je&&Object(l.a)(je.style)==="object"&&(je.style[tt]=nt)},be=function(){return B.any},ve=s("KQm4"),ue=s("Ff2n"),se=s("faye"),q=s("bdgK"),me=s("uciX"),re=s("8XRh"),ie={adjustX:1,adjustY:1},Oe={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]}},$=Oe,J=0,te={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ae=function(je,tt,nt){var De=ne(tt),Fe=je.getState();je.setState({defaultActiveFirst:Object(L.a)(Object(L.a)({},Fe.defaultActiveFirst),{},Object(r.a)({},De,nt))})},Se=function(ut){Object(y.a)(tt,ut);var je=Object(S.a)(tt);function tt(nt){var De;Object(p.a)(this,tt),De=je.call(this,nt),De.onDestroy=function(et){De.props.onDestroy(et)},De.onKeyDown=function(et){var Mt=et.keyCode,Ht=De.menuInstance,_n=De.props,vn=_n.isOpen,fn=_n.store;if(Mt===c.a.ENTER)return De.onTitleClick(et),Ae(fn,De.props.eventKey,!0),!0;if(Mt===c.a.RIGHT)return vn?Ht.onKeyDown(et):(De.triggerOpenChange(!0),Ae(fn,De.props.eventKey,!0)),!0;if(Mt===c.a.LEFT){var Gn;if(vn)Gn=Ht.onKeyDown(et);else return;return Gn||(De.triggerOpenChange(!1),Gn=!0),Gn}return vn&&(Mt===c.a.UP||Mt===c.a.DOWN)?Ht.onKeyDown(et):void 0},De.onOpenChange=function(et){De.props.onOpenChange(et)},De.onPopupVisibleChange=function(et){De.triggerOpenChange(et,et?"mouseenter":"mouseleave")},De.onMouseEnter=function(et){var Mt=De.props,Ht=Mt.eventKey,_n=Mt.onMouseEnter,vn=Mt.store;Ae(vn,De.props.eventKey,!1),_n({key:Ht,domEvent:et})},De.onMouseLeave=function(et){var Mt=De.props,Ht=Mt.parentMenu,_n=Mt.eventKey,vn=Mt.onMouseLeave;Ht.subMenuInstance=Object(b.a)(De),vn({key:_n,domEvent:et})},De.onTitleMouseEnter=function(et){var Mt=De.props,Ht=Mt.eventKey,_n=Mt.onItemHover,vn=Mt.onTitleMouseEnter;_n({key:Ht,hover:!0}),vn({key:Ht,domEvent:et})},De.onTitleMouseLeave=function(et){var Mt=De.props,Ht=Mt.parentMenu,_n=Mt.eventKey,vn=Mt.onItemHover,fn=Mt.onTitleMouseLeave;Ht.subMenuInstance=Object(b.a)(De),vn({key:_n,hover:!1}),fn({key:_n,domEvent:et})},De.onTitleClick=function(et){var Mt=Object(b.a)(De),Ht=Mt.props;if(Ht.onTitleClick({key:Ht.eventKey,domEvent:et}),Ht.triggerSubMenuAction==="hover")return;De.triggerOpenChange(!Ht.isOpen,"click"),Ae(Ht.store,De.props.eventKey,!1)},De.onSubMenuClick=function(et){typeof De.props.onClick=="function"&&De.props.onClick(De.addKeyPath(et))},De.onSelect=function(et){De.props.onSelect(et)},De.onDeselect=function(et){De.props.onDeselect(et)},De.getPrefixCls=function(){return"".concat(De.props.rootPrefixCls,"-submenu")},De.getActiveClassName=function(){return"".concat(De.getPrefixCls(),"-active")},De.getDisabledClassName=function(){return"".concat(De.getPrefixCls(),"-disabled")},De.getSelectedClassName=function(){return"".concat(De.getPrefixCls(),"-selected")},De.getOpenClassName=function(){return"".concat(De.props.rootPrefixCls,"-submenu-open")},De.saveMenuInstance=function(et){De.menuInstance=et},De.addKeyPath=function(et){return Object(L.a)(Object(L.a)({},et),{},{keyPath:(et.keyPath||[]).concat(De.props.eventKey)})},De.triggerOpenChange=function(et,Mt){var Ht=De.props.eventKey,_n=function(){De.onOpenChange({key:Ht,item:Object(b.a)(De),trigger:Mt,open:et})};Mt==="mouseenter"?De.mouseenterTimeout=setTimeout(function(){_n()},0):_n()},De.isChildrenSelected=function(){var et={find:!1};return de(De.props.children,De.props.selectedKeys,et),et.find},De.isOpen=function(){return De.props.openKeys.indexOf(De.props.eventKey)!==-1},De.adjustWidth=function(){if(!De.subMenuTitle||!De.menuInstance)return;var et=se.findDOMNode(De.menuInstance);if(et.offsetWidth>=De.subMenuTitle.offsetWidth)return;et.style.minWidth="".concat(De.subMenuTitle.offsetWidth,"px")},De.saveSubMenuTitle=function(et){De.subMenuTitle=et},De.getBaseProps=function(){var et=Object(b.a)(De),Mt=et.props;return{mode:Mt.mode==="horizontal"?"vertical":Mt.mode,visible:De.props.isOpen,level:Mt.level+1,inlineIndent:Mt.inlineIndent,focusable:!1,onClick:De.onSubMenuClick,onSelect:De.onSelect,onDeselect:De.onDeselect,onDestroy:De.onDestroy,selectedKeys:Mt.selectedKeys,eventKey:"".concat(Mt.eventKey,"-menu-"),openKeys:Mt.openKeys,motion:Mt.motion,onOpenChange:De.onOpenChange,subMenuOpenDelay:Mt.subMenuOpenDelay,parentMenu:Object(b.a)(De),subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,triggerSubMenuAction:Mt.triggerSubMenuAction,builtinPlacements:Mt.builtinPlacements,defaultActiveFirst:Mt.store.getState().defaultActiveFirst[ne(Mt.eventKey)],multiple:Mt.multiple,prefixCls:Mt.rootPrefixCls,id:De.internalMenuId,manualRef:De.saveMenuInstance,itemIcon:Mt.itemIcon,expandIcon:Mt.expandIcon,direction:Mt.direction}},De.getMotion=function(et,Mt){var Ht=Object(b.a)(De),_n=Ht.haveRendered,vn=De.props,fn=vn.motion,Gn=vn.rootPrefixCls,wn=Object(L.a)(Object(L.a)({},fn),{},{leavedClassName:"".concat(Gn,"-hidden"),removeOnLeave:!1,motionAppear:_n||!Mt||et!=="inline"});return wn};var Fe=nt.store,bt=nt.eventKey,dt=Fe.getState(),xt=dt.defaultActiveFirst;De.isRootMenu=!1;var kt=!1;return xt&&(kt=xt[bt]),Ae(Fe,bt,kt),De}return Object(A.a)(tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var De=this,Fe=this.props,bt=Fe.mode,dt=Fe.parentMenu,xt=Fe.manualRef;if(xt&&xt(this),bt!=="horizontal"||!dt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return De.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var De=this.props,Fe=De.onDestroy,bt=De.eventKey;Fe&&Fe(bt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(De){var Fe=this,bt=this.getBaseProps(),dt=this.getMotion(bt.mode,bt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||bt.visible||bt.forceSubMenuRender,!this.haveOpened)return T.createElement("div",null);var xt=bt.direction;return T.createElement(re.default,Object.assign({visible:bt.visible},dt),function(kt){var et=kt.className,Mt=kt.style,Ht=f()("".concat(bt.prefixCls,"-sub"),et,Object(r.a)({},"".concat(bt.prefixCls,"-rtl"),xt==="rtl"));return T.createElement(Ye,Object.assign({},bt,{id:Fe.internalMenuId,className:Ht,style:Mt}),De)})}},{key:"render",value:function(){var De,Fe=Object(L.a)({},this.props),bt=Fe.isOpen,dt=this.getPrefixCls(),xt=Fe.mode==="inline",kt=f()(dt,"".concat(dt,"-").concat(Fe.mode),(De={},Object(r.a)(De,Fe.className,!!Fe.className),Object(r.a)(De,this.getOpenClassName(),bt),Object(r.a)(De,this.getActiveClassName(),Fe.active||bt&&!xt),Object(r.a)(De,this.getDisabledClassName(),Fe.disabled),Object(r.a)(De,this.getSelectedClassName(),this.isChildrenSelected()),De));this.internalMenuId||(Fe.eventKey?this.internalMenuId="".concat(Fe.eventKey,"$Menu"):(J+=1,this.internalMenuId="$__$".concat(J,"$Menu")));var et={},Mt={},Ht={};Fe.disabled||(et={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Mt={onClick:this.onTitleClick},Ht={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var _n={},vn=Fe.direction;xt&&(vn==="rtl"?_n.paddingRight=Fe.inlineIndent*Fe.level:_n.paddingLeft=Fe.inlineIndent*Fe.level);var fn={};this.props.isOpen&&(fn={"aria-owns":this.internalMenuId});var Gn=null;Fe.mode!=="horizontal"&&(Gn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Gn=T.createElement(this.props.expandIcon,Object(L.a)({},this.props))));var wn=T.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:_n,className:"".concat(dt,"-title"),role:"button"},Ht,Mt,{"aria-expanded":bt},fn,{"aria-haspopup":"true",title:typeof Fe.title=="string"?Fe.title:void 0}),Fe.title,Gn||T.createElement("i",{className:"".concat(dt,"-arrow")})),rn=this.renderChildren(Fe.children),Qn=Fe.parentMenu.isRootMenu?Fe.parentMenu.props.getPopupContainer:function(qn){return qn.parentNode},Zn=te[Fe.mode],rr=Fe.popupOffset?{offset:Fe.popupOffset}:{},$n=Fe.mode==="inline"?"":Fe.popupClassName;$n+=vn==="rtl"?" ".concat(dt,"-rtl"):"";var Ar=Fe.disabled,pr=Fe.triggerSubMenuAction,on=Fe.subMenuOpenDelay,Zt=Fe.forceSubMenuRender,An=Fe.subMenuCloseDelay,jr=Fe.builtinPlacements;Ee.forEach(function(qn){return delete Fe[qn]}),delete Fe.onClick;var Ln=vn==="rtl"?Object.assign({},le,jr):Object.assign({},Oe,jr);return delete Fe.direction,T.createElement("li",Object.assign({},Fe,et,{className:kt,role:"menuitem"}),xt&&wn,xt&&rn,!xt&&T.createElement(me.a,{prefixCls:dt,popupClassName:f()("".concat(dt,"-popup"),$n),getPopupContainer:Qn,builtinPlacements:Ln,popupPlacement:Zn,popupVisible:bt,popupAlign:rr,popup:rn,action:Ar?[]:[pr],mouseEnterDelay:on,mouseLeaveDelay:An,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Zt},wn))}}]),tt}(T.Component);Se.defaultProps={onMouseEnter:k,onMouseLeave:k,onTitleMouseEnter:k,onTitleMouseLeave:k,onTitleClick:k,manualRef:k,mode:"vertical",title:""};var ke=Object(h.b)(function(ut,je){var tt=ut.openKeys,nt=ut.activeKey,De=ut.selectedKeys,Fe=je.eventKey,bt=je.subMenuKey;return{isOpen:tt.indexOf(Fe)>-1,active:nt[bt]===Fe,selectedKeys:De}})(Se);ke.isSubMenu=!0;var rt=ke,ot="menuitem-overflowed",gt=.5,Et=function(ut){Object(y.a)(tt,ut);var je=Object(S.a)(tt);function tt(){var nt;return Object(p.a)(this,tt),nt=je.apply(this,arguments),nt.resizeObserver=null,nt.mutationObserver=null,nt.originalTotalWidth=0,nt.overflowedItems=[],nt.menuItemSizes=[],nt.cancelFrameId=null,nt.state={lastVisibleIndex:void 0},nt.getMenuItemNodes=function(){var De=nt.props.prefixCls,Fe=se.findDOMNode(Object(b.a)(nt));return Fe?[].slice.call(Fe.children).filter(function(bt){return bt.className.split(" ").indexOf("".concat(De,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(De,Fe,bt){var dt=nt.props,xt=dt.overflowedIndicator,kt=dt.level,et=dt.mode,Mt=dt.prefixCls,Ht=dt.theme;if(kt!==1||et!=="horizontal")return null;var _n=nt.props.children[0],vn=_n.props,fn=vn.children,Gn=vn.title,wn=vn.style,rn=Object(ue.a)(vn,["children","title","style"]),Qn=Object(L.a)({},wn),Zn="".concat(De,"-overflowed-indicator"),rr="".concat(De,"-overflowed-indicator");Fe.length===0&&bt!==!0?Qn=Object(L.a)(Object(L.a)({},Qn),{},{display:"none"}):bt&&(Qn=Object(L.a)(Object(L.a)({},Qn),{},{visibility:"hidden",position:"absolute"}),Zn="".concat(Zn,"-placeholder"),rr="".concat(rr,"-placeholder"));var $n=Ht?"".concat(Mt,"-").concat(Ht):"",Ar={};return Ee.forEach(function(pr){rn[pr]!==void 0&&(Ar[pr]=rn[pr])}),T.createElement(rt,Object.assign({title:xt,className:"".concat(Mt,"-overflowed-submenu"),popupClassName:$n},Ar,{key:Zn,eventKey:rr,disabled:!1,style:Qn}),Fe)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var De=se.findDOMNode(Object(b.a)(nt));if(!De)return;var Fe=De.children;if(!Fe||Fe.length===0)return;var bt=De.children[Fe.length-1];ce(bt,"display","inline-block");var dt=nt.getMenuItemNodes(),xt=dt.filter(function(kt){return kt.className.split(" ").indexOf(ot)>=0});xt.forEach(function(kt){ce(kt,"display","inline-block")}),nt.menuItemSizes=dt.map(function(kt){return we(kt,!0)}),xt.forEach(function(kt){ce(kt,"display","none")}),nt.overflowedIndicatorWidth=we(De.children[De.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(kt,et){return kt+et},0),nt.handleResize(),ce(bt,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var De=se.findDOMNode(Object(b.a)(nt));if(!De)return;var Fe=we(De);nt.overflowedItems=[];var bt=0,dt;nt.originalTotalWidth>Fe+gt&&(dt=-1,nt.menuItemSizes.forEach(function(xt){bt+=xt,bt+nt.overflowedIndicatorWidth<=Fe&&(dt+=1)})),nt.setState({lastVisibleIndex:dt})},nt}return Object(A.a)(tt,[{key:"componentDidMount",value:function(){var De=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Fe=se.findDOMNode(this);if(!Fe)return;this.resizeObserver=new q.default(function(bt){bt.forEach(function(){var dt=De.cancelFrameId;cancelAnimationFrame(dt),De.cancelFrameId=requestAnimationFrame(De.setChildrenWidthAndResize)})}),[].slice.call(Fe.children).concat(Fe).forEach(function(bt){De.resizeObserver.observe(bt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){De.resizeObserver.disconnect(),[].slice.call(Fe.children).concat(Fe).forEach(function(bt){De.resizeObserver.observe(bt)}),De.setChildrenWidthAndResize()}),this.mutationObserver.observe(Fe,{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(De){var Fe=this,bt=this.state.lastVisibleIndex;return(De||[]).reduce(function(dt,xt,kt){var et=xt;if(Fe.props.mode==="horizontal"){var Mt=Fe.getOverflowedSubMenuItem(xt.props.eventKey,[]);bt!==void 0&&Fe.props.className.indexOf("".concat(Fe.props.prefixCls,"-root"))!==-1&&(kt>bt&&(et=T.cloneElement(xt,{style:{display:"none"},eventKey:"".concat(xt.props.eventKey,"-hidden"),className:"".concat(ot)})),kt===bt+1&&(Fe.overflowedItems=De.slice(bt+1).map(function(_n){return T.cloneElement(_n,{key:_n.props.eventKey,mode:"vertical-left"})}),Mt=Fe.getOverflowedSubMenuItem(xt.props.eventKey,Fe.overflowedItems)));var Ht=[].concat(Object(ve.a)(dt),[Mt,et]);return kt===De.length-1&&Ht.push(Fe.getOverflowedSubMenuItem(xt.props.eventKey,[],!0)),Ht}return[].concat(Object(ve.a)(dt),[et])},[])}},{key:"render",value:function(){var De=this.props,Fe=De.visible,bt=De.prefixCls,dt=De.overflowedIndicator,xt=De.mode,kt=De.level,et=De.tag,Mt=De.children,Ht=De.theme,_n=Object(ue.a)(De,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),vn=et;return T.createElement(vn,Object.assign({},_n),this.renderChildren(Mt))}}]),tt}(T.Component);Et.defaultProps={tag:"div",className:""};var Ct=Et;function wt(ut){return ut.length?ut.every(function(je){return!!je.props.disabled}):!0}function Qe(ut,je,tt){var nt=ut.getState();ut.setState({activeKey:Object(L.a)(Object(L.a)({},nt.activeKey),{},Object(r.a)({},je,tt))})}function Ue(ut){return ut.eventKey||"0-menu-"}function ft(ut,je){var tt=je,nt=ut.children,De=ut.eventKey;if(tt){var Fe;if(fe(nt,function(bt,dt){bt&&bt.props&&!bt.props.disabled&&tt===G(bt,De,dt)&&(Fe=!0)}),Fe)return tt}return tt=null,ut.defaultActiveFirst&&fe(nt,function(bt,dt){!tt&&bt&&!bt.props.disabled&&(tt=G(bt,De,dt))}),tt}function jt(ut){if(ut){var je=this.instanceArray.indexOf(ut);je!==-1?this.instanceArray[je]=ut:this.instanceArray.push(ut)}}var ht=function(ut){Object(y.a)(tt,ut);var je=Object(S.a)(tt);function tt(nt){var De;return Object(p.a)(this,tt),De=je.call(this,nt),De.onKeyDown=function(Fe,bt){var dt=Fe.keyCode,xt;if(De.getFlatInstanceArray().forEach(function(et){et&&et.props.active&&et.onKeyDown&&(xt=et.onKeyDown(Fe))}),xt)return 1;var kt=null;return(dt===c.a.UP||dt===c.a.DOWN)&&(kt=De.step(dt===c.a.UP?-1:1)),kt?(Fe.preventDefault(),Qe(De.props.store,Ue(De.props),kt.props.eventKey),typeof bt=="function"&&bt(kt),1):void 0},De.onItemHover=function(Fe){var bt=Fe.key,dt=Fe.hover;Qe(De.props.store,Ue(De.props),dt?bt:null)},De.onDeselect=function(Fe){De.props.onDeselect(Fe)},De.onSelect=function(Fe){De.props.onSelect(Fe)},De.onClick=function(Fe){De.props.onClick(Fe)},De.onOpenChange=function(Fe){De.props.onOpenChange(Fe)},De.onDestroy=function(Fe){De.props.onDestroy(Fe)},De.getFlatInstanceArray=function(){return De.instanceArray},De.step=function(Fe){var bt=De.getFlatInstanceArray(),dt=De.props.store.getState().activeKey[Ue(De.props)],xt=bt.length;if(!xt)return null;Fe<0&&(bt=bt.concat().reverse());var kt=-1;if(bt.every(function(_n,vn){return _n&&_n.props.eventKey===dt?(kt=vn,!1):!0}),!De.props.defaultActiveFirst&&kt!==-1&&wt(bt.slice(kt,xt-1)))return;var et=(kt+1)%xt,Mt=et;do{var Ht=bt[Mt];if(!Ht||Ht.props.disabled)Mt=(Mt+1)%xt;else return Ht}while(Mt!==et);return null},De.renderCommonMenuItem=function(Fe,bt,dt){var xt=De.props.store.getState(),kt=Object(b.a)(De),et=kt.props,Mt=G(Fe,et.eventKey,bt),Ht=Fe.props;if(!Ht||typeof Fe.type=="string")return Fe;var _n=Mt===xt.activeKey,vn=Object(L.a)(Object(L.a)({mode:Ht.mode||et.mode,level:et.level,inlineIndent:et.inlineIndent,renderMenuItem:De.renderMenuItem,rootPrefixCls:et.prefixCls,index:bt,parentMenu:et.parentMenu,manualRef:Ht.disabled?void 0:Object(t.a)(Fe.ref,jt.bind(Object(b.a)(De))),eventKey:Mt,active:!Ht.disabled&&_n,multiple:et.multiple,onClick:function(Gn){(Ht.onClick||k)(Gn),De.onClick(Gn)},onItemHover:De.onItemHover,motion:et.motion,subMenuOpenDelay:et.subMenuOpenDelay,subMenuCloseDelay:et.subMenuCloseDelay,forceSubMenuRender:et.forceSubMenuRender,onOpenChange:De.onOpenChange,onDeselect:De.onDeselect,onSelect:De.onSelect,builtinPlacements:et.builtinPlacements,itemIcon:Ht.itemIcon||De.props.itemIcon,expandIcon:Ht.expandIcon||De.props.expandIcon},dt),{},{direction:et.direction});return(et.mode==="inline"||be())&&(vn.triggerSubMenuAction="click"),T.cloneElement(Fe,vn)},De.renderMenuItem=function(Fe,bt,dt){if(!Fe)return null;var xt=De.props.store.getState(),kt={openKeys:xt.openKeys,selectedKeys:xt.selectedKeys,triggerSubMenuAction:De.props.triggerSubMenuAction,subMenuKey:dt};return De.renderCommonMenuItem(Fe,bt,kt)},nt.store.setState({activeKey:Object(L.a)(Object(L.a)({},nt.store.getState().activeKey),{},Object(r.a)({},nt.eventKey,ft(nt,nt.activeKey)))}),De.instanceArray=[],De}return Object(A.a)(tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(De){return this.props.visible||De.visible||this.props.className!==De.className||!n()(this.props.style,De.style)}},{key:"componentDidUpdate",value:function(De){var Fe=this.props,bt="activeKey"in Fe?Fe.activeKey:Fe.store.getState().activeKey[Ue(Fe)],dt=ft(Fe,bt);if(dt!==bt)Qe(Fe.store,Ue(Fe),dt);else if("activeKey"in De){var xt=ft(De,De.activeKey);dt!==xt&&Qe(Fe.store,Ue(Fe),dt)}}},{key:"render",value:function(){var De=this,Fe=Object(d.a)({},this.props);this.instanceArray=[];var bt=f()(Fe.prefixCls,Fe.className,"".concat(Fe.prefixCls,"-").concat(Fe.mode)),dt={className:bt,role:Fe.role||"menu"};Fe.id&&(dt.id=Fe.id),Fe.focusable&&(dt.tabIndex=0,dt.onKeyDown=this.onKeyDown);var xt=Fe.prefixCls,kt=Fe.eventKey,et=Fe.visible,Mt=Fe.level,Ht=Fe.mode,_n=Fe.overflowedIndicator,vn=Fe.theme;return Ee.forEach(function(fn){return delete Fe[fn]}),delete Fe.onClick,T.createElement(Ct,Object.assign({},Fe,{prefixCls:xt,mode:Ht,tag:"ul",level:Mt,theme:vn,visible:et,overflowedIndicator:_n},dt),T.Children.map(Fe.children,function(fn,Gn){return De.renderMenuItem(fn,Gn,kt||"0-menu-")}))}}]),tt}(T.Component);ht.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:k};var _t=Object(h.b)()(ht),Ye=_t,We=s("Kwbf");function Xe(ut,je,tt){var nt=ut.prefixCls,De=ut.motion,Fe=ut.defaultMotions,bt=Fe===void 0?{}:Fe,dt=ut.openAnimation,xt=ut.openTransitionName,kt=je.switchingModeFromInline;if(De)return De;if(Object(l.a)(dt)==="object"&&dt)Object(We.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof dt=="string")return{motionName:"".concat(nt,"-open-").concat(dt)};if(xt)return{motionName:xt};var et=bt[tt];return et||(kt?null:bt.other)}var Te=function(ut){Object(y.a)(tt,ut);var je=Object(S.a)(tt);function tt(nt){var De;Object(p.a)(this,tt),De=je.call(this,nt),De.inlineOpenKeys=[],De.onSelect=function(dt){var xt=Object(b.a)(De),kt=xt.props;if(kt.selectable){var et=De.store.getState(),Mt=et.selectedKeys,Ht=dt.key;kt.multiple?Mt=Mt.concat([Ht]):Mt=[Ht],"selectedKeys"in kt||De.store.setState({selectedKeys:Mt}),kt.onSelect(Object(L.a)(Object(L.a)({},dt),{},{selectedKeys:Mt}))}},De.onClick=function(dt){var xt=De.getRealMenuMode(),kt=Object(b.a)(De),et=kt.store,Mt=kt.props.onOpenChange;xt!=="inline"&&!("openKeys"in De.props)&&(et.setState({openKeys:[]}),Mt([])),De.props.onClick(dt)},De.onKeyDown=function(dt,xt){De.innerMenu.getWrappedInstance().onKeyDown(dt,xt)},De.onOpenChange=function(dt){var xt=Object(b.a)(De),kt=xt.props,et=De.store.getState().openKeys.concat(),Mt=!1,Ht=function(vn){var fn=!1;if(vn.open)fn=et.indexOf(vn.key)===-1,fn&&et.push(vn.key);else{var Gn=et.indexOf(vn.key);fn=Gn!==-1,fn&&et.splice(Gn,1)}Mt=Mt||fn};Array.isArray(dt)?dt.forEach(Ht):Ht(dt),Mt&&("openKeys"in De.props||De.store.setState({openKeys:et}),kt.onOpenChange(et))},De.onDeselect=function(dt){var xt=Object(b.a)(De),kt=xt.props;if(kt.selectable){var et=De.store.getState().selectedKeys.concat(),Mt=dt.key,Ht=et.indexOf(Mt);Ht!==-1&&et.splice(Ht,1),"selectedKeys"in kt||De.store.setState({selectedKeys:et}),kt.onDeselect(Object(L.a)(Object(L.a)({},dt),{},{selectedKeys:et}))}},De.onMouseEnter=function(dt){De.restoreModeVerticalFromInline();var xt=De.props.onMouseEnter;xt&&xt(dt)},De.onTransitionEnd=function(dt){var xt=dt.propertyName==="width"&&dt.target===dt.currentTarget,kt=dt.target.className,et=Object.prototype.toString.call(kt)==="[object SVGAnimatedString]"?kt.animVal:kt,Mt=dt.propertyName==="font-size"&&et.indexOf("anticon")>=0;(xt||Mt)&&De.restoreModeVerticalFromInline()},De.setInnerMenu=function(dt){De.innerMenu=dt},De.isRootMenu=!0;var Fe=nt.defaultSelectedKeys,bt=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Fe=nt.selectedKeys||[]),"openKeys"in nt&&(bt=nt.openKeys||[]),De.store=Object(h.c)({selectedKeys:Fe,openKeys:bt,activeKey:{"0-menu-":ft(nt,nt.activeKey)}}),De.state={switchingModeFromInline:!1},De}return Object(A.a)(tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(De){this.updateOpentKeysWhenSwitchMode(De),this.updateMiniStore();var Fe=this.props,bt=Fe.siderCollapsed,dt=Fe.inlineCollapsed,xt=Fe.onOpenChange;(!De.inlineCollapsed&&dt||!De.siderCollapsed&&bt)&&xt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(De){var Fe=this.props,bt=this.store,dt=this.inlineOpenKeys,xt=bt.getState(),kt={};De.mode==="inline"&&Fe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Fe||((Fe.inlineCollapsed&&!De.inlineCollapsed||Fe.siderCollapsed&&!De.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=xt.openKeys.concat(),kt.openKeys=[]),(!Fe.inlineCollapsed&&De.inlineCollapsed||!Fe.siderCollapsed&&De.siderCollapsed)&&(kt.openKeys=dt,this.inlineOpenKeys=[])),Object.keys(kt).length&&bt.setState(kt)}},{key:"updateMenuDisplay",value:function(){var De=this.props.collapsedWidth,Fe=this.store,bt=this.prevOpenKeys,dt=this.getInlineCollapsed()&&(De===0||De==="0"||De==="0px");dt?(this.prevOpenKeys=Fe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):bt&&(this.store.setState({openKeys:bt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var De=this.props.mode,Fe=this.state.switchingModeFromInline,bt=this.getInlineCollapsed();return Fe&&bt?"inline":bt?"vertical":De}},{key:"getInlineCollapsed",value:function(){var De=this.props,Fe=De.inlineCollapsed,bt=De.siderCollapsed;return bt!==void 0?bt:Fe}},{key:"restoreModeVerticalFromInline",value:function(){var De=this.state.switchingModeFromInline;De&&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 De=Object(L.a)({},Object(_.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Fe=this.getRealMenuMode();return De.className+=" ".concat(De.prefixCls,"-root"),De.direction==="rtl"&&(De.className+=" ".concat(De.prefixCls,"-rtl")),De=Object(L.a)(Object(L.a)({},De),{},{mode:Fe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Xe(this.props,this.state,Fe)}),delete De.openAnimation,delete De.openTransitionName,T.createElement(h.a,{store:this.store},T.createElement(Ye,Object.assign({},De,{ref:this.setInnerMenu}),this.props.children))}}]),tt}(T.Component);Te.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:T.createElement("span",null,"\xB7\xB7\xB7")};var Me=Te,Ve=function(ut){Object(y.a)(tt,ut);var je=Object(S.a)(tt);function tt(){var nt;return Object(p.a)(this,tt),nt=je.apply(this,arguments),nt.onKeyDown=function(De){var Fe=De.keyCode;return Fe===c.a.ENTER?(nt.onClick(De),!0):void 0},nt.onMouseLeave=function(De){var Fe=nt.props,bt=Fe.eventKey,dt=Fe.onItemHover,xt=Fe.onMouseLeave;dt({key:bt,hover:!1}),xt({key:bt,domEvent:De})},nt.onMouseEnter=function(De){var Fe=nt.props,bt=Fe.eventKey,dt=Fe.onItemHover,xt=Fe.onMouseEnter;dt({key:bt,hover:!0}),xt({key:bt,domEvent:De})},nt.onClick=function(De){var Fe=nt.props,bt=Fe.eventKey,dt=Fe.multiple,xt=Fe.onClick,kt=Fe.onSelect,et=Fe.onDeselect,Mt=Fe.isSelected,Ht={key:bt,keyPath:[bt],item:Object(b.a)(nt),domEvent:De};xt(Ht),dt?Mt?et(Ht):kt(Ht):Mt||kt(Ht)},nt.saveNode=function(De){nt.node=De},nt}return Object(A.a)(tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var De=this.props;De.onDestroy&&De.onDestroy(De.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 De,Fe=Object(L.a)({},this.props),bt=f()(this.getPrefixCls(),Fe.className,(De={},Object(r.a)(De,this.getActiveClassName(),!Fe.disabled&&Fe.active),Object(r.a)(De,this.getSelectedClassName(),Fe.isSelected),Object(r.a)(De,this.getDisabledClassName(),Fe.disabled),De)),dt=Object(L.a)(Object(L.a)({},Fe.attribute),{},{title:typeof Fe.title=="string"?Fe.title:void 0,className:bt,role:Fe.role||"menuitem","aria-disabled":Fe.disabled});Fe.role==="option"?dt=Object(L.a)(Object(L.a)({},dt),{},{role:"option","aria-selected":Fe.isSelected}):(Fe.role===null||Fe.role==="none")&&(dt.role="none");var xt={onClick:Fe.disabled?null:this.onClick,onMouseLeave:Fe.disabled?null:this.onMouseLeave,onMouseEnter:Fe.disabled?null:this.onMouseEnter},kt=Object(L.a)({},Fe.style);Fe.mode==="inline"&&(Fe.direction==="rtl"?kt.paddingRight=Fe.inlineIndent*Fe.level:kt.paddingLeft=Fe.inlineIndent*Fe.level),Ee.forEach(function(Mt){return delete Fe[Mt]}),delete Fe.direction;var et=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(et=T.createElement(this.props.itemIcon,this.props)),T.createElement("li",Object.assign({},Object(_.default)(Fe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),dt,xt,{style:kt,ref:this.saveNode}),Fe.children,et)}}]),tt}(T.Component);Ve.isMenuItem=!0,Ve.defaultProps={onSelect:k,onMouseEnter:k,onMouseLeave:k,manualRef:k};var Ge=Object(h.b)(function(ut,je){var tt=ut.activeKey,nt=ut.selectedKeys,De=je.eventKey,Fe=je.subMenuKey;return{active:tt[Fe]===De,isSelected:nt.indexOf(De)!==-1}})(Ve),Ze=Ge,mt=function(ut){Object(y.a)(tt,ut);var je=Object(S.a)(tt);function tt(){var nt;return Object(p.a)(this,tt),nt=je.apply(this,arguments),nt.renderInnerMenuItem=function(De){var Fe=nt.props,bt=Fe.renderMenuItem,dt=Fe.index;return bt(De,dt,nt.props.subMenuKey)},nt}return Object(A.a)(tt,[{key:"render",value:function(){var De=Object(d.a)({},this.props),Fe=De.className,bt=Fe===void 0?"":Fe,dt=De.rootPrefixCls,xt="".concat(dt,"-item-group-title"),kt="".concat(dt,"-item-group-list"),et=De.title,Mt=De.children;return Ee.forEach(function(Ht){return delete De[Ht]}),delete De.onClick,delete De.direction,T.createElement("li",Object.assign({},De,{className:"".concat(bt," ").concat(dt,"-item-group")}),T.createElement("div",{className:xt,title:typeof et=="string"?et:void 0},et),T.createElement("ul",{className:kt},T.Children.map(Mt,this.renderInnerMenuItem)))}}]),tt}(T.Component);mt.isMenuItemGroup=!0,mt.defaultProps={disabled:!0};var Pt=mt,Gt=function(je){var tt=je.className,nt=je.rootPrefixCls,De=je.style;return T.createElement("li",{className:"".concat(tt," ").concat(nt,"-item-divider"),style:De})};Gt.defaultProps={disabled:!0,className:"",style:{}};var dn=Gt,Tt=Y.e=Me},"1nVM":function(M,Y,s){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,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("MlIO"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.Hasher,y=p.x64,S=y.Word,T=y.WordArray,h=p.algo;function _(){return S.create.apply(S,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 c=h.SHA512=b.extend({_doReset:function(){this._hash=new T.init([new S.init(1779033703,4089235720),new S.init(3144134277,2227873595),new S.init(1013904242,4271175723),new S.init(2773480762,1595750129),new S.init(1359893119,2917565137),new S.init(2600822924,725511199),new S.init(528734635,4215389547),new S.init(1541459225,327033209)])},_doProcessBlock:function(t,a){for(var n=this._hash.words,i=n[0],f=n[1],l=n[2],o=n[3],m=n[4],w=n[5],C=n[6],v=n[7],P=i.high,R=i.low,E=f.high,x=f.low,g=l.high,O=l.low,I=o.high,D=o.low,N=m.high,V=m.low,F=w.high,W=w.low,K=C.high,B=C.low,k=v.high,G=v.low,ne=P,fe=R,de=E,Ee=x,we=g,ce=O,be=I,ve=D,ue=N,se=V,q=F,me=W,re=K,ie=B,Oe=k,le=G,$=0;$<80;$++){var J,te,Ae=r[$];if($<16)te=Ae.high=t[a+$*2]|0,J=Ae.low=t[a+$*2+1]|0;else{var Se=r[$-15],ke=Se.high,rt=Se.low,ot=(ke>>>1|rt<<31)^(ke>>>8|rt<<24)^ke>>>7,gt=(rt>>>1|ke<<31)^(rt>>>8|ke<<24)^(rt>>>7|ke<<25),Et=r[$-2],Ct=Et.high,wt=Et.low,Qe=(Ct>>>19|wt<<13)^(Ct<<3|wt>>>29)^Ct>>>6,Ue=(wt>>>19|Ct<<13)^(wt<<3|Ct>>>29)^(wt>>>6|Ct<<26),ft=r[$-7],jt=ft.high,ht=ft.low,_t=r[$-16],Ye=_t.high,We=_t.low;J=gt+ht,te=ot+jt+(J>>>0<gt>>>0?1:0),J=J+Ue,te=te+Qe+(J>>>0<Ue>>>0?1:0),J=J+We,te=te+Ye+(J>>>0<We>>>0?1:0),Ae.high=te,Ae.low=J}var Xe=ue&q^~ue&re,Te=se&me^~se&ie,Me=ne&de^ne&we^de&we,Ve=fe&Ee^fe&ce^Ee&ce,Ge=(ne>>>28|fe<<4)^(ne<<30|fe>>>2)^(ne<<25|fe>>>7),Ze=(fe>>>28|ne<<4)^(fe<<30|ne>>>2)^(fe<<25|ne>>>7),mt=(ue>>>14|se<<18)^(ue>>>18|se<<14)^(ue<<23|se>>>9),Pt=(se>>>14|ue<<18)^(se>>>18|ue<<14)^(se<<23|ue>>>9),Gt=d[$],dn=Gt.high,Tt=Gt.low,ut=le+Pt,je=Oe+mt+(ut>>>0<le>>>0?1:0),ut=ut+Te,je=je+Xe+(ut>>>0<Te>>>0?1:0),ut=ut+Tt,je=je+dn+(ut>>>0<Tt>>>0?1:0),ut=ut+J,je=je+te+(ut>>>0<J>>>0?1:0),tt=Ze+Ve,nt=Ge+Me+(tt>>>0<Ze>>>0?1:0);Oe=re,le=ie,re=q,ie=me,q=ue,me=se,se=ve+ut|0,ue=be+je+(se>>>0<ve>>>0?1:0)|0,be=we,ve=ce,we=de,ce=Ee,de=ne,Ee=fe,fe=ut+tt|0,ne=je+nt+(fe>>>0<ut>>>0?1:0)|0}R=i.low=R+fe,i.high=P+ne+(R>>>0<fe>>>0?1:0),x=f.low=x+Ee,f.high=E+de+(x>>>0<Ee>>>0?1:0),O=l.low=O+ce,l.high=g+we+(O>>>0<ce>>>0?1:0),D=o.low=D+ve,o.high=I+be+(D>>>0<ve>>>0?1:0),V=m.low=V+se,m.high=N+ue+(V>>>0<se>>>0?1:0),W=w.low=W+me,w.high=F+q+(W>>>0<me>>>0?1:0),B=C.low=B+ie,C.high=K+re+(B>>>0<ie>>>0?1:0),G=v.low=G+le,v.high=k+Oe+(G>>>0<le>>>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 f=this._hash.toX32();return f},clone:function(){var t=b.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:1024/32});p.SHA512=b._createHelper(c),p.HmacSHA512=b._createHmacHelper(c)}(),L.SHA512})},"3d99":function(M,Y,s){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,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"},"3y9D":function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.WordArray,y=A.Hasher,S=p.algo,T=[],h=S.SHA1=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(_,d){for(var r=this._hash.words,c=r[0],t=r[1],a=r[2],n=r[3],i=r[4],f=0;f<80;f++){if(f<16)T[f]=_[d+f]|0;else{var l=T[f-3]^T[f-8]^T[f-14]^T[f-16];T[f]=l<<1|l>>>31}var o=(c<<5|c>>>27)+i+T[f];f<20?o+=(t&a|~t&n)+1518500249:f<40?o+=(t^a^n)+1859775393:f<60?o+=(t&a|t&n|a&n)-1894007588:o+=(t^a^n)-899497514,i=n,n=a,a=t<<30|t>>>2,t=c,c=o}r[0]=r[0]+c|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,c=_.sigBytes*8;return d[c>>>5]|=128<<24-c%32,d[(c+64>>>9<<4)+14]=Math.floor(r/4294967296),d[(c+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(),_}});p.SHA1=y._createHelper(h),p.HmacSHA1=y._createHmacHelper(h)}(),L.SHA1})},4:function(M,Y){},"498V":function(M,Y,s){M.exports=s.p+"static/logo.22b9a281.svg"},"4SAo":function(M,Y,s){M.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(M,Y){M.exports="data:image/png;base64,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"},"4u4S":function(M,Y){M.exports="data:image/png;base64,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"},"55Ip":function(M,Y,s){"use strict";s.d(Y,"a",function(){return o});var L=s("Ty5D"),p=s("dI71"),A=s("cDcd"),b=s.n(A),y=s("YS25"),S=s("17x9"),T=s.n(S),h=s("wx14"),_=s("zLVn"),d=s("9R94"),r=function(x){Object(p.a)(g,x);function g(){for(var I,D=arguments.length,N=new Array(D),V=0;V<D;V++)N[V]=arguments[V];return I=x.call.apply(x,[this].concat(N))||this,I.history=Object(y.a)(I.props),I}var O=g.prototype;return O.render=function(){return b.a.createElement(L.c,{history:this.history,children:this.props.children})},g}(b.a.Component),c=function(x){Object(p.a)(g,x);function g(){for(var I,D=arguments.length,N=new Array(D),V=0;V<D;V++)N[V]=arguments[V];return I=x.call.apply(x,[this].concat(N))||this,I.history=Object(y.b)(I.props),I}var O=g.prototype;return O.render=function(){return b.a.createElement(L.c,{history:this.history,children:this.props.children})},g}(b.a.Component),t=function(g,O){return typeof g=="function"?g(O):g},a=function(g,O){return typeof g=="string"?Object(y.c)(g,null,null,O):g},n=function(g){return g},i=b.a.forwardRef;typeof i=="undefined"&&(i=n);function f(x){return!!(x.metaKey||x.altKey||x.ctrlKey||x.shiftKey)}var l=i(function(x,g){var O=x.innerRef,I=x.navigate,D=x.onClick,N=Object(_.a)(x,["innerRef","navigate","onClick"]),V=N.target,F=Object(h.a)({},N,{onClick:function(K){try{D&&D(K)}catch(B){throw K.preventDefault(),B}!K.defaultPrevented&&K.button===0&&(!V||V==="_self")&&!f(K)&&(K.preventDefault(),I())}});return n!==i?F.ref=g||O:F.ref=O,b.a.createElement("a",F)}),o=i(function(x,g){var O=x.component,I=O===void 0?l:O,D=x.replace,N=x.to,V=x.innerRef,F=Object(_.a)(x,["component","replace","to","innerRef"]);return b.a.createElement(L.e.Consumer,null,function(W){W||Object(d.a)(!1);var K=W.history,B=a(t(N,W.location),W.location),k=B?K.createHref(B):"",G=Object(h.a)({},F,{href:k,navigate:function(){var fe=t(N,W.location),de=D?K.replace:K.push;de(fe)}});return n!==i?G.ref=g||V:G.innerRef=V,b.a.createElement(I,G)})});if(!1)var m,w;var C=function(g){return g},v=b.a.forwardRef;typeof v=="undefined"&&(v=C);function P(){for(var x=arguments.length,g=new Array(x),O=0;O<x;O++)g[O]=arguments[O];return g.filter(function(I){return I}).join(" ")}var R=v(function(x,g){var O=x["aria-current"],I=O===void 0?"page":O,D=x.activeClassName,N=D===void 0?"active":D,V=x.activeStyle,F=x.className,W=x.exact,K=x.isActive,B=x.location,k=x.sensitive,G=x.strict,ne=x.style,fe=x.to,de=x.innerRef,Ee=Object(_.a)(x,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return b.a.createElement(L.e.Consumer,null,function(we){we||Object(d.a)(!1);var ce=B||we.location,be=a(t(fe,ce),ce),ve=be.pathname,ue=ve&&ve.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),se=ue?Object(L.f)(ce.pathname,{path:ue,exact:W,sensitive:k,strict:G}):null,q=!!(K?K(se,ce):se),me=q?P(F,N):F,re=q?Object(h.a)({},ne,{},V):ne,ie=Object(h.a)({"aria-current":q&&I||null,className:me,style:re,to:be},Ee);return C!==v?ie.ref=g||de:ie.innerRef=de,b.a.createElement(o,ie)})});if(!1)var E},"5D2P":function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbMmTNnb3d39+k0mKkcMMZsBiC/W9IYSSH7K4C9Wuu9rjpODoyMjNxQq9VGADzuCpxT7gPP83p7e3v/TMJJdCAIgoVEdBDAzUlgBX8/ycwrfd//Pg431gFr7RPM/HbBxFLBEdGTSql3opQiHQiCoI+IXk9lrU3CzLzR9/3BVvAtHbDWPsrMH7aJTyZYInpMKfVRs/JFDlQqlduq1eoxIro2k6U2KTHzX+VyeXFPT8/PjSYucsBae4iZH24Tj1ywRHRYKfVIpANhnt+Ty0r7lbc0rhMzI2CMuRHAlwBubT+HXBZ+AbBEa/3HrFLCWruTmV/MBZ1N+TiAdyNUX2qZeYh2KaW2zThQqVTumZqaOlZgbePqynEiWquU+qFZwRjzBoBnIoAmS6WSTOhvp0PIGPMcgN2uVguSiyQfBIFPRMMJdrZqrV+bdsBa+x4zryqImAtMJHlr7RJmPgxgbhwQEb2vlFpNAwMDV3Z2dp7JUM+7EG0lE0l+dHS089y5c4dkkjqAVycmJq4ma+0yZv7YQaEIkUjyAh4EwTAR+a6GiGg5BUGwg4i2uyrlkEsi7xL3s8wz88syAm8x89M5iLmoxpIP4348bRYkolEyxowBkA25S1sLQJbyHhfhUCaWvMT9+fPnx5h5cQrMuugRceAEgDsdlKfTVph2rwMgC4mk37gWSz5L3DcZ+1EckAw0L44FM4/4vq+aZfr7+zu6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"5VLF":function(M,Y,s){"use strict";var L,p;function A(b,y,S){var T=function(h,_){return b.js_beautify(h,_)};return T.js=b.js_beautify,T.css=y.css_beautify,T.html=S.html_beautify,T.js_beautify=b.js_beautify,T.css_beautify=y.css_beautify,T.html_beautify=S.html_beautify,T}!(L=[s("6UM0"),s("TXwP"),s("psGv")],p=function(b,y,S){return A(b,y,S)}.apply(Y,L),p!==void 0&&(M.exports=p))},"5hvy":function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("MlIO"))})(this,function(L){return function(p){var A=L,b=A.lib,y=b.WordArray,S=b.Hasher,T=A.x64,h=T.Word,_=A.algo,d=[],r=[],c=[];(function(){for(var n=1,i=0,f=0;f<24;f++){d[n+5*i]=(f+1)*(f+2)/2%64;var l=i%5,o=(2*n+3*i)%5;n=l,i=o}for(var n=0;n<5;n++)for(var i=0;i<5;i++)r[n+5*i]=i+(2*n+3*i)%5*5;for(var m=1,w=0;w<24;w++){for(var C=0,v=0,P=0;P<7;P++){if(m&1){var R=(1<<P)-1;R<32?v^=1<<R:C^=1<<R-32}m&128?m=m<<1^113:m<<=1}c[w]=h.create(C,v)}})();var t=[];(function(){for(var n=0;n<25;n++)t[n]=h.create()})();var a=_.SHA3=S.extend({cfg:S.cfg.extend({outputLength:512}),_doReset:function(){for(var n=this._state=[],i=0;i<25;i++)n[i]=new h.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(n,i){for(var f=this._state,l=this.blockSize/2,o=0;o<l;o++){var m=n[i+2*o],w=n[i+2*o+1];m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var C=f[o];C.high^=w,C.low^=m}for(var v=0;v<24;v++){for(var P=0;P<5;P++){for(var R=0,E=0,x=0;x<5;x++){var C=f[P+5*x];R^=C.high,E^=C.low}var g=t[P];g.high=R,g.low=E}for(var P=0;P<5;P++)for(var O=t[(P+4)%5],I=t[(P+1)%5],D=I.high,N=I.low,R=O.high^(D<<1|N>>>31),E=O.low^(N<<1|D>>>31),x=0;x<5;x++){var C=f[P+5*x];C.high^=R,C.low^=E}for(var V=1;V<25;V++){var R,E,C=f[V],F=C.high,W=C.low,K=d[V];K<32?(R=F<<K|W>>>32-K,E=W<<K|F>>>32-K):(R=W<<K-32|F>>>64-K,E=F<<K-32|W>>>64-K);var B=t[r[V]];B.high=R,B.low=E}var k=t[0],G=f[0];k.high=G.high,k.low=G.low;for(var P=0;P<5;P++)for(var x=0;x<5;x++){var V=P+5*x,C=f[V],ne=t[V],fe=t[(P+1)%5+5*x],de=t[(P+2)%5+5*x];C.high=ne.high^~fe.high&de.high,C.low=ne.low^~fe.low&de.low}var C=f[0],Ee=c[v];C.high^=Ee.high,C.low^=Ee.low}},_doFinalize:function(){var n=this._data,i=n.words,f=this._nDataBytes*8,l=n.sigBytes*8,o=this.blockSize*32;i[l>>>5]|=1<<24-l%32,i[(p.ceil((l+1)/o)*o>>>5)-1]|=128,n.sigBytes=i.length*4,this._process();for(var m=this._state,w=this.cfg.outputLength/8,C=w/8,v=[],P=0;P<C;P++){var R=m[P],E=R.high,x=R.low;E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,v.push(x),v.push(E)}return new y.init(v,w)},clone:function(){for(var n=S.clone.call(this),i=n._state=this._state.slice(0),f=0;f<25;f++)i[f]=i[f].clone();return n}});A.SHA3=S._createHelper(a),A.HmacSHA3=S._createHmacHelper(a)}(Math),L.SHA3})},"6+eU":function(M,Y,s){"use strict";s.d(Y,"a",function(){return v});var L=s("wx14"),p=s("rePB"),A=s("VTBJ"),b=s("1OyB"),y=s("vuIU"),S=s("Ji7U"),T=s("LK+K"),h=s("cDcd"),_=s.n(h),d=s("TSYQ"),r=s.n(d),c=function(R){var E,x="".concat(R.rootPrefixCls,"-item"),g=r()(x,"".concat(x,"-").concat(R.page),(E={},Object(p.a)(E,"".concat(x,"-active"),R.active),Object(p.a)(E,R.className,!!R.className),Object(p.a)(E,"".concat(x,"-disabled"),!R.page),E)),O=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:g,onClick:O,onKeyPress:I,tabIndex:"0"},R.itemRender(R.page,"page",_.a.createElement("a",{rel:"nofollow"},R.page)))},t=c,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(S.a)(E,P);var R=Object(T.a)(E);function E(){var x;Object(b.a)(this,E);for(var g=arguments.length,O=new Array(g),I=0;I<g;I++)O[I]=arguments[I];return x=R.call.apply(R,[this].concat(O)),x.state={goInputText:""},x.buildOptionText=function(D){return"".concat(D," ").concat(x.props.locale.items_per_page)},x.changeSize=function(D){x.props.changeSize(Number(D))},x.handleChange=function(D){x.setState({goInputText:D.target.value})},x.handleBlur=function(D){var N=x.props,V=N.goButton,F=N.quickGo,W=N.rootPrefixCls,K=x.state.goInputText;if(V||K==="")return;if(D.relatedTarget&&(D.relatedTarget.className.indexOf("".concat(W,"-prev"))>=0||D.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;x.setState({goInputText:""}),F(x.getValidValue())},x.go=function(D){var N=x.state.goInputText;if(N==="")return;(D.keyCode===a.ENTER||D.type==="click")&&(x.setState({goInputText:""}),x.props.quickGo(x.getValidValue()))},x}return Object(y.a)(E,[{key:"getValidValue",value:function(){var g=this.state,O=g.goInputText,I=g.current;return!O||isNaN(O)?I:Number(O)}},{key:"getPageSizeOptions",value:function(){var g=this.props,O=g.pageSize,I=g.pageSizeOptions;return I.some(function(D){return D.toString()===O.toString()})?I:I.concat([O.toString()]).sort(function(D,N){var V=isNaN(Number(D))?0:Number(D),F=isNaN(Number(N))?0:Number(N);return V-F})}},{key:"render",value:function(){var g=this,O=this.props,I=O.pageSize,D=O.locale,N=O.rootPrefixCls,V=O.changeSize,F=O.quickGo,W=O.goButton,K=O.selectComponentClass,B=O.buildOptionText,k=O.selectPrefixCls,G=O.disabled,ne=this.state.goInputText,fe="".concat(N,"-options"),de=K,Ee=null,we=null,ce=null;if(!V&&!F)return null;var be=this.getPageSizeOptions();if(V&&de){var ve=be.map(function(ue,se){return _.a.createElement(de.Option,{key:se,value:ue.toString()},(B||g.buildOptionText)(ue))});Ee=_.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)),we=_.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)},Ee,we)}}]),E}(_.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var i=n,f=s("N2Kk");function l(){}function o(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function m(P,R,E){return E}function w(P,R,E){var x=typeof P=="undefined"?R.pageSize:P;return Math.floor((E.total-1)/x)+1}var C=function(P){Object(S.a)(E,P);var R=Object(T.a)(E);function E(x){var g;Object(b.a)(this,E),g=R.call(this,x),g.getJumpPrevPage=function(){return Math.max(1,g.state.current-(g.props.showLessItems?3:5))},g.getJumpNextPage=function(){return Math.min(w(void 0,g.state,g.props),g.state.current+(g.props.showLessItems?3:5))},g.getItemIcon=function(V,F){var W=g.props.prefixCls,K=V||_.a.createElement("button",{type:"button","aria-label":F,className:"".concat(W,"-item-link")});return typeof V=="function"&&(K=_.a.createElement(V,Object(A.a)({},g.props))),K},g.savePaginationNode=function(V){g.paginationNode=V},g.isValid=function(V){return o(V)&&V!==g.state.current},g.shouldDisplayQuickJumper=function(){var V=g.props,F=V.showQuickJumper,W=V.pageSize,K=V.total;return K<=W?!1:F},g.handleKeyDown=function(V){(V.keyCode===a.ARROW_UP||V.keyCode===a.ARROW_DOWN)&&V.preventDefault()},g.handleKeyUp=function(V){var F=g.getValidValue(V),W=g.state.currentInputValue;F!==W&&g.setState({currentInputValue:F}),V.keyCode===a.ENTER?g.handleChange(F):V.keyCode===a.ARROW_UP?g.handleChange(F-1):V.keyCode===a.ARROW_DOWN&&g.handleChange(F+1)},g.changePageSize=function(V){var F=g.state.current,W=w(V,g.state,g.props);F=F>W?W:F,W===0&&(F=g.state.current),typeof V=="number"&&("pageSize"in g.props||g.setState({pageSize:V}),"current"in g.props||g.setState({current:F,currentInputValue:F})),g.props.onShowSizeChange(F,V),"onChange"in g.props&&g.props.onChange&&g.props.onChange(F,V)},g.handleChange=function(V){var F=g.props.disabled,W=V;if(g.isValid(W)&&!F){var K=w(void 0,g.state,g.props);W>K?W=K:W<1&&(W=1),"current"in g.props||g.setState({current:W,currentInputValue:W});var B=g.state.pageSize;return g.props.onChange(W,B),W}return g.state.current},g.prev=function(){g.hasPrev()&&g.handleChange(g.state.current-1)},g.next=function(){g.hasNext()&&g.handleChange(g.state.current+1)},g.jumpPrev=function(){g.handleChange(g.getJumpPrevPage())},g.jumpNext=function(){g.handleChange(g.getJumpNextPage())},g.hasPrev=function(){return g.state.current>1},g.hasNext=function(){return g.state.current<w(void 0,g.state,g.props)},g.runIfEnter=function(V,F){if(V.key==="Enter"||V.charCode===13){for(var W=arguments.length,K=new Array(W>2?W-2:0),B=2;B<W;B++)K[B-2]=arguments[B];F.apply(void 0,K)}},g.runIfEnterPrev=function(V){g.runIfEnter(V,g.prev)},g.runIfEnterNext=function(V){g.runIfEnter(V,g.next)},g.runIfEnterJumpPrev=function(V){g.runIfEnter(V,g.jumpPrev)},g.runIfEnterJumpNext=function(V){g.runIfEnter(V,g.jumpNext)},g.handleGoTO=function(V){(V.keyCode===a.ENTER||V.type==="click")&&g.handleChange(g.state.currentInputValue)};var O=x.onChange!==l,I="current"in x;I&&!O&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var D=x.defaultCurrent;"current"in x&&(D=x.current);var N=x.defaultPageSize;return"pageSize"in x&&(N=x.pageSize),D=Math.min(D,w(N,void 0,x)),g.state={current:D,currentInputValue:D,pageSize:N},g}return Object(y.a)(E,[{key:"componentDidUpdate",value:function(g,O){var I=this.props.prefixCls;if(O.current!==this.state.current&&this.paginationNode){var D=this.paginationNode.querySelector(".".concat(I,"-item-").concat(O.current));D&&document.activeElement===D&&D.blur()}}},{key:"getValidValue",value:function(g){var O=g.target.value,I=w(void 0,this.state,this.props),D=this.state.currentInputValue,N;return O===""?N=O:isNaN(Number(O))?N=D:O>=I?N=I:N=Number(O),N}},{key:"getShowSizeChanger",value:function(){var g=this.props,O=g.showSizeChanger,I=g.total,D=g.totalBoundaryShowSizeChanger;return typeof O!="undefined"?O:I>D}},{key:"renderPrev",value:function(g){var O=this.props,I=O.prevIcon,D=O.itemRender,N=D(g,"prev",this.getItemIcon(I,"prev page")),V=!this.hasPrev();return Object(h.isValidElement)(N)?Object(h.cloneElement)(N,{disabled:V}):N}},{key:"renderNext",value:function(g){var O=this.props,I=O.nextIcon,D=O.itemRender,N=D(g,"next",this.getItemIcon(I,"next page")),V=!this.hasNext();return Object(h.isValidElement)(N)?Object(h.cloneElement)(N,{disabled:V}):N}},{key:"render",value:function(){var g=this,O=this.props,I=O.prefixCls,D=O.className,N=O.style,V=O.disabled,F=O.hideOnSinglePage,W=O.total,K=O.locale,B=O.showQuickJumper,k=O.showLessItems,G=O.showTitle,ne=O.showTotal,fe=O.simple,de=O.itemRender,Ee=O.showPrevNextJumpers,we=O.jumpPrevIcon,ce=O.jumpNextIcon,be=O.selectComponentClass,ve=O.selectPrefixCls,ue=O.pageSizeOptions,se=this.state,q=se.current,me=se.pageSize,re=se.currentInputValue;if(F===!0&&W<=me)return null;var ie=w(void 0,this.state,this.props),Oe=[],le=null,$=null,J=null,te=null,Ae=null,Se=B&&B.goButton,ke=k?1:2,rt=q-1>0?q-1:0,ot=q+1<ie?q+1:ie,gt=Object.keys(this.props).reduce(function(Te,Me){return(Me.substr(0,5)==="data-"||Me.substr(0,5)==="aria-"||Me==="role")&&(Te[Me]=g.props[Me]),Te},{});if(fe)return Se&&(typeof Se=="boolean"?Ae=_.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},K.jump_to_confirm):Ae=_.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Se),Ae=_.a.createElement("li",{title:G?"".concat(K.jump_to).concat(q,"/").concat(ie):null,className:"".concat(I,"-simple-pager")},Ae)),_.a.createElement("ul",Object(L.a)({className:r()(I,"".concat(I,"-simple"),Object(p.a)({},"".concat(I,"-disabled"),V),D),style:N,ref:this.savePaginationNode},gt),_.a.createElement("li",{title:G?K.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(I,"-prev"),Object(p.a)({},"".concat(I,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(rt)),_.a.createElement("li",{title:G?"".concat(q,"/").concat(ie):null,className:"".concat(I,"-simple-pager")},_.a.createElement("input",{type:"text",value:re,disabled:V,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),_.a.createElement("span",{className:"".concat(I,"-slash")},"/"),ie),_.a.createElement("li",{title:G?K.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(I,"-next"),Object(p.a)({},"".concat(I,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ot)),Ae);if(ie<=3+ke*2){var Et={locale:K,rootPrefixCls:I,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:G,itemRender:de};ie||Oe.push(_.a.createElement(t,Object(L.a)({},Et,{key:"noPager",page:ie,className:"".concat(I,"-disabled")})));for(var Ct=1;Ct<=ie;Ct+=1){var wt=q===Ct;Oe.push(_.a.createElement(t,Object(L.a)({},Et,{key:Ct,page:Ct,active:wt})))}}else{var Qe=k?K.prev_3:K.prev_5,Ue=k?K.next_3:K.next_5;Ee&&(le=_.a.createElement("li",{title:G?Qe:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(I,"-jump-prev"),Object(p.a)({},"".concat(I,"-jump-prev-custom-icon"),!!we))},de(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(we,"prev page"))),$=_.a.createElement("li",{title:G?Ue:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(I,"-jump-next"),Object(p.a)({},"".concat(I,"-jump-next-custom-icon"),!!ce))},de(this.getJumpNextPage(),"jump-next",this.getItemIcon(ce,"next page")))),te=_.a.createElement(t,{locale:K,last:!0,rootPrefixCls:I,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ie,page:ie,active:!1,showTitle:G,itemRender:de}),J=_.a.createElement(t,{locale:K,rootPrefixCls:I,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:G,itemRender:de});var ft=Math.max(1,q-ke),jt=Math.min(q+ke,ie);q-1<=ke&&(jt=1+ke*2),ie-q<=ke&&(ft=ie-ke*2);for(var ht=ft;ht<=jt;ht+=1){var _t=q===ht;Oe.push(_.a.createElement(t,{locale:K,rootPrefixCls:I,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ht,page:ht,active:_t,showTitle:G,itemRender:de}))}q-1>=ke*2&&q!==1+2&&(Oe[0]=Object(h.cloneElement)(Oe[0],{className:"".concat(I,"-item-after-jump-prev")}),Oe.unshift(le)),ie-q>=ke*2&&q!==ie-2&&(Oe[Oe.length-1]=Object(h.cloneElement)(Oe[Oe.length-1],{className:"".concat(I,"-item-before-jump-next")}),Oe.push($)),ft!==1&&Oe.unshift(J),jt!==ie&&Oe.push(te)}var Ye=null;ne&&(Ye=_.a.createElement("li",{className:"".concat(I,"-total-text")},ne(W,[W===0?0:(q-1)*me+1,q*me>W?W:q*me])));var We=!this.hasPrev()||!ie,Xe=!this.hasNext()||!ie;return _.a.createElement("ul",Object(L.a)({className:r()(I,D,Object(p.a)({},"".concat(I,"-disabled"),V)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},gt),Ye,_.a.createElement("li",{title:G?K.prev_page:null,onClick:this.prev,tabIndex:We?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(I,"-prev"),Object(p.a)({},"".concat(I,"-disabled"),We)),"aria-disabled":We},this.renderPrev(rt)),Oe,_.a.createElement("li",{title:G?K.next_page:null,onClick:this.next,tabIndex:Xe?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(I,"-next"),Object(p.a)({},"".concat(I,"-disabled"),Xe)),"aria-disabled":Xe},this.renderNext(ot)),_.a.createElement(i,{disabled:V,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:Se}))}}],[{key:"getDerivedStateFromProps",value:function(g,O){var I={};if("current"in g&&(I.current=g.current,g.current!==O.current&&(I.currentInputValue=I.current)),"pageSize"in g&&g.pageSize!==O.pageSize){var D=O.current,N=w(g.pageSize,O,g);D=D>N?N:D,"current"in g||(I.current=D,I.currentInputValue=D),I.pageSize=g.pageSize}return I}}]),E}(_.a.Component);C.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:f.a,style:{},itemRender:m,totalBoundaryShowSizeChanger:50};var v=C},"6Fuo":function(M,Y,s){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,s){"use strict";var L=s("wCXF"),p=s("n6Qo");s.d(Y,"b",function(){return p.a});var A=s("IBYe"),b=s("6eGT"),y=s("hW8S");s.d(Y,"a",function(){return y.a}),Y.c=L.b},"6UM0":function(M,Y,s){var L,p;(function(){var A;(function(){"use strict";var y=[function(_,d,r){var c=r(1).Beautifier,t=r(5).Options;function a(n,i){var f=new c(n,i);return f.beautify()}_.exports=a,_.exports.defaultOptions=function(){return new t}},function(_,d,r){var c=r(2).Output,t=r(3).Token,a=r(4),n=r(5).Options,i=r(7).Tokenizer,f=r(7).line_starters,l=r(7).positionable_operators,o=r(7).TOKEN;function m(k,G){return G.indexOf(k)!==-1}function w(k){return k.replace(/^\s+/g,"")}function C(k){for(var G={},ne=0;ne<k.length;ne++)G[k[ne].replace(/-/g,"_")]=k[ne];return G}function v(k,G){return k&&k.type===o.RESERVED&&k.text===G}function P(k,G){return k&&k.type===o.RESERVED&&m(k.text,G)}var R=["case","return","do","if","throw","else","await","break","continue","async"],E=["before-newline","after-newline","preserve-newline"],x=C(E),g=[x.before_newline,x.preserve_newline],O={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function I(k,G){if(G.multiline_frame||G.mode===O.ForInitializer||G.mode===O.Conditional)return;k.remove_indent(G.start_line_index)}function D(k){k=k.replace(a.allLineBreaks,`
`);for(var G=[],ne=k.indexOf(`
`);ne!==-1;)G.push(k.substring(0,ne)),k=k.substring(ne+1),ne=k.indexOf(`
`);return k.length&&G.push(k),G}function N(k){return k===O.ArrayLiteral}function V(k){return m(k,[O.Expression,O.ForInitializer,O.Conditional])}function F(k,G){for(var ne=0;ne<k.length;ne++){var fe=k[ne].trim();if(fe.charAt(0)!==G)return!1}return!0}function W(k,G){for(var ne=0,fe=k.length,de;ne<fe;ne++)if(de=k[ne],de&&de.indexOf(G)!==0)return!1;return!0}function K(k,G){G=G||{},this._source_text=k||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new n(G)}K.prototype.create_flags=function(k,G){var ne=0;k&&(ne=k.indentation_level,!this._output.just_added_newline()&&k.line_indent_level>ne&&(ne=k.line_indent_level));var fe={mode:G,parent:k,last_token:k?k.last_token:new t(o.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 c(this._options,G),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(O.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===o.START_EXPR?this.handle_start_expr(k):k.type===o.END_EXPR?this.handle_end_expr(k):k.type===o.START_BLOCK?this.handle_start_block(k):k.type===o.END_BLOCK?this.handle_end_block(k):k.type===o.WORD?this.handle_word(k):k.type===o.RESERVED?this.handle_word(k):k.type===o.SEMICOLON?this.handle_semicolon(k):k.type===o.STRING?this.handle_string(k):k.type===o.EQUALS?this.handle_equals(k):k.type===o.OPERATOR?this.handle_operator(k):k.type===o.COMMA?this.handle_comma(k):k.type===o.BLOCK_COMMENT?this.handle_block_comment(k,G):k.type===o.COMMENT?this.handle_comment(k,G):k.type===o.DOT?this.handle_dot(k):k.type===o.EOF?this.handle_eof(k):k.type===o.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 Ee=0;Ee<ne;Ee+=1)this.print_newline(Ee>0,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 we=1;we<ne;we+=1)this.print_newline(!0,G)}};var B=["async","break","continue","return","throw","yield"];K.prototype.allow_wrap_or_preserved_newline=function(k,G){if(G=G===void 0?!1:G,this._output.just_added_newline())return;var ne=this._options.preserve_newlines&&k.newlines||G,fe=m(this._flags.last_token.text,l)||m(k.text,l);if(fe){var de=m(this._flags.last_token.text,l)&&m(this._options.operator_position,g)||m(k.text,l);ne=ne&&de}if(ne)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(P(this._flags.last_token,B))return;this._output.set_wrap_point()}},K.prototype.print_newline=function(k,G){if(!G&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==o.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var ne=this._tokens.peek();this._flags.mode===O.Statement&&!(this._flags.if_block&&v(ne,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(k)&&(this._flags.multiline_frame=!0)},K.prototype.print_token_line_indentation=function(k){this._output.just_added_newline()&&(this._options.keep_array_indentation&&k.newlines&&(k.text==="["||N(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(k.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},K.prototype.print_token=function(k){if(this._output.raw){this._output.add_raw_token(k);return}if(this._options.comma_first&&k.previous&&k.previous.type===o.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var G=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(G),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(k),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(k),this._output.non_breaking_space=!0,this._output.add_token(k.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},K.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},K.prototype.deindent=function(){this._flags.indentation_level>0&&(!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===O.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===O.ObjectLiteral&&this._flags.mode===O.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===o.WORD,G=G||v(this._flags.last_token,"do"),G=G||!(this._flags.parent.mode===O.ObjectLiteral&&this._flags.mode===O.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===o.END_EXPR&&(this._previous_flags.mode===O.ForInitializer||this._previous_flags.mode===O.Conditional),G=G||this._flags.last_token.type===o.WORD&&this._flags.mode===O.BlockStatement&&!this._flags.in_case&&!(k.text==="--"||k.text==="++")&&this._last_last_text!=="function"&&k.type!==o.WORD&&k.type!==o.RESERVED,G=G||this._flags.mode===O.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),G?(this.set_mode(O.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=O.Expression;if(k.text==="["){if(this._flags.last_token.type===o.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,f)&&(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=O.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())),m(this._flags.last_token.type,[o.START_EXPR,o.END_EXPR,o.WORD,o.OPERATOR,o.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===o.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,G=O.ForInitializer):m(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,G=O.Conditional):m(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:(m(this._flags.last_token.text,f)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k);else if(this._flags.last_token.type===o.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===O.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===o.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(m(this._last_last_text,["function","yield"])||this._flags.mode===O.ObjectLiteral&&m(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===o.START_BLOCK?this.print_newline():(this._flags.last_token.type===o.END_EXPR||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===o.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===O.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===o.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===O.Conditional&&(this._previous_flags.mode=O.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===o.END_EXPR?(this.set_mode(O.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(O.BlockStatement):ne&&(m(ne.text,[":",","])&&m(G.type,[o.STRING,o.WORD,o.RESERVED])||m(G.text,["get","set","..."])&&m(ne.type,[o.WORD,o.RESERVED]))?m(this._last_last_text,["class","interface"])&&!m(ne.text,[":",","])?this.set_mode(O.BlockStatement):this.set_mode(O.ObjectLiteral):this._flags.last_token.type===o.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(O.BlockStatement):m(this._flags.last_token.type,[o.EQUALS,o.START_EXPR,o.COMMA,o.OPERATOR])||P(this._flags.last_token,["return","throw","import","default"])?this.set_mode(O.ObjectLiteral):this.set_mode(O.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===o.END_EXPR;if(this._options.brace_preserve_inline){var Ee=0,we=null;this._flags.inline_frame=!0;do if(Ee+=1,we=this._tokens.peek(Ee-1),we.newlines){this._flags.inline_frame=!1;break}while(we.type!==o.EOF&&!(we.type===o.END_BLOCK&&we.opened===k))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&k.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==o.OPERATOR&&(de||this._flags.last_token.type===o.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===o.START_EXPR||this._flags.last_token.type===o.COMMA)&&((this._flags.last_token.type===o.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.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!==o.OPERATOR&&this._flags.last_token.type!==o.START_EXPR&&(this._flags.last_token.type===o.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===O.Statement;)this.restore_mode();var G=this._flags.last_token.type===o.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===o.RESERVED){if(m(k.text,["set","get"])&&this._flags.mode!==O.ObjectLiteral)k.type=o.WORD;else if(k.text==="import"&&m(this._tokens.peek().text,["(","."]))k.type=o.WORD;else if(m(k.text,["as","from"])&&!this._flags.import_block)k.type=o.WORD;else if(this._flags.mode===O.ObjectLiteral){var G=this._tokens.peek();G.text===":"&&(k.type=o.WORD)}}if(this.start_of_statement(k)?P(this._flags.last_token,["var","let","const"])&&k.type===o.WORD&&(this._flags.declaration_statement=!0):k.newlines&&!V(this._flags.mode)&&(this._flags.last_token.type!==o.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==o.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===O.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===o.COMMA||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k)),v(k,"function")){(m(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(m(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===o.OPERATOR))&&(!this._output.just_added_blankline()&&!k.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.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===o.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(V(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===o.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===o.SEMICOLON&&this._flags.mode===O.BlockStatement?ne="NEWLINE":this._flags.last_token.type===o.SEMICOLON&&V(this._flags.mode)?ne="SPACE":this._flags.last_token.type===o.STRING?ne="NEWLINE":this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||this._flags.last_token.text==="*"&&(m(this._last_last_text,["function","yield"])||this._flags.mode===O.ObjectLiteral&&m(this._last_last_text,["{",","]))?ne="SPACE":this._flags.last_token.type===o.START_BLOCK?this._flags.inline_frame?ne="SPACE":ne="NEWLINE":this._flags.last_token.type===o.END_EXPR&&(this._output.space_before_token=!0,ne="NEWLINE"),P(k,f)&&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===o.END_BLOCK&&this._previous_flags.mode===O.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!==o.END_EXPR?(this._flags.last_token.type!==o.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,f)&&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===o.WORD||k.previous.type===o.RESERVED)&&(this._output.space_before_token=!0),this.print_token(k),this._flags.last_word=k.text,k.type===o.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===O.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===o.WORD)||(this.start_of_statement(k)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(k),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k):k.text.startsWith("`")&&this._flags.last_token.type===o.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?(V(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===O.ObjectLiteral||this._flags.mode===O.Statement&&this._flags.parent.mode===O.ObjectLiteral?(this._flags.mode===O.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"])||m(this._flags.last_token.type,[o.START_BLOCK,o.COMMA,o.END_BLOCK,o.SEMICOLON])),ne=m(k.text,["-","+"])&&(m(this._flags.last_token.type,[o.START_BLOCK,o.START_EXPR,o.EQUALS,o.OPERATOR])||m(this._flags.last_token.text,f)||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===o.DOT){this.print_token(k);return}if(k.text==="::"){this.print_token(k);return}if(this._flags.last_token.type===o.OPERATOR&&m(this._options.operator_position,g)&&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!==o.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,Ee=!0,we=!1;if(k.text===":"?this._flags.ternary_depth===0?de=!1:(this._flags.ternary_depth-=1,we=!0):k.text==="?"&&(this._flags.ternary_depth+=1),!ne&&!G&&this._options.preserve_newlines&&m(k.text,l)){var ce=k.text===":",be=ce&&we,ve=ce&&!we;switch(this._options.operator_position){case x.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 x.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 x.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();Ee=ue&&m(ue.type,[o.WORD,o.RESERVED])}else if(k.text==="...")this.allow_wrap_or_preserved_newline(k),de=this._flags.last_token.type===o.START_BLOCK,Ee=!1;else if(m(k.text,["--","++","!","~"])||ne){if((this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR)&&this.allow_wrap_or_preserved_newline(k),de=!1,Ee=!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===";"&&V(this._flags.mode)&&(de=!0),this._flags.last_token.type===o.RESERVED?de=!0:this._flags.last_token.type===o.END_EXPR?de=!(this._flags.last_token.text==="]"&&(k.text==="--"||k.text==="++")):this._flags.last_token.type===o.OPERATOR&&(de=m(k.text,["--","-","++","+"])&&m(this._flags.last_token.text,["--","-","++","+"]),m(k.text,["+","-"])&&m(this._flags.last_token.text,["--","++"])&&(Ee=!0)),(this._flags.mode===O.BlockStatement&&!this._flags.inline_frame||this._flags.mode===O.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=Ee},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,Ee=!1,we=k.whitespace_before,ce=we.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,"*"),Ee=W(ne,we),de&&(this._flags.alignment=1),fe=0;fe<ne.length;fe++)de?(this.print_token_line_indentation(k),this._output.add_token(w(ne[fe]))):Ee&&ne[fe]?(this.print_token_line_indentation(k),this._output.add_token(ne[fe].substring(ce))):(this._output.current_line.set_indent(-1),this._output.add_token(ne[fe])),this.print_newline(!1,G);this._flags.alignment=0}},K.prototype.handle_comment=function(k,G){k.newlines?this.print_newline(!1,G):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(k),this.print_newline(!1,G)},K.prototype.handle_dot=function(k){this.start_of_statement(k)||this.handle_whitespace_and_comments(k,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),P(this._flags.last_token,R)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(k,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(k)},K.prototype.handle_unknown=function(k,G){this.print_token(k),k.text[k.text.length-1]===`
`&&this.print_newline(!1,G)},K.prototype.handle_eof=function(k){for(;this._flags.mode===O.Statement;)this.restore_mode();this.handle_whitespace_and_comments(k)},_.exports.Beautifier=K},function(_){function d(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}d.prototype.clone_empty=function(){var t=new d(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},d.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},d.prototype.has_match=function(t){for(var a=this.__items.length-1;a>=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 c(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()}c.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},c.prototype.get_line_number=function(){return this.__lines.length},c.prototype.get_indent_string=function(t,a){return this.__indent_cache.get_indent_string(t,a)},c.prototype.get_indent_size=function(t,a){return this.__indent_cache.get_indent_size(t,a)},c.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},c.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},c.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},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.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)},c.prototype.add_raw_token=function(t){for(var a=0;a<t.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},c.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(t){for(var a=this.__lines.length;t<a;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},c.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&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},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.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=c},function(_){function d(r,c,t,a){this.type=r,this.text=c,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",c="\\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-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",n="(?:\\\\u[0-9a-fA-F]{4}|["+r+t+"])",i="(?:\\\\u[0-9a-fA-F]{4}|["+c+t+a+"])*";d.identifier=new RegExp(n+i,"g"),d.identifierStart=new RegExp(n),d.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+c+t+a+"])+");var f=/[\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 c=r(6).Options,t=["before-newline","after-newline","preserve-newline"];function a(n){c.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 f=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<f.length;l++)f[l]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=f[l];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}a.prototype=new c,_.exports.Options=a},function(_){function d(t,a){this.raw_options=r(t,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}d.prototype._get_array=function(t,a){var n=this.raw_options[t],i=a||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(i=n.concat()):typeof n=="string"&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},d.prototype._get_boolean=function(t,a){var n=this.raw_options[t],i=n===void 0?!!a:!!n;return i},d.prototype._get_characters=function(t,a){var n=this.raw_options[t],i=a||"";return typeof n=="string"&&(i=n.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),i},d.prototype._get_number=function(t,a){var n=this.raw_options[t];a=parseInt(a,10),isNaN(a)&&(a=0);var i=parseInt(n,10);return isNaN(i)&&(i=a),i},d.prototype._get_selection=function(t,a,n){var i=this._get_selection_list(t,a,n);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
`+a+`
You passed in: '`+this.raw_options[t]+"'");return i[0]},d.prototype._get_selection_list=function(t,a,n){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[a[0]],!this._is_valid_selection(n,a))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,a))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
`+a+`
You passed in: '`+this.raw_options[t]+"'");return i},d.prototype._is_valid_selection=function(t,a){return t.length&&a.length&&!t.some(function(n){return a.indexOf(n)===-1})};function r(t,a){var n={};t=c(t);var i;for(i in t)i!==a&&(n[i]=t[i]);if(a&&t[a])for(i in t[a])n[i]=t[a][i];return n}function c(t){var a={},n;for(n in t){var i=n.replace(/-/g,"_");a[i]=t[n]}return a}_.exports.Options=d,_.exports.normalizeOpts=c,_.exports.mergeOpts=r},function(_,d,r){var c=r(8).InputScanner,t=r(9).Tokenizer,a=r(9).TOKEN,n=r(13).Directives,i=r(4),f=r(12).Pattern,l=r(14).TemplatablePattern;function o(F,W){return W.indexOf(F)!==-1}var m={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:a.START,RAW:a.RAW,EOF:a.EOF},w=new n(/\/\*/,/\*\//),C=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,v=/[0-9]/,P=/[^\d\.]/,R=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),E=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";E=E.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),E="\\?\\.(?!\\d) "+E,E=E.replace(/ /g,"|");var x=new RegExp(E),g="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),O=g.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),I=new RegExp("^(?:"+O.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 f(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(C),punct:K.matching(x),comment:K.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:K.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:K.matching(/<!--/),html_comment_end: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===m.COMMENT||F.type===m.BLOCK_COMMENT||F.type===m.UNKNOWN},N.prototype._is_opening=function(F){return F.type===m.START_BLOCK||F.type===m.START_EXPR},N.prototype._is_closing=function(F,W){return(F.type===m.END_BLOCK||F.type===m.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(m.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(m.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===m.DOT||F.type===m.RESERVED&&(F.text==="set"||F.text==="get"))&&I.test(W)?(W==="in"||W==="of")&&(F.type===m.WORD||F.type===m.STRING)?this._create_token(m.OPERATOR,W):this._create_token(m.RESERVED,W):this._create_token(m.WORD,W);if(W=this.__patterns.number.read(),W!=="")return this._create_token(m.WORD,W)},N.prototype._read_singles=function(F){var W=null;return F==="("||F==="["?W=this._create_token(m.START_EXPR,F):F===")"||F==="]"?W=this._create_token(m.END_EXPR,F):F==="{"?W=this._create_token(m.START_BLOCK,F):F==="}"?W=this._create_token(m.END_BLOCK,F):F===";"?W=this._create_token(m.SEMICOLON,F):F==="."&&P.test(this._input.peek(1))?W=this._create_token(m.DOT,F):F===","&&(W=this._create_token(m.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(m.EQUALS,F):F==="?."?this._create_token(m.DOT,F):this._create_token(m.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(m.UNKNOWN,W.trim()+`
`);if(W=this.__patterns.include.read(),W)return this._create_token(m.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(m.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(m.COMMENT,W)}}else if(D&&F==="-"&&(W=this.__patterns.html_comment_end.read(),W))return D=!1,this._create_token(m.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=w.get_directives(K);B&&B.ignore==="start"&&(K+=w.readIgnored(this._input)),K=K.replace(i.allLineBreaks,`
`),W=this._create_token(m.BLOCK_COMMENT,K),W.directives=B}else this._input.peek(1)==="/"&&(K=this.__patterns.comment.read(),W=this._create_token(m.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=V(W)),this._input.peek()===F&&(W+=this._input.next()),W=W.replace(i.allLineBreaks,`
`),this._create_token(m.STRING,W)}return null},N.prototype._allow_regexp_or_xml=function(F){return F.type===m.RESERVED&&o(F.text,["return","case","throw","else","do","typeof","yield"])||F.type===m.END_EXPR&&F.text===")"&&F.opened.previous.type===m.RESERVED&&o(F.opened.previous.text,["if","while","for"])||o(F.type,[m.COMMENT,m.START_EXPR,m.START_BLOCK,m.START,m.END_BLOCK,m.OPERATOR,m.EQUALS,m.EOF,m.SEMICOLON,m.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(m.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],Ee=!!B[B.length-1]||de.slice(0,8)==="![CDATA[";if(!Ee&&(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(m.STRING,K)}}return null};function V(F){for(var W="",K=0,B=new c(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=m,_.exports.positionable_operators=R.slice(),_.exports.line_starters=g.slice()},function(_){var d=RegExp.prototype.hasOwnProperty("sticky");function r(c){this.__input=c||"",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<this.__input_length},r.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},r.prototype.peek=function(c){var t=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(t=this.__input.charAt(c)),t},r.prototype.__match=function(c,t){c.lastIndex=t;var a=c.exec(this.__input);return a&&!(d&&c.sticky)&&(a.index!==t&&(a=null)),a},r.prototype.test=function(c,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(c,t):!1},r.prototype.testChar=function(c,t){var a=this.peek(t);return c.lastIndex=0,a!==null&&c.test(a)},r.prototype.match=function(c){var t=this.__match(c,this.__position);return t?this.__position+=t[0].length:t=null,t},r.prototype.read=function(c,t,a){var n="",i;return c&&(i=this.match(c),i&&(n+=i[0])),t&&(i||!c)&&(n+=this.readUntil(t,a)),n},r.prototype.readUntil=function(c,t){var a="",n=this.__position;c.lastIndex=this.__position;var i=c.exec(this.__input);return i?(n=i.index,t&&(n+=i[0].length)):n=this.__input_length,a=this.__input.substring(this.__position,n),this.__position=n,a},r.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},r.prototype.get_regexp=function(c,t){var a=null,n="g";return t&&d&&(n="y"),typeof c=="string"&&c!==""?a=new RegExp(c,n):c&&(a=new RegExp(c.source,n)),a},r.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(c){var t=this.__position,a=this.readUntilAfter(c);return this.__position=t,a},r.prototype.lookBack=function(c){var t=this.__position-1;return t>=c.length&&this.__input.substring(t-c.length,t).toLowerCase()===c},_.exports.InputScanner=r},function(_,d,r){var c=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"},f=function(l,o){this._input=new c(l),this._options=o||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new n(this._input)};f.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var l,o=new t(i.START,""),m=null,w=[],C=new a;o.type!==i.EOF;){for(l=this._get_next_token(o,m);this._is_comment(l);)C.add(l),l=this._get_next_token(o,m);C.isEmpty()||(l.comments_before=C,C=new a),l.parent=m,this._is_opening(l)?(w.push(m),m=l):m&&this._is_closing(l,m)&&(l.opened=m,m.closed=l,m=w.pop(),l.parent=m),l.previous=o,o.next=l,this.__tokens.add(l),o=l}return this.__tokens},f.prototype._is_first_token=function(){return this.__tokens.isEmpty()},f.prototype._reset=function(){},f.prototype._get_next_token=function(l,o){this._readWhitespace();var m=this._input.read(/.+/g);return m?this._create_token(i.RAW,m):this._create_token(i.EOF,"")},f.prototype._is_comment=function(l){return!1},f.prototype._is_opening=function(l){return!1},f.prototype._is_closing=function(l,o){return!1},f.prototype._create_token=function(l,o){var m=new t(l,o,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return m},f.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},_.exports.Tokenizer=f,_.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<this.__tokens_length},d.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},d.prototype.peek=function(r){var c=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(c=this.__tokens[r]),c},d.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},_.exports.TokenStream=d},function(_,d,r){var c=r(12).Pattern;function t(a,n){c.call(this,a,n),n?this._line_regexp=this._input.get_regexp(n._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}t.prototype=new c,t.prototype.__set_whitespace_patterns=function(a,n){a+="\\t ",n+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+n+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+n+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var n=this.__split(this._newline_regexp,a);this.newline_count=n.length-1,this.whitespace_before_token=n[this.newline_count]}return a},t.prototype.matching=function(a,n){var i=this._create();return i.__set_whitespace_patterns(a,n),i._update(),i},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(a,n){a.lastIndex=0;for(var i=0,f=[],l=a.exec(n);l;)f.push(n.substring(i,l.index)),i=l.index+l[0].length,l=a.exec(n);return i<n.length?f.push(n.substring(i,n.length)):f.push(""),f},_.exports.WhitespacePattern=t},function(_){function d(r,c){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,c&&(this._starting_pattern=this._input.get_regexp(c._starting_pattern,!0),this._match_pattern=this._input.get_regexp(c._match_pattern,!0),this._until_pattern=this._input.get_regexp(c._until_pattern),this._until_after=c._until_after)}d.prototype.read=function(){var r=this._input.read(this._starting_pattern);return(!this._starting_pattern||r)&&(r+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),r},d.prototype.read_match=function(){return this._input.match(this._match_pattern)},d.prototype.until_after=function(r){var c=this._create();return c._until_after=!0,c._until_pattern=this._input.get_regexp(r),c._update(),c},d.prototype.until=function(r){var c=this._create();return c._until_after=!1,c._until_pattern=this._input.get_regexp(r),c._update(),c},d.prototype.starting_with=function(r){var c=this._create();return c._starting_pattern=this._input.get_regexp(r,!0),c._update(),c},d.prototype.matching=function(r){var c=this._create();return c._match_pattern=this._input.get_regexp(r,!0),c._update(),c},d.prototype._create=function(){return new d(this._input,this)},d.prototype._update=function(){},_.exports.Pattern=d},function(_){function d(r,c){r=typeof r=="string"?r:r.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+c,"g")}d.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(r);t;)c[t[1]]=t[2],t=this.__directive_pattern.exec(r);return c},d.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},_.exports.Directives=d},function(_,d,r){var c=r(12).Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function a(n,i){c.call(this,n,i),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var f=new c(n);this.__patterns={handlebars_comment:f.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:f.starting_with(/{{{/).until_after(/}}}/),handlebars:f.starting_with(/{{/).until_after(/}}/),php:f.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:f.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:f.starting_with(/{%/).until_after(/%}/),django_value:f.starting_with(/{{/).until_after(/}}/),django_comment:f.starting_with(/{#/).until_after(/#}/),smarty:f.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:f.starting_with(/{\*/).until_after(/\*}/),smarty_literal:f.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new c,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 f in t)i._disabled[f]=n.templating.indexOf(f)===-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 f=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&f==="?"&&(n=n||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&f==="%"&&(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}],S={};function T(_){var d=S[_];if(d!==void 0)return d.exports;var r=S[_]={exports:{}};return y[_](r,r.exports,T),r.exports}var h=T(0);A=h})();var b=A;!(L=[],p=function(){return{js_beautify:b}}.apply(Y,L),p!==void 0&&(M.exports=p))})()},"6eGT":function(M,Y,s){"use strict";function L(p){return null}Y.a=L},"6nfa":function(M,Y,s){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,s){"use strict";var L=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),p=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(p)}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 S=y,T=[],h=0;h<256;++h)T.push((h+256).toString(16).substr(1));function _(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(T[t[a+0]]+T[t[a+1]]+T[t[a+2]]+T[t[a+3]]+"-"+T[t[a+4]]+T[t[a+5]]+"-"+T[t[a+6]]+T[t[a+7]]+"-"+T[t[a+8]]+T[t[a+9]]+"-"+T[t[a+10]]+T[t[a+11]]+T[t[a+12]]+T[t[a+13]]+T[t[a+14]]+T[t[a+15]]).toLowerCase();if(!S(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 f=0;f<16;++f)a[n+f]=i[f];return a}return d(i)}var c=Y.a=r},"7ZXX":function(M,Y,s){M.exports=s.p+"static/err.6e7c5817.png"},"7ahc":function(M,Y,s){"use strict";s.d(Y,"a",function(){return w});var L=s("k1fw"),p=s("0Owb"),A=s("+L6B"),b=s("2/Rp"),y=s("y8nQ"),S=s("Vl3Y"),T=s("tJVT"),h=s("OaEy"),_=s("2fM7"),d=s("cDcd"),r=s.n(d),c=s("VrN/"),t=s.n(c),a=s("p77/"),n=s.n(a),i=s("c5Ni"),f=s.n(i),l=_.a.Option,o={labelCol:{span:4},wrapperCol:{span:20}},m={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(C){var v=C.callback,P=C.onCancel,R=Object(d.useState)("python"),E=Object(T.a)(R,2),x=E[0],g=E[1];function O(D){g(m[D][1])}function I(D){v(D)}return r.a.createElement(S.a,Object(p.a)({},o,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:I}),r.a.createElement(S.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},r.a.createElement(_.a,{onChange:O},Object.keys(m).map(function(D){return r.a.createElement(l,{key:D,value:D},m[D][0])}))),r.a.createElement(S.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},r.a.createElement(w,{mode:x})),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 w(C){var v=C.value,P=C.onChange,R=C.mode,E=C.options,x=E===void 0?{}:E,g=Object(d.useRef)(),O=Object(d.useState)(),I=Object(T.a)(O,2),D=I[0],N=I[1];return Object(d.useEffect)(function(){if(D){function V(F){var W=F.getValue();P&&P(W)}return D.on("change",V),function(){D.off("change",V)}}},[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(g.current&&!D){var V=t.a.fromTextArea(g.current,Object(L.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},x));N(V)}},[g.current,D]),r.a.createElement("div",{className:"my-codemirror-container"},r.a.createElement("textarea",{ref:g}))}},"7ixt":function(M,Y,s){"use strict";s.d(Y,"a",function(){return A});var L={adjustX:1,adjustY:1},p=[0,0],A={left:{points:["cr","cl"],overflow:L,offset:[-4,0],targetOffset:p},right:{points:["cl","cr"],overflow:L,offset:[4,0],targetOffset:p},top:{points:["bc","tc"],overflow:L,offset:[0,-4],targetOffset:p},bottom:{points:["tc","bc"],overflow:L,offset:[0,4],targetOffset:p},topLeft:{points:["bl","tl"],overflow:L,offset:[0,-4],targetOffset:p},leftTop:{points:["tr","tl"],overflow:L,offset:[-4,0],targetOffset:p},topRight:{points:["br","tr"],overflow:L,offset:[0,-4],targetOffset:p},rightTop:{points:["tl","tr"],overflow:L,offset:[4,0],targetOffset:p},bottomRight:{points:["tr","br"],overflow:L,offset:[0,4],targetOffset:p},rightBottom:{points:["bl","br"],overflow:L,offset:[4,0],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:L,offset:[0,4],targetOffset:p},leftBottom:{points:["br","bl"],overflow:L,offset:[-4,0],targetOffset:p}},b=A},"7v3h":function(M,Y,s){M.exports=s.p+"static/empty2.dd73f390.png"},"8/bI":function(M,Y,s){M.exports=s.p+"static/empty.8918e228.png"},"815F":function(M,Y,s){"use strict";s.d(Y,"e",function(){return T}),s.d(Y,"c",function(){return _}),s.d(Y,"d",function(){return d}),s.d(Y,"a",function(){return c}),s.d(Y,"f",function(){return t}),s.d(Y,"b",function(){return a});var L=s("KQm4"),p=s("VTBJ"),A=s("Ff2n"),b=s("Zm9Q"),y=s("Kwbf"),S=s("OZM5");function T(n,i){return n!=null?n:i}function h(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=new Map;function f(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(l||[]).forEach(function(m){var w=m.key,C=m.children;Object(y.a)(w!=null,"Tree node must have a certain key: [".concat(o).concat(w,"]"));var v=String(w);Object(y.a)(!i.has(v)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(v)),i.set(v,!0),f(C,"".concat(o).concat(v," > "))})}f(n)}function _(n){function i(f){var l=Object(b.a)(f);return l.map(function(o){if(!Object(S.i)(o))return Object(y.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var m=o.key,w=o.props,C=w.children,v=Object(A.a)(w,["children"]),P=Object(p.a)({key:m},v),R=i(C);return R.length&&(P.children=R),P}).filter(function(o){return o})}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]:[],f=new Set(i===!0?[]:i),l=[];function o(m){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return m.map(function(C,v){var P=Object(S.h)(w?w.pos:"0",v),R=T(C.key,P),E=Object(p.a)(Object(p.a)({},C),{},{parent:w,pos:P,children:null,data:C,isStart:[].concat(Object(L.a)(w?w.isStart:[]),[v===0]),isEnd:[].concat(Object(L.a)(w?w.isEnd:[]),[v===m.length-1])});return l.push(E),i===!0||f.has(R)?E.children=o(C.children||[],E):E.children=[],E})}return o(n),l}function r(n,i,f){var l;f?typeof f=="string"?l=function(w){return w[f]}:typeof f=="function"&&(l=function(w){return f(w)}):l=function(w,C){return T(w.key,C)};function o(m,w,C){var v=m?m.children:n,P=m?Object(S.h)(C.pos,w):"0";if(m){var R=l(m,P),E={node:m,index:w,pos:P,key:R,parentPos:C.node?C.pos:null,level:C.level+1};i(E)}v&&v.forEach(function(x,g){o(x,g,{node:m,pos:P,level:C?C.level+1:-1})})}o(null)}function c(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=i.initWrapper,l=i.processEntity,o=i.onProcessFinished,m=arguments.length>2?arguments[2]:void 0,w={},C={},v={posEntities:w,keyEntities:C};return f&&(v=f(v)||v),r(n,function(P){var R=P.node,E=P.index,x=P.pos,g=P.key,O=P.parentPos,I=P.level,D={node:R,index:E,key:g,pos:x,level:I},N=T(g,x);w[x]=D,C[N]=D,D.parent=w[O],D.parent&&(D.parent.children=D.parent.children||[],D.parent.children.push(D)),l&&l(D,v)},m),o&&o(v),v}function t(n,i){var f=i.expandedKeys,l=i.selectedKeys,o=i.loadedKeys,m=i.loadingKeys,w=i.checkedKeys,C=i.halfCheckedKeys,v=i.dragOverNodeKey,P=i.dropPosition,R=i.keyEntities,E=R[n],x={eventKey:n,expanded:f.indexOf(n)!==-1,selected:l.indexOf(n)!==-1,loaded:o.indexOf(n)!==-1,loading:m.indexOf(n)!==-1,checked:w.indexOf(n)!==-1,halfChecked:C.indexOf(n)!==-1,pos:String(E?E.pos:""),dragOver:v===n&&P===0,dragOverGapTop:v===n&&P===-1,dragOverGapBottom:v===n&&P===1};return x}function a(n){var i=n.data,f=n.expanded,l=n.selected,o=n.checked,m=n.loaded,w=n.loading,C=n.halfChecked,v=n.dragOver,P=n.dragOverGapTop,R=n.dragOverGapBottom,E=n.pos,x=n.active,g=Object(p.a)(Object(p.a)({},i),{},{expanded:f,selected:l,checked:o,loaded:m,loading:w,halfChecked:C,dragOver:v,dragOverGapTop:P,dragOverGapBottom:R,pos:E,active:x});return"props"in g||Object.defineProperty(g,"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}}),g}},"8EBN":function(M,Y,s){(function(L){L(s("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 p=0;p<L.modeInfo.length;p++){var A=L.modeInfo[p];A.mimes&&(A.mime=A.mimes[0])}L.findModeByMIME=function(b){b=b.toLowerCase();for(var y=0;y<L.modeInfo.length;y++){var S=L.modeInfo[y];if(S.mime==b)return S;if(S.mimes){for(var T=0;T<S.mimes.length;T++)if(S.mimes[T]==b)return S}}if(/\+xml$/.test(b))return L.findModeByMIME("application/xml");if(/\+json$/.test(b))return L.findModeByMIME("application/json")},L.findModeByExtension=function(b){b=b.toLowerCase();for(var y=0;y<L.modeInfo.length;y++){var S=L.modeInfo[y];if(S.ext){for(var T=0;T<S.ext.length;T++)if(S.ext[T]==b)return S}}},L.findModeByFileName=function(b){for(var y=0;y<L.modeInfo.length;y++){var S=L.modeInfo[y];if(S.file&&S.file.test(b))return S}var T=b.lastIndexOf("."),h=T>-1&&b.substring(T+1,b.length);if(h)return L.findModeByExtension(h)},L.findModeByName=function(b){b=b.toLowerCase();for(var y=0;y<L.modeInfo.length;y++){var S=L.modeInfo[y];if(S.name.toLowerCase()==b)return S;if(S.alias){for(var T=0;T<S.alias.length;T++)if(S.alias[T].toLowerCase()==b)return S}}}})},"8WcF":function(M,Y,s){M.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8hTe":function(M,Y,s){M.exports={button:"button___1wy9m"}},"8j3D":function(M,Y,s){"use strict";var L=s("2qtc"),p=s("kLXV"),A=s("5NDa"),b=s("5rEg"),y=s("miYZ"),S=s("tsqr"),T=s("k1fw"),h=s("9og8"),_=s("y8nQ"),d=s("Vl3Y"),r=s("tJVT"),c=s("WmNS"),t=s.n(c),a=s("cDcd"),n=s.n(a),i=s("Ty5D"),f=s("9kvl"),l=s("KVXO"),o=s.n(l),m=function(C){var v=C.shixunsDetail,P=C.globalSetting,R=C.loading,E=C.dispatch,x=C.title,g=C.pathList,O=g===void 0?[]:g,I=C.showInputPath,D=I===void 0?!1:I,N=C.isMergeSelectFile,V=N===void 0?!1:N,F=C.onFinish,W=F===void 0?function(){}:F,K=d.a.useForm(),B=Object(r.a)(K,1),k=B[0],G=Object(i.i)(),ne=Object(i.h)(),fe=Object(a.useRef)(),de=Object(a.useState)(""),Ee=Object(r.a)(de,2),we=Ee[0],ce=Ee[1],be=Object(a.useState)(""),ve=Object(r.a)(be,2),ue=ve[0],se=ve[1],q=Object(a.useState)([]),me=Object(r.a)(q,2),re=me[0],ie=me[1],Oe=Object(a.useState)([]),le=Object(r.a)(Oe,2),$=le[0],J=le[1];Object(a.useEffect)(function(){var ot,gt;fe.current=((ot=ne.pathname)===null||ot===void 0||((gt=ot.split("/"))===null||gt===void 0)?void 0:gt[3])==="repository"},[]),Object(a.useEffect)(function(){if(v.actionTabs.key!=="Repository-SelectFilePath")return;var ot=O.join("/"),gt=[];O.map(function(Et,Ct){Ct===0?gt.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Et),path:ot}):gt.push({val:"/".concat(Et),path:ot})}),ie(gt),ce(ot),se(ot),te(ot)},[v.actionTabs.key]);var te=function(){var ot=Object(h.a)(t.a.mark(function gt(Et){var Ct;return t.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.next=2,E({type:fe.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:G.id,path:Et}});case 2:Ct=Qe.sent,Ct&&J(Ct.trees||[]);case 4:case"end":return Qe.stop()}},gt)}));return function(Et){return ot.apply(this,arguments)}}(),Ae=function(gt){var Et=we;gt.type==="tree"&&(re.length?re.push({val:"/".concat(gt.name),path:gt.name}):re.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(gt.name),path:gt.name}),ie(re),Et=we?"".concat(we,"/").concat(gt.name):gt.name,ce(Et)),te(Et)},Se=function(gt,Et){var Ct=re.filter(function(Qe,Ue){return Ue<=Et});ie(Ct);var wt=Ct.filter(function(Qe,Ue){return Ue!==0}).map(function(Qe){return Qe.val}).join("").substr(1);ce(wt),te(wt)},ke=function(){var ot=Object(h.a)(t.a.mark(function gt(){var Et,Ct,wt;return t.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(Et=k==null?void 0:k.getFieldsValue(),Ct=we?"".concat(we).concat(Et!=null&&Et.name?"/".concat(Et==null?void 0:Et.name):""):Et==null?void 0:Et.name,!V){Ue.next=6;break}return W(Ct),rt(),Ue.abrupt("return");case 6:if(!D){Ue.next=16;break}return Ue.next=9,k.validateFields();case 9:return Ue.next=11,E({type:"shixunsDetail/uploadGitFolder",payload:Object(T.a)(Object(T.a)({},{id:G.id,path:Ct}),fe.current?{}:{secret_repository:!0})});case 11:wt=Ue.sent,W(ue),wt.status===0&&S.b.info("\u65B0\u5EFA\u6210\u529F"),Ue.next=18;break;case 16:W(Ct),S.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:rt();case 19:case"end":return Ue.stop()}},gt)}));return function(){return ot.apply(this,arguments)}}(),rt=function(){E({type:"shixunsDetail/setActionTabs",payload:{}}),k.resetFields()};return n.a.createElement(p.a,{centered:!0,title:x||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:v.actionTabs.key==="Repository-SelectFilePath",onOk:ke,onCancel:rt},n.a.createElement("div",{className:o.a.wrap},n.a.createElement("div",{className:o.a.content},n.a.createElement("div",{className:o.a.mainPathWrap},!!(re!=null&&re.length)&&re.map(function(ot,gt){return n.a.createElement("a",{key:gt,onClick:function(){return Se(ot,gt)}},ot.val)})),!!($!=null&&$.length)&&$.map(function(ot,gt){return ot.type==="tree"&&n.a.createElement("a",{key:gt,onClick:function(){return Ae(ot)}},n.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(o.a.colorBlue)}),ot.name)})),n.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),n.a.createElement("div",{className:"mt5 mb5"},we),D&&n.a.createElement(d.a,{form:k,scrollToFirstError:!0,className:"mt20"},n.a.createElement(d.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},n.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};Y.a=Object(f.a)(function(w){var C=w.shixunsDetail,v=w.loading,P=w.globalSetting;return{shixunsDetail:C,globalSetting:P,loading:v.models.index}})(m)},"8mKB":function(M,Y,s){"use strict";var L=s("rePB"),p=s("1OyB"),A=s("vuIU"),b=s("Ji7U"),y=s("md7G"),S=s("foSv"),T=s("cDcd"),h=s.n(T),_=s("m+aA"),d=s("TSYQ"),r=s.n(d),c=s("4IlW");function t(x){var g=x.pageXOffset,O="scrollLeft";if(typeof g!="number"){var I=x.document;g=I.documentElement[O],typeof g!="number"&&(g=I.body[O])}return g}function a(x){var g,O,I=x.ownerDocument,D=I.body,N=I&&I.documentElement,V=x.getBoundingClientRect();return g=V.left,O=V.top,g-=N.clientLeft||D.clientLeft||0,O-=N.clientTop||D.clientTop||0,{left:g,top:O}}function n(x){var g=a(x),O=x.ownerDocument,I=O.defaultView||O.parentWindow;return g.left+=t(I),g.left}function i(x){var g=f();return function(){var I=Object(S.a)(x),D;if(g){var N=Object(S.a)(this).constructor;D=Reflect.construct(I,arguments,N)}else D=I.apply(this,arguments);return Object(y.a)(this,D)}}function f(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(x){return!1}}var l=function(x){Object(b.a)(O,x);var g=i(O);function O(){var I;return Object(p.a)(this,O),I=g.apply(this,arguments),I.onHover=function(D){var N=I.props,V=N.onHover,F=N.index;V(D,F)},I.onClick=function(D){var N=I.props,V=N.onClick,F=N.index;V(D,F)},I.onKeyDown=function(D){var N=I.props,V=N.onClick,F=N.index;D.keyCode===13&&V(D,F)},I}return Object(A.a)(O,[{key:"getClassName",value:function(){var D=this.props,N=D.prefixCls,V=D.index,F=D.value,W=D.allowHalf,K=D.focused,B=V+1,k=N;return F===0&&V===0&&K?k+=" ".concat(N,"-focused"):W&&F+.5>=B&&F<B?(k+=" ".concat(N,"-half ").concat(N,"-active"),K&&(k+=" ".concat(N,"-focused"))):(k+=B<=F?" ".concat(N,"-full"):" ".concat(N,"-zero"),B===F&&K&&(k+=" ".concat(N,"-focused"))),k}},{key:"render",value:function(){var D=this.onHover,N=this.onClick,V=this.onKeyDown,F=this.props,W=F.disabled,K=F.prefixCls,B=F.character,k=F.characterRender,G=F.index,ne=F.count,fe=F.value,de=typeof B=="function"?B(this.props):B,Ee=h.a.createElement("li",{className:this.getClassName()},h.a.createElement("div",{onClick:W?null:N,onKeyDown:W?null:V,onMouseMove:W?null:D,role:"radio","aria-checked":fe>G?"true":"false","aria-posinset":G+1,"aria-setsize":ne,tabIndex:W?-1:0},h.a.createElement("div",{className:"".concat(K,"-first")},de),h.a.createElement("div",{className:"".concat(K,"-second")},de)));return k&&(Ee=k(Ee,this.props)),Ee}}]),O}(h.a.Component);function o(x,g){var O=Object.keys(x);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(x);g&&(I=I.filter(function(D){return Object.getOwnPropertyDescriptor(x,D).enumerable})),O.push.apply(O,I)}return O}function m(x){for(var g=1;g<arguments.length;g++){var O=arguments[g]!=null?arguments[g]:{};g%2?o(Object(O),!0).forEach(function(I){Object(L.a)(x,I,O[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(O)):o(Object(O)).forEach(function(I){Object.defineProperty(x,I,Object.getOwnPropertyDescriptor(O,I))})}return x}function w(x){var g=C();return function(){var I=Object(S.a)(x),D;if(g){var N=Object(S.a)(this).constructor;D=Reflect.construct(I,arguments,N)}else D=I.apply(this,arguments);return Object(y.a)(this,D)}}function C(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(x){return!1}}function v(){}var P=function(x){Object(b.a)(O,x);var g=w(O);function O(I){var D;Object(p.a)(this,O),D=g.call(this,I),D.onHover=function(V,F){var W=D.props.onHoverChange,K=D.getStarValue(F,V.pageX),B=D.state.cleanedValue;K!==B&&D.setState({hoverValue:K,cleanedValue:null}),W(K)},D.onMouseLeave=function(){var V=D.props.onHoverChange;D.setState({hoverValue:void 0,cleanedValue:null}),V(void 0)},D.onClick=function(V,F){var W=D.props.allowClear,K=D.state.value,B=D.getStarValue(F,V.pageX),k=!1;W&&(k=B===K),D.onMouseLeave(),D.changeValue(k?0:B),D.setState({cleanedValue:k?B:null})},D.onFocus=function(){var V=D.props.onFocus;D.setState({focused:!0}),V&&V()},D.onBlur=function(){var V=D.props.onBlur;D.setState({focused:!1}),V&&V()},D.onKeyDown=function(V){var F=V.keyCode,W=D.props,K=W.count,B=W.allowHalf,k=W.onKeyDown,G=W.direction,ne=G==="rtl",fe=D.state.value;F===c.a.RIGHT&&fe<K&&!ne?(B?fe+=.5:fe+=1,D.changeValue(fe),V.preventDefault()):F===c.a.LEFT&&fe>0&&!ne||F===c.a.RIGHT&&fe>0&&ne?(B?fe-=.5:fe-=1,D.changeValue(fe),V.preventDefault()):F===c.a.LEFT&&fe<K&&ne&&(B?fe+=.5:fe+=1,D.changeValue(fe),V.preventDefault()),k&&k(V)},D.saveRef=function(V){return function(F){D.stars[V]=F}},D.saveRate=function(V){D.rate=V};var N=I.value;return N===void 0&&(N=I.defaultValue),D.stars={},D.state={value:N,focused:!1,cleanedValue:null},D}return Object(A.a)(O,[{key:"componentDidMount",value:function(){var D=this.props,N=D.autoFocus,V=D.disabled;N&&!V&&this.focus()}},{key:"getStarDOM",value:function(D){return Object(_.a)(this.stars[D])}},{key:"getStarValue",value:function(D,N){var V=this.props,F=V.allowHalf,W=V.direction,K=W==="rtl",B=D+1;if(F){var k=this.getStarDOM(D),G=n(k),ne=k.clientWidth;(K&&N-G>ne/2||!K&&N-G<ne/2)&&(B-=.5)}return B}},{key:"focus",value:function(){var D=this.props.disabled;D||this.rate.focus()}},{key:"blur",value:function(){var D=this.props.disabled;D||this.rate.blur()}},{key:"changeValue",value:function(D){var N=this.props.onChange;"value"in this.props||this.setState({value:D}),N(D)}},{key:"render",value:function(){for(var D=this.props,N=D.count,V=D.allowHalf,F=D.style,W=D.prefixCls,K=D.disabled,B=D.className,k=D.character,G=D.characterRender,ne=D.tabIndex,fe=D.direction,de=this.state,Ee=de.value,we=de.hoverValue,ce=de.focused,be=[],ve=K?"".concat(W,"-disabled"):"",ue=0;ue<N;ue+=1)be.push(h.a.createElement(l,{ref:this.saveRef(ue),index:ue,count:N,disabled:K,prefixCls:"".concat(W,"-star"),allowHalf:V,value:we===void 0?Ee:we,onClick:this.onClick,onHover:this.onHover,key:ue,character:k,characterRender:G,focused:ce}));var se=r()(W,ve,B,Object(L.a)({},"".concat(W,"-rtl"),fe==="rtl"));return h.a.createElement("ul",{className:se,style:F,onMouseLeave:K?null:this.onMouseLeave,tabIndex:K?-1:ne,onFocus:K?null:this.onFocus,onBlur:K?null:this.onBlur,onKeyDown:K?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},be)}}],[{key:"getDerivedStateFromProps",value:function(D,N){return"value"in D&&D.value!==void 0?m(m({},N),{},{value:D.value}):N}}]),O}(h.a.Component);P.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:v,character:"\u2605",onHoverChange:v,tabIndex:0,direction:"ltr"};var R=P,E=Y.a=R},"9Bee":function(M,Y,s){"use strict";var L=s("DYRE"),p=s("zeV3"),A=s("+L6B"),b=s("2/Rp"),y=s("k1fw"),S=s("9og8"),T=s("tJVT"),h=s("WmNS"),_=s.n(h),d=s("cDcd"),r=s.n(d),c=s("vg9a"),t=s("DlQD"),a=s.n(t),n=s("rUJ1");function i(pe,z){var Z=pe.match(/^(\s+)(?:```)/);if(Z===null)return z;var oe=Z[1];return z.split(`
`).map(function(xe){var he=xe.match(/^\s+/);if(he===null)return xe;var lt=Object(T.a)(he,1),an=lt[0];return an.length>=oe.length?xe.slice(oe.length):xe}).join(`
`)}var f=[],l=["<ul>"],o=new a.a.Renderer,m=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){f.length=0,l=["<ul>"]}var C={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function v(pe,z,Z,oe){if(z>=pe.length||pe[z].level<=Z)return z;var xe=pe[z];oe.push("<li><a href='#"+xe.anchor+"'>"+xe.text+"</a>"),z++;var he=[];return z=v(pe,z,xe.level,he),he.length>0&&(oe.push("<ul>"),he.forEach(function(lt){oe.push(lt)}),oe.push("</ul>")),oe.push("</li>"),z=v(pe,z,Z,oe),z}function P(){return v(f,0,0,l),l.push("</ul>"),l.join("")}var R={heading:function(z){var Z=m.exec(z);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(z){var Z=this.rules.block.fences.exec(z);if(Z){var oe=Z[0],xe=i(oe,Z[3]||""),he=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf(he)>=0){var lt=g(),an=xe;xe=lt,O[lt]={type:"block",expression:an}}return{type:"code",raw:oe,lang:he,text:xe}}}},E=/(?:\${2})([^\n`]+?)(?:\${2})/gi,x=0,g=function(){return"__special_katext_id_".concat(x++,"__")},O={};function I(){return O}function D(){x=0,O={}}function N(pe){return pe=pe.replace(E,function(z,Z){var oe=g();return O[oe]={type:"inline",expression:Z},oe}),pe}var V=o.listitem;o.listitem=function(pe){return V(N(pe))};var F=o.paragraph;o.paragraph=function(pe){return F(N(pe))};var W=o.tablecell;o.tablecell=function(pe,z){return W(N(pe),z)},o.code=function(pe,z,Z){var oe=(z||"").match(/\S*/)[0];return oe?["latex","katex","math"].indexOf(oe)>=0?"<p class='editormd-tex'>".concat(pe,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(z,'">').concat(Z?pe:Object(n.escape)(pe,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(Z?pe:Object(n.escape)(pe,!0))+"</code></pre>"},o.heading=function(pe,z,Z){var oe=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return f.push({anchor:oe,level:z,text:pe}),"<h"+z+' id="'+oe+'">'+pe+"</h"+z+">"},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:R,renderer:o});var K=a.a,B=s("SJMd"),k=s("ulZh"),G=s.n(k),ne=s("m3rI"),fe=s("Oy/b"),de=s("p5ED"),Ee=s("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 we=function(pe,z){return(we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,oe){Z.__proto__=oe}||function(Z,oe){for(var xe in oe)Object.prototype.hasOwnProperty.call(oe,xe)&&(Z[xe]=oe[xe])})(pe,z)};function ce(pe,z){function Z(){this.constructor=pe}we(pe,z),pe.prototype=z===null?Object.create(z):(Z.prototype=z.prototype,new Z)}function be(pe,z,Z,oe){return new(Z||(Z=Promise))(function(xe,he){function lt(Yn){try{Nn(oe.next(Yn))}catch(tn){he(tn)}}function an(Yn){try{Nn(oe.throw(Yn))}catch(tn){he(tn)}}function Nn(Yn){var tn;Yn.done?xe(Yn.value):(tn=Yn.value,tn instanceof Z?tn:new Z(function(Cn){Cn(tn)})).then(lt,an)}Nn((oe=oe.apply(pe,z||[])).next())})}function ve(pe,z){var Z,oe,xe,he,lt={label:0,sent:function(){if(1&xe[0])throw xe[1];return xe[1]},trys:[],ops:[]};return he={next:an(0),throw:an(1),return:an(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function an(Nn){return function(Yn){return function(tn){if(Z)throw new TypeError("Generator is already executing.");for(;lt;)try{if(Z=1,oe&&(xe=2&tn[0]?oe.return:tn[0]?oe.throw||((xe=oe.return)&&xe.call(oe),0):oe.next)&&!(xe=xe.call(oe,tn[1])).done)return xe;switch(oe=0,xe&&(tn=[2&tn[0],xe.value]),tn[0]){case 0:case 1:xe=tn;break;case 4:return lt.label++,{value:tn[1],done:!1};case 5:lt.label++,oe=tn[1],tn=[0];continue;case 7:tn=lt.ops.pop(),lt.trys.pop();continue;default:if(!(xe=lt.trys,(xe=xe.length>0&&xe[xe.length-1])||tn[0]!==6&&tn[0]!==2)){lt=0;continue}if(tn[0]===3&&(!xe||tn[1]>xe[0]&&tn[1]<xe[3])){lt.label=tn[1];break}if(tn[0]===6&&lt.label<xe[1]){lt.label=xe[1],xe=tn;break}if(xe&&lt.label<xe[2]){lt.label=xe[2],lt.ops.push(tn);break}xe[2]&&lt.ops.pop(),lt.trys.pop();continue}tn=z.call(pe,lt)}catch(Cn){tn=[6,Cn],oe=0}finally{Z=xe=0}if(5&tn[0])throw tn[1];return{value:tn[0]?tn[1]:void 0,done:!0}}([Nn,Yn])}}}function ue(){for(var pe=0,z=0,Z=arguments.length;z<Z;z++)pe+=arguments[z].length;var oe=Array(pe),xe=0;for(z=0;z<Z;z++)for(var he=arguments[z],lt=0,an=he.length;lt<an;lt++,xe++)oe[xe]=he[lt];return oe}var se=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(z,Z){for(var oe=0,xe=Z;oe<xe.length;oe++){var he=xe[oe],lt=he[0],an=he[1];z.setAttribute(lt,an)}},pe.createRect=function(z,Z,oe){var xe=document.createElementNS("http://www.w3.org/2000/svg","rect");return xe.setAttribute("width",z.toString()),xe.setAttribute("height",Z.toString()),oe&&pe.setAttributes(xe,oe),xe},pe.createLine=function(z,Z,oe,xe,he){var lt=document.createElementNS("http://www.w3.org/2000/svg","line");return lt.setAttribute("x1",z.toString()),lt.setAttribute("y1",Z.toString()),lt.setAttribute("x2",oe.toString()),lt.setAttribute("y2",xe.toString()),he&&pe.setAttributes(lt,he),lt},pe.createPolygon=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",z),Z&&pe.setAttributes(oe,Z),oe},pe.createCircle=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(z/2).toString()),oe.setAttribute("cy",(z/2).toString()),oe.setAttribute("r",z.toString()),Z&&pe.setAttributes(oe,Z),oe},pe.createEllipse=function(z,Z,oe){var xe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return xe.setAttribute("cx",(z/2).toString()),xe.setAttribute("cy",(Z/2).toString()),xe.setAttribute("rx",(z/2).toString()),xe.setAttribute("ry",(Z/2).toString()),oe&&pe.setAttributes(xe,oe),xe},pe.createGroup=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return z&&pe.setAttributes(Z,z),Z},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(z,Z,oe,xe,he,lt,an){var Nn=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Nn,[["id",z],["orient",Z],["markerWidth",oe.toString()],["markerHeight",xe.toString()],["refX",he.toString()],["refY",lt.toString()]]),Nn.appendChild(an),Nn},pe.createText=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),z&&pe.setAttributes(Z,z),Z},pe.createTSpan=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=z,Z&&pe.setAttributes(oe,Z),oe},pe.createImage=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return z&&pe.setAttributes(Z,z),Z},pe.createPoint=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=z,oe.y=Z,oe},pe.createPath=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",z),Z&&pe.setAttributes(oe,Z),oe},pe}(),q=function(){function pe(){}return pe.addKey=function(z){pe.key=z},Object.defineProperty(pe,"isLicensed",{get:function(){return!!pe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(pe.key)},enumerable:!1,configurable:!0}),pe}(),me=function(){function pe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return pe.prototype.rasterize=function(z,Z,oe){var xe=this;return new Promise(function(he){var lt=oe!==void 0?oe:document.createElement("canvas");z===null&&(xe.markersOnly=!0,xe.naturalSize=!1);var an=document.createElementNS("http://www.w3.org/2000/svg","svg");an.setAttribute("xmlns","http://www.w3.org/2000/svg"),an.setAttribute("width",Z.width.baseVal.valueAsString),an.setAttribute("height",Z.height.baseVal.valueAsString),an.setAttribute("viewBox","0 0 "+Z.viewBox.baseVal.width.toString()+" "+Z.viewBox.baseVal.height.toString()),an.innerHTML=Z.innerHTML,xe.naturalSize===!0?(an.width.baseVal.value=z.naturalWidth,an.height.baseVal.value=z.naturalHeight):xe.width!==void 0&&xe.height!==void 0&&(an.width.baseVal.value=xe.width,an.height.baseVal.value=xe.height),lt.width=an.width.baseVal.value,lt.height=an.height.baseVal.value;var Nn=an.outerHTML,Yn=lt.getContext("2d");xe.markersOnly!==!0&&Yn.drawImage(z,0,0,lt.width,lt.height);var tn=window.URL,Cn=new Image(lt.width,lt.height);Cn.setAttribute("crossOrigin","anonymous");var Jn=new Blob([Nn],{type:"image/svg+xml"}),$r=tn.createObjectURL(Jn);Cn.onload=function(){Yn.drawImage(Cn,0,0),tn.revokeObjectURL($r);var ga=lt.toDataURL(xe.imageType,xe.imageQuality);he(ga)},Cn.src=$r})},pe}(),re=function(){},ie=function(){function pe(z){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+z+"_"}return Object.defineProperty(pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),pe.prototype.addClass=function(z){return this.styleSheet===void 0&&this.addStyleSheet(),z.name=""+this.classNamePrefix+z.localName,this.classes.push(z),this.styleSheet.sheet.insertRule("."+z.name+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length),z},pe.prototype.addRule=function(z){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(z),this.styleSheet.sheet.insertRule(z.selector+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var z;this.styleSheet=document.createElement("style"),((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).appendChild(this.styleSheet),this.addRule(new Oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new le("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new le("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},pe.prototype.removeStyleSheet=function(){var z;this.styleSheet&&(((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Oe=function(pe,z){this.selector=pe,this.style=z},le=function(pe,z){this.localName=pe,this.style=z},$=function(){function pe(z,Z,oe,xe,he){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=z,this.displayMode=Z,this.markerItems=oe,this.uiStyleSettings=xe,this.styles=he,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return pe.prototype.show=function(z){var Z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"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 lt=document.createElement("div");lt.className=""+Z.toolbarButtonStyleClass.name,lt.setAttribute("data-type-name",he.typeName),lt.innerHTML=he.icon,lt.addEventListener("click",function(){Z.markerToolbarButtonClicked(lt,he)}),Z.buttons.push(lt),Z.markerButtons.push(lt)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var xe=document.createElement("div");xe.className=this.toolbarBlockStyleClass.name,xe.style.whiteSpace="nowrap",xe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(xe),this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},pe.prototype.addButtonClickListener=function(z){this.buttonClickListeners.push(z)},pe.prototype.removeButtonClickListener=function(z){this.buttonClickListeners.indexOf(z)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(z),1)},pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},pe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var z=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Z=0;Z<this.markerButtons.length;Z++)Z<z||Z===z&&this.markerButtons.length-1===z?this.markerButtonBlock.appendChild(this.markerButtons[Z]):(Z===z&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Z]))}},pe.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},pe.prototype.resetButtonStyles=function(){var z=this;this.buttons.forEach(function(Z){Z.className=Z.className.replace(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name,"").trim(),Z.className=Z.className.replace(z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:z.toolbarActiveButtonStyleColorsClass.name,"").trim(),Z.className+=" "+(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name)})},pe.prototype.addActionButton=function(z,Z,oe){var xe=this,he=document.createElement("div");switch(he.className=""+this.toolbarButtonStyleClass.name,he.innerHTML=Z,he.setAttribute("data-action",oe),he.addEventListener("click",function(){xe.actionToolbarButtonClicked(he,oe)}),oe){case"select":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":he.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":he.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":he.style.fill=this.uiStyleSettings.closeButtonColor}z.appendChild(he),this.buttons.push(he)},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new le("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new le("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new le("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new le("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new le("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new le("toolbar_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.toolbarButtonStyleColorsClass=this.styles.addClass(new le("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},pe.prototype.markerToolbarButtonClicked=function(z,Z){this.setActiveButton(z),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",Z)}),this.markerButtonOverflowBlock.style.display="none"},pe.prototype.actionToolbarButtonClicked=function(z,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(z){this.resetButtonStyles(),z.className=z.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),z.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},pe.prototype.setActiveMarkerButton=function(z){var Z=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===z});Z&&this.setActiveButton(Z)},pe.prototype.setCurrentMarker=function(z){var Z=this;this.currentMarker=z,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(z,Z,oe,xe){this.panels=[],this.panelButtons=[],this.markerjsContainer=z,this.displayMode=Z,this.uiStyleSettings=oe,this.styles=xe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return pe.prototype.addStyles=function(){var z;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: `+((z=this.uiStyleSettings.toolboxBackgroundColor)!==null&&z!==void 0?z: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 Oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},pe.prototype.show=function(z){var Z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,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(z){var Z,oe,xe=this;this.panels=z,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 lt;he.uiStyleSettings=xe.uiStyleSettings;var an=document.createElement("div");an.className=xe.toolboxButtonStyleClass.name+" "+((lt=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&lt!==void 0?lt:xe.toolboxButtonStyleColorsClass.name),an.innerHTML=he.icon,an.title=he.title,an.addEventListener("click",function(){xe.panelButtonClick(he)}),xe.panelButtons.push(an),xe.buttonRow.appendChild(an)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},pe.prototype.panelButtonClick=function(z){var Z=this,oe=-1;if(z!==this.activePanel){oe=this.panels.indexOf(z),this.panelRow.innerHTML="";var xe=z.getUi();xe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(xe),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=z}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,lt){var an,Nn;he.className=Z.toolboxButtonStyleClass.name+" "+(lt===oe?""+((an=Z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&an!==void 0?an:Z.toolboxActiveButtonStyleColorsClass.name):""+((Nn=Z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Nn!==void 0?Nn:Z.toolboxButtonStyleColorsClass.name))})},pe}(),te=function(pe,z){this.title=pe,this.icon=z},Ae=function(pe){function z(Z,oe,xe,he){var lt=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return lt.colors=[],lt.addTransparent=!1,lt.colorBoxes=[],lt.colors=oe,lt.currentColor=xe,lt.setCurrentColor=lt.setCurrentColor.bind(lt),lt.getColorBox=lt.getColorBox.bind(lt),lt}return ce(z,pe),z.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(xe){var he=Z.getColorBox(xe);oe.appendChild(he),Z.colorBoxes.push(he)}),oe},z.prototype.getColorBox=function(Z){var oe=this,xe=this.uiStyleSettings.toolbarHeight/4,he=this.uiStyleSettings.toolbarHeight-xe,lt=document.createElement("div");lt.style.display="inline-block",lt.style.boxSizing="content-box",lt.style.width=he-2+"px",lt.style.height=he-2+"px",lt.style.padding="1px",lt.style.marginRight="2px",lt.style.marginBottom="2px",lt.style.borderWidth="2px",lt.style.borderStyle="solid",lt.style.borderRadius=(he+2)/2+"px",lt.style.borderColor=Z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",lt.addEventListener("click",function(){oe.setCurrentColor(Z,lt)});var an=document.createElement("div");return an.style.display="inline-block",an.style.width=he-2+"px",an.style.height=he-2+"px",an.style.backgroundColor=Z,an.style.borderRadius=he/2+"px",Z==="transparent"&&(an.style.fill=this.uiStyleSettings.toolboxAccentColor,an.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),lt.appendChild(an),lt},z.prototype.setCurrentColor=function(Z,oe){var xe=this;this.currentColor=Z,this.colorBoxes.forEach(function(he){he.style.borderColor=he===oe?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Z)},z}(te),Se=function(){function pe(z,Z,oe){this._state="new",this._isSelected=!1,this._container=z,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(z){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(z,Z){},pe.prototype.dblClick=function(z,Z){},pe.prototype.manipulate=function(z){},pe.prototype.pointerUp=function(z){this.stateChanged()},pe.prototype.dispose=function(){},pe.prototype.addMarkerVisualToContainer=function(z){this.container.childNodes.length>0?this.container.insertBefore(z,this.container.childNodes[0]):this.container.appendChild(z)},pe.prototype.getState=function(){return{typeName:pe.typeName,state:this.state,notes:this.notes}},pe.prototype.restoreState=function(z){this._state=z.state,this.notes=z.notes},pe.prototype.scale=function(z,Z){},pe.prototype.colorChanged=function(z){this.onColorChanged&&this.onColorChanged(z),this.stateChanged()},pe.prototype.fillColorChanged=function(z){this.onFillColorChanged&&this.onFillColorChanged(z),this.stateChanged()},pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var z=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),z.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(z)&&this.onStateChanged(this)}},pe.typeName="MarkerBase",pe}(),ke=function(){function pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return pe.prototype.findGripByVisual=function(z){return this.topLeft.ownsTarget(z)?this.topLeft:this.topCenter.ownsTarget(z)?this.topCenter:this.topRight.ownsTarget(z)?this.topRight:this.centerLeft.ownsTarget(z)?this.centerLeft:this.centerRight.ownsTarget(z)?this.centerRight:this.bottomLeft.ownsTarget(z)?this.bottomLeft:this.bottomCenter.ownsTarget(z)?this.bottomCenter:this.bottomRight.ownsTarget(z)?this.bottomRight:void 0},pe}(),rt=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(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},pe}(),ot=function(){function pe(){}return pe.toITransformMatrix=function(z){return{a:z.a,b:z.b,c:z.c,d:z.d,e:z.e,f:z.f}},pe.toSVGMatrix=function(z,Z){return z.a=Z.a,z.b=Z.b,z.c=Z.c,z.d=Z.d,z.e=Z.e,z.f=Z.f,z},pe}(),gt=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||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(z,pe),Object.defineProperty(z.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.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}),z.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))},z.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 xe=this.unrotatePoint(Z);if(this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.offsetX=xe.x-this.left,this.offsetY=xe.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 lt=this.container.transform.baseVal.getItem(0);lt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(lt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},z.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)},z.prototype.moveVisual=function(Z){this.visual.style.transform="translate("+Z.x+"px, "+Z.y+"px)"},z.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)},z.prototype.resize=function(Z){var oe=this.manipulationStartLeft,xe=this.manipulationStartWidth,he=this.manipulationStartTop,lt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+Z.x-this.manipulationStartX,xe=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:xe=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,lt=this.manipulationStartHeight+this.manipulationStartTop-he;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:lt=this.manipulationStartHeight+Z.y-this.manipulationStartY}xe>=0?(this.left=oe,this.width=xe):(this.left=oe+xe,this.width=-xe),lt>=0?(this.top=he,this.height=lt):(this.top=he+lt,this.height=-lt),this.setSize()},z.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},z.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()}},z.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)},z.prototype.rotatePoint=function(Z){if(this.rotationAngle===0)return Z;var oe=this.container.getCTM(),xe=se.createPoint(Z.x,Z.y);return{x:(xe=xe.matrixTransform(oe)).x,y:xe.y}},z.prototype.unrotatePoint=function(Z){if(this.rotationAngle===0)return Z;var oe=this.container.getCTM();oe=oe.inverse();var xe=se.createPoint(Z.x,Z.y);return{x:(xe=xe.matrixTransform(oe)).x,y:xe.y}},z.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},z.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"},z.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()},z.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()},z.prototype.createGrip=function(){var Z=new rt;return Z.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(Z.visual),Z},z.prototype.positionGrips=function(){var Z=this.controlGrips.topLeft.GRIP_SIZE,oe=-Z/2,xe=oe,he=(this.width+this.CB_DISTANCE)/2-Z/2,lt=(this.height+this.CB_DISTANCE)/2-Z/2,an=this.height+this.CB_DISTANCE-Z/2,Nn=this.width+this.CB_DISTANCE-Z/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,xe),this.positionGrip(this.controlGrips.topCenter.visual,he,xe),this.positionGrip(this.controlGrips.topRight.visual,Nn,xe),this.positionGrip(this.controlGrips.centerLeft.visual,oe,lt),this.positionGrip(this.controlGrips.centerRight.visual,Nn,lt),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,an),this.positionGrip(this.controlGrips.bottomCenter.visual,he,an),this.positionGrip(this.controlGrips.bottomRight.visual,Nn,an),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,he,xe-3*this.CB_DISTANCE)},z.prototype.positionGrip=function(Z,oe,xe){var he=Z.transform.baseVal.getItem(0);he.setTranslate(oe,xe),Z.transform.baseVal.replaceItem(he,0)},z.prototype.hideControlBox=function(){this.controlBox.style.display="none"},z.prototype.showControlBox=function(){this.controlBox.style.display=""},z.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))},z.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))},z.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe);var xe=this.rotatePoint({x:this.left,y:this.top}),he=this.unrotatePoint({x:xe.x*Z,y:xe.y*oe});this.left=he.x,this.top=he.y,this.width=this.width*Z,this.height=this.height*oe,this.adjustControlBox()},z}(Se),Et=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||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(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},z.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)},z.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.setSize()},z.prototype.setSize=function(){pe.prototype.setSize.call(this),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Z){pe.prototype.pointerUp.call(this,Z),this.setSize()},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},z.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.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))},z.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()},z.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setSize()},z.title="Rectangle marker",z}(gt),Ct=function(pe){function z(Z,oe,xe,he){var lt=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return lt.widths=[],lt.widthBoxes=[],lt.widths=oe,lt.currentWidth=xe,lt.setCurrentWidth=lt.setCurrentWidth.bind(lt),lt}return ce(z,pe),z.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(xe){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=xe===Z.currentWidth?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentWidth(xe,he)}),oe.appendChild(he);var lt=document.createElement("div");lt.innerText=xe.toString(),lt.style.marginRight="5px",he.appendChild(lt);var an=document.createElement("div");an.style.minHeight="20px",an.style.flexGrow="2",an.style.display="flex",an.style.alignItems="center";var Nn=document.createElement("hr");Nn.style.minWidth="20px",Nn.style.border="0px",Nn.style.borderTop=xe+"px solid "+Z.uiStyleSettings.toolboxColor,Nn.style.flexGrow="2",an.appendChild(Nn),he.appendChild(an),Z.widthBoxes.push(he)}),oe},z.prototype.setCurrentWidth=function(Z,oe){var xe=this;this.currentWidth=Z,this.widthBoxes.forEach(function(he){he.style.borderColor=he===oe?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},z}(te),wt=function(pe){function z(Z,oe,xe,he){var lt=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return lt.styles=[],lt.styleBoxes=[],lt.styles=oe,lt.currentStyle=xe,lt.setCurrentStyle=lt.setCurrentStyle.bind(lt),lt}return ce(z,pe),z.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(xe){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=xe===Z.currentStyle?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentStyle(xe,he)}),oe.appendChild(he);var lt=document.createElement("div");lt.style.minHeight="20px",lt.style.flexGrow="2",lt.style.overflow="hidden";var an=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(xe!==""?'stroke-dasharray="'+xe+'"':"")+` />
</svg>`;lt.innerHTML=an,he.appendChild(lt),Z.styleBoxes.push(he)}),oe},z.prototype.setCurrentStyle=function(Z,oe){var xe=this;this.currentStyle=Z,this.styleBoxes.forEach(function(he){he.style.borderColor=he===oe?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(te),Qe=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||this;return he.strokeColor=xe.defaultColor,he.strokeWidth=xe.defaultStrokeWidth,he.strokeDasharray=xe.defaultStrokeDasharray,he.strokePanel=new Ae("Line color",xe.defaultColorSet,xe.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new Ct("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new wt("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return ce(z,pe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="FrameMarker",z.title="Frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',z}(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 z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||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(z,pe),z.prototype.ownsTarget=function(Z){return!!pe.prototype.ownsTarget.call(this,Z)||!(!this.grip1.ownsTarget(Z)&&!this.grip2.ownsTarget(Z))},z.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")},z.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)},z.prototype.adjustVisual=function(){},z.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)},z.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()},z.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var Z=new rt;return Z.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(Z.visual),Z},z.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)},z.prototype.positionGrip=function(Z,oe,xe){var he=Z.transform.baseVal.getItem(0);he.setTranslate(oe,xe),Z.transform.baseVal.replaceItem(he,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},pe.prototype.getState.call(this))},z.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},z.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()},z}(Se),jt=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||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=xe.defaultColor,he.strokeWidth=xe.defaultStrokeWidth,he.strokeDasharray=xe.defaultStrokeDasharray,he.strokePanel=new Ae("Line color",xe.defaultColorSet,xe.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new Ct("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new wt("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return ce(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorLine&&Z!==this.visibleLine)},z.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)},z.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.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()]]))},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.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()},z.typeName="LineMarker",z.title="Line marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',z}(ft),ht=function(pe){function z(Z,oe,xe,he){var lt=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return lt.fonts=[],lt.fontBoxes=[],lt.fonts=oe,lt.currentFont=xe,lt.setCurrentFont=lt.setCurrentFont.bind(lt),lt}return ce(z,pe),z.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(xe){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=xe===Z.currentFont?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentFont(xe,he)}),oe.appendChild(he);var lt=document.createElement("div");lt.style.display="flex",lt.style.minHeight="20px",lt.style.flexGrow="2",lt.style.fontFamily=xe,lt.style.overflow="hidden";var an=document.createElement("div");an.style.whiteSpace="nowrap",an.style.overflow="hidden",an.style.textOverflow="ellipsis",an.innerHTML="The quick brown fox jumps over the lazy dog",lt.appendChild(an),he.appendChild(lt),Z.fontBoxes.push(he)}),oe},z.prototype.setCurrentFont=function(Z,oe){var xe=this;this.currentFont=Z,this.fontBoxes.forEach(function(he){he.style.borderColor=he===oe?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(te),_t=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||this;return he.color="transparent",he.padding=5,he.DEFAULT_TEXT="your text here",he.text=he.DEFAULT_TEXT,he.isMoved=!1,he.color=xe.defaultColor,he.fontFamily=xe.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 Ae("Color",xe.defaultColorSet,xe.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.fontFamilyPanel=new ht("Font",xe.defaultFontFamilies,xe.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he}return ce(z,pe),z.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(xe){xe===Z&&(oe=!0)}),oe},z.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()},z.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")},z.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)}},z.prototype.getTextScale=function(){var Z=this.textElement.getBBox(),oe=1;if(Z.width>0&&Z.height>0){var xe=(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(xe,he)}return oe},z.prototype.getTextPosition=function(Z){var oe=this.textElement.getBBox(),xe=0,he=0;return oe.width>0&&oe.height>0&&(xe=(this.width-oe.width*Z)/2,he=this.height/2-oe.height*Z/2),{x:xe,y:he}},z.prototype.sizeText=function(){var Z=this.textElement.getBBox(),oe=this.getTextScale(),xe=this.getTextPosition(oe);xe.y-=Z.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+xe.x+"px, "+xe.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(xe.x,xe.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},z.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)},z.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.isMoved=!0,this.setSize(),this.sizeText()},z.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()]]))},z.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},z.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 xe=oe.clipboardData.getData("text"),he=window.getSelection();if(!he.rangeCount)return!1;he.deleteFromDocument(),he.getRangeAt(0).insertNode(document.createTextNode(xe)),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")},z.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}),xe=this.textElement.getBBox(),he={x:xe.width*Z,y:xe.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"}},z.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()},z.prototype.select=function(){pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),pe.prototype.deselect.call(this)},z.prototype.dblClick=function(Z,oe){pe.prototype.dblClick.call(this,Z,oe),this.showTextEditor()},z.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)},z.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()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.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=z.typeName,Z},z.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()},z.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',z}(gt),Ye=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||this;return he.color="transparent",he.lineWidth=3,he.drawing=!1,he.pixelRatio=1,he.color=xe.defaultColor,he.lineWidth=xe.defaultStrokeWidth,he.pixelRatio=xe.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 Ae("Color",xe.defaultColorSet,xe.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.lineWidthPanel=new Ct("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),he.lineWidthPanel.onWidthChanged=he.setLineWidth,he}return ce(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.drawingImage)},z.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)},z.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)},z.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)},z.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()]])},z.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)},z.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)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.deselect.call(this)},z.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],xe=oe[0],he=oe[1],lt=oe[2],an=oe[3],Nn=!1,Yn=0;Yn<this.canvasElement.height;Yn++)for(var tn=0;tn<this.canvasElement.width;tn++)Z.data[Yn*this.canvasElement.width*4+4*tn+3]>0&&(Nn=!0,Yn<he&&(he=Yn),tn<xe&&(xe=tn),Yn>an&&(an=Yn),tn>lt&&(lt=tn));if(Nn){this.left=xe/this.pixelRatio,this.top=he/this.pixelRatio,this.width=(lt-xe)/this.pixelRatio,this.height=(an-he)/this.pixelRatio;var Cn=document.createElement("canvas");Cn.width=lt-xe,Cn.height=an-he,Cn.getContext("2d").putImageData(this.canvasContext.getImageData(xe,he,lt-xe,an-he),0,0),this.drawingImgUrl=Cn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.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})},z.prototype.setColor=function(Z){this.color=Z,this.colorChanged(Z)},z.prototype.setLineWidth=function(Z){this.lineWidth=Z},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({drawingImgUrl:this.drawingImgUrl},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){this.createVisual(),pe.prototype.restoreState.call(this,Z),this.drawingImgUrl=Z.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',z}(gt),We=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,xe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return he.typeBoxes=[],he.currentType=oe,he.setCurrentType=he.setCurrentType.bind(he),he}return ce(z,pe),z.prototype.getUi=function(){var Z=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var xe=function(an){var Nn="both";switch(an){case 0:Nn="both";break;case 1:Nn="start";break;case 2:Nn="end";break;case 3:Nn="none"}var Yn=document.createElement("div");if(Yn.style.display="flex",Yn.style.flexGrow="2",Yn.style.alignItems="center",Yn.style.justifyContent="space-between",Yn.style.padding="5px",Yn.style.borderWidth="2px",Yn.style.borderStyle="solid",Yn.style.borderColor=Nn===he.currentType?he.uiStyleSettings.toolboxAccentColor:"transparent",Yn.addEventListener("click",function(){Z.setCurrentType(Nn,Yn)}),oe.appendChild(Yn),Nn==="both"||Nn==="start"){var tn=document.createElement("div");tn.style.display="flex",tn.style.alignItems="center",tn.style.minHeight="20px",tn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,tn.style.marginLeft="5px",Yn.appendChild(tn)}var Cn=document.createElement("div");Cn.style.display="flex",Cn.style.alignItems="center",Cn.style.minHeight="20px",Cn.style.flexGrow="2";var Jn=document.createElement("hr");if(Jn.style.minWidth="20px",Jn.style.border="0px",Jn.style.borderTop="3px solid "+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee"),Jn.style.flexGrow="2",Cn.appendChild(Jn),Yn.appendChild(Cn),Nn==="both"||Nn==="end"){var $r=document.createElement("div");$r.style.display="flex",$r.style.alignItems="center",$r.style.minHeight="20px",$r.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,$r.style.marginRight="5px",Yn.appendChild($r)}he.typeBoxes.push(Yn)},he=this,lt=0;lt<4;lt++)xe(lt);return oe},z.prototype.setCurrentType=function(Z,oe){var xe=this;this.currentType=Z,this.typeBoxes.forEach(function(he){he.style.borderColor=he===oe?xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(te),Xe=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||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 We("Arrow type","end"),he.arrowTypePanel.onArrowTypeChanged=he.setArrowType,he}return ce(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.arrow1&&Z!==this.arrow2)},z.prototype.getArrowPoints=function(Z,oe){var xe=this.arrowBaseWidth+2*this.strokeWidth,he=this.arrowBaseHeight+2*this.strokeWidth;return Z-xe/2+","+(oe+he/2)+" "+Z+","+(oe-he/2)+" "+(Z+xe/2)+","+(oe+he/2)},z.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)},z.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="creating"&&this.createTips()},z.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 xe=this.arrow2.transform.baseVal.getItem(0);xe.setRotate(Z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(xe,0)}},z.prototype.setArrowType=function(Z){this.arrowType=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({arrowType:this.arrowType},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',z}(jt),Te=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||this;return he.fillColor=xe.defaultFillColor,he.strokeWidth=0,he.fillPanel=new Ae("Color",xe.defaultColorSet,xe.defaultFillColor),he.fillPanel.onColorChanged=he.setFillColor,he}return ce(z,pe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="CoverMarker",z.title="Cover marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',z}(Et),Me=function(pe){function z(Z,oe,xe,he){var lt=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return lt.opacities=[],lt.opacityBoxes=[],lt.opacities=oe,lt.currentOpacity=xe,lt.setCurrentOpacity=lt.setCurrentOpacity.bind(lt),lt}return ce(z,pe),z.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(xe){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=xe===Z.currentOpacity?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentOpacity(xe,he)}),oe.appendChild(he);var lt=document.createElement("div");lt.innerText=100*xe+"%",he.appendChild(lt),Z.opacityBoxes.push(he)}),oe},z.prototype.setCurrentOpacity=function(Z,oe){var xe=this;this.currentOpacity=Z,this.opacityBoxes.forEach(function(he){he.style.borderColor=he===oe?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(te),Ve=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||this;return he.setOpacity=he.setOpacity.bind(he),he.fillColor=xe.defaultHighlightColor,he.strokeWidth=0,he.opacity=xe.defaultHighlightOpacity,he.fillPanel=new Ae("Color",xe.defaultColorSet,he.fillColor),he.fillPanel.onColorChanged=he.setFillColor,he.opacityPanel=new Me("Opacity",xe.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return ce(z,pe),z.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',z}(Te),Ge='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ze=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||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=xe.defaultStrokeColor,he.bgColor=xe.defaultFillColor,he.fontFamily=xe.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 Ae("Text color",xe.defaultColorSet,he.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),he.colorPanel.onColorChanged=he.setColor,he.bgColorPanel=new Ae("Fill color",xe.defaultColorSet,he.bgColor,Ge),he.bgColorPanel.onColorChanged=he.setBgColor,he.fontFamilyPanel=new ht("Font",xe.defaultFontFamilies,xe.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he.tipGrip=new rt,he.tipGrip.visual.transform.baseVal.appendItem(se.createTransform()),he.controlBox.appendChild(he.tipGrip.visual),he}return ce(z,pe),z.prototype.ownsTarget=function(Z){return pe.prototype.ownsTarget.call(this,Z)||this.tipGrip.ownsTarget(Z)||this.tip===Z},z.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)},z.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)},z.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()}},z.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)},z.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)},z.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},z.prototype.setTipPoints=function(Z){Z===void 0&&(Z=!1);var oe=Math.min(this.height/2,15),xe=this.height/5;Z&&(this.tipPosition={x:oe+xe/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.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(xe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+xe,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+xe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(xe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-xe,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+xe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?he<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(xe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-xe,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-xe},this.tipBase2Position={x:this.width,y:this.height-oe}):he<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(xe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+xe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-xe})},z.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.positionTip()},z.prototype.positionTip=function(){se.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Z=this.tipGrip.visual.transform.baseVal.getItem(0);Z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Z,0)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.select=function(){this.positionTip(),pe.prototype.select.call(this)},z.prototype.getState=function(){var Z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){var oe=Z;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,pe.prototype.restoreState.call(this,Z),this.createTip(),this.setTipPoints()},z.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.tipPosition={x:this.tipPosition.x*Z,y:this.tipPosition.y*oe},this.positionTip()},z.typeName="CalloutMarker",z.title="Callout marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',z}(_t),mt=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.strokeColor=xe.defaultColor,he.strokeWidth=xe.defaultStrokeWidth,he.strokeDasharray=xe.defaultStrokeDasharray,he.fillColor=xe.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 Ae("Line color",ue(xe.defaultColorSet,["transparent"]),xe.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.fillPanel=new Ae("Fill color",ue(xe.defaultColorSet,["transparent"]),he.fillColor,Ge),he.fillPanel.onColorChanged=he.setFillColor,he.strokeWidthPanel=new Ct("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new wt("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he.opacityPanel=new Me("Opacity",xe.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return ce(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},z.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)},z.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.setSize()},z.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()]])},z.prototype.pointerUp=function(Z){pe.prototype.pointerUp.call(this,Z),this.setSize()},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},z.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Z),this.stateChanged()},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.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=z.typeName,Z},z.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()},z.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setSize()},z.typeName="EllipseMarker",z.title="Ellipse marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(gt),Pt=function(pe){function z(Z,oe,xe){return pe.call(this,Z,oe,xe)||this}return ce(z,pe),Object.defineProperty(z.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.tip1&&Z!==this.tip2)},z.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)},z.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="creating"&&this.createTips()},z.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 xe=this.tip2.transform.baseVal.getItem(0);xe.setRotate(Z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(xe,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',z}(jt),Gt=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||this;return he.strokePanel.colors=xe.defaultColorSet,he.fillColor="transparent",he}return ce(z,pe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(mt),dn=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(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},pe.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},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 z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),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}(),Tt=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe,xe)||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=xe.defaultColor,he.strokeWidth=xe.defaultStrokeWidth,he.strokeDasharray=xe.defaultStrokeDasharray,he.strokePanel=new Ae("Line color",xe.defaultColorSet,xe.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new Ct("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new wt("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return ce(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorCurve&&Z!==this.visibleCurve&&!this.curveGrip.ownsTarget(Z))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.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)},z.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")},z.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()]]))},z.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)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,pe.prototype.addControlGrips.call(this)},z.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()))},z.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)},z.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)},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual()},z.prototype.scale=function(Z,oe){this.curveX=this.curveX*Z,this.curveY=this.curveY*oe,pe.prototype.scale.call(this,Z,oe)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.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=z.typeName,Z},z.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()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',z}(ft),ut=function(){function pe(z,Z){Z===void 0&&(Z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,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}(),je=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,!1)||this;return he.dataUrl=oe,he.state=xe,he}return ce(z,pe),z}(ut),tt=function(pe){function z(Z,oe,xe){xe===void 0&&(xe=!1);var he=pe.call(this,Z,xe)||this;return he.marker=oe,he}return ce(z,pe),z}(ut),nt=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(z,Z){this[z].push(Z)},pe.prototype.removeEventListener=function(z,Z){var oe=this[z].indexOf(Z);oe>-1&&this[z].splice(oe,1)},pe}(),De=function(){function pe(z){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 dn,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 nt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=pe.instanceCounter++,this.styles=new ie(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.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[Qe,Ye,Xe,_t,Gt,mt,Ve,Ze,Pt,Te,jt,Tt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Qe,Ye,Xe,_t,mt,Ve,Ze]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Qe,Ye,Xe,_t,Ve]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var Z=this;this._availableMarkerTypes.splice(0),z.forEach(function(oe){if(typeof oe=="string"){var xe=Z.ALL_MARKER_TYPES.find(function(he){return he.typeName===oe});xe!==void 0&&Z._availableMarkerTypes.push(xe)}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(z){this._zoomLevel=z,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 z=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 ut(z))})},pe.prototype.render=function(){return be(this,void 0,void 0,function(){var z;return ve(this,function(Z){switch(Z.label){case 0:return this.setCurrentMarker(),(z=new me).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Z.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Z.sent()]}})})},pe.prototype.close=function(z){var Z=this;if(z===void 0&&(z=!1),this.isOpen){var oe=!1;z||this.eventListeners.beforeclose.forEach(function(xe){var he=new ut(Z,!0);xe(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(xe){return xe(new ut(Z))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var z,Z=[],oe=0;oe<arguments.length;oe++)Z[oe]=arguments[oe];(z=this._availableMarkerTypes).push.apply(z,Z)},pe.prototype.addRenderEventListener=function(z){this.addEventListener("render",function(Z){z(Z.dataUrl,Z.state)})},pe.prototype.removeRenderEventListener=function(z){},pe.prototype.addCloseEventListener=function(z){this.addEventListener("close",function(){z()})},pe.prototype.removeCloseEventListener=function(z){},pe.prototype.setupResizeObserver=function(){var z=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return z.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},pe.prototype.onPopupTargetResize=function(){var z=1*this.target.clientWidth/this.target.clientHeight,Z=this.editorCanvas.clientWidth/z>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,oe=Z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/z;this.resize(Z,oe)},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.resize=function(z,Z){this._isResizing=!0;var oe=z/this.imageWidth,xe=Z/this.imageHeight;this.imageWidth=Math.round(z),this.imageHeight=Math.round(Z),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(oe,xe),this._isResizing=!1},pe.prototype.scaleMarkers=function(z,Z){var oe,xe=this;this._currentMarker&&this._currentMarker instanceof _t?this._currentMarker.scale(z,Z):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(he){he!==xe._currentMarker&&he.scale(z,Z)}),oe!==void 0&&this.setCurrentMarker(oe)},pe.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},pe.prototype.setTopLeft=function(){var z=this.editingTarget.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=z.left-Z.left,this.top=z.top-Z.top},pe.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},pe.prototype.addDefs=function(){for(var z,Z=[],oe=0;oe<arguments.length;oe++)Z[oe]=arguments[oe];this.defs=se.createDefs(),this.addDefsToImage(),(z=this.defs).append.apply(z,Z)},pe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},pe.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},pe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},pe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},pe.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},pe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},pe.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},pe.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var z=document.createElement("a");z.href="https://markerjs.com/",z.target="_blank",z.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),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 z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"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<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new J(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},pe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.removeMarker=function(z){this.markerImage.removeChild(z.container),this.markers.indexOf(z)>-1&&this.markers.splice(this.markers.indexOf(z),1),z.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(z,Z){if(z==="marker"&&Z!==void 0)this.createNewMarker(Z);else if(z==="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 z=this;if(this._currentMarker!==void 0){var Z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(xe){var he=new tt(z,z._currentMarker,!0);xe(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(xe){return xe(new tt(z,oe))})}}},pe.prototype.clear=function(){var z=this,Z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(lt){var an=new tt(z,void 0,!0);lt(an),an.defaultPrevented&&(Z=!0)}),!Z)){this.setCurrentMarker();for(var oe=function(lt){var an=xe.markers[lt];xe.setCurrentMarker(xe.markers[lt]),xe._currentMarker.dispose(),xe.markerImage.removeChild(xe._currentMarker.container),xe.markers.splice(xe.markers.indexOf(xe._currentMarker),1),xe.eventListeners.markerdelete.forEach(function(Nn){return Nn(new tt(z,an))})},xe=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 z;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=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",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 z=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 xe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Z),xe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(he){return he(new ut(z))})}else this.undoRedoManager.replaceLastUndoStep(Z),this.eventListeners.statechange.forEach(function(he){return he(new ut(z))})}},pe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},pe.prototype.undoStep=function(){var z=this,Z=this.undoRedoManager.undo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new ut(z))}))},pe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},pe.prototype.redoStep=function(){var z=this,Z=this.undoRedoManager.redo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new ut(z))}))},pe.prototype.stepZoom=function(){var z=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=z<this.zoomSteps.length-1?this.zoomSteps[z+1]:this.zoomSteps[0]},pe.prototype.panTo=function(z){this.contentDiv.scrollBy({left:this.prevPanPoint.x-z.x,top:this.prevPanPoint.y-z.y}),this.prevPanPoint=z},pe.prototype.startRenderAndClose=function(){return be(this,void 0,void 0,function(){var z,Z,oe=this;return ve(this,function(xe){switch(xe.label){case 0:return[4,this.render()];case 1:return z=xe.sent(),Z=this.getState(),this.eventListeners.render.forEach(function(he){return he(new je(oe,z,Z))}),this.close(!0),[2]}})})},pe.prototype.getState=function(z){z===!0&&this.setCurrentMarker();var Z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return Z.markers.push(oe.getState())}),Z},pe.prototype.restoreState=function(z){var Z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);z.markers.forEach(function(oe){var xe=Z._availableMarkerTypes.find(function(lt){return lt.typeName===oe.typeName});if(xe!==void 0){var he=Z.addNewMarker(xe);he.restoreState(oe),Z.markers.push(he)}}),z.width&&z.height&&(z.width!==this.imageWidth||z.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/z.width,this.imageHeight/z.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new ut(Z))})},pe.prototype.addNewMarker=function(z){var Z=se.createGroup();return this.markerImage.appendChild(Z),new z(Z,this.overlayContainer,this.settings)},pe.prototype.createNewMarker=function(z){var Z,oe=this;(Z=typeof z=="string"?this._availableMarkerTypes.find(function(xe){return xe.typeName===z}):z)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Z),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(Z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(xe){return xe(new tt(oe,oe._currentMarker))}))},pe.prototype.markerCreated=function(z){var Z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(z),this.setCurrentMarker(z),z instanceof Ye&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ye):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new tt(Z,Z._currentMarker))})},pe.prototype.colorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=z,this.settings.defaultStrokeColor=z)},pe.prototype.fillColorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=z)},pe.prototype.markerStateChanged=function(z){var Z=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new tt(Z,z))})},pe.prototype.setCurrentMarker=function(z){var Z=this;this._currentMarker!==z&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new tt(Z,Z._currentMarker))})),this._currentMarker=z,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(oe){return oe(new tt(Z,Z._currentMarker))}))},pe.prototype.onPointerDown=function(z){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||z.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Z=this.markers.find(function(oe){return oe.ownsTarget(z.target)});Z!==void 0?(this.setCurrentMarker(Z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:z.clientX,y:z.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY))},pe.prototype.onDblClick=function(z){if(this._isFocused||this.focus(),this.mode==="select"){var Z=this.markers.find(function(oe){return oe.ownsTarget(z.target)});Z!==void 0&&Z!==this._currentMarker&&this.setCurrentMarker(Z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target):this.setCurrentMarker()}},pe.prototype.onPointerMove=function(z){this.touchPoints!==1&&z.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||z.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(z.clientX,z.clientY)):this.zoomLevel>1&&this.panTo({x:z.clientX,y:z.clientY}))},pe.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},pe.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},pe.prototype.clientToLocalCoordinates=function(z,Z){var oe=this.markerImage.getBoundingClientRect();return{x:(z-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 z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"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(z){q.addKey(z)},pe.prototype.addEventListener=function(z,Z){this.eventListeners.addEventListener(z,Z)},pe.prototype.removeEventListener=function(z,Z){this.eventListeners.removeEventListener(z,Z)},pe.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),pe.prototype.focus=function(){var z=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 ut(z))}))},pe.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Z){return Z(new ut(z))}))},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 Fe=function(pe,z){return(Fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,oe){Z.__proto__=oe}||function(Z,oe){for(var xe in oe)Object.prototype.hasOwnProperty.call(oe,xe)&&(Z[xe]=oe[xe])})(pe,z)};function bt(pe,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function Z(){this.constructor=pe}Fe(pe,z),pe.prototype=z===null?Object.create(z):(Z.prototype=z.prototype,new Z)}function dt(pe,z,Z,oe){return new(Z||(Z=Promise))(function(xe,he){function lt(Yn){try{Nn(oe.next(Yn))}catch(tn){he(tn)}}function an(Yn){try{Nn(oe.throw(Yn))}catch(tn){he(tn)}}function Nn(Yn){var tn;Yn.done?xe(Yn.value):(tn=Yn.value,tn instanceof Z?tn:new Z(function(Cn){Cn(tn)})).then(lt,an)}Nn((oe=oe.apply(pe,z||[])).next())})}function xt(pe,z){var Z,oe,xe,he,lt={label:0,sent:function(){if(1&xe[0])throw xe[1];return xe[1]},trys:[],ops:[]};return he={next:an(0),throw:an(1),return:an(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function an(Nn){return function(Yn){return function(tn){if(Z)throw new TypeError("Generator is already executing.");for(;lt;)try{if(Z=1,oe&&(xe=2&tn[0]?oe.return:tn[0]?oe.throw||((xe=oe.return)&&xe.call(oe),0):oe.next)&&!(xe=xe.call(oe,tn[1])).done)return xe;switch(oe=0,xe&&(tn=[2&tn[0],xe.value]),tn[0]){case 0:case 1:xe=tn;break;case 4:return lt.label++,{value:tn[1],done:!1};case 5:lt.label++,oe=tn[1],tn=[0];continue;case 7:tn=lt.ops.pop(),lt.trys.pop();continue;default:if(!(xe=lt.trys,(xe=xe.length>0&&xe[xe.length-1])||tn[0]!==6&&tn[0]!==2)){lt=0;continue}if(tn[0]===3&&(!xe||tn[1]>xe[0]&&tn[1]<xe[3])){lt.label=tn[1];break}if(tn[0]===6&&lt.label<xe[1]){lt.label=xe[1],xe=tn;break}if(xe&&lt.label<xe[2]){lt.label=xe[2],lt.ops.push(tn);break}xe[2]&&lt.ops.pop(),lt.trys.pop();continue}tn=z.call(pe,lt)}catch(Cn){tn=[6,Cn],oe=0}finally{Z=xe=0}if(5&tn[0])throw tn[1];return{value:tn[0]?tn[1]:void 0,done:!0}}([Nn,Yn])}}}var kt=function(){function pe(){}return pe.addKey=function(z){pe.key=z},Object.defineProperty(pe,"isLicensed",{get:function(){return!!pe.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(pe.key)},enumerable:!1,configurable:!0}),pe}(),et=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(z,Z){for(var oe=0,xe=Z;oe<xe.length;oe++){var he=xe[oe],lt=he[0],an=he[1];z.setAttribute(lt,an)}},pe.createRect=function(z,Z,oe){var xe=document.createElementNS("http://www.w3.org/2000/svg","rect");return xe.setAttribute("width",z.toString()),xe.setAttribute("height",Z.toString()),oe&&pe.setAttributes(xe,oe),xe},pe.createLine=function(z,Z,oe,xe,he){var lt=document.createElementNS("http://www.w3.org/2000/svg","line");return lt.setAttribute("x1",z.toString()),lt.setAttribute("y1",Z.toString()),lt.setAttribute("x2",oe.toString()),lt.setAttribute("y2",xe.toString()),he&&pe.setAttributes(lt,he),lt},pe.createPolygon=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",z),Z&&pe.setAttributes(oe,Z),oe},pe.createCircle=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(z/2).toString()),oe.setAttribute("cy",(z/2).toString()),oe.setAttribute("r",z.toString()),Z&&pe.setAttributes(oe,Z),oe},pe.createEllipse=function(z,Z,oe){var xe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return xe.setAttribute("cx",(z/2).toString()),xe.setAttribute("cy",(Z/2).toString()),xe.setAttribute("rx",(z/2).toString()),xe.setAttribute("ry",(Z/2).toString()),oe&&pe.setAttributes(xe,oe),xe},pe.createGroup=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return z&&pe.setAttributes(Z,z),Z},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(z,Z,oe,xe,he,lt,an){var Nn=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Nn,[["id",z],["orient",Z],["markerWidth",oe.toString()],["markerHeight",xe.toString()],["refX",he.toString()],["refY",lt.toString()]]),Nn.appendChild(an),Nn},pe.createText=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),z&&pe.setAttributes(Z,z),Z},pe.createTSpan=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=z,Z&&pe.setAttributes(oe,Z),oe},pe.createImage=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return z&&pe.setAttributes(Z,z),Z},pe.createPoint=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=z,oe.y=Z,oe},pe.createPath=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",z),Z&&pe.setAttributes(oe,Z),oe},pe.createElement=function(z,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg",z);return Z&&pe.setAttributes(oe,Z),oe},pe.getHollowRectanglePath=function(z,Z,oe,xe,he,lt,an,Nn){return"M"+z+","+Z+"V"+(Z+xe)+"H"+(z+oe)+"V"+Z+"H"+he+"V"+lt+"H"+(he+an)+"V"+(lt+Nn)+"H"+he+"V"+Z+"Z"},pe}(),Mt=function(){function pe(z){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+z+"_"}return Object.defineProperty(pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),pe.prototype.addClass=function(z){return this.styleSheet===void 0&&this.addStyleSheet(),z.name=""+this.classNamePrefix+z.localName,this.classes.push(z),this.styleSheet.sheet.insertRule("."+z.name+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length),z},pe.prototype.addRule=function(z){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(z),this.styleSheet.sheet.insertRule(z.selector+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var z;this.styleSheet=document.createElement("style"),((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).appendChild(this.styleSheet),this.addRule(new Ht("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ht("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ht("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new _n("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new _n("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},pe.prototype.removeStyleSheet=function(){var z;this.styleSheet&&(((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Ht=function(pe,z){this.selector=pe,this.style=z},_n=function(pe,z){this.localName=pe,this.style=z},vn=function(){function pe(){this.blocks=[],this.display=""}return pe.prototype.addButtonBlock=function(z){z.className=this.blockClassName,z.buttonClassName=this.buttonClassName,z.buttonColorsClassName=this.buttonColorsClassName,z.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(z)},pe.prototype.addElementBlock=function(z){z.className===void 0&&(z.className=this.blockClassName),this.blocks.push(z)},pe.prototype.getUI=function(){var z=document.createElement("div");return z.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,z.style.display=this.display,this.blocks.forEach(function(Z){return z.appendChild(Z.getUI())}),z},pe}(),fn=function(){function pe(){}return pe.prototype.getUI=function(){var z=document.createElement("div");if(z.className=this.className,this.minWidth!==void 0&&(z.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":z.style.justifyContent="flex-start";break;case"center":z.style.justifyContent="center";break;case"end":z.style.justifyContent="flex-end"}return z.style.whiteSpace="nowrap",z},pe}(),Gn=function(pe){function z(){var Z=pe!==null&&pe.apply(this,arguments)||this;return Z.buttons=[],Z}return bt(z,pe),z.prototype.addButton=function(Z){Z.className=this.buttonClassName,Z.colorsClassName=this.buttonColorsClassName,Z.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(Z)},z.prototype.getUI=function(){var Z=pe.prototype.getUI.call(this);return this.buttons.forEach(function(oe){return Z.appendChild(oe.getUI())}),Z},z}(fn),wn=function(){function pe(z,Z){this._isActive=!1,this._isHidden=!1,this._icon=z,this.title=Z,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(pe.prototype,"icon",{get:function(){return this._icon},set:function(z){this._icon=z,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isActive",{get:function(){return this._isActive},set:function(z){this._isActive=z,this.adjustClassName()},enumerable:!1,configurable:!0}),pe.prototype.getUI=function(){var z=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return z.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},pe.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},pe.prototype.hide=function(){this._isHidden=!0},pe}(),rn=function(pe){function z(){var Z=pe!==null&&pe.apply(this,arguments)||this;return Z.elements=[],Z}return bt(z,pe),z.prototype.addElement=function(Z){this.elements.push(Z)},z.prototype.getUI=function(){var Z=pe.prototype.getUI.call(this);return this.elements.forEach(function(oe){return Z.appendChild(oe)}),Z},z}(fn),Qn=function(){function pe(z,Z){this.horizontal=z,this.vertical=Z}return Object.defineProperty(pe.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),pe.prototype.getVerticalLength=function(z){return z/this.ratio},pe.prototype.getHorizontalLength=function(z){return z*this.ratio},pe}(),Zn=function(){function pe(){}return pe.getIcon=function(z,Z){if(z>0&&Z>0){var oe=new Qn(z,Z),xe=oe.ratio>=1?20:oe.getHorizontalLength(20),he=oe.ratio<1?20:oe.getVerticalLength(20),lt=document.createElementNS("http://www.w3.org/2000/svg","svg");lt.setAttribute("xmlns","http://www.w3.org/2000/svg"),lt.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(lt);var an=et.createDefs();lt.appendChild(an);var Nn=et.createElement("clipPath",[["id","text-bg-clip"]]);an.appendChild(Nn);var Yn=et.createPath(et.getHollowRectanglePath((24-xe)/2,(24-he)/2,xe,he,(24-xe)/2+2,(24-he)/2+2,xe-4,he-4));lt.appendChild(Yn);var tn=et.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);tn.appendChild(et.createTSpan(z+":"+Z)),lt.appendChild(tn);var Cn=tn.getBBox();et.setAttributes(tn,[["x",((24-Cn.width)/2).toString()],["y",((24-Cn.height)/2-Cn.y).toString()]]);var Jn=et.createPath(et.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Cn.width))/2,(24-Math.ceil(Cn.height))/2,Math.ceil(Cn.width),Math.ceil(Cn.height)));return Nn.appendChild(Jn),et.setAttributes(Yn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(lt),lt.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},pe}(),rr=function(pe){function z(Z,oe,xe){var he=pe.call(this,Z,oe)||this;return he.isDropdownOpen=!1,he.onClick=he.dropdownButtonClicked,he.dropdownButtons=xe,he}return bt(z,pe),z.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)},z.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},z.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},z.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},z.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},z.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},z}(wn),$n=function(){function pe(z,Z){this.GRIP_SIZE=10,this.color=z,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(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},pe.prototype.setCenter=function(z,Z){this.visual.childNodes.forEach(function(oe){return et.setAttributes(oe,[["cx",z.toString()],["cy",Z.toString()]])})},pe}(),Ar=function(){function pe(z,Z,oe,xe){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=z,this.canvasHeight=Z,this.margin=oe,this.container=xe,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(z){this._aspectRatio=z,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,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(z){this._zoomFactor=z,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),pe.prototype.open=function(){var z=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;Z<this.numberOfGridLines;Z++)this.horizontalGridLines.push(et.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(et.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(oe){return z.gridContainer.appendChild(oe)}),this.verticalGridLines.forEach(function(oe){return z.gridContainer.appendChild(oe)}),this.cropRectElement=et.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new $n(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new $n(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new $n(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new $n(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},pe.prototype.setCropRectangle=function(z){this.cropRect=z;var Z=Object.assign({},this.cropRect);this.zoomFactor!==1&&(Z.width=this.cropRect.width*this.zoomFactor,Z.height=this.cropRect.height*this.zoomFactor,Z.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-Z.width/2,Z.y=this.cropRect.height/this.cropRect.width>this.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,lt){var an=Z.y+oe*(lt+1);et.setAttributes(he,[["x1",""+Z.x],["y1",""+an],["x2",""+(Z.x+Z.width)],["y2",""+an]])});var xe=Z.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(he,lt){var an=Z.x+xe*(lt+1);et.setAttributes(he,[["x1",""+an],["y1",""+Z.y],["x2",""+an],["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(z,Z){var oe=this.container.getBoundingClientRect();return{x:z-oe.left+this.margin,y:Z-oe.top+this.margin}},pe.prototype.onPointerDown=function(z){this.container.setPointerCapture(z.pointerId),this.previousPoint=this.clientToLocalCoordinates(z.clientX,z.clientY),this.cropRectElement===z.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(z.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(z.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(z.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(z.target)&&(this.activeGrip=this.bottomRightGrip)},pe.prototype.onPointerMove=function(z){if(this.isMoving)this.move(this.clientToLocalCoordinates(z.clientX,z.clientY));else if(this.activeGrip){var Z=this.clientToLocalCoordinates(z.clientX,z.clientY);this.resize(Z)}z.preventDefault()},pe.prototype.onPointerUp=function(z){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(z.pointerId)},pe.prototype.move=function(z){var Z=z.x-this.previousPoint.x,oe=z.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=z},pe.prototype.resize=function(z){var Z=Object.assign({},this.cropRect),oe=z.x-this.previousPoint.x,xe=z.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:Z.x+oe<this.margin&&(oe=this.margin-Z.x),Z.x+=oe,Z.width=this.cropRect.x+this.cropRect.width-Z.x;break;case this.bottomRightGrip:case this.topRightGrip:Z.width+oe>this.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+=xe,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+=xe}Z.width<10&&(Z.x=this.cropRect.x,Z.width=10),Z.height<10&&(Z.y=this.cropRect.y,Z.height=10),this.previousPoint=z,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 z=this.cropRect.x+this.cropRect.width/2,Z=this.cropRect.y+this.cropRect.height/2,oe=this.aspectRatio.getHorizontalLength(this.cropRect.height),xe=this.aspectRatio.getVerticalLength(this.cropRect.width);oe/this.canvasWidth<xe/this.canvasHeight?this.cropRect.width=oe:this.cropRect.height=xe,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=z-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(z,Z,oe,xe,he,lt){var an=oe/z,Nn=xe/Z;return{x:(he.x-lt)*an+lt,y:(he.y-lt)*Nn+lt,width:he.width*an,height:he.height*Nn}},pe.prototype.scaleCanvas=function(z,Z){var oe=this.getRescaledRect(this.canvasWidth,this.canvasHeight,z,Z,this.cropRect,this.margin);this.canvasWidth=z,this.canvasHeight=Z,this.onCropChange&&this.onCropChange(oe),this.setCropRectangle(oe)},pe}(),pr=function(){function pe(z){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=z,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(z){this._angle=z,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(z){this.controlContainer.setPointerCapture(z.pointerId),this.isDragging=!0,this.previousPoint={x:z.clientX,y:z.clientY}},pe.prototype.onPointerMove=function(z){this.isDragging&&(this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.previousPoint.x=z.clientX)},pe.prototype.onPointerUp=function(z){this.isDragging&&this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(z.pointerId)},pe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var z=this.angleLabelText.getBBox();et.setAttributes(this.angleLabelElement,[["x",((this.width-z.width)/2).toString()],["y",(this.height/2).toString()]])}},pe.prototype.positionScaleShape=function(){if(this.scaleShape){var z=this.scaleShape.transform.baseVal.getItem(0);z.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(z,0)}},pe.prototype.getVisual=function(){var z=document.createElementNS("http://www.w3.org/2000/svg","svg");z.setAttribute("xmlns","http://www.w3.org/2000/svg"),z.setAttribute("width",this.width+"px"),z.setAttribute("height",this.height+"px"),z.setAttribute("viewBox","0 0 "+this.width+" "+this.height),z.style.flexShrink="0",document.body.appendChild(z);for(var Z="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,oe=1;oe<=this.width/5+10;oe++){var xe=oe%5==0?this.height/3:this.height/6;Z+="h4v"+-xe+"h1v"+xe}Z+="v1H0Z",this.scaleShape=et.createPath(Z);var he=et.createTransform();this.scaleShape.transform.baseVal.appendItem(he),z.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 lt=et.createTSpan("");return lt.innerHTML="&deg;",this.angleLabelElement.appendChild(lt),z.appendChild(this.angleLabelElement),document.body.removeChild(z),z},pe}(),on=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(z,Z,oe,xe,he,lt,an){var Nn=this;return new Promise(function(Yn){var tn=document.createElement("canvas");tn.width=z.width.baseVal.value-2*xe,tn.height=z.height.baseVal.value-2*xe;var Cn=1,Jn=1;Nn.naturalSize===!0?(Cn=Z.naturalWidth/(z.width.baseVal.value-2*xe)/lt,Jn=Z.naturalHeight/(z.height.baseVal.value-2*xe)/an,tn.width=Z.naturalWidth/lt,tn.height=Z.naturalHeight/an):Nn.width!==void 0&&Nn.height!==void 0&&(Cn=Nn.width/oe.width,Jn=Nn.height/oe.height,tn.width*=Cn,tn.height*=Jn);var $r=tn.getContext("2d");$r.translate(tn.width/2,tn.height/2),$r.rotate(he*Math.PI/180),$r.scale(lt,an),$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*Cn,ga.height=oe.height*Jn,ga.getContext("2d").putImageData($r.getImageData((oe.x-xe)*Cn,(oe.y-xe)*Jn,oe.width*Cn,oe.height*Jn),0,0),Yn(ga.toDataURL(Nn.imageType,Nn.imageQuality))})},pe}(),Zt=function(){function pe(z){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 Mt(this.instanceNo),this.target=z,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(z){this._zoomToCropEnabled=z,z?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(z){this._gridLines=z,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(z){this._rotationAngle=z,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 z;return(z=this._aspectRatio)!==null&&z!==void 0?z:this.aspectRatios[0]},set:function(z){this._aspectRatio=z},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(z){z===void 0&&(z=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),z||this.closeEventListeners.forEach(function(Z){return Z()}),this._isOpen=!1)},pe.prototype.addRenderEventListener=function(z){this.renderEventListeners.push(z)},pe.prototype.removeRenderEventListener=function(z){this.renderEventListeners.indexOf(z)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(z),1)},pe.prototype.addCloseEventListener=function(z){this.closeEventListeners.push(z)},pe.prototype.removeCloseEventListener=function(z){this.closeEventListeners.indexOf(z)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(z),1)},pe.prototype.setupResizeObserver=function(){var z=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.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 z=1*this.target.clientWidth/this.target.clientHeight,Z=this.contentDiv.clientWidth/z>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*z:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,oe=Z+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/z;this.resize(Z,oe)}},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",et.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},pe.prototype.resize=function(z,Z){this.imageWidth=Math.round(z),this.imageHeight=Math.round(Z),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},pe.prototype.setEditingTarget=function(){var z=document.createElement("canvas");z.width=this.target.naturalWidth,z.height=this.target.naturalHeight,z.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var Z=z.toDataURL();et.setAttributes(this.editingTarget,[["href",Z]]),this.setEditingTargetSize()},pe.prototype.setTopLeft=function(){var z=this.target.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=z.left-Z.left-this.CANVAS_MARGIN,this.top=z.top-Z.top-this.CANVAS_MARGIN},pe.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=et.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=et.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=et.createGroup(),this.editingTargetRotationScaleContainer=et.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var z=et.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(z);var Z=et.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(Z),this.editingTargetContainer=et.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},pe.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},pe.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=et.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Ar(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},pe.prototype.zoomToCrop=function(){if(this.cropRect){var z=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,Z=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=z+"px "+Z+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-z+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-Z+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},pe.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},pe.prototype.cropRectChanged=function(z){this.cropRect=z,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},pe.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},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.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var z=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,Z=this.target.offsetTop>z+this.CANVAS_MARGIN?this.target.offsetTop-(z+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 z=this;this.topToolbar=new vn,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 Gn;Z.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(Z);var oe=[];this.aspectRatios.forEach(function(Jn){var $r=new wn(Zn.getIcon(Jn.horizontal,Jn.vertical),Jn.horizontal===0&&Jn.vertical===0?"FREE":Jn.horizontal+":"+Jn.vertical);$r.onClick=function(){return z.ratioButtonClicked(Jn)},oe.push($r)}),this.aspectRatioButton=new rr(Zn.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 xe=new wn('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");xe.isActive=this.isGridVisible,xe.onClick=function(){z.isGridVisible=!z.isGridVisible,xe.isActive=z.isGridVisible},Z.addButton(xe);var he=new wn('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(he.isActive=this.zoomToCropEnabled,he.onClick=function(){z.zoomToCropEnabled=!z.zoomToCropEnabled,he.isActive=z.zoomToCropEnabled},Z.addButton(he),!kt.isLicensed){var lt=new rn;this.topToolbar.addElementBlock(lt);var an=document.createElement("div");an.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Nn=document.createElement("a");Nn.style.color="currentColor",Nn.href="https://markerjs.com/products/cropro",Nn.target="_blank",Nn.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',an.appendChild(Nn),lt.addElement(an)}var Yn=new Gn;Yn.minWidth=3*this.toolbarHeight+"px",Yn.contentAlign="end",this.topToolbar.addButtonBlock(Yn);var tn=new wn('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");tn.onClick=this.startRenderAndClose,Yn.addButton(tn),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(tn.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Cn=new wn('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");Cn.onClick=this.close,Yn.addButton(Cn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Cn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var z=this;this.bottomToolbar=new vn,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 Gn;Z.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(Z);var oe=new wn('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");oe.onClick=this.rotateLeftButtonClicked,Z.addButton(oe);var xe=new wn('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");xe.onClick=this.rotateRightButtonClicked,Z.addButton(xe);var he=new rn;he.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(he),this.straightener=new pr("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(Yn){z.rotateBy(Yn),z.straightener.angle=z.rotationAngle},he.addElement(this.straightener.getUI());var lt=new Gn;lt.minWidth=2*this.toolbarHeight+"px",lt.contentAlign="end",this.bottomToolbar.addButtonBlock(lt);var an=new wn('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");an.onClick=this.flipHorizontallyButtonClicked,lt.addButton(an);var Nn=new wn('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");Nn.onClick=this.flipVerticallyButtonClicked,lt.addButton(Nn)},pe.prototype.ratioButtonClicked=function(z){this.aspectRatio=z,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Zn.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 Qn(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(z){if(z){var Z=this.cropLayer.getRescaledRect(z.width,z.height,this.imageWidth,this.imageHeight,z.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(Z),this.cropRectChanged(Z),this.flippedHorizontally=z.flippedHorizontally,this.flippedVertically=z.flippedVertically,this.applyFlip(),this.rotationAngle=z.rotationAngle,this.applyRotation()}},pe.prototype.clientToLocalCoordinates=function(z,Z){var oe=this.cropImage.getBoundingClientRect();return{x:z-oe.left,y:Z-oe.top}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var z=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=z+"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 z=this.rotationAngle-90;this.rotationAngle%90!=0&&(z+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(z)},pe.prototype.rotateRightButtonClicked=function(){var z=this.rotationAngle+90;this.rotationAngle%90!=0&&(z-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(z)},pe.prototype.rotateTo=function(z){z=(z=z>180?z-360:z)<=-180?z+360:z,this.rotationAngle=z,this.applyRotation()},pe.prototype.rotateBy=function(z){this.rotateTo((this.rotationAngle+z)%360)},pe.prototype.applyRotation=function(){var z=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=z},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 dt(this,void 0,void 0,function(){var z,Z;return xt(this,function(oe){switch(oe.label){case 0:return[4,this.render()];case 1:return z=oe.sent(),Z=this.getState(),this.renderEventListeners.forEach(function(xe){return xe(z,Z)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return dt(this,void 0,void 0,function(){var z;return xt(this,function(Z){switch(Z.label){case 0:return(z=new on).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.width=this.renderWidth,z.height=this.renderHeight,this.unzoomFromCrop(),et.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,z.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,z.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 _n("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 _n("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new _n("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var z=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new _n("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*z)+`px;
height: `+(this.toolbarHeight-2*z)+`px;
padding: `+z+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new _n("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new _n("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 _n("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 _n("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new _n("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 _n("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*z)+`px;
padding: `+z+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new _n("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},pe.instanceCounter=0,pe}(),An=s("8hTe"),jr=s.n(An),Ln=/<pre[^>]*>/g;function qn(pe){var z=document.createElement("div");return z.innerHTML=pe,z.childNodes.length===0?"":z.childNodes[0].nodeValue}var Un=Y.a=function(pe){var z=pe.value,Z=z===void 0?"":z,oe=pe.edit,xe=oe===void 0?!1:oe,he=pe.className,lt=pe.showTextOnly,an=pe.showLines,Nn=pe.replaces,Yn=pe.zoomImg,tn=pe.hasMask,Cn=pe.style,Jn=Cn===void 0?{}:Cn,$r=pe.stylesPrev,ga=$r===void 0?{}:$r,pa=String(Z),mr=Object(d.useRef)(),za=Object(d.useRef)(),ja=Object(d.useState)(""),Ra=Object(T.a)(ja,2),Ha=Ra[0],Sa=Ra[1],Ja=Object(d.useState)("office"),ka=Object(T.a)(Ja,2),li=ka[0],oi=ka[1],ua=function(){var Nt=new Zt(za.current);Nt.displayMode="popup",Nt.addRenderEventListener(function(){var Xt=Object(S.a)(_.a.mark(function en(yn){var mn;return _.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return mr.current.style.display="none",Dn.next=3,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn}});case 3:mn=Dn.sent,mn!=null&&mn.id&&Nn(za.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(mn==null?void 0:mn.id,"?type=").concat(mn.content_type));case 5:case"end":return Dn.stop()}},en)}));return function(en){return Xt.apply(this,arguments)}}()),Nt.show()},fa=function(){var Nt=new De(za.current);Nt.settings.displayMode="popup",Nt.addEventListener("render",function(){var Xt=Object(S.a)(_.a.mark(function en(yn){var mn;return _.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(mr.current.style.display="none",!za.current){Dn.next=6;break}return Dn.next=4,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn.dataUrl}});case 4:mn=Dn.sent,mn!=null&&mn.id&&Nn(za.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(mn==null?void 0:mn.id,"?type=").concat(mn.content_type));case 6:case"end":return Dn.stop()}},en)}));return function(en){return Xt.apply(this,arguments)}}()),Nt.show(),window.markerArea=Nt},oa=Object(d.useMemo)(function(){mr.current&&(mr.current.style.zIndex=-1);try{var Wt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Nt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;pa=pa.replace(Wt,"("+ne.a.API_SERVER+"/api/attachments/").replace(Nt,'"'+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(jn){}var en=K(pa),yn=I();if(pa.match(/\[TOC\]/)&&(en=en.replace("<p>[TOC]</p>",P()),w()),en=en.replace(/(__special_katext_id_\d+__)/g,function(jn,Dn){var nn=yn[Dn],Mn=nn.type,bn=nn.expression;return Object(fe.renderToString)(qn(bn)||"",{displayMode:Mn==="block",throwOnError:!1,output:"html"})}),en=en.replace(/▁/g,"\u2581\u2581\u2581"),D(),lt){var mn=document.createElement("div");return mn.innerHTML=en,mn.innerText}return setTimeout(function(){return It()},500),en},[pa]),ye=Object(d.useRef)();C.WebkitLineClamp=an,an&&(Jn=Object(y.a)(Object(y.a)({},Jn),C));function st(Wt){var Nt=Wt.target;if(Nt.tagName.toUpperCase()==="IMG"){if(Yn){var Xt=Nt.getAttribute("src");Sa(Xt),oi("image")}}else if(Nt.tagName.toUpperCase()==="A"){var en=Nt.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 yn=document.getElementById(en.replace("#",""));yn&&yn.scrollIntoView(!0)}}}var It=function(){var Nt,Xt=(Nt=ye.current)===null||Nt===void 0?void 0:Nt.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 yn=new G.a;yn.loadSource(en.src),yn.attachMedia(en)}}})};Object(d.useEffect)(function(){if(ye.current&&oa&&(oa.match(Ln)&&window.PR.prettyPrint()),ye.current)return ye.current.addEventListener("click",st),function(){ye.current.removeEventListener("click",st),D(),w()}},[oa,ye.current,st]);var At=function(Nt){if(!xe)return;Nt.target.nodeName==="IMG"?(mr.current.style.zIndex=1,mr.current.style.display="flex",mr.current.style.width=Nt.target.clientWidth+"px",mr.current.style.height=Nt.target.clientHeight+"px",mr.current.style.top=Nt.target.offsetTop+"px",mr.current.style.left=Nt.target.offsetLeft+"px",za.current.src=Nt.target.getAttribute("src")):mr.current.style.display="none"};return r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("div",{ref:ye,style:Object(y.a)({},Jn),className:"".concat(he||""," markdown-body ").concat(jr.a.mdBody),onMouseOver:At,dangerouslySetInnerHTML:{__html:oa}}),r.a.createElement("div",{ref:mr,className:jr.a.button},r.a.createElement(p.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,s){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,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return L.mode.CTR=function(){var p=L.lib.BlockCipherMode.extend(),A=p.Encryptor=p.extend({processBlock:function(b,y){var S=this._cipher,T=S.blockSize,h=this._iv,_=this._counter;h&&(_=this._counter=h.slice(0),this._iv=void 0);var d=_.slice(0);S.encryptBlock(d,0),_[T-1]=_[T-1]+1|0;for(var r=0;r<T;r++)b[y+r]^=d[r]}});return p.Decryptor=A,p}(),L.mode.CTR})},"9VGf":function(M,Y,s){"use strict";s.d(Y,"a",function(){return A});var L=s("cDcd"),p=s.n(L);function A(b,y){var S=Object(L.useRef)();Object(L.useEffect)(function(){S.current=b}),Object(L.useEffect)(function(){function T(){S.current()}if(y!==null){var h=setInterval(T,y);return function(){return clearInterval(h)}}},[y])}},"9ZNV":function(M,Y,s){"use strict";s.d(Y,"a",function(){return d});var L=s("0Owb"),p=s("+L6B"),A=s("2/Rp"),b=s("cDcd"),y=s.n(b),S=s("UUDw"),T=s.n(S),h=s("TSYQ"),_=s.n(h),d=function(c){var t=c.cancelText,a=t===void 0?"\u53D6\u6D88":t,n=c.okText,i=n===void 0?"\u786E\u5B9A":n,f=c.loading,l=f===void 0?!1:f,o=c.hasOkBtn,m=o===void 0?!0:o,w=c.okButtonProps,C=w===void 0?{}:w,v=c.onCancel,P=v===void 0?function(){}:v,R=c.onOk,E=R===void 0?function(){}:R,x=c.className,g=x===void 0?"":x;return y.a.createElement("div",{className:_()(T.a.buttonFixed,g)},y.a.createElement("div",{className:T.a.buttonWrap},y.a.createElement(A.a,{size:"large",className:"".concat(T.a.button," mr20"),onClick:P},a),m&&y.a.createElement(A.a,Object(L.a)({size:"large",type:"primary",className:"".concat(T.a.button," mr20"),loading:l,onClick:E},C),i)))}},"A/g1":function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoI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"},ALsQ:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return L.mode.CFB=function(){var p=L.lib.BlockCipherMode.extend();p.Encryptor=p.extend({processBlock:function(b,y){var S=this._cipher,T=S.blockSize;A.call(this,b,y,T,S),this._prevBlock=b.slice(y,y+T)}}),p.Decryptor=p.extend({processBlock:function(b,y){var S=this._cipher,T=S.blockSize,h=b.slice(y,y+T);A.call(this,b,y,T,S),this._prevBlock=h}});function A(b,y,S,T){var h,_=this._iv;_?(h=_.slice(0),this._iv=void 0):h=this._prevBlock,T.encryptBlock(h,0);for(var d=0;d<S;d++)b[y+d]^=h[d]}return p}(),L.mode.CFB})},B6bo:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___1czbK",flex_space_between:"flex_space_between___NcbCS",flex_box_vertical_center:"flex_box_vertical_center___3bgyw",flex_box_center_end:"flex_box_center_end___1RYM-",flex_box_column:"flex_box_column___siFqq",menu:"menu___3LJ87",warehouse:"warehouse___1AVuS",header:"header___2hqXC",title:"title___2N2dQ",content:"content___252cM",left:"left___DCxzF",right:"right___3XU0c",loading:"loading___393Js",empty:"empty___-D3br",tabs:"tabs___1B5_7",line:"line___1qrlH",footer:"footer___1MBb_",commit:"commit___aa_yX",blueLight:"blueLight___oW1lR",filePathWrp:"filePathWrp___sw_To",filePath:"filePath___2Xa_Q",bottom0:"bottom0___3zeb-"}},BMKw:function(M,Y,s){M.exports={wrap:"wrap___1gcMR",content:"content___31AN8",mainPathWrap:"mainPathWrap___1HrSg",colorBlue:"colorBlue___2eq2Y"}},BU3w:function(M,Y,s){"use strict";s.d(Y,"a",function(){return S});var L=s("MNnm"),p="rc-util-key";function A(T){if(T.attachTo)return T.attachTo;var h=document.querySelector("head");return h||document.body}function b(T){var h,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var d=document.createElement("style");if((h=_.csp)===null||h===void 0?void 0:h.nonce){var r;d.nonce=(r=_.csp)===null||r===void 0?void 0:r.nonce}d.innerHTML=T;var c=A(_),t=c.firstChild;return _.prepend&&c.prepend?c.prepend(d):_.prepend&&t?c.insertBefore(d,t):c.appendChild(d),d}var y=new Map;function S(T,h){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=A(_);if(!y.has(d)){var r=b("",_),c=r.parentNode;y.set(d,c),c.removeChild(r)}var t=Array.from(y.get(d).children).find(function(l){return l.tagName==="STYLE"&&l[p]===h});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!==T&&(t.innerHTML=T),t}var f=b(T,_);return f[p]=h,f}},Bbdw:function(M,Y,s){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,s){(function(L){L(s("VrN/"),s("osHv"))})(function(L){L.defineOption("autoCloseTags",!1,function(_,d,r){if(r!=L.Init&&r&&_.removeKeyMap("autoCloseTags"),!d)return;var c={name:"autoCloseTags"};(typeof d!="object"||d.whenClosing!==!1)&&(c["'/'"]=function(t){return S(t)}),(typeof d!="object"||d.whenOpening!==!1)&&(c["'>'"]=function(t){return b(t)}),_.addKeyMap(c)});var p=["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=[],c=_.getOption("autoCloseTags"),t=0;t<d.length;t++){if(!d[t].empty())return L.Pass;var a=d[t].head,n=_.getTokenAt(a),i=L.innerMode(_.getMode(),n.state),f=i.state,l=i.mode.xmlCurrentTag&&i.mode.xmlCurrentTag(f),o=l&&l.name;if(!o)return L.Pass;var m=i.mode.configuration=="html",w=typeof c=="object"&&c.dontCloseTags||m&&p,C=typeof c=="object"&&c.indentTags||m&&A;n.end>a.ch&&(o=o.slice(0,o.length-n.end+a.ch));var v=o.toLowerCase();if(!o||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||w&&T(w,v)>-1||h(_,i.mode.xmlCurrentContext&&i.mode.xmlCurrentContext(f)||[],o,a,!0))return L.Pass;var P=typeof c=="object"&&c.emptyTags;if(P&&T(P,o)>-1){r[t]={text:"/>",newPos:L.Pos(a.line,a.ch+2)};continue}var R=C&&T(C,v)>-1;r[t]={indent:R,text:">"+(R?`
`:"")+"</"+o+">",newPos:R?L.Pos(a.line+1,0):L.Pos(a.line,a.ch+1)}}for(var E=typeof c=="object"&&c.dontIndentOnAutoClose,t=d.length-1;t>=0;t--){var x=r[t];_.replaceRange(x.text,d[t].head,d[t].anchor,"+insert");var g=_.listSelections().slice(0);g[t]={head:x.newPos,anchor:x.newPos},_.setSelections(g),!E&&x.indent&&(_.indentLine(x.newPos.line,null,!0),_.indentLine(x.newPos.line+1,null,!0))}}function y(_,d){for(var r=_.listSelections(),c=[],t=d?"/":"</",a=_.getOption("autoCloseTags"),n=typeof a=="object"&&a.dontIndentOnSlash,i=0;i<r.length;i++){if(!r[i].empty())return L.Pass;var f=r[i].head,l=_.getTokenAt(f),o=L.innerMode(_.getMode(),l.state),m=o.state;if(d&&(l.type=="string"||l.string.charAt(0)!="<"||l.start!=f.ch-1))return L.Pass;var w,C=o.mode.name!="xml"&&_.getMode().name=="htmlmixed";if(C&&o.mode.name=="javascript")w=t+"script";else if(C&&o.mode.name=="css")w=t+"style";else{var v=o.mode.xmlCurrentContext&&o.mode.xmlCurrentContext(m);if(!v||v.length&&h(_,v,v[v.length-1],f))return L.Pass;w=t+v[v.length-1]}_.getLine(f.line).charAt(l.end)!=">"&&(w+=">"),c[i]=w}if(_.replaceSelections(c),r=_.listSelections(),!n)for(var i=0;i<r.length;i++)(i==r.length-1||r[i].head.line<r[i+1].head.line)&&_.indentLine(r[i].head.line)}function S(_){return _.getOption("disableInput")?L.Pass:y(_,!0)}L.commands.closeTag=function(_){return y(_)};function T(_,d){if(_.indexOf)return _.indexOf(d);for(var r=0,c=_.length;r<c;++r)if(_[r]==d)return r;return-1}function h(_,d,r,c,t){if(!L.scanForClosingTag)return!1;var a=Math.min(_.lastLine()+1,c.line+500),n=L.scanForClosingTag(_,c,null,a);if(!n||n.tag!=r)return!1;for(var i=t?1:0,f=d.length-1;f>=0&&d[f]==r;f--)++i;c=n.to;for(var f=1;f<i;f++){var l=L.scanForClosingTag(_,c,null,a);if(!l||l.tag!=r)return!1;c=l.to}return!0}})},BdwD:function(M,Y,s){"use strict";var L=s("+L6B"),p=s("2/Rp"),A=s("0Owb"),b=s("k1fw"),y=s("cDcd"),S=s.n(y),T=s("FOrL"),h=s.n(T),_=function(r){var c=r.buttonProps,t=c===void 0?{}:c,a=r.styles,n=a===void 0?{}:a,i=r.customText,f=r.ButtonText,l=r.ButtonClick,o=r.Buttonclass,m=r.ButtonTwo;return S.a.createElement("section",{className:"tc animated fadeIn",style:Object(b.a)(Object(b.a)({},{color:"#999",margin:"200px auto"}),n)},S.a.createElement("img",{src:h.a}),S.a.createElement("p",{className:"mt20 font14"},i||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),f&&S.a.createElement(p.a,Object(A.a)({className:o,onClick:l},t),f),m&&m)};Y.a=_},BjJ7:function(M,Y,s){"use strict";s.d(Y,"d",function(){return p}),s.d(Y,"c",function(){return A}),s.d(Y,"e",function(){return b}),s.d(Y,"b",function(){return y}),s.d(Y,"a",function(){return T});var L=s("m3rI");function p(h){var _=!0;if(h.length>0){for(var d=0;d<h.length;d++)if(h[d].compile_success==0||!h[d].compile_success){_=!1;break}}else _=!1;return _}function A(h){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",d=[],r=0;r<h.length;r++){var c=h[r],t=_?"".concat(_,"/").concat(c.name):"".concat(c.name);d.push({title:c.name,isLeaf:!(c.type==="tree"),key:t})}return d}function b(h,_,d){for(var r=0;r<h.length;r++){var c=h[r];if(c.key===_){c.children=d;break}c.children&&b(c.children,_,d)}return h}function y(h,_,d){var r;return function(){var c=this,t=arguments,a=function(){r=null,d||h.apply(c,t)},n=d&&!r;clearTimeout(r),r=setTimeout(a,_),n&&h.apply(c,t)}}var S=!0,T=L.a.API_SERVER},Bq7L:function(M,Y){M.exports="data:image/png;base64,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"},"C+DQ":function(M,Y,s){},"Cs+z":function(M,Y,s){M.exports=s.p+"static/jqr.b801d45b.png"},"Ct/S":function(M,Y,s){M.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},"DDK+":function(M,Y,s){"use strict";var L=s("+L6B"),p=s("2/Rp"),A=s("y8nQ"),b=s("Vl3Y"),y=s("cWXX"),S=s("/ezw"),T=s("rAM+"),h=s("9og8"),_=s("tJVT"),d=s("7Kak"),r=s("9yH6"),c=s("WmNS"),t=s.n(c),a=s("cDcd"),n=s.n(a),i=s("ErOA"),f=s("2qtc"),l=s("kLXV"),o=s("k1fw"),m=s("Se0u"),w=s("pUFm"),C=s.n(w);function v(){return Object(i.c)("teach_groups.json")}function P(q){return Object(i.f)("teach_groups.json",q)}function R(q,me){return Object(i.g)("teach_groups/".concat(q,".json"),me)}function E(q){return Object(i.f)("teach_group_members.json",q)}function x(q){return Object(i.b)("teach_group_members/".concat(q,".json"))}function g(q,me){return Object(i.b)("teach_groups/".concat(q,"/del_member.json?member_id=").concat(me))}function O(q){return Object(i.b)("teach_groups/".concat(q,".json"))}var I=s("5NDa"),D=s("5rEg"),N=function(q){var me=q.callback,re=q.visible,ie=q.onCancel,Oe=q.id,le=q.name;function $(Se){me(Se)}var J=b.a.useForm(),te=Object(_.a)(J,1),Ae=te[0];return Object(a.useEffect)(function(){Ae.setFieldsValue({name:le})},[le]),n.a.createElement(l.a,{centered:!0,title:Oe?"\u6539\u540D":"\u65B0\u5EFA",visible:re,onCancel:ie,footer:null},n.a.createElement(b.a,{layout:"vertical",form:Ae,initialValues:{name:le},onFinish:$},n.a.createElement(b.a.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},n.a.createElement(D.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),n.a.createElement(b.a.Item,null,n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(p.a,{type:"ghost",onClick:ie,style:{marginRight:20}}," \u53D6\u6D88 ")," ",n.a.createElement(p.a,{type:"primary",htmlType:"submit"}," \u786E\u5B9A ")))))},V=s("Fxgj"),F=s("3ouR"),W=s("xGfz"),K=50,B=function(q){var me=q.data,re=q.isAdminOrTeacher,ie=q.onDelGroup,Oe=q.onChangeGroupName,le=q.onPlusMember,$=q.onDelMember,J=q.onExitGroup,te=Object(a.useState)(0),Ae=Object(_.a)(te,2),Se=Ae[0],ke=Ae[1],rt=Object(a.useState)(0),ot=Object(_.a)(rt,2),gt=ot[0],Et=ot[1];function Ct(Ue){var ft=parseInt(Ue.target.id,10);l.a.confirm({title:"\u89E3\u6563\u63D0\u793A",content:"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F",onOk:function(){ie(ft)}})}function wt(Ue){var ft=parseInt(Ue.target.id,10);l.a.confirm({title:"\u9000\u51FA\u63D0\u793A",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:function(){J(ft)}})}function Qe(Ue,ft){l.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){$(Ue,ft)}})}return n.a.createElement("ul",{className:"teaching-list"},me.map(function(Ue,ft){return n.a.createElement("li",{key:Ue.id,onClick:function(){return ke(ft)}},n.a.createElement("div",{className:"item-group"},n.a.createElement("span",null,Ue.name," \xA0 ",ft!==Se&&n.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),n.a.createElement("div",{className:"action-group"},re?n.a.createElement("a",{onClick:function(){Oe(Ue)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,Ue.is_creat?n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:Ct},"\u89E3\u6563"):n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:wt},"\u9000\u51FA"))),ft===Se?n.a.createElement("ul",{className:"info"},Ue.memers.map(function(jt){return n.a.createElement("li",{key:jt.id||jt.name,onClick:function(){Et(jt.id)},className:gt===jt.id?"active":""},n.a.createElement("div",null,jt.name),Ue.is_creat&&jt.id&&gt===jt.id?n.a.createElement("a",{className:"btn-del",onClick:function(_t){_t.preventDefault(),_t.stopPropagation(),Qe(Ue.id,gt)}},n.a.createElement(F.a,null)):null)}),re?n.a.createElement("li",null,n.a.createElement(p.a,{type:"link",disabled:Ue.memers.length>=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=s("9kvl"),G=s("ju9d");function ne(q){var me=q.children;return n.a.createElement("div",{className:"no-data"},n.a.createElement("img",{src:C.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 Ee(q,me){switch(me.type){case de.INITDATA:return Object(o.a)(Object(o.a)({},q),me.payload);case de.SHOWLOADING:return Object(o.a)(Object(o.a)({},q),{},{loading:me.payload});case de.SETINDEX:return Object(o.a)(Object(o.a)({},q),{},{index:me.payload});case de.SHOWFORMPANEL:return Object(o.a)(Object(o.a)({},q),me.payload);case de.SHOWMEMBERPANEL:return Object(o.a)(Object(o.a)({},q),me.payload);case de.SELECTGROUP:return Object(o.a)(Object(o.a)({},q),{},{selectedGroup:me.payload,showFormPanel:!0});default:throw new Error}}function we(q){var me,re=q.user,ie=Object(a.useReducer)(Ee,fe),Oe=Object(_.a)(ie,2),le=Oe[0],$=Oe[1],J=le.data,te=le.index,Ae=le.loading,Se=le.showFormPanel,ke=le.selectedGroup,rt=le.showMemberPanel,ot=(me=re.userInfo)===null||me===void 0?void 0:me.role,gt=Object(a.useMemo)(function(){var Pt=[],Gt=[],dn=Object(T.a)(J),Tt;try{for(dn.s();!(Tt=dn.n()).done;){var ut=Tt.value;ut.is_creat?Pt.push(ut):Gt.push(ut)}}catch(je){dn.e(je)}finally{dn.f()}return[Pt,Gt]},[J]);Object(a.useEffect)(function(){ot===15&&$({type:de.SETINDEX,payload:1})},[ot]);function Et(){return Ct.apply(this,arguments)}function Ct(){return Ct=Object(h.a)(t.a.mark(function Pt(){var Gt;return t.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,v();case 2:Gt=Tt.sent,$({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Gt.groups}});case 4:case"end":return Tt.stop()}},Pt)})),Ct.apply(this,arguments)}Object(a.useEffect)(function(){Et()},[]);function wt(Pt){return Qe.apply(this,arguments)}function Qe(){return Qe=Object(h.a)(t.a.mark(function Pt(Gt){return t.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:if(!ke.id){Tt.next=5;break}return Tt.next=3,R(ke.id,Gt);case 3:Tt.next=7;break;case 5:return Tt.next=7,P(Gt);case 7:Et();case 8:case"end":return Tt.stop()}},Pt)})),Qe.apply(this,arguments)}function Ue(){$({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ft(Pt){$({type:de.SELECTGROUP,payload:Pt})}function jt(){$({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function ht(){$({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function _t(Pt){$({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Pt}})}function Ye(Pt,Gt){return We.apply(this,arguments)}function We(){return We=Object(h.a)(t.a.mark(function Pt(Gt,dn){return t.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.next=2,g(Gt,dn);case 2:Et();case 3:case"end":return ut.stop()}},Pt)})),We.apply(this,arguments)}function Xe(Pt){return Te.apply(this,arguments)}function Te(){return Te=Object(h.a)(t.a.mark(function Pt(Gt){return t.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,O(Gt);case 2:Et();case 3:case"end":return Tt.stop()}},Pt)})),Te.apply(this,arguments)}function Me(Pt){return Ve.apply(this,arguments)}function Ve(){return Ve=Object(h.a)(t.a.mark(function Pt(Gt){return t.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,x(Gt);case 2:Et();case 3:case"end":return Tt.stop()}},Pt)})),Ve.apply(this,arguments)}function Ge(Pt){$({type:de.SETINDEX,payload:parseInt(Pt.target.id,10)})}function Ze(Pt,Gt){return mt.apply(this,arguments)}function mt(){return mt=Object(h.a)(t.a.mark(function Pt(Gt,dn){return t.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ht(),ut.next=3,E({user_ids:Gt,group_id:dn});case 3:Et();case 4:case"end":return ut.stop()}},Pt)})),mt.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(p.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:Ge},"\u6211\u521B\u5EFA\u7684")),n.a.createElement("li",{className:te===1?"active":""},n.a.createElement("a",{id:"1",onClick:Ge},"\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:Me,onPlusMember:_t,onDelMember:Ye,onDelGroup:Xe,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:wt,visible:Se,onCancel:jt,id:ke.id,name:ke.name}),n.a.createElement(l.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:rt,onCancel:ht,footer:null,width:1100,bodyStyle:{minHeight:200}},n.a.createElement(G.a,{container_id:ke.id,container_type:4,onSelect:Ze,onCancel:ht})))}var ce=Object(k.a)(function(q){var me=q.user;return{user:me}})(we),be=s("SLjR"),ve=s("55Ip"),ue=r.a.Group,se=Y.a=function(q){var me=q.onSelect,re=q.onCancel,ie=Object(a.useState)([]),Oe=Object(_.a)(ie,2),le=Oe[0],$=Oe[1],J=Object(a.useState)(!0),te=Object(_.a)(J,2),Ae=te[0],Se=te[1];Object(a.useEffect)(function(){function ot(){return gt.apply(this,arguments)}function gt(){return gt=Object(h.a)(t.a.mark(function Et(){var Ct,wt;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:Ct=Ue.sent,wt=Ct.groups,$(wt),Se(!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(T.a)(le),Ct;try{for(Et.s();!(Ct=Et.n()).done;){var wt=Ct.value;wt.is_creat?ot.push(wt):gt.push(wt)}}catch(Qe){Et.e(Qe)}finally{Et.f()}return[ot,gt]},[le]);function rt(ot){me(ot)}return n.a.createElement(b.a,{className:"select-teach-group",onFinish:rt},Ae?n.a.createElement(S.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(p.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),n.a.createElement(p.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(M,Y,s){(function(L,p){M.exports=p()})(this,function(){"use strict";function L(Ye,We){for(var Xe=0;Xe<We.length;Xe++){var Te=We[Xe];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(Ye,Te.key,Te)}}function p(Ye,We,Xe){return We&&L(Ye.prototype,We),Xe&&L(Ye,Xe),Ye}function A(Ye,We){if(!Ye)return;if(typeof Ye=="string")return b(Ye,We);var Xe=Object.prototype.toString.call(Ye).slice(8,-1);if(Xe==="Object"&&Ye.constructor&&(Xe=Ye.constructor.name),Xe==="Map"||Xe==="Set")return Array.from(Ye);if(Xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xe))return b(Ye,We)}function b(Ye,We){(We==null||We>Ye.length)&&(We=Ye.length);for(var Xe=0,Te=new Array(We);Xe<We;Xe++)Te[Xe]=Ye[Xe];return Te}function y(Ye,We){var Xe;if(typeof Symbol=="undefined"||Ye[Symbol.iterator]==null){if(Array.isArray(Ye)||(Xe=A(Ye))||We&&Ye&&typeof Ye.length=="number"){Xe&&(Ye=Xe);var Te=0;return function(){return Te>=Ye.length?{done:!0}:{done:!1,value:Ye[Te++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Xe=Ye[Symbol.iterator](),Xe.next.bind(Xe)}function S(Ye,We){return We={exports:{}},Ye(We,We.exports),We.exports}var T=S(function(Ye){function We(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Xe(Te){Ye.exports.defaults=Te}Ye.exports={defaults:We(),getDefaults:We,changeDefaults:Xe}}),h=T.defaults,_=T.getDefaults,d=T.changeDefaults,r=/[&<>"']/,c=/[&<>"']/g,t=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=function(We){return n[We]};function f(Ye,We){if(We){if(r.test(Ye))return Ye.replace(c,i)}else if(t.test(Ye))return Ye.replace(a,i);return Ye}var l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function o(Ye){return Ye.replace(l,function(We,Xe){return Xe=Xe.toLowerCase(),Xe==="colon"?":":Xe.charAt(0)==="#"?Xe.charAt(1)==="x"?String.fromCharCode(parseInt(Xe.substring(2),16)):String.fromCharCode(+Xe.substring(1)):""})}var m=/(^|[^\[])\^/g;function w(Ye,We){Ye=Ye.source||Ye,We=We||"";var Xe={replace:function(Me,Ve){return Ve=Ve.source||Ve,Ve=Ve.replace(m,"$1"),Ye=Ye.replace(Me,Ve),Xe},getRegex:function(){return new RegExp(Ye,We)}};return Xe}var C=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Ye,We,Xe){if(Ye){var Te;try{Te=decodeURIComponent(o(Xe)).replace(C,"").toLowerCase()}catch(Me){return null}if(Te.indexOf("javascript:")===0||Te.indexOf("vbscript:")===0||Te.indexOf("data:")===0)return null}We&&!v.test(Xe)&&(Xe=O(We,Xe));try{Xe=encodeURI(Xe).replace(/%25/g,"%")}catch(Me){return null}return Xe}var R={},E=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function O(Ye,We){R[" "+Ye]||(E.test(Ye)?R[" "+Ye]=Ye+"/":R[" "+Ye]=V(Ye,"/",!0)),Ye=R[" "+Ye];var Xe=Ye.indexOf(":")===-1;return We.substring(0,2)==="//"?Xe?We:Ye.replace(x,"$1")+We:We.charAt(0)==="/"?Xe?We:Ye.replace(g,"$1")+We:Ye+We}var I={exec:function(){}};function D(Ye){for(var We=1,Xe,Te;We<arguments.length;We++){Xe=arguments[We];for(Te in Xe)Object.prototype.hasOwnProperty.call(Xe,Te)&&(Ye[Te]=Xe[Te])}return Ye}function N(Ye,We){var Xe=Ye.replace(/\|/g,function(Ve,Ge,Ze){for(var mt=!1,Pt=Ge;--Pt>=0&&Ze[Pt]==="\\";)mt=!mt;return mt?"|":" |"}),Te=Xe.split(/ \|/),Me=0;if(Te.length>We)Te.splice(We);else for(;Te.length<We;)Te.push("");for(;Me<Te.length;Me++)Te[Me]=Te[Me].trim().replace(/\\\|/g,"|");return Te}function V(Ye,We,Xe){var Te=Ye.length;if(Te===0)return"";for(var Me=0;Me<Te;){var Ve=Ye.charAt(Te-Me-1);if(Ve===We&&!Xe)Me++;else if(Ve!==We&&Xe)Me++;else break}return Ye.substr(0,Te-Me)}function F(Ye,We){if(Ye.indexOf(We[1])===-1)return-1;for(var Xe=Ye.length,Te=0,Me=0;Me<Xe;Me++)if(Ye[Me]==="\\")Me++;else if(Ye[Me]===We[0])Te++;else if(Ye[Me]===We[1]&&(Te--,Te<0))return Me;return-1}function W(Ye){Ye&&Ye.sanitize&&!Ye.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var K={escape:f,unescape:o,edit:w,cleanUrl:P,resolveUrl:O,noopTest:I,merge:D,splitCells:N,rtrim:V,findClosingBracket:F,checkSanitizeDeprecation:W},B=T.defaults,k=K.rtrim,G=K.splitCells,ne=K.escape,fe=K.findClosingBracket;function de(Ye,We,Xe){var Te=We.href,Me=We.title?ne(We.title):null,Ve=Ye[1].replace(/\\([\[\]])/g,"$1");return Ye[0].charAt(0)!=="!"?{type:"link",raw:Xe,href:Te,title:Me,text:Ve}:{type:"image",raw:Xe,href:Te,title:Me,text:ne(Ve)}}function Ee(Ye,We){var Xe=Ye.match(/^(\s+)(?:```)/);if(Xe===null)return We;var Te=Xe[1];return We.split(`
`).map(function(Me){var Ve=Me.match(/^\s+/);if(Ve===null)return Me;var Ge=Ve[0];return Ge.length>=Te.length?Me.slice(Te.length):Me}).join(`
`)}var we=function(){function Ye(Xe){this.options=Xe||B}var We=Ye.prototype;return We.space=function(Te){var Me=this.rules.block.newline.exec(Te);if(Me)return Me[0].length>1?{type:"space",raw:Me[0]}:{raw:`
`}},We.code=function(Te,Me){var Ve=this.rules.block.code.exec(Te);if(Ve){var Ge=Me[Me.length-1];if(Ge&&Ge.type==="paragraph")return{raw:Ve[0],text:Ve[0].trimRight()};var Ze=Ve[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ve[0],codeBlockStyle:"indented",text:this.options.pedantic?Ze:k(Ze,`
`)}}},We.fences=function(Te){var Me=this.rules.block.fences.exec(Te);if(Me){var Ve=Me[0],Ge=Ee(Ve,Me[3]||"");return{type:"code",raw:Ve,lang:Me[2]?Me[2].trim():Me[2],text:Ge}}},We.heading=function(Te){var Me=this.rules.block.heading.exec(Te);if(Me)return{type:"heading",raw:Me[0],depth:Me[1].length,text:Me[2]}},We.nptable=function(Te){var Me=this.rules.block.nptable.exec(Te);if(Me){var Ve={type:"table",header:G(Me[1].replace(/^ *| *\| *$/g,"")),align:Me[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Me[3]?Me[3].replace(/\n$/,"").split(`
`):[],raw:Me[0]};if(Ve.header.length===Ve.align.length){var Ge=Ve.align.length,Ze;for(Ze=0;Ze<Ge;Ze++)/^ *-+: *$/.test(Ve.align[Ze])?Ve.align[Ze]="right":/^ *:-+: *$/.test(Ve.align[Ze])?Ve.align[Ze]="center":/^ *:-+ *$/.test(Ve.align[Ze])?Ve.align[Ze]="left":Ve.align[Ze]=null;for(Ge=Ve.cells.length,Ze=0;Ze<Ge;Ze++)Ve.cells[Ze]=G(Ve.cells[Ze],Ve.header.length);return Ve}}},We.hr=function(Te){var Me=this.rules.block.hr.exec(Te);if(Me)return{type:"hr",raw:Me[0]}},We.blockquote=function(Te){var Me=this.rules.block.blockquote.exec(Te);if(Me){var Ve=Me[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Me[0],text:Ve}}},We.list=function(Te){var Me=this.rules.block.list.exec(Te);if(Me){for(var Ve=Me[0],Ge=Me[2],Ze=Ge.length>1,mt=Ge[Ge.length-1]===")",Pt={type:"list",raw:Ve,ordered:Ze,start:Ze?+Ge.slice(0,-1):"",loose:!1,items:[]},Gt=Me[0].match(this.rules.block.item),dn=!1,Tt,ut,je,tt,nt,De,Fe,bt=Gt.length,dt=0;dt<bt;dt++)Tt=Gt[dt],Ve=Tt,ut=Tt.length,Tt=Tt.replace(/^ *([*+-]|\d+[.)]) */,""),~Tt.indexOf(`
`)&&(ut-=Tt.length,Tt=this.options.pedantic?Tt.replace(/^ {1,4}/gm,""):Tt.replace(new RegExp("^ {1,"+ut+"}","gm"),"")),dt!==bt-1&&(je=this.rules.block.bullet.exec(Gt[dt+1])[0],(Ze?je.length===1||!mt&&je[je.length-1]===")":je.length>1||this.options.smartLists&&je!==Ge)&&(tt=Gt.slice(dt+1).join(`
`),Pt.raw=Pt.raw.substring(0,Pt.raw.length-tt.length),dt=bt-1)),nt=dn||/\n\n(?!\s*$)/.test(Tt),dt!==bt-1&&(dn=Tt.charAt(Tt.length-1)===`
`,nt||(nt=dn)),nt&&(Pt.loose=!0),De=/^\[[ xX]\] /.test(Tt),Fe=void 0,De&&(Fe=Tt[1]!==" ",Tt=Tt.replace(/^\[[ xX]\] +/,"")),Pt.items.push({type:"list_item",raw:Ve,task:De,checked:Fe,loose:nt,text:Tt});return Pt}},We.html=function(Te){var Me=this.rules.block.html.exec(Te);if(Me)return{type:this.options.sanitize?"paragraph":"html",raw:Me[0],pre:!this.options.sanitizer&&(Me[1]==="pre"||Me[1]==="script"||Me[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Me[0]):ne(Me[0]):Me[0]}},We.def=function(Te){var Me=this.rules.block.def.exec(Te);if(Me){Me[3]&&(Me[3]=Me[3].substring(1,Me[3].length-1));var Ve=Me[1].toLowerCase().replace(/\s+/g," ");return{tag:Ve,raw:Me[0],href:Me[2],title:Me[3]}}},We.table=function(Te){var Me=this.rules.block.table.exec(Te);if(Me){var Ve={type:"table",header:G(Me[1].replace(/^ *| *\| *$/g,"")),align:Me[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Me[3]?Me[3].replace(/\n$/,"").split(`
`):[]};if(Ve.header.length===Ve.align.length){Ve.raw=Me[0];var Ge=Ve.align.length,Ze;for(Ze=0;Ze<Ge;Ze++)/^ *-+: *$/.test(Ve.align[Ze])?Ve.align[Ze]="right":/^ *:-+: *$/.test(Ve.align[Ze])?Ve.align[Ze]="center":/^ *:-+ *$/.test(Ve.align[Ze])?Ve.align[Ze]="left":Ve.align[Ze]=null;for(Ge=Ve.cells.length,Ze=0;Ze<Ge;Ze++)Ve.cells[Ze]=G(Ve.cells[Ze].replace(/^ *\| *| *\| *$/g,""),Ve.header.length);return Ve}}},We.lheading=function(Te){var Me=this.rules.block.lheading.exec(Te);if(Me)return{type:"heading",raw:Me[0],depth:Me[2].charAt(0)==="="?1:2,text:Me[1]}},We.paragraph=function(Te){var Me=this.rules.block.paragraph.exec(Te);if(Me)return{type:"paragraph",raw:Me[0],text:Me[1].charAt(Me[1].length-1)===`
`?Me[1].slice(0,-1):Me[1]}},We.text=function(Te,Me){var Ve=this.rules.block.text.exec(Te);if(Ve){var Ge=Me[Me.length-1];return Ge&&Ge.type==="text"?{raw:Ve[0],text:Ve[0]}:{type:"text",raw:Ve[0],text:Ve[0]}}},We.escape=function(Te){var Me=this.rules.inline.escape.exec(Te);if(Me)return{type:"escape",raw:Me[0],text:ne(Me[1])}},We.tag=function(Te,Me,Ve){var Ge=this.rules.inline.tag.exec(Te);if(Ge)return!Me&&/^<a /i.test(Ge[0])?Me=!0:Me&&/^<\/a>/i.test(Ge[0])&&(Me=!1),!Ve&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ge[0])?Ve=!0:Ve&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ge[0])&&(Ve=!1),{type:this.options.sanitize?"text":"html",raw:Ge[0],inLink:Me,inRawBlock:Ve,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ge[0]):ne(Ge[0]):Ge[0]}},We.link=function(Te){var Me=this.rules.inline.link.exec(Te);if(Me){var Ve=fe(Me[2],"()");if(Ve>-1){var Ge=Me[0].indexOf("!")===0?5:4,Ze=Ge+Me[1].length+Ve;Me[2]=Me[2].substring(0,Ve),Me[0]=Me[0].substring(0,Ze).trim(),Me[3]=""}var mt=Me[2],Pt="";if(this.options.pedantic){var Gt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(mt);Gt?(mt=Gt[1],Pt=Gt[3]):Pt=""}else Pt=Me[3]?Me[3].slice(1,-1):"";mt=mt.trim().replace(/^<([\s\S]*)>$/,"$1");var dn=de(Me,{href:mt&&mt.replace(this.rules.inline._escapes,"$1"),title:Pt&&Pt.replace(this.rules.inline._escapes,"$1")},Me[0]);return dn}},We.reflink=function(Te,Me){var Ve;if((Ve=this.rules.inline.reflink.exec(Te))||(Ve=this.rules.inline.nolink.exec(Te))){var Ge=(Ve[2]||Ve[1]).replace(/\s+/g," ");if(Ge=Me[Ge.toLowerCase()],!Ge||!Ge.href){var Ze=Ve[0].charAt(0);return{type:"text",raw:Ze,text:Ze}}var mt=de(Ve,Ge,Ve[0]);return mt}},We.strong=function(Te,Me,Ve){Ve===void 0&&(Ve="");var Ge=this.rules.inline.strong.start.exec(Te);if(Ge&&(!Ge[1]||Ge[1]&&(Ve===""||this.rules.inline.punctuation.exec(Ve)))){Me=Me.slice(-1*Te.length);var Ze=Ge[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ze.lastIndex=0;for(var mt;(Ge=Ze.exec(Me))!=null;)if(mt=this.rules.inline.strong.middle.exec(Me.slice(0,Ge.index+3)),mt)return{type:"strong",raw:Te.slice(0,mt[0].length),text:Te.slice(2,mt[0].length-2)}}},We.em=function(Te,Me,Ve){Ve===void 0&&(Ve="");var Ge=this.rules.inline.em.start.exec(Te);if(Ge&&(!Ge[1]||Ge[1]&&(Ve===""||this.rules.inline.punctuation.exec(Ve)))){Me=Me.slice(-1*Te.length);var Ze=Ge[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ze.lastIndex=0;for(var mt;(Ge=Ze.exec(Me))!=null;)if(mt=this.rules.inline.em.middle.exec(Me.slice(0,Ge.index+2)),mt)return{type:"em",raw:Te.slice(0,mt[0].length),text:Te.slice(1,mt[0].length-1)}}},We.codespan=function(Te){var Me=this.rules.inline.code.exec(Te);if(Me){var Ve=Me[2].replace(/\n/g," "),Ge=/[^ ]/.test(Ve),Ze=Ve.startsWith(" ")&&Ve.endsWith(" ");return Ge&&Ze&&(Ve=Ve.substring(1,Ve.length-1)),Ve=ne(Ve,!0),{type:"codespan",raw:Me[0],text:Ve}}},We.br=function(Te){var Me=this.rules.inline.br.exec(Te);if(Me)return{type:"br",raw:Me[0]}},We.del=function(Te){var Me=this.rules.inline.del.exec(Te);if(Me)return{type:"del",raw:Me[0],text:Me[1]}},We.autolink=function(Te,Me){var Ve=this.rules.inline.autolink.exec(Te);if(Ve){var Ge,Ze;return Ve[2]==="@"?(Ge=ne(this.options.mangle?Me(Ve[1]):Ve[1]),Ze="mailto:"+Ge):(Ge=ne(Ve[1]),Ze=Ge),{type:"link",raw:Ve[0],text:Ge,href:Ze,tokens:[{type:"text",raw:Ge,text:Ge}]}}},We.url=function(Te,Me){var Ve;if(Ve=this.rules.inline.url.exec(Te)){var Ge,Ze;if(Ve[2]==="@")Ge=ne(this.options.mangle?Me(Ve[0]):Ve[0]),Ze="mailto:"+Ge;else{var mt;do mt=Ve[0],Ve[0]=this.rules.inline._backpedal.exec(Ve[0])[0];while(mt!==Ve[0]);Ge=ne(Ve[0]),Ve[1]==="www."?Ze="http://"+Ge:Ze=Ge}return{type:"link",raw:Ve[0],text:Ge,href:Ze,tokens:[{type:"text",raw:Ge,text:Ge}]}}},We.inlineText=function(Te,Me,Ve){var Ge=this.rules.inline.text.exec(Te);if(Ge){var Ze;return Me?Ze=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ge[0]):ne(Ge[0]):Ge[0]:Ze=ne(this.options.smartypants?Ve(Ge[0]):Ge[0]),{type:"text",raw:Ge[0],text:Ze}}},Ye}(),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*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\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=/<!--(?!-?>)[\s\S]*?-->/,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*$)|<tag(?:"[^"]*"|'[^']*'|\\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]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};se._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",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]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),se.gfm.url=be(se.gfm.url,"i").replace("email",se.gfm._extended_email).getRegex(),se.breaks=ve({},se.gfm,{br:be(se.br).replace("{2,}","*").getRegex(),text:be(se.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var q={block:ue,inline:se},me=T.defaults,re=q.block,ie=q.inline;function Oe(Ye){return Ye.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function le(Ye){var We="",Xe,Te,Me=Ye.length;for(Xe=0;Xe<Me;Xe++)Te=Ye.charCodeAt(Xe),Math.random()>.5&&(Te="x"+Te.toString(16)),We+="&#"+Te+";";return We}var $=function(){function Ye(Xe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Xe||me,this.options.tokenizer=this.options.tokenizer||new we,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Te={block:re.normal,inline:ie.normal};this.options.pedantic?(Te.block=re.pedantic,Te.inline=ie.pedantic):this.options.gfm&&(Te.block=re.gfm,this.options.breaks?Te.inline=ie.breaks:Te.inline=ie.gfm),this.tokenizer.rules=Te}Ye.lex=function(Te,Me){var Ve=new Ye(Me);return Ve.lex(Te)};var We=Ye.prototype;return We.lex=function(Te){return Te=Te.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Te,this.tokens,!0),this.inline(this.tokens),this.tokens},We.blockTokens=function(Te,Me,Ve){Me===void 0&&(Me=[]),Ve===void 0&&(Ve=!0),Te=Te.replace(/^ +$/gm,"");for(var Ge,Ze,mt,Pt;Te;){if(Ge=this.tokenizer.space(Te)){Te=Te.substring(Ge.raw.length),Ge.type&&Me.push(Ge);continue}if(Ge=this.tokenizer.code(Te,Me)){Te=Te.substring(Ge.raw.length),Ge.type?Me.push(Ge):(Pt=Me[Me.length-1],Pt.raw+=`
`+Ge.raw,Pt.text+=`
`+Ge.text);continue}if(Ge=this.tokenizer.fences(Te)){Te=Te.substring(Ge.raw.length),Me.push(Ge);continue}if(Ge=this.tokenizer.heading(Te)){Te=Te.substring(Ge.raw.length),Me.push(Ge);continue}if(Ge=this.tokenizer.nptable(Te)){Te=Te.substring(Ge.raw.length),Me.push(Ge);continue}if(Ge=this.tokenizer.hr(Te)){Te=Te.substring(Ge.raw.length),Me.push(Ge);continue}if(Ge=this.tokenizer.blockquote(Te)){Te=Te.substring(Ge.raw.length),Ge.tokens=this.blockTokens(Ge.text,[],Ve),Me.push(Ge);continue}if(Ge=this.tokenizer.list(Te)){for(Te=Te.substring(Ge.raw.length),mt=Ge.items.length,Ze=0;Ze<mt;Ze++)Ge.items[Ze].tokens=this.blockTokens(Ge.items[Ze].text,[],!1);Me.push(Ge);continue}if(Ge=this.tokenizer.html(Te)){Te=Te.substring(Ge.raw.length),Me.push(Ge);continue}if(Ve&&(Ge=this.tokenizer.def(Te))){Te=Te.substring(Ge.raw.length),this.tokens.links[Ge.tag]||(this.tokens.links[Ge.tag]={href:Ge.href,title:Ge.title});continue}if(Ge=this.tokenizer.table(Te)){Te=Te.substring(Ge.raw.length),Me.push(Ge);continue}if(Ge=this.tokenizer.lheading(Te)){Te=Te.substring(Ge.raw.length),Me.push(Ge);continue}if(Ve&&(Ge=this.tokenizer.paragraph(Te))){Te=Te.substring(Ge.raw.length),Me.push(Ge);continue}if(Ge=this.tokenizer.text(Te,Me)){Te=Te.substring(Ge.raw.length),Ge.type?Me.push(Ge):(Pt=Me[Me.length-1],Pt.raw+=`
`+Ge.raw,Pt.text+=`
`+Ge.text);continue}if(Te){var Gt="Infinite loop on byte: "+Te.charCodeAt(0);if(this.options.silent){console.error(Gt);break}else throw new Error(Gt)}}return Me},We.inline=function(Te){var Me,Ve,Ge,Ze,mt,Pt,Gt=Te.length;for(Me=0;Me<Gt;Me++){Pt=Te[Me];switch(Pt.type){case"paragraph":case"text":case"heading":{Pt.tokens=[],this.inlineTokens(Pt.text,Pt.tokens);break}case"table":{for(Pt.tokens={header:[],cells:[]},Ze=Pt.header.length,Ve=0;Ve<Ze;Ve++)Pt.tokens.header[Ve]=[],this.inlineTokens(Pt.header[Ve],Pt.tokens.header[Ve]);for(Ze=Pt.cells.length,Ve=0;Ve<Ze;Ve++)for(mt=Pt.cells[Ve],Pt.tokens.cells[Ve]=[],Ge=0;Ge<mt.length;Ge++)Pt.tokens.cells[Ve][Ge]=[],this.inlineTokens(mt[Ge],Pt.tokens.cells[Ve][Ge]);break}case"blockquote":{this.inline(Pt.tokens);break}case"list":{for(Ze=Pt.items.length,Ve=0;Ve<Ze;Ve++)this.inline(Pt.items[Ve].tokens);break}}}return Te},We.inlineTokens=function(Te,Me,Ve,Ge,Ze){Me===void 0&&(Me=[]),Ve===void 0&&(Ve=!1),Ge===void 0&&(Ge=!1),Ze===void 0&&(Ze="");var mt,Pt=Te,Gt;if(this.tokens.links){var dn=Object.keys(this.tokens.links);if(dn.length>0)for(;(Gt=this.tokenizer.rules.inline.reflinkSearch.exec(Pt))!=null;)dn.includes(Gt[0].slice(Gt[0].lastIndexOf("[")+1,-1))&&(Pt=Pt.slice(0,Gt.index)+"["+"a".repeat(Gt[0].length-2)+"]"+Pt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Gt=this.tokenizer.rules.inline.blockSkip.exec(Pt))!=null;)Pt=Pt.slice(0,Gt.index)+"["+"a".repeat(Gt[0].length-2)+"]"+Pt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Te;){if(mt=this.tokenizer.escape(Te)){Te=Te.substring(mt.raw.length),Me.push(mt);continue}if(mt=this.tokenizer.tag(Te,Ve,Ge)){Te=Te.substring(mt.raw.length),Ve=mt.inLink,Ge=mt.inRawBlock,Me.push(mt);continue}if(mt=this.tokenizer.link(Te)){Te=Te.substring(mt.raw.length),mt.type==="link"&&(mt.tokens=this.inlineTokens(mt.text,[],!0,Ge)),Me.push(mt);continue}if(mt=this.tokenizer.reflink(Te,this.tokens.links)){Te=Te.substring(mt.raw.length),mt.type==="link"&&(mt.tokens=this.inlineTokens(mt.text,[],!0,Ge)),Me.push(mt);continue}if(mt=this.tokenizer.strong(Te,Pt,Ze)){Te=Te.substring(mt.raw.length),mt.tokens=this.inlineTokens(mt.text,[],Ve,Ge),Me.push(mt);continue}if(mt=this.tokenizer.em(Te,Pt,Ze)){Te=Te.substring(mt.raw.length),mt.tokens=this.inlineTokens(mt.text,[],Ve,Ge),Me.push(mt);continue}if(mt=this.tokenizer.codespan(Te)){Te=Te.substring(mt.raw.length),Me.push(mt);continue}if(mt=this.tokenizer.br(Te)){Te=Te.substring(mt.raw.length),Me.push(mt);continue}if(mt=this.tokenizer.del(Te)){Te=Te.substring(mt.raw.length),mt.tokens=this.inlineTokens(mt.text,[],Ve,Ge),Me.push(mt);continue}if(mt=this.tokenizer.autolink(Te,le)){Te=Te.substring(mt.raw.length),Me.push(mt);continue}if(!Ve&&(mt=this.tokenizer.url(Te,le))){Te=Te.substring(mt.raw.length),Me.push(mt);continue}if(mt=this.tokenizer.inlineText(Te,Ge,Oe)){Te=Te.substring(mt.raw.length),Ze=mt.raw.slice(-1),Me.push(mt);continue}if(Te){var Tt="Infinite loop on byte: "+Te.charCodeAt(0);if(this.options.silent){console.error(Tt);break}else throw new Error(Tt)}}return Me},p(Ye,null,[{key:"rules",get:function(){return{block:re,inline:ie}}}]),Ye}(),J=T.defaults,te=K.cleanUrl,Ae=K.escape,Se=function(){function Ye(Xe){this.options=Xe||J}var We=Ye.prototype;return We.code=function(Te,Me,Ve){var Ge=(Me||"").match(/\S*/)[0];if(this.options.highlight){var Ze=this.options.highlight(Te,Ge);Ze!=null&&Ze!==Te&&(Ve=!0,Te=Ze)}return Ge?'<pre><code class="'+this.options.langPrefix+Ae(Ge,!0)+'">'+(Ve?Te:Ae(Te,!0))+`</code></pre>
`:"<pre><code>"+(Ve?Te:Ae(Te,!0))+`</code></pre>
`},We.blockquote=function(Te){return`<blockquote>
`+Te+`</blockquote>
`},We.html=function(Te){return Te},We.heading=function(Te,Me,Ve,Ge){return this.options.headerIds?"<h"+Me+' id="'+this.options.headerPrefix+Ge.slug(Ve)+'">'+Te+"</h"+Me+`>
`:"<h"+Me+">"+Te+"</h"+Me+`>
`},We.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},We.list=function(Te,Me,Ve){var Ge=Me?"ol":"ul",Ze=Me&&Ve!==1?' start="'+Ve+'"':"";return"<"+Ge+Ze+`>
`+Te+"</"+Ge+`>
`},We.listitem=function(Te){return"<li>"+Te+`</li>
`},We.checkbox=function(Te){return"<input "+(Te?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},We.paragraph=function(Te){return"<p>"+Te+`</p>
`},We.table=function(Te,Me){return Me&&(Me="<tbody>"+Me+"</tbody>"),`<table>
<thead>
`+Te+`</thead>
`+Me+`</table>
`},We.tablerow=function(Te){return`<tr>
`+Te+`</tr>
`},We.tablecell=function(Te,Me){var Ve=Me.header?"th":"td",Ge=Me.align?"<"+Ve+' align="'+Me.align+'">':"<"+Ve+">";return Ge+Te+"</"+Ve+`>
`},We.strong=function(Te){return"<strong>"+Te+"</strong>"},We.em=function(Te){return"<em>"+Te+"</em>"},We.codespan=function(Te){return"<code>"+Te+"</code>"},We.br=function(){return this.options.xhtml?"<br/>":"<br>"},We.del=function(Te){return"<del>"+Te+"</del>"},We.link=function(Te,Me,Ve){if(Te=te(this.options.sanitize,this.options.baseUrl,Te),Te===null)return Ve;var Ge='<a href="'+Ae(Te)+'"';return Me&&(Ge+=' title="'+Me+'"'),Ge+=">"+Ve+"</a>",Ge},We.image=function(Te,Me,Ve){if(Te=te(this.options.sanitize,this.options.baseUrl,Te),Te===null)return Ve;var Ge='<img src="'+Te+'" alt="'+Ve+'"';return Me&&(Ge+=' title="'+Me+'"'),Ge+=this.options.xhtml?"/>":">",Ge},We.text=function(Te){return Te},Ye}(),ke=function(){function Ye(){}var We=Ye.prototype;return We.strong=function(Te){return Te},We.em=function(Te){return Te},We.codespan=function(Te){return Te},We.del=function(Te){return Te},We.html=function(Te){return Te},We.text=function(Te){return Te},We.link=function(Te,Me,Ve){return""+Ve},We.image=function(Te,Me,Ve){return""+Ve},We.br=function(){return""},Ye}(),rt=function(){function Ye(){this.seen={}}var We=Ye.prototype;return We.slug=function(Te){var Me=Te.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Me)){var Ve=Me;do this.seen[Ve]++,Me=Ve+"-"+this.seen[Ve];while(this.seen.hasOwnProperty(Me))}return this.seen[Me]=0,Me},Ye}(),ot=T.defaults,gt=K.unescape,Et=function(){function Ye(Xe){this.options=Xe||ot,this.options.renderer=this.options.renderer||new Se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ke,this.slugger=new rt}Ye.parse=function(Te,Me){var Ve=new Ye(Me);return Ve.parse(Te)};var We=Ye.prototype;return We.parse=function(Te,Me){Me===void 0&&(Me=!0);var Ve="",Ge,Ze,mt,Pt,Gt,dn,Tt,ut,je,tt,nt,De,Fe,bt,dt,xt,kt,et,Mt=Te.length;for(Ge=0;Ge<Mt;Ge++){tt=Te[Ge];switch(tt.type){case"space":continue;case"hr":{Ve+=this.renderer.hr();continue}case"heading":{Ve+=this.renderer.heading(this.parseInline(tt.tokens),tt.depth,gt(this.parseInline(tt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Ve+=this.renderer.code(tt.text,tt.lang,tt.escaped);continue}case"table":{for(ut="",Tt="",Pt=tt.header.length,Ze=0;Ze<Pt;Ze++)Tt+=this.renderer.tablecell(this.parseInline(tt.tokens.header[Ze]),{header:!0,align:tt.align[Ze]});for(ut+=this.renderer.tablerow(Tt),je="",Pt=tt.cells.length,Ze=0;Ze<Pt;Ze++){for(dn=tt.tokens.cells[Ze],Tt="",Gt=dn.length,mt=0;mt<Gt;mt++)Tt+=this.renderer.tablecell(this.parseInline(dn[mt]),{header:!1,align:tt.align[mt]});je+=this.renderer.tablerow(Tt)}Ve+=this.renderer.table(ut,je);continue}case"blockquote":{je=this.parse(tt.tokens),Ve+=this.renderer.blockquote(je);continue}case"list":{for(nt=tt.ordered,De=tt.start,Fe=tt.loose,Pt=tt.items.length,je="",Ze=0;Ze<Pt;Ze++)dt=tt.items[Ze],xt=dt.checked,kt=dt.task,bt="",dt.task&&(et=this.renderer.checkbox(xt),Fe?dt.tokens.length>0&&dt.tokens[0].type==="text"?(dt.tokens[0].text=et+" "+dt.tokens[0].text,dt.tokens[0].tokens&&dt.tokens[0].tokens.length>0&&dt.tokens[0].tokens[0].type==="text"&&(dt.tokens[0].tokens[0].text=et+" "+dt.tokens[0].tokens[0].text)):dt.tokens.unshift({type:"text",text:et}):bt+=et),bt+=this.parse(dt.tokens,Fe),je+=this.renderer.listitem(bt,kt,xt);Ve+=this.renderer.list(je,nt,De);continue}case"html":{Ve+=this.renderer.html(tt.text);continue}case"paragraph":{Ve+=this.renderer.paragraph(this.parseInline(tt.tokens));continue}case"text":{for(je=tt.tokens?this.parseInline(tt.tokens):tt.text;Ge+1<Mt&&Te[Ge+1].type==="text";)tt=Te[++Ge],je+=`
`+(tt.tokens?this.parseInline(tt.tokens):tt.text);Ve+=Me?this.renderer.paragraph(je):je;continue}default:{var Ht='Token with "'+tt.type+'" type was not found.';if(this.options.silent){console.error(Ht);return}else throw new Error(Ht)}}}return Ve},We.parseInline=function(Te,Me){Me=Me||this.renderer;var Ve="",Ge,Ze,mt=Te.length;for(Ge=0;Ge<mt;Ge++){Ze=Te[Ge];switch(Ze.type){case"escape":{Ve+=Me.text(Ze.text);break}case"html":{Ve+=Me.html(Ze.text);break}case"link":{Ve+=Me.link(Ze.href,Ze.title,this.parseInline(Ze.tokens,Me));break}case"image":{Ve+=Me.image(Ze.href,Ze.title,Ze.text);break}case"strong":{Ve+=Me.strong(this.parseInline(Ze.tokens,Me));break}case"em":{Ve+=Me.em(this.parseInline(Ze.tokens,Me));break}case"codespan":{Ve+=Me.codespan(Ze.text);break}case"br":{Ve+=Me.br();break}case"del":{Ve+=Me.del(this.parseInline(Ze.tokens,Me));break}case"text":{Ve+=Me.text(Ze.text);break}default:{var Pt='Token with "'+Ze.type+'" type was not found.';if(this.options.silent){console.error(Pt);return}else throw new Error(Pt)}}}return Ve},Ye}(),Ct=K.merge,wt=K.checkSanitizeDeprecation,Qe=K.escape,Ue=T.getDefaults,ft=T.changeDefaults,jt=T.defaults;function ht(Ye,We,Xe){if(typeof Ye=="undefined"||Ye===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ye!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ye)+", string expected");if(typeof We=="function"&&(Xe=We,We=null),We=Ct({},ht.defaults,We||{}),wt(We),Xe){var Te=We.highlight,Me;try{Me=$.lex(Ye,We)}catch(mt){return Xe(mt)}var Ve=function(Pt){var Gt;if(!Pt)try{Gt=Et.parse(Me,We)}catch(dn){Pt=dn}return We.highlight=Te,Pt?Xe(Pt):Xe(null,Gt)};if(!Te||Te.length<3)return Ve();if(delete We.highlight,!Me.length)return Ve();var Ge=0;ht.walkTokens(Me,function(mt){mt.type==="code"&&(Ge++,setTimeout(function(){Te(mt.text,mt.lang,function(Pt,Gt){if(Pt)return Ve(Pt);Gt!=null&&Gt!==mt.text&&(mt.text=Gt,mt.escaped=!0),Ge--,Ge===0&&Ve()})},0))}),Ge===0&&Ve();return}try{var Ze=$.lex(Ye,We);return We.walkTokens&&ht.walkTokens(Ze,We.walkTokens),Et.parse(Ze,We)}catch(mt){if(mt.message+=`
Please report this to https://github.com/markedjs/marked.`,We.silent)return"<p>An error occurred:</p><pre>"+Qe(mt.message+"",!0)+"</pre>";throw mt}}ht.options=ht.setOptions=function(Ye){return Ct(ht.defaults,Ye),ft(ht.defaults),ht},ht.getDefaults=Ue,ht.defaults=jt,ht.use=function(Ye){var We=Ct({},Ye);if(Ye.renderer&&function(){var Te=ht.defaults.renderer||new Se,Me=function(Ze){var mt=Te[Ze];Te[Ze]=function(){for(var Pt=arguments.length,Gt=new Array(Pt),dn=0;dn<Pt;dn++)Gt[dn]=arguments[dn];var Tt=Ye.renderer[Ze].apply(Te,Gt);return Tt===!1&&(Tt=mt.apply(Te,Gt)),Tt}};for(var Ve in Ye.renderer)Me(Ve);We.renderer=Te}(),Ye.tokenizer&&function(){var Te=ht.defaults.tokenizer||new we,Me=function(Ze){var mt=Te[Ze];Te[Ze]=function(){for(var Pt=arguments.length,Gt=new Array(Pt),dn=0;dn<Pt;dn++)Gt[dn]=arguments[dn];var Tt=Ye.tokenizer[Ze].apply(Te,Gt);return Tt===!1&&(Tt=mt.apply(Te,Gt)),Tt}};for(var Ve in Ye.tokenizer)Me(Ve);We.tokenizer=Te}(),Ye.walkTokens){var Xe=ht.defaults.walkTokens;We.walkTokens=function(Te){Ye.walkTokens(Te),Xe&&Xe(Te)}}ht.setOptions(We)},ht.walkTokens=function(Ye,We){for(var Xe=y(Ye),Te;!(Te=Xe()).done;){var Me=Te.value;We(Me);switch(Me.type){case"table":{for(var Ve=y(Me.tokens.header),Ge;!(Ge=Ve()).done;){var Ze=Ge.value;ht.walkTokens(Ze,We)}for(var mt=y(Me.tokens.cells),Pt;!(Pt=mt()).done;)for(var Gt=Pt.value,dn=y(Gt),Tt;!(Tt=dn()).done;){var ut=Tt.value;ht.walkTokens(ut,We)}break}case"list":{ht.walkTokens(Me.items,We);break}default:Me.tokens&&ht.walkTokens(Me.tokens,We)}}},ht.Parser=Et,ht.parser=Et.parse,ht.Renderer=Se,ht.TextRenderer=ke,ht.Lexer=$,ht.lexer=$.lex,ht.Tokenizer=we,ht.Slugger=rt,ht.parse=ht;var _t=ht;return _t})},E4JC:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.StreamCipher,y=p.algo,S=[],T=[],h=[],_=y.Rabbit=b.extend({_doReset:function(){for(var r=this._key.words,c=this.cfg.iv,t=0;t<4;t++)r[t]=(r[t]<<8|r[t]>>>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(c){var i=c.words,f=i[0],l=i[1],o=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,m=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,w=o>>>16|m&4294901760,C=m<<16|o&65535;n[0]^=o,n[1]^=w,n[2]^=m,n[3]^=C,n[4]^=o,n[5]^=w,n[6]^=m,n[7]^=C;for(var t=0;t<4;t++)d.call(this)}},_doProcessBlock:function(r,c){var t=this._X;d.call(this),S[0]=t[0]^t[5]>>>16^t[3]<<16,S[1]=t[2]^t[7]>>>16^t[5]<<16,S[2]=t[4]^t[1]>>>16^t[7]<<16,S[3]=t[6]^t[3]>>>16^t[1]<<16;for(var a=0;a<4;a++)S[a]=(S[a]<<8|S[a]>>>24)&16711935|(S[a]<<24|S[a]>>>8)&4278255360,r[c+a]^=S[a]},blockSize:128/32,ivSize:64/32});function d(){for(var r=this._X,c=this._C,t=0;t<8;t++)T[t]=c[t];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0<T[0]>>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0<T[1]>>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0<T[2]>>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0<T[3]>>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0<T[4]>>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0<T[5]>>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0<T[6]>>>0?1:0)|0,this._b=c[7]>>>0<T[7]>>>0?1:0;for(var t=0;t<8;t++){var a=r[t]+c[t],n=a&65535,i=a>>>16,f=((n*n>>>17)+n*i>>>15)+i*i,l=((a&4294901760)*a|0)+((a&65535)*a|0);h[t]=f^l}r[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,r[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,r[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,r[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,r[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,r[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,r[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,r[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}p.Rabbit=b._createHelper(_)}(),L.Rabbit})},E7E6:function(M,Y){M.exports="data:image/png;base64,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"},E9nw:function(M,Y){M.exports=function(){var s=document.getSelection();if(!s.rangeCount)return function(){};for(var L=document.activeElement,p=[],A=0;A<s.rangeCount;A++)p.push(s.getRangeAt(A));switch(L.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":L.blur();break;default:L=null;break}return s.removeAllRanges(),function(){s.type==="Caret"&&s.removeAllRanges(),s.rangeCount||p.forEach(function(b){s.addRange(b)}),L&&L.focus()}}},EGTK:function(M,Y,s){"use strict";var L=s("R9oj"),p=s("ECub"),A=s("T2oS"),b=s("W9HT"),y=s("5NDa"),S=s("5rEg"),T=s("k1fw"),h=s("9og8"),_=s("tJVT"),d=s("WmNS"),r=s.n(d),c=s("cDcd"),t=s.n(c),a=s("TSYQ"),n=s.n(a),i=s("dGDm"),f=s.n(i),l=s("Lai7"),o=s.n(l),m=s("ErOA"),w=s("LvDl"),C=s.n(w),v=function(E){var x=E.className,g=E.dispatch,O=E.skin,I=O===void 0?"white":O,D=E.value,N=D===void 0?null:D,V=E.loading,F=V===void 0?!1:V,W=E.data,K=W===void 0?[]:W,B=E.otherData,k=B===void 0?[]:B,G=E.tags,ne=G===void 0?[]:G,fe=E.onChange,de=fe===void 0?function(){}:fe,Ee=Object(c.useState)(""),we=Object(_.a)(Ee,2),ce=we[0],be=we[1],ve=Object(c.useState)(!1),ue=Object(_.a)(ve,2),se=ue[0],q=ue[1],me=Object(c.useState)([]),re=Object(_.a)(me,2),ie=re[0],Oe=re[1],le=Object(c.useState)(0),$=Object(_.a)(le,2),J=$[0],te=$[1],Ae=Object(c.useRef)(null),Se=Object(c.useRef)(String(Math.floor(Math.random()*1e6))).current,ke=Object(c.useRef)(),rt=Object(c.useRef)(null),ot=Object(c.useRef)(0),gt=Object(c.useRef)([]);Object(c.useEffect)(function(){return window.addEventListener("keydown",Et),function(){window.removeEventListener("keydown",Et)}},[ce,se,ie]);var Et=function(Ze){if(!se||Ze.keyCode!==40&&Ze.keyCode!==38)return;var mt=0;Ze.keyCode===40&&se&&(J<ie.length-1?mt=J+1:mt=0,console.log("\u4E0B"),Ue(mt,"down")),Ze.keyCode===38&&se&&(J===0?mt=ie.length-1:mt=J-1,Ue(mt,"up")),te(mt),wt(ce,mt,!0)},Ct=function(Ze,mt){var Pt=function(Tt){var ut=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,je={};return je["^"]="\\^",je["."]="\\.",je["\\"]="\\\\",je["|"]="\\|",je["("]="\\(",je[")"]="\\)",je["*"]="\\*",je["+"]="\\+",je["-"]="\\-",je.$="$",je["["]="\\[",je["]"]="\\]",je["?"]="\\?",Tt=Tt.replace(ut,function(tt){return je[tt]}),Tt},Gt=new RegExp(Pt(mt),"gi");return Ze=Ze.replace(Gt,function(dn){return"<span style='color:#0152d9;'>"+dn+"</span>"}),Ze},wt=function(){var Ge=Object(h.a)(r.a.mark(function Ze(mt,Pt,Gt){var dn,Tt,ut;return r.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(dn=ot.current+1,ot.current=dn,Tt=function(De){var Fe=De==null?void 0:De.map(function(bt,dt){var xt=bt.id,kt=bt.name,et=Object(T.a)(Object(T.a)({},bt),{},{label:t.a.createElement("ul",{id:"search-".concat(Se,"-").concat(dt),onClick:function(){return ht(xt,et)},className:dt===Pt?f.a.searchListActive:f.a.searchList},t.a.createElement("li",{className:f.a.name,dangerouslySetInnerHTML:{__html:Ct(kt,mt)}}),bt.private&&t.a.createElement("li",{className:f.a.tag},"\u79C1\u6709"))});return et});return Fe},!Gt){tt.next=7;break}return ut=Tt(gt.current),Oe(ut),tt.abrupt("return");case 7:clearTimeout(rt.current),rt.current=setTimeout(Object(h.a)(r.a.mark(function nt(){var De,Fe,bt,dt;return r.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return kt.next=2,Object(m.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:mt,page:1,limit:1e5}});case 2:De=kt.sent,(De==null?void 0:De.status)===0&&(bt=Tt((De==null||((Fe=De.data)===null||Fe===void 0)?void 0:Fe.mirrors)||[]),dn===ot.current&&(Oe(bt),gt.current=Object(w.cloneDeep)((De==null||((dt=De.data)===null||dt===void 0)?void 0:dt.mirrors)||[])));case 4:case"end":return kt.stop()}},nt)})),300);case 9:case"end":return tt.stop()}},Ze)}));return function(mt,Pt,Gt){return Ge.apply(this,arguments)}}(),Qe=function(Ze){var mt=document.getElementById("scroll-".concat(Se,"-").concat(Ze));if(!mt)return;var Pt=document.getElementById("scroll-".concat(Se));Pt.scrollTo(0,mt.offsetTop)},Ue=function(Ze,mt){var Pt=document.getElementById("search-".concat(Se,"-").concat(Ze));if(!Pt)return;var Gt=document.getElementById("search-".concat(Se)),dn=Pt.offsetTop-Gt.scrollTop>0&&Pt.offsetTop-Gt.scrollTop<Gt.clientHeight;if(dn)return;mt==="down"?Gt.scrollTo(0,Pt.offsetTop-Gt.clientHeight+Pt.clientHeight):Gt.scrollTo(0,Pt.offsetTop)},ft=function(Ze){wt(Ze,0),be(Ze)},jt=function(Ze){var mt,Pt;if(!ie.length)return;var Gt=ie==null||((mt=ie[J])===null||mt===void 0)?void 0:mt.id;de(Gt),Oe([]),te(0),be(ie==null||((Pt=ie[J])===null||Pt===void 0)?void 0:Pt.name),Qe(Gt),ke.current.blur()},ht=function(Ze,mt){de(Ze),Oe([]),te(0),be(mt==null?void 0:mt.name),Qe(Ze)},_t=function(){Oe([]),be("")},Ye=function(Ze){de(Ze),Oe([]),be("")},We=function(){return ce===""?t.a.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):t.a.createElement("i",{onClick:_t,className:"iconfont icon-shanchu4 c-grey-c"})},Xe=function(){g({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Te=function(){g({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},Me=function(){Ae.current=setTimeout(function(){q(!1),te(0)},200)},Ve=!(K!=null&&K.length)&&!(k!=null&&k.length);return t.a.createElement("div",{className:n()(I==="night"?f.a.darklySelectEnvironment:f.a.selectEnvironment,x)},!Ve&&t.a.createElement("div",{className:f.a.search},t.a.createElement(S.a,{suffix:We(),bordered:!1,ref:ke,value:ce,onKeyDown:function(Ze){(Ze.keyCode===40||Ze.keyCode===38)&&Ze.preventDefault()},size:"large",onFocus:function(){clearTimeout(Ae.current),ft(ce),q(!0)},onBlur:Me,onChange:function(Ze){return ft(Ze.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:jt}),se&&t.a.createElement("div",{id:"search-".concat(Se),className:f.a.searchListWrap},ie.map(function(Ge,Ze){return t.a.createElement(t.a.Fragment,{key:Ze}," ",Ge.label)}))),F?t.a.createElement(b.a,{className:f.a.spin}):t.a.createElement(t.a.Fragment,null,Ve&&t.a.createElement(p.a,{style:{margin:"60px 0"},image:o.a,description:t.a.createElement("span",{className:"c-grey-999"},"\u6682\u65E0\u5B9E\u9A8C\u73AF\u5883")}),!!ne.length&&t.a.createElement("aside",{className:f.a.common},t.a.createElement("div",{className:f.a.title},"\u63A8\u8350\u73AF\u5883:"),t.a.createElement("ul",{className:f.a.tags},ne.map(function(Ge,Ze){return t.a.createElement("li",{key:Ze,onClick:function(){return Ye(Ge.id)},className:N===Ge.id?"".concat(f.a.tag," ").concat(f.a.tagActive):f.a.tag},Ge.name)}))),t.a.createElement("aside",{className:f.a.wrap,id:"scroll-".concat(Se)},K.map(function(Ge,Ze){var mt;return Ge!=null&&(mt=Ge.image)!==null&&mt!==void 0&&mt.length?t.a.createElement(P,{key:Ze,data:Ge,id:N,handleClick:function(Gt){return Ye(Gt)}}):null}),t.a.createElement("ul",{className:f.a.allList},k.map(function(Ge){return t.a.createElement("li",{key:"key-".concat(Ge.id),id:"scroll-".concat(Se,"-").concat(Ge.id),className:Ge.id===N?"".concat(f.a.item," ").concat(f.a.itemActive):f.a.item,onClick:function(){return de(Ge.id)}},t.a.createElement("div",{className:f.a.name},Ge.name),Ge.private&&t.a.createElement("div",{className:f.a.tag},"\u79C1\u6709"))})))),t.a.createElement("div",{className:f.a.apply},t.a.createElement("span",{className:f.a.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),t.a.createElement("span",{className:f.a.p2,onClick:Xe}," \u7533\u8BF7\u65B0\u5EFA"),t.a.createElement("span",{className:f.a.p2,onClick:Te}," \u5728\u7EBF\u521B\u5EFA")))},P=function(E){var x=E.data,g=E.id,O=E.handleClick,I=Object(c.useState)(!0),D=Object(_.a)(I,2),N=D[0],V=D[1],F=x.name,W=x.image;return t.a.createElement("div",{className:f.a.list},t.a.createElement("header",{onClick:function(){return V(!N)}},t.a.createElement("div",{className:f.a.title},F),t.a.createElement("i",{style:{transition:"0.5s",transform:N?"rotate(0deg)":"rotate(180deg)"},className:"iconfont icon-shangjiantou c-grey-999"})),t.a.createElement("ul",{className:f.a.items,style:{height:N?"auto":0}},W.map(function(K){return t.a.createElement("li",{key:K.id,className:K.id===g?"".concat(f.a.item," ").concat(f.a.itemActive):f.a.item,onClick:function(){return O(K.id)}},t.a.createElement("div",{className:f.a.name},K.name),K.private&&t.a.createElement("div",{className:f.a.tag},"\u79C1\u6709"))}),t.a.createElement("li",{className:f.a.line})))};Y.a=v},ELLl:function(M,Y,s){(function(L){L(s("VrN/"))})(function(L){var p={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},A=L.Pos;L.defineOption("autoCloseBrackets",!1,function(n,i,f){f&&f!=L.Init&&(n.removeKeyMap(y),n.state.closeBrackets=null),i&&(S(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]:p[i]}var y={Backspace:_,Enter:d};function S(n){for(var i=0;i<n.length;i++){var f=n.charAt(i),l="'"+f+"'";y[l]||(y[l]=T(f))}}S(p.pairs+"`");function T(n){return function(i){return c(i,n)}}function h(n){var i=n.state.closeBrackets;if(!i||i.override)return i;var f=n.getModeAt(n.getCursor());return f.closeBrackets||i}function _(n){var i=h(n);if(!i||n.getOption("disableInput"))return L.Pass;for(var f=b(i,"pairs"),l=n.listSelections(),o=0;o<l.length;o++){if(!l[o].empty())return L.Pass;var m=t(n,l[o].head);if(!m||f.indexOf(m)%2!=0)return L.Pass}for(var o=l.length-1;o>=0;o--){var w=l[o].head;n.replaceRange("",A(w.line,w.ch-1),A(w.line,w.ch+1),"+delete")}}function d(n){var i=h(n),f=i&&b(i,"explode");if(!f||n.getOption("disableInput"))return L.Pass;for(var l=n.listSelections(),o=0;o<l.length;o++){if(!l[o].empty())return L.Pass;var m=t(n,l[o].head);if(!m||f.indexOf(m)%2!=0)return L.Pass}n.operation(function(){var w=n.lineSeparator()||`
`;n.replaceSelection(w+w,null),n.execCommand("goCharLeft"),l=n.listSelections();for(var C=0;C<l.length;C++){var v=l[C].head.line;n.indentLine(v,null,!0),n.indentLine(v+1,null,!0)}})}function r(n){var i=L.cmpPos(n.anchor,n.head)>0;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 c(n,i){var f=h(n);if(!f||n.getOption("disableInput"))return L.Pass;var l=b(f,"pairs"),o=l.indexOf(i);if(o==-1)return L.Pass;for(var m=b(f,"closeBefore"),w=b(f,"triples"),C=l.charAt(o+1)==i,v=n.listSelections(),P=o%2==0,R,E=0;E<v.length;E++){var x=v[E],g=x.head,O,I=n.getRange(g,A(g.line,g.ch+1));if(P&&!x.empty())O="surround";else if((C||!P)&&I==i)C&&a(n,g)?O="both":w.indexOf(i)>=0&&n.getRange(g,A(g.line,g.ch+3))==i+i+i?O="skipThree":O="skip";else if(C&&g.ch>1&&w.indexOf(i)>=0&&n.getRange(A(g.line,g.ch-2),g)==i+i){if(g.ch>2&&/\bstring/.test(n.getTokenTypeAt(A(g.line,g.ch-2))))return L.Pass;O="addFour"}else if(C){var D=g.ch==0?" ":n.getRange(A(g.line,g.ch-1),g);if(!L.isWordChar(I)&&D!=i&&!L.isWordChar(D))O="both";else return L.Pass}else if(P&&(I.length===0||/\s/.test(I)||m.indexOf(I)>-1))O="both";else return L.Pass;if(!R)R=O;else if(R!=O)return L.Pass}var N=o%2?l.charAt(o-1):i,V=o%2?i:l.charAt(o+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<W.length;F++)W[F]=N+W[F]+V;n.replaceSelections(W,"around"),W=n.listSelections().slice();for(var F=0;F<W.length;F++)W[F]=r(W[F]);n.setSelections(W)}else R=="both"?(n.replaceSelection(N+V,null),n.triggerElectric(N+V),n.execCommand("goCharLeft")):R=="addFour"&&(n.replaceSelection(N+N+N+N,"before"),n.execCommand("goCharRight"))})}function t(n,i){var f=n.getRange(A(i.line,i.ch-1),A(i.line,i.ch+1));return f.length==2?f:null}function a(n,i){var f=n.getTokenAt(A(i.line,i.ch+1));return/\bstring/.test(f.type)&&f.start==i.ch&&(i.ch==0||!/\bstring/.test(n.getTokenTypeAt(i)))}})},ELcG:function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(p){var A=L,b=A.lib,y=b.WordArray,S=b.Hasher,T=A.algo,h=y.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),_=y.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=y.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),r=y.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=y.create([0,1518500249,1859775393,2400959708,2840853838]),t=y.create([1352829926,1548603684,1836072691,2053994217,0]),a=T.RIPEMD160=S.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,C){for(var v=0;v<16;v++){var P=C+v,R=w[P];w[P]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var E=this._hash.words,x=c.words,g=t.words,O=h.words,I=_.words,D=d.words,N=r.words,V,F,W,K,B,k,G,ne,fe,de;k=V=E[0],G=F=E[1],ne=W=E[2],fe=K=E[3],de=B=E[4];for(var Ee,v=0;v<80;v+=1)Ee=V+w[C+O[v]]|0,v<16?Ee+=n(F,W,K)+x[0]:v<32?Ee+=i(F,W,K)+x[1]:v<48?Ee+=f(F,W,K)+x[2]:v<64?Ee+=l(F,W,K)+x[3]:Ee+=o(F,W,K)+x[4],Ee=Ee|0,Ee=m(Ee,D[v]),Ee=Ee+B|0,V=B,B=K,K=m(W,10),W=F,F=Ee,Ee=k+w[C+I[v]]|0,v<16?Ee+=o(G,ne,fe)+g[0]:v<32?Ee+=l(G,ne,fe)+g[1]:v<48?Ee+=f(G,ne,fe)+g[2]:v<64?Ee+=i(G,ne,fe)+g[3]:Ee+=n(G,ne,fe)+g[4],Ee=Ee|0,Ee=m(Ee,N[v]),Ee=Ee+de|0,k=de,de=fe,fe=m(ne,10),ne=G,G=Ee;Ee=E[1]+W+fe|0,E[1]=E[2]+K+de|0,E[2]=E[3]+B+k|0,E[3]=E[4]+V+G|0,E[4]=E[0]+F+ne|0,E[0]=Ee},_doFinalize:function(){var w=this._data,C=w.words,v=this._nDataBytes*8,P=w.sigBytes*8;C[P>>>5]|=128<<24-P%32,C[(P+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,w.sigBytes=(C.length+1)*4,this._process();for(var R=this._hash,E=R.words,x=0;x<5;x++){var g=E[x];E[x]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}return R},clone:function(){var w=S.clone.call(this);return w._hash=this._hash.clone(),w}});function n(w,C,v){return w^C^v}function i(w,C,v){return w&C|~w&v}function f(w,C,v){return(w|~C)^v}function l(w,C,v){return w&v|C&~v}function o(w,C,v){return w^(C|~v)}function m(w,C){return w<<C|w>>>32-C}A.RIPEMD160=S._createHelper(a),A.HmacRIPEMD160=S._createHmacHelper(a)}(Math),L.RIPEMD160})},ETIr:function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.WordArray,y=p.enc,S=y.Base64={stringify:function(h){var _=h.words,d=h.sigBytes,r=this._map;h.clamp();for(var c=[],t=0;t<d;t+=3)for(var a=_[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,f=a<<16|n<<8|i,l=0;l<4&&t+l*.75<d;l++)c.push(r.charAt(f>>>6*(3-l)&63));var o=r.charAt(64);if(o)for(;c.length%4;)c.push(o);return c.join("")},parse:function(h){var _=h.length,d=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var c=0;c<d.length;c++)r[d.charCodeAt(c)]=c}var t=d.charAt(64);if(t){var a=h.indexOf(t);a!==-1&&(_=a)}return T(h,_,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function T(h,_,d){for(var r=[],c=0,t=0;t<_;t++)if(t%4){var a=d[h.charCodeAt(t-1)]<<t%4*2,n=d[h.charCodeAt(t)]>>>6-t%4*2,i=a|n;r[c>>>2]|=i<<24-c%4*8,c++}return b.create(r,c)}}(),L.enc.Base64})},EkPF:function(M,Y,s){M.exports={practiceSetting:"practiceSetting___2ttNt",wrapHeader:"wrapHeader___2dgOY",wrapLayout:"wrapLayout___3zol1",wrapSidebar:"wrapSidebar___3imKs",wrapContent:"wrapContent___3L8H_"}},"F+F2":function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){return function(){if(typeof ArrayBuffer!="function")return;var p=L,A=p.lib,b=A.WordArray,y=b.init,S=b.init=function(T){if(T instanceof ArrayBuffer&&(T=new Uint8Array(T)),(T instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&T instanceof Uint8ClampedArray||T instanceof Int16Array||T instanceof Uint16Array||T instanceof Int32Array||T instanceof Uint32Array||T instanceof Float32Array||T instanceof Float64Array)&&(T=new Uint8Array(T.buffer,T.byteOffset,T.byteLength)),T instanceof Uint8Array){for(var h=T.byteLength,_=[],d=0;d<h;d++)_[d>>>2]|=T[d]<<24-d%4*8;y.call(this,_,h)}else y.apply(this,arguments)};S.prototype=b}(),L.lib.WordArray})},FOrL:function(M,Y,s){M.exports=s.p+"static/nodata.a6b3f948.png"},FPkq:function(M,Y,s){M.exports=s.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,s){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,s){"use strict";var L=s("+L6B"),p=s("2/Rp"),A=s("DZo9"),b=s("8z0m"),y=s("miYZ"),S=s("tsqr"),T=s("9og8"),h=s("2qtc"),_=s("kLXV"),d=s("y8nQ"),r=s("Vl3Y"),c=s("tJVT"),t=s("PpiC"),a=s("5NDa"),n=s("5rEg"),i=s("WmNS"),f=s.n(i),l=s("cDcd"),o=s.n(l),m=s("9kvl"),w=s("m3rI"),C=s("FPkq"),v=s.n(C),P=s("qB8g"),R=s.n(P),E=n.a.TextArea,x=function(O){var I=O.newShixuns,D=O.globalSetting,N=O.loading,V=O.dispatch,F=Object(t.a)(O,["newShixuns","globalSetting","loading","dispatch"]),W=r.a.useForm(),K=Object(c.a)(W,1),B=K[0],k=Object(l.useState)([]),G=Object(c.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)},Ee=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(T.a)(f.a.mark(function ie(){var Oe;return f.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,V({type:"newShixuns/deleteAttachment",payload:{id:q}});case 2:Oe=$.sent,Oe&&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}},we=function(ue){if(ne.length)return!1;var se=ue.size/1024/1024>50;return se?(S.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},ce=function(){var ve=Object(T.a)(f.a.mark(function ue(se){var q,me,re,ie,Oe,le,$,J;return f.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return re=se||{},ie=re.language,Oe=re.env,le=re.mode,$=re.code,Ae.next=3,V({type:"newShixuns/applyShixunMirror",payload:{language:ie,runtime:Oe,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=Ae.sent,V({type:"newShixuns/setActionTabs",payload:{}}),J&&S.b.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002");case 6:case"end":return Ae.stop()}},ue)}));return function(se){return ve.apply(this,arguments)}}(),be=function(){B.resetFields(),fe([])};return o.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},o.a.createElement("section",{className:R.a.qrCode},o.a.createElement("aside",{className:R.a.a1},o.a.createElement("div",{className:R.a.code},o.a.createElement("img",{width:120,height:120,src:v.a,alt:"\u4E8C\u7EF4\u7801"})),o.a.createElement("div",{className:R.a.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),o.a.createElement("div",{className:R.a.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),o.a.createElement("aside",{className:R.a.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",o.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")),o.a.createElement(r.a,{className:R.a.formWrap,form:B,labelCol:{span:4},wrapperCol:{span:20},onFinish:ce},o.a.createElement(r.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},o.a.createElement(E,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),o.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"}]},o.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})),o.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"}]},o.a.createElement(E,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),o.a.createElement(r.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},o.a.createElement("div",{className:R.a.upload},o.a.createElement(b.a,{fileList:ne,action:"".concat(w.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:de,onRemove:Ee,beforeUpload:we,withCredentials:!0},o.a.createElement("span",{className:"".concat(R.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),o.a.createElement("span",{className:"".concat(R.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),o.a.createElement("div",{className:R.a.footerWrap},o.a.createElement(r.a.Item,null,o.a.createElement(p.a,{className:"mr5",size:"large",onClick:function(){V({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),o.a.createElement(p.a,{size:"large",type:"primary",htmlType:"submit",loading:N["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};Y.a=Object(m.a)(function(g){var O=g.newShixuns,I=g.loading,D=g.globalSetting;return{newShixuns:O,globalSetting:D,loading:I.effects}})(x)},Fxgj:function(M,Y,s){},GABl:function(M,Y){M.exports="data:image/png;base64,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"},GRuw:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("lPiR"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.WordArray,y=p.algo,S=y.SHA256,T=y.SHA224=S.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var h=S._doFinalize.call(this);return h.sigBytes-=4,h}});p.SHA224=S._createHelper(T),p.HmacSHA224=S._createHmacHelper(T)}(),L.SHA224})},GfqC:function(M,Y,s){"use strict";var L=s("cDcd"),p=s.n(L),A=s("TSYQ"),b=s.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 S(K){var B=K.responseText||K.response;if(!B)return B;try{return JSON.parse(B)}catch(k){return B}}function T(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),S(B)):K.onSuccess(S(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 h=+new Date,_=0;function d(){return"rc-upload-"+h+"-"+ ++_}function r(K,B){return K.indexOf(B,K.length-B.length)!==-1}var c=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 Ee=de.trim();return Ee.charAt(0)==="."?r(G.toLowerCase(),Ee.toLowerCase()):/\/\*$/.test(Ee)?fe===Ee.replace(/\/.*$/,""):ne===Ee})}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 Ee=!de.length;Ee?B(G):ne()})}ne()}var a=function(B,k,G){var ne=function fe(de,Ee){Ee=Ee||"",de.isFile?de.file(function(we){G(we)&&(de.fullPath&&!we.webkitRelativePath&&(Object.defineProperties(we,{webkitRelativePath:{writable:!0}}),we.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(we,{webkitRelativePath:{writable:!1}})),k([we]))}):de.isDirectory&&t(de,function(we){we.forEach(function(ce){fe(ce,""+Ee+de.name+"/")})})};B.forEach(function(fe){ne(fe.webkitGetAsEntry())})},n=a,i=Object.assign||function(K){for(var B=1;B<arguments.length;B++){var k=arguments[B];for(var G in k)Object.prototype.hasOwnProperty.call(k,G)&&(K[G]=k[G])}return K},f=function(){function K(B,k){var G=[],ne=!0,fe=!1,de=void 0;try{for(var Ee=B[Symbol.iterator](),we;!(ne=(we=Ee.next()).done)&&!(G.push(we.value),k&&G.length===k);ne=!0);}catch(ce){fe=!0,de=ce}finally{try{!ne&&Ee.return&&Ee.return()}finally{if(fe)throw de}}return G}return function(B,k){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return K(B,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function K(B,k){for(var G=0;G<k.length;G++){var ne=k[G];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(B,ne.key,ne)}}return function(B,k,G){return k&&K(B.prototype,k),G&&K(B,G),B}}();function o(K,B,k){return B in K?Object.defineProperty(K,B,{value:k,enumerable:!0,configurable:!0,writable:!0}):K[B]=k,K}function m(K,B){var k={};for(var G in K){if(B.indexOf(G)>=0)continue;if(!Object.prototype.hasOwnProperty.call(K,G))continue;k[G]=K[G]}return k}function w(K,B){if(!(K instanceof B))throw new TypeError("Cannot call a class as a function")}function C(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;w(this,B);for(var de=arguments.length,Ee=Array(de),we=0;we<de;we++)Ee[we]=arguments[we];return fe=(G=(ne=C(this,(k=B.__proto__||Object.getPrototypeOf(B)).call.apply(k,[this].concat(Ee))),ne),ne.state={uid:d()},ne.reqs={},ne.onChange=function(ce){var be=ce.target.files;ne.uploadFiles(be),ne.reset()},ne.onClick=function(ce){var be=ne.fileInput;if(!be)return;var ve=ne.props,ue=ve.children,se=ve.onClick;ue&&ue.type==="button"&&(be.parentNode.focus(),be.parentNode.querySelector("button").blur()),be.click(),se&&se(ce)},ne.onKeyDown=function(ce){ce.key==="Enter"&&ne.onClick()},ne.onFileDrop=function(ce){var be=ne.props.multiple;if(ce.preventDefault(),ce.type==="dragover")return;if(ne.props.directory)n(Array.prototype.slice.call(ce.dataTransfer.items),ne.uploadFiles,function(ue){return c(ue,ne.props.accept)});else{var ve=Array.prototype.slice.call(ce.dataTransfer.files).filter(function(ue){return c(ue,ne.props.accept)});be===!1&&(ve=ve.slice(0,1)),ne.uploadFiles(ve)}},ne.uploadFiles=function(ce){var be=Array.prototype.slice.call(ce);be.map(function(ve){return ve.uid=d(),ve}).forEach(function(ve){ne.upload(ve,be)})},ne.saveFileInput=function(ce){ne.fileInput=ce},G),C(ne,fe)}return l(B,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(G,ne){var fe=this,de=this.props;if(!de.beforeUpload)return setTimeout(function(){return fe.post(G)},0);var Ee=de.beforeUpload(G,ne);Ee&&Ee.then?Ee.then(function(we){var ce=Object.prototype.toString.call(we);return ce==="[object File]"||ce==="[object Blob]"?fe.post(we):fe.post(G)}).catch(function(we){console.log(we)}):Ee!==!1&&setTimeout(function(){return fe.post(G)},0);return}},{key:"post",value:function(G){var ne=this;if(!this._isMounted)return;var fe=this.props,de=fe.onStart,Ee=fe.onProgress,we=fe.transformFile,ce=we===void 0?function(be){return be}:we;new Promise(function(be){var ve=fe.action;return typeof ve=="function"&&(ve=ve(G)),be(ve)}).then(function(be){var ve=G.uid,ue=fe.customRequest||T,se=Promise.resolve(ce(G)).then(function(q){var me=fe.data;return typeof me=="function"&&(me=me(q)),Promise.all([q,me])}).catch(function(q){console.error(q)});se.then(function(q){var me=f(q,2),re=me[0],ie=me[1],Oe={action:be,filename:fe.name,data:ie,file:re,headers:fe.headers,withCredentials:fe.withCredentials,method:fe.method||"post",onProgress:Ee?function(le){Ee(le,G)}:null,onSuccess:function($,J){delete ne.reqs[ve],fe.onSuccess($,G,J)},onError:function($,J){delete ne.reqs[ve],fe.onError($,J,G)}};de(G),ne.reqs[ve]=ue(Oe)})})}},{key:"reset",value:function(){this.setState({uid:d()})}},{key:"abort",value:function(G){var ne=this.reqs;if(G){var fe=G;G&&G.uid&&(fe=G.uid),ne[fe]&&ne[fe].abort&&ne[fe].abort(),delete ne[fe]}else Object.keys(ne).forEach(function(de){ne[de]&&ne[de].abort&&ne[de].abort(),delete ne[de]})}},{key:"render",value:function(){var G,ne=this.props,fe=ne.component,de=ne.prefixCls,Ee=ne.className,we=ne.disabled,ce=ne.id,be=ne.style,ve=ne.multiple,ue=ne.accept,se=ne.children,q=ne.directory,me=ne.openFileDialogOnClick,re=ne.onMouseEnter,ie=ne.onMouseLeave,Oe=m(ne,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),le=b()((G={},o(G,de,!0),o(G,de+"-disabled",we),o(G,Ee,Ee),G)),$=we?{}:{onClick:me?this.onClick:function(){},onKeyDown:me?this.onKeyDown:function(){},onMouseEnter:re,onMouseLeave:ie,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return p.a.createElement(fe,i({},$,{className:le,role:"button",style:be}),p.a.createElement("input",i({},P(Oe),{id:ce,type:"file",ref:this.saveFileInput,onClick:function(te){return te.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ue,directory:q?"directory":null,webkitdirectory:q?"webkitdirectory":null,multiple:ve,onChange:this.onChange})),se)}}]),B}(L.Component),E=R,x=Object.assign||function(K){for(var B=1;B<arguments.length;B++){var k=arguments[B];for(var G in k)Object.prototype.hasOwnProperty.call(k,G)&&(K[G]=k[G])}return K},g=function(){function K(B,k){for(var G=0;G<k.length;G++){var ne=k[G];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(B,ne.key,ne)}}return function(B,k,G){return k&&K(B.prototype,k),G&&K(B,G),B}}();function O(K,B){if(!(K instanceof B))throw new TypeError("Cannot call a class as a function")}function I(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 D(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)}function N(){}var V=function(K){D(B,K);function B(){var k,G,ne,fe;O(this,B);for(var de=arguments.length,Ee=Array(de),we=0;we<de;we++)Ee[we]=arguments[we];return fe=(G=(ne=I(this,(k=B.__proto__||Object.getPrototypeOf(B)).call.apply(k,[this].concat(Ee))),ne),ne.saveUploader=function(ce){ne.uploader=ce},G),I(ne,fe)}return g(B,[{key:"abort",value:function(G){this.uploader.abort(G)}},{key:"render",value:function(){return p.a.createElement(E,x({},this.props,{ref:this.saveUploader}))}}]),B}(L.Component);V.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:N,onError:N,onSuccess:N,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var F=V,W=Y.a=F},Gytx:function(M,Y){M.exports=function(L,p,A,b){var y=A?A.call(b,L,p):void 0;if(y!==void 0)return!!y;if(L===p)return!0;if(typeof L!="object"||!L||typeof p!="object"||!p)return!1;var S=Object.keys(L),T=Object.keys(p);if(S.length!==T.length)return!1;for(var h=Object.prototype.hasOwnProperty.bind(p),_=0;_<S.length;_++){var d=S[_];if(!h(d))return!1;var r=L[d],c=p[d];if(y=A?A.call(b,r,c,d):void 0,y===!1||y===void 0&&r!==c)return!1}return!0}},HjOm:function(M,Y,s){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var L={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},p=L;Y.default=p},HmJG:function(M,Y,s){},HpTS:function(M,Y,s){M.exports=s.p+"static/small_program.f74069ec.png"},HpfO:function(M,Y,s){M.exports={wrap:"wrap___r5XlG",content:"content___1KVgv",mainPathWrap:"mainPathWrap___256K2",colorBlue:"colorBlue___3S7DM"}},I8Z2:function(M,Y,s){"use strict";s.d(Y,"a",function(){return b}),s.d(Y,"b",function(){return t}),s.d(Y,"c",function(){return n});var L=s("cDcd"),p=function(){var i=function(f,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,m){o.__proto__=m}||function(o,m){for(var w in m)m.hasOwnProperty(w)&&(o[w]=m[w])},i(f,l)};return function(f,l){i(f,l);function o(){this.constructor=f}f.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}(),A=L.createContext(null),b=function(i){p(f,i);function f(){return i!==null&&i.apply(this,arguments)||this}return f.prototype.render=function(){return L.createElement(A.Provider,{value:this.props.store},this.props.children)},f}(L.Component),y=s("Gytx"),S=s.n(y),T=s("2mql"),h=s.n(T),_=function(){var i=function(f,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,m){o.__proto__=m}||function(o,m){for(var w in m)m.hasOwnProperty(w)&&(o[w]=m[w])},i(f,l)};return function(f,l){i(f,l);function o(){this.constructor=f}f.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}(),d=function(){return d=Object.assign||function(i){for(var f,l=1,o=arguments.length;l<o;l++){f=arguments[l];for(var m in f)Object.prototype.hasOwnProperty.call(f,m)&&(i[m]=f[m])}return i},d.apply(this,arguments)};function r(i){return i.displayName||i.name||"Component"}var c=function(){return{}};function t(i,f){f===void 0&&(f={});var l=!!i,o=i||c;return function(w){var C=function(P){_(R,P);function R(E,x){var g=P.call(this,E,x)||this;return g.unsubscribe=null,g.handleChange=function(){if(!g.unsubscribe)return;var O=o(g.store.getState(),g.props);g.setState({subscribed:O})},g.store=g.context,g.state={subscribed:o(g.store.getState(),E),store:g.store,props:E},g}return R.getDerivedStateFromProps=function(E,x){return i&&i.length===2&&E!==x.props?{subscribed:o(x.store.getState(),E),props:E}:{props:E}},R.prototype.componentDidMount=function(){this.trySubscribe()},R.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},R.prototype.shouldComponentUpdate=function(E,x){return!S()(this.props,E)||!S()(this.state.subscribed,x.subscribed)},R.prototype.trySubscribe=function(){l&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},R.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},R.prototype.render=function(){var E=d(d(d({},this.props),this.state.subscribed),{store:this.store});return L.createElement(w,d({},E,{ref:this.props.miniStoreForwardedRef}))},R.displayName="Connect("+r(w)+")",R.contextType=A,R}(L.Component);if(f.forwardRef){var v=L.forwardRef(function(P,R){return L.createElement(C,d({},P,{miniStoreForwardedRef:R}))});return h()(v,w)}return h()(C,w)}}var a=function(){return a=Object.assign||function(i){for(var f,l=1,o=arguments.length;l<o;l++){f=arguments[l];for(var m in f)Object.prototype.hasOwnProperty.call(f,m)&&(i[m]=f[m])}return i},a.apply(this,arguments)};function n(i){var f=i,l=[];function o(C){f=a(a({},f),C);for(var v=0;v<l.length;v++)l[v]()}function m(){return f}function w(C){return l.push(C),function(){var P=l.indexOf(C);l.splice(P,1)}}return{setState:o,getState:m,subscribe:w}}},IBYe:function(M,Y,s){"use strict";function L(p){return null}Y.a=L},Ib8C:function(M,Y,s){(function(L){(function(p,A){M.exports=Y=A()})(this,function(){var p=p||function(A,b){var y;if(typeof window!="undefined"&&window.crypto&&(y=window.crypto),typeof self!="undefined"&&self.crypto&&(y=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(y=globalThis.crypto),!y&&typeof window!="undefined"&&window.msCrypto&&(y=window.msCrypto),!y&&typeof L!="undefined"&&L.crypto&&(y=L.crypto),!y&&!0)try{y=s(4)}catch(o){}var S=function(){if(y){if(typeof y.getRandomValues=="function")try{return y.getRandomValues(new Uint32Array(1))[0]}catch(o){}if(typeof y.randomBytes=="function")try{return y.randomBytes(4).readInt32LE()}catch(o){}}throw new Error("Native crypto module could not be used to get secure random number.")},T=Object.create||function(){function o(){}return function(m){var w;return o.prototype=m,w=new o,o.prototype=null,w}}(),h={},_=h.lib={},d=_.Base=function(){return{extend:function(o){var m=T(this);return o&&m.mixIn(o),(!m.hasOwnProperty("init")||this.init===m.init)&&(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var o=this.extend();return o.init.apply(o,arguments),o},init:function(){},mixIn:function(o){for(var m in o)o.hasOwnProperty(m)&&(this[m]=o[m]);o.hasOwnProperty("toString")&&(this.toString=o.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),r=_.WordArray=d.extend({init:function(o,m){o=this.words=o||[],m!=b?this.sigBytes=m:this.sigBytes=o.length*4},toString:function(o){return(o||t).stringify(this)},concat:function(o){var m=this.words,w=o.words,C=this.sigBytes,v=o.sigBytes;if(this.clamp(),C%4)for(var P=0;P<v;P++){var R=w[P>>>2]>>>24-P%4*8&255;m[C+P>>>2]|=R<<24-(C+P)%4*8}else for(var E=0;E<v;E+=4)m[C+E>>>2]=w[E>>>2];return this.sigBytes+=v,this},clamp:function(){var o=this.words,m=this.sigBytes;o[m>>>2]&=4294967295<<32-m%4*8,o.length=A.ceil(m/4)},clone:function(){var o=d.clone.call(this);return o.words=this.words.slice(0),o},random:function(o){for(var m=[],w=0;w<o;w+=4)m.push(S());return new r.init(m,o)}}),c=h.enc={},t=c.Hex={stringify:function(o){for(var m=o.words,w=o.sigBytes,C=[],v=0;v<w;v++){var P=m[v>>>2]>>>24-v%4*8&255;C.push((P>>>4).toString(16)),C.push((P&15).toString(16))}return C.join("")},parse:function(o){for(var m=o.length,w=[],C=0;C<m;C+=2)w[C>>>3]|=parseInt(o.substr(C,2),16)<<24-C%8*4;return new r.init(w,m/2)}},a=c.Latin1={stringify:function(o){for(var m=o.words,w=o.sigBytes,C=[],v=0;v<w;v++){var P=m[v>>>2]>>>24-v%4*8&255;C.push(String.fromCharCode(P))}return C.join("")},parse:function(o){for(var m=o.length,w=[],C=0;C<m;C++)w[C>>>2]|=(o.charCodeAt(C)&255)<<24-C%4*8;return new r.init(w,m)}},n=c.Utf8={stringify:function(o){try{return decodeURIComponent(escape(a.stringify(o)))}catch(m){throw new Error("Malformed UTF-8 data")}},parse:function(o){return a.parse(unescape(encodeURIComponent(o)))}},i=_.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(o){typeof o=="string"&&(o=n.parse(o)),this._data.concat(o),this._nDataBytes+=o.sigBytes},_process:function(o){var m,w=this._data,C=w.words,v=w.sigBytes,P=this.blockSize,R=P*4,E=v/R;o?E=A.ceil(E):E=A.max((E|0)-this._minBufferSize,0);var x=E*P,g=A.min(x*4,v);if(x){for(var O=0;O<x;O+=P)this._doProcessBlock(C,O);m=C.splice(0,x),w.sigBytes-=g}return new r.init(m,g)},clone:function(){var o=d.clone.call(this);return o._data=this._data.clone(),o},_minBufferSize:0}),f=_.Hasher=i.extend({cfg:d.extend(),init:function(o){this.cfg=this.cfg.extend(o),this.reset()},reset:function(){i.reset.call(this),this._doReset()},update:function(o){return this._append(o),this._process(),this},finalize:function(o){o&&this._append(o);var m=this._doFinalize();return m},blockSize:512/32,_createHelper:function(o){return function(m,w){return new o.init(w).finalize(m)}},_createHmacHelper:function(o){return function(m,w){return new l.HMAC.init(o,w).finalize(m)}}}),l=h.algo={};return h}(Math);return p})}).call(this,s("IyRk"))},JAbv:function(M,Y){M.exports="data:image/png;base64,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"},JFl9:function(M,Y,s){M.exports={footerWrap:"footerWrap___3bmMI"}},JWDV:function(M,Y,s){M.exports=s.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(M,Y){M.exports="data:image/png;base64,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"},Jky8:function(M,Y,s){"use strict";var L=s("sRBo"),p=s("kaz8"),A=s("5NDa"),b=s("5rEg"),y=s("miYZ"),S=s("tsqr"),T=s("9og8"),h=s("2qtc"),_=s("kLXV"),d=s("tJVT"),r=s("WmNS"),c=s.n(r),t=s("cDcd"),a=s.n(t),n=s("9kvl"),i=s("6CvP"),f=s("1XHU"),l=s("1vsH"),o;(function(w){w[w.Professor=1]="Professor",w[w.AssistantProfessor=2]="AssistantProfessor",w[w.Student=3]="Student"})(o||(o={}));var m=function(C){var v=C.visible,P=C.user,R=C.onCancel,E=R===void 0?function(){}:R,x=Object(t.useState)(),g=Object(d.a)(x,2),O=g[0],I=g[1],D=Object(t.useState)([]),N=Object(d.a)(D,2),V=N[0],F=N[1],W=Object(t.useState)(!1),K=Object(d.a)(W,2),B=K[0],k=K[1],G=Object(t.useState)(!1),ne=Object(d.a)(G,2),fe=ne[0],de=ne[1],Ee=Object(t.useState)(),we=Object(d.a)(Ee,2),ce=we[0],be=we[1];Object(t.useEffect)(function(){var q;if(P!=null&&(q=P.userInfo)!==null&&q!==void 0&&q.identity){var me;F([(P==null||((me=P.userInfo)===null||me===void 0)?void 0:me.identity)==="student"?3:1])}},[P]);var ve=function(me,re){if(V.includes(o.Professor)){_.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:a.a.createElement("div",{className:"tc"},re||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){n.d.push("/classrooms/".concat(me,"/students"))}});return}n.d.push("/classrooms/".concat(me,"/students"))},ue=function(){var q=Object(T.a)(c.a.mark(function me(){var re;return c.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(O){Oe.next=3;break}return S.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Oe.abrupt("return");case 3:return k(!0),Oe.next=6,Object(i.c)({invite_code:O,professor:V.includes(o.Professor)?1:null,assistant_professor:V.includes(o.AssistantProfessor)?1:null,student:V.includes(o.Student)?1:null});case 6:if(re=Oe.sent,k(!1),!((re==null?void 0:re.status)===-2)){Oe.next=22;break}if(se(),!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){Oe.next=14;break}return de(!0),be(1),Oe.abrupt("return");case 14:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=18;break}return de(!0),be(2),Oe.abrupt("return");case 18:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=22;break}return de(!0),be(3),Oe.abrupt("return");case 22:if(!((re==null?void 0:re.status)===0)){Oe.next=27;break}return Object(l.eb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),se(),(re==null?void 0:re.course_id)&&ve(re.course_id,re.message),Oe.abrupt("return");case 27:case"end":return Oe.stop()}},me)}));return function(){return q.apply(this,arguments)}}(),se=function(){var q=Object(T.a)(c.a.mark(function me(){return c.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:E();case 1:case"end":return ie.stop()}},me)}));return function(){return q.apply(this,arguments)}}();return a.a.createElement(a.a.Fragment,null,a.a.createElement(_.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:v,confirmLoading:B,onOk:ue,onCancel:se},a.a.createElement("div",{className:"tc"},a.a.createElement("div",null,a.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),a.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:O,onChange:function(me){if(me.target.value.length>=7){S.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(p.a.Group,{value:V,onChange:function(me){return F(me)}},a.a.createElement(p.a,{value:o.Professor,disabled:V.includes(2)},"\u6559\u5E08"),a.a.createElement(p.a,{value:o.AssistantProfessor,disabled:V.includes(1)},"\u52A9\u6559"),a.a.createElement(p.a,{value:o.Student},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),a.a.createElement(f.a,{visible:fe,onCancel:function(){return de(!1)},occupationValue:ce}))};Y.a=Object(n.a)(function(w){var C=w.user;return{user:C}})(m)},Jq4h:function(M,Y,s){M.exports=s.p+"static/qrcode.2267e4d5.png"},Jv0p:function(M,Y,s){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,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("3y9D"),s("WYAk"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.Base,y=A.WordArray,S=p.algo,T=S.MD5,h=S.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:T,iterations:1}),init:function(_){this.cfg=this.cfg.extend(_)},compute:function(_,d){for(var r,c=this.cfg,t=c.hasher.create(),a=y.create(),n=a.words,i=c.keySize,f=c.iterations;n.length<i;){r&&t.update(r),r=t.update(_).finalize(d),t.reset();for(var l=1;l<f;l++)r=t.finalize(r),t.reset();a.concat(r)}return a.sigBytes=i*4,a}});p.EvpKDF=function(_,d,r){return h.create(r).compute(_,d)}}(),L.EvpKDF})},KOXS:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___4BHX-",flex_space_between:"flex_space_between___fH2oM",flex_box_vertical_center:"flex_box_vertical_center___TgSS9",flex_box_center_end:"flex_box_center_end___1vKaD",flex_box_column:"flex_box_column___1kCgI",input:"input___2mV-b",dropdown:"dropdown___1QKW2",menu:"menu___37CBn",text:"text___159fF",b1:"b1___2uGyF",b2:"b2___2DXw1"}},KVXO:function(M,Y,s){M.exports={wrap:"wrap___1VfLE",content:"content___20B4M",mainPathWrap:"mainPathWrap___3qDeg",colorBlue:"colorBlue___2ZjUq"}},KeGQ:function(M,Y,s){M.exports=s.p+"static/noLevelData.36460f71.png"},KhGG:function(M,Y,s){"use strict";s.d(Y,"a",function(){return v}),s.d(Y,"c",function(){return E});var L=s("0Owb"),p=s("miYZ"),A=s("tsqr"),b=s("oBTY"),y=s("tJVT"),S=s("PpiC"),T=s("k1fw"),h=s("9og8"),_=s("DZo9"),d=s("8z0m"),r=s("WmNS"),c=s.n(r),t=s("cDcd"),a=s.n(t),n=s("ErOA"),i=s("NFKh"),f=s.n(i),l=s("7Cbv"),o=s("9kvl"),m=s("mxV5"),w=s.n(m),C=d.a.Dragger,v=function(O){var I="bf3c199c2470cb477d907b1e0917c17b",D="5183666c72eec9e4",N=f.a.enc.Utf8.parse(I),V=f.a.enc.Utf8.parse(D),F=f.a.AES.decrypt(O,N,{iv:V,mode:f.a.mode.CBC});return F.toString(f.a.enc.Utf8)},P,R=function(){var g=Object(h.a)(c.a.mark(function O(I){var D,N,V,F,W,K,B,k,G,ne,fe;return c.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return B=I.identifier,k=I.oldFilename,G=I.newFilename,Ee.next=3,Object(n.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 3:return ne=Ee.sent,ne.data=JSON.parse(v(ne.data)),fe=new w.a({endpoint:ne==null||((D=ne.data)===null||D===void 0)?void 0:D.end_point,region:ne==null||((N=ne.data)===null||N===void 0)?void 0:N.region,accessKeyId:ne==null||((V=ne.data)===null||V===void 0)?void 0:V.access_key_id,accessKeySecret:ne==null||((F=ne.data)===null||F===void 0)?void 0:F.access_key_secret,bucket:ne==null||((W=ne.data)===null||W===void 0)?void 0:W.bucket,stsToken:ne==null||((K=ne.data)===null||K===void 0)?void 0:K.security_token}),Ee.abrupt("return",new Promise(function(we,ce){console.log(11111,"".concat(B,"/").concat(k),"".concat(B,"/").concat(G),ne.data),fe.copy("/".concat(B,"/").concat(k),"/".concat(B,"/").concat(G)).then(function(be){console.log("\u62F7\u8D1D\u6210\u529F",be)}).catch(function(be){console.log(be);debugger})}));case 7:case"end":return Ee.stop()}},O)}));return function(I){return g.apply(this,arguments)}}(),E=function(){var g=Object(h.a)(c.a.mark(function O(I,D,N){var V,F,W,K,B,k,G,ne,fe,de;return c.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return D.file_name=I.name,we.next=3,Object(n.a)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return G=we.sent,console.log("decrypt(res.data):",v(G.data)),G.data=JSON.parse(v(G.data)),ne=I.name.split("."),ne.pop(),fe=D.realFileName?ne:Object(l.a)(),de=new w.a({endpoint:G==null||((V=G.data)===null||V===void 0)?void 0:V.end_point,region:G==null||((F=G.data)===null||F===void 0)?void 0:F.region,accessKeyId:G==null||((W=G.data)===null||W===void 0)?void 0:W.access_key_id,accessKeySecret:G==null||((K=G.data)===null||K===void 0)?void 0:K.access_key_secret,bucket:G==null||((B=G.data)===null||B===void 0)?void 0:B.bucket,stsToken:G==null||((k=G.data)===null||k===void 0)?void 0:k.security_token}),we.abrupt("return",new Promise(function(ce,be){var ve;de.multipartUpload("".concat(fe),new Blob([I],{type:I.type}),Object(T.a)(Object(T.a)({timeout:200*1e3,partSize:102400},N),{},{callback:{url:G==null||((ve=G.data)===null||ve===void 0)?void 0:ve.callback_url,host:G==null?void 0:G.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(n.e)(D)}})).then(function(ue){var se;I.response=(se=ue.data)===null||se===void 0?void 0:se.data,ce(ue==null?void 0:ue.data)}).catch(function(ue){be(ue),console.log("err:",ue)})}));case 11:case"end":return we.stop()}},O)}));return function(I,D,N){return g.apply(this,arguments)}}(),x=function(O){var I=O.user,D=O.cancelUpload,N=Object(S.a)(O,["user","cancelUpload"]),V=Object(t.useState)([]),F=Object(y.a)(V,2),W=F[0],K=F[1],B=Object(t.useState)(),k=Object(y.a)(B,2),G=k[0],ne=k[1],fe={onRemove:function(we){K(Object(b.a)(W.filter(function(ce){return ce.name!==we.name}))),N.onChange(W.filter(function(ce){return ce.name!==we.name}))},disabled:N.disabled,multiple:!0,fileList:W==null?void 0:W.map(function(Ee){return Ee.file}),customRequest:function(){},beforeUpload:function(){var Ee=Object(h.a)(c.a.mark(function ce(be){var ve;return c.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(ve=N.maxSize||1024*1024*1024*1,!W.filter(function(q){return q.name===be.name}).length){se.next=4;break}return A.b.info("".concat(be.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),se.abrupt("return");case 4:if(!((be==null?void 0:be.size)>ve)){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 we(ce){return Ee.apply(this,arguments)}return we}()},de=function(){var Ee=Object(h.a)(c.a.mark(function we(ce,be){var ve,ue,se,q,me,re,ie,Oe,le,$;return c.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(Oe=te.sent,Oe.data=JSON.parse(v(Oe.data)),!((Oe==null?void 0:Oe.status)!==0)){te.next=12;break}return W[W.findIndex(function(Ae){return Ae.name===ie})].status="error",W[W.findIndex(function(Ae){return Ae.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 w.a({endpoint:Oe==null||((ve=Oe.data)===null||ve===void 0)?void 0:ve.end_point,region:Oe==null||((ue=Oe.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:Oe==null||((se=Oe.data)===null||se===void 0)?void 0:se.access_key_id,accessKeySecret:Oe==null||((q=Oe.data)===null||q===void 0)?void 0:q.access_key_secret,bucket:Oe==null||((me=Oe.data)===null||me===void 0)?void 0:me.bucket,stsToken:Oe==null||((re=Oe.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(Ae,Se){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 Ct=W.findIndex(function(wt){return wt.name===ie});W[Ct].file.percent=ot*100,W[Ct].tempCheckpoint=gt,K(Object(b.a)(W))}catch(wt){}},checkpoint:W[W.findIndex(function(rt){return rt.name===ie})].tempCheckpoint,callback:{customValue:{id:ie+""},url:Oe==null||((ke=Oe.data)===null||ke===void 0)?void 0:ke.callback_url,host:Oe==null?void 0:Oe.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(rt){var ot,gt=W.findIndex(function(Ue){return Ue.name===ie}),Et="done";if(((ot=rt.data)===null||ot===void 0?void 0:ot.status)===0){var Ct;ce.response=(Ct=rt.data)===null||Ct===void 0?void 0:Ct.data;var wt=W.findIndex(function(Ue){return Ue.name===ie});W[wt].status="done",W[wt].file.status="done"}else{var Qe;A.b.warn((Qe=rt.data)===null||Qe===void 0?void 0:Qe.message),Et="error"}W[gt].status=Et,W[gt].file.status=Et,N.onChange(W),Ae(rt==null?void 0:rt.data)}).catch(function(rt){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),Se(rt),console.log("err:",rt)})}catch(rt){}}));case 19:case"end":return te.stop()}},we)}));return function(ce,be){return Ee.apply(this,arguments)}}();return Object(t.useEffect)(function(){W.every(function(Ee){return Ee==="done"||Ee==="error"})&&N.onComplete(W)},[W]),Object(t.useEffect)(function(){if(D){var Ee;(Ee=G)===null||Ee===void 0||Ee.cancel()}},[D]),Object(t.useEffect)(function(){N.uploading&&W.map(function(){var Ee=Object(h.a)(c.a.mark(function we(ce){var be,ve;return c.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()}},we)}));return function(we){return Ee.apply(this,arguments)}}())},[N.uploading]),a.a.createElement(C,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(o.a)(function(g){var O=g.loading,I=g.globalSetting,D=g.user;return{globalSetting:I,loading:O.models.competitions,user:D}})(x)},KmYQ:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return L.pad.ZeroPadding={pad:function(p,A){var b=A*4;p.clamp(),p.sigBytes+=b-(p.sigBytes%b||b)},unpad:function(p){for(var A=p.words,b=p.sigBytes-1,b=p.sigBytes-1;b>=0;b--)if(A[b>>>2]>>>24-b%4*8&255){p.sigBytes=b+1;break}}},L.pad.ZeroPadding})},"L+Ii":function(M,Y,s){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,s){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var L=function(){function c(t,a){for(var n=0;n<a.length;n++){var i=a[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,a,n){return a&&c(t.prototype,a),n&&c(t,n),t}}(),p=s("cDcd"),A=S(p),b=s("17x9"),y=S(b);function S(c){return c&&c.__esModule?c:{default:c}}function T(c,t){var a={};for(var n in c){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(c,n))continue;a[n]=c[n]}return a}function h(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function _(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function d(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var r=function(c){d(t,c);function t(a){h(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(f){}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,f=this.getParentElement(n),l=void 0;if(this.props.useWindow){var o=document.documentElement||document.body.parentNode||document.body,m=i.pageYOffset!==void 0?i.pageYOffset:o.scrollTop;this.props.isReverse?l=m:l=this.calculateOffset(n,m)}else this.props.isReverse?l=f.scrollTop:l=n.scrollHeight-f.scrollTop-f.clientHeight;l<Number(this.props.threshold)&&n&&n.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=f.scrollHeight,this.beforeScrollTop=f.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(n,i){return n?this.calculateTopPosition(n)+(n.offsetHeight-i-window.innerHeight):0}},{key:"calculateTopPosition",value:function(n){return n?n.offsetTop+this.calculateTopPosition(n.offsetParent):0}},{key:"render",value:function(){var n=this,i=this.filterProps(this.props),f=i.children,l=i.element,o=i.hasMore,m=i.initialLoad,w=i.isReverse,C=i.loader,v=i.loadMore,P=i.pageStart,R=i.ref,E=i.threshold,x=i.useCapture,g=i.useWindow,O=i.getScrollParent,I=T(i,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);I.ref=function(N){n.scrollComponent=N,R&&R(N)};var D=[f];return o&&(C?w?D.unshift(C):D.push(C):this.defaultLoader&&(w?D.unshift(this.defaultLoader):D.push(this.defaultLoader))),A.default.createElement(l,I,D)}}]),t}(p.Component);r.propTypes={children:y.default.node.isRequired,element:y.default.node,hasMore:y.default.bool,initialLoad:y.default.bool,isReverse:y.default.bool,loader:y.default.node,loadMore:y.default.func.isRequired,pageStart:y.default.number,ref:y.default.func,getScrollParent:y.default.func,threshold:y.default.number,useCapture:y.default.bool,useWindow:y.default.bool},r.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},Y.default=r,M.exports=Y.default},Lai7:function(M,Y,s){M.exports=s.p+"static/noEnvData.6108fa6c.png"},LdHM:function(M,Y,s){"use strict";s.d(Y,"b",function(){return m}),s.d(Y,"a",function(){return C});var L=s("1OyB"),p=s("vuIU"),A=s("Ji7U"),b=s("LK+K"),y=s("cDcd"),S=s("rePB"),T=s("Ff2n"),h=s("ODXe"),_=s("4IlW"),d=s("bX4T"),r=s("YrtM"),c=s("TSYQ"),t=s.n(c),a=s("+nKL"),n=s("8OUc"),i=function(G,ne){var fe=G.prefixCls,de=G.id,Ee=G.flattenOptions,we=G.childrenAsData,ce=G.values,be=G.searchValue,ve=G.multiple,ue=G.defaultActiveFirstOption,se=G.height,q=G.itemHeight,me=G.notFoundContent,re=G.open,ie=G.menuItemSelectedIcon,Oe=G.virtual,le=G.onSelect,$=G.onToggleOpen,J=G.onActiveValue,te=G.onScroll,Ae=G.onMouseEnter,Se="".concat(fe,"-item"),ke=Object(r.a)(function(){return Ee},[re,Ee],function(_t,Ye){return Ye[0]&&_t[1]!==Ye[1]}),rt=y.useRef(null),ot=function(Ye){Ye.preventDefault()},gt=function(Ye){rt.current&&rt.current.scrollTo({index:Ye})},Et=function(Ye){for(var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xe=ke.length,Te=0;Te<Xe;Te+=1){var Me=(Ye+Te*We+Xe)%Xe,Ve=ke[Me],Ge=Ve.group,Ze=Ve.data;if(!Ge&&!Ze.disabled)return Me}return-1},Ct=y.useState(function(){return Et(0)}),wt=Object(h.a)(Ct,2),Qe=wt[0],Ue=wt[1],ft=function(Ye){Ue(Ye);var We=ke[Ye];if(!We){J(null,-1);return}J(We.data.value,Ye)};y.useEffect(function(){ft(ue!==!1?Et(0):-1)},[ke.length,be]),y.useEffect(function(){var _t=setTimeout(function(){if(!ve&&re&&ce.size===1){var Ye=Array.from(ce)[0],We=ke.findIndex(function(Xe){var Te=Xe.data;return Te.value===Ye});ft(We),gt(We)}});return function(){return clearTimeout(_t)}},[re]);var jt=function(Ye){Ye!==void 0&&le(Ye,{selected:!ce.has(Ye)}),ve||$(!1)};if(y.useImperativeHandle(ne,function(){return{onKeyDown:function(Ye){var We=Ye.which;switch(We){case _.a.UP:case _.a.DOWN:{var Xe=0;if(We===_.a.UP?Xe=-1:We===_.a.DOWN&&(Xe=1),Xe!==0){var Te=Et(Qe+Xe,Xe);gt(Te),ft(Te)}break}case _.a.ENTER:{var Me=ke[Qe];Me&&!Me.data.disabled?jt(Me.data.value):jt(void 0),re&&Ye.preventDefault();break}case _.a.ESC:$(!1)}},onKeyUp:function(){},scrollTo:function(Ye){gt(Ye)}}}),ke.length===0)return y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),className:"".concat(Se,"-empty"),onMouseDown:ot},me);function ht(_t){var Ye=ke[_t];if(!Ye)return null;var We=Ye.data||{},Xe=We.value,Te=We.label,Me=We.children,Ve=Object(d.a)(We,!0),Ge=we?Me:Te;return Ye?y.createElement("div",Object.assign({"aria-label":typeof Ge=="string"?Ge:null},Ve,{key:_t,role:"option",id:"".concat(de,"_list_").concat(_t),"aria-selected":ce.has(Xe)}),Xe):null}return y.createElement(y.Fragment,null,y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),style:{height:0,width:0,overflow:"hidden"}},ht(Qe-1),ht(Qe),ht(Qe+1)),y.createElement(a.a,{itemKey:"key",ref:rt,data:ke,height:se,itemHeight:q,fullHeight:!1,onMouseDown:ot,onScroll:te,virtual:Oe,onMouseEnter:Ae},function(_t,Ye){var We,Xe=_t.group,Te=_t.groupOption,Me=_t.data,Ve=Me.label,Ge=Me.key;if(Xe)return y.createElement("div",{className:t()(Se,"".concat(Se,"-group"))},Ve!==void 0?Ve:Ge);var Ze=Me.disabled,mt=Me.value,Pt=Me.title,Gt=Me.children,dn=Me.style,Tt=Me.className,ut=Object(T.a)(Me,["disabled","value","title","children","style","className"]),je=ce.has(mt),tt="".concat(Se,"-option"),nt=t()(Se,tt,Tt,(We={},Object(S.a)(We,"".concat(tt,"-grouped"),Te),Object(S.a)(We,"".concat(tt,"-active"),Qe===Ye&&!Ze),Object(S.a)(We,"".concat(tt,"-disabled"),Ze),Object(S.a)(We,"".concat(tt,"-selected"),je),We)),De=we?Gt:Ve,Fe=!ie||typeof ie=="function"||je;return y.createElement("div",Object.assign({},ut,{"aria-selected":je,className:nt,title:Pt,onMouseMove:function(){if(Qe===Ye||Ze)return;ft(Ye)},onClick:function(){Ze||jt(mt)},style:dn}),y.createElement("div",{className:"".concat(tt,"-content")},De||mt),y.isValidElement(ie)||je,Fe&&y.createElement(n.a,{className:"".concat(Se,"-option-state"),customizeIcon:ie,customizeIconProps:{isSelected:je}},je?"\u2713":null))}))},f=y.forwardRef(i);f.displayName="OptionList";var l=f,o=function(){return null};o.isSelectOption=!0;var m=o,w=function(){return null};w.isSelectOptGroup=!0;var C=w,v=s("VTBJ"),P=s("Zm9Q");function R(k){var G=k.key,ne=k.props,fe=ne.children,de=ne.value,Ee=Object(T.a)(ne,["children","value"]);return Object(v.a)({key:G,value:de!==void 0?de:G,children:fe},Ee)}function E(k){var G=arguments.length>1&&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,Ee=ne.key,we=ne.props,ce=we.children,be=Object(T.a)(we,["children"]);return G||!de?R(ne):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?fe:Ee,"__"),label:Ee},be),{},{options:E(ce)})}).filter(function(ne){return ne})}var x=s("2Qr1"),g=s("qNPg"),O=s("U8pU"),I=s("Kwbf"),D=s("WKfj");function N(k){var G=k.mode,ne=k.options,fe=k.children,de=k.backfill,Ee=k.allowClear,we=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,Oe=G==="multiple"||G==="tags",le=be!==void 0?be:Oe||G==="combobox",$=ne||E(fe);if(Object(I.a)(G!=="tags"||$.every(function(Se){return!Se.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(Se){return Se.options?Se.options.some(function(ke){return typeof("value"in ke?ke.value:ke.key)=="number"}):typeof("value"in Se?Se.value:Se.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||!Ee||!we,"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(Se){return Object(O.a)(Se)==="object"&&("key"in Se||"value"in Se)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(I.a)(!Oe||Array.isArray(me),"`value` should be array when `mode` is `multiple` or `tags`")}if(fe){var Ae=null;Object(P.a)(fe).some(function(Se){if(!y.isValidElement(Se)||!Se.type)return!1;var ke=Se.type;if(ke.isSelectOption)return!1;if(ke.isSelectOptGroup){var rt=Object(P.a)(Se.props.children).every(function(ot){return!y.isValidElement(ot)||!Se.type||ot.type.isSelectOption?!0:(Ae=ot.type,!1)});return!rt}return Ae=ke,!0}),Ae&&Object(I.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(I.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var V=N,F=Object(g.a)({prefixCls:"rc-select",components:{optionList:l},convertChildrenToData:E,flattenOptions:x.d,getLabeledValue:x.e,filterOptions:x.b,isValueDisabled:x.g,findValueOption:x.c,warningProps:V,fillOptionsWithMissingValue:x.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(p.a)(ne,[{key:"render",value:function(){return y.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),ne}(y.Component);W.Option=m,W.OptGroup=C;var K=W,B=Y.c=K},Lf5v:function(M,Y,s){"use strict";var L=s("5NDa"),p=s("5rEg"),A=s("2qtc"),b=s("kLXV"),y=s("k1fw"),S=s("oBTY"),T=s("9og8"),h=s("miYZ"),_=s("tsqr"),d=s("y8nQ"),r=s("Vl3Y"),c=s("tJVT"),t=s("DZo9"),a=s("8z0m"),n=s("WmNS"),i=s.n(n),f=s("cDcd"),l=s.n(f),o=s("m3rI"),m=s("ErOA"),w=s("sckv"),C=s.n(w),v=s("KhGG"),P=s("1vsH"),R=a.a.Dragger,E=function(g){var O,I=g.dispatch,D=g.id,N=g.onClose,V=g.onOK,F=g.visible,W=g.wrapClassName,K=g.local,B=g.containerId,k=g.rootIdentifier,G=Object(f.useState)({}),ne=Object(c.a)(G,2),fe=ne[0],de=ne[1],Ee=Object(f.useState)([]),we=Object(c.a)(Ee,2),ce=we[0],be=we[1],ve=Object(f.useState)([]),ue=Object(c.a)(ve,2),se=ue[0],q=ue[1],me=Object(f.useState)(0),re=Object(c.a)(me,2),ie=re[0],Oe=re[1],le=Object(f.useState)(!1),$=Object(c.a)(le,2),J=$[0],te=$[1],Ae=Object(f.useState)(!1),Se=Object(c.a)(Ae,2),ke=Se[0],rt=Se[1],ot=r.a.useForm(),gt=Object(c.a)(ot,1),Et=gt[0],Ct=Object(f.useState)([]),wt=Object(c.a)(Ct,2),Qe=wt[0],Ue=wt[1],ft=Object(f.useRef)([]);Object(f.useEffect)(function(){F&&(Et.resetFields(),Ue([]),q([]),be([]),Oe(0),rt(!1),te(!1))},[F]);var jt=function(je){if(je.file.status==="done"||je.file.status==="uploading"){var tt,nt,De;if(Ue(je.fileList),!je.file.response)return;if((tt=je.file.response)!==null&&tt!==void 0&&tt.id){_.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Ue(Qe.filter(function(Fe){return Fe.uid!==je.file.uid})),((nt=je.file.response)===null||nt===void 0?void 0:nt.message)&&_.b.info((De=je.file.response)===null||De===void 0?void 0:De.message)}},ht=function(){var ut=Object(T.a)(i.a.mark(function je(tt){var nt,De,Fe;return i.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(ie){dt.next=8;break}return De=Qe.filter(function(xt){return xt.uid!==tt.uid}),Ue(De),ft.current=Object(S.a)(De),be(ce.filter(function(xt){return xt!==tt.name})),_.b.info("\u5220\u9664\u6210\u529F"),De.length||(Et.setFieldsValue({file:void 0}),Et.validateFields()),dt.abrupt("return");case 8:if(tt.response){dt.next=11;break}return _.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),dt.abrupt("return");case 11:return dt.next=13,Object(m.a)("/api/shixuns/".concat(D,"/destroy_data_sets.json"),{method:"Delete",body:{id:[tt==null||((nt=tt.response)===null||nt===void 0)?void 0:nt.id]}});case 13:Fe=dt.sent,Fe.status===0&&(Ue(Qe.filter(function(xt){return xt.uid!==tt.uid})),_.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return dt.stop()}},je)}));return function(tt){return ut.apply(this,arguments)}}(),_t=function(je){if(Qe!=null&&Qe.some(function(nt){return nt.name===je.name}))return _.b.info("".concat(je.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var tt={name:je.name,uid:je.uid,file:je,percent:0};return Qe.push(tt),ft.current=Object(S.a)(Qe),Ue(Object(S.a)(Qe)),!1},Ye={height:300,multiple:!0,disabled:ie>0,withCredentials:!0,fileList:Qe,action:"".concat(o.a.API_SERVER,"/api/attachments.json"),onChange:jt,onRemove:ht,beforeUpload:_t},We=function(je,tt,nt,De,Fe){var bt=new FormData;Object.keys(je).forEach(function(xt){bt.append(xt,je[xt])});var dt=new window.XMLHttpRequest;return dt.withCredentials=!0,dt.addEventListener("load",function(xt){var kt;nt(JSON.parse(xt==null||((kt=xt.target)===null||kt===void 0)?void 0:kt.response))},!1),dt.addEventListener("error",function(xt){Fe&&Fe(xt)},!1),dt.upload.onprogress=function(xt){De&&De(xt)},dt.open("POST",tt),dt.send(bt),dt},Xe=function(je,tt){if(je.lengthComputable){var nt=Math.floor(je.loaded/je.total*100),De=Object(y.a)(Object(y.a)({},tt),{},{percent:nt,status:nt===100?"done":"uploading"});console.log(ft.current,333),ft.current=ft.current.map(function(Fe){return Fe.uid===tt.uid?De:Fe}),Ue(ft.current)}},Te=function(je,tt){var nt=Object(y.a)(Object(y.a)({},tt),{},{status:"error"});_.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ft.current=ft.current.map(function(De){return De.uid===tt.uid?nt:De}),ft.current.every(function(De){return De.status==="done"||De.status==="error"})&&(rt(!1),Oe(2)),Ue(ft.current)},Me=function(je,tt){var nt=Object(y.a)(Object(y.a)({},tt),{},{status:"done"});if(je.status===0||(nt=Object(y.a)(Object(y.a)({},tt),{},{status:"error"}),_.b.error("\u4E0A\u4F20\u5931\u8D25!")),ft.current=ft.current.map(function(De){return De.uid===tt.uid?nt:De}),ft.current.every(function(De){return De.status==="done"})){_.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Pt(!0);return}ft.current.every(function(De){return De.status==="done"||De.status==="error"})&&(rt(!1),Oe(2)),Ue(ft.current)},Ve=function(){var je=!0;return window.navigator.onLine==!0?je=!0:je=!1,je},Ge=function(){var ut=Object(T.a)(i.a.mark(function je(tt){var nt,De,Fe,bt,dt,xt,kt,et;return i.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(rt(!0),!(ie===3)){Ht.next=4;break}return Oe(2),Ht.abrupt("return");case 4:if(!(ie===2||ie===1)){Ht.next=7;break}return Ze(),Ht.abrupt("return");case 7:return nt=tt||{},De=nt.commitMessage,Fe=De===void 0?"":De,bt=nt.fileOss,dt=bt===void 0?[]:bt,xt=K?Qe:dt,kt=xt.map(function(_n){return _n.name}),Ht.next=12,Object(m.a)("/api/shixuns/".concat(D,"/check_data_sets"),{method:"post",body:{files_name:kt}});case 12:if(et=Ht.sent,!(et.status===-3)){Ht.next=17;break}return be(et==null?void 0:et.exist_files),rt(!1),Ht.abrupt("return");case 17:if(!(JSON.stringify(et)==="{}")){Ht.next=21;break}return rt(!1),_.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Ht.abrupt("return");case 21:et.status===0&&(Qe.forEach(function(_n){var vn=We({file:_n.file,description:Fe},"".concat(o.a.API_SERVER,"/api/shixuns/").concat(D,"/upload_data_sets.json"),function(fn){return Me(fn,_n)},function(fn){return Xe(fn,_n)},function(fn){return Te(fn,_n)});se.push(vn)}),Oe(1));case 22:case"end":return Ht.stop()}},je)}));return function(tt){return ut.apply(this,arguments)}}(),Ze=function(){var je=Object(y.a)({},Et.getFieldsValue())||{},tt=je.commitMessage,nt=tt===void 0?"":tt,De=ft.current.filter(function(bt){return bt.status==="error"}),Fe=ft.current.map(function(bt){return Object(y.a)(Object(y.a)({},bt),{},{status:bt.status==="error"?"uploading":bt.status})});Ue(Fe),De.forEach(function(bt){var dt=We({file:bt.file,description:nt},"".concat(o.a.API_SERVER,"/api/shixuns/").concat(D,"/upload_data_sets.json"),function(xt){return Me(xt,bt)},function(xt){return Xe(xt,bt)},function(xt){return Te(xt,bt)});se.push(dt)})},mt=function(je){if(console.log(je,"changedValues"),"fileOss"in je){var tt,nt;if(je!=null&&je.fileOss.every(function(De){return De.status==="done"})&&je!==null&&je!==void 0&&(tt=je.fileOss)!==null&&tt!==void 0&&tt.length){_.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Pt(!0);return}if(je!=null&&je.fileOss.every(function(De){return De.status==="done"||De.status==="error"})&&je!==null&&je!==void 0&&(nt=je.fileOss)!==null&&nt!==void 0&&nt.length){Oe(3),rt(!1);return}be(ce.filter(function(De){var Fe;return je==null||((Fe=je.fileOss)===null||Fe===void 0)?void 0:Fe.some(function(bt){return bt.name===De})}))}de(Object(y.a)({},Et.getFieldsValue()))},Pt=function(je){je||(te(!0),se.forEach(function(tt){tt.abort()})),V(),N()},Gt=function(){var je=Object(y.a)({},Et.getFieldsValue())||{},tt=je.fileOss,nt=tt===void 0?[]:tt,De=Qe==null?void 0:Qe.every(function(bt){return bt.status==="done"}),Fe=nt==null?void 0:nt.every(function(bt){return bt.status==="done"});if(!De||!Fe){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(){Pt()}});return}Pt()},dn=function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",null,l.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(C.a.colorBlue)})),l.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",l.a.createElement("span",{className:"".concat(C.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},Tt=function(je){console.log(je,444)};return l.a.createElement(b.a,{visible:F,wrapClassName:W,onOk:function(){Object(P.eb)(["\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:Gt,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},l.a.createElement("div",{className:C.a.wrap},l.a.createElement(r.a,{className:"mt10",form:Et,scrollToFirstError:!0,layout:"vertical",onFinish:Ge,onValuesChange:mt},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,Ye," ",dn())):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:dn(),onComplete:Tt,realFileName:!0})),!!ce.length&&l.a.createElement("span",{className:C.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(p.a,{bordered:!1,disabled:ie>0,maxLength:100,suffix:"".concat(((O=fe.commitMessage)===null||O===void 0?void 0:O.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};Y.a=E},M8RZ:function(M,Y,s){"use strict";s.d(Y,"a",function(){return _});var L=s("fWQN"),p=s("mtLc"),A=s("yKVA"),b=s("879j"),y=s("cDcd"),S=s.n(y),T=s("faye"),h=s.n(T),_=function(d){Object(A.a)(c,d);var r=Object(b.a)(c);function c(t){var a;Object(L.a)(this,c),a=r.call(this,t);var n=window.document;return a.node=n.createElement("div"),n.body.appendChild(a.node),a}return Object(p.a)(c,[{key:"render",value:function(){var a=this.props.children;return Object(T.createPortal)(a,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),c}(S.a.Component)},MEgm:function(M,Y){M.exports="data:image/png;base64,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"},MlIO:function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){return function(p){var A=L,b=A.lib,y=b.Base,S=b.WordArray,T=A.x64={},h=T.Word=y.extend({init:function(d,r){this.high=d,this.low=r}}),_=T.WordArray=y.extend({init:function(d,r){d=this.words=d||[],r!=p?this.sigBytes=r:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,r=d.length,c=[],t=0;t<r;t++){var a=d[t];c.push(a.high),c.push(a.low)}return S.create(c,this.sigBytes)},clone:function(){for(var d=y.clone.call(this),r=d.words=this.words.slice(0),c=r.length,t=0;t<c;t++)r[t]=r[t].clone();return d}})}(),L})},N3QO:function(M,Y,s){"use strict";var L=s("2qtc"),p=s("kLXV"),A=s("tJVT"),b=s("cDcd"),y=s.n(b),S=s("9kvl"),T=s("FPkq"),h=s.n(T),_=function(r){var c,t=r.newShixuns,a=r.dispatch,n=r.user,i=Object(b.useState)(!1),f=Object(A.a)(i,2),l=f[0],o=f[1];Object(b.useEffect)(function(){t.actionTabs.key==="Create-Environment"&&w()},[t==null||((c=t.actionTabs)===null||c===void 0)?void 0:c.key]);var m=function(){a({type:"newShixuns/setActionTabs",payload:{}})},w=function(){var v,P,R;m(),((v=n.userInfo)===null||v===void 0?void 0:v.mirror_marker_status)===0?o(!0):((P=n.userInfo)===null||P===void 0?void 0:P.mirror_marker_status)===1?S.d.push("/shixuns/new/CreateImg"):((R=n.userInfo)===null||R===void 0?void 0:R.mirror_marker_status)===2&&p.a.confirm({title:"\u60A8\u4ECA\u65E5\u5DF2\u8FBE\u5230\u7533\u8BF7\u4E0A\u9650\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u4E91\u4E3B\u673A\u5217\u8868\uFF1F",content:"\u63D0\u793A\uFF1A\u6BCF\u5929\u6700\u591A\u5141\u8BB8\u7533\u8BF7\u4E00\u53F0\u4E91\u4E3B\u673A",okText:"\u8DF3\u8F6C",cancelText:"\u53D6\u6D88",onOk:function(){var x;S.d.push("/users/".concat((x=n.userInfo)===null||x===void 0?void 0:x.login,"/experiment-img"))}})};return y.a.createElement(p.a,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",visible:l,footer:null,onCancel:function(){o(!1)}},y.a.createElement("div",{style:{textAlign:"center"}},y.a.createElement("br",null),y.a.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:h.a,alt:"\u4E8C\u7EF4\u7801"})),y.a.createElement("img",null))};Y.a=Object(S.a)(function(d){var r=d.newShixuns,c=d.user,t=d.globalSetting;return{newShixuns:r,globalSetting:t,user:c}})(_)},NFKh:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("MlIO"),s("F+F2"),s("qM6L"),s("ETIr"),s("wbyO"),s("cv67"),s("3y9D"),s("lPiR"),s("GRuw"),s("1uat"),s("uGsb"),s("5hvy"),s("ELcG"),s("WYAk"),s("e7zE"),s("K3mO"),s("OLod"),s("ALsQ"),s("9OqN"),s("qu8F"),s("S6kV"),s("gb/T"),s("qBft"),s("oRuE"),s("jO9C"),s("KmYQ"),s("uGxW"),s("bQjk"),s("wZgz"),s("pA7S"),s("w7YG"),s("E4JC"),s("PVpz"))})(this,function(L){return L})},NLgs:function(M,Y,s){"use strict";s.d(Y,"e",function(){return m}),s.d(Y,"f",function(){return w}),s.d(Y,"d",function(){return v}),s.d(Y,"c",function(){return P}),s.d(Y,"a",function(){return R}),s.d(Y,"b",function(){return E});var L=s("miYZ"),p=s("tsqr"),A=s("9og8"),b=s("2qtc"),y=s("kLXV"),S=s("WmNS"),T=s.n(S),h=s("cDcd"),_=s.n(h),d=s("9kvl"),r=s("xKgJ"),c=s("1vsH"),t=s("RCxd"),a=s("yTi+"),n=s.n(a),i=s("1ZF9"),f=s.n(i),l=s("NoGO"),o=s.n(l),m=function(g){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(w(g)&&C(O))},w=function(g){return Object(r.p)()?!0:(g({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},C=function(){var g,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,I=Object(d.c)()._store.getState(),D=I.user;return(g=D.userInfo)!==null&&g!==void 0&&g.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:O?"\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 g,O=Object(d.c)()._store.getState(),I=O.user;return(g=I.userInfo)!==null&&g!==void 0&&g.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(c.U)("/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:o.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},R=function(g,O){return g?!0:(y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:_.a.createElement("div",null,_.a.createElement("p",null,O||"\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:f.a,width:200}),_.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(c.U)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},E=function(g){var O=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",O,"\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",O,"\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 V=Object(A.a)(T.a.mark(function W(){var K;return T.a.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,g({type:"shixunsDetail/cancelRelease",payload:{id:D==null?void 0:D.identifier}});case 2:K=k.sent,K.status!==401&&(p.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),g({type:"shixunsDetail/getShixunsDetail",payload:{id:D==null?void 0:D.identifier}}),g({type:"practiceSetting/getCommonData",payload:{id:D==null?void 0:D.identifier}}));case 4:case"end":return k.stop()}},W)}));function F(){return V.apply(this,arguments)}return F}()})}}),!0):!1}},NQs2:function(M,Y,s){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,s){"use strict";s.d(Y,"a",function(){return h}),s.d(Y,"h",function(){return n}),s.d(Y,"l",function(){return o}),s.d(Y,"e",function(){return R}),s.d(Y,"i",function(){return O}),s.d(Y,"j",function(){return ue}),s.d(Y,"c",function(){return te}),s.d(Y,"b",function(){return ot}),s.d(Y,"g",function(){return wt}),s.d(Y,"f",function(){return jt}),s.d(Y,"k",function(){return Ge}),s.d(Y,"d",function(){return Gt});var L=s("cDcd"),p=s.n(L),A=s("NQs2"),b=s.n(A),y=s("ygoZ"),S=s.n(y),T=function(Tt){var ut=Tt.dataSource,je=ut===void 0?[]:ut,tt=Tt.img,nt=Tt.imgWidth,De=nt===void 0?346:nt,Fe=Tt.title,bt=Tt.sunTitle,dt=Tt.bannerExtraContent;return p.a.createElement("div",{className:b.a.banner},p.a.createElement("div",{className:b.a.content},p.a.createElement("aside",null,p.a.createElement("p",null,p.a.createElement("b",null,Fe),p.a.createElement("span",null,bt)),je.length>0&&p.a.createElement("div",{className:b.a.btns},je.map(function(xt,kt){return p.a.createElement("div",{key:kt,onClick:xt.click},xt.name,xt.sign?p.a.createElement("img",{src:S.a,width:39}):null)})),dt),p.a.createElement("img",{style:{marginTop:33,marginRight:38},src:tt,width:De})))},h=T,_=s("tJVT"),d=s("6nfa"),r=s.n(d),c=s("TSYQ"),t=s.n(c),a=function(Tt){var ut=Tt.dataSource,je=ut===void 0?[]:ut,tt=Tt.value,nt=Tt.onChange,De=Tt.className,Fe=Tt.title,bt=Tt.titleWidth,dt=bt===void 0?41:bt,xt=Tt.style,kt=xt===void 0?{}:xt,et=Tt.fontColor,Mt=et===void 0?"#6A7283":et,Ht=Object(L.useState)(0),_n=Object(_.a)(Ht,2),vn=_n[0],fn=_n[1],Gn=Object(L.useState)(!1),wn=Object(_.a)(Gn,2),rn=wn[0],Qn=wn[1],Zn=Object(L.useRef)(null);return Object(L.useEffect)(function(){if(je.length!==0){var rr;(Zn==null||((rr=Zn.current)===null||rr===void 0)?void 0:rr.clientHeight)>92?fn(1):fn(0)}je.length===0&&fn(0)},[je]),p.a.createElement("div",{className:t()(r.a.row,De),style:kt},p.a.createElement("div",{style:{width:dt,marginTop:rn?12:4},className:r.a.title},Fe),p.a.createElement("div",{className:rn?"".concat(r.a.tagsWrap," ").concat(r.a.tagsBorderWrap):r.a.tagsWrap},p.a.createElement("div",{className:r.a.bar,style:vn>0?{height:vn===1?92:"auto",overflow:vn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},p.a.createElement("div",{className:r.a.name,ref:Zn},je==null?void 0:je.map(function(rr){return p.a.createElement("span",{onClick:function(){return nt(rr.id)},key:rr.id,title:rr.name,style:{color:Mt},className:tt===rr.id?r.a.active:""},rr.name)}))),!!vn&&p.a.createElement(L.Fragment,null,vn===1?p.a.createElement("div",{onClick:function(){var $n;fn(2),(Zn==null||(($n=Zn.current)===null||$n===void 0)?void 0:$n.clientHeight)>205?Qn(!0):Qn(!1)},className:r.a.action},"\u5C55\u5F00",p.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):p.a.createElement("div",{onClick:function(){fn(1),Qn(!1)},className:r.a.action},"\u6536\u8D77",p.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},n=a,i=s("cz0n"),f=s.n(i),l=function(Tt){var ut=Tt.dataSource,je=ut===void 0?[]:ut,tt=Tt.value,nt=Tt.onChange,De=Tt.className;return p.a.createElement("div",{className:t()(f.a.tabs,De)},je.map(function(Fe){return p.a.createElement("span",{onClick:function(){return nt(Fe.id)},className:tt===Fe.id?f.a.active:"",key:Fe.id},Fe.name)}))},o=l,m=s("5NDa"),w=s("5rEg"),C=s("KOXS"),v=s.n(C),P=function(Tt){var ut,je=Tt.dataSource,tt=je===void 0?[]:je,nt=Tt.value,De=Tt.onChange,Fe=Tt.className,bt=Tt.style,dt=bt===void 0?{}:bt,xt=Tt.placeholder,kt=Object(L.useState)(""),et=Object(_.a)(kt,2),Mt=et[0],Ht=et[1],_n=Object(L.useState)(""),vn=Object(_.a)(_n,2),fn=vn[0],Gn=vn[1];Object(L.useEffect)(function(){var Qn;(Qn=JSON.stringify(nt))!==null&&Qn!==void 0&&Qn.includes("{")?(Ht(nt.id),Gn(nt.value)):Gn(nt)},[nt]);var wn=function(){De(fn,Mt||null)},rn=function(Zn){if(Zn===Mt)return;Ht(Zn),De(fn,Zn)};return p.a.createElement("div",{className:t()(v.a.input,Fe),style:dt},!!tt.length&&p.a.createElement("div",{className:v.a.dropdown},p.a.createElement("div",{className:v.a.text},(ut=tt.find(function(Qn){return Qn.id===Mt}))===null||ut===void 0?void 0:ut.name,p.a.createElement("i",{className:"iconfont icon-zhankai4"}),p.a.createElement("b",{className:v.a.b1}),p.a.createElement("b",{className:v.a.b2})),p.a.createElement("div",{className:v.a.menu},tt.map(function(Qn,Zn){return p.a.createElement("div",{key:Zn,onClick:function(){return rn(Qn.id)}},Qn.name)}))),p.a.createElement(w.a,{onPressEnter:wn,value:fn,onChange:function(Zn){return Gn(Zn.target.value)},bordered:!1,placeholder:xt}),p.a.createElement("i",{onClick:wn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=P,E=s("f9pc"),x=s.n(E),g=function(Tt){var ut=Tt.value,je=Tt.onChange,tt=Tt.className,nt=Tt.total,De=Tt.pageSize,Fe=Tt.style,bt=Fe===void 0?{}:Fe,dt=ut<2,xt=ut>=Math.ceil(nt/De);return nt<=De?p.a.createElement(p.a.Fragment,null):p.a.createElement("div",{className:t()(x.a.quickPager,tt),style:bt},p.a.createElement("div",{onClick:function(){dt||je(ut-1,"prev")},className:dt?x.a.disabled:""},"\u4E0A\u4E00\u9875"),p.a.createElement("div",{onClick:function(){xt||je(ut+1,"next")},className:xt?x.a.disabled:""},"\u4E0B\u4E00\u9875"))},O=g,I=s("T2oS"),D=s("W9HT"),N=s("pC0b"),V=s("GzdX"),F=s("5Dmo"),W=s("3S7+"),K=s("Oe0F"),B=s.n(K),k=s("m3rI"),G=s("1vsH"),ne=s("JAbv"),fe=s.n(ne),de=s("Bq7L"),Ee=s.n(de),we=s("MEgm"),ce=s.n(we),be=s("BdwD"),ve=function(Tt){var ut=Tt.className,je=Tt.dataSource,tt=je===void 0?[]:je,nt=Tt.col,De=nt===void 0?4:nt,Fe=Tt.right,bt=Tt.bottom,dt=bt===void 0?23:bt,xt=Tt.precision,kt=xt===void 0?0:xt,et=Tt.wrapWidth,Mt=et===void 0?1200:et,Ht=Tt.trackEventItems,_n=Tt.loading,vn=Math.floor((Mt-(De-1)*Fe)/De);return p.a.createElement(D.a,{spinning:_n},p.a.createElement("div",{className:t()(B.a.list,ut)},!!tt.length&&tt.map(function(fn,Gn){var wn=fn.name,rn=fn.id,Qn=fn.identifier,Zn=fn.power,rr=fn.cover_image_id,$n=fn.pic;return p.a.createElement("div",{className:B.a.wrap,key:rn,style:{width:vn,marginRight:(1+Gn)%De===0?0:Fe+kt,marginBottom:dt}},p.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Qn,"/challenges"),className:B.a.li,onClick:function(pr){pr.preventDefault(),Ht&&Object(G.eb)([Ht]),Zn&&Object(G.U)("/shixuns/".concat(Qn,"/challenges"))}},p.a.createElement("div",{className:B.a.img},p.a.createElement("img",{className:B.a.cover,src:rr?"".concat(k.a.API_SERVER,"/api/attachments/").concat(rr):"".concat(k.a.IMG_SERVER,"/").concat($n)}),fn.is_jupyter&&p.a.createElement("img",{className:B.a.sign,src:fe.a}),fn.is_jupyter_lab&&p.a.createElement("img",{className:B.a.sign,src:Ee.a}),fn.is_unity_3d&&p.a.createElement("img",{className:B.a.sign,src:ce.a})),p.a.createElement("div",{className:B.a.name},p.a.createElement(W.a,{title:wn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},p.a.createElement("span",{className:B.a.e},wn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),p.a.createElement("div",{className:B.a.tags},p.a.createElement(W.a,{placement:"bottom",title:"\u5173\u5361\u6570"},p.a.createElement("span",null,p.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),p.a.createElement("span",null,fn.challenges_count))),!!fn.myshixuns_count&&p.a.createElement(W.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},p.a.createElement("span",null,p.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),p.a.createElement("span",null,fn.myshixuns_count))),p.a.createElement(W.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},p.a.createElement("span",null,p.a.createElement("span",null,fn.level))),p.a.createElement("div",{className:B.a.rate},p.a.createElement(V.a,{allowHalf:!0,disabled:!0,defaultValue:fn.score_info}),p.a.createElement("span",null,"\xA0",fn.score_info?"".concat(fn.score_info,"\u5206"):"5\u5206")))),!Zn&&p.a.createElement("div",{className:B.a.lockWrap},p.a.createElement("img",{src:"".concat(k.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),p.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!tt.length&&p.a.createElement(be.a,null)))},ue=ve,se=s("ZJlW"),q=s.n(se),me=s("z4EP"),re=s.n(me),ie=s("+GGh"),Oe=s.n(ie),le=s("cFMs"),$=s.n(le),J=function(Tt){var ut=Tt.className,je=Tt.dataSource,tt=je===void 0?[]:je,nt=Tt.col,De=nt===void 0?4:nt,Fe=Tt.right,bt=Tt.bottom,dt=bt===void 0?23:bt,xt=Tt.precision,kt=xt===void 0?0:xt,et=Tt.wrapWidth,Mt=et===void 0?1200:et,Ht=Tt.trackEventItems,_n=Tt.loading,vn=Math.floor((Mt-(De-1)*Fe)/De);return p.a.createElement(D.a,{spinning:_n},p.a.createElement("div",{className:t()(q.a.list,ut)},!!tt.length&&tt.map(function(fn,Gn){var wn=fn.name,rn=fn.id,Qn=fn.identifier,Zn=fn.featured,rr=fn.school_name,$n=fn.image_url,Ar=fn.excellent;return p.a.createElement("div",{key:rn,className:q.a.wrap,style:{width:vn,marginRight:(1+Gn)%De===0?0:Fe+kt,marginBottom:dt}},p.a.createElement("a",{target:"_blank",href:"/paths/".concat(Qn),className:q.a.li,onClick:function(on){on.preventDefault(),Ht&&Object(G.eb)([Ht]),Object(G.U)("/paths/".concat(Qn))}},p.a.createElement("div",{className:q.a.img},p.a.createElement("img",{className:q.a.cover,src:"".concat(k.a.IMG_SERVER,"/").concat($n)}),Zn===1&&p.a.createElement("img",{className:q.a.sign,src:re.a}),Zn===2&&p.a.createElement("img",{className:q.a.sign,src:""}),Zn===3&&p.a.createElement("img",{className:q.a.sign,src:Oe.a}),Zn===4&&p.a.createElement("img",{className:q.a.sign,src:""}),Zn===5&&p.a.createElement("img",{className:q.a.sign,src:$.a})),p.a.createElement("div",{className:q.a.name},p.a.createElement(W.a,{title:wn},p.a.createElement("span",{className:q.a.e},wn))),p.a.createElement(W.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(rr)},p.a.createElement("div",{className:q.a.unit},p.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),rr)),p.a.createElement("div",{className:q.a.tags},p.a.createElement(W.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},p.a.createElement("span",null,p.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),p.a.createElement("span",null,fn.stages_count))),p.a.createElement(W.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},p.a.createElement("span",null,p.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),p.a.createElement("span",null,fn.members_count))),Ar&&p.a.createElement("div",{className:q.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!tt.length&&p.a.createElement(be.a,null)))},te=J,Ae=s("iL++"),Se=s.n(Ae),ke=s("xiVL"),rt=function(Tt){var ut=Tt.className,je=Tt.dataSource,tt=je===void 0?[]:je,nt=Tt.col,De=nt===void 0?4:nt,Fe=Tt.right,bt=Tt.bottom,dt=bt===void 0?23:bt,xt=Tt.precision,kt=xt===void 0?0:xt,et=Tt.wrapWidth,Mt=et===void 0?1200:et,Ht=Tt.trackEventItems,_n=Tt.loading,vn=Math.floor((Mt-(De-1)*Fe)/De);return p.a.createElement(D.a,{spinning:_n},p.a.createElement("div",{className:t()(Se.a.list,ut)},!!tt.length&&tt.map(function(fn,Gn){var wn=fn.subject_identifier,rn=fn.id,Qn=fn.identifier,Zn=fn.power,rr=fn.is_public!=0&&fn.is_public;return p.a.createElement("div",{className:Se.a.wrap,key:rn,style:{width:vn,marginRight:(1+Gn)%De===0?0:Fe+kt,marginBottom:dt}},p.a.createElement("a",{className:Se.a.li,onClick:function(Ar){Ar.preventDefault()}},p.a.createElement("div",{className:Se.a.top},p.a.createElement(W.a,{title:fn.name},p.a.createElement("div",{className:Se.a.name},fn.name)),p.a.createElement("img",{className:Se.a.img,src:k.a.IMG_SERVER+"/images/"+fn.avatar_url}),p.a.createElement("div",{className:Se.a.text},fn.creator),wn&&p.a.createElement("div",{className:Se.a.btns},p.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),p.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),rr&&p.a.createElement("div",{className:Se.a.sign},"\u516C\u5F00")),p.a.createElement("div",{className:Se.a.bottom},fn.visits>0&&p.a.createElement(W.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},p.a.createElement("span",null,p.a.createElement("i",{className:"iconfont icon-liulanyan"}),p.a.createElement("span",null,fn.visits))),fn.course_members_count>0&&p.a.createElement(W.a,{title:"\u6210\u5458",placement:"bottom"},p.a.createElement("span",null,p.a.createElement("i",{className:"iconfont icon-chengyuan"}),fn.course_members_count)),fn.tasks_count>0&&p.a.createElement(W.a,{title:"\u4F5C\u4E1A",placement:"bottom"},p.a.createElement("span",null,p.a.createElement("i",{className:"iconfont icon-zuoye"}),fn.tasks_count)),fn.is_end?p.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):p.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),p.a.createElement("div",{className:Se.a.lockWrap},fn.is_accessible?p.a.createElement(p.a.Fragment,null,wn&&p.a.createElement("div",{onClick:function(){return Object(G.U)("/paths/".concat(wn))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),p.a.createElement("div",{onClick:function(Ar){Ht&&Object(G.eb)([Ht]),Object(G.U)(fn.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):p.a.createElement(p.a.Fragment,null,p.a.createElement("img",{src:"".concat(k.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),p.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!tt.length&&p.a.createElement(be.a,null)))},ot=rt,gt=s("f0W+"),Et=s.n(gt),Ct=function(Tt){var ut=Tt.dataSource,je=ut===void 0?[]:ut,tt=Tt.value,nt=Tt.onChange,De=Tt.className,Fe=Tt.style,bt=Fe===void 0?{}:Fe,dt=Tt.tabBarExtraContent;return p.a.createElement("div",{className:t()(Et.a.tabs,De),style:bt},p.a.createElement("div",{className:Et.a.tabsWrap},je.map(function(xt,kt){return p.a.createElement("div",{onClick:function(){return nt(xt.id)},className:tt===xt.id?Et.a.active:"",key:kt},xt.name)})),p.a.createElement("div",{className:Et.a.tabBar},dt))},wt=Ct,Qe=s("9JIy"),Ue=s.n(Qe),ft=function(Tt){var ut=Tt.className,je=Tt.style,tt=je===void 0?{}:je,nt=Tt.children;return p.a.createElement("div",{className:t()(Ue.a.table,ut),style:tt},nt)},jt=ft,ht=s("qVdP"),_t=s("jsC+"),Ye=s("lUTK"),We=s("BvKs"),Xe=s("8WcF"),Te=s.n(Xe),Me=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],Ve=function(Tt){var ut,je=Tt.sortValue,tt=Tt.dropValue,nt=Tt.className,De=Tt.onSort,Fe=Tt.onDrop,bt=Tt.dataSource,dt=bt===void 0?Me:bt;return p.a.createElement("div",{className:t()(Te.a.orderWrap,nt)},p.a.createElement(_t.a,{overlay:p.a.createElement(We.a,null,dt.map(function(xt,kt){return p.a.createElement(We.a.Item,{key:kt,onClick:function(){return Fe(xt.id)}},xt.name)}))},p.a.createElement("span",{className:Te.a.orderTextWrap},(ut=dt.find(function(xt){return tt===xt.id}))===null||ut===void 0?void 0:ut.name)),p.a.createElement("span",{className:Te.a.orderIconWrap},p.a.createElement("span",{className:Te.a.orderAsc},p.a.createElement("i",{className:je==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Te.a.cursorPointer," ").concat(Te.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Te.a.cursorPointer),onClick:function(){return De(je==="asc"?"desc":"asc")}})),p.a.createElement("span",{className:Te.a.orderDesc},p.a.createElement("i",{className:je==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Te.a.cursorPointer," ").concat(Te.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Te.a.cursorPointer),onClick:function(){return De(je==="asc"?"desc":"asc")}}))))},Ge=Ve,Ze=s("siWv"),mt=s.n(Ze),Pt=function(Tt){var ut=Tt.className,je=Tt.style,tt=Tt.children,nt=Tt.onClick;return p.a.createElement("div",{onClick:nt,className:t()(mt.a.btn,ut),style:je},tt)},Gt=Pt},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+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NoGO:function(M,Y,s){M.exports=s.p+"static/newqrcode.9bae6615.png"},NvD2:function(M,Y,s){"use strict";s.d(Y,"a",function(){return S});var L=s("Kwbf");function p(T,h){var _=new Set;return T.forEach(function(d){h.has(d)||_.add(d)}),_}function A(T){var h=T||{},_=h.disabled,d=h.disableCheckbox,r=h.checkable;return!!(_||d)||r===!1}function b(T,h,_,d){for(var r=new Set(T),c=new Set,t=0;t<=_;t+=1){var a=h.get(t)||new Set;a.forEach(function(l){var o=l.key,m=l.node,w=l.children,C=w===void 0?[]:w;r.has(o)&&!d(m)&&C.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 f=h.get(i)||new Set;f.forEach(function(l){var o=l.parent,m=l.node;if(d(m)||!l.parent||n.has(l.parent.key))return;if(d(l.parent.node)){n.add(o.key);return}var w=!0,C=!1;(o.children||[]).filter(function(v){return!d(v.node)}).forEach(function(v){var P=v.key,R=r.has(P);w&&!R&&(w=!1),!C&&(R||c.has(P))&&(C=!0)}),w&&r.add(o.key),C&&c.add(o.key),n.add(o.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(p(c,r))}}function y(T,h,_,d,r){for(var c=new Set(T),t=new Set(h),a=0;a<=d;a+=1){var n=_.get(a)||new Set;n.forEach(function(o){var m=o.key,w=o.node,C=o.children,v=C===void 0?[]:C;!c.has(m)&&!t.has(m)&&!r(w)&&v.filter(function(P){return!r(P.node)}).forEach(function(P){c.delete(P.key)})})}t=new Set;for(var i=new Set,f=d;f>=0;f-=1){var l=_.get(f)||new Set;l.forEach(function(o){var m=o.parent,w=o.node;if(r(w)||!o.parent||i.has(o.parent.key))return;if(r(o.parent.node)){i.add(m.key);return}var C=!0,v=!1;(m.children||[]).filter(function(P){return!r(P.node)}).forEach(function(P){var R=P.key,E=c.has(R);C&&!E&&(C=!1),!v&&(E||t.has(R))&&(v=!0)}),C||c.delete(m.key),v&&t.add(m.key),i.add(m.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(p(t,c))}}function S(T,h,_,d){var r=[],c;d?c=d:c=A;var t=new Set(T.filter(function(f){var l=!!_[f];return l||r.push(f),l})),a=new Map,n=0;Object.keys(_).forEach(function(f){var l=_[f],o=l.level,m=a.get(o);m||(m=new Set,a.set(o,m)),m.add(l),n=Math.max(n,o)}),Object(L.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(f){return"'".concat(f,"'")}).join(", ")));var i;return h===!0?i=b(t,a,n,c):i=y(t,h.halfCheckedKeys,a,n,c),i}},OLES:function(M,Y,s){"use strict";var L=s("U8pU"),p=s("VTBJ"),A=s("Ff2n"),b=s("cDcd"),y=s("uciX"),S=s("7ixt"),T=function(t){var a=t.overlay,n=t.prefixCls,i=t.id,f=t.overlayInnerStyle;return b.createElement("div",{className:"".concat(n,"-inner"),id:i,role:"tooltip",style:f},typeof a=="function"?a():a)},h=T,_=function(t,a){var n=t.overlayClassName,i=t.trigger,f=i===void 0?["hover"]:i,l=t.mouseEnterDelay,o=l===void 0?0:l,m=t.mouseLeaveDelay,w=m===void 0?.1:m,C=t.overlayStyle,v=t.prefixCls,P=v===void 0?"rc-tooltip":v,R=t.children,E=t.onVisibleChange,x=t.afterVisibleChange,g=t.transitionName,O=t.animation,I=t.placement,D=I===void 0?"right":I,N=t.align,V=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(p.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(h,{key:"content",prefixCls:P,id:q,overlay:se,overlayInnerStyle:k})]},Ee=!1,we=!1;if(typeof W=="boolean")Ee=W;else if(W&&Object(L.a)(W)==="object"){var ce=W.keepParent;Ee=ce===!0,we=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:n,prefixCls:P,popup:de,action:f,builtinPlacements:S.a,popupPlacement:D,ref:ne,popupAlign:V,getPopupContainer:B,onPopupVisibleChange:E,afterPopupVisibleChange:x,popupTransitionName:g,popupAnimation:O,defaultPopupVisible:K,destroyPopupOnHide:Ee,autoDestroy:we,mouseLeaveDelay:w,popupStyle:C,mouseEnterDelay:o},fe),R)},d=Object(b.forwardRef)(_),r=Y.a=d},OLod:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("K3mO"))})(this,function(L){L.lib.Cipher||function(p){var A=L,b=A.lib,y=b.Base,S=b.WordArray,T=b.BufferedBlockAlgorithm,h=A.enc,_=h.Utf8,d=h.Base64,r=A.algo,c=r.EvpKDF,t=b.Cipher=T.extend({cfg:y.extend(),createEncryptor:function(g,O){return this.create(this._ENC_XFORM_MODE,g,O)},createDecryptor:function(g,O){return this.create(this._DEC_XFORM_MODE,g,O)},init:function(g,O,I){this.cfg=this.cfg.extend(I),this._xformMode=g,this._key=O,this.reset()},reset:function(){T.reset.call(this),this._doReset()},process:function(g){return this._append(g),this._process()},finalize:function(g){g&&this._append(g);var O=this._doFinalize();return O},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function g(O){return typeof O=="string"?x:P}return function(O){return{encrypt:function(I,D,N){return g(D).encrypt(O,I,D,N)},decrypt:function(I,D,N){return g(D).decrypt(O,I,D,N)}}}}()}),a=b.StreamCipher=t.extend({_doFinalize:function(){var g=this._process(!0);return g},blockSize:1}),n=A.mode={},i=b.BlockCipherMode=y.extend({createEncryptor:function(g,O){return this.Encryptor.create(g,O)},createDecryptor:function(g,O){return this.Decryptor.create(g,O)},init:function(g,O){this._cipher=g,this._iv=O}}),f=n.CBC=function(){var g=i.extend();g.Encryptor=g.extend({processBlock:function(I,D){var N=this._cipher,V=N.blockSize;O.call(this,I,D,V),N.encryptBlock(I,D),this._prevBlock=I.slice(D,D+V)}}),g.Decryptor=g.extend({processBlock:function(I,D){var N=this._cipher,V=N.blockSize,F=I.slice(D,D+V);N.decryptBlock(I,D),O.call(this,I,D,V),this._prevBlock=F}});function O(I,D,N){var V,F=this._iv;F?(V=F,this._iv=p):V=this._prevBlock;for(var W=0;W<N;W++)I[D+W]^=V[W]}return g}(),l=A.pad={},o=l.Pkcs7={pad:function(g,O){for(var I=O*4,D=I-g.sigBytes%I,N=D<<24|D<<16|D<<8|D,V=[],F=0;F<D;F+=4)V.push(N);var W=S.create(V,D);g.concat(W)},unpad:function(g){var O=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=O}},m=b.BlockCipher=t.extend({cfg:t.cfg.extend({mode:f,padding:o}),reset:function(){var g;t.reset.call(this);var O=this.cfg,I=O.iv,D=O.mode;this._xformMode==this._ENC_XFORM_MODE?g=D.createEncryptor:(g=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==g?this._mode.init(this,I&&I.words):(this._mode=g.call(D,this,I&&I.words),this._mode.__creator=g)},_doProcessBlock:function(g,O){this._mode.processBlock(g,O)},_doFinalize:function(){var g,O=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(O.pad(this._data,this.blockSize),g=this._process(!0)):(g=this._process(!0),O.unpad(g)),g},blockSize:128/32}),w=b.CipherParams=y.extend({init:function(g){this.mixIn(g)},toString:function(g){return(g||this.formatter).stringify(this)}}),C=A.format={},v=C.OpenSSL={stringify:function(g){var O,I=g.ciphertext,D=g.salt;return D?O=S.create([1398893684,1701076831]).concat(D).concat(I):O=I,O.toString(d)},parse:function(g){var O,I=d.parse(g),D=I.words;return D[0]==1398893684&&D[1]==1701076831&&(O=S.create(D.slice(2,4)),D.splice(0,4),I.sigBytes-=16),w.create({ciphertext:I,salt:O})}},P=b.SerializableCipher=y.extend({cfg:y.extend({format:v}),encrypt:function(g,O,I,D){D=this.cfg.extend(D);var N=g.createEncryptor(I,D),V=N.finalize(O),F=N.cfg;return w.create({ciphertext:V,key:I,iv:F.iv,algorithm:g,mode:F.mode,padding:F.padding,blockSize:g.blockSize,formatter:D.format})},decrypt:function(g,O,I,D){D=this.cfg.extend(D),O=this._parse(O,D.format);var N=g.createDecryptor(I,D).finalize(O.ciphertext);return N},_parse:function(g,O){return typeof g=="string"?O.parse(g,this):g}}),R=A.kdf={},E=R.OpenSSL={execute:function(g,O,I,D){D||(D=S.random(64/8));var N=c.create({keySize:O+I}).compute(g,D),V=S.create(N.words.slice(O),I*4);return N.sigBytes=O*4,w.create({key:N,iv:V,salt:D})}},x=b.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:E}),encrypt:function(g,O,I,D){D=this.cfg.extend(D);var N=D.kdf.execute(I,g.keySize,g.ivSize);D.iv=N.iv;var V=P.encrypt.call(this,g,O,N.key,D);return V.mixIn(N),V},decrypt:function(g,O,I,D){D=this.cfg.extend(D),O=this._parse(O,D.format);var N=D.kdf.execute(I,g.keySize,g.ivSize,O.salt);D.iv=N.iv;var V=P.decrypt.call(this,g,O,N.key,D);return V}})}()})},OZM5:function(M,Y,s){"use strict";s.d(Y,"b",function(){return d}),s.d(Y,"a",function(){return r}),s.d(Y,"k",function(){return c}),s.d(Y,"h",function(){return t}),s.d(Y,"i",function(){return a}),s.d(Y,"g",function(){return n}),s.d(Y,"c",function(){return i}),s.d(Y,"d",function(){return f}),s.d(Y,"j",function(){return m}),s.d(Y,"e",function(){return w}),s.d(Y,"f",function(){return C});var L=s("KQm4"),p=s("U8pU"),A=s("Ff2n"),b=s("cDcd"),y=s.n(b),S=s("Kwbf"),T=s("WaYH"),h=.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 c(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 x(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];g.forEach(function(O){var I=O.key,D=O.children;R.push(I),x(D)})}return x(E.children),R}function i(v,P){var R=v.clientY,E=P.selectHandle.getBoundingClientRect(),x=E.top,g=E.bottom,O=E.height,I=Math.max(O*h,_);return R<=x+I?-1:R>=g-I?1:0}function f(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 o(v,P){if(!v)return[];var R=P||{},E=R.processProps,x=E===void 0?l:E,g=Array.isArray(v)?v:[v];return g.map(function(O){var I=O.children,D=Object(A.a)(O,["children"]),N=o(I,P);return y.a.createElement(T.a,Object.assign({},x(D)),N)})}function m(v){if(!v)return null;var P;if(Array.isArray(v))P={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(p.a)(v)==="object")P={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(S.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function w(v,P){var R=new Set;function E(x){if(R.has(x))return;var g=P[x];if(!g)return;R.add(x);var O=g.parent,I=g.node;if(I.disabled)return;O&&E(O.key)}return(v||[]).forEach(function(x){E(x)}),Object(L.a)(R)}function C(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,s){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,s){M.exports=s.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(M,Y,s){"use strict";var L=s("2qtc"),p=s("kLXV"),A=s("rAM+"),b=s("miYZ"),y=s("tsqr"),S=s("9og8"),T=s("tJVT"),h=s("jrin"),_=s("WmNS"),d=s.n(_),r=s("cDcd"),c=s.n(r),t=s("VrN/"),a=s.n(t),n=s("bdgK"),i=s("p77/"),f=s("Bd2K"),l=s("ELLl"),o=s("19Vz"),m=s("lZu9"),w=s("+NIl"),C=s("kSUc"),v=s("9Bee"),P=function(Ze){var mt=Ze.value,Pt=mt===void 0?"":mt,Gt=Ze.className,dn=Ze.showTextOnly,Tt=Ze.showLines,ut=Ze.style,je=ut===void 0?{}:ut,tt=Object(r.useMemo)(function(){return""},[Pt]);return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{dangerouslySetInnerHTML:{__html:tt}}))},R=s("0Owb"),E=s("dejd"),x=s("C+DQ"),g=s("1vsH"),O=s("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(Ze){var mt=Ze.onActionCallback,Pt=Ze.title,Gt=Ze.icon,dn=Ze.actionName,Tt=Ze.className,ut=Tt===void 0?"":Tt,je=Ze.children;function tt(){mt(dn)}return c.a.createElement("a",{title:Pt,className:ut,onClick:tt},c.a.createElement("i",{className:"md-iconfont ".concat(Gt)}),je)}var N=function(Ze){var mt=Ze.watch,Pt=Ze.showNullButton,Gt=Ze.onActionCallback,dn=Ze.fullScreen,Tt=Ze.insertTemp,ut=Ze.hidetoolBar,je=Ze.uuid,tt=Ze.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(g.G)("_educoder_session_login"),"&_educoder_session=").concat(Object(g.G)("_educoder_session"),"&key=").concat(je,"&api=").concat(encodeURIComponent(O.a.PROXY_SERVER)));var nt=[].concat(I,[{title:"".concat(mt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(mt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return c.a.createElement("ul",{className:"markdown-toolbar-container"},!ut&&nt.map(function(De,Fe){return c.a.createElement("li",{key:Fe},De.actionName?c.a.createElement(D,Object(R.a)({},De,{onActionCallback:Gt})):c.a.createElement("span",{className:"v-line"}))}),Pt?c.a.createElement("li",null,c.a.createElement(D,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Gt},c.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Tt&&c.a.createElement("li",null,c.a.createElement(D,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Tt),onActionCallback:Gt},c.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),c.a.createElement("li",{className:"btn-full-screen"},c.a.createElement(D,{icon:"".concat(dn?"icon-shrink":"icon-enlarge"),title:dn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Gt})))},V=s("M8RZ"),F=s("+L6B"),W=s("2/Rp"),K=s("y8nQ"),B=s("Vl3Y"),k=s("5NDa"),G=s("5rEg"),ne={labelCol:{span:4},wrapperCol:{span:20}},fe=function(Ze){var mt=Ze.callback,Pt=Ze.onCancel;function Gt(dn){mt(dn)}return c.a.createElement(B.a,Object(R.a)({},ne,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Gt}),c.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},c.a.createElement(G.a,null)),c.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},c.a.createElement(G.a,null)),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(W.a,{type:"ghost",onClick:Pt},"\u53D6\u6D88")))},de=s("7ahc"),Ee=s("HmJG"),we=s("BjJ7"),ce=B.a.useForm,be={width:280,marginRight:10},ve={labelCol:{span:5},wrapperCol:{span:19}},ue=function(Ze){var mt=Ze.callback,Pt=Ze.onCancel,Gt=ce(),dn=Object(T.a)(Gt,1),Tt=dn[0];function ut(nt){mt(nt)}function je(nt,De){if(nt.status===-1){y.b.error(nt.message);return}Tt.setFieldsValue({src:"/api/attachments/".concat(nt.id),type:De.type})}function tt(nt){var De=nt.target.files[0];q(De,je)}return c.a.createElement(B.a,Object(R.a)({form:Tt},ve,{className:"upload-image-panel",onFinish:ut}),c.a.createElement(B.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},c.a.createElement("div",{className:"flex-container"},c.a.createElement(B.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},c.a.createElement(G.a,{style:be})),c.a.createElement(se,{onFileChange:tt}))),c.a.createElement(B.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},c.a.createElement(G.a,{style:{width:264}})),c.a.createElement(B.a.Item,{style:{textAlign:"right"}},c.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(W.a,{type:"ghost",onClick:Pt},"\u53D6\u6D88")))};function se(Ze){var mt=Ze.onFileChange;return c.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",c.a.createElement("input",{type:"file",onChange:mt}))}function q(Ze,mt){if(!Ze)throw new String("\u6CA1\u6709\u6587\u4EF6");var Pt=new FormData;Pt.append("editormd-image-file",Ze),Pt.append("file_param_name","editormd-image-file"),Pt.append("byxhr","true");var Gt=new window.XMLHttpRequest;Gt.withCredentials=!0,Gt.addEventListener("load",function(dn){mt(JSON.parse(dn.target.responseText),Ze)},!1),Gt.addEventListener("error",function(dn){console.error(dn)},!1),Gt.open("POST","".concat(we.a,"/api/attachments.json")),Gt.send(Pt)}var me=s("giR+"),re=s("fyUT"),ie=s("7Kak"),Oe=s("9yH6"),le=Oe.a.Group,$={margin:"0 8px"},J=function(Ze){var mt=Ze.callback,Pt=Ze.onCancel;function Gt(dn){mt(dn)}return c.a.createElement(B.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Gt},c.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},c.a.createElement("span",{style:$},"\u5355\u5143\u683C\u6570\uFF1A"),c.a.createElement("span",{style:$},"\u884C\u6570"),c.a.createElement(B.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},c.a.createElement(re.a,null)),c.a.createElement("span",{style:$},"\u5217\u6570"),c.a.createElement(B.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},c.a.createElement(re.a,null))),c.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},c.a.createElement("span",{style:$},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),c.a.createElement(B.a.Item,{name:"align"},c.a.createElement(le,null,c.a.createElement(Oe.a,{value:"default"},c.a.createElement("i",{className:"fa fa-align-justify"})),c.a.createElement(Oe.a,{value:"left"},c.a.createElement("i",{className:"fa fa-align-left"})),c.a.createElement(Oe.a,{value:"center"},c.a.createElement("i",{className:"fa fa-align-center"})),c.a.createElement(Oe.a,{value:"right"},c.a.createElement("i",{className:"fa fa-align-right"}))))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(W.a,{type:"ghost",onClick:Pt},"\u53D6\u6D88")))},te=s("ErOA"),Ae=s("7Cbv"),Se="link",ke="upload-image",rt="code-block",ot="add-table",gt="------------",Et={default:gt,left:":".concat(gt),center:":".concat(gt,":"),right:"".concat(gt,":")},Ct=s("9VGf"),wt,Qe;function Ue(){}var ft=0,jt=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 Ye(Ze){return/^\d+$/.test(Ze)?"".concat(Ze,"px"):Ze}var We=navigator.platform.toUpperCase().indexOf("MAC")>=0,Xe=We?"Cmd":"Ctrl",Te=["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"],Me=(wt={},Object(h.a)(wt,Xe+"-B","bold"),Object(h.a)(wt,Xe+"-I","italic"),wt),Ve=(Qe={},Object(h.a)(Qe,Se,"\u6DFB\u52A0\u94FE\u63A5"),Object(h.a)(Qe,rt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(h.a)(Qe,ke,"\u6DFB\u52A0\u6587\u4EF6"),Object(h.a)(Qe,ot,"\u6DFB\u52A0\u8868\u683C"),Qe),Ge=Y.a=function(Ze){var mt=Ze.defaultValue,Pt=mt===void 0?"":mt,Gt=Ze.onChange,dn=Ze.width,Tt=dn===void 0?"100%":dn,ut=Ze.height,je=ut===void 0?400:ut,tt=Ze.miniToolbar,nt=tt===void 0?!1:tt,De=Ze.isFocus,Fe=De===void 0?!1:De,bt=Ze.watch,dt=Ze.insertTemp,xt=Ze.mode,kt=xt===void 0?"markdown":xt,et=Ze.id,Mt=et===void 0?"markdown-editor-id":et,Ht=Ze.showResizeBar,_n=Ht===void 0?!1:Ht,vn=Ze.noStorage,fn=vn===void 0?!1:vn,Gn=Ze.showNullButton,wn=Gn===void 0?!1:Gn,rn=Ze.hidetoolBar,Qn=rn===void 0?!1:rn,Zn=Ze.fullScreen,rr=Zn===void 0?!1:Zn,$n=Ze.onBlur,Ar=Ze.onCMBeforeChange,pr=Ze.onFullScreen,on=Ze.className,Zt=on===void 0?"":on,An=Ze.disablePaste,jr=An===void 0?!1:An,Ln=Ze.placeholder,qn=Ln===void 0?"":Ln,Un=Ze.values,pe=Un===void 0?"":Un,z=Object(r.useState)(null),Z=Object(T.a)(z,2),oe=Z[0],xe=Z[1],he=Object(r.useState)(Pt),lt=Object(T.a)(he,2),an=lt[0],Nn=lt[1],Yn=Object(r.useState)(bt),tn=Object(T.a)(Yn,2),Cn=tn[0],Jn=tn[1],$r=Object(r.useState)(rr),ga=Object(T.a)($r,2),pa=ga[0],mr=ga[1],za=Object(r.useState)(""),ja=Object(T.a)(za,2),Ra=ja[0],Ha=ja[1],Sa=Object(r.useState)(0),Ja=Object(T.a)(Sa,2),ka=Ja[0],li=Ja[1],oi=Object(r.useState)(je),ua=Object(T.a)(oi,2),fa=ua[0],oa=ua[1],ye=Object(r.useState)(!1),st=Object(T.a)(ye,2),It=st[0],At=st[1],Wt=Object(r.useRef)(Object(Ae.a)()),Nt=Object(r.useRef)(!1),Xt=Object(r.useRef)(),en=Object(r.useRef)(),yn=Object(r.useRef)(),mn=Object(r.useRef)(),jn=Object(r.useRef)(),Dn=function(){var qt=Object(S.a)(d.a.mark(function On(){var gn,In;return d.a.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:return ur.next=2,Object(te.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Wt.current}});case 2:In=ur.sent,In!=null&&(gn=In.attachments)!==null&&gn!==void 0&&gn.length&&(console.log("cm:",oe,en),In.attachments.map(function(ar){ar.content_type.indexOf("image")>-1?oe.replaceSelection("![,](/api/attachments/".concat(ar.id,"?type=").concat(ar.content_type,")")):ar.content_type.indexOf("video")>-1?oe.replaceSelection('<video width="100%" controls src="'.concat(O.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):ar.content_type.indexOf("pdf")>-1?oe.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat(ar.id,"?type=").concat(ar.content_type,'&disposition=inline" target="_blank">').concat(ar.name,"</a>")):oe.replaceSelection("[".concat(ar.name,"](").concat(O.a.API_SERVER,"/api/attachments/").concat(ar.id,"?type=").concat(ar.content_type,")"))}));case 4:case"end":return ur.stop()}},On)}));return function(){return qt.apply(this,arguments)}}();Object(r.useEffect)(function(){Nn(pe),oe==null||oe.setValue(pe)},[pe]),Object(r.useEffect)(function(){pr==null||pr(pa)},[pa]),Object(r.useEffect)(function(){if(en.current){var qt=a.a.fromTextArea(en.current,{mode:kt,lineNumbers:!nt,lineWrapping:!0,value:Pt,autoCloseTags:!0,autoCloseBrackets:!0});Fe&&qt.focus();function On(gn,In){if(jr){In.preventDefault();return}var Fn=In.clipboardData;if(Fn){var ur=Fn.types.toString(),ar=Fn.items;if(ur==="Files"||Fn.types.indexOf("Files")>-1){if(In.preventDefault(),kt=="stex")return;try{var Rr,Ir=ar[1];((Rr=ar[0])===null||Rr===void 0?void 0:Rr.kind)==="file"&&(Ir=ar[0]);var tr=Ir.getAsFile(),Dr=tr.name.split(".").pop();q(tr,function(br){if(br.id){var Gr,Lr,qr;(tr==null||((Gr=tr.type)===null||Gr===void 0)?void 0:Gr.indexOf("image"))>-1?qt.replaceSelection("![,](/api/attachments/".concat(br.id,"?type=").concat(br.content_type,")")):(tr==null||((Lr=tr.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?qt.replaceSelection('<video width="100%" controls src="'.concat(O.a.API_SERVER,"/api/attachments/").concat(br.id,'"></video>')):(tr==null||((qr=tr.type)===null||qr===void 0)?void 0:qr.indexOf("pdf"))>-1?qt.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat(br.id,"?type=").concat(tr.type,'&disposition=inline" target="_blank">').concat(tr.name,"</a>")):Te.includes(Dr)?qt.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat(br.id,'?type=office&disposition=inline" target="_blank">').concat(tr.name,"</a>")):qt.replaceSelection("[".concat(tr.name,"](").concat(O.a.API_SERVER,"/api/attachments/").concat(br.id,"?type=").concat(br.content_type,")"))}else(br==null?void 0:br.status)===401&&(document.location.href="/user/login")})}catch(br){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return qt.on("paste",On),qt.on("dragleave",function(gn,In){yn.current.classList.remove("mouse-hover-md")}),qt.on("dragover",function(gn,In){yn.current.classList.add("mouse-hover-md")}),qt.on("drop",function(gn,In){yn.current.classList.add("mouse-hover-md");var Fn;if(Fn=In.dataTransfer.files,Fn.length>0){In.preventDefault(),In.stopPropagation();for(var ur=function(Ir){var tr=Fn[Ir],Dr=tr.name.split(".").pop();q(tr,function(br){if(br.id){var Gr,Lr,qr;(tr==null||((Gr=tr.type)===null||Gr===void 0)?void 0:Gr.indexOf("image"))>-1?qt.replaceSelection("![,](/api/attachments/".concat(br.id,"?type=").concat(br.content_type,")")):(tr==null||((Lr=tr.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?qt.replaceSelection('<video width="100%" controls src="'.concat(O.a.API_SERVER,"/api/attachments/").concat(br.id,'"></video>')):(tr==null||((qr=tr.type)===null||qr===void 0)?void 0:qr.indexOf("pdf"))>-1?qt.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat(br.id,"?type=").concat(tr.type,'&disposition=inline" target="_blank">').concat(tr.name,"</a>")):Te.includes(Dr)?qt.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat(br.id,'?type=office&disposition=inline" target="_blank">').concat(tr.name,"</a>")):qt.replaceSelection("[".concat(tr.name,"](").concat(O.a.API_SERVER,"/api/attachments/").concat(br.id,"?type=").concat(br.content_type,")"))}else(br==null?void 0:br.status)===401&&(document.location.href="/user/login")})},ar=0;ar<Fn.length;ar++)ur(ar)}}),xe(qt),function(){qt.off("paste",On)}}},[]);var nn=Object(r.useCallback)(function(){if(yn.current)try{}catch(qt){console.log(qt,"---- to set md editor body height")}},[fa,yn,pa]);Object(r.useEffect)(function(){function qt(){var gn=new n.default(function(In){var Fn=Object(A.a)(In),ur;try{for(Fn.s();!(ur=Fn.n()).done;){var ar=ur.value;(ar.target.offsetHeight>0||ar.target.offsetWidth>0)&&(nn(),oe.setSize("100%","100%"),oe.refresh())}}catch(Rr){Fn.e(Rr)}finally{Fn.f()}});return gn.observe(en.current.parentElement),gn}if(oe){var On=qt();return function(){On.unobserve(en.current.parentElement)}}},[oe,nn]),Object(r.useEffect)(function(){if(oe){for(var qt=[],On=function(){var ar=In[gn];Fn=Object(T.a)(ar,2);var Rr=Fn[0],Ir=Fn[1],tr=Object(h.a)({},Rr,function(){Mn(Ir)});qt.push(tr),oe.addKeyMap(tr)},gn=0,In=Object.entries(Me);gn<In.length;gn++){var Fn;On()}return Xt.current=setInterval(function(){Nt.current&&Dn()},4e3),function(){clearInterval(Xt.current);var ur=Object(A.a)(qt),ar;try{for(ur.s();!(ar=ur.n()).done;){var Rr=ar.value;oe.removeKeyMap(Rr)}}catch(Ir){ur.e(Ir)}finally{ur.f()}}}},[oe]),Object(r.useEffect)(function(){rr!==pa&&mr(rr)},[rr]),Object(Ct.a)(function(){if(!fn&&ka>0){var qt=new Date().getTime(),On=window.sessionStorage.getItem(Mt);qt>=ka+jt&&(!On||On!==an)&&(window.sessionStorage.setItem(Mt,an),At(!0))}},jt),Object(r.useEffect)(function(){Jn(bt)},[oe,bt]),Object(r.useEffect)(function(){oe&&(Fe&&oe.focus())},[oe,Fe]),Object(r.useEffect)(function(){if(Cn&&oe){var qt=oe.getScrollerElement();function On(gn){var In=gn.target;if(jn.current){var Fn=In.scrollTop/In.scrollHeight;jn.current.scrollTop=jn.current.scrollHeight*Fn}}return qt.addEventListener("scroll",On),function(){qt.removeEventListener("scroll",On)}}},[oe,Cn]),Object(r.useEffect)(function(){if(oe&&Ar){function qt(On,gn){Ar(On,gn)}return oe.on("beforeChange",qt),function(){oe.off("beforeChange",qt)}}},[oe,Ar]),Object(r.useEffect)(function(){if(oe&&$n){function qt(){$n(oe.getValue())}return oe.on("blur",qt),function(){oe.off("blur",qt)}}},[oe,$n]),Object(r.useEffect)(function(){if(oe){function qt(On){var gn=On.getValue();Nn(gn),li(new Date().getTime()),On.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Gt&&Gt(gn)}return oe.on("change",qt),function(){oe.off("change",qt)}}},[oe,Gt]),Object(r.useEffect)(function(){oe&&(Pt==null?(oe.setValue(""),Nn("")):Pt!==oe.getValue()&&(oe.setValue(Pt),Nn(Pt),oe.setCursor(oe.lineCount(),0)))},[oe,Pt]);var Mn=Object(r.useCallback)(function(qt){var On=oe.getCursor(),gn=oe.getSelection(),In=gn.split(`
`);switch(qt){case"bold":return oe.replaceSelection("**"+gn+"**"),gn===""&&oe.setCursor(On.line,On.ch+2),oe.focus();case"italic":return oe.replaceSelection("*"+gn+"*"),gn===""&&oe.setCursor(On.line,On.ch+1),oe.focus();case"code":return oe.replaceSelection("`"+gn+"`"),gn===""&&oe.setCursor(On.line,On.ch+1),oe.focus();case"inline-latex":return oe.replaceSelection("`$$"+gn+"$$`"),gn===""&&oe.setCursor(On.line,On.ch+3),oe.focus();case"latex":return oe.replaceSelection("```latex\n"+gn+"\n```"),oe.setCursor(On.line+1,gn.length+1),oe.focus();case"line-break":return oe.replaceSelection(`<br/>
`),oe.focus();case"list-ul":return gn===""?oe.replaceSelection("- "+gn):oe.replaceSelection(In.map(function(Fn){return Fn===""?"":"- ".concat(Fn)}).join(`
`)),oe.focus();case"list-ol":return gn===""?oe.replaceSelection("1. "+gn):oe.replaceSelection(In.map(function(Fn,ur){return Fn===""?"":"".concat(ur+1,". ").concat(Fn)}).join(`
`)),oe.focus();case"add-null-ch":return gn===""&&oe.setCursor(On.line,On.ch+1),oe.replaceSelection(ht),oe.focus();case"inster-template-1":return gn===""&&oe.setCursor(On.line,On.ch),oe.replaceSelection(_t),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return Jn(!Cn),oe.focus();case"trigger-full-screen":return mr(!pa),oe.focus();case Se:Ha(Se);return;case rt:Ha(rt);return;case ke:Ha(ke);return;case ot:Ha(ot);return;default:throw new Error}},[oe,Cn,pa]),bn=Object(r.useCallback)(function(qt){Ha("");switch(Ra){case Se:var On=qt.title,gn=qt.link;return oe.replaceSelection("[".concat(On,"](").concat(gn,")")),oe.focus();case rt:var In=qt.language,Fn=qt.content;return oe.replaceSelection(["```"+In,Fn,"```"].join(`
`)),oe.focus();case ke:var ur=qt.src,ar=qt.alt;return ar?oe.replaceSelection("![ ".concat(ar," ]( ").concat(ur,' "').concat(ar,'" )')):oe.replaceSelection("![,](".concat(ur,")")),oe.focus();case ot:for(var Rr=qt.row,Ir=qt.col,tr=qt.align,Dr=`
`,br=0;br<Rr;br++){for(var Gr=[],Lr=[],qr=0;qr<Ir;qr++)br===1&&Lr.push(Et[tr]),Gr.push(" ");br===1&&(Dr+="| ".concat(Lr.join(" | "),` |
`)),Dr+="| ".concat(Gr.join(Ir===1?"":" | "),` |
`)}return oe.replaceSelection(Dr+`
`),oe.focus();default:throw new Error}},[oe,Ra]),Bn=Object(r.useMemo)(function(){switch(Ra){case Se:return c.a.createElement(fe,{callback:bn,onCancel:Pn});case rt:return c.a.createElement(de.b,{callback:bn,onCancel:Pn});case ke:return c.a.createElement(ue,{callback:bn,onCancel:Pn});case ot:return c.a.createElement(J,{callback:bn,onCancel:Pn});default:return null}},[Ra]);function Pn(){Ha("")}Object(r.useEffect)(function(){if(mn.current){var qt=mn.current,On=!1,gn=0;function In(ar){On=!0,gn=ar.pageY}function Fn(){On=!1}function ur(ar){if(On){var Rr=ar.pageY-gn;Rr<0&&(Rr=0),Rr>300&&(Rr=300);var Ir=je+Rr+"px";oa(Ir)}}return qt.addEventListener("mousedown",In),document.addEventListener("mousemove",ur),document.addEventListener("mouseup",Fn),function(){qt.removeEventListener("mousedown",In),document.removeEventListener("mousemove",ur),document.removeEventListener("mouseup",Fn)}}},[oe,mn]),Object(r.useEffect)(function(){oa(je)},[je]);var er=Ye(Tt),vr=Ye(fa),Br={width:er,height:vr},Sn=Object(r.useMemo)(function(){if(ka){var qt=new Date(ka),On=qt.getHours(),gn=qt.getMinutes(),In=qt.getSeconds();return On=On<10?"0"+On:On,gn=gn<10?"0"+gn:gn,In=In<10?"0"+In:In,"".concat(On,":").concat(gn,":").concat(In)}return 0},[ka]);function Yt(){window.sessionStorage.removeItem(Mt),At(!1),li(0)}function cn(){At(!1),li(0),oe.setValue(window.sessionStorage.getItem(Mt))}function Rn(qt,On){var gn=oe.getValue();gn=gn.replace(qt,On),Nn(gn),oe==null||oe.setValue(gn)}return c.a.createElement(r.Fragment,null,c.a.createElement("div",{className:"markdown-editor-wrapper",ref:yn},c.a.createElement("div",{className:"markdown-editor-container ".concat(Zt," ").concat(Cn?"on-preview":""," ").concat(nt?"mini":""," ").concat(pa?"full-screen":""),style:Br},c.a.createElement(N,{insertTemp:dt,watch:Cn,fullScreen:pa,showNullButton:wn,onActionCallback:Mn,hidetoolBar:Qn,uuid:Wt.current,setOpenPhones:function(){Nt.current=!0}}),c.a.createElement("div",{className:"markdown-editor-body"},c.a.createElement("div",{className:"codemirror-container"},c.a.createElement("textarea",{ref:en,placeholder:qn})),Cn?c.a.createElement("div",{ref:jn,className:"preview-container"},kt==="stex"&&c.a.createElement(P,{value:an}),kt!=="stex"&&c.a.createElement(v.a,{edit:!0,value:an,replaces:Rn})):null))),_n?c.a.createElement("a",{ref:mn,className:"editor-resize"}):null,c.a.createElement(V.a,null,Ve[Ra]?c.a.createElement(p.a,{centered:!0,title:Ve[Ra],visible:!0,onCancel:Pn,footer:null,className:"markdown-popup-form"},Bn):null))}},P5Jw:function(M,Y,s){"use strict";var L=s("rHrb"),p=L.CopyToClipboard;p.CopyToClipboard=p,M.exports=p},PVpz:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.StreamCipher,y=p.algo,S=[],T=[],h=[],_=y.RabbitLegacy=b.extend({_doReset:function(){var r=this._key.words,c=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(c){var i=c.words,f=i[0],l=i[1],o=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,m=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,w=o>>>16|m&4294901760,C=m<<16|o&65535;a[0]^=o,a[1]^=w,a[2]^=m,a[3]^=C,a[4]^=o,a[5]^=w,a[6]^=m,a[7]^=C;for(var n=0;n<4;n++)d.call(this)}},_doProcessBlock:function(r,c){var t=this._X;d.call(this),S[0]=t[0]^t[5]>>>16^t[3]<<16,S[1]=t[2]^t[7]>>>16^t[5]<<16,S[2]=t[4]^t[1]>>>16^t[7]<<16,S[3]=t[6]^t[3]>>>16^t[1]<<16;for(var a=0;a<4;a++)S[a]=(S[a]<<8|S[a]>>>24)&16711935|(S[a]<<24|S[a]>>>8)&4278255360,r[c+a]^=S[a]},blockSize:128/32,ivSize:64/32});function d(){for(var r=this._X,c=this._C,t=0;t<8;t++)T[t]=c[t];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0<T[0]>>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0<T[1]>>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0<T[2]>>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0<T[3]>>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0<T[4]>>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0<T[5]>>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0<T[6]>>>0?1:0)|0,this._b=c[7]>>>0<T[7]>>>0?1:0;for(var t=0;t<8;t++){var a=r[t]+c[t],n=a&65535,i=a>>>16,f=((n*n>>>17)+n*i>>>15)+i*i,l=((a&4294901760)*a|0)+((a&65535)*a|0);h[t]=f^l}r[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,r[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,r[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,r[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,r[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,r[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,r[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,r[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}p.RabbitLegacy=b._createHelper(_)}(),L.RabbitLegacy})},QNag:function(M,Y,s){"use strict";var L=s("2qtc"),p=s("kLXV"),A=s("+L6B"),b=s("2/Rp"),y=s("9og8"),S=s("y8nQ"),T=s("Vl3Y"),h=s("tJVT"),_=s("PpiC"),d=s("5NDa"),r=s("5rEg"),c=s("WmNS"),t=s.n(c),a=s("cDcd"),n=s.n(a),i=s("9kvl"),f=s("JFl9"),l=s.n(f),o=r.a.TextArea,m=function(C){var v=C.shixunsDetail,P=C.globalSetting,R=C.loading,E=C.dispatch,x=C.onFinish,g=x===void 0?function(){}:x,O=Object(_.a)(C,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),I=T.a.useForm(),D=Object(h.a)(I,1),N=D[0],V=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&&g(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(p.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(T.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:V},n.a.createElement(T.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(o,{rows:4})),n.a.createElement(T.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},n.a.createElement(o,{rows:4})),n.a.createElement("div",{className:l.a.footerWrap},n.a.createElement(T.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(w){var C=w.shixunsDetail,v=w.loading,P=w.globalSetting;return{shixunsDetail:C,globalSetting:P,loading:v}})(m)},Qvpy:function(M,Y,s){M.exports={title:"title___39Oep",content:"content___Xl7wK",add:"add___1luKB",colorBlue:"colorBlue___c0Swt",radio:"radio___OK4CQ"}},RC3E:function(M,Y,s){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,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"},RotF:function(M,Y,s){M.exports=s("LSTS")},RxwV:function(M,Y,s){"use strict";var L=s("cDcd"),p=s("uciX"),A=s("2W6z"),b=s.n(A),y=s("4IlW"),S=s("uK0f"),T=s.n(S);function h(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;se<ue;se++)if(be[se]!==ve[se])return!1;return!0}function _(be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(ue){return typeof ue}:_=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},_(be)}function d(be,ve){if(!(be instanceof ve))throw new TypeError("Cannot call a class as a function")}function r(be,ve){for(var ue=0;ue<ve.length;ue++){var se=ve[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(be,se.key,se)}}function c(be,ve,ue){return ve&&r(be.prototype,ve),ue&&r(be,ue),be}function t(be,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ve&&ve.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),ve&&a(be,ve)}function a(be,ve){return a=Object.setPrototypeOf||function(se,q){return se.__proto__=q,se},a(be,ve)}function n(be){var ve=l();return function(){var ue=o(be),se;if(ve){var q=o(this).constructor;se=Reflect.construct(ue,arguments,q)}else se=ue.apply(this,arguments);return i(this,se)}}function i(be,ve){return ve&&(_(ve)==="object"||typeof ve=="function")?ve:f(be)}function f(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(be){return!1}}function o(be){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},o(be)}var m=function(){var be=function(ve){t(se,ve);var ue=n(se);function se(){var q;return d(this,se),q=ue.apply(this,arguments),q.menuItems={},q.saveMenuItem=function(me){return function(re){q.menuItems[me]=re}},q}return c(se,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(me){!me.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(me){var re=this.props,ie=re.fieldNames,Oe=re.defaultFieldNames;return ie[me]||Oe[me]}},{key:"getOption",value:function(me,re){var ie=this.props,Oe=ie.prefixCls,le=ie.expandTrigger,$=ie.expandIcon,J=ie.loadingIcon,te=this.props.onSelect.bind(this,me,re),Ae=this.props.onItemDoubleClick.bind(this,me,re),Se={onClick:te,onDoubleClick:Ae},ke="".concat(Oe,"-menu-item"),rt=null,ot=me[this.getFieldName("children")]&&me[this.getFieldName("children")].length>0;(ot||me.isLeaf===!1)&&(ke+=" ".concat(Oe,"-menu-item-expand"),me.loading||(rt=L.createElement("span",{className:"".concat(Oe,"-menu-item-expand-icon")},$))),le==="hover"&&(ot||me.isLeaf===!1)&&(Se={onMouseEnter:this.delayOnSelect.bind(this,te),onMouseLeave:this.delayOnSelect.bind(this),onClick:te}),this.isActiveOption(me,re)&&(ke+=" ".concat(Oe,"-menu-item-active"),Se.ref=this.saveMenuItem(re)),me.disabled&&(ke+=" ".concat(Oe,"-menu-item-disabled"));var gt=null;me.loading&&(ke+=" ".concat(Oe,"-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},Se,{role:"menuitem",onMouseDown:function(wt){return wt.preventDefault()}}),me[this.getFieldName("label")],rt,gt)}},{key:"getActiveOptions",value:function(me){var re=this,ie=this.props.options,Oe=me||this.props.activeValue;return T()(ie,function(le,$){return le[re.getFieldName("value")]===Oe[$]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ie=this.getActiveOptions().map(function(Oe){return Oe[me.getFieldName("children")]}).filter(function(Oe){return!!Oe});return ie.unshift(re),ie}},{key:"delayOnSelect",value:function(me){for(var re=this,ie=arguments.length,Oe=new Array(ie>1?ie-1:0),le=1;le<ie;le++)Oe[le-1]=arguments[le];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof me=="function"&&(this.delayTimer=window.setTimeout(function(){me(Oe),re.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var me=this.getShowOptions().length,re=0;re<me;re++){var ie=this.menuItems[re];ie&&ie.parentElement&&(ie.parentElement.scrollTop=ie.offsetTop)}}},{key:"isActiveOption",value:function(me,re){var ie=this.props.activeValue,Oe=ie===void 0?[]:ie;return Oe[re]===me[this.getFieldName("value")]}},{key:"render",value:function(){var me=this,re=this.props,ie=re.prefixCls,Oe=re.dropdownMenuColumnStyle;return L.createElement("div",null,this.getShowOptions().map(function(le,$){return L.createElement("ul",{className:"".concat(ie,"-menu"),key:$,style:Oe},le.map(function(J){return me.getOption(J,$)}))}))}}]),se}(L.Component);return be.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},be}(),w=m,C={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},v=C;function P(be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(ue){return typeof ue}:P=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},P(be)}function R(be,ve){if(be==null)return{};var ue=E(be,ve),se,q;if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(be);for(q=0;q<me.length;q++){if(se=me[q],ve.indexOf(se)>=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<se.length;me++){if(q=se[me],ve.indexOf(q)>=0)continue;ue[q]=be[q]}return ue}function x(be){return D(be)||I(be)||O(be)||g()}function g(){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 O(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<ve;ue++)se[ue]=be[ue];return se}function V(be,ve){if(!(be instanceof ve))throw new TypeError("Cannot call a class as a function")}function F(be,ve){for(var ue=0;ue<ve.length;ue++){var se=ve[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(be,se.key,se)}}function W(be,ve,ue){return ve&&F(be.prototype,ve),ue&&F(be,ue),be}function K(be,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ve&&ve.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),ve&&B(be,ve)}function B(be,ve){return B=Object.setPrototypeOf||function(se,q){return se.__proto__=q,se},B(be,ve)}function k(be){var ve=fe();return function(){var ue=de(be),se;if(ve){var q=de(this).constructor;se=Reflect.construct(ue,arguments,q)}else se=ue.apply(this,arguments);return G(this,se)}}function G(be,ve){return ve&&(P(ve)==="object"||typeof ve=="function")?ve:ne(be)}function ne(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}function fe(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(be){return!1}}function de(be){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},de(be)}var Ee=function(){var be=function(ve){K(se,ve);var ue=k(se);function se(q){var me;V(this,se),me=ue.call(this,q),me.setPopupVisible=function(ie){var Oe=me.state.value;"popupVisible"in me.props||me.setState({popupVisible:ie}),ie&&!me.state.popupVisible&&me.setState({activeValue:Oe}),me.props.onPopupVisibleChange(ie)},me.handleChange=function(ie,Oe,le){var $=Oe.visible;(le.type!=="keydown"||le.keyCode===y.a.ENTER)&&(me.props.onChange(ie.map(function(J){return J[me.getFieldName("value")]}),ie),me.setPopupVisible($))},me.handlePopupVisibleChange=function(ie){me.setPopupVisible(ie)},me.handleMenuSelect=function(ie,Oe,le){var $=me.trigger.getRootDomNode();$&&$.focus&&$.focus();var J=me.props,te=J.changeOnSelect,Ae=J.loadData,Se=J.expandTrigger;if(!ie||ie.disabled)return;var ke=me.state.activeValue;ke=ke.slice(0,Oe+1),ke[Oe]=ie[me.getFieldName("value")];var rt=me.getActiveOptions(ke);if(ie.isLeaf===!1&&!ie[me.getFieldName("children")]&&Ae){te&&me.handleChange(rt,{visible:!0},le),me.setState({activeValue:ke}),Ae(rt);return}var ot={};!ie[me.getFieldName("children")]||!ie[me.getFieldName("children")].length?(me.handleChange(rt,{visible:!1},le),ot.value=ke):te&&(le.type==="click"||le.type==="keydown")&&(Se==="hover"?me.handleChange(rt,{visible:!1},le):me.handleChange(rt,{visible:!0},le),ot.value=ke),ot.activeValue=ke,("value"in me.props||le.type==="keydown"&&le.keyCode!==y.a.ENTER)&&delete ot.value,me.setState(ot)},me.handleItemDoubleClick=function(){var ie=me.props.changeOnSelect;ie&&me.setPopupVisible(!1)},me.handleKeyDown=function(ie){var Oe=me.props.children;if(Oe&&Oe.props.onKeyDown){Oe.props.onKeyDown(ie);return}var le=x(me.state.activeValue),$=le.length-1<0?0:le.length-1,J=me.getCurrentLevelOptions(),te=J.map(function(rt){return rt[me.getFieldName("value")]}).indexOf(le[$]);if(ie.keyCode!==y.a.DOWN&&ie.keyCode!==y.a.UP&&ie.keyCode!==y.a.LEFT&&ie.keyCode!==y.a.RIGHT&&ie.keyCode!==y.a.ENTER&&ie.keyCode!==y.a.SPACE&&ie.keyCode!==y.a.BACKSPACE&&ie.keyCode!==y.a.ESC&&ie.keyCode!==y.a.TAB)return;if(!me.state.popupVisible&&ie.keyCode!==y.a.BACKSPACE&&ie.keyCode!==y.a.LEFT&&ie.keyCode!==y.a.RIGHT&&ie.keyCode!==y.a.ESC&&ie.keyCode!==y.a.TAB){me.setPopupVisible(!0);return}if(ie.keyCode===y.a.DOWN||ie.keyCode===y.a.UP){ie.preventDefault();var Ae=te;Ae!==-1?ie.keyCode===y.a.DOWN?(Ae+=1,Ae=Ae>=J.length?0:Ae):(Ae-=1,Ae=Ae<0?J.length-1:Ae):Ae=0,le[$]=J[Ae][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 Se=me.getActiveOptions(le),ke=Se[Se.length-1];me.handleMenuSelect(ke,Se.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,Oe=ie.fieldNames,le=ie.filedNames;return"filedNames"in this.props?le[me]||re[me]:Oe[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,Oe=this.state.activeValue,le=Oe===void 0?[]:Oe,$=T()(ie,function(J,te){return J[me.getFieldName("value")]===le[te]},{childrenKeyName:this.getFieldName("children")});return $[$.length-2]?$[$.length-2][this.getFieldName("children")]:x(ie).filter(function(J){return!J.disabled})}},{key:"getActiveOptions",value:function(me){var re=this;return T()(this.props.options||[],function(ie,Oe){return ie[re.getFieldName("value")]===me[Oe]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var me=this.props,re=me.prefixCls,ie=me.transitionName,Oe=me.popupClassName,le=me.options,$=le===void 0?[]:le,J=me.disabled,te=me.builtinPlacements,Ae=me.popupPlacement,Se=me.children,ke=me.dropdownRender,rt=R(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ot=L.createElement("div",null),gt="";$&&$.length>0?ot=L.createElement(w,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(p.a,Object.assign({ref:this.saveTrigger},rt,{popupPlacement:Ae,builtinPlacements:te,popupTransitionName:ie,action:J?[]:["click"],popupVisible:J?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:Oe+gt,popup:Et}),L.cloneElement(Se,{onKeyDown:this.handleKeyDown,tabIndex:J?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(me,re){var ie=re.prevProps,Oe=ie===void 0?{}:ie,le={prevProps:me};return"value"in me&&!h(Oe.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}(),we=Ee,ce=Y.a=we},S6kV:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return L.mode.OFB=function(){var p=L.lib.BlockCipherMode.extend(),A=p.Encryptor=p.extend({processBlock:function(b,y){var S=this._cipher,T=S.blockSize,h=this._iv,_=this._keystream;h&&(_=this._keystream=h.slice(0),this._iv=void 0),S.encryptBlock(_,0);for(var d=0;d<T;d++)b[y+d]^=_[d]}});return p.Decryptor=A,p}(),L.mode.OFB})},"SA+Z":function(M,Y,s){var L=s("wTVA"),p=s("EbDI"),A=s("ZhPi"),b=s("wkBT");function y(S){return L(S)||p(S)||A(S)||b()}M.exports=y,M.exports.__esModule=!0,M.exports.default=M.exports},SJMd:function(M,Y){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var s,L,p,A=!1,b,y;window.PR_SHOULD_USE_CONTINUATION=!0;var S,T;(function(){var h=window,_=["break,continue,do,else,for,if,return,while"],d=[_,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],r=[d,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],c=[r,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],t=[r,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[r,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],n="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",i=[r,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],f="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",l=[_,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],o=[_,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],m=[_,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],w=[c,a,t,i,f,l,o,m],C=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,v="str",P="kwd",R="com",E="typ",x="lit",g="pun",O="pln",I="tag",D="dec",N="src",V="atn",F="atv",W="nocode",K="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(le){for(var $=0,J=!1,te=!1,Ae=0,Se=le.length;Ae<Se;++Ae){var ke=le[Ae];if(ke.ignoreCase)te=!0;else if(/[a-z]/i.test(ke.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){J=!0,te=!1;break}}var rt={b:8,t:9,n:10,v:11,f:12,r:13};function ot(Qe){var Ue=Qe.charCodeAt(0);if(Ue!==92)return Ue;var ft=Qe.charAt(1);return Ue=rt[ft],Ue||("0"<=ft&&ft<="7"?parseInt(Qe.substring(1),8):ft==="u"||ft==="x"?parseInt(Qe.substring(2),16):Qe.charCodeAt(1))}function gt(Qe){if(Qe<32)return(Qe<16?"\\x0":"\\x")+Qe.toString(16);var Ue=String.fromCharCode(Qe);return Ue==="\\"||Ue==="-"||Ue==="]"||Ue==="^"?"\\"+Ue:Ue}function Et(Qe){var Ue=Qe.substring(1,Qe.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ft=[],jt=Ue[0]==="^",ht=["["];jt&&ht.push("^");for(var _t=jt?1:0,Ye=Ue.length;_t<Ye;++_t){var We=Ue[_t];if(/\\[bdsw]/i.test(We))ht.push(We);else{var Xe=ot(We),Te;_t+2<Ye&&Ue[_t+1]==="-"?(Te=ot(Ue[_t+2]),_t+=2):Te=Xe,ft.push([Xe,Te]),Te<65||Xe>122||(Te<65||Xe>90||ft.push([Math.max(65,Xe)|32,Math.min(Te,90)|32]),Te<97||Xe>122||ft.push([Math.max(97,Xe)&~32,Math.min(Te,122)&~32]))}}ft.sort(function(Ze,mt){return Ze[0]-mt[0]||mt[1]-Ze[1]});for(var Me=[],Ve=[],_t=0;_t<ft.length;++_t){var Ge=ft[_t];Ge[0]<=Ve[1]+1?Ve[1]=Math.max(Ve[1],Ge[1]):Me.push(Ve=Ge)}for(var _t=0;_t<Me.length;++_t){var Ge=Me[_t];ht.push(gt(Ge[0])),Ge[1]>Ge[0]&&(Ge[1]+1>Ge[0]&&ht.push("-"),ht.push(gt(Ge[1])))}return ht.push("]"),ht.join("")}function Ct(Qe){for(var Ue=Qe.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,jt=[],ht=0,_t=0;ht<ft;++ht){var Ye=Ue[ht];if(Ye==="(")++_t;else if(Ye.charAt(0)==="\\"){var We=+Ye.substring(1);We&&(We<=_t?jt[We]=-1:Ue[ht]=gt(We))}}for(var ht=1;ht<jt.length;++ht)jt[ht]===-1&&(jt[ht]=++$);for(var ht=0,_t=0;ht<ft;++ht){var Ye=Ue[ht];if(Ye==="(")++_t,jt[_t]||(Ue[ht]="(?:");else if(Ye.charAt(0)==="\\"){var We=+Ye.substring(1);We&&We<=_t&&(Ue[ht]="\\"+jt[We])}}for(var ht=0;ht<ft;++ht)Ue[ht]==="^"&&Ue[ht+1]!=="^"&&(Ue[ht]="");if(Qe.ignoreCase&&J)for(var ht=0;ht<ft;++ht){var Ye=Ue[ht],Xe=Ye.charAt(0);Ye.length>=2&&Xe==="["?Ue[ht]=Et(Ye):Xe!=="\\"&&(Ue[ht]=Ye.replace(/[a-zA-Z]/g,function(Ve){var Ge=Ve.charCodeAt(0);return"["+String.fromCharCode(Ge&~32,Ge|32)+"]"}))}return Ue.join("")}for(var wt=[],Ae=0,Se=le.length;Ae<Se;++Ae){var ke=le[Ae];if(ke.global||ke.multiline)throw new Error(""+ke);wt.push("(?:"+Ct(ke)+")")}return new RegExp(wt.join("|"),te?"gi":"g")}function k(le,$){var J=/(?:^|\s)nocode(?:\s|$)/,te=[],Ae=0,Se=[],ke=0;function rt(ot){var gt=ot.nodeType;if(gt==1){if(J.test(ot.className))return;for(var Et=ot.firstChild;Et;Et=Et.nextSibling)rt(Et);var Ct=ot.nodeName.toLowerCase();(Ct==="br"||Ct==="li")&&(te[ke]=`
`,Se[ke<<1]=Ae++,Se[ke++<<1|1]=ot)}else if(gt==3||gt==4){var wt=ot.nodeValue;wt.length&&($?wt=wt.replace(/\r\n?/g,`
`):wt=wt.replace(/[ \t\r\n]+/g," "),te[ke]=wt,Se[ke<<1]=Ae,Ae+=wt.length,Se[ke++<<1|1]=ot)}}return rt(le),{sourceCode:te.join("").replace(/\n$/,""),spans:Se}}function G(le,$,J,te,Ae){if(!J)return;var Se={sourceNode:le,pre:1,langExtension:null,numberLines:null,sourceCode:J,spans:null,basePos:$,decorations:null};te(Se),Ae.push.apply(Ae,Se.decorations)}var ne=/\S/;function fe(le){for(var $=void 0,J=le.firstChild;J;J=J.nextSibling){var te=J.nodeType;$=te===1?$?le:J:te===3&&ne.test(J.nodeValue)?le:$}return $===le?void 0:$}function de(le,$){var J={},te;(function(){for(var ke=le.concat($),rt=[],ot={},gt=0,Et=ke.length;gt<Et;++gt){var Ct=ke[gt],wt=Ct[3];if(wt)for(var Qe=wt.length;--Qe>=0;)J[wt.charAt(Qe)]=Ct;var Ue=Ct[1],ft=""+Ue;ot.hasOwnProperty(ft)||(rt.push(Ue),ot[ft]=null)}rt.push(/[\0-\uffff]/),te=B(rt)})();var Ae=$.length,Se=function(ke){for(var rt=ke.sourceCode,ot=ke.basePos,gt=ke.sourceNode,Et=[ot,O],Ct=0,wt=rt.match(te)||[],Qe={},Ue=0,ft=wt.length;Ue<ft;++Ue){var jt=wt[Ue],ht=Qe[jt],_t=void 0,Ye;if(typeof ht=="string")Ye=!1;else{var We=J[jt.charAt(0)];if(We)_t=jt.match(We[1]),ht=We[0];else{for(var Xe=0;Xe<Ae;++Xe)if(We=$[Xe],_t=jt.match(We[1]),_t){ht=We[0];break}_t||(ht=O)}Ye=ht.length>=5&&ht.substring(0,5)==="lang-",Ye&&!(_t&&typeof _t[1]=="string")&&(Ye=!1,ht=N),Ye||(Qe[jt]=ht)}var Te=Ct;if(Ct+=jt.length,!Ye)Et.push(ot+Te,ht);else{var Me=_t[1],Ve=jt.indexOf(Me),Ge=Ve+Me.length;_t[2]&&(Ge=jt.length-_t[2].length,Ve=Ge-Me.length);var Ze=ht.substring(5);G(gt,ot+Te,jt.substring(0,Ve),Se,Et),G(gt,ot+Te+Ve,Me,se(Ze,Me),Et),G(gt,ot+Te+Ge,jt.substring(Ge),Se,Et)}}ke.decorations=Et};return Se}function Ee(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 Ae=le.regexLiterals;if(Ae){var Se=Ae>1?"":`
\r`,ke=Se?".":"[\\S\\s]",rt="/(?=[^/*"+Se+"])(?:[^/\\x5B\\x5C"+Se+"]|\\x5C"+ke+"|\\x5B(?:[^\\x5C\\x5D"+Se+"]|\\x5C"+ke+")*(?:\\x5D|$))+/";J.push(["lang-regex",RegExp("^"+K+"("+rt+")")])}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([O,/^\s+/,null,` \r
\xA0`]);var Et="^.[^\\s\\w.$@'\"`/\\\\]*";return le.regexLiterals&&(Et+="(?!s*/)"),J.push([x,/^@[a-z_$][a-z_$@0-9]*/i,null],[E,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[O,/^[a-z_$][a-z_$@0-9]*/i,null],[x,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[O,/^\\[\s\S]?/,null],[g,new RegExp(Et),null]),de($,J)}var we=Ee({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(le,$,J){for(var te=/(?:^|\s)nocode(?:\s|$)/,Ae=/\r\n?|\n/,Se=le.ownerDocument,ke=Se.createElement("li");le.firstChild;)ke.appendChild(le.firstChild);var rt=[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 jt=Ue.firstChild;jt;jt=jt.nextSibling)ot(jt);else if((ft==3||ft==4)&&J){var ht=Ue.nodeValue,_t=ht.match(Ae);if(_t){var Ye=ht.substring(0,_t.index);Ue.nodeValue=Ye;var We=ht.substring(_t.index+_t[0].length);if(We){var Xe=Ue.parentNode;Xe.insertBefore(Se.createTextNode(We),Ue.nextSibling)}gt(Ue),Ye||Ue.parentNode.removeChild(Ue)}}}function gt(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function ft(_t,Ye){var We=Ye?_t.cloneNode(!1):_t,Xe=_t.parentNode;if(Xe){var Te=ft(Xe,1),Me=_t.nextSibling;Te.appendChild(We);for(var Ve=Me;Ve;Ve=Me)Me=Ve.nextSibling,Te.appendChild(Ve)}return We}for(var jt=ft(Ue.nextSibling,0),ht;(ht=jt.parentNode)&&ht.nodeType===1;)jt=ht;rt.push(jt)}for(var Et=0;Et<rt.length;++Et)ot(rt[Et]);$===($|0)&&rt[0].setAttribute("value",$);var Ct=Se.createElement("ol");Ct.className="linenums";for(var wt=Math.max(0,$-1|0)||0,Et=0,Qe=rt.length;Et<Qe;++Et)ke=rt[Et],ke.className="L"+(Et+wt)%10,ke.firstChild||ke.appendChild(Se.createTextNode("\xA0")),Ct.appendChild(ke);le.appendChild(Ct)}function be(le){var $=/\bMSIE\s(\d+)/.exec(navigator.userAgent);$=$&&+$[1]<=8;var J=/\n/g,te=le.sourceCode,Ae=te.length,Se=0,ke=le.spans,rt=ke.length,ot=0,gt=le.decorations,Et=gt.length,Ct=0;gt[Et]=Ae;var wt,Qe;for(Qe=wt=0;Qe<Et;)gt[Qe]!==gt[Qe+2]?(gt[wt++]=gt[Qe++],gt[wt++]=gt[Qe++]):Qe+=2;for(Et=wt,Qe=wt=0;Qe<Et;){for(var Ue=gt[Qe],ft=gt[Qe+1],jt=Qe+2;jt+2<=Et&&gt[jt+1]===ft;)jt+=2;gt[wt++]=Ue,gt[wt++]=ft,Qe=jt}Et=gt.length=wt;var ht=le.sourceNode,_t="";ht&&(_t=ht.style.display,ht.style.display="none");try{for(var Ye=null;ot<rt;){var We=ke[ot],Xe=ke[ot+2]||Ae,Te=gt[Ct+2]||Ae,jt=Math.min(Xe,Te),Me=ke[ot+1],Ve;if(Me.nodeType!==1&&(Ve=te.substring(Se,jt))){$&&(Ve=Ve.replace(J,"\r")),Me.nodeValue=Ve;var Ge=Me.ownerDocument,Ze=Ge.createElement("span");Ze.className=gt[Ct+1];var mt=Me.parentNode;mt.replaceChild(Ze,Me),Ze.appendChild(Me),Se<Xe&&(ke[ot+1]=Me=Ge.createTextNode(te.substring(jt,Xe)),mt.insertBefore(Me,Ze.nextSibling))}Se=jt,Se>=Xe&&(ot+=2),Se>=Te&&(Ct+=2)}}finally{ht&&(ht.style.display=_t)}}var ve={};function ue(le,$){for(var J=$.length;--J>=0;){var te=$[J];ve.hasOwnProperty(te)?h.console&&console.warn("cannot override language handler %s",te):ve[te]=le}}function se(le,$){return le&&ve.hasOwnProperty(le)||(le=/^\s*</.test($)?"default-markup":"default-code"),ve[le]}ue(we,["default-code"]),ue(de([],[[O,/^[^<?]+/],[D,/^<!\w[^>]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[g,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ue(de([[O,/^[\s]+/,null,` \r
`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[I,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[V,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[g,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ue(de([],[[F,/^[\s\S]+/]]),["uq.val"]),ue(Ee({keywords:c,hashComments:!0,cStyleComments:!0,types:C}),["c","cc","cpp","cxx","cyc","m"]),ue(Ee({keywords:"null,true,false"}),["json"]),ue(Ee({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:C}),["cs"]),ue(Ee({keywords:t,cStyleComments:!0}),["java"]),ue(Ee({keywords:m,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Ee({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Ee({keywords:f,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Ee({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Ee({keywords:i,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Ee({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(de([],[[v,/^[\s\S]+/]]),["regex"]);function q(le){var $=le.langExtension;try{var J=k(le.sourceNode,le.pre),te=J.sourceCode;le.sourceCode=te,le.spans=J.spans,le.basePos=0,se($,te)(le),be(le)}catch(Ae){h.console&&console.log(Ae&&Ae.stack||Ae)}}function me(le,$,J){var te=J||!1,Ae=$||null,Se=document.createElement("div");Se.innerHTML="<pre>"+le+"</pre>",Se=Se.firstChild,te&&ce(Se,te,!0);var ke={langExtension:Ae,numberLines:te,sourceNode:Se,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return q(ke),Se.innerHTML}function re(le,$){var J=$||document.body,te=J.ownerDocument||document;function Ae(We){return J.getElementsByTagName(We)}for(var Se=[Ae("pre"),Ae("code"),Ae("xmp")],ke=[],rt=0;rt<Se.length;++rt)for(var ot=0,gt=Se[rt].length;ot<gt;++ot)ke.push(Se[rt][ot]);Se=null;var Et=Date;Et.now||(Et={now:function(){return+new Date}});var Ct=0,wt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Qe=/\bprettyprint\b/,Ue=/\bprettyprinted\b/,ft=/pre|xmp/i,jt=/^code$/i,ht=/^(?:pre|code|xmp)$/i,_t={};function Ye(){for(var We=h.PR_SHOULD_USE_CONTINUATION?Et.now()+250:Infinity;Ct<ke.length&&Et.now()<We;Ct++){for(var Xe=ke[Ct],Te=_t,Me=Xe;Me=Me.previousSibling;){var Ve=Me.nodeType,Ge=(Ve===7||Ve===8)&&Me.nodeValue;if(Ge?!/^\??prettify\b/.test(Ge):Ve!==3||/\S/.test(Me.nodeValue))break;if(Ge){Te={},Ge.replace(/\b(\w+)=([\w:.%+-]+)/g,function(bt,dt,xt){Te[dt]=xt});break}}var Ze=Xe.className;if((Te!==_t||Qe.test(Ze))&&!Ue.test(Ze)){for(var mt=!1,Pt=Xe.parentNode;Pt;Pt=Pt.parentNode){var Gt=Pt.tagName;if(ht.test(Gt)&&Pt.className&&Qe.test(Pt.className)){mt=!0;break}}if(!mt){Xe.className+=" prettyprinted";var dn=Te.lang;if(!dn){dn=Ze.match(wt);var Tt;!dn&&(Tt=fe(Xe))&&jt.test(Tt.tagName)&&(dn=Tt.className.match(wt)),dn&&(dn=dn[1])}var ut;if(ft.test(Xe.tagName))ut=1;else{var je=Xe.currentStyle,tt=te.defaultView,nt=je?je.whiteSpace:tt&&tt.getComputedStyle?tt.getComputedStyle(Xe,null).getPropertyValue("white-space"):0;ut=nt&&nt.substring(0,3)==="pre"}var De=Te.linenums;(De=De==="true"||+De)||(De=Ze.match(/\blinenums\b(?::(\d+))?/),De=De?De[1]&&De[1].length?+De[1]:!0:!1),De&&ce(Xe,De,ut);var Fe={langExtension:dn,sourceNode:Xe,numberLines:De,pre:ut,sourceCode:null,basePos:null,spans:null,decorations:null};q(Fe)}}}Ct<ke.length?h.setTimeout(Ye,250):typeof le=="function"&&le()}Ye()}var ie=h.PR={createSimpleLexer:de,registerLangHandler:ue,sourceDecorator:Ee,PR_ATTRIB_NAME:V,PR_ATTRIB_VALUE:F,PR_COMMENT:R,PR_DECLARATION:D,PR_KEYWORD:P,PR_LITERAL:x,PR_NOCODE:W,PR_PLAIN:O,PR_PUNCTUATION:g,PR_SOURCE:N,PR_STRING:v,PR_TAG:I,PR_TYPE:E,prettyPrintOne:A?h.prettyPrintOne=me:S=me,prettyPrint:T=A?h.prettyPrint=re:T=re},Oe=h.define;typeof Oe=="function"&&Oe.amd&&Oe("google-code-prettify",[],function(){return ie})})()},SLjR:function(M,Y,s){},SMhR:function(M,Y){M.exports="data:image/png;base64,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"},Se0u:function(M,Y,s){},TGq3:function(M,Y,s){M.exports=s.p+"static/lockclose.365036e8.svg"},TXwP:function(M,Y,s){var L,p;(function(){var A;(function(){"use strict";var y=[,,function(_){function d(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}d.prototype.clone_empty=function(){var t=new d(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},d.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},d.prototype.has_match=function(t){for(var a=this.__items.length-1;a>=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 c(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()}c.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},c.prototype.get_line_number=function(){return this.__lines.length},c.prototype.get_indent_string=function(t,a){return this.__indent_cache.get_indent_string(t,a)},c.prototype.get_indent_size=function(t,a){return this.__indent_cache.get_indent_size(t,a)},c.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},c.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},c.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},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.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)},c.prototype.add_raw_token=function(t){for(var a=0;a<t.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},c.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(t){for(var a=this.__lines.length;t<a;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},c.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&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},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.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=c},,,,function(_){function d(t,a){this.raw_options=r(t,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}d.prototype._get_array=function(t,a){var n=this.raw_options[t],i=a||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(i=n.concat()):typeof n=="string"&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},d.prototype._get_boolean=function(t,a){var n=this.raw_options[t],i=n===void 0?!!a:!!n;return i},d.prototype._get_characters=function(t,a){var n=this.raw_options[t],i=a||"";return typeof n=="string"&&(i=n.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),i},d.prototype._get_number=function(t,a){var n=this.raw_options[t];a=parseInt(a,10),isNaN(a)&&(a=0);var i=parseInt(n,10);return isNaN(i)&&(i=a),i},d.prototype._get_selection=function(t,a,n){var i=this._get_selection_list(t,a,n);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
`+a+`
You passed in: '`+this.raw_options[t]+"'");return i[0]},d.prototype._get_selection_list=function(t,a,n){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[a[0]],!this._is_valid_selection(n,a))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,a))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
`+a+`
You passed in: '`+this.raw_options[t]+"'");return i},d.prototype._is_valid_selection=function(t,a){return t.length&&a.length&&!t.some(function(n){return a.indexOf(n)===-1})};function r(t,a){var n={};t=c(t);var i;for(i in t)i!==a&&(n[i]=t[i]);if(a&&t[a])for(i in t[a])n[i]=t[a][i];return n}function c(t){var a={},n;for(n in t){var i=n.replace(/-/g,"_");a[i]=t[n]}return a}_.exports.Options=d,_.exports.normalizeOpts=c,_.exports.mergeOpts=r},,function(_){var d=RegExp.prototype.hasOwnProperty("sticky");function r(c){this.__input=c||"",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<this.__input_length},r.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},r.prototype.peek=function(c){var t=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(t=this.__input.charAt(c)),t},r.prototype.__match=function(c,t){c.lastIndex=t;var a=c.exec(this.__input);return a&&!(d&&c.sticky)&&(a.index!==t&&(a=null)),a},r.prototype.test=function(c,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(c,t):!1},r.prototype.testChar=function(c,t){var a=this.peek(t);return c.lastIndex=0,a!==null&&c.test(a)},r.prototype.match=function(c){var t=this.__match(c,this.__position);return t?this.__position+=t[0].length:t=null,t},r.prototype.read=function(c,t,a){var n="",i;return c&&(i=this.match(c),i&&(n+=i[0])),t&&(i||!c)&&(n+=this.readUntil(t,a)),n},r.prototype.readUntil=function(c,t){var a="",n=this.__position;c.lastIndex=this.__position;var i=c.exec(this.__input);return i?(n=i.index,t&&(n+=i[0].length)):n=this.__input_length,a=this.__input.substring(this.__position,n),this.__position=n,a},r.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},r.prototype.get_regexp=function(c,t){var a=null,n="g";return t&&d&&(n="y"),typeof c=="string"&&c!==""?a=new RegExp(c,n):c&&(a=new RegExp(c.source,n)),a},r.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(c){var t=this.__position,a=this.readUntilAfter(c);return this.__position=t,a},r.prototype.lookBack=function(c){var t=this.__position-1;return t>=c.length&&this.__input.substring(t-c.length,t).toLowerCase()===c},_.exports.InputScanner=r},,,,,function(_){function d(r,c){r=typeof r=="string"?r:r.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+c,"g")}d.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(r);t;)c[t[1]]=t[2],t=this.__directive_pattern.exec(r);return c},d.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},_.exports.Directives=d},,function(_,d,r){var c=r(16).Beautifier,t=r(17).Options;function a(n,i){var f=new c(n,i);return f.beautify()}_.exports=a,_.exports.defaultOptions=function(){return new t}},function(_,d,r){var c=r(17).Options,t=r(2).Output,a=r(8).InputScanner,n=r(13).Directives,i=new n(/\/\*/,/\*\//),f=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,o=/\s/,m=/(?:\s|\n)+/g,w=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,C=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function v(P,R){this._source_text=P||"",this._options=new c(R),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}v.prototype.eatString=function(P){var R="";for(this._ch=this._input.next();this._ch;){if(R+=this._ch,this._ch==="\\")R+=this._input.next();else if(P.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return R},v.prototype.eatWhitespace=function(P){for(var R=o.test(this._input.peek()),E=0;o.test(this._input.peek());)this._ch=this._input.next(),P&&this._ch===`
`&&((E===0||E<this._options.max_preserve_newlines)&&(E++,this._output.add_new_line(!0)));return R},v.prototype.foundNestedPseudoClass=function(){for(var P=0,R=1,E=this._input.peek(R);E;){if(E==="{")return!0;if(E==="(")P+=1;else if(E===")"){if(P===0)return!1;P-=1}else if(E===";"||E==="}")return!1;R++,E=this._input.peek(R)}return!1},v.prototype.print_string=function(P){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(P)},v.prototype.preserveSingleSpace=function(P){P&&(this._output.space_before_token=!0)},v.prototype.indent=function(){this._indentLevel++},v.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},v.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,R=this._options.eol;R==="auto"&&(R=`
`,P&&f.test(P||"")&&(R=P.match(f)[0])),P=P.replace(l,`
`);var E=P.match(/^[\t ]*/)[0];this._output=new t(this._options,E),this._input=new a(P),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var x=0,g=!1,O=!1,I=!1,D=!1,N=!1,V=!1,F=this._ch,W=!1,K,B,k;K=this._input.read(m),B=K!=="",k=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var G=this._input.read(w),ne=i.get_directives(G);ne&&ne.ignore==="start"&&(G+=i.readIgnored(this._input)),this.print_string(G),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(C)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(B),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var fe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);fe.match(/[ :]$/)&&(fe=this.eatString(": ").replace(/\s$/,""),this.print_string(fe),this._output.space_before_token=!0),fe=fe.replace(/\s$/,""),fe==="extend"?D=!0:fe==="import"&&(N=!0),fe in this.NESTED_AT_RULE?(this._nestedLevel+=1,fe in this.CONDITIONAL_GROUP_RULE&&(I=!0)):!g&&x===0&&fe.indexOf(":")!==-1&&(O=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(B),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")O&&(O=!1,this.outdent()),I?(I=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(k==="("?this._output.space_before_token=!1:k!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),k==="{"&&this._output.trim(!0),N=!1,D=!1,O&&(this.outdent(),O=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var de=0;de<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;de++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[de])){W=!0;break}(g||I)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!D&&x===0?(this.print_string(":"),O||(O=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ee=k==='"'||k==="'";this.preserveSingleSpace(Ee||B),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")W=!1,x===0?(O&&(this.outdent(),O=!1),D=!1,N=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),x++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),x&&(x--,this.outdent()));else{var we=!1;this._input.lookBack("with")&&(we=!0),this.preserveSingleSpace(B||we),this.print_string(this._ch),O&&k==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),V=!0):(this.eatWhitespace(),x++,this.indent())}else if(this._ch===")")x&&(x--,this.outdent()),V&&this._input.peek()===";"&&this._options.selector_separator_newline&&(V=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!O||V)&&x===0&&!N&&!D?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!O&&x===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&o.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(B),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),o.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ce=k==='"'||k==="'";this.preserveSingleSpace(ce||B),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&W&&this._output.add_new_line()}var be=this._output.get_code(R);return be},_.exports.Beautifier=v},function(_,d,r){var c=r(6).Options;function t(a){c.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var n=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||n;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var f=0;f<i.length;f++)i[f]!=="expand"?this.brace_style="collapse":this.brace_style=i[f]}t.prototype=new c,_.exports.Options=t}],S={};function T(_){var d=S[_];if(d!==void 0)return d.exports;var r=S[_]={exports:{}};return y[_](r,r.exports,T),r.exports}var h=T(15);A=h})();var b=A;!(L=[],p=function(){return{css_beautify:b}}.apply(Y,L),p!==void 0&&(M.exports=p))})()},UGPy:function(M,Y,s){M.exports={practice:"practice___3ZVzw",right:"right___QGXbw",title:"title___1fvdS",content:"content___10SYj",des:"des___V2RYR",mainBody:"mainBody___3vP2d",selectBox:"selectBox___1vC0V",smallType:"smallType___2CvJP",evaluating:"evaluating___rLyh5",evaluatingLabel:"evaluatingLabel___3RsVg",mask:"mask___2kc6a",evaluatingS1:"evaluatingS1___2HzdH",serviceSettingWrap:"serviceSettingWrap___250aS",serviceBox:"serviceBox___1BL80",serviceSetLeft:"serviceSetLeft___2q-GU",serviceSetInput:"serviceSetInput___2hDqz",serviceSetTip:"serviceSetTip___29Bop",btns:"btns___1NoLi",popover:"popover___1Xuw5"}},UUDw:function(M,Y,s){M.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},"Ufr+":function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACL0lEQVRIS72WvU9TURTAf4e+qBUritRXoYkaB0w0alz4B3RQExTSbjpooouiddGVxf0hTjKQ+MkANhiVwYTNwcHFRuNgdIHGYiMmVWnja6+5La8ttq99Vesd3/n4nXPuOec+ocHpu6nCecVJFCcUHBDo0eoK0gKvEZ76hNnFy7Lg5kbqCXrGVa8vzyhwVsBoFIQCG5jM+xhNj0jyd90agGmpQVHcQwg0clwjU2SUcDoVk8fVsjUAc0yNiMICOlpyXlEuKCGWuiLjzqcyoBg5xP/CueOzoGDIyaQI0DU3bN61XBa3NBUZ22CvvpMiwLTUbYHzf1gWDpmw9B2S3yoeFEykYnJBdCvaBT4265Z6cEMgNgBn9sPQNHz4ugZgGx3sltCYuojiVqvRd/th4jjsC0J0BhKf63gQLknIUs+AY60A+rfB3UEIboTIDLz65Go9J6alFgT6vAIOboeHp2CrH64+h6m37pYKFnUGWWB9tZrfAOso5Gy4Ng/ZfEl62ISpYQisgzsJuD7fNKxcXUCoE+JR2NUFiSU49wQ2GDAbBV3798tw5D7kVsENMDnXEoUDEI9AeDN8WYGsDb0B0FM0PA0va7ZOLcYpkesl7+wqQXZsqhh7LI1jMNe0TfdsKUGCnfDjJwxMQnqlae1LCrpNvQxafzc8isCDN3DjhTfneo0XB83rqtADlczAsu45D6e8Kv7LslvNon3r2sm4rQ9OGdLOJ9OBtPXRr26Qf/Hb8gvtaezbqqd4vgAAAABJRU5ErkJggg=="},UqFu:function(M,Y,s){"use strict";s.d(Y,"a",function(){return L});var L=function(A){var b=document.createElement("textarea");return b.value=A,b.value}},"VrN/":function(M,Y,s){(function(L,p){M.exports=p()})(this,function(){"use strict";var L=navigator.userAgent,p=navigator.platform,A=/gecko\/\d/i.test(L),b=/MSIE \d/.test(L),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(L),S=/Edge\/(\d+)/.exec(L),T=b||y||S,h=T&&(b?document.documentMode||6:+(S||y)[1]),_=!S&&/WebKit\//.test(L),d=_&&/Qt\/\d+\.\d+/.test(L),r=!S&&/Chrome\//.test(L),c=/Opera\//.test(L),t=/Apple Computer/.test(navigator.vendor),a=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(L),n=/PhantomJS/.test(L),i=!S&&/AppleWebKit/.test(L)&&/Mobile\/\w+/.test(L),f=/Android/.test(L),l=i||f||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(L),o=i||/Mac/.test(p),m=/\bCrOS\b/.test(L),w=/win/i.test(p),C=c&&L.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(c=!1,_=!0);var v=o&&(d||c&&(C==null||C<12.11)),P=A||T&&h>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E=function(e,u){var j=e.className,U=R(u).exec(j);if(U){var H=j.slice(U.index+U[0].length);e.className=j.slice(0,U.index)+(H?U[1]+H:"")}};function x(e){for(var u=e.childNodes.length;u>0;--u)e.removeChild(e.firstChild);return e}function g(e,u){return x(e).appendChild(u)}function O(e,u,j,U){var H=document.createElement(e);if(j&&(H.className=j),U&&(H.style.cssText=U),typeof u=="string")H.appendChild(document.createTextNode(u));else if(u)for(var ee=0;ee<u.length;++ee)H.appendChild(u[ee]);return H}function I(e,u,j,U){var H=O(e,u,j,U);return H.setAttribute("role","presentation"),H}var D;document.createRange?D=function(e,u,j,U){var H=document.createRange();return H.setEnd(U||e,j),H.setStart(e,u),H}:D=function(e,u,j){var U=document.body.createTextRange();try{U.moveToElementText(e.parentNode)}catch(H){return U}return U.collapse(!0),U.moveEnd("character",j),U.moveStart("character",u),U};function N(e,u){if(u.nodeType==3&&(u=u.parentNode),e.contains)return e.contains(u);do if(u.nodeType==11&&(u=u.host),u==e)return!0;while(u=u.parentNode)}function V(){var e;try{e=document.activeElement}catch(u){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function F(e,u){var j=e.className;R(u).test(j)||(e.className+=(j?" ":"")+u)}function W(e,u){for(var j=e.split(" "),U=0;U<j.length;U++)j[U]&&!R(j[U]).test(u)&&(u+=" "+j[U]);return u}var K=function(e){e.select()};i?K=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:T&&(K=function(e){try{e.select()}catch(u){}});function B(e){var u=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,u)}}function k(e,u,j){u||(u={});for(var U in e)e.hasOwnProperty(U)&&(j!==!1||!u.hasOwnProperty(U))&&(u[U]=e[U]);return u}function G(e,u,j,U,H){u==null&&(u=e.search(/[^\s\u00a0]/),u==-1&&(u=e.length));for(var ee=U||0,ge=H||0;;){var Ce=e.indexOf(" ",ee);if(Ce<0||Ce>=u)return ge+(u-ee);ge+=Ce-ee,ge+=j-ge%j,ee=Ce+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,u){this.f=u;var j=+new Date+e;(!this.id||j<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=j)};function fe(e,u){for(var j=0;j<e.length;++j)if(e[j]==u)return j;return-1}var de=50,Ee={toString:function(){return"CodeMirror.Pass"}},we={scroll:!1},ce={origin:"*mouse"},be={origin:"+move"};function ve(e,u,j){for(var U=0,H=0;;){var ee=e.indexOf(" ",U);ee==-1&&(ee=e.length);var ge=ee-U;if(ee==e.length||H+ge>=u)return U+Math.min(ge,u-H);if(H+=ee-U,H+=j-H%j,U=ee+1,H>=u)return U}}var ue=[""];function se(e){for(;ue.length<=e;)ue.push(q(ue)+" ");return ue[e]}function q(e){return e[e.length-1]}function me(e,u){for(var j=[],U=0;U<e.length;U++)j[U]=u(e[U],U);return j}function re(e,u,j){for(var U=0,H=j(u);U<e.length&&j(e[U])<=H;)U++;e.splice(U,0,u)}function ie(){}function Oe(e,u){var j;return Object.create?j=Object.create(e):(ie.prototype=e,j=new ie),u&&k(u,j),j}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||le.test(e))}function J(e,u){return u?u.source.indexOf("\\w")>-1&&$(e)?!0:u.test(e):$(e)}function te(e){for(var u in e)if(e.hasOwnProperty(u)&&e[u])return!1;return!0}var Ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Se(e){return e.charCodeAt(0)>=768&&Ae.test(e)}function ke(e,u,j){for(;(j<0?u>0:u<e.length)&&Se(e.charAt(u));)u+=j;return u}function rt(e,u,j){for(var U=u>j?-1:1;;){if(u==j)return u;var H=(u+j)/2,ee=U<0?Math.ceil(H):Math.floor(H);if(ee==u)return e(ee)?u:j;e(ee)?j=ee:u=ee+U}}function ot(e,u,j,U){if(!e)return U(u,j,"ltr",0);for(var H=!1,ee=0;ee<e.length;++ee){var ge=e[ee];(ge.from<j&&ge.to>u||u==j&&ge.to==u)&&(U(Math.max(ge.from,u),Math.min(ge.to,j),ge.level==1?"rtl":"ltr",ee),H=!0)}H||U(u,j,"ltr")}var gt=null;function Et(e,u,j){var U;gt=null;for(var H=0;H<e.length;++H){var ee=e[H];if(ee.from<u&&ee.to>u)return H;ee.to==u&&(ee.from!=ee.to&&j=="before"?U=H:gt=H),ee.from==u&&(ee.from!=ee.to&&j!="before"?U=H:gt=H)}return U!=null?U:gt}var Ct=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function j(Be){return Be<=247?e.charAt(Be):1424<=Be&&Be<=1524?"R":1536<=Be&&Be<=1785?u.charAt(Be-1536):1774<=Be&&Be<=2220?"r":8192<=Be&&Be<=8203?"w":Be==8204?"b":"L"}var U=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,H=/[stwN]/,ee=/[LRr]/,ge=/[Lb1n]/,Ce=/[1n]/;function Re(Be,vt,Rt){this.level=Be,this.from=vt,this.to=Rt}return function(Be,vt){var Rt=vt=="ltr"?"L":"R";if(Be.length==0||vt=="ltr"&&!U.test(Be))return!1;for(var $t=Be.length,zt=[],Tn=0;Tn<$t;++Tn)zt.push(j(Be.charCodeAt(Tn)));for(var Hn=0,nr=Rt;Hn<$t;++Hn){var xr=zt[Hn];xr=="m"?zt[Hn]=nr:nr=xr}for(var kr=0,Cr=Rt;kr<$t;++kr){var Vr=zt[kr];Vr=="1"&&Cr=="r"?zt[kr]="n":ee.test(Vr)&&(Cr=Vr,Vr=="r"&&(zt[kr]="R"))}for(var aa=1,ea=zt[0];aa<$t-1;++aa){var Ca=zt[aa];Ca=="+"&&ea=="1"&&zt[aa+1]=="1"?zt[aa]="1":Ca==","&&ea==zt[aa+1]&&(ea=="1"||ea=="n")&&(zt[aa]=ea),ea=Ca}for(var Va=0;Va<$t;++Va){var vi=zt[Va];if(vi==",")zt[Va]="N";else if(vi=="%"){var ti=void 0;for(ti=Va+1;ti<$t&&zt[ti]=="%";++ti);for(var zi=Va&&zt[Va-1]=="!"||ti<$t&&zt[ti]=="1"?"1":"N",Ui=Va;Ui<ti;++Ui)zt[Ui]=zi;Va=ti-1}}for(var ci=0,ji=Rt;ci<$t;++ci){var Ci=zt[ci];ji=="L"&&Ci=="1"?zt[ci]="L":ee.test(Ci)&&(ji=Ci)}for(var pi=0;pi<$t;++pi)if(H.test(zt[pi])){var di=void 0;for(di=pi+1;di<$t&&H.test(zt[di]);++di);for(var ii=(pi?zt[pi-1]:Rt)=="L",Bi=(di<$t?zt[di]:Rt)=="L",Os=ii==Bi?ii?"L":"R":Rt,es=pi;es<di;++es)zt[es]=Os;pi=di-1}for(var Ti=[],Po,_i=0;_i<$t;)if(ge.test(zt[_i])){var ru=_i;for(++_i;_i<$t&&ge.test(zt[_i]);++_i);Ti.push(new Re(0,ru,_i))}else{var Fo=_i,ds=Ti.length,fs=vt=="rtl"?1:0;for(++_i;_i<$t&&zt[_i]!="L";++_i);for(var Mi=Fo;Mi<_i;)if(Ce.test(zt[Mi])){Fo<Mi&&(Ti.splice(ds,0,new Re(1,Fo,Mi)),ds+=fs);var Ts=Mi;for(++Mi;Mi<_i&&Ce.test(zt[Mi]);++Mi);Ti.splice(ds,0,new Re(2,Ts,Mi)),ds+=fs,Fo=Mi}else++Mi;Fo<_i&&Ti.splice(ds,0,new Re(1,Fo,_i))}return vt=="ltr"&&(Ti[0].level==1&&(Po=Be.match(/^\s+/))&&(Ti[0].from=Po[0].length,Ti.unshift(new Re(0,0,Po[0].length))),q(Ti).level==1&&(Po=Be.match(/\s+$/))&&(q(Ti).to-=Po[0].length,Ti.push(new Re(0,$t-Po[0].length,$t)))),vt=="rtl"?Ti.reverse():Ti}}();function wt(e,u){var j=e.order;return j==null&&(j=e.order=Ct(e.text,u)),j}var Qe=[],Ue=function(e,u,j){if(e.addEventListener)e.addEventListener(u,j,!1);else if(e.attachEvent)e.attachEvent("on"+u,j);else{var U=e._handlers||(e._handlers={});U[u]=(U[u]||Qe).concat(j)}};function ft(e,u){return e._handlers&&e._handlers[u]||Qe}function jt(e,u,j){if(e.removeEventListener)e.removeEventListener(u,j,!1);else if(e.detachEvent)e.detachEvent("on"+u,j);else{var U=e._handlers,H=U&&U[u];if(H){var ee=fe(H,j);ee>-1&&(U[u]=H.slice(0,ee).concat(H.slice(ee+1)))}}}function ht(e,u){var j=ft(e,u);if(!j.length)return;for(var U=Array.prototype.slice.call(arguments,2),H=0;H<j.length;++H)j[H].apply(null,U)}function _t(e,u,j){return typeof u=="string"&&(u={type:u,preventDefault:function(){this.defaultPrevented=!0}}),ht(e,j||u.type,e,u),Ve(u)||u.codemirrorIgnore}function Ye(e){var u=e._handlers&&e._handlers.cursorActivity;if(!u)return;for(var j=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),U=0;U<u.length;++U)fe(j,u[U])==-1&&j.push(u[U])}function We(e,u){return ft(e,u).length>0}function Xe(e){e.prototype.on=function(u,j){Ue(this,u,j)},e.prototype.off=function(u,j){jt(this,u,j)}}function Te(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ve(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ge(e){Te(e),Me(e)}function Ze(e){return e.target||e.srcElement}function mt(e){var u=e.which;return u==null&&(e.button&1?u=1:e.button&2?u=3:e.button&4&&(u=2)),o&&e.ctrlKey&&u==1&&(u=3),u}var Pt=function(){if(T&&h<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}(),Gt;function dn(e){if(Gt==null){var u=O("span","\u200B");g(e,O("span",[u,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Gt=u.offsetWidth<=1&&u.offsetHeight>2&&!(T&&h<8))}var j=Gt?O("span","\u200B"):O("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return j.setAttribute("cm-text",""),j}var Tt;function ut(e){if(Tt!=null)return Tt;var u=g(e,document.createTextNode("A\u062EA")),j=D(u,0,1).getBoundingClientRect(),U=D(u,1,2).getBoundingClientRect();return x(e),!j||j.left==j.right?!1:Tt=U.right-j.right<3}var je=`
b`.split(/\n/).length!=3?function(e){for(var u=0,j=[],U=e.length;u<=U;){var H=e.indexOf(`
`,u);H==-1&&(H=e.length);var ee=e.slice(u,e.charAt(H-1)=="\r"?H-1:H),ge=ee.indexOf("\r");ge!=-1?(j.push(ee.slice(0,ge)),u+=ge+1):(j.push(ee),u=H+1)}return j}:function(e){return e.split(/\r\n?|\n/)},tt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(u){return!1}}:function(e){var u;try{u=e.ownerDocument.selection.createRange()}catch(j){}return!u||u.parentElement()!=e?!1:u.compareEndPoints("StartToEnd",u)!=0},nt=function(){var e=O("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),De=null;function Fe(e){if(De!=null)return De;var u=g(e,O("span","x")),j=u.getBoundingClientRect(),U=D(u,0,1).getBoundingClientRect();return De=Math.abs(j.left-U.left)>1}var bt={},dt={};function xt(e,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),bt[e]=u}function kt(e,u){dt[e]=u}function et(e){if(typeof e=="string"&&dt.hasOwnProperty(e))e=dt[e];else if(e&&typeof e.name=="string"&&dt.hasOwnProperty(e.name)){var u=dt[e.name];typeof u=="string"&&(u={name:u}),e=Oe(u,e),e.name=u.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return et("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return et("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Mt(e,u){u=et(u);var j=bt[u.name];if(!j)return Mt(e,"text/plain");var U=j(e,u);if(Ht.hasOwnProperty(u.name)){var H=Ht[u.name];for(var ee in H){if(!H.hasOwnProperty(ee))continue;U.hasOwnProperty(ee)&&(U["_"+ee]=U[ee]),U[ee]=H[ee]}}if(U.name=u.name,u.helperType&&(U.helperType=u.helperType),u.modeProps)for(var ge in u.modeProps)U[ge]=u.modeProps[ge];return U}var Ht={};function _n(e,u){var j=Ht.hasOwnProperty(e)?Ht[e]:Ht[e]={};k(u,j)}function vn(e,u){if(u===!0)return u;if(e.copyState)return e.copyState(u);var j={};for(var U in u){var H=u[U];H instanceof Array&&(H=H.concat([])),j[U]=H}return j}function fn(e,u){for(var j;e.innerMode&&!(j=e.innerMode(u),!j||j.mode==e);)u=j.state,e=j.mode;return j||{mode:e,state:u}}function Gn(e,u,j){return e.startState?e.startState(u,j):!0}var wn=function(e,u,j){this.pos=this.start=0,this.string=e,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=j};wn.prototype.eol=function(){return this.pos>=this.string.length},wn.prototype.sol=function(){return this.pos==this.lineStart},wn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},wn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},wn.prototype.eat=function(e){var u=this.string.charAt(this.pos),j;if(typeof e=="string"?j=u==e:j=u&&(e.test?e.test(u):e(u)),j)return++this.pos,u},wn.prototype.eatWhile=function(e){for(var u=this.pos;this.eat(e););return this.pos>u},wn.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},wn.prototype.skipToEnd=function(){this.pos=this.string.length},wn.prototype.skipTo=function(e){var u=this.string.indexOf(e,this.pos);if(u>-1)return this.pos=u,!0},wn.prototype.backUp=function(e){this.pos-=e},wn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=G(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},wn.prototype.indentation=function(){return G(this.string,null,this.tabSize)-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},wn.prototype.match=function(e,u,j){if(typeof e=="string"){var U=function(ge){return j?ge.toLowerCase():ge},H=this.string.substr(this.pos,e.length);if(U(H)==U(e))return u!==!1&&(this.pos+=e.length),!0}else{var ee=this.string.slice(this.pos).match(e);return ee&&ee.index>0?null:(ee&&u!==!1&&(this.pos+=ee[0].length),ee)}},wn.prototype.current=function(){return this.string.slice(this.start,this.pos)},wn.prototype.hideFirstChars=function(e,u){this.lineStart+=e;try{return u()}finally{this.lineStart-=e}},wn.prototype.lookAhead=function(e){var u=this.lineOracle;return u&&u.lookAhead(e)},wn.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function rn(e,u){if(u-=e.first,u<0||u>=e.size)throw new Error("There is no line "+(u+e.first)+" in the document.");for(var j=e;!j.lines;)for(var U=0;;++U){var H=j.children[U],ee=H.chunkSize();if(u<ee){j=H;break}u-=ee}return j.lines[u]}function Qn(e,u,j){var U=[],H=u.line;return e.iter(u.line,j.line+1,function(ee){var ge=ee.text;H==j.line&&(ge=ge.slice(0,j.ch)),H==u.line&&(ge=ge.slice(u.ch)),U.push(ge),++H}),U}function Zn(e,u,j){var U=[];return e.iter(u,j,function(H){U.push(H.text)}),U}function rr(e,u){var j=u-e.height;if(j)for(var U=e;U;U=U.parent)U.height+=j}function $n(e){if(e.parent==null)return null;for(var u=e.parent,j=fe(u.lines,e),U=u.parent;U;u=U,U=U.parent)for(var H=0;!(U.children[H]==u);++H)j+=U.children[H].chunkSize();return j+u.first}function Ar(e,u){var j=e.first;e:do{for(var U=0;U<e.children.length;++U){var H=e.children[U],ee=H.height;if(u<ee){e=H;continue e}u-=ee,j+=H.chunkSize()}return j}while(!e.lines);for(var ge=0;ge<e.lines.length;++ge){var Ce=e.lines[ge],Re=Ce.height;if(u<Re)break;u-=Re}return j+ge}function pr(e,u){return u>=e.first&&u<e.first+e.size}function on(e,u){return String(e.lineNumberFormatter(u+e.firstLineNumber))}function Zt(e,u,j){if(j===void 0&&(j=null),!(this instanceof Zt))return new Zt(e,u,j);this.line=e,this.ch=u,this.sticky=j}function An(e,u){return e.line-u.line||e.ch-u.ch}function jr(e,u){return e.sticky==u.sticky&&An(e,u)==0}function Ln(e){return Zt(e.line,e.ch)}function qn(e,u){return An(e,u)<0?u:e}function Un(e,u){return An(e,u)<0?e:u}function pe(e,u){return Math.max(e.first,Math.min(u,e.first+e.size-1))}function z(e,u){if(u.line<e.first)return Zt(e.first,0);var j=e.first+e.size-1;return u.line>j?Zt(j,rn(e,j).text.length):Z(u,rn(e,u.line).text.length)}function Z(e,u){var j=e.ch;return j==null||j>u?Zt(e.line,u):j<0?Zt(e.line,0):e}function oe(e,u){for(var j=[],U=0;U<u.length;U++)j[U]=z(e,u[U]);return j}var xe=function(e,u){this.state=e,this.lookAhead=u},he=function(e,u,j,U){this.state=u,this.doc=e,this.line=j,this.maxLookAhead=U||0,this.baseTokens=null,this.baseTokenPos=1};he.prototype.lookAhead=function(e){var u=this.doc.getLine(this.line+e);return u!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),u},he.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},he.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},he.fromSaved=function(e,u,j){return u instanceof xe?new he(e,vn(e.mode,u.state),j,u.lookAhead):new he(e,vn(e.mode,u),j)},he.prototype.save=function(e){var u=e!==!1?vn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new xe(u,this.maxLookAhead):u};function lt(e,u,j,U){var H=[e.state.modeGen],ee={};pa(e,u.text,e.doc.mode,j,function(Be,vt){return H.push(Be,vt)},ee,U);for(var ge=j.state,Ce=function(Be){j.baseTokens=H;var vt=e.state.overlays[Be],Rt=1,$t=0;j.state=!0,pa(e,u.text,vt.mode,j,function(zt,Tn){for(var Hn=Rt;$t<zt;){var nr=H[Rt];nr>zt&&H.splice(Rt,1,zt,H[Rt+1],nr),Rt+=2,$t=Math.min(zt,nr)}if(!Tn)return;if(vt.opaque)H.splice(Hn,Rt-Hn,zt,"overlay "+Tn),Rt=Hn+2;else for(;Hn<Rt;Hn+=2){var xr=H[Hn+1];H[Hn+1]=(xr?xr+" ":"")+"overlay "+Tn}},ee),j.state=ge,j.baseTokens=null,j.baseTokenPos=1},Re=0;Re<e.state.overlays.length;++Re)Ce(Re);return{styles:H,classes:ee.bgClass||ee.textClass?ee:null}}function an(e,u,j){if(!u.styles||u.styles[0]!=e.state.modeGen){var U=Nn(e,$n(u)),H=u.text.length>e.options.maxHighlightLength&&vn(e.doc.mode,U.state),ee=lt(e,u,U);H&&(U.state=H),u.stateAfter=U.save(!H),u.styles=ee.styles,ee.classes?u.styleClasses=ee.classes:u.styleClasses&&(u.styleClasses=null),j===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return u.styles}function Nn(e,u,j){var U=e.doc,H=e.display;if(!U.mode.startState)return new he(U,!0,u);var ee=mr(e,u,j),ge=ee>U.first&&rn(U,ee-1).stateAfter,Ce=ge?he.fromSaved(U,ge,ee):new he(U,Gn(U.mode),ee);return U.iter(ee,u,function(Re){Yn(e,Re.text,Ce);var Be=Ce.line;Re.stateAfter=Be==u-1||Be%5==0||Be>=H.viewFrom&&Be<H.viewTo?Ce.save():null,Ce.nextLine()}),j&&(U.modeFrontier=Ce.line),Ce}function Yn(e,u,j,U){var H=e.doc.mode,ee=new wn(u,e.options.tabSize,j);for(ee.start=ee.pos=U||0,u==""&&tn(H,j.state);!ee.eol();)Cn(H,ee,j.state),ee.start=ee.pos}function tn(e,u){if(e.blankLine)return e.blankLine(u);if(!e.innerMode)return;var j=fn(e,u);if(j.mode.blankLine)return j.mode.blankLine(j.state)}function Cn(e,u,j,U){for(var H=0;H<10;H++){U&&(U[0]=fn(e,j).mode);var ee=e.token(u,j);if(u.pos>u.start)return ee}throw new Error("Mode "+e.name+" failed to advance stream.")}var Jn=function(e,u,j){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=u||null,this.state=j};function $r(e,u,j,U){var H=e.doc,ee=H.mode,ge;u=z(H,u);var Ce=rn(H,u.line),Re=Nn(e,u.line,j),Be=new wn(Ce.text,e.options.tabSize,Re),vt;for(U&&(vt=[]);(U||Be.pos<u.ch)&&!Be.eol();)Be.start=Be.pos,ge=Cn(ee,Be,Re.state),U&&vt.push(new Jn(Be,ge,vn(H.mode,Re.state)));return U?vt:new Jn(Be,ge,Re.state)}function ga(e,u){if(e)for(;;){var j=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!j)break;e=e.slice(0,j.index)+e.slice(j.index+j[0].length);var U=j[1]?"bgClass":"textClass";u[U]==null?u[U]=j[2]:new RegExp("(?:^|\\s)"+j[2]+"(?:$|\\s)").test(u[U])||(u[U]+=" "+j[2])}return e}function pa(e,u,j,U,H,ee,ge){var Ce=j.flattenSpans;Ce==null&&(Ce=e.options.flattenSpans);var Re=0,Be=null,vt=new wn(u,e.options.tabSize,U),Rt,$t=e.options.addModeClass&&[null];for(u==""&&ga(tn(j,U.state),ee);!vt.eol();){if(vt.pos>e.options.maxHighlightLength?(Ce=!1,ge&&Yn(e,u,U,vt.pos),vt.pos=u.length,Rt=null):Rt=ga(Cn(j,vt,U.state,$t),ee),$t){var zt=$t[0].name;zt&&(Rt="m-"+(Rt?zt+" "+Rt:zt))}if(!Ce||Be!=Rt){for(;Re<vt.start;)Re=Math.min(vt.start,Re+5e3),H(Re,Be);Be=Rt}vt.start=vt.pos}for(;Re<vt.pos;){var Tn=Math.min(vt.pos,Re+5e3);H(Tn,Be),Re=Tn}}function mr(e,u,j){for(var U,H,ee=e.doc,ge=j?-1:u-(e.doc.mode.innerMode?1e3:100),Ce=u;Ce>ge;--Ce){if(Ce<=ee.first)return ee.first;var Re=rn(ee,Ce-1),Be=Re.stateAfter;if(Be&&(!j||Ce+(Be instanceof xe?Be.lookAhead:0)<=ee.modeFrontier))return Ce;var vt=G(Re.text,null,e.options.tabSize);(H==null||U>vt)&&(H=Ce-1,U=vt)}return H}function za(e,u){if(e.modeFrontier=Math.min(e.modeFrontier,u),e.highlightFrontier<u-10)return;for(var j=e.first,U=u-1;U>j;U--){var H=rn(e,U).stateAfter;if(H&&(!(H instanceof xe)||U+H.lookAhead<u)){j=U+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,j)}var ja=!1,Ra=!1;function Ha(){ja=!0}function Sa(){Ra=!0}function Ja(e,u,j){this.marker=e,this.from=u,this.to=j}function ka(e,u){if(e)for(var j=0;j<e.length;++j){var U=e[j];if(U.marker==u)return U}}function li(e,u){for(var j,U=0;U<e.length;++U)e[U]!=u&&(j||(j=[])).push(e[U]);return j}function oi(e,u){e.markedSpans=e.markedSpans?e.markedSpans.concat([u]):[u],u.marker.attachLine(e)}function ua(e,u,j){var U;if(e)for(var H=0;H<e.length;++H){var ee=e[H],ge=ee.marker,Ce=ee.from==null||(ge.inclusiveLeft?ee.from<=u:ee.from<u);if(Ce||ee.from==u&&ge.type=="bookmark"&&(!j||!ee.marker.insertLeft)){var Re=ee.to==null||(ge.inclusiveRight?ee.to>=u:ee.to>u);(U||(U=[])).push(new Ja(ge,ee.from,Re?null:ee.to))}}return U}function fa(e,u,j){var U;if(e)for(var H=0;H<e.length;++H){var ee=e[H],ge=ee.marker,Ce=ee.to==null||(ge.inclusiveRight?ee.to>=u:ee.to>u);if(Ce||ee.from==u&&ge.type=="bookmark"&&(!j||ee.marker.insertLeft)){var Re=ee.from==null||(ge.inclusiveLeft?ee.from<=u:ee.from<u);(U||(U=[])).push(new Ja(ge,Re?null:ee.from-u,ee.to==null?null:ee.to-u))}}return U}function oa(e,u){if(u.full)return null;var j=pr(e,u.from.line)&&rn(e,u.from.line).markedSpans,U=pr(e,u.to.line)&&rn(e,u.to.line).markedSpans;if(!j&&!U)return null;var H=u.from.ch,ee=u.to.ch,ge=An(u.from,u.to)==0,Ce=ua(j,H,ge),Re=fa(U,ee,ge),Be=u.text.length==1,vt=q(u.text).length+(Be?H:0);if(Ce)for(var Rt=0;Rt<Ce.length;++Rt){var $t=Ce[Rt];if($t.to==null){var zt=ka(Re,$t.marker);zt?Be&&($t.to=zt.to==null?null:zt.to+vt):$t.to=H}}if(Re)for(var Tn=0;Tn<Re.length;++Tn){var Hn=Re[Tn];if(Hn.to!=null&&(Hn.to+=vt),Hn.from==null){var nr=ka(Ce,Hn.marker);nr||(Hn.from=vt,Be&&(Ce||(Ce=[])).push(Hn))}else Hn.from+=vt,Be&&(Ce||(Ce=[])).push(Hn)}Ce&&(Ce=ye(Ce)),Re&&Re!=Ce&&(Re=ye(Re));var xr=[Ce];if(!Be){var kr=u.text.length-2,Cr;if(kr>0&&Ce)for(var Vr=0;Vr<Ce.length;++Vr)Ce[Vr].to==null&&(Cr||(Cr=[])).push(new Ja(Ce[Vr].marker,null,null));for(var aa=0;aa<kr;++aa)xr.push(Cr);xr.push(Re)}return xr}function ye(e){for(var u=0;u<e.length;++u){var j=e[u];j.from!=null&&j.from==j.to&&j.marker.clearWhenEmpty!==!1&&e.splice(u--,1)}return e.length?e:null}function st(e,u,j){var U=null;if(e.iter(u.line,j.line+1,function(zt){if(zt.markedSpans)for(var Tn=0;Tn<zt.markedSpans.length;++Tn){var Hn=zt.markedSpans[Tn].marker;Hn.readOnly&&(!U||fe(U,Hn)==-1)&&(U||(U=[])).push(Hn)}}),!U)return null;for(var H=[{from:u,to:j}],ee=0;ee<U.length;++ee)for(var ge=U[ee],Ce=ge.find(0),Re=0;Re<H.length;++Re){var Be=H[Re];if(An(Be.to,Ce.from)<0||An(Be.from,Ce.to)>0)continue;var vt=[Re,1],Rt=An(Be.from,Ce.from),$t=An(Be.to,Ce.to);(Rt<0||!ge.inclusiveLeft&&!Rt)&&vt.push({from:Be.from,to:Ce.from}),($t>0||!ge.inclusiveRight&&!$t)&&vt.push({from:Ce.to,to:Be.to}),H.splice.apply(H,vt),Re+=vt.length-3}return H}function It(e){var u=e.markedSpans;if(!u)return;for(var j=0;j<u.length;++j)u[j].marker.detachLine(e);e.markedSpans=null}function At(e,u){if(!u)return;for(var j=0;j<u.length;++j)u[j].marker.attachLine(e);e.markedSpans=u}function Wt(e){return e.inclusiveLeft?-1:0}function Nt(e){return e.inclusiveRight?1:0}function Xt(e,u){var j=e.lines.length-u.lines.length;if(j!=0)return j;var U=e.find(),H=u.find(),ee=An(U.from,H.from)||Wt(e)-Wt(u);if(ee)return-ee;var ge=An(U.to,H.to)||Nt(e)-Nt(u);return ge||u.id-e.id}function en(e,u){var j=Ra&&e.markedSpans,U;if(j)for(var H=void 0,ee=0;ee<j.length;++ee)H=j[ee],H.marker.collapsed&&(u?H.from:H.to)==null&&(!U||Xt(U,H.marker)<0)&&(U=H.marker);return U}function yn(e){return en(e,!0)}function mn(e){return en(e,!1)}function jn(e,u){var j=Ra&&e.markedSpans,U;if(j)for(var H=0;H<j.length;++H){var ee=j[H];ee.marker.collapsed&&(ee.from==null||ee.from<u)&&(ee.to==null||ee.to>u)&&(!U||Xt(U,ee.marker)<0)&&(U=ee.marker)}return U}function Dn(e,u,j,U,H){var ee=rn(e,u),ge=Ra&&ee.markedSpans;if(ge)for(var Ce=0;Ce<ge.length;++Ce){var Re=ge[Ce];if(!Re.marker.collapsed)continue;var Be=Re.marker.find(0),vt=An(Be.from,j)||Wt(Re.marker)-Wt(H),Rt=An(Be.to,U)||Nt(Re.marker)-Nt(H);if(vt>=0&&Rt<=0||vt<=0&&Rt>=0)continue;if(vt<=0&&(Re.marker.inclusiveRight&&H.inclusiveLeft?An(Be.to,j)>=0:An(Be.to,j)>0)||vt>=0&&(Re.marker.inclusiveRight&&H.inclusiveLeft?An(Be.from,U)<=0:An(Be.from,U)<0))return!0}}function nn(e){for(var u;u=yn(e);)e=u.find(-1,!0).line;return e}function Mn(e){for(var u;u=mn(e);)e=u.find(1,!0).line;return e}function bn(e){for(var u,j;u=mn(e);)e=u.find(1,!0).line,(j||(j=[])).push(e);return j}function Bn(e,u){var j=rn(e,u),U=nn(j);return j==U?u:$n(U)}function Pn(e,u){if(u>e.lastLine())return u;var j=rn(e,u),U;if(!er(e,j))return u;for(;U=mn(j);)j=U.find(1,!0).line;return $n(j)+1}function er(e,u){var j=Ra&&u.markedSpans;if(j)for(var U=void 0,H=0;H<j.length;++H){if(U=j[H],!U.marker.collapsed)continue;if(U.from==null)return!0;if(U.marker.widgetNode)continue;if(U.from==0&&U.marker.inclusiveLeft&&vr(e,u,U))return!0}}function vr(e,u,j){if(j.to==null){var U=j.marker.find(1,!0);return vr(e,U.line,ka(U.line.markedSpans,j.marker))}if(j.marker.inclusiveRight&&j.to==u.text.length)return!0;for(var H=void 0,ee=0;ee<u.markedSpans.length;++ee)if(H=u.markedSpans[ee],H.marker.collapsed&&!H.marker.widgetNode&&H.from==j.to&&(H.to==null||H.to!=j.from)&&(H.marker.inclusiveLeft||j.marker.inclusiveRight)&&vr(e,u,H))return!0}function Br(e){e=nn(e);for(var u=0,j=e.parent,U=0;U<j.lines.length;++U){var H=j.lines[U];if(H==e)break;u+=H.height}for(var ee=j.parent;ee;j=ee,ee=j.parent)for(var ge=0;ge<ee.children.length;++ge){var Ce=ee.children[ge];if(Ce==j)break;u+=Ce.height}return u}function Sn(e){if(e.height==0)return 0;for(var u=e.text.length,j,U=e;j=yn(U);){var H=j.find(0,!0);U=H.from.line,u+=H.from.ch-H.to.ch}for(U=e;j=mn(U);){var ee=j.find(0,!0);u-=U.text.length-ee.from.ch,U=ee.to.line,u+=U.text.length-ee.to.ch}return u}function Yt(e){var u=e.display,j=e.doc;u.maxLine=rn(j,j.first),u.maxLineLength=Sn(u.maxLine),u.maxLineChanged=!0,j.iter(function(U){var H=Sn(U);H>u.maxLineLength&&(u.maxLineLength=H,u.maxLine=U)})}var cn=function(e,u,j){this.text=e,At(this,u),this.height=j?j(this):1};cn.prototype.lineNo=function(){return $n(this)},Xe(cn);function Rn(e,u,j,U){e.text=u,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),It(e),At(e,j);var H=U?U(e):1;H!=e.height&&rr(e,H)}function qt(e){e.parent=null,It(e)}var On={},gn={};function In(e,u){if(!e||/^\s*$/.test(e))return null;var j=u.addModeClass?gn:On;return j[e]||(j[e]=e.replace(/\S+/g,"cm-$&"))}function Fn(e,u){var j=I("span",null,null,_?"padding-right: .1px":null),U={pre:I("pre",[j],"CodeMirror-line"),content:j,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};u.measure={};for(var H=0;H<=(u.rest?u.rest.length:0);H++){var ee=H?u.rest[H-1]:u.line,ge=void 0;U.pos=0,U.addToken=ar,ut(e.display.measure)&&(ge=wt(ee,e.doc.direction))&&(U.addToken=Ir(U.addToken,ge)),U.map=[];var Ce=u!=e.display.externalMeasured&&$n(ee);Dr(ee,U,an(e,ee,Ce)),ee.styleClasses&&(ee.styleClasses.bgClass&&(U.bgClass=W(ee.styleClasses.bgClass,U.bgClass||"")),ee.styleClasses.textClass&&(U.textClass=W(ee.styleClasses.textClass,U.textClass||""))),U.map.length==0&&U.map.push(0,0,U.content.appendChild(dn(e.display.measure))),H==0?(u.measure.map=U.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(U.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(_){var Re=U.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(U.content.className="cm-tab-wrap-hack")}return ht(e,"renderLine",e,u.line,U.pre),U.pre.className&&(U.textClass=W(U.pre.className,U.textClass||"")),U}function ur(e){var u=O("span","\u2022","cm-invalidchar");return u.title="\\u"+e.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}function ar(e,u,j,U,H,ee,ge){if(!u)return;var Ce=e.splitSpaces?Rr(u,e.trailingSpace):u,Re=e.cm.state.specialChars,Be=!1,vt;if(!Re.test(u))e.col+=u.length,vt=document.createTextNode(Ce),e.map.push(e.pos,e.pos+u.length,vt),T&&h<9&&(Be=!0),e.pos+=u.length;else{vt=document.createDocumentFragment();for(var Rt=0;;){Re.lastIndex=Rt;var $t=Re.exec(u),zt=$t?$t.index-Rt:u.length-Rt;if(zt){var Tn=document.createTextNode(Ce.slice(Rt,Rt+zt));T&&h<9?vt.appendChild(O("span",[Tn])):vt.appendChild(Tn),e.map.push(e.pos,e.pos+zt,Tn),e.col+=zt,e.pos+=zt}if(!$t)break;Rt+=zt+1;var Hn=void 0;if($t[0]==" "){var nr=e.cm.options.tabSize,xr=nr-e.col%nr;Hn=vt.appendChild(O("span",se(xr),"cm-tab")),Hn.setAttribute("role","presentation"),Hn.setAttribute("cm-text"," "),e.col+=xr}else $t[0]=="\r"||$t[0]==`
`?(Hn=vt.appendChild(O("span",$t[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Hn.setAttribute("cm-text",$t[0]),e.col+=1):(Hn=e.cm.options.specialCharPlaceholder($t[0]),Hn.setAttribute("cm-text",$t[0]),T&&h<9?vt.appendChild(O("span",[Hn])):vt.appendChild(Hn),e.col+=1);e.map.push(e.pos,e.pos+1,Hn),e.pos++}}if(e.trailingSpace=Ce.charCodeAt(u.length-1)==32,j||U||H||Be||ee||ge){var kr=j||"";U&&(kr+=U),H&&(kr+=H);var Cr=O("span",[vt],kr,ee);if(ge)for(var Vr in ge)ge.hasOwnProperty(Vr)&&Vr!="style"&&Vr!="class"&&Cr.setAttribute(Vr,ge[Vr]);return e.content.appendChild(Cr)}e.content.appendChild(vt)}function Rr(e,u){if(e.length>1&&!/ /.test(e))return e;for(var j=u,U="",H=0;H<e.length;H++){var ee=e.charAt(H);ee==" "&&j&&(H==e.length-1||e.charCodeAt(H+1)==32)&&(ee="\xA0"),U+=ee,j=ee==" "}return U}function Ir(e,u){return function(j,U,H,ee,ge,Ce,Re){H=H?H+" cm-force-border":"cm-force-border";for(var Be=j.pos,vt=Be+U.length;;){for(var Rt=void 0,$t=0;$t<u.length&&!(Rt=u[$t],Rt.to>Be&&Rt.from<=Be);$t++);if(Rt.to>=vt)return e(j,U,H,ee,ge,Ce,Re);e(j,U.slice(0,Rt.to-Be),H,ee,null,Ce,Re),ee=null,U=U.slice(Rt.to-Be),Be=Rt.to}}}function tr(e,u,j,U){var H=!U&&j.widgetNode;H&&e.map.push(e.pos,e.pos+u,H),!U&&e.cm.display.input.needsContentAttribute&&(H||(H=e.content.appendChild(document.createElement("span"))),H.setAttribute("cm-marker",j.id)),H&&(e.cm.display.input.setUneditable(H),e.content.appendChild(H)),e.pos+=u,e.trailingSpace=!1}function Dr(e,u,j){var U=e.markedSpans,H=e.text,ee=0;if(!U){for(var ge=1;ge<j.length;ge+=2)u.addToken(u,H.slice(ee,ee=j[ge]),In(j[ge+1],u.cm.options));return}for(var Ce=H.length,Re=0,Be=1,vt="",Rt,$t,zt=0,Tn,Hn,nr,xr,kr;;){if(zt==Re){Tn=Hn=nr=$t="",kr=null,xr=null,zt=Infinity;for(var Cr=[],Vr=void 0,aa=0;aa<U.length;++aa){var ea=U[aa],Ca=ea.marker;if(Ca.type=="bookmark"&&ea.from==Re&&Ca.widgetNode)Cr.push(Ca);else if(ea.from<=Re&&(ea.to==null||ea.to>Re||Ca.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&zt>ea.to&&(zt=ea.to,Hn=""),Ca.className&&(Tn+=" "+Ca.className),Ca.css&&($t=($t?$t+";":"")+Ca.css),Ca.startStyle&&ea.from==Re&&(nr+=" "+Ca.startStyle),Ca.endStyle&&ea.to==zt&&(Vr||(Vr=[])).push(Ca.endStyle,ea.to),Ca.title&&((kr||(kr={})).title=Ca.title),Ca.attributes)for(var Va in Ca.attributes)(kr||(kr={}))[Va]=Ca.attributes[Va];Ca.collapsed&&(!xr||Xt(xr.marker,Ca)<0)&&(xr=ea)}else ea.from>Re&&zt>ea.from&&(zt=ea.from)}if(Vr)for(var vi=0;vi<Vr.length;vi+=2)Vr[vi+1]==zt&&(Hn+=" "+Vr[vi]);if(!xr||xr.from==Re)for(var ti=0;ti<Cr.length;++ti)tr(u,0,Cr[ti]);if(xr&&(xr.from||0)==Re){if(tr(u,(xr.to==null?Ce+1:xr.to)-Re,xr.marker,xr.from==null),xr.to==null)return;xr.to==Re&&(xr=!1)}}if(Re>=Ce)break;for(var zi=Math.min(Ce,zt);;){if(vt){var Ui=Re+vt.length;if(!xr){var ci=Ui>zi?vt.slice(0,zi-Re):vt;u.addToken(u,ci,Rt?Rt+Tn:Tn,nr,Re+ci.length==zt?Hn:"",$t,kr)}if(Ui>=zi){vt=vt.slice(zi-Re),Re=zi;break}Re=Ui,nr=""}vt=H.slice(ee,ee=j[Be++]),Rt=In(j[Be++],u.cm.options)}}}function br(e,u,j){this.line=u,this.rest=bn(u),this.size=this.rest?$n(q(this.rest))-j+1:1,this.node=this.text=null,this.hidden=er(e,u)}function Gr(e,u,j){for(var U=[],H,ee=u;ee<j;ee=H){var ge=new br(e.doc,rn(e.doc,ee),ee);H=ee+ge.size,U.push(ge)}return U}var Lr=null;function qr(e){Lr?Lr.ops.push(e):e.ownsGroup=Lr={ops:[e],delayedCallbacks:[]}}function sr(e){var u=e.delayedCallbacks,j=0;do{for(;j<u.length;j++)u[j].call(null);for(var U=0;U<e.ops.length;U++){var H=e.ops[U];if(H.cursorActivityHandlers)for(;H.cursorActivityCalled<H.cursorActivityHandlers.length;)H.cursorActivityHandlers[H.cursorActivityCalled++].call(null,H.cm)}}while(j<u.length)}function Kt(e,u){var j=e.ownsGroup;if(!j)return;try{sr(j)}finally{Lr=null,u(j)}}var Qt=null;function Jt(e,u){var j=ft(e,u);if(!j.length)return;var U=Array.prototype.slice.call(arguments,2),H;Lr?H=Lr.delayedCallbacks:Qt?H=Qt:(H=Qt=[],setTimeout(Xn,0));for(var ee=function(Ce){H.push(function(){return j[Ce].apply(null,U)})},ge=0;ge<j.length;++ge)ee(ge)}function Xn(){var e=Qt;Qt=null;for(var u=0;u<e.length;++u)e[u]()}function ir(e,u,j,U){for(var H=0;H<u.changes.length;H++){var ee=u.changes[H];ee=="text"?cr(e,u):ee=="gutter"?dr(e,u,j,U):ee=="class"?Zr(e,u):ee=="widget"&&la(e,u,U)}u.changes=null}function kn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),T&&h<8&&(e.node.style.zIndex=2)),e.node}function lr(e,u){var j=u.bgClass?u.bgClass+" "+(u.line.bgClass||""):u.line.bgClass;if(j&&(j+=" CodeMirror-linebackground"),u.background)j?u.background.className=j:(u.background.parentNode.removeChild(u.background),u.background=null);else if(j){var U=kn(u);u.background=U.insertBefore(O("div",null,j),U.firstChild),e.display.input.setUneditable(u.background)}}function hr(e,u){var j=e.display.externalMeasured;return j&&j.line==u.line?(e.display.externalMeasured=null,u.measure=j.measure,j.built):Fn(e,u)}function cr(e,u){var j=u.text.className,U=hr(e,u);u.text==u.node&&(u.node=U.pre),u.text.parentNode.replaceChild(U.pre,u.text),u.text=U.pre,U.bgClass!=u.bgClass||U.textClass!=u.textClass?(u.bgClass=U.bgClass,u.textClass=U.textClass,Zr(e,u)):j&&(u.text.className=j)}function Zr(e,u){lr(e,u),u.line.wrapClass?kn(u).className=u.line.wrapClass:u.node!=u.text&&(u.node.className="");var j=u.textClass?u.textClass+" "+(u.line.textClass||""):u.line.textClass;u.text.className=j||""}function dr(e,u,j,U){if(u.gutter&&(u.node.removeChild(u.gutter),u.gutter=null),u.gutterBackground&&(u.node.removeChild(u.gutterBackground),u.gutterBackground=null),u.line.gutterClass){var H=kn(u);u.gutterBackground=O("div",null,"CodeMirror-gutter-background "+u.line.gutterClass,"left: "+(e.options.fixedGutter?U.fixedPos:-U.gutterTotalWidth)+"px; width: "+U.gutterTotalWidth+"px"),e.display.input.setUneditable(u.gutterBackground),H.insertBefore(u.gutterBackground,u.text)}var ee=u.line.gutterMarkers;if(e.options.lineNumbers||ee){var ge=kn(u),Ce=u.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?U.fixedPos:-U.gutterTotalWidth)+"px");if(e.display.input.setUneditable(Ce),ge.insertBefore(Ce,u.text),u.line.gutterClass&&(Ce.className+=" "+u.line.gutterClass),e.options.lineNumbers&&(!ee||!ee["CodeMirror-linenumbers"])&&(u.lineNumber=Ce.appendChild(O("div",on(e.options,j),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+U.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),ee)for(var Re=0;Re<e.display.gutterSpecs.length;++Re){var Be=e.display.gutterSpecs[Re].className,vt=ee.hasOwnProperty(Be)&&ee[Be];vt&&Ce.appendChild(O("div",[vt],"CodeMirror-gutter-elt","left: "+U.gutterLeft[Be]+"px; width: "+U.gutterWidth[Be]+"px"))}}}function la(e,u,j){u.alignable&&(u.alignable=null);for(var U=R("CodeMirror-linewidget"),H=u.node.firstChild,ee=void 0;H;H=ee)ee=H.nextSibling,U.test(H.className)&&u.node.removeChild(H);yr(e,u,j)}function Xr(e,u,j,U){var H=hr(e,u);return u.text=u.node=H.pre,H.bgClass&&(u.bgClass=H.bgClass),H.textClass&&(u.textClass=H.textClass),Zr(e,u),dr(e,u,j,U),yr(e,u,U),u.node}function yr(e,u,j){if(wr(e,u.line,u,j,!0),u.rest)for(var U=0;U<u.rest.length;U++)wr(e,u.rest[U],u,j,!1)}function wr(e,u,j,U,H){if(!u.widgets)return;for(var ee=kn(j),ge=0,Ce=u.widgets;ge<Ce.length;++ge){var Re=Ce[ge],Be=O("div",[Re.node],"CodeMirror-linewidget"+(Re.className?" "+Re.className:""));Re.handleMouseEvents||Be.setAttribute("cm-ignore-events","true"),Hr(Re,Be,j,U),e.display.input.setUneditable(Be),H&&Re.above?ee.insertBefore(Be,j.gutter||j.text):ee.appendChild(Be),Jt(Re,"redraw")}}function Hr(e,u,j,U){if(e.noHScroll){(j.alignable||(j.alignable=[])).push(u);var H=U.wrapperWidth;u.style.left=U.fixedPos+"px",e.coverGutter||(H-=U.gutterTotalWidth,u.style.paddingLeft=U.gutterTotalWidth+"px"),u.style.width=H+"px"}e.coverGutter&&(u.style.zIndex=5,u.style.position="relative",e.noHScroll||(u.style.marginLeft=-U.gutterTotalWidth+"px"))}function Yr(e){if(e.height!=null)return e.height;var u=e.doc.cm;if(!u)return 0;if(!N(document.body,e.node)){var j="position: relative;";e.coverGutter&&(j+="margin-left: -"+u.display.gutters.offsetWidth+"px;"),e.noHScroll&&(j+="width: "+u.display.wrapper.clientWidth+"px;"),g(u.display.measure,O("div",[e.node],null,j))}return e.height=e.node.parentNode.offsetHeight}function wa(e,u){for(var j=Ze(u);j!=e.wrapper;j=j.parentNode)if(!j||j.nodeType==1&&j.getAttribute("cm-ignore-events")=="true"||j.parentNode==e.sizer&&j!=e.mover)return!0}function va(e){return e.lineSpace.offsetTop}function Je(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ct(e){if(e.cachedPaddingH)return e.cachedPaddingH;var u=g(e.measure,O("pre","x","CodeMirror-line-like")),j=window.getComputedStyle?window.getComputedStyle(u):u.currentStyle,U={left:parseInt(j.paddingLeft),right:parseInt(j.paddingRight)};return!isNaN(U.left)&&!isNaN(U.right)&&(e.cachedPaddingH=U),U}function yt(e){return de-e.display.nativeBarWidth}function at(e){return e.display.scroller.clientWidth-yt(e)-e.display.barWidth}function Pe(e){return e.display.scroller.clientHeight-yt(e)-e.display.barHeight}function ze(e,u,j){var U=e.options.lineWrapping,H=U&&at(e);if(!u.measure.heights||U&&u.measure.width!=H){var ee=u.measure.heights=[];if(U){u.measure.width=H;for(var ge=u.text.firstChild.getClientRects(),Ce=0;Ce<ge.length-1;Ce++){var Re=ge[Ce],Be=ge[Ce+1];Math.abs(Re.bottom-Be.bottom)>2&&ee.push((Re.bottom+Be.top)/2-j.top)}}ee.push(j.bottom-j.top)}}function Ie(e,u,j){if(e.line==u)return{map:e.measure.map,cache:e.measure.cache};for(var U=0;U<e.rest.length;U++)if(e.rest[U]==u)return{map:e.measure.maps[U],cache:e.measure.caches[U]};for(var H=0;H<e.rest.length;H++)if($n(e.rest[H])>j)return{map:e.measure.maps[H],cache:e.measure.caches[H],before:!0}}function $e(e,u){u=nn(u);var j=$n(u),U=e.display.externalMeasured=new br(e.doc,u,j);U.lineN=j;var H=U.built=Fn(e,U);return U.text=H.pre,g(e.display.lineMeasure,H.pre),U}function qe(e,u,j,U){return Lt(e,it(e,u),j,U)}function pt(e,u){if(u>=e.display.viewFrom&&u<e.display.viewTo)return e.display.view[ha(e,u)];var j=e.display.externalMeasured;if(j&&u>=j.lineN&&u<j.lineN+j.size)return j}function it(e,u){var j=$n(u),U=pt(e,j);U&&!U.text?U=null:U&&U.changes&&(ir(e,U,j,or(e)),e.curOp.forceUpdate=!0),U||(U=$e(e,u));var H=Ie(U,u,j);return{line:u,view:U,rect:null,map:H.map,cache:H.cache,before:H.before,hasHeights:!1}}function Lt(e,u,j,U,H){u.before&&(j=-1);var ee=j+(U||""),ge;return u.cache.hasOwnProperty(ee)?ge=u.cache[ee]:(u.rect||(u.rect=u.view.text.getBoundingClientRect()),u.hasHeights||(ze(e,u.view,u.rect),u.hasHeights=!0),ge=un(e,u,j,U),ge.bogus||(u.cache[ee]=ge)),{left:ge.left,right:ge.right,top:H?ge.rtop:ge.top,bottom:H?ge.rbottom:ge.bottom}}var Vt={left:0,right:0,top:0,bottom:0};function hn(e,u,j){for(var U,H,ee,ge,Ce,Re,Be=0;Be<e.length;Be+=3)if(Ce=e[Be],Re=e[Be+1],u<Ce?(H=0,ee=1,ge="left"):u<Re?(H=u-Ce,ee=H+1):(Be==e.length-3||u==Re&&e[Be+3]>u)&&(ee=Re-Ce,H=ee-1,u>=Re&&(ge="right")),H!=null){if(U=e[Be+2],Ce==Re&&j==(U.insertLeft?"left":"right")&&(ge=j),j=="left"&&H==0)for(;Be&&e[Be-2]==e[Be-3]&&e[Be-1].insertLeft;)U=e[(Be-=3)+2],ge="left";if(j=="right"&&H==Re-Ce)for(;Be<e.length-3&&e[Be+3]==e[Be+4]&&!e[Be+5].insertLeft;)U=e[(Be+=3)+2],ge="right";break}return{node:U,start:H,end:ee,collapse:ge,coverStart:Ce,coverEnd:Re}}function sn(e,u){var j=Vt;if(u=="left")for(var U=0;U<e.length&&!((j=e[U]).left!=j.right);U++);else for(var H=e.length-1;H>=0&&!((j=e[H]).left!=j.right);H--);return j}function un(e,u,j,U){var H=hn(u.map,j,U),ee=H.node,ge=H.start,Ce=H.end,Re=H.collapse,Be;if(ee.nodeType==3){for(var vt=0;vt<4;vt++){for(;ge&&Se(u.line.text.charAt(H.coverStart+ge));)--ge;for(;H.coverStart+Ce<H.coverEnd&&Se(u.line.text.charAt(H.coverStart+Ce));)++Ce;if(T&&h<9&&ge==0&&Ce==H.coverEnd-H.coverStart?Be=ee.parentNode.getBoundingClientRect():Be=sn(D(ee,ge,Ce).getClientRects(),U),Be.left||Be.right||ge==0)break;Ce=ge,ge=ge-1,Re="right"}T&&h<11&&(Be=ln(e.display.measure,Be))}else{ge>0&&(Re=U="right");var Rt;e.options.lineWrapping&&(Rt=ee.getClientRects()).length>1?Be=Rt[U=="right"?Rt.length-1:0]:Be=ee.getBoundingClientRect()}if(T&&h<9&&!ge&&(!Be||!Be.left&&!Be.right)){var $t=ee.parentNode.getClientRects()[0];$t?Be={left:$t.left,right:$t.left+Mr(e.display),top:$t.top,bottom:$t.bottom}:Be=Vt}for(var zt=Be.top-u.rect.top,Tn=Be.bottom-u.rect.top,Hn=(zt+Tn)/2,nr=u.view.measure.heights,xr=0;xr<nr.length-1&&!(Hn<nr[xr]);xr++);var kr=xr?nr[xr-1]:0,Cr=nr[xr],Vr={left:(Re=="right"?Be.right:Be.left)-u.rect.left,right:(Re=="left"?Be.left:Be.right)-u.rect.left,top:kr,bottom:Cr};return!Be.left&&!Be.right&&(Vr.bogus=!0),e.options.singleCursorHeightPerLine||(Vr.rtop=zt,Vr.rbottom=Tn),Vr}function ln(e,u){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Fe(e))return u;var j=screen.logicalXDPI/screen.deviceXDPI,U=screen.logicalYDPI/screen.deviceYDPI;return{left:u.left*j,right:u.right*j,top:u.top*U,bottom:u.bottom*U}}function Kn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var u=0;u<e.rest.length;u++)e.measure.caches[u]={}}function xn(e){e.display.externalMeasure=null,x(e.display.lineMeasure);for(var u=0;u<e.display.view.length;u++)Kn(e.display.view[u])}function Ur(e){xn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Pr(){return r&&f?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Jr(){return r&&f?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Fr(e){var u=0;if(e.widgets)for(var j=0;j<e.widgets.length;++j)e.widgets[j].above&&(u+=Yr(e.widgets[j]));return u}function ta(e,u,j,U,H){if(!H){var ee=Fr(u);j.top+=ee,j.bottom+=ee}if(U=="line")return j;U||(U="local");var ge=Br(u);if(U=="local"?ge+=va(e.display):ge-=e.display.viewOffset,U=="page"||U=="window"){var Ce=e.display.lineSpace.getBoundingClientRect();ge+=Ce.top+(U=="window"?0:Jr());var Re=Ce.left+(U=="window"?0:Pr());j.left+=Re,j.right+=Re}return j.top+=ge,j.bottom+=ge,j}function zn(e,u,j){if(j=="div")return u;var U=u.left,H=u.top;if(j=="page")U-=Pr(),H-=Jr();else if(j=="local"||!j){var ee=e.display.sizer.getBoundingClientRect();U+=ee.left,H+=ee.top}var ge=e.display.lineSpace.getBoundingClientRect();return{left:U-ge.left,top:H-ge.top}}function Or(e,u,j,U,H){return U||(U=rn(e.doc,u.line)),ta(e,U,qe(e,U,u.ch,H),j)}function Vn(e,u,j,U,H,ee){U=U||rn(e.doc,u.line),H||(H=it(e,U));function ge(Tn,Hn){var nr=Lt(e,H,Tn,Hn?"right":"left",ee);return Hn?nr.left=nr.right:nr.right=nr.left,ta(e,U,nr,j)}var Ce=wt(U,e.doc.direction),Re=u.ch,Be=u.sticky;if(Re>=U.text.length?(Re=U.text.length,Be="before"):Re<=0&&(Re=0,Be="after"),!Ce)return ge(Be=="before"?Re-1:Re,Be=="before");function vt(Tn,Hn,nr){var xr=Ce[Hn],kr=xr.level==1;return ge(nr?Tn-1:Tn,kr!=nr)}var Rt=Et(Ce,Re,Be),$t=gt,zt=vt(Re,Rt,Be=="before");return $t!=null&&(zt.other=vt(Re,$t,Be!="before")),zt}function En(e,u){var j=0;u=z(e.doc,u),e.options.lineWrapping||(j=Mr(e.display)*u.ch);var U=rn(e.doc,u.line),H=Br(U)+va(e.display);return{left:j,right:j,top:H,bottom:H+U.height}}function Wn(e,u,j,U,H){var ee=Zt(e,u,j);return ee.xRel=H,U&&(ee.outside=U),ee}function zr(e,u,j){var U=e.doc;if(j+=e.display.viewOffset,j<0)return Wn(U.first,0,null,-1,-1);var H=Ar(U,j),ee=U.first+U.size-1;if(H>ee)return Wn(U.first+U.size-1,rn(U,ee).text.length,null,1,1);u<0&&(u=0);for(var ge=rn(U,H);;){var Ce=Ea(e,ge,H,u,j),Re=jn(ge,Ce.ch+(Ce.xRel>0||Ce.outside>0?1:0));if(!Re)return Ce;var Be=Re.find(1);if(Be.line==H)return Be;ge=rn(U,H=Be.line)}}function sa(e,u,j,U){U-=Fr(u);var H=u.text.length,ee=rt(function(ge){return Lt(e,j,ge-1).bottom<=U},H,0);return H=rt(function(ge){return Lt(e,j,ge).top>U},ee,H),{begin:ee,end:H}}function gr(e,u,j,U){j||(j=it(e,u));var H=ta(e,u,Lt(e,j,U),"line").top;return sa(e,u,j,H)}function ra(e,u,j,U){return e.bottom<=j?!1:e.top>j?!0:(U?e.left:e.right)>u}function Ea(e,u,j,U,H){H-=Br(u);var ee=it(e,u),ge=Fr(u),Ce=0,Re=u.text.length,Be=!0,vt=wt(u,e.doc.direction);if(vt){var Rt=(e.options.lineWrapping?xa:ca)(e,u,j,ee,vt,U,H);Be=Rt.level!=1,Ce=Be?Rt.from:Rt.to-1,Re=Be?Rt.to:Rt.from-1}var $t=null,zt=null,Tn=rt(function(aa){var ea=Lt(e,ee,aa);return ea.top+=ge,ea.bottom+=ge,ra(ea,U,H,!1)?(ea.top<=H&&ea.left<=U&&($t=aa,zt=ea),!0):!1},Ce,Re),Hn,nr,xr=!1;if(zt){var kr=U-zt.left<zt.right-U,Cr=kr==Be;Tn=$t+(Cr?0:1),nr=Cr?"after":"before",Hn=kr?zt.left:zt.right}else{!Be&&(Tn==Re||Tn==Ce)&&Tn++,nr=Tn==0?"after":Tn==u.text.length?"before":Lt(e,ee,Tn-(Be?1:0)).bottom+ge<=H==Be?"after":"before";var Vr=Vn(e,Zt(j,Tn,nr),"line",u,ee);Hn=Vr.left,xr=H<Vr.top?-1:H>=Vr.bottom?1:0}return Tn=ke(u.text,Tn,1),Wn(j,Tn,nr,xr,U-Hn)}function ca(e,u,j,U,H,ee,ge){var Ce=rt(function(Rt){var $t=H[Rt],zt=$t.level!=1;return ra(Vn(e,Zt(j,zt?$t.to:$t.from,zt?"before":"after"),"line",u,U),ee,ge,!0)},0,H.length-1),Re=H[Ce];if(Ce>0){var Be=Re.level!=1,vt=Vn(e,Zt(j,Be?Re.from:Re.to,Be?"after":"before"),"line",u,U);ra(vt,ee,ge,!0)&&vt.top>ge&&(Re=H[Ce-1])}return Re}function xa(e,u,j,U,H,ee,ge){var Ce=sa(e,u,U,ge),Re=Ce.begin,Be=Ce.end;/\s/.test(u.text.charAt(Be-1))&&Be--;for(var vt=null,Rt=null,$t=0;$t<H.length;$t++){var zt=H[$t];if(zt.from>=Be||zt.to<=Re)continue;var Tn=zt.level!=1,Hn=Lt(e,U,Tn?Math.min(Be,zt.to)-1:Math.max(Re,zt.from)).right,nr=Hn<ee?ee-Hn+1e9:Hn-ee;(!vt||Rt>nr)&&(vt=zt,Rt=nr)}return vt||(vt=H[H.length-1]),vt.from<Re&&(vt={from:Re,to:vt.to,level:vt.level}),vt.to>Be&&(vt={from:vt.from,to:Be,level:vt.level}),vt}var Tr;function Er(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Tr==null){Tr=O("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(O("br"));Tr.appendChild(document.createTextNode("x"))}g(e.measure,Tr);var j=Tr.offsetHeight/50;return j>3&&(e.cachedTextHeight=j),x(e.measure),j||1}function Mr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var u=O("span","xxxxxxxxxx"),j=O("pre",[u],"CodeMirror-line-like");g(e.measure,j);var U=u.getBoundingClientRect(),H=(U.right-U.left)/10;return H>2&&(e.cachedCharWidth=H),H||10}function or(e){for(var u=e.display,j={},U={},H=u.gutters.clientLeft,ee=u.gutters.firstChild,ge=0;ee;ee=ee.nextSibling,++ge){var Ce=e.display.gutterSpecs[ge].className;j[Ce]=ee.offsetLeft+ee.clientLeft+H,U[Ce]=ee.clientWidth}return{fixedPos:da(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:j,gutterWidth:U,wrapperWidth:u.wrapper.clientWidth}}function da(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ya(e){var u=Er(e.display),j=e.options.lineWrapping,U=j&&Math.max(5,e.display.scroller.clientWidth/Mr(e.display)-3);return function(H){if(er(e.doc,H))return 0;var ee=0;if(H.widgets)for(var ge=0;ge<H.widgets.length;ge++)H.widgets[ge].height&&(ee+=H.widgets[ge].height);return j?ee+(Math.ceil(H.text.length/U)||1)*u:ee+u}}function _a(e){var u=e.doc,j=ya(e);u.iter(function(U){var H=j(U);H!=U.height&&rr(U,H)})}function Oa(e,u,j,U){var H=e.display;if(!j&&Ze(u).getAttribute("cm-not-content")=="true")return null;var ee,ge,Ce=H.lineSpace.getBoundingClientRect();try{ee=u.clientX-Ce.left,ge=u.clientY-Ce.top}catch(Rt){return null}var Re=zr(e,ee,ge),Be;if(U&&Re.xRel>0&&(Be=rn(e.doc,Re.line).text).length==Re.ch){var vt=G(Be,Be.length,e.options.tabSize)-Be.length;Re=Zt(Re.line,Math.max(0,Math.round((ee-ct(e.display).left)/Mr(e.display))-vt))}return Re}function ha(e,u){if(u>=e.display.viewTo)return null;if(u-=e.display.viewFrom,u<0)return null;for(var j=e.display.view,U=0;U<j.length;U++)if(u-=j[U].size,u<0)return U}function La(e,u,j,U){u==null&&(u=e.doc.first),j==null&&(j=e.doc.first+e.doc.size),U||(U=0);var H=e.display;if(U&&j<H.viewTo&&(H.updateLineNumbers==null||H.updateLineNumbers>u)&&(H.updateLineNumbers=u),e.curOp.viewChanged=!0,u>=H.viewTo)Ra&&Bn(e.doc,u)<H.viewTo&&Ba(e);else if(j<=H.viewFrom)Ra&&Pn(e.doc,j+U)>H.viewFrom?Ba(e):(H.viewFrom+=U,H.viewTo+=U);else if(u<=H.viewFrom&&j>=H.viewTo)Ba(e);else if(u<=H.viewFrom){var ee=ni(e,j,j+U,1);ee?(H.view=H.view.slice(ee.index),H.viewFrom=ee.lineN,H.viewTo+=U):Ba(e)}else if(j>=H.viewTo){var ge=ni(e,u,u,-1);ge?(H.view=H.view.slice(0,ge.index),H.viewTo=ge.lineN):Ba(e)}else{var Ce=ni(e,u,u,-1),Re=ni(e,j,j+U,1);Ce&&Re?(H.view=H.view.slice(0,Ce.index).concat(Gr(e,Ce.lineN,Re.lineN)).concat(H.view.slice(Re.index)),H.viewTo+=U):Ba(e)}var Be=H.externalMeasured;Be&&(j<Be.lineN?Be.lineN+=U:u<Be.lineN+Be.size&&(H.externalMeasured=null))}function Na(e,u,j){e.curOp.viewChanged=!0;var U=e.display,H=e.display.externalMeasured;if(H&&u>=H.lineN&&u<H.lineN+H.size&&(U.externalMeasured=null),u<U.viewFrom||u>=U.viewTo)return;var ee=U.view[ha(e,u)];if(ee.node==null)return;var ge=ee.changes||(ee.changes=[]);fe(ge,j)==-1&&ge.push(j)}function Ba(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ni(e,u,j,U){var H=ha(e,u),ee,ge=e.display.view;if(!Ra||j==e.doc.first+e.doc.size)return{index:H,lineN:j};for(var Ce=e.display.viewFrom,Re=0;Re<H;Re++)Ce+=ge[Re].size;if(Ce!=u){if(U>0){if(H==ge.length-1)return null;ee=Ce+ge[H].size-u,H++}else ee=Ce-u;u+=ee,j+=ee}for(;Bn(e.doc,j)!=j;){if(H==(U<0?0:ge.length-1))return null;j+=U*ge[H-(U<0?1:0)].size,H+=U}return{index:H,lineN:j}}function Fi(e,u,j){var U=e.display,H=U.view;H.length==0||u>=U.viewTo||j<=U.viewFrom?(U.view=Gr(e,u,j),U.viewFrom=u):(U.viewFrom>u?U.view=Gr(e,u,U.viewFrom).concat(U.view):U.viewFrom<u&&(U.view=U.view.slice(ha(e,u))),U.viewFrom=u,U.viewTo<j?U.view=U.view.concat(Gr(e,U.viewTo,j)):U.viewTo>j&&(U.view=U.view.slice(0,ha(e,j)))),U.viewTo=j}function Ai(e){for(var u=e.display.view,j=0,U=0;U<u.length;U++){var H=u[U];!H.hidden&&(!H.node||H.changes)&&++j}return j}function Ia(e){e.display.input.showSelection(e.display.input.prepareSelection())}function bi(e,u){u===void 0&&(u=!0);for(var j=e.doc,U={},H=U.cursors=document.createDocumentFragment(),ee=U.selection=document.createDocumentFragment(),ge=0;ge<j.sel.ranges.length;ge++){if(!u&&ge==j.sel.primIndex)continue;var Ce=j.sel.ranges[ge];if(Ce.from().line>=e.display.viewTo||Ce.to().line<e.display.viewFrom)continue;var Re=Ce.empty();(Re||e.options.showCursorWhenSelecting)&&Si(e,Ce.head,H),Re||Pa(e,Ce,ee)}return U}function Si(e,u,j){var U=Vn(e,u,"div",null,null,!e.options.singleCursorHeightPerLine),H=j.appendChild(O("div","\xA0","CodeMirror-cursor"));if(H.style.left=U.left+"px",H.style.top=U.top+"px",H.style.height=Math.max(0,U.bottom-U.top)*e.options.cursorHeight+"px",U.other){var ee=j.appendChild(O("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ee.style.display="",ee.style.left=U.other.left+"px",ee.style.top=U.other.top+"px",ee.style.height=(U.other.bottom-U.other.top)*.85+"px"}}function Ua(e,u){return e.top-u.top||e.left-u.left}function Pa(e,u,j){var U=e.display,H=e.doc,ee=document.createDocumentFragment(),ge=ct(e.display),Ce=ge.left,Re=Math.max(U.sizerWidth,at(e)-U.sizer.offsetLeft)-ge.right,Be=H.direction=="ltr";function vt(Cr,Vr,aa,ea){Vr<0&&(Vr=0),Vr=Math.round(Vr),ea=Math.round(ea),ee.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+Cr+`px;
top: `+Vr+"px; width: "+(aa==null?Re-Cr:aa)+`px;
height: `+(ea-Vr)+"px"))}function Rt(Cr,Vr,aa){var ea=rn(H,Cr),Ca=ea.text.length,Va,vi;function ti(ci,ji){return Or(e,Zt(Cr,ci),"div",ea,ji)}function zi(ci,ji,Ci){var pi=gr(e,ea,null,ci),di=ji=="ltr"==(Ci=="after")?"left":"right",ii=Ci=="after"?pi.begin:pi.end-(/\s/.test(ea.text.charAt(pi.end-1))?2:1);return ti(ii,di)[di]}var Ui=wt(ea,H.direction);return ot(Ui,Vr||0,aa==null?Ca:aa,function(ci,ji,Ci,pi){var di=Ci=="ltr",ii=ti(ci,di?"left":"right"),Bi=ti(ji-1,di?"right":"left"),Os=Vr==null&&ci==0,es=aa==null&&ji==Ca,Ti=pi==0,Po=!Ui||pi==Ui.length-1;if(Bi.top-ii.top<=3){var _i=(Be?Os:es)&&Ti,ru=(Be?es:Os)&&Po,Fo=_i?Ce:(di?ii:Bi).left,ds=ru?Re:(di?Bi:ii).right;vt(Fo,ii.top,ds-Fo,ii.bottom)}else{var fs,Mi,Ts,au;di?(fs=Be&&Os&&Ti?Ce:ii.left,Mi=Be?Re:zi(ci,Ci,"before"),Ts=Be?Ce:zi(ji,Ci,"after"),au=Be&&es&&Po?Re:Bi.right):(fs=Be?zi(ci,Ci,"before"):Ce,Mi=!Be&&Os&&Ti?Re:ii.right,Ts=!Be&&es&&Po?Ce:Bi.left,au=Be?zi(ji,Ci,"after"):Re),vt(fs,ii.top,Mi-fs,ii.bottom),ii.bottom<Bi.top&&vt(Ce,ii.bottom,null,Bi.top),vt(Ts,Bi.top,au-Ts,Bi.bottom)}(!Va||Ua(ii,Va)<0)&&(Va=ii),Ua(Bi,Va)<0&&(Va=Bi),(!vi||Ua(ii,vi)<0)&&(vi=ii),Ua(Bi,vi)<0&&(vi=Bi)}),{start:Va,end:vi}}var $t=u.from(),zt=u.to();if($t.line==zt.line)Rt($t.line,$t.ch,zt.ch);else{var Tn=rn(H,$t.line),Hn=rn(H,zt.line),nr=nn(Tn)==nn(Hn),xr=Rt($t.line,$t.ch,nr?Tn.text.length+1:null).end,kr=Rt(zt.line,nr?0:null,zt.ch).start;nr&&(xr.top<kr.top-2?(vt(xr.right,xr.top,null,xr.bottom),vt(Ce,kr.top,kr.left,kr.bottom)):vt(xr.right,xr.top,kr.left-xr.right,xr.bottom)),xr.bottom<kr.top&&vt(Ce,xr.bottom,null,kr.top)}j.appendChild(ee)}function Za(e){if(!e.state.focused)return;var u=e.display;clearInterval(u.blinker);var j=!0;u.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?u.blinker=setInterval(function(){e.hasFocus()||no(e),u.cursorDiv.style.visibility=(j=!j)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}function to(e){e.state.focused||(e.display.input.focus(),Ii(e))}function Mo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,no(e))},100)}function Ii(e,u){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(ht(e,"focus",e,u),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),_&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Za(e)}function no(e,u){if(e.state.delayingBlurEvent)return;e.state.focused&&(ht(e,"blur",e,u),e.state.focused=!1,E(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function ro(e){for(var u=e.display,j=u.lineDiv.offsetTop,U=0;U<u.view.length;U++){var H=u.view[U],ee=e.options.lineWrapping,ge=void 0,Ce=0;if(H.hidden)continue;if(T&&h<8){var Re=H.node.offsetTop+H.node.offsetHeight;ge=Re-j,j=Re}else{var Be=H.node.getBoundingClientRect();ge=Be.bottom-Be.top,!ee&&H.text.firstChild&&(Ce=H.text.firstChild.getBoundingClientRect().right-Be.left-1)}var vt=H.line.height-ge;if((vt>.005||vt<-.005)&&(rr(H.line,ge),mi(H.line),H.rest))for(var Rt=0;Rt<H.rest.length;Rt++)mi(H.rest[Rt]);if(Ce>e.display.sizerWidth){var $t=Math.ceil(Ce/Mr(e.display));$t>e.display.maxLineLength&&(e.display.maxLineLength=$t,e.display.maxLine=H.line,e.display.maxLineChanged=!0)}}}function mi(e){if(e.widgets)for(var u=0;u<e.widgets.length;++u){var j=e.widgets[u],U=j.node.parentNode;U&&(j.height=U.offsetHeight)}}function uo(e,u,j){var U=j&&j.top!=null?Math.max(0,j.top):e.scroller.scrollTop;U=Math.floor(U-va(e));var H=j&&j.bottom!=null?j.bottom:U+e.wrapper.clientHeight,ee=Ar(u,U),ge=Ar(u,H);if(j&&j.ensure){var Ce=j.ensure.from.line,Re=j.ensure.to.line;Ce<ee?(ee=Ce,ge=Ar(u,Br(rn(u,Ce))+e.wrapper.clientHeight)):Math.min(Re,u.lastLine())>=ge&&(ee=Ar(u,Br(rn(u,Re))-e.wrapper.clientHeight),ge=Re)}return{from:ee,to:Math.max(ge,ee+1)}}function Io(e,u){if(_t(e,"scrollCursorIntoView"))return;var j=e.display,U=j.sizer.getBoundingClientRect(),H=null;if(u.top+U.top<0?H=!0:u.bottom+U.top>(window.innerHeight||document.documentElement.clientHeight)&&(H=!1),H!=null&&!n){var ee=O("div","\u200B",null,`position: absolute;
top: `+(u.top-j.viewOffset-va(e.display))+`px;
height: `+(u.bottom-u.top+yt(e)+j.barHeight)+`px;
left: `+u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");e.display.lineSpace.appendChild(ee),ee.scrollIntoView(H),e.display.lineSpace.removeChild(ee)}}function Lo(e,u,j,U){U==null&&(U=0);var H;!e.options.lineWrapping&&u==j&&(u=u.ch?Zt(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u,j=u.sticky=="before"?Zt(u.line,u.ch+1,"before"):u);for(var ee=0;ee<5;ee++){var ge=!1,Ce=Vn(e,u),Re=!j||j==u?Ce:Vn(e,j);H={left:Math.min(Ce.left,Re.left),top:Math.min(Ce.top,Re.top)-U,right:Math.max(Ce.left,Re.left),bottom:Math.max(Ce.bottom,Re.bottom)+U};var Be=Vi(e,H),vt=e.doc.scrollTop,Rt=e.doc.scrollLeft;if(Be.scrollTop!=null&&(Ji(e,Be.scrollTop),Math.abs(e.doc.scrollTop-vt)>1&&(ge=!0)),Be.scrollLeft!=null&&(ei(e,Be.scrollLeft),Math.abs(e.doc.scrollLeft-Rt)>1&&(ge=!0)),!ge)break}return H}function bo(e,u){var j=Vi(e,u);j.scrollTop!=null&&Ji(e,j.scrollTop),j.scrollLeft!=null&&ei(e,j.scrollLeft)}function Vi(e,u){var j=e.display,U=Er(e.display);u.top<0&&(u.top=0);var H=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:j.scroller.scrollTop,ee=Pe(e),ge={};u.bottom-u.top>ee&&(u.bottom=u.top+ee);var Ce=e.doc.height+Je(j),Re=u.top<U,Be=u.bottom>Ce-U;if(u.top<H)ge.scrollTop=Re?0:u.top;else if(u.bottom>H+ee){var vt=Math.min(u.top,(Be?Ce:u.bottom)-ee);vt!=H&&(ge.scrollTop=vt)}var Rt=e.options.fixedGutter?0:j.gutters.offsetWidth,$t=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:j.scroller.scrollLeft-Rt,zt=at(e)-j.gutters.offsetWidth,Tn=u.right-u.left>zt;return Tn&&(u.right=u.left+zt),u.left<10?ge.scrollLeft=0:u.left<$t?ge.scrollLeft=Math.max(0,u.left+Rt-(Tn?0:10)):u.right>zt+$t-3&&(ge.scrollLeft=u.right+(Tn?0:10)-zt),ge}function co(e,u){if(u==null)return;yo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+u}function Xi(e){yo(e);var u=e.getCursor();e.curOp.scrollToPos={from:u,to:u,margin:e.options.cursorScrollMargin}}function Yi(e,u,j){(u!=null||j!=null)&&yo(e),u!=null&&(e.curOp.scrollLeft=u),j!=null&&(e.curOp.scrollTop=j)}function No(e,u){yo(e),e.curOp.scrollToPos=u}function yo(e){var u=e.curOp.scrollToPos;if(u){e.curOp.scrollToPos=null;var j=En(e,u.from),U=En(e,u.to);ao(e,j,U,u.margin)}}function ao(e,u,j,U){var H=Vi(e,{left:Math.min(u.left,j.left),top:Math.min(u.top,j.top)-U,right:Math.max(u.right,j.right),bottom:Math.max(u.bottom,j.bottom)+U});Yi(e,H.scrollLeft,H.scrollTop)}function Ji(e,u){if(Math.abs(e.doc.scrollTop-u)<2)return;A||fo(e,{top:u}),Qi(e,u,!0),A&&fo(e),ai(e,100)}function Qi(e,u,j){if(u=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,u)),e.display.scroller.scrollTop==u&&!j)return;e.doc.scrollTop=u,e.display.scrollbars.setScrollTop(u),e.display.scroller.scrollTop!=u&&(e.display.scroller.scrollTop=u)}function ei(e,u,j,U){if(u=Math.max(0,Math.min(u,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(j?u==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-u)<2)&&!U)return;e.doc.scrollLeft=u,ba(e),e.display.scroller.scrollLeft!=u&&(e.display.scroller.scrollLeft=u),e.display.scrollbars.setScrollLeft(u)}function Li(e){var u=e.display,j=u.gutters.offsetWidth,U=Math.round(e.doc.height+Je(e.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:e.options.fixedGutter?j:0,docHeight:U,scrollHeight:U+yt(e)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:j}}var Di=function(e,u,j){this.cm=j;var U=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),H=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");U.tabIndex=H.tabIndex=-1,e(U),e(H),Ue(U,"scroll",function(){U.clientHeight&&u(U.scrollTop,"vertical")}),Ue(H,"scroll",function(){H.clientWidth&&u(H.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Di.prototype.update=function(e){var u=e.scrollWidth>e.clientWidth+1,j=e.scrollHeight>e.clientHeight+1,U=e.nativeBarWidth;if(j){this.vert.style.display="block",this.vert.style.bottom=u?U+"px":"0";var H=e.viewHeight-(u?U:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+H)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(u){this.horiz.style.display="block",this.horiz.style.right=j?U+"px":"0",this.horiz.style.left=e.barLeft+"px";var ee=e.viewWidth-e.barLeft-(j?U:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(U==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:j?U:0,bottom:u?U:0}},Di.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Di.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Di.prototype.zeroWidthHack=function(){var e=o&&!a?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ne,this.disableVert=new ne},Di.prototype.enableZeroWidthBar=function(e,u,j){e.style.pointerEvents="auto";function U(){var H=e.getBoundingClientRect(),ee=j=="vert"?document.elementFromPoint(H.right-1,(H.top+H.bottom)/2):document.elementFromPoint((H.right+H.left)/2,H.bottom-1);ee!=e?e.style.pointerEvents="none":u.set(1e3,U)}u.set(1e3,U)},Di.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Zi=function(){};Zi.prototype.update=function(){return{bottom:0,right:0}},Zi.prototype.setScrollLeft=function(){},Zi.prototype.setScrollTop=function(){},Zi.prototype.clear=function(){};function Ri(e,u){u||(u=Li(e));var j=e.display.barWidth,U=e.display.barHeight;Eo(e,u);for(var H=0;H<4&&j!=e.display.barWidth||U!=e.display.barHeight;H++)j!=e.display.barWidth&&e.options.lineWrapping&&ro(e),Eo(e,Li(e)),j=e.display.barWidth,U=e.display.barHeight}function Eo(e,u){var j=e.display,U=j.scrollbars.update(u);j.sizer.style.paddingRight=(j.barWidth=U.right)+"px",j.sizer.style.paddingBottom=(j.barHeight=U.bottom)+"px",j.heightForcer.style.borderBottom=U.bottom+"px solid transparent",U.right&&U.bottom?(j.scrollbarFiller.style.display="block",j.scrollbarFiller.style.height=U.bottom+"px",j.scrollbarFiller.style.width=U.right+"px"):j.scrollbarFiller.style.display="",U.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(j.gutterFiller.style.display="block",j.gutterFiller.style.height=U.bottom+"px",j.gutterFiller.style.width=u.gutterWidth+"px"):j.gutterFiller.style.display=""}var xo={native:Di,null:Zi};function Co(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xo[e.options.scrollbarStyle](function(u){e.display.wrapper.insertBefore(u,e.display.scrollbarFiller),Ue(u,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),u.setAttribute("cm-not-content","true")},function(u,j){j=="horizontal"?ei(e,u):Ji(e,u)},e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var io=0;function Ni(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++io},qr(e.curOp)}function qi(e){var u=e.curOp;u&&Kt(u,function(j){for(var U=0;U<j.ops.length;U++)j.ops[U].cm.curOp=null;ko(j)})}function ko(e){for(var u=e.ops,j=0;j<u.length;j++)oo(u[j]);for(var U=0;U<u.length;U++)so(u[U]);for(var H=0;H<u.length;H++)So(u[H]);for(var ee=0;ee<u.length;ee++)Uo(u[ee]);for(var ge=0;ge<u.length;ge++)jo(u[ge])}function oo(e){var u=e.cm,j=u.display;Bo(u),e.updateMaxLine&&Yt(u),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<j.viewFrom||e.scrollToPos.to.line>=j.viewTo)||j.maxLineChanged&&u.options.lineWrapping,e.update=e.mustUpdate&&new yi(u,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function so(e){e.updatedDisplay=e.mustUpdate&&Wi(e.cm,e.update)}function So(e){var u=e.cm,j=u.display;e.updatedDisplay&&ro(u),e.barMeasure=Li(u),j.maxLineChanged&&!u.options.lineWrapping&&(e.adjustWidthTo=qe(u,j.maxLine,j.maxLine.text.length).left+3,u.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(j.scroller.clientWidth,j.sizer.offsetLeft+e.adjustWidthTo+yt(u)+u.display.barWidth),e.maxScrollLeft=Math.max(0,j.sizer.offsetLeft+e.adjustWidthTo-at(u))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=j.input.prepareSelection())}function Uo(e){var u=e.cm;e.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<u.doc.scrollLeft&&ei(u,Math.min(u.display.scroller.scrollLeft,e.maxScrollLeft),!0),u.display.maxLineChanged=!1);var j=e.focus&&e.focus==V();e.preparedSelection&&u.display.input.showSelection(e.preparedSelection,j),(e.updatedDisplay||e.startHeight!=u.doc.height)&&Ri(u,e.barMeasure),e.updatedDisplay&&Ta(u,e.barMeasure),e.selectionChanged&&Za(u),u.state.focused&&e.updateInput&&u.display.input.reset(e.typing),j&&to(e.cm)}function jo(e){var u=e.cm,j=u.display,U=u.doc;if(e.updatedDisplay&&To(u,e.update),j.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(j.wheelStartX=j.wheelStartY=null),e.scrollTop!=null&&Qi(u,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&ei(u,e.scrollLeft,!0,!0),e.scrollToPos){var H=Lo(u,z(U,e.scrollToPos.from),z(U,e.scrollToPos.to),e.scrollToPos.margin);Io(u,H)}var ee=e.maybeHiddenMarkers,ge=e.maybeUnhiddenMarkers;if(ee)for(var Ce=0;Ce<ee.length;++Ce)ee[Ce].lines.length||ht(ee[Ce],"hide");if(ge)for(var Re=0;Re<ge.length;++Re)ge[Re].lines.length&&ht(ge[Re],"unhide");j.wrapper.offsetHeight&&(U.scrollTop=u.display.scroller.scrollTop),e.changeObjs&&ht(u,"changes",u,e.changeObjs),e.update&&e.update.finish()}function fi(e,u){if(e.curOp)return u();Ni(e);try{return u()}finally{qi(e)}}function Wa(e,u){return function(){if(e.curOp)return u.apply(e,arguments);Ni(e);try{return u.apply(e,arguments)}finally{qi(e)}}}function ri(e){return function(){if(this.curOp)return e.apply(this,arguments);Ni(this);try{return e.apply(this,arguments)}finally{qi(this)}}}function Xa(e){return function(){var u=this.cm;if(!u||u.curOp)return e.apply(this,arguments);Ni(u);try{return e.apply(this,arguments)}finally{qi(u)}}}function ai(e,u){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(u,B(wo,e))}function wo(e){var u=e.doc;if(u.highlightFrontier>=e.display.viewTo)return;var j=+new Date+e.options.workTime,U=Nn(e,u.highlightFrontier),H=[];u.iter(U.line,Math.min(u.first+u.size,e.display.viewTo+500),function(ee){if(U.line>=e.display.viewFrom){var ge=ee.styles,Ce=ee.text.length>e.options.maxHighlightLength?vn(u.mode,U.state):null,Re=lt(e,ee,U,!0);Ce&&(U.state=Ce),ee.styles=Re.styles;var Be=ee.styleClasses,vt=Re.classes;vt?ee.styleClasses=vt:Be&&(ee.styleClasses=null);for(var Rt=!ge||ge.length!=ee.styles.length||Be!=vt&&(!Be||!vt||Be.bgClass!=vt.bgClass||Be.textClass!=vt.textClass),$t=0;!Rt&&$t<ge.length;++$t)Rt=ge[$t]!=ee.styles[$t];Rt&&H.push(U.line),ee.stateAfter=U.save(),U.nextLine()}else ee.text.length<=e.options.maxHighlightLength&&Yn(e,ee.text,U),ee.stateAfter=U.line%5==0?U.save():null,U.nextLine();if(+new Date>j)return ai(e,e.options.workDelay),!0}),u.highlightFrontier=U.line,u.modeFrontier=Math.max(u.modeFrontier,U.line),H.length&&fi(e,function(){for(var ee=0;ee<H.length;ee++)Na(e,H[ee],"text")})}var yi=function(e,u,j){var U=e.display;this.viewport=u,this.visible=uo(U,e.doc,u),this.editorIsHidden=!U.wrapper.offsetWidth,this.wrapperHeight=U.wrapper.clientHeight,this.wrapperWidth=U.wrapper.clientWidth,this.oldDisplayWidth=at(e),this.force=j,this.dims=or(e),this.events=[]};yi.prototype.signal=function(e,u){We(e,u)&&this.events.push(arguments)},yi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ht.apply(null,this.events[e])};function Bo(e){var u=e.display;!u.scrollbarsClipped&&u.scroller.offsetWidth&&(u.nativeBarWidth=u.scroller.offsetWidth-u.scroller.clientWidth,u.heightForcer.style.height=yt(e)+"px",u.sizer.style.marginBottom=-u.nativeBarWidth+"px",u.sizer.style.borderRightWidth=yt(e)+"px",u.scrollbarsClipped=!0)}function Oo(e){if(e.hasFocus())return null;var u=V();if(!u||!N(e.display.lineDiv,u))return null;var j={activeElt:u};if(window.getSelection){var U=window.getSelection();U.anchorNode&&U.extend&&N(e.display.lineDiv,U.anchorNode)&&(j.anchorNode=U.anchorNode,j.anchorOffset=U.anchorOffset,j.focusNode=U.focusNode,j.focusOffset=U.focusOffset)}return j}function $i(e){if(!e||!e.activeElt||e.activeElt==V())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&N(document.body,e.anchorNode)&&N(document.body,e.focusNode)){var u=window.getSelection(),j=document.createRange();j.setEnd(e.anchorNode,e.anchorOffset),j.collapse(!1),u.removeAllRanges(),u.addRange(j),u.extend(e.focusNode,e.focusOffset)}}function Wi(e,u){var j=e.display,U=e.doc;if(u.editorIsHidden)return Ba(e),!1;if(!u.force&&u.visible.from>=j.viewFrom&&u.visible.to<=j.viewTo&&(j.updateLineNumbers==null||j.updateLineNumbers>=j.viewTo)&&j.renderedView==j.view&&Ai(e)==0)return!1;Ka(e)&&(Ba(e),u.dims=or(e));var H=U.first+U.size,ee=Math.max(u.visible.from-e.options.viewportMargin,U.first),ge=Math.min(H,u.visible.to+e.options.viewportMargin);j.viewFrom<ee&&ee-j.viewFrom<20&&(ee=Math.max(U.first,j.viewFrom)),j.viewTo>ge&&j.viewTo-ge<20&&(ge=Math.min(H,j.viewTo)),Ra&&(ee=Bn(e.doc,ee),ge=Pn(e.doc,ge));var Ce=ee!=j.viewFrom||ge!=j.viewTo||j.lastWrapHeight!=u.wrapperHeight||j.lastWrapWidth!=u.wrapperWidth;Fi(e,ee,ge),j.viewOffset=Br(rn(e.doc,j.viewFrom)),e.display.mover.style.top=j.viewOffset+"px";var Re=Ai(e);if(!Ce&&Re==0&&!u.force&&j.renderedView==j.view&&(j.updateLineNumbers==null||j.updateLineNumbers>=j.viewTo))return!1;var Be=Oo(e);return Re>4&&(j.lineDiv.style.display="none"),Wo(e,j.updateLineNumbers,u.dims),Re>4&&(j.lineDiv.style.display=""),j.renderedView=j.view,$i(Be),x(j.cursorDiv),x(j.selectionDiv),j.gutters.style.height=j.sizer.style.minHeight=0,Ce&&(j.lastWrapHeight=u.wrapperHeight,j.lastWrapWidth=u.wrapperWidth,ai(e,400)),j.updateLineNumbers=null,!0}function To(e,u){for(var j=u.viewport,U=!0;;U=!1){if(!U||!e.options.lineWrapping||u.oldDisplayWidth==at(e)){if(j&&j.top!=null&&(j={top:Math.min(e.doc.height+Je(e.display)-Pe(e),j.top)}),u.visible=uo(e.display,e.doc,j),u.visible.from>=e.display.viewFrom&&u.visible.to<=e.display.viewTo)break}else U&&(u.visible=uo(e.display,e.doc,j));if(!Wi(e,u))break;ro(e);var H=Li(e);Ia(e),Ri(e,H),Ta(e,H),u.force=!1}u.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(u.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fo(e,u){var j=new yi(e,u);if(Wi(e,j)){ro(e),To(e,j);var U=Li(e);Ia(e),Ri(e,U),Ta(e,U),j.finish()}}function Wo(e,u,j){var U=e.display,H=e.options.lineNumbers,ee=U.lineDiv,ge=ee.firstChild;function Ce(Tn){var Hn=Tn.nextSibling;return _&&o&&e.display.currentWheelTarget==Tn?Tn.style.display="none":Tn.parentNode.removeChild(Tn),Hn}for(var Re=U.view,Be=U.viewFrom,vt=0;vt<Re.length;vt++){var Rt=Re[vt];if(!Rt.hidden)if(!Rt.node||Rt.node.parentNode!=ee){var $t=Xr(e,Rt,Be,j);ee.insertBefore($t,ge)}else{for(;ge!=Rt.node;)ge=Ce(ge);var zt=H&&u!=null&&u<=Be&&Rt.lineNumber;Rt.changes&&(fe(Rt.changes,"gutter")>-1&&(zt=!1),ir(e,Rt,Be,j)),zt&&(x(Rt.lineNumber),Rt.lineNumber.appendChild(document.createTextNode(on(e.options,Be)))),ge=Rt.node.nextSibling}Be+=Rt.size}for(;ge;)ge=Ce(ge)}function lo(e){var u=e.gutters.offsetWidth;e.sizer.style.marginLeft=u+"px"}function Ta(e,u){e.display.sizer.style.minHeight=u.docHeight+"px",e.display.heightForcer.style.top=u.docHeight+"px",e.display.gutters.style.height=u.docHeight+e.display.barHeight+yt(e)+"px"}function ba(e){var u=e.display,j=u.view;if(!u.alignWidgets&&(!u.gutters.firstChild||!e.options.fixedGutter))return;for(var U=da(u)-u.scroller.scrollLeft+e.doc.scrollLeft,H=u.gutters.offsetWidth,ee=U+"px",ge=0;ge<j.length;ge++)if(!j[ge].hidden){e.options.fixedGutter&&(j[ge].gutter&&(j[ge].gutter.style.left=ee),j[ge].gutterBackground&&(j[ge].gutterBackground.style.left=ee));var Ce=j[ge].alignable;if(Ce)for(var Re=0;Re<Ce.length;Re++)Ce[Re].style.left=ee}e.options.fixedGutter&&(u.gutters.style.left=U+H+"px")}function Ka(e){if(!e.options.lineNumbers)return!1;var u=e.doc,j=on(e.options,u.first+u.size-1),U=e.display;if(j.length!=U.lineNumChars){var H=U.measure.appendChild(O("div",[O("div",j)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ee=H.firstChild.offsetWidth,ge=H.offsetWidth-ee;return U.lineGutter.style.width="",U.lineNumInnerWidth=Math.max(ee,U.lineGutter.offsetWidth-ge)+1,U.lineNumWidth=U.lineNumInnerWidth+ge,U.lineNumChars=U.lineNumInnerWidth?j.length:-1,U.lineGutter.style.width=U.lineNumWidth+"px",lo(e.display),!0}return!1}function ui(e,u){for(var j=[],U=!1,H=0;H<e.length;H++){var ee=e[H],ge=null;if(typeof ee!="string"&&(ge=ee.style,ee=ee.className),ee=="CodeMirror-linenumbers")if(u)U=!0;else continue;j.push({className:ee,style:ge})}return u&&!U&&j.push({className:"CodeMirror-linenumbers",style:null}),j}function eo(e){var u=e.gutters,j=e.gutterSpecs;x(u),e.lineGutter=null;for(var U=0;U<j.length;++U){var H=j[U],ee=H.className,ge=H.style,Ce=u.appendChild(O("div",null,"CodeMirror-gutter "+ee));ge&&(Ce.style.cssText=ge),ee=="CodeMirror-linenumbers"&&(e.lineGutter=Ce,Ce.style.width=(e.lineNumWidth||1)+"px")}u.style.display=j.length?"":"none",lo(e)}function ki(e){eo(e.display),La(e),ba(e)}function ho(e,u,j,U){var H=this;this.input=j,H.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),H.scrollbarFiller.setAttribute("cm-not-content","true"),H.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),H.gutterFiller.setAttribute("cm-not-content","true"),H.lineDiv=I("div",null,"CodeMirror-code"),H.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),H.cursorDiv=O("div",null,"CodeMirror-cursors"),H.measure=O("div",null,"CodeMirror-measure"),H.lineMeasure=O("div",null,"CodeMirror-measure"),H.lineSpace=I("div",[H.measure,H.lineMeasure,H.selectionDiv,H.cursorDiv,H.lineDiv],null,"position: relative; outline: none");var ee=I("div",[H.lineSpace],"CodeMirror-lines");H.mover=O("div",[ee],null,"position: relative"),H.sizer=O("div",[H.mover],"CodeMirror-sizer"),H.sizerWidth=null,H.heightForcer=O("div",null,null,"position: absolute; height: "+de+"px; width: 1px;"),H.gutters=O("div",null,"CodeMirror-gutters"),H.lineGutter=null,H.scroller=O("div",[H.sizer,H.heightForcer,H.gutters],"CodeMirror-scroll"),H.scroller.setAttribute("tabIndex","-1"),H.wrapper=O("div",[H.scrollbarFiller,H.gutterFiller,H.scroller],"CodeMirror"),T&&h<8&&(H.gutters.style.zIndex=-1,H.scroller.style.paddingRight=0),!_&&!(A&&l)&&(H.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(H.wrapper):e(H.wrapper)),H.viewFrom=H.viewTo=u.first,H.reportedViewFrom=H.reportedViewTo=u.first,H.view=[],H.renderedView=null,H.externalMeasured=null,H.viewOffset=0,H.lastWrapHeight=H.lastWrapWidth=0,H.updateLineNumbers=null,H.nativeBarWidth=H.barHeight=H.barWidth=0,H.scrollbarsClipped=!1,H.lineNumWidth=H.lineNumInnerWidth=H.lineNumChars=null,H.alignWidgets=!1,H.cachedCharWidth=H.cachedTextHeight=H.cachedPaddingH=null,H.maxLine=null,H.maxLineLength=0,H.maxLineChanged=!1,H.wheelDX=H.wheelDY=H.wheelStartX=H.wheelStartY=null,H.shift=!1,H.selForContextMenu=null,H.activeTouch=null,H.gutterSpecs=ui(U.gutters,U.lineNumbers),eo(H),j.init(H)}var wi=0,qa=null;T?qa=-.53:A?qa=15:r?qa=-.7:t&&(qa=-1/3);function po(e){var u=e.wheelDeltaX,j=e.wheelDeltaY;return u==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(u=e.detail),j==null&&e.detail&&e.axis==e.VERTICAL_AXIS?j=e.detail:j==null&&(j=e.wheelDelta),{x:u,y:j}}function Hi(e){var u=po(e);return u.x*=qa,u.y*=qa,u}function mo(e,u){var j=po(u),U=j.x,H=j.y,ee=e.display,ge=ee.scroller,Ce=ge.scrollWidth>ge.clientWidth,Re=ge.scrollHeight>ge.clientHeight;if(!(U&&Ce||H&&Re))return;if(H&&o&&_){e:for(var Be=u.target,vt=ee.view;Be!=ge;Be=Be.parentNode)for(var Rt=0;Rt<vt.length;Rt++)if(vt[Rt].node==Be){e.display.currentWheelTarget=Be;break e}}if(U&&!A&&!c&&qa!=null){H&&Re&&Ji(e,Math.max(0,ge.scrollTop+H*qa)),ei(e,Math.max(0,ge.scrollLeft+U*qa)),(!H||H&&Re)&&Te(u),ee.wheelStartX=null;return}if(H&&qa!=null){var $t=H*qa,zt=e.doc.scrollTop,Tn=zt+ee.wrapper.clientHeight;$t<0?zt=Math.max(0,zt+$t-50):Tn=Math.min(e.doc.height,Tn+$t+50),fo(e,{top:zt,bottom:Tn})}wi<20&&(ee.wheelStartX==null?(ee.wheelStartX=ge.scrollLeft,ee.wheelStartY=ge.scrollTop,ee.wheelDX=U,ee.wheelDY=H,setTimeout(function(){if(ee.wheelStartX==null)return;var Hn=ge.scrollLeft-ee.wheelStartX,nr=ge.scrollTop-ee.wheelStartY,xr=nr&&ee.wheelDY&&nr/ee.wheelDY||Hn&&ee.wheelDX&&Hn/ee.wheelDX;if(ee.wheelStartX=ee.wheelStartY=null,!xr)return;qa=(qa*wi+xr)/(wi+1),++wi},200)):(ee.wheelDX+=U,ee.wheelDY+=H))}var hi=function(e,u){this.ranges=e,this.primIndex=u};hi.prototype.primary=function(){return this.ranges[this.primIndex]},hi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var u=0;u<this.ranges.length;u++){var j=this.ranges[u],U=e.ranges[u];if(!jr(j.anchor,U.anchor)||!jr(j.head,U.head))return!1}return!0},hi.prototype.deepCopy=function(){for(var e=[],u=0;u<this.ranges.length;u++)e[u]=new Da(Ln(this.ranges[u].anchor),Ln(this.ranges[u].head));return new hi(e,this.primIndex)},hi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},hi.prototype.contains=function(e,u){u||(u=e);for(var j=0;j<this.ranges.length;j++){var U=this.ranges[j];if(An(u,U.from())>=0&&An(e,U.to())<=0)return j}return-1};var Da=function(e,u){this.anchor=e,this.head=u};Da.prototype.from=function(){return Un(this.anchor,this.head)},Da.prototype.to=function(){return qn(this.anchor,this.head)},Da.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ia(e,u,j){var U=e&&e.options.selectionsMayTouch,H=u[j];u.sort(function($t,zt){return An($t.from(),zt.from())}),j=fe(u,H);for(var ee=1;ee<u.length;ee++){var ge=u[ee],Ce=u[ee-1],Re=An(Ce.to(),ge.from());if(U&&!ge.empty()?Re>0:Re>=0){var Be=Un(Ce.from(),ge.from()),vt=qn(Ce.to(),ge.to()),Rt=Ce.empty()?ge.from()==ge.head:Ce.from()==Ce.head;ee<=j&&--j,u.splice(--ee,2,new Da(Rt?vt:Be,Rt?Be:vt))}}return new hi(u,j)}function Sr(e,u){return new hi([new Da(e,u||e)],0)}function Qr(e){return e.text?Zt(e.from.line+e.text.length-1,q(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ma(e,u){if(An(e,u.from)<0)return e;if(An(e,u.to)<=0)return Qr(u);var j=e.line+u.text.length-(u.to.line-u.from.line)-1,U=e.ch;return e.line==u.to.line&&(U+=Qr(u).ch-u.to.ch),Zt(j,U)}function Fa(e,u){for(var j=[],U=0;U<e.sel.ranges.length;U++){var H=e.sel.ranges[U];j.push(new Da(ma(H.anchor,u),ma(H.head,u)))}return ia(e.cm,j,e.sel.primIndex)}function Ei(e,u,j){return e.line==u.line?Zt(j.line,e.ch-u.ch+j.ch):Zt(j.line+(e.line-u.line),e.ch)}function Pi(e,u,j){for(var U=[],H=Zt(e.first,0),ee=H,ge=0;ge<u.length;ge++){var Ce=u[ge],Re=Ei(Ce.from,H,ee),Be=Ei(Qr(Ce),H,ee);if(H=Ce.to,ee=Be,j=="around"){var vt=e.sel.ranges[ge],Rt=An(vt.head,vt.anchor)<0;U[ge]=new Da(Rt?Be:Re,Rt?Re:Be)}else U[ge]=new Da(Re,Re)}return new hi(U,e.sel.primIndex)}function $a(e){e.doc.mode=Mt(e.options,e.doc.modeOption),xi(e)}function xi(e){e.doc.iter(function(u){u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ai(e,100),e.state.modeGen++,e.curOp&&La(e)}function Ki(e,u){return u.from.ch==0&&u.to.ch==0&&q(u.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function go(e,u,j,U){function H(kr){return j?j[kr]:null}function ee(kr,Cr,Vr){Rn(kr,Cr,Vr,U),Jt(kr,"change",kr,u)}function ge(kr,Cr){for(var Vr=[],aa=kr;aa<Cr;++aa)Vr.push(new cn(Be[aa],H(aa),U));return Vr}var Ce=u.from,Re=u.to,Be=u.text,vt=rn(e,Ce.line),Rt=rn(e,Re.line),$t=q(Be),zt=H(Be.length-1),Tn=Re.line-Ce.line;if(u.full)e.insert(0,ge(0,Be.length)),e.remove(Be.length,e.size-Be.length);else if(Ki(e,u)){var Hn=ge(0,Be.length-1);ee(Rt,Rt.text,zt),Tn&&e.remove(Ce.line,Tn),Hn.length&&e.insert(Ce.line,Hn)}else if(vt==Rt)if(Be.length==1)ee(vt,vt.text.slice(0,Ce.ch)+$t+vt.text.slice(Re.ch),zt);else{var nr=ge(1,Be.length-1);nr.push(new cn($t+vt.text.slice(Re.ch),zt,U)),ee(vt,vt.text.slice(0,Ce.ch)+Be[0],H(0)),e.insert(Ce.line+1,nr)}else if(Be.length==1)ee(vt,vt.text.slice(0,Ce.ch)+Be[0]+Rt.text.slice(Re.ch),H(0)),e.remove(Ce.line+1,Tn);else{ee(vt,vt.text.slice(0,Ce.ch)+Be[0],H(0)),ee(Rt,$t+Rt.text.slice(Re.ch),zt);var xr=ge(1,Be.length-1);Tn>1&&e.remove(Ce.line+1,Tn-1),e.insert(Ce.line+1,xr)}Jt(e,"change",e,u)}function Qa(e,u,j){function U(H,ee,ge){if(H.linked)for(var Ce=0;Ce<H.linked.length;++Ce){var Re=H.linked[Ce];if(Re.doc==ee)continue;var Be=ge&&Re.sharedHist;if(j&&!Be)continue;u(Re.doc,Be),U(Re.doc,H,Be)}}U(e,null,!0)}function As(e,u){if(u.cm)throw new Error("This document is already in use.");e.doc=u,u.cm=e,_a(e),$a(e),Ys(e),e.options.lineWrapping||Yt(e),e.options.mode=u.modeOption,La(e)}function Ys(e){(e.doc.direction=="rtl"?F:E)(e.display.lineDiv,"CodeMirror-rtl")}function Pl(e){fi(e,function(){Ys(e),La(e)})}function hs(e){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Ds(e,u){var j={from:Ln(u.from),to:Qr(u),text:Qn(e,u.from,u.to)};return Rs(e,j,u.from.line,u.to.line+1),Qa(e,function(U){return Rs(U,j,u.from.line,u.to.line+1)},!0),j}function Js(e){for(;e.length;){var u=q(e);if(u.ranges)e.pop();else break}}function Ml(e,u){if(u)return Js(e.done),q(e.done);if(e.done.length&&!q(e.done).ranges)return q(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),q(e.done)}function Qs(e,u,j,U){var H=e.history;H.undone.length=0;var ee=+new Date,ge,Ce;if((H.lastOp==U||H.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=="+"&&H.lastModTime>ee-(e.cm?e.cm.options.historyEventDelay:500)||u.origin.charAt(0)=="*"))&&(ge=Ml(H,H.lastOp==U)))Ce=q(ge.changes),An(u.from,u.to)==0&&An(u.from,Ce.to)==0?Ce.to=Qr(u):ge.changes.push(Ds(e,u));else{var Re=q(H.done);for((!Re||!Re.ranges)&&ms(e.sel,H.done),ge={changes:[Ds(e,u)],generation:H.generation},H.done.push(ge);H.done.length>H.undoDepth;)H.done.shift(),H.done[0].ranges||H.done.shift()}H.done.push(j),H.generation=++H.maxGeneration,H.lastModTime=H.lastSelTime=ee,H.lastOp=H.lastSelOp=U,H.lastOrigin=H.lastSelOrigin=u.origin,Ce||ht(e,"historyAdded")}function Il(e,u,j,U){var H=u.charAt(0);return H=="*"||H=="+"&&j.ranges.length==U.ranges.length&&j.somethingSelected()==U.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ps(e,u,j,U){var H=e.history,ee=U&&U.origin;j==H.lastSelOp||ee&&H.lastSelOrigin==ee&&(H.lastModTime==H.lastSelTime&&H.lastOrigin==ee||Il(e,ee,q(H.done),u))?H.done[H.done.length-1]=u:ms(u,H.done),H.lastSelTime=+new Date,H.lastSelOrigin=ee,H.lastSelOp=j,U&&U.clearRedo!==!1&&Js(H.undone)}function ms(e,u){var j=q(u);j&&j.ranges&&j.equals(e)||u.push(e)}function Rs(e,u,j,U){var H=u["spans_"+e.id],ee=0;e.iter(Math.max(e.first,j),Math.min(e.first+e.size,U),function(ge){ge.markedSpans&&((H||(H=u["spans_"+e.id]={}))[ee]=ge.markedSpans),++ee})}function gs(e){if(!e)return null;for(var u,j=0;j<e.length;++j)e[j].marker.explicitlyCleared?u||(u=e.slice(0,j)):u&&u.push(e[j]);return u?u.length?u:null:e}function Zs(e,u){var j=u["spans_"+e.id];if(!j)return null;for(var U=[],H=0;H<u.text.length;++H)U.push(gs(j[H]));return U}function Ps(e,u){var j=Zs(e,u),U=oa(e,u);if(!j)return U;if(!U)return j;for(var H=0;H<j.length;++H){var ee=j[H],ge=U[H];if(ee&&ge){e:for(var Ce=0;Ce<ge.length;++Ce){for(var Re=ge[Ce],Be=0;Be<ee.length;++Be)if(ee[Be].marker==Re.marker)continue e;ee.push(Re)}}else ge&&(j[H]=ge)}return j}function Ho(e,u,j){for(var U=[],H=0;H<e.length;++H){var ee=e[H];if(ee.ranges){U.push(j?hi.prototype.deepCopy.call(ee):ee);continue}var ge=ee.changes,Ce=[];U.push({changes:Ce});for(var Re=0;Re<ge.length;++Re){var Be=ge[Re],vt=void 0;if(Ce.push({from:Be.from,to:Be.to,text:Be.text}),u)for(var Rt in Be)(vt=Rt.match(/^spans_(\d+)$/))&&(fe(u,Number(vt[1]))>-1&&(q(Ce)[Rt]=Be[Rt],delete Be[Rt]))}}return U}function vs(e,u,j,U){if(U){var H=e.anchor;if(j){var ee=An(u,H)<0;ee!=An(j,H)<0?(H=u,u=j):ee!=An(u,j)<0&&(u=j)}return new Da(H,u)}else return new Da(j||u,u)}function _s(e,u,j,U,H){H==null&&(H=e.cm&&(e.cm.display.shift||e.extend)),gi(e,new hi([vs(e.sel.primary(),u,j,H)],0),U)}function $s(e,u,j){for(var U=[],H=e.cm&&(e.cm.display.shift||e.extend),ee=0;ee<e.sel.ranges.length;ee++)U[ee]=vs(e.sel.ranges[ee],u[ee],null,H);var ge=ia(e.cm,U,e.sel.primIndex);gi(e,ge,j)}function Ao(e,u,j,U){var H=e.sel.ranges.slice(0);H[u]=j,gi(e,ia(e.cm,H,e.sel.primIndex),U)}function el(e,u,j,U){gi(e,Sr(u,j),U)}function Ll(e,u,j){var U={ranges:u.ranges,update:function(H){this.ranges=[];for(var ee=0;ee<H.length;ee++)this.ranges[ee]=new Da(z(e,H[ee].anchor),z(e,H[ee].head))},origin:j&&j.origin};return ht(e,"beforeSelectionChange",e,U),e.cm&&ht(e.cm,"beforeSelectionChange",e.cm,U),U.ranges!=u.ranges?ia(e.cm,U.ranges,U.ranges.length-1):u}function tl(e,u,j){var U=e.history.done,H=q(U);H&&H.ranges?(U[U.length-1]=u,Ko(e,u,j)):gi(e,u,j)}function gi(e,u,j){Ko(e,u,j),ps(e,e.sel,e.cm?e.cm.curOp.id:NaN,j)}function Ko(e,u,j){(We(e,"beforeSelectionChange")||e.cm&&We(e.cm,"beforeSelectionChange"))&&(u=Ll(e,u,j));var U=j&&j.bias||(An(u.primary().head,e.sel.primary().head)<0?-1:1);nl(e,al(e,u,U,!0)),!(j&&j.scroll===!1)&&e.cm&&Xi(e.cm)}function nl(e,u){if(u.equals(e.sel))return;e.sel=u,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ye(e.cm)),Jt(e,"cursorActivity",e)}function rl(e){nl(e,al(e,e.sel,null,!1))}function al(e,u,j,U){for(var H,ee=0;ee<u.ranges.length;ee++){var ge=u.ranges[ee],Ce=u.ranges.length==e.sel.ranges.length&&e.sel.ranges[ee],Re=bs(e,ge.anchor,Ce&&Ce.anchor,j,U),Be=bs(e,ge.head,Ce&&Ce.head,j,U);(H||Re!=ge.anchor||Be!=ge.head)&&(H||(H=u.ranges.slice(0,ee)),H[ee]=new Da(Re,Be))}return H?ia(e.cm,H,u.primIndex):u}function Go(e,u,j,U,H){var ee=rn(e,u.line);if(ee.markedSpans)for(var ge=0;ge<ee.markedSpans.length;++ge){var Ce=ee.markedSpans[ge],Re=Ce.marker,Be="selectLeft"in Re?!Re.selectLeft:Re.inclusiveLeft,vt="selectRight"in Re?!Re.selectRight:Re.inclusiveRight;if((Ce.from==null||(Be?Ce.from<=u.ch:Ce.from<u.ch))&&(Ce.to==null||(vt?Ce.to>=u.ch:Ce.to>u.ch))){if(H&&(ht(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(ee.markedSpans){--ge;continue}else break;if(!Re.atomic)continue;if(j){var Rt=Re.find(U<0?1:-1),$t=void 0;if((U<0?vt:Be)&&(Rt=il(e,Rt,-U,Rt&&Rt.line==u.line?ee:null)),Rt&&Rt.line==u.line&&($t=An(Rt,j))&&(U<0?$t<0:$t>0))return Go(e,Rt,u,U,H)}var zt=Re.find(U<0?-1:1);return(U<0?Be:vt)&&(zt=il(e,zt,U,zt.line==u.line?ee:null)),zt?Go(e,zt,u,U,H):null}}return u}function bs(e,u,j,U,H){var ee=U||1,ge=Go(e,u,j,ee,H)||!H&&Go(e,u,j,ee,!0)||Go(e,u,j,-ee,H)||!H&&Go(e,u,j,-ee,!0);return ge||(e.cantEdit=!0,Zt(e.first,0))}function il(e,u,j,U){return j<0&&u.ch==0?u.line>e.first?z(e,Zt(u.line-1)):null:j>0&&u.ch==(U||rn(e,u.line)).text.length?u.line<e.first+e.size-1?Zt(u.line+1,0):null:new Zt(u.line,u.ch+j)}function ol(e){e.setSelection(Zt(e.firstLine(),0),Zt(e.lastLine()),we)}function Ms(e,u,j){var U={canceled:!1,from:u.from,to:u.to,text:u.text,origin:u.origin,cancel:function(){return U.canceled=!0}};return j&&(U.update=function(H,ee,ge,Ce){H&&(U.from=z(e,H)),ee&&(U.to=z(e,ee)),ge&&(U.text=ge),Ce!==void 0&&(U.origin=Ce)}),ht(e,"beforeChange",e,U),e.cm&&ht(e.cm,"beforeChange",e.cm,U),U.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:U.from,to:U.to,text:U.text,origin:U.origin}}function zo(e,u,j){if(e.cm){if(!e.cm.curOp)return Wa(e.cm,zo)(e,u,j);if(e.cm.state.suppressEdits)return}if((We(e,"beforeChange")||e.cm&&We(e.cm,"beforeChange"))&&(u=Ms(e,u,!0),!u))return;var U=ja&&!j&&st(e,u.from,u.to);if(U)for(var H=U.length-1;H>=0;--H)sl(e,{from:U[H].from,to:U[H].to,text:H?[""]:u.text,origin:u.origin});else sl(e,u)}function sl(e,u){if(u.text.length==1&&u.text[0]==""&&An(u.from,u.to)==0)return;var j=Fa(e,u);Qs(e,u,j,e.cm?e.cm.curOp.id:NaN),Vo(e,u,j,oa(e,u));var U=[];Qa(e,function(H,ee){!ee&&fe(U,H.history)==-1&&(dl(H.history,u),U.push(H.history)),Vo(H,u,null,oa(H,u))})}function ys(e,u,j){var U=e.cm&&e.cm.state.suppressEdits;if(U&&!j)return;for(var H=e.history,ee,ge=e.sel,Ce=u=="undo"?H.done:H.undone,Re=u=="undo"?H.undone:H.done,Be=0;Be<Ce.length&&!(ee=Ce[Be],j?ee.ranges&&!ee.equals(e.sel):!ee.ranges);Be++);if(Be==Ce.length)return;for(H.lastOrigin=H.lastSelOrigin=null;;)if(ee=Ce.pop(),ee.ranges){if(ms(ee,Re),j&&!ee.equals(e.sel)){gi(e,ee,{clearRedo:!1});return}ge=ee}else if(U){Ce.push(ee);return}else break;var vt=[];ms(ge,Re),Re.push({changes:vt,generation:H.generation}),H.generation=ee.generation||++H.maxGeneration;for(var Rt=We(e,"beforeChange")||e.cm&&We(e.cm,"beforeChange"),$t=function(Hn){var nr=ee.changes[Hn];if(nr.origin=u,Rt&&!Ms(e,nr,!1))return Ce.length=0,{};vt.push(Ds(e,nr));var xr=Hn?Fa(e,nr):q(Ce);Vo(e,nr,xr,Ps(e,nr)),!Hn&&e.cm&&e.cm.scrollIntoView({from:nr.from,to:Qr(nr)});var kr=[];Qa(e,function(Cr,Vr){!Vr&&fe(kr,Cr.history)==-1&&(dl(Cr.history,nr),kr.push(Cr.history)),Vo(Cr,nr,null,Ps(Cr,nr))})},zt=ee.changes.length-1;zt>=0;--zt){var Tn=$t(zt);if(Tn)return Tn.v}}function ll(e,u){if(u==0)return;if(e.first+=u,e.sel=new hi(me(e.sel.ranges,function(H){return new Da(Zt(H.anchor.line+u,H.anchor.ch),Zt(H.head.line+u,H.head.ch))}),e.sel.primIndex),e.cm){La(e.cm,e.first,e.first-u,u);for(var j=e.cm.display,U=j.viewFrom;U<j.viewTo;U++)Na(e.cm,U,"gutter")}}function Vo(e,u,j,U){if(e.cm&&!e.cm.curOp)return Wa(e.cm,Vo)(e,u,j,U);if(u.to.line<e.first){ll(e,u.text.length-1-(u.to.line-u.from.line));return}if(u.from.line>e.lastLine())return;if(u.from.line<e.first){var H=u.text.length-1-(e.first-u.from.line);ll(e,H),u={from:Zt(e.first,0),to:Zt(u.to.line+H,u.to.ch),text:[q(u.text)],origin:u.origin}}var ee=e.lastLine();u.to.line>ee&&(u={from:u.from,to:Zt(ee,rn(e,ee).text.length),text:[u.text[0]],origin:u.origin}),u.removed=Qn(e,u.from,u.to),j||(j=Fa(e,u)),e.cm?Nl(e.cm,u,U):go(e,u,U),Ko(e,j,we),e.cantEdit&&bs(e,Zt(e.firstLine(),0))&&(e.cantEdit=!1)}function Nl(e,u,j){var U=e.doc,H=e.display,ee=u.from,ge=u.to,Ce=!1,Re=ee.line;e.options.lineWrapping||(Re=$n(nn(rn(U,ee.line))),U.iter(Re,ge.line+1,function(zt){if(zt==H.maxLine)return Ce=!0,!0})),U.sel.contains(u.from,u.to)>-1&&Ye(e),go(U,u,j,ya(e)),e.options.lineWrapping||(U.iter(Re,ee.line+u.text.length,function(zt){var Tn=Sn(zt);Tn>H.maxLineLength&&(H.maxLine=zt,H.maxLineLength=Tn,H.maxLineChanged=!0,Ce=!1)}),Ce&&(e.curOp.updateMaxLine=!0)),za(U,ee.line),ai(e,400);var Be=u.text.length-(ge.line-ee.line)-1;u.full?La(e):ee.line==ge.line&&u.text.length==1&&!Ki(e.doc,u)?Na(e,ee.line,"text"):La(e,ee.line,ge.line+1,Be);var vt=We(e,"changes"),Rt=We(e,"change");if(Rt||vt){var $t={from:ee,to:ge,text:u.text,removed:u.removed,origin:u.origin};Rt&&Jt(e,"change",e,$t),vt&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push($t)}e.display.selForContextMenu=null}function Xo(e,u,j,U,H){var ee;U||(U=j),An(U,j)<0&&(ee=[U,j],j=ee[0],U=ee[1]),typeof u=="string"&&(u=e.splitLines(u)),zo(e,{from:j,to:U,text:u,origin:H})}function ul(e,u,j,U){j<e.line?e.line+=U:u<e.line&&(e.line=u,e.ch=0)}function cl(e,u,j,U){for(var H=0;H<e.length;++H){var ee=e[H],ge=!0;if(ee.ranges){ee.copied||(ee=e[H]=ee.deepCopy(),ee.copied=!0);for(var Ce=0;Ce<ee.ranges.length;Ce++)ul(ee.ranges[Ce].anchor,u,j,U),ul(ee.ranges[Ce].head,u,j,U);continue}for(var Re=0;Re<ee.changes.length;++Re){var Be=ee.changes[Re];if(j<Be.from.line)Be.from=Zt(Be.from.line+U,Be.from.ch),Be.to=Zt(Be.to.line+U,Be.to.ch);else if(u<=Be.to.line){ge=!1;break}}ge||(e.splice(0,H+1),H=0)}}function dl(e,u){var j=u.from.line,U=u.to.line,H=u.text.length-(U-j)-1;cl(e.done,j,U,H),cl(e.undone,j,U,H)}function ts(e,u,j,U){var H=u,ee=u;return typeof u=="number"?ee=rn(e,pe(e,u)):H=$n(u),H==null?null:(U(ee,H)&&e.cm&&Na(e.cm,H,j),ee)}function Do(e){this.lines=e,this.parent=null;for(var u=0,j=0;j<e.length;++j)e[j].parent=this,u+=e[j].height;this.height=u}Do.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,u){for(var j=e,U=e+u;j<U;++j){var H=this.lines[j];this.height-=H.height,qt(H),Jt(H,"delete")}this.lines.splice(e,u)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,u,j){this.height+=j,this.lines=this.lines.slice(0,e).concat(u).concat(this.lines.slice(e));for(var U=0;U<u.length;++U)u[U].parent=this},iterN:function(e,u,j){for(var U=e+u;e<U;++e)if(j(this.lines[e]))return!0}};function Yo(e){this.children=e;for(var u=0,j=0,U=0;U<e.length;++U){var H=e[U];u+=H.chunkSize(),j+=H.height,H.parent=this}this.size=u,this.height=j,this.parent=null}Yo.prototype={chunkSize:function(){return this.size},removeInner:function(e,u){this.size-=u;for(var j=0;j<this.children.length;++j){var U=this.children[j],H=U.chunkSize();if(e<H){var ee=Math.min(u,H-e),ge=U.height;if(U.removeInner(e,ee),this.height-=ge-U.height,H==ee&&(this.children.splice(j--,1),U.parent=null),(u-=ee)==0)break;e=0}else e-=H}if(this.size-u<25&&(this.children.length>1||!(this.children[0]instanceof Do))){var Ce=[];this.collapse(Ce),this.children=[new Do(Ce)],this.children[0].parent=this}},collapse:function(e){for(var u=0;u<this.children.length;++u)this.children[u].collapse(e)},insertInner:function(e,u,j){this.size+=u.length,this.height+=j;for(var U=0;U<this.children.length;++U){var H=this.children[U],ee=H.chunkSize();if(e<=ee){if(H.insertInner(e,u,j),H.lines&&H.lines.length>50){for(var ge=H.lines.length%25+25,Ce=ge;Ce<H.lines.length;){var Re=new Do(H.lines.slice(Ce,Ce+=25));H.height-=Re.height,this.children.splice(++U,0,Re),Re.parent=this}H.lines=H.lines.slice(0,ge),this.maybeSpill()}break}e-=ee}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var u=e.children.splice(e.children.length-5,5),j=new Yo(u);if(e.parent){e.size-=j.size,e.height-=j.height;var H=fe(e.parent.children,e);e.parent.children.splice(H+1,0,j)}else{var U=new Yo(e.children);U.parent=e,e.children=[U,j],e=U}j.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,u,j){for(var U=0;U<this.children.length;++U){var H=this.children[U],ee=H.chunkSize();if(e<ee){var ge=Math.min(u,ee-e);if(H.iterN(e,ge,j))return!0;if((u-=ge)==0)break;e=0}else e-=ee}}};var ns=function(e,u,j){if(j)for(var U in j)j.hasOwnProperty(U)&&(this[U]=j[U]);this.doc=e,this.node=u};ns.prototype.clear=function(){var e=this.doc.cm,u=this.line.widgets,j=this.line,U=$n(j);if(U==null||!u)return;for(var H=0;H<u.length;++H)u[H]==this&&u.splice(H--,1);u.length||(j.widgets=null);var ee=Yr(this);rr(j,Math.max(0,j.height-ee)),e&&(fi(e,function(){fl(e,j,-ee),Na(e,U,"widget")}),Jt(e,"lineWidgetCleared",e,this,U))},ns.prototype.changed=function(){var e=this,u=this.height,j=this.doc.cm,U=this.line;this.height=null;var H=Yr(this)-u;if(!H)return;er(this.doc,U)||rr(U,U.height+H),j&&fi(j,function(){j.curOp.forceUpdate=!0,fl(j,U,H),Jt(j,"lineWidgetChanged",j,e,$n(U))})},Xe(ns);function fl(e,u,j){Br(u)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&co(e,j)}function kl(e,u,j,U){var H=new ns(e,j,U),ee=e.cm;return ee&&H.noHScroll&&(ee.display.alignWidgets=!0),ts(e,u,"widget",function(ge){var Ce=ge.widgets||(ge.widgets=[]);if(H.insertAt==null?Ce.push(H):Ce.splice(Math.min(Ce.length-1,Math.max(0,H.insertAt)),0,H),H.line=ge,ee&&!er(e,ge)){var Re=Br(ge)<e.scrollTop;rr(ge,ge.height+Yr(H)),Re&&co(ee,H.height),ee.curOp.forceUpdate=!0}return!0}),ee&&Jt(ee,"lineWidgetAdded",ee,H,typeof u=="number"?u:$n(u)),H}var hl=0,Gi=function(e,u){this.lines=[],this.type=u,this.doc=e,this.id=++hl};Gi.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,u=e&&!e.curOp;if(u&&Ni(e),We(this,"clear")){var j=this.find();j&&Jt(this,"clear",j.from,j.to)}for(var U=null,H=null,ee=0;ee<this.lines.length;++ee){var ge=this.lines[ee],Ce=ka(ge.markedSpans,this);e&&!this.collapsed?Na(e,$n(ge),"text"):e&&(Ce.to!=null&&(H=$n(ge)),Ce.from!=null&&(U=$n(ge))),ge.markedSpans=li(ge.markedSpans,Ce),Ce.from==null&&this.collapsed&&!er(this.doc,ge)&&e&&rr(ge,Er(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var Re=0;Re<this.lines.length;++Re){var Be=nn(this.lines[Re]),vt=Sn(Be);vt>e.display.maxLineLength&&(e.display.maxLine=Be,e.display.maxLineLength=vt,e.display.maxLineChanged=!0)}U!=null&&e&&this.collapsed&&La(e,U,H+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&rl(e.doc)),e&&Jt(e,"markerCleared",e,this,U,H),u&&qi(e),this.parent&&this.parent.clear()},Gi.prototype.find=function(e,u){e==null&&this.type=="bookmark"&&(e=1);for(var j,U,H=0;H<this.lines.length;++H){var ee=this.lines[H],ge=ka(ee.markedSpans,this);if(ge.from!=null&&(j=Zt(u?ee:$n(ee),ge.from),e==-1))return j;if(ge.to!=null&&(U=Zt(u?ee:$n(ee),ge.to),e==1))return U}return j&&{from:j,to:U}},Gi.prototype.changed=function(){var e=this,u=this.find(-1,!0),j=this,U=this.doc.cm;if(!u||!U)return;fi(U,function(){var H=u.line,ee=$n(u.line),ge=pt(U,ee);if(ge&&(Kn(ge),U.curOp.selectionChanged=U.curOp.forceUpdate=!0),U.curOp.updateMaxLine=!0,!er(j.doc,H)&&j.height!=null){var Ce=j.height;j.height=null;var Re=Yr(j)-Ce;Re&&rr(H,H.height+Re)}Jt(U,"markerChanged",U,e)})},Gi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(!u.maybeHiddenMarkers||fe(u.maybeHiddenMarkers,this)==-1)&&(u.maybeUnhiddenMarkers||(u.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Gi.prototype.detachLine=function(e){if(this.lines.splice(fe(this.lines,e),1),!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(u.maybeHiddenMarkers||(u.maybeHiddenMarkers=[])).push(this)}},Xe(Gi);function Jo(e,u,j,U,H){if(U&&U.shared)return Ul(e,u,j,U,H);if(e.cm&&!e.cm.curOp)return Wa(e.cm,Jo)(e,u,j,U,H);var ee=new Gi(e,H),ge=An(u,j);if(U&&k(U,ee,!1),ge>0||ge==0&&ee.clearWhenEmpty!==!1)return ee;if(ee.replacedWith&&(ee.collapsed=!0,ee.widgetNode=I("span",[ee.replacedWith],"CodeMirror-widget"),U.handleMouseEvents||ee.widgetNode.setAttribute("cm-ignore-events","true"),U.insertLeft&&(ee.widgetNode.insertLeft=!0)),ee.collapsed){if(Dn(e,u.line,u,j,ee)||u.line!=j.line&&Dn(e,j.line,u,j,ee))throw new Error("Inserting collapsed marker partially overlapping an existing one");Sa()}ee.addToHistory&&Qs(e,{from:u,to:j,origin:"markText"},e.sel,NaN);var Ce=u.line,Re=e.cm,Be;if(e.iter(Ce,j.line+1,function(Rt){Re&&ee.collapsed&&!Re.options.lineWrapping&&nn(Rt)==Re.display.maxLine&&(Be=!0),ee.collapsed&&Ce!=u.line&&rr(Rt,0),oi(Rt,new Ja(ee,Ce==u.line?u.ch:null,Ce==j.line?j.ch:null)),++Ce}),ee.collapsed&&e.iter(u.line,j.line+1,function(Rt){er(e,Rt)&&rr(Rt,0)}),ee.clearOnEnter&&Ue(ee,"beforeCursorEnter",function(){return ee.clear()}),ee.readOnly&&(Ha(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),ee.collapsed&&(ee.id=++hl,ee.atomic=!0),Re){if(Be&&(Re.curOp.updateMaxLine=!0),ee.collapsed)La(Re,u.line,j.line+1);else if(ee.className||ee.startStyle||ee.endStyle||ee.css||ee.attributes||ee.title)for(var vt=u.line;vt<=j.line;vt++)Na(Re,vt,"text");ee.atomic&&rl(Re.doc),Jt(Re,"markerAdded",Re,ee)}return ee}var Qo=function(e,u){this.markers=e,this.primary=u;for(var j=0;j<e.length;++j)e[j].parent=this};Qo.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Jt(this,"clear")},Qo.prototype.find=function(e,u){return this.primary.find(e,u)},Xe(Qo);function Ul(e,u,j,U,H){U=k(U),U.shared=!1;var ee=[Jo(e,u,j,U,H)],ge=ee[0],Ce=U.widgetNode;return Qa(e,function(Re){Ce&&(U.widgetNode=Ce.cloneNode(!0)),ee.push(Jo(Re,z(Re,u),z(Re,j),U,H));for(var Be=0;Be<Re.linked.length;++Be)if(Re.linked[Be].isParent)return;ge=q(ee)}),new Qo(ee,ge)}function pl(e){return e.findMarks(Zt(e.first,0),e.clipPos(Zt(e.lastLine())),function(u){return u.parent})}function iu(e,u){for(var j=0;j<u.length;j++){var U=u[j],H=U.find(),ee=e.clipPos(H.from),ge=e.clipPos(H.to);if(An(ee,ge)){var Ce=Jo(e,ee,ge,U.primary,U.primary.type);U.markers.push(Ce),Ce.parent=U}}}function jl(e){for(var u=function(U){var H=e[U],ee=[H.primary.doc];Qa(H.primary.doc,function(Re){return ee.push(Re)});for(var ge=0;ge<H.markers.length;ge++){var Ce=H.markers[ge];fe(ee,Ce.doc)==-1&&(Ce.parent=null,H.markers.splice(ge--,1))}},j=0;j<e.length;j++)u(j)}var Is=0,Oi=function(e,u,j,U,H){if(!(this instanceof Oi))return new Oi(e,u,j,U,H);j==null&&(j=0),Yo.call(this,[new Do([new cn("",null)])]),this.first=j,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=j;var ee=Zt(j,0);this.sel=Sr(ee),this.history=new hs(null),this.id=++Is,this.modeOption=u,this.lineSep=U,this.direction=H=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),go(this,{from:ee,to:ee,text:e}),gi(this,Sr(ee),we)};Oi.prototype=Oe(Yo.prototype,{constructor:Oi,iter:function(e,u,j){j?this.iterN(e-this.first,u-e,j):this.iterN(this.first,this.first+this.size,e)},insert:function(e,u){for(var j=0,U=0;U<u.length;++U)j+=u[U].height;this.insertInner(e-this.first,u,j)},remove:function(e,u){this.removeInner(e-this.first,u)},getValue:function(e){var u=Zn(this,this.first,this.first+this.size);return e===!1?u:u.join(e||this.lineSeparator())},setValue:Xa(function(e){var u=Zt(this.first,0),j=this.first+this.size-1;zo(this,{from:u,to:Zt(j,rn(this,j).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Yi(this.cm,0,0),gi(this,Sr(u),we)}),replaceRange:function(e,u,j,U){u=z(this,u),j=j?z(this,j):u,Xo(this,e,u,j,U)},getRange:function(e,u,j){var U=Qn(this,z(this,e),z(this,u));return j===!1?U:U.join(j||this.lineSeparator())},getLine:function(e){var u=this.getLineHandle(e);return u&&u.text},getLineHandle:function(e){if(pr(this,e))return rn(this,e)},getLineNumber:function(e){return $n(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=rn(this,e)),nn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return z(this,e)},getCursor:function(e){var u=this.sel.primary(),j;return e==null||e=="head"?j=u.head:e=="anchor"?j=u.anchor:e=="end"||e=="to"||e===!1?j=u.to():j=u.from(),j},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Xa(function(e,u,j){el(this,z(this,typeof e=="number"?Zt(e,u||0):e),null,j)}),setSelection:Xa(function(e,u,j){el(this,z(this,e),z(this,u||e),j)}),extendSelection:Xa(function(e,u,j){_s(this,z(this,e),u&&z(this,u),j)}),extendSelections:Xa(function(e,u){$s(this,oe(this,e),u)}),extendSelectionsBy:Xa(function(e,u){var j=me(this.sel.ranges,e);$s(this,oe(this,j),u)}),setSelections:Xa(function(e,u,j){if(!e.length)return;for(var U=[],H=0;H<e.length;H++)U[H]=new Da(z(this,e[H].anchor),z(this,e[H].head));u==null&&(u=Math.min(e.length-1,this.sel.primIndex)),gi(this,ia(this.cm,U,u),j)}),addSelection:Xa(function(e,u,j){var U=this.sel.ranges.slice(0);U.push(new Da(z(this,e),z(this,u||e))),gi(this,ia(this.cm,U,U.length-1),j)}),getSelection:function(e){for(var u=this.sel.ranges,j,U=0;U<u.length;U++){var H=Qn(this,u[U].from(),u[U].to());j=j?j.concat(H):H}return e===!1?j:j.join(e||this.lineSeparator())},getSelections:function(e){for(var u=[],j=this.sel.ranges,U=0;U<j.length;U++){var H=Qn(this,j[U].from(),j[U].to());e!==!1&&(H=H.join(e||this.lineSeparator())),u[U]=H}return u},replaceSelection:function(e,u,j){for(var U=[],H=0;H<this.sel.ranges.length;H++)U[H]=e;this.replaceSelections(U,u,j||"+input")},replaceSelections:Xa(function(e,u,j){for(var U=[],H=this.sel,ee=0;ee<H.ranges.length;ee++){var ge=H.ranges[ee];U[ee]={from:ge.from(),to:ge.to(),text:this.splitLines(e[ee]),origin:j}}for(var Ce=u&&u!="end"&&Pi(this,U,u),Re=U.length-1;Re>=0;Re--)zo(this,U[Re]);Ce?tl(this,Ce):this.cm&&Xi(this.cm)}),undo:Xa(function(){ys(this,"undo")}),redo:Xa(function(){ys(this,"redo")}),undoSelection:Xa(function(){ys(this,"undo",!0)}),redoSelection:Xa(function(){ys(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,u=0,j=0,U=0;U<e.done.length;U++)e.done[U].ranges||++u;for(var H=0;H<e.undone.length;H++)e.undone[H].ranges||++j;return{undo:u,redo:j}},clearHistory:function(){var e=this;this.history=new hs(this.history.maxGeneration),Qa(this,function(u){return u.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ho(this.history.done),undone:Ho(this.history.undone)}},setHistory:function(e){var u=this.history=new hs(this.history.maxGeneration);u.done=Ho(e.done.slice(0),null,!0),u.undone=Ho(e.undone.slice(0),null,!0)},setGutterMarker:Xa(function(e,u,j){return ts(this,e,"gutter",function(U){var H=U.gutterMarkers||(U.gutterMarkers={});return H[u]=j,!j&&te(H)&&(U.gutterMarkers=null),!0})}),clearGutter:Xa(function(e){var u=this;this.iter(function(j){j.gutterMarkers&&j.gutterMarkers[e]&&ts(u,j,"gutter",function(){return j.gutterMarkers[e]=null,te(j.gutterMarkers)&&(j.gutterMarkers=null),!0})})}),lineInfo:function(e){var u;if(typeof e=="number"){if(!pr(this,e))return null;if(u=e,e=rn(this,e),!e)return null}else if(u=$n(e),u==null)return null;return{line:u,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Xa(function(e,u,j){return ts(this,e,u=="gutter"?"gutter":"class",function(U){var H=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass";if(!U[H])U[H]=j;else{if(R(j).test(U[H]))return!1;U[H]+=" "+j}return!0})}),removeLineClass:Xa(function(e,u,j){return ts(this,e,u=="gutter"?"gutter":"class",function(U){var H=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass",ee=U[H];if(ee)if(j==null)U[H]=null;else{var ge=ee.match(R(j));if(!ge)return!1;var Ce=ge.index+ge[0].length;U[H]=ee.slice(0,ge.index)+(!ge.index||Ce==ee.length?"":" ")+ee.slice(Ce)||null}else return!1;return!0})}),addLineWidget:Xa(function(e,u,j){return kl(this,e,u,j)}),removeLineWidget:function(e){e.clear()},markText:function(e,u,j){return Jo(this,z(this,e),z(this,u),j,j&&j.type||"range")},setBookmark:function(e,u){var j={replacedWith:u&&(u.nodeType==null?u.widget:u),insertLeft:u&&u.insertLeft,clearWhenEmpty:!1,shared:u&&u.shared,handleMouseEvents:u&&u.handleMouseEvents};return e=z(this,e),Jo(this,e,e,j,"bookmark")},findMarksAt:function(e){e=z(this,e);var u=[],j=rn(this,e.line).markedSpans;if(j)for(var U=0;U<j.length;++U){var H=j[U];(H.from==null||H.from<=e.ch)&&(H.to==null||H.to>=e.ch)&&u.push(H.marker.parent||H.marker)}return u},findMarks:function(e,u,j){e=z(this,e),u=z(this,u);var U=[],H=e.line;return this.iter(e.line,u.line+1,function(ee){var ge=ee.markedSpans;if(ge)for(var Ce=0;Ce<ge.length;Ce++){var Re=ge[Ce];!(Re.to!=null&&H==e.line&&e.ch>=Re.to||Re.from==null&&H!=e.line||Re.from!=null&&H==u.line&&Re.from>=u.ch)&&(!j||j(Re.marker))&&U.push(Re.marker.parent||Re.marker)}++H}),U},getAllMarks:function(){var e=[];return this.iter(function(u){var j=u.markedSpans;if(j)for(var U=0;U<j.length;++U)j[U].from!=null&&e.push(j[U].marker)}),e},posFromIndex:function(e){var u,j=this.first,U=this.lineSeparator().length;return this.iter(function(H){var ee=H.text.length+U;if(ee>e)return u=e,!0;e-=ee,++j}),z(this,Zt(j,u))},indexFromPos:function(e){e=z(this,e);var u=e.ch;if(e.line<this.first||e.ch<0)return 0;var j=this.lineSeparator().length;return this.iter(this.first,e.line,function(U){u+=U.text.length+j}),u},copy:function(e){var u=new Oi(Zn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return u.scrollTop=this.scrollTop,u.scrollLeft=this.scrollLeft,u.sel=this.sel,u.extend=!1,e&&(u.history.undoDepth=this.history.undoDepth,u.setHistory(this.getHistory())),u},linkedDoc:function(e){e||(e={});var u=this.first,j=this.first+this.size;e.from!=null&&e.from>u&&(u=e.from),e.to!=null&&e.to<j&&(j=e.to);var U=new Oi(Zn(this,u,j),e.mode||this.modeOption,u,this.lineSep,this.direction);return e.sharedHist&&(U.history=this.history),(this.linked||(this.linked=[])).push({doc:U,sharedHist:e.sharedHist}),U.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],iu(U,pl(this)),U},unlinkDoc:function(e){if(e instanceof Ya&&(e=e.doc),this.linked)for(var u=0;u<this.linked.length;++u){var j=this.linked[u];if(j.doc!=e)continue;this.linked.splice(u,1),e.unlinkDoc(this),jl(pl(this));break}if(e.history==this.history){var U=[e.id];Qa(e,function(H){return U.push(H.id)},!0),e.history=new hs(null),e.history.done=Ho(this.history.done,U),e.history.undone=Ho(this.history.undone,U)}},iterLinkedDocs:function(e){Qa(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):je(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Xa(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(u){return u.order=null}),this.cm&&Pl(this.cm)})}),Oi.prototype.eachLine=Oi.prototype.iter;var ml=0;function Bl(e){var u=this;if(Ls(u),_t(u,e)||wa(u.display,e))return;Te(e),T&&(ml=+new Date);var j=Oa(u,e,!0),U=e.dataTransfer.files;if(!j||u.isReadOnly())return;if(U&&U.length&&window.FileReader&&window.File)for(var H=U.length,ee=Array(H),ge=0,Ce=function(){++ge==H&&Wa(u,function(){j=z(u.doc,j);var zt={from:j,to:j,text:u.doc.splitLines(ee.filter(function(Tn){return Tn!=null}).join(u.doc.lineSeparator())),origin:"paste"};zo(u.doc,zt),tl(u.doc,Sr(z(u.doc,j),z(u.doc,Qr(zt))))})()},Re=function(zt,Tn){if(u.options.allowDropFileTypes&&fe(u.options.allowDropFileTypes,zt.type)==-1){Ce();return}var Hn=new FileReader;Hn.onerror=function(){return Ce()},Hn.onload=function(){var nr=Hn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(nr)){Ce();return}ee[Tn]=nr,Ce()},Hn.readAsText(zt)},Be=0;Be<U.length;Be++)Re(U[Be],Be);else{if(u.state.draggingText&&u.doc.sel.contains(j)>-1){u.state.draggingText(e),setTimeout(function(){return u.display.input.focus()},20);return}try{var vt=e.dataTransfer.getData("Text");if(vt){var Rt;if(u.state.draggingText&&!u.state.draggingText.copy&&(Rt=u.listSelections()),Ko(u.doc,Sr(j,j)),Rt)for(var $t=0;$t<Rt.length;++$t)Xo(u.doc,"",Rt[$t].anchor,Rt[$t].head,"drag");u.replaceSelection(vt,"around","paste"),u.display.input.focus()}}catch(zt){}}}function gl(e,u){if(T&&(!e.state.draggingText||+new Date-ml<100)){Ge(u);return}if(_t(e,u)||wa(e.display,u))return;if(u.dataTransfer.setData("Text",e.getSelection()),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage&&!t){var j=O("img",null,null,"position: fixed; left: 0; top: 0;");j.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",c&&(j.width=j.height=1,e.display.wrapper.appendChild(j),j._top=j.offsetTop),u.dataTransfer.setDragImage(j,0,0),c&&j.parentNode.removeChild(j)}}function Fl(e,u){var j=Oa(e,u);if(!j)return;var U=document.createDocumentFragment();Si(e,j,U),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),g(e.display.dragCursor,U)}function Ls(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function vl(e){if(!document.getElementsByClassName)return;for(var u=document.getElementsByClassName("CodeMirror"),j=[],U=0;U<u.length;U++){var H=u[U].CodeMirror;H&&j.push(H)}j.length&&j[0].operation(function(){for(var ee=0;ee<j.length;ee++)e(j[ee])})}var Ns=!1;function ou(){if(Ns)return;ks(),Ns=!0}function ks(){var e;Ue(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,vl(Wl)},100))}),Ue(window,"blur",function(){return vl(no)})}function Wl(e){var u=e.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,e.setSize()}for(var Ro={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},rs=0;rs<10;rs++)Ro[rs+48]=Ro[rs+96]=String(rs);for(var Es=65;Es<=90;Es++)Ro[Es]=String.fromCharCode(Es);for(var as=1;as<=12;as++)Ro[as+111]=Ro[as+63235]="F"+as;var vo={};vo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},vo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},vo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},vo.default=o?vo.macDefault:vo.pcDefault;function Hl(e){var u=e.split(/-(?!$)/);e=u[u.length-1];for(var j,U,H,ee,ge=0;ge<u.length-1;ge++){var Ce=u[ge];if(/^(cmd|meta|m)$/i.test(Ce))ee=!0;else if(/^a(lt)?$/i.test(Ce))j=!0;else if(/^(c|ctrl|control)$/i.test(Ce))U=!0;else if(/^s(hift)?$/i.test(Ce))H=!0;else throw new Error("Unrecognized modifier name: "+Ce)}return j&&(e="Alt-"+e),U&&(e="Ctrl-"+e),ee&&(e="Cmd-"+e),H&&(e="Shift-"+e),e}function _l(e){var u={};for(var j in e)if(e.hasOwnProperty(j)){var U=e[j];if(/^(name|fallthrough|(de|at)tach)$/.test(j))continue;if(U=="..."){delete e[j];continue}for(var H=me(j.split(" "),Hl),ee=0;ee<H.length;ee++){var ge=void 0,Ce=void 0;ee==H.length-1?(Ce=H.join(" "),ge=U):(Ce=H.slice(0,ee+1).join(" "),ge="...");var Re=u[Ce];if(!Re)u[Ce]=ge;else if(Re!=ge)throw new Error("Inconsistent bindings for "+Ce)}delete e[j]}for(var Be in u)e[Be]=u[Be];return e}function _o(e,u,j,U){u=os(u);var H=u.call?u.call(e,U):u[e];if(H===!1)return"nothing";if(H==="...")return"multi";if(H!=null&&j(H))return"handled";if(u.fallthrough){if(Object.prototype.toString.call(u.fallthrough)!="[object Array]")return _o(e,u.fallthrough,j,U);for(var ee=0;ee<u.fallthrough.length;ee++){var ge=_o(e,u.fallthrough[ee],j,U);if(ge)return ge}}}function is(e){var u=typeof e=="string"?e:Ro[e.keyCode];return u=="Ctrl"||u=="Alt"||u=="Shift"||u=="Mod"}function bl(e,u,j){var U=e;return u.altKey&&U!="Alt"&&(e="Alt-"+e),(v?u.metaKey:u.ctrlKey)&&U!="Ctrl"&&(e="Ctrl-"+e),(v?u.ctrlKey:u.metaKey)&&U!="Mod"&&(e="Cmd-"+e),!j&&u.shiftKey&&U!="Shift"&&(e="Shift-"+e),e}function xs(e,u){if(c&&e.keyCode==34&&e.char)return!1;var j=Ro[e.keyCode];return j==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(j=e.code),bl(j,e,u))}function os(e){return typeof e=="string"?vo[e]:e}function Zo(e,u){for(var j=e.doc.sel.ranges,U=[],H=0;H<j.length;H++){for(var ee=u(j[H]);U.length&&An(ee.from,q(U).to)<=0;){var ge=U.pop();if(An(ge.from,ee.from)<0){ee.from=ge.from;break}}U.push(ee)}fi(e,function(){for(var Ce=U.length-1;Ce>=0;Ce--)Xo(e.doc,"",U[Ce].from,U[Ce].to,"+delete");Xi(e)})}function Us(e,u,j){var U=ke(e.text,u+j,j);return U<0||U>e.text.length?null:U}function js(e,u,j){var U=Us(e,u.ch,j);return U==null?null:new Zt(u.line,U,j<0?"after":"before")}function Bs(e,u,j,U,H){if(e){u.doc.direction=="rtl"&&(H=-H);var ee=wt(j,u.doc.direction);if(ee){var ge=H<0?q(ee):ee[0],Ce=H<0==(ge.level==1),Re=Ce?"after":"before",Be;if(ge.level>0||u.doc.direction=="rtl"){var vt=it(u,j);Be=H<0?j.text.length-1:0;var Rt=Lt(u,vt,Be).top;Be=rt(function($t){return Lt(u,vt,$t).top==Rt},H<0==(ge.level==1)?ge.from:ge.to-1,Be),Re=="before"&&(Be=Us(j,Be,1))}else Be=H<0?ge.to:ge.from;return new Zt(U,Be,Re)}}return new Zt(U,H<0?j.text.length:0,H<0?"before":"after")}function Fs(e,u,j,U){var H=wt(u,e.doc.direction);if(!H)return js(u,j,U);j.ch>=u.text.length?(j.ch=u.text.length,j.sticky="before"):j.ch<=0&&(j.ch=0,j.sticky="after");var ee=Et(H,j.ch,j.sticky),ge=H[ee];if(e.doc.direction=="ltr"&&ge.level%2==0&&(U>0?ge.to>j.ch:ge.from<j.ch))return js(u,j,U);var Ce=function(xr,kr){return Us(u,xr instanceof Zt?xr.ch:xr,kr)},Re,Be=function(xr){return e.options.lineWrapping?(Re=Re||it(e,u),gr(e,u,Re,xr)):{begin:0,end:u.text.length}},vt=Be(j.sticky=="before"?Ce(j,-1):j.ch);if(e.doc.direction=="rtl"||ge.level==1){var Rt=ge.level==1==U<0,$t=Ce(j,Rt?1:-1);if($t!=null&&(Rt?$t<=ge.to&&$t<=vt.end:$t>=ge.from&&$t>=vt.begin)){var zt=Rt?"before":"after";return new Zt(j.line,$t,zt)}}var Tn=function(xr,kr,Cr){for(var Vr=function(Va,vi){return vi?new Zt(j.line,Ce(Va,1),"before"):new Zt(j.line,Va,"after")};xr>=0&&xr<H.length;xr+=kr){var aa=H[xr],ea=kr>0==(aa.level!=1),Ca=ea?Cr.begin:Ce(Cr.end,-1);if(aa.from<=Ca&&Ca<aa.to)return Vr(Ca,ea);if(Ca=ea?aa.from:Ce(aa.to,-1),Cr.begin<=Ca&&Ca<Cr.end)return Vr(Ca,ea)}},Hn=Tn(ee+U,U,vt);if(Hn)return Hn;var nr=U>0?vt.end:Ce(vt.begin,-1);return nr!=null&&!(U>0&&nr==u.text.length)&&(Hn=Tn(U>0?0:H.length-1,U,Be(nr)),Hn)?Hn:null}var qo={selectAll:ol,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),we)},killLine:function(e){return Zo(e,function(u){if(u.empty()){var j=rn(e.doc,u.head.line).text.length;return u.head.ch==j&&u.head.line<e.lastLine()?{from:u.head,to:Zt(u.head.line+1,0)}:{from:u.head,to:Zt(u.head.line,j)}}else return{from:u.from(),to:u.to()}})},deleteLine:function(e){return Zo(e,function(u){return{from:Zt(u.from().line,0),to:z(e.doc,Zt(u.to().line+1,0))}})},delLineLeft:function(e){return Zo(e,function(u){return{from:Zt(u.from().line,0),to:u.from()}})},delWrappedLineLeft:function(e){return Zo(e,function(u){var j=e.charCoords(u.head,"div").top+5,U=e.coordsChar({left:0,top:j},"div");return{from:U,to:u.from()}})},delWrappedLineRight:function(e){return Zo(e,function(u){var j=e.charCoords(u.head,"div").top+5,U=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:j},"div");return{from:u.from(),to:U}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(Zt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Zt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(u){return Cs(e,u.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(u){return yl(e,u.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(u){return Ws(e,u.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(u){var j=e.cursorCoords(u.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:j},"div")},be)},goLineLeft:function(e){return e.extendSelectionsBy(function(u){var j=e.cursorCoords(u.head,"div").top+5;return e.coordsChar({left:0,top:j},"div")},be)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(u){var j=e.cursorCoords(u.head,"div").top+5,U=e.coordsChar({left:0,top:j},"div");return U.ch<e.getLine(U.line).search(/\S/)?yl(e,u.head):U},be)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var u=[],j=e.listSelections(),U=e.options.tabSize,H=0;H<j.length;H++){var ee=j[H].from(),ge=G(e.getLine(ee.line),ee.ch,U);u.push(se(U-ge%U))}e.replaceSelections(u)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return fi(e,function(){for(var u=e.listSelections(),j=[],U=0;U<u.length;U++){if(!u[U].empty())continue;var H=u[U].head,ee=rn(e.doc,H.line).text;if(ee){if(H.ch==ee.length&&(H=new Zt(H.line,H.ch-1)),H.ch>0)H=new Zt(H.line,H.ch+1),e.replaceRange(ee.charAt(H.ch-1)+ee.charAt(H.ch-2),Zt(H.line,H.ch-2),H,"+transpose");else if(H.line>e.doc.first){var ge=rn(e.doc,H.line-1).text;ge&&(H=new Zt(H.line,1),e.replaceRange(ee.charAt(0)+e.doc.lineSeparator()+ge.charAt(ge.length-1),Zt(H.line-1,ge.length-1),H,"+transpose"))}}j.push(new Da(H,H))}e.setSelections(j)})},newlineAndIndent:function(e){return fi(e,function(){for(var u=e.listSelections(),j=u.length-1;j>=0;j--)e.replaceRange(e.doc.lineSeparator(),u[j].anchor,u[j].head,"+input");u=e.listSelections();for(var U=0;U<u.length;U++)e.indentLine(u[U].from().line,null,!0);Xi(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Cs(e,u){var j=rn(e.doc,u),U=nn(j);return U!=j&&(u=$n(U)),Bs(!0,e,U,u,1)}function Ws(e,u){var j=rn(e.doc,u),U=Mn(j);return U!=j&&(u=$n(U)),Bs(!0,e,j,u,-1)}function yl(e,u){var j=Cs(e,u.line),U=rn(e.doc,j.line),H=wt(U,e.doc.direction);if(!H||H[0].level==0){var ee=Math.max(j.ch,U.text.search(/\S/)),ge=u.line==j.line&&u.ch<=ee&&u.ch;return Zt(j.line,ge?0:ee,j.sticky)}return j}function Ss(e,u,j){if(typeof u=="string"&&(u=qo[u],!u))return!1;e.display.input.ensurePolled();var U=e.display.shift,H=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),j&&(e.display.shift=!1),H=u(e)!=Ee}finally{e.display.shift=U,e.state.suppressEdits=!1}return H}function Kl(e,u,j){for(var U=0;U<e.state.keyMaps.length;U++){var H=_o(u,e.state.keyMaps[U],j,e);if(H)return H}return e.options.extraKeys&&_o(u,e.options.extraKeys,j,e)||_o(u,e.options.keyMap,j,e)}var Gl=new ne;function ss(e,u,j,U){var H=e.state.keySeq;if(H){if(is(u))return"handled";if(/\'$/.test(u)?e.state.keySeq=null:Gl.set(50,function(){e.state.keySeq==H&&(e.state.keySeq=null,e.display.input.reset())}),Hs(e,H+" "+u,j,U))return!0}return Hs(e,u,j,U)}function Hs(e,u,j,U){var H=Kl(e,u,U);return H=="multi"&&(e.state.keySeq=u),H=="handled"&&Jt(e,"keyHandled",e,u,j),(H=="handled"||H=="multi")&&(Te(j),Za(e)),!!H}function El(e,u){var j=xs(u,!0);return j?u.shiftKey&&!e.state.keySeq?ss(e,"Shift-"+j,u,function(U){return Ss(e,U,!0)})||ss(e,j,u,function(U){if(typeof U=="string"?/^go[A-Z]/.test(U):U.motion)return Ss(e,U)}):ss(e,j,u,function(U){return Ss(e,U)}):!1}function zl(e,u,j){return ss(e,"'"+j+"'",u,function(U){return Ss(e,U,!0)})}var Ks=null;function xl(e){var u=this;if(e.target&&e.target!=u.display.input.getField())return;if(u.curOp.focus=V(),_t(u,e))return;T&&h<11&&e.keyCode==27&&(e.returnValue=!1);var j=e.keyCode;u.display.shift=j==16||e.shiftKey;var U=El(u,e);c&&(Ks=U?j:null,!U&&j==88&&!nt&&(o?e.metaKey:e.ctrlKey)&&u.replaceSelection("",null,"cut")),A&&!o&&!U&&j==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),j==18&&!/\bCodeMirror-crosshair\b/.test(u.display.lineDiv.className)&&Vl(u)}function Vl(e){var u=e.display.lineDiv;F(u,"CodeMirror-crosshair");function j(U){(U.keyCode==18||!U.altKey)&&(E(u,"CodeMirror-crosshair"),jt(document,"keyup",j),jt(document,"mouseover",j))}Ue(document,"keyup",j),Ue(document,"mouseover",j)}function Cl(e){e.keyCode==16&&(this.doc.sel.shift=!1),_t(this,e)}function Sl(e){var u=this;if(e.target&&e.target!=u.display.input.getField())return;if(wa(u.display,e)||_t(u,e)||e.ctrlKey&&!e.altKey||o&&e.metaKey)return;var j=e.keyCode,U=e.charCode;if(c&&j==Ks){Ks=null,Te(e);return}if(c&&(!e.which||e.which<10)&&El(u,e))return;var H=String.fromCharCode(U==null?j:U);if(H=="\b")return;if(zl(u,e,H))return;u.display.input.onKeyPress(e)}var Xl=400,Gs=function(e,u,j){this.time=e,this.pos=u,this.button=j};Gs.prototype.compare=function(e,u,j){return this.time+Xl>e&&An(u,this.pos)==0&&j==this.button};var ls,us;function Yl(e,u){var j=+new Date;return us&&us.compare(j,e,u)?(ls=us=null,"triple"):ls&&ls.compare(j,e,u)?(us=new Gs(j,e,u),ls=null,"double"):(ls=new Gs(j,e,u),us=null,"single")}function zs(e){var u=this,j=u.display;if(_t(u,e)||j.activeTouch&&j.input.supportsTouch())return;if(j.input.ensurePolled(),j.shift=e.shiftKey,wa(j,e)){_||(j.scroller.draggable=!1,setTimeout(function(){return j.scroller.draggable=!0},100));return}if(Xs(u,e))return;var U=Oa(u,e),H=mt(e),ee=U?Yl(U,H):"single";if(window.focus(),H==1&&u.state.selectingText&&u.state.selectingText(e),U&&wl(u,H,U,ee,e))return;H==1?U?Ql(u,U,ee,e):Ze(e)==j.scroller&&Te(e):H==2?(U&&_s(u.doc,U),setTimeout(function(){return j.input.focus()},20)):H==3&&(P?u.display.input.onContextMenu(e):Mo(u))}function wl(e,u,j,U,H){var ee="Click";return U=="double"?ee="Double"+ee:U=="triple"&&(ee="Triple"+ee),ee=(u==1?"Left":u==2?"Middle":"Right")+ee,ss(e,bl(ee,H),H,function(ge){if(typeof ge=="string"&&(ge=qo[ge]),!ge)return!1;var Ce=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Ce=ge(e,j)!=Ee}finally{e.state.suppressEdits=!1}return Ce})}function Jl(e,u,j){var U=e.getOption("configureMouse"),H=U?U(e,u,j):{};if(H.unit==null){var ee=m?j.shiftKey&&j.metaKey:j.altKey;H.unit=ee?"rectangle":u=="single"?"char":u=="double"?"word":"line"}return(H.extend==null||e.doc.extend)&&(H.extend=e.doc.extend||j.shiftKey),H.addNew==null&&(H.addNew=o?j.metaKey:j.ctrlKey),H.moveOnDrag==null&&(H.moveOnDrag=!(o?j.altKey:j.ctrlKey)),H}function Ql(e,u,j,U){T?setTimeout(B(to,e),0):e.curOp.focus=V();var H=Jl(e,j,U),ee=e.doc.sel,ge;e.options.dragDrop&&Pt&&!e.isReadOnly()&&j=="single"&&(ge=ee.contains(u))>-1&&(An((ge=ee.ranges[ge]).from(),u)<0||u.xRel>0)&&(An(ge.to(),u)>0||u.xRel<0)?Zl(e,U,u,H):ql(e,U,u,H)}function Zl(e,u,j,U){var H=e.display,ee=!1,ge=Wa(e,function(Be){_&&(H.scroller.draggable=!1),e.state.draggingText=!1,jt(H.wrapper.ownerDocument,"mouseup",ge),jt(H.wrapper.ownerDocument,"mousemove",Ce),jt(H.scroller,"dragstart",Re),jt(H.scroller,"drop",ge),ee||(Te(Be),U.addNew||_s(e.doc,j,null,null,U.extend),_&&!t||T&&h==9?setTimeout(function(){H.wrapper.ownerDocument.body.focus({preventScroll:!0}),H.input.focus()},20):H.input.focus())}),Ce=function(Be){ee=ee||Math.abs(u.clientX-Be.clientX)+Math.abs(u.clientY-Be.clientY)>=10},Re=function(){return ee=!0};_&&(H.scroller.draggable=!0),e.state.draggingText=ge,ge.copy=!U.moveOnDrag,H.scroller.dragDrop&&H.scroller.dragDrop(),Ue(H.wrapper.ownerDocument,"mouseup",ge),Ue(H.wrapper.ownerDocument,"mousemove",Ce),Ue(H.scroller,"dragstart",Re),Ue(H.scroller,"drop",ge),Mo(e),setTimeout(function(){return H.input.focus()},20)}function Vs(e,u,j){if(j=="char")return new Da(u,u);if(j=="word")return e.findWordAt(u);if(j=="line")return new Da(Zt(u.line,0),z(e.doc,Zt(u.line+1,0)));var U=j(e,u);return new Da(U.from,U.to)}function ql(e,u,j,U){var H=e.display,ee=e.doc;Te(u);var ge,Ce,Re=ee.sel,Be=Re.ranges;if(U.addNew&&!U.extend?(Ce=ee.sel.contains(j),Ce>-1?ge=Be[Ce]:ge=new Da(j,j)):(ge=ee.sel.primary(),Ce=ee.sel.primIndex),U.unit=="rectangle")U.addNew||(ge=new Da(j,j)),j=Oa(e,u,!0,!0),Ce=-1;else{var vt=Vs(e,j,U.unit);U.extend?ge=vs(ge,vt.anchor,vt.head,U.extend):ge=vt}U.addNew?Ce==-1?(Ce=Be.length,gi(ee,ia(e,Be.concat([ge]),Ce),{scroll:!1,origin:"*mouse"})):Be.length>1&&Be[Ce].empty()&&U.unit=="char"&&!U.extend?(gi(ee,ia(e,Be.slice(0,Ce).concat(Be.slice(Ce+1)),0),{scroll:!1,origin:"*mouse"}),Re=ee.sel):Ao(ee,Ce,ge,ce):(Ce=0,gi(ee,new hi([ge],0),ce),Re=ee.sel);var Rt=j;function $t(Cr){if(An(Rt,Cr)==0)return;if(Rt=Cr,U.unit=="rectangle"){for(var Vr=[],aa=e.options.tabSize,ea=G(rn(ee,j.line).text,j.ch,aa),Ca=G(rn(ee,Cr.line).text,Cr.ch,aa),Va=Math.min(ea,Ca),vi=Math.max(ea,Ca),ti=Math.min(j.line,Cr.line),zi=Math.min(e.lastLine(),Math.max(j.line,Cr.line));ti<=zi;ti++){var Ui=rn(ee,ti).text,ci=ve(Ui,Va,aa);Va==vi?Vr.push(new Da(Zt(ti,ci),Zt(ti,ci))):Ui.length>ci&&Vr.push(new Da(Zt(ti,ci),Zt(ti,ve(Ui,vi,aa))))}Vr.length||Vr.push(new Da(j,j)),gi(ee,ia(e,Re.ranges.slice(0,Ce).concat(Vr),Ce),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Cr)}else{var ji=ge,Ci=Vs(e,Cr,U.unit),pi=ji.anchor,di;An(Ci.anchor,pi)>0?(di=Ci.head,pi=Un(ji.from(),Ci.anchor)):(di=Ci.anchor,pi=qn(ji.to(),Ci.head));var ii=Re.ranges.slice(0);ii[Ce]=$l(e,new Da(z(ee,pi),di)),gi(ee,ia(e,ii,Ce),ce)}}var zt=H.wrapper.getBoundingClientRect(),Tn=0;function Hn(Cr){var Vr=++Tn,aa=Oa(e,Cr,!0,U.unit=="rectangle");if(!aa)return;if(An(aa,Rt)!=0){e.curOp.focus=V(),$t(aa);var ea=uo(H,ee);(aa.line>=ea.to||aa.line<ea.from)&&setTimeout(Wa(e,function(){Tn==Vr&&Hn(Cr)}),150)}else{var Ca=Cr.clientY<zt.top?-20:Cr.clientY>zt.bottom?20:0;Ca&&setTimeout(Wa(e,function(){if(Tn!=Vr)return;H.scroller.scrollTop+=Ca,Hn(Cr)}),50)}}function nr(Cr){e.state.selectingText=!1,Tn=Infinity,Cr&&(Te(Cr),H.input.focus()),jt(H.wrapper.ownerDocument,"mousemove",xr),jt(H.wrapper.ownerDocument,"mouseup",kr),ee.history.lastSelOrigin=null}var xr=Wa(e,function(Cr){Cr.buttons===0||!mt(Cr)?nr(Cr):Hn(Cr)}),kr=Wa(e,nr);e.state.selectingText=kr,Ue(H.wrapper.ownerDocument,"mousemove",xr),Ue(H.wrapper.ownerDocument,"mouseup",kr)}function $l(e,u){var j=u.anchor,U=u.head,H=rn(e.doc,j.line);if(An(j,U)==0&&j.sticky==U.sticky)return u;var ee=wt(H);if(!ee)return u;var ge=Et(ee,j.ch,j.sticky),Ce=ee[ge];if(Ce.from!=j.ch&&Ce.to!=j.ch)return u;var Re=ge+(Ce.from==j.ch==(Ce.level!=1)?0:1);if(Re==0||Re==ee.length)return u;var Be;if(U.line!=j.line)Be=(U.line-j.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var vt=Et(ee,U.ch,U.sticky),Rt=vt-ge||(U.ch-j.ch)*(Ce.level==1?-1:1);vt==Re-1||vt==Re?Be=Rt<0:Be=Rt>0}var $t=ee[Re+(Be?-1:0)],zt=Be==($t.level==1),Tn=zt?$t.from:$t.to,Hn=zt?"after":"before";return j.ch==Tn&&j.sticky==Hn?u:new Da(new Zt(j.line,Tn,Hn),U)}function Ol(e,u,j,U){var H,ee;if(u.touches)H=u.touches[0].clientX,ee=u.touches[0].clientY;else try{H=u.clientX,ee=u.clientY}catch($t){return!1}if(H>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;U&&Te(u);var ge=e.display,Ce=ge.lineDiv.getBoundingClientRect();if(ee>Ce.bottom||!We(e,j))return Ve(u);ee-=Ce.top-ge.viewOffset;for(var Re=0;Re<e.display.gutterSpecs.length;++Re){var Be=ge.gutters.childNodes[Re];if(Be&&Be.getBoundingClientRect().right>=H){var vt=Ar(e.doc,ee),Rt=e.display.gutterSpecs[Re];return ht(e,j,e,vt,Rt.className,u),Ve(u)}}}function Xs(e,u){return Ol(e,u,"gutterClick",!0)}function Tl(e,u){if(wa(e.display,u)||Al(e,u))return;if(_t(e,u,"contextmenu"))return;P||e.display.input.onContextMenu(u)}function Al(e,u){return We(e,"gutterContextMenu")?Ol(e,u,"gutterContextMenu",!1):!1}function Dl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ur(e)}var $o={toString:function(){return"CodeMirror.Init"}},ws={},cs={};function eu(e){var u=e.optionHandlers;function j(U,H,ee,ge){e.defaults[U]=H,ee&&(u[U]=ge?function(Ce,Re,Be){Be!=$o&&ee(Ce,Re,Be)}:ee)}e.defineOption=j,e.Init=$o,j("value","",function(U,H){return U.setValue(H)},!0),j("mode",null,function(U,H){U.doc.modeOption=H,$a(U)},!0),j("indentUnit",2,$a,!0),j("indentWithTabs",!1),j("smartIndent",!0),j("tabSize",4,function(U){xi(U),Ur(U),La(U)},!0),j("lineSeparator",null,function(U,H){if(U.doc.lineSep=H,!H)return;var ee=[],ge=U.doc.first;U.doc.iter(function(Re){for(var Be=0;;){var vt=Re.text.indexOf(H,Be);if(vt==-1)break;Be=vt+H.length,ee.push(Zt(ge,vt))}ge++});for(var Ce=ee.length-1;Ce>=0;Ce--)Xo(U.doc,H,ee[Ce],Zt(ee[Ce].line,ee[Ce].ch+H.length))}),j("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(U,H,ee){U.state.specialChars=new RegExp(H.source+(H.test(" ")?"":"| "),"g"),ee!=$o&&U.refresh()}),j("specialCharPlaceholder",ur,function(U){return U.refresh()},!0),j("electricChars",!0),j("inputStyle",l?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),j("spellcheck",!1,function(U,H){return U.getInputField().spellcheck=H},!0),j("autocorrect",!1,function(U,H){return U.getInputField().autocorrect=H},!0),j("autocapitalize",!1,function(U,H){return U.getInputField().autocapitalize=H},!0),j("rtlMoveVisually",!w),j("wholeLineUpdateBefore",!0),j("theme","default",function(U){Dl(U),ki(U)},!0),j("keyMap","default",function(U,H,ee){var ge=os(H),Ce=ee!=$o&&os(ee);Ce&&Ce.detach&&Ce.detach(U,ge),ge.attach&&ge.attach(U,Ce||null)}),j("extraKeys",null),j("configureMouse",null),j("lineWrapping",!1,nu,!0),j("gutters",[],function(U,H){U.display.gutterSpecs=ui(H,U.options.lineNumbers),ki(U)},!0),j("fixedGutter",!0,function(U,H){U.display.gutters.style.left=H?da(U.display)+"px":"0",U.refresh()},!0),j("coverGutterNextToScrollbar",!1,function(U){return Ri(U)},!0),j("scrollbarStyle","native",function(U){Co(U),Ri(U),U.display.scrollbars.setScrollTop(U.doc.scrollTop),U.display.scrollbars.setScrollLeft(U.doc.scrollLeft)},!0),j("lineNumbers",!1,function(U,H){U.display.gutterSpecs=ui(U.options.gutters,H),ki(U)},!0),j("firstLineNumber",1,ki,!0),j("lineNumberFormatter",function(U){return U},ki,!0),j("showCursorWhenSelecting",!1,Ia,!0),j("resetSelectionOnContextMenu",!0),j("lineWiseCopyCut",!0),j("pasteLinesPerSelection",!0),j("selectionsMayTouch",!1),j("readOnly",!1,function(U,H){H=="nocursor"&&(no(U),U.display.input.blur()),U.display.input.readOnlyChanged(H)}),j("screenReaderLabel",null,function(U,H){H=H===""?null:H,U.display.input.screenReaderLabelChanged(H)}),j("disableInput",!1,function(U,H){H||U.display.input.reset()},!0),j("dragDrop",!0,tu),j("allowDropFileTypes",null),j("cursorBlinkRate",530),j("cursorScrollMargin",0),j("cursorHeight",1,Ia,!0),j("singleCursorHeightPerLine",!0,Ia,!0),j("workTime",100),j("workDelay",100),j("flattenSpans",!0,xi,!0),j("addModeClass",!1,xi,!0),j("pollInterval",100),j("undoDepth",200,function(U,H){return U.doc.history.undoDepth=H}),j("historyEventDelay",1250),j("viewportMargin",10,function(U){return U.refresh()},!0),j("maxHighlightLength",1e4,xi,!0),j("moveInputWithCursor",!0,function(U,H){H||U.display.input.resetPosition()}),j("tabindex",null,function(U,H){return U.display.input.getField().tabIndex=H||""}),j("autofocus",null),j("direction","ltr",function(U,H){return U.doc.setDirection(H)},!0),j("phrases",null)}function tu(e,u,j){var U=j&&j!=$o;if(!u!=!U){var H=e.display.dragFunctions,ee=u?Ue:jt;ee(e.display.scroller,"dragstart",H.start),ee(e.display.scroller,"dragenter",H.enter),ee(e.display.scroller,"dragover",H.over),ee(e.display.scroller,"dragleave",H.leave),ee(e.display.scroller,"drop",H.drop)}}function nu(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(E(e.display.wrapper,"CodeMirror-wrap"),Yt(e)),_a(e),La(e),Ur(e),setTimeout(function(){return Ri(e)},100)}function Ya(e,u){var j=this;if(!(this instanceof Ya))return new Ya(e,u);this.options=u=u?k(u):{},k(ws,u,!1);var U=u.value;typeof U=="string"?U=new Oi(U,u.mode,null,u.lineSeparator,u.direction):u.mode&&(U.modeOption=u.mode),this.doc=U;var H=new Ya.inputStyles[u.inputStyle](this),ee=this.display=new ho(e,U,H,u);ee.wrapper.CodeMirror=this,Dl(this),u.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Co(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ne,keySeq:null,specialChars:null},u.autofocus&&!l&&ee.input.focus(),T&&h<11&&setTimeout(function(){return j.display.input.reset(!0)},20),Rl(this),ou(),Ni(this),this.curOp.forceUpdate=!0,As(this,U),u.autofocus&&!l||this.hasFocus()?setTimeout(function(){j.hasFocus()&&!j.state.focused&&Ii(j)},20):no(this);for(var ge in cs)cs.hasOwnProperty(ge)&&cs[ge](this,u[ge],$o);Ka(this),u.finishInit&&u.finishInit(this);for(var Ce=0;Ce<X.length;++Ce)X[Ce](this);qi(this),_&&u.lineWrapping&&getComputedStyle(ee.lineDiv).textRendering=="optimizelegibility"&&(ee.lineDiv.style.textRendering="auto")}Ya.defaults=ws,Ya.optionHandlers=cs;function Rl(e){var u=e.display;Ue(u.scroller,"mousedown",Wa(e,zs)),T&&h<11?Ue(u.scroller,"dblclick",Wa(e,function(Re){if(_t(e,Re))return;var Be=Oa(e,Re);if(!Be||Xs(e,Re)||wa(e.display,Re))return;Te(Re);var vt=e.findWordAt(Be);_s(e.doc,vt.anchor,vt.head)})):Ue(u.scroller,"dblclick",function(Re){return _t(e,Re)||Te(Re)}),Ue(u.scroller,"contextmenu",function(Re){return Tl(e,Re)}),Ue(u.input.getField(),"contextmenu",function(Re){u.scroller.contains(Re.target)||Tl(e,Re)});var j,U={end:0};function H(){u.activeTouch&&(j=setTimeout(function(){return u.activeTouch=null},1e3),U=u.activeTouch,U.end=+new Date)}function ee(Re){if(Re.touches.length!=1)return!1;var Be=Re.touches[0];return Be.radiusX<=1&&Be.radiusY<=1}function ge(Re,Be){if(Be.left==null)return!0;var vt=Be.left-Re.left,Rt=Be.top-Re.top;return vt*vt+Rt*Rt>20*20}Ue(u.scroller,"touchstart",function(Re){if(!_t(e,Re)&&!ee(Re)&&!Xs(e,Re)){u.input.ensurePolled(),clearTimeout(j);var Be=+new Date;u.activeTouch={start:Be,moved:!1,prev:Be-U.end<=300?U:null},Re.touches.length==1&&(u.activeTouch.left=Re.touches[0].pageX,u.activeTouch.top=Re.touches[0].pageY)}}),Ue(u.scroller,"touchmove",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),Ue(u.scroller,"touchend",function(Re){var Be=u.activeTouch;if(Be&&!wa(u,Re)&&Be.left!=null&&!Be.moved&&new Date-Be.start<300){var vt=e.coordsChar(u.activeTouch,"page"),Rt;!Be.prev||ge(Be,Be.prev)?Rt=new Da(vt,vt):!Be.prev.prev||ge(Be,Be.prev.prev)?Rt=e.findWordAt(vt):Rt=new Da(Zt(vt.line,0),z(e.doc,Zt(vt.line+1,0))),e.setSelection(Rt.anchor,Rt.head),e.focus(),Te(Re)}H()}),Ue(u.scroller,"touchcancel",H),Ue(u.scroller,"scroll",function(){u.scroller.clientHeight&&(Ji(e,u.scroller.scrollTop),ei(e,u.scroller.scrollLeft,!0),ht(e,"scroll",e))}),Ue(u.scroller,"mousewheel",function(Re){return mo(e,Re)}),Ue(u.scroller,"DOMMouseScroll",function(Re){return mo(e,Re)}),Ue(u.wrapper,"scroll",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(Re){_t(e,Re)||Ge(Re)},over:function(Re){_t(e,Re)||(Fl(e,Re),Ge(Re))},start:function(Re){return gl(e,Re)},drop:Wa(e,Bl),leave:function(Re){_t(e,Re)||Ls(e)}};var Ce=u.input.getField();Ue(Ce,"keyup",function(Re){return Cl.call(e,Re)}),Ue(Ce,"keydown",Wa(e,xl)),Ue(Ce,"keypress",Wa(e,Sl)),Ue(Ce,"focus",function(Re){return Ii(e,Re)}),Ue(Ce,"blur",function(Re){return no(e,Re)})}var X=[];Ya.defineInitHook=function(e){return X.push(e)};function Q(e,u,j,U){var H=e.doc,ee;j==null&&(j="add"),j=="smart"&&(H.mode.indent?ee=Nn(e,u).state:j="prev");var ge=e.options.tabSize,Ce=rn(H,u),Re=G(Ce.text,null,ge);Ce.stateAfter&&(Ce.stateAfter=null);var Be=Ce.text.match(/^\s*/)[0],vt;if(!U&&!/\S/.test(Ce.text))vt=0,j="not";else if(j=="smart"&&(vt=H.mode.indent(ee,Ce.text.slice(Be.length),Ce.text),vt==Ee||vt>150)){if(!U)return;j="prev"}j=="prev"?u>H.first?vt=G(rn(H,u-1).text,null,ge):vt=0:j=="add"?vt=Re+e.options.indentUnit:j=="subtract"?vt=Re-e.options.indentUnit:typeof j=="number"&&(vt=Re+j),vt=Math.max(0,vt);var Rt="",$t=0;if(e.options.indentWithTabs)for(var zt=Math.floor(vt/ge);zt;--zt)$t+=ge,Rt+=" ";if($t<vt&&(Rt+=se(vt-$t)),Rt!=Be)return Xo(H,Rt,Zt(u,0),Zt(u,Be.length),"+input"),Ce.stateAfter=null,!0;for(var Tn=0;Tn<H.sel.ranges.length;Tn++){var Hn=H.sel.ranges[Tn];if(Hn.head.line==u&&Hn.head.ch<Be.length){var nr=Zt(u,Be.length);Ao(H,Tn,new Da(nr,nr));break}}}var ae=null;function _e(e){ae=e}function Le(e,u,j,U,H){var ee=e.doc;e.display.shift=!1,U||(U=ee.sel);var ge=+new Date-200,Ce=H=="paste"||e.state.pasteIncoming>ge,Re=je(u),Be=null;if(Ce&&U.ranges.length>1)if(ae&&ae.text.join(`
`)==u){if(U.ranges.length%ae.text.length==0){Be=[];for(var vt=0;vt<ae.text.length;vt++)Be.push(ee.splitLines(ae.text[vt]))}}else Re.length==U.ranges.length&&e.options.pasteLinesPerSelection&&(Be=me(Re,function(xr){return[xr]}));for(var Rt=e.curOp.updateInput,$t=U.ranges.length-1;$t>=0;$t--){var zt=U.ranges[$t],Tn=zt.from(),Hn=zt.to();zt.empty()&&(j&&j>0?Tn=Zt(Tn.line,Tn.ch-j):e.state.overwrite&&!Ce?Hn=Zt(Hn.line,Math.min(rn(ee,Hn.line).text.length,Hn.ch+q(Re).length)):Ce&&ae&&ae.lineWise&&ae.text.join(`
`)==Re.join(`
`)&&(Tn=Hn=Zt(Tn.line,0)));var nr={from:Tn,to:Hn,text:Be?Be[$t%Be.length]:Re,origin:H||(Ce?"paste":e.state.cutIncoming>ge?"cut":"+input")};zo(e.doc,nr),Jt(e,"inputRead",e,nr)}u&&!Ce&&He(e,u),Xi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Rt),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ne(e,u){var j=e.clipboardData&&e.clipboardData.getData("Text");if(j)return e.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&fi(u,function(){return Le(u,j,0,null,"paste")}),!0}function He(e,u){if(!e.options.electricChars||!e.options.smartIndent)return;for(var j=e.doc.sel,U=j.ranges.length-1;U>=0;U--){var H=j.ranges[U];if(H.head.ch>100||U&&j.ranges[U-1].head.line==H.head.line)continue;var ee=e.getModeAt(H.head),ge=!1;if(ee.electricChars){for(var Ce=0;Ce<ee.electricChars.length;Ce++)if(u.indexOf(ee.electricChars.charAt(Ce))>-1){ge=Q(e,H.head.line,"smart");break}}else ee.electricInput&&(ee.electricInput.test(rn(e.doc,H.head.line).text.slice(0,H.head.ch))&&(ge=Q(e,H.head.line,"smart")));ge&&Jt(e,"electricInput",e,H.head.line)}}function Ke(e){for(var u=[],j=[],U=0;U<e.doc.sel.ranges.length;U++){var H=e.doc.sel.ranges[U].head.line,ee={anchor:Zt(H,0),head:Zt(H+1,0)};j.push(ee),u.push(e.getRange(ee.anchor,ee.head))}return{text:u,ranges:j}}function St(e,u,j,U){e.setAttribute("autocorrect",j?"":"off"),e.setAttribute("autocapitalize",U?"":"off"),e.setAttribute("spellcheck",!!u)}function Bt(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),u=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _?e.style.width="1000px":e.setAttribute("wrap","off"),i&&(e.style.border="1px solid black"),St(e),u}function Ft(e){var u=e.optionHandlers,j=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(U,H){var ee=this.options,ge=ee[U];if(ee[U]==H&&U!="mode")return;ee[U]=H,u.hasOwnProperty(U)&&Wa(this,u[U])(this,H,ge),ht(this,"optionChange",this,U)},getOption:function(U){return this.options[U]},getDoc:function(){return this.doc},addKeyMap:function(U,H){this.state.keyMaps[H?"push":"unshift"](os(U))},removeKeyMap:function(U){for(var H=this.state.keyMaps,ee=0;ee<H.length;++ee)if(H[ee]==U||H[ee].name==U)return H.splice(ee,1),!0},addOverlay:ri(function(U,H){var ee=U.token?U:e.getMode(this.options,U);if(ee.startState)throw new Error("Overlays may not be stateful.");re(this.state.overlays,{mode:ee,modeSpec:U,opaque:H&&H.opaque,priority:H&&H.priority||0},function(ge){return ge.priority}),this.state.modeGen++,La(this)}),removeOverlay:ri(function(U){for(var H=this.state.overlays,ee=0;ee<H.length;++ee){var ge=H[ee].modeSpec;if(ge==U||typeof U=="string"&&ge.name==U){H.splice(ee,1),this.state.modeGen++,La(this);return}}}),indentLine:ri(function(U,H,ee){typeof H!="string"&&typeof H!="number"&&(H==null?H=this.options.smartIndent?"smart":"prev":H=H?"add":"subtract"),pr(this.doc,U)&&Q(this,U,H,ee)}),indentSelection:ri(function(U){for(var H=this.doc.sel.ranges,ee=-1,ge=0;ge<H.length;ge++){var Ce=H[ge];if(Ce.empty())Ce.head.line>ee&&(Q(this,Ce.head.line,U,!0),ee=Ce.head.line,ge==this.doc.sel.primIndex&&Xi(this));else{var Re=Ce.from(),Be=Ce.to(),vt=Math.max(ee,Re.line);ee=Math.min(this.lastLine(),Be.line-(Be.ch?0:1))+1;for(var Rt=vt;Rt<ee;++Rt)Q(this,Rt,U);var $t=this.doc.sel.ranges;Re.ch==0&&H.length==$t.length&&$t[ge].from().ch>0&&Ao(this.doc,ge,new Da(Re,$t[ge].to()),we)}}}),getTokenAt:function(U,H){return $r(this,U,H)},getLineTokens:function(U,H){return $r(this,Zt(U),H,!0)},getTokenTypeAt:function(U){U=z(this.doc,U);var H=an(this,rn(this.doc,U.line)),ee=0,ge=(H.length-1)/2,Ce=U.ch,Re;if(Ce==0)Re=H[2];else for(;;){var Be=ee+ge>>1;if((Be?H[Be*2-1]:0)>=Ce)ge=Be;else if(H[Be*2+1]<Ce)ee=Be+1;else{Re=H[Be*2+2];break}}var vt=Re?Re.indexOf("overlay "):-1;return vt<0?Re:vt==0?null:Re.slice(0,vt-1)},getModeAt:function(U){var H=this.doc.mode;return H.innerMode?e.innerMode(H,this.getTokenAt(U).state).mode:H},getHelper:function(U,H){return this.getHelpers(U,H)[0]},getHelpers:function(U,H){var ee=[];if(!j.hasOwnProperty(H))return ee;var ge=j[H],Ce=this.getModeAt(U);if(typeof Ce[H]=="string")ge[Ce[H]]&&ee.push(ge[Ce[H]]);else if(Ce[H])for(var Re=0;Re<Ce[H].length;Re++){var Be=ge[Ce[H][Re]];Be&&ee.push(Be)}else Ce.helperType&&ge[Ce.helperType]?ee.push(ge[Ce.helperType]):ge[Ce.name]&&ee.push(ge[Ce.name]);for(var vt=0;vt<ge._global.length;vt++){var Rt=ge._global[vt];Rt.pred(Ce,this)&&fe(ee,Rt.val)==-1&&ee.push(Rt.val)}return ee},getStateAfter:function(U,H){var ee=this.doc;return U=pe(ee,U==null?ee.first+ee.size-1:U),Nn(this,U+1,H).state},cursorCoords:function(U,H){var ee,ge=this.doc.sel.primary();return U==null?ee=ge.head:typeof U=="object"?ee=z(this.doc,U):ee=U?ge.from():ge.to(),Vn(this,ee,H||"page")},charCoords:function(U,H){return Or(this,z(this.doc,U),H||"page")},coordsChar:function(U,H){return U=zn(this,U,H||"page"),zr(this,U.left,U.top)},lineAtHeight:function(U,H){return U=zn(this,{top:U,left:0},H||"page").top,Ar(this.doc,U+this.display.viewOffset)},heightAtLine:function(U,H,ee){var ge=!1,Ce;if(typeof U=="number"){var Re=this.doc.first+this.doc.size-1;U<this.doc.first?U=this.doc.first:U>Re&&(U=Re,ge=!0),Ce=rn(this.doc,U)}else Ce=U;return ta(this,Ce,{top:0,left:0},H||"page",ee||ge).top+(ge?this.doc.height-Br(Ce):0)},defaultTextHeight:function(){return Er(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(U,H,ee,ge,Ce){var Re=this.display;U=Vn(this,z(this.doc,U));var Be=U.bottom,vt=U.left;if(H.style.position="absolute",H.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(H),Re.sizer.appendChild(H),ge=="over")Be=U.top;else if(ge=="above"||ge=="near"){var Rt=Math.max(Re.wrapper.clientHeight,this.doc.height),$t=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||U.bottom+H.offsetHeight>Rt)&&U.top>H.offsetHeight?Be=U.top-H.offsetHeight:U.bottom+H.offsetHeight<=Rt&&(Be=U.bottom),vt+H.offsetWidth>$t&&(vt=$t-H.offsetWidth)}H.style.top=Be+"px",H.style.left=H.style.right="",Ce=="right"?(vt=Re.sizer.clientWidth-H.offsetWidth,H.style.right="0px"):(Ce=="left"?vt=0:Ce=="middle"&&(vt=(Re.sizer.clientWidth-H.offsetWidth)/2),H.style.left=vt+"px"),ee&&bo(this,{left:vt,top:Be,right:vt+H.offsetWidth,bottom:Be+H.offsetHeight})},triggerOnKeyDown:ri(xl),triggerOnKeyPress:ri(Sl),triggerOnKeyUp:Cl,triggerOnMouseDown:ri(zs),execCommand:function(U){if(qo.hasOwnProperty(U))return qo[U].call(null,this)},triggerElectric:ri(function(U){He(this,U)}),findPosH:function(U,H,ee,ge){var Ce=1;H<0&&(Ce=-1,H=-H);for(var Re=z(this.doc,U),Be=0;Be<H&&!(Re=Dt(this.doc,Re,Ce,ee,ge),Re.hitSide);++Be);return Re},moveH:ri(function(U,H){var ee=this;this.extendSelectionsBy(function(ge){return ee.display.shift||ee.doc.extend||ge.empty()?Dt(ee.doc,ge.head,U,H,ee.options.rtlMoveVisually):U<0?ge.from():ge.to()},be)}),deleteH:ri(function(U,H){var ee=this.doc.sel,ge=this.doc;ee.somethingSelected()?ge.replaceSelection("",null,"+delete"):Zo(this,function(Ce){var Re=Dt(ge,Ce.head,U,H,!1);return U<0?{from:Re,to:Ce.head}:{from:Ce.head,to:Re}})}),findPosV:function(U,H,ee,ge){var Ce=1,Re=ge;H<0&&(Ce=-1,H=-H);for(var Be=z(this.doc,U),vt=0;vt<H;++vt){var Rt=Vn(this,Be,"div");if(Re==null?Re=Rt.left:Rt.left=Re,Be=Ot(this,Rt,Ce,ee),Be.hitSide)break}return Be},moveV:ri(function(U,H){var ee=this,ge=this.doc,Ce=[],Re=!this.display.shift&&!ge.extend&&ge.sel.somethingSelected();if(ge.extendSelectionsBy(function(vt){if(Re)return U<0?vt.from():vt.to();var Rt=Vn(ee,vt.head,"div");vt.goalColumn!=null&&(Rt.left=vt.goalColumn),Ce.push(Rt.left);var $t=Ot(ee,Rt,U,H);return H=="page"&&vt==ge.sel.primary()&&co(ee,Or(ee,$t,"div").top-Rt.top),$t},be),Ce.length)for(var Be=0;Be<ge.sel.ranges.length;Be++)ge.sel.ranges[Be].goalColumn=Ce[Be]}),findWordAt:function(U){var H=this.doc,ee=rn(H,U.line).text,ge=U.ch,Ce=U.ch;if(ee){var Re=this.getHelper(U,"wordChars");(U.sticky=="before"||Ce==ee.length)&&ge?--ge:++Ce;for(var Be=ee.charAt(ge),vt=J(Be,Re)?function(Rt){return J(Rt,Re)}:/\s/.test(Be)?function(Rt){return/\s/.test(Rt)}:function(Rt){return!/\s/.test(Rt)&&!J(Rt)};ge>0&&vt(ee.charAt(ge-1));)--ge;for(;Ce<ee.length&&vt(ee.charAt(Ce));)++Ce}return new Da(Zt(U.line,ge),Zt(U.line,Ce))},toggleOverwrite:function(U){if(U!=null&&U==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),ht(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==V()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ri(function(U,H){Yi(this,U,H)}),getScrollInfo:function(){var U=this.display.scroller;return{left:U.scrollLeft,top:U.scrollTop,height:U.scrollHeight-yt(this)-this.display.barHeight,width:U.scrollWidth-yt(this)-this.display.barWidth,clientHeight:Pe(this),clientWidth:at(this)}},scrollIntoView:ri(function(U,H){U==null?(U={from:this.doc.sel.primary().head,to:null},H==null&&(H=this.options.cursorScrollMargin)):typeof U=="number"?U={from:Zt(U,0),to:null}:U.from==null&&(U={from:U,to:null}),U.to||(U.to=U.from),U.margin=H||0,U.from.line!=null?No(this,U):ao(this,U.from,U.to,U.margin)}),setSize:ri(function(U,H){var ee=this,ge=function(Re){return typeof Re=="number"||/^\d+$/.test(String(Re))?Re+"px":Re};U!=null&&(this.display.wrapper.style.width=ge(U)),H!=null&&(this.display.wrapper.style.height=ge(H)),this.options.lineWrapping&&xn(this);var Ce=this.display.viewFrom;this.doc.iter(Ce,this.display.viewTo,function(Re){if(Re.widgets){for(var Be=0;Be<Re.widgets.length;Be++)if(Re.widgets[Be].noHScroll){Na(ee,Ce,"widget");break}}++Ce}),this.curOp.forceUpdate=!0,ht(this,"refresh",this)}),operation:function(U){return fi(this,U)},startOperation:function(){return Ni(this)},endOperation:function(){return qi(this)},refresh:ri(function(){var U=this.display.cachedTextHeight;La(this),this.curOp.forceUpdate=!0,Ur(this),Yi(this,this.doc.scrollLeft,this.doc.scrollTop),lo(this.display),(U==null||Math.abs(U-Er(this.display))>.5||this.options.lineWrapping)&&_a(this),ht(this,"refresh",this)}),swapDoc:ri(function(U){var H=this.doc;return H.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,U),Ur(this),this.display.input.reset(),Yi(this,U.scrollLeft,U.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,H),H}),phrase:function(U){var H=this.options.phrases;return H&&Object.prototype.hasOwnProperty.call(H,U)?H[U]:U},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Xe(e),e.registerHelper=function(U,H,ee){j.hasOwnProperty(U)||(j[U]=e[U]={_global:[]}),j[U][H]=ee},e.registerGlobalHelper=function(U,H,ee,ge){e.registerHelper(U,H,ge),j[U]._global.push({pred:ee,val:ge})}}function Dt(e,u,j,U,H){var ee=u,ge=j,Ce=rn(e,u.line),Re=H&&e.direction=="rtl"?-j:j;function Be(){var kr=u.line+Re;return kr<e.first||kr>=e.first+e.size?!1:(u=new Zt(kr,u.ch,u.sticky),Ce=rn(e,kr))}function vt(kr){var Cr;if(U=="codepoint"){var Vr=Ce.text.charCodeAt(u.ch+(U>0?0:-1));isNaN(Vr)?Cr=null:Cr=new Zt(u.line,Math.max(0,Math.min(Ce.text.length,u.ch+j*(Vr>=55296&&Vr<56320?2:1))),-j)}else H?Cr=Fs(e.cm,Ce,u,j):Cr=js(Ce,u,j);if(Cr==null)if(!kr&&Be())u=Bs(H,e.cm,Ce,u.line,Re);else return!1;else u=Cr;return!0}if(U=="char"||U=="codepoint")vt();else if(U=="column")vt(!0);else if(U=="word"||U=="group")for(var Rt=null,$t=U=="group",zt=e.cm&&e.cm.getHelper(u,"wordChars"),Tn=!0;!(j<0&&!vt(!Tn));Tn=!1){var Hn=Ce.text.charAt(u.ch)||`
`,nr=J(Hn,zt)?"w":$t&&Hn==`
`?"n":!$t||/\s/.test(Hn)?null:"p";if($t&&!Tn&&!nr&&(nr="s"),Rt&&Rt!=nr){j<0&&(j=1,vt(),u.sticky="after");break}if(nr&&(Rt=nr),j>0&&!vt(!Tn))break}var xr=bs(e,u,ee,ge,!0);return jr(ee,xr)&&(xr.hitSide=!0),xr}function Ot(e,u,j,U){var H=e.doc,ee=u.left,ge;if(U=="page"){var Ce=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(Ce-.5*Er(e.display),3);ge=(j>0?u.bottom:u.top)+j*Re}else U=="line"&&(ge=j>0?u.bottom+3:u.top-3);for(var Be;!(Be=zr(e,ee,ge),!Be.outside);){if(j<0?ge<=0:ge>=H.height){Be.hitSide=!0;break}ge+=j*5}return Be}var Ut=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ne,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ut.prototype.init=function(e){var u=this,j=this,U=j.cm,H=j.div=e.lineDiv;St(H,U.options.spellcheck,U.options.autocorrect,U.options.autocapitalize);function ee(Ce){for(var Re=Ce.target;Re;Re=Re.parentNode){if(Re==H)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}Ue(H,"paste",function(Ce){if(!ee(Ce)||_t(U,Ce)||Ne(Ce,U))return;h<=11&&setTimeout(Wa(U,function(){return u.updateFromDOM()}),20)}),Ue(H,"compositionstart",function(Ce){u.composing={data:Ce.data,done:!1}}),Ue(H,"compositionupdate",function(Ce){u.composing||(u.composing={data:Ce.data,done:!1})}),Ue(H,"compositionend",function(Ce){u.composing&&(Ce.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),Ue(H,"touchstart",function(){return j.forceCompositionEnd()}),Ue(H,"input",function(){u.composing||u.readFromDOMSoon()});function ge(Ce){if(!ee(Ce)||_t(U,Ce))return;if(U.somethingSelected())_e({lineWise:!1,text:U.getSelections()}),Ce.type=="cut"&&U.replaceSelection("",null,"cut");else if(U.options.lineWiseCopyCut){var Re=Ke(U);_e({lineWise:!0,text:Re.text}),Ce.type=="cut"&&U.operation(function(){U.setSelections(Re.ranges,0,we),U.replaceSelection("",null,"cut")})}else return;if(Ce.clipboardData){Ce.clipboardData.clearData();var Be=ae.text.join(`
`);if(Ce.clipboardData.setData("Text",Be),Ce.clipboardData.getData("Text")==Be){Ce.preventDefault();return}}var vt=Bt(),Rt=vt.firstChild;U.display.lineSpace.insertBefore(vt,U.display.lineSpace.firstChild),Rt.value=ae.text.join(`
`);var $t=document.activeElement;K(Rt),setTimeout(function(){U.display.lineSpace.removeChild(vt),$t.focus(),$t==H&&j.showPrimarySelection()},50)}Ue(H,"copy",ge),Ue(H,"cut",ge)},Ut.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ut.prototype.prepareSelection=function(){var e=bi(this.cm,!1);return e.focus=document.activeElement==this.div,e},Ut.prototype.showSelection=function(e,u){if(!e||!this.cm.display.view.length)return;(e.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Ut.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ut.prototype.showPrimarySelection=function(){var e=this.getSelection(),u=this.cm,j=u.doc.sel.primary(),U=j.from(),H=j.to();if(u.display.viewTo==u.display.viewFrom||U.line>=u.display.viewTo||H.line<u.display.viewFrom){e.removeAllRanges();return}var ee=Kr(u,e.anchorNode,e.anchorOffset),ge=Kr(u,e.focusNode,e.focusOffset);if(ee&&!ee.bad&&ge&&!ge.bad&&An(Un(ee,ge),U)==0&&An(qn(ee,ge),H)==0)return;var Ce=u.display.view,Re=U.line>=u.display.viewFrom&&pn(u,U)||{node:Ce[0].measure.map[2],offset:0},Be=H.line<u.display.viewTo&&pn(u,H);if(!Be){var vt=Ce[Ce.length-1].measure,Rt=vt.maps?vt.maps[vt.maps.length-1]:vt.map;Be={node:Rt[Rt.length-1],offset:Rt[Rt.length-2]-Rt[Rt.length-3]}}if(!Re||!Be){e.removeAllRanges();return}var $t=e.rangeCount&&e.getRangeAt(0),zt;try{zt=D(Re.node,Re.offset,Be.offset,Be.node)}catch(Tn){}zt&&(!A&&u.state.focused?(e.collapse(Re.node,Re.offset),zt.collapsed||(e.removeAllRanges(),e.addRange(zt))):(e.removeAllRanges(),e.addRange(zt)),$t&&e.anchorNode==null?e.addRange($t):A&&this.startGracePeriod()),this.rememberSelection()},Ut.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ut.prototype.showMultipleSelections=function(e){g(this.cm.display.cursorDiv,e.cursors),g(this.cm.display.selectionDiv,e.selection)},Ut.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ut.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var u=e.getRangeAt(0).commonAncestorContainer;return N(this.div,u)},Ut.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ut.prototype.blur=function(){this.div.blur()},Ut.prototype.getField=function(){return this.div},Ut.prototype.supportsTouch=function(){return!0},Ut.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():fi(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function u(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},Ut.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ut.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),u=this.cm;if(f&&r&&this.cm.display.gutterSpecs.length&&fr(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var j=Kr(u,e.anchorNode,e.anchorOffset),U=Kr(u,e.focusNode,e.focusOffset);j&&U&&fi(u,function(){gi(u.doc,Sr(j,U),we),(j.bad||U.bad)&&(u.curOp.selectionChanged=!0)})},Ut.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,u=e.display,j=e.doc.sel.primary(),U=j.from(),H=j.to();if(U.ch==0&&U.line>e.firstLine()&&(U=Zt(U.line-1,rn(e.doc,U.line-1).length)),H.ch==rn(e.doc,H.line).text.length&&H.line<e.lastLine()&&(H=Zt(H.line+1,0)),U.line<u.viewFrom||H.line>u.viewTo-1)return!1;var ee,ge,Ce;U.line==u.viewFrom||(ee=ha(e,U.line))==0?(ge=$n(u.view[0].line),Ce=u.view[0].node):(ge=$n(u.view[ee].line),Ce=u.view[ee-1].node.nextSibling);var Re=ha(e,H.line),Be,vt;if(Re==u.view.length-1?(Be=u.viewTo-1,vt=u.lineDiv.lastChild):(Be=$n(u.view[Re+1].line)-1,vt=u.view[Re+1].node.previousSibling),!Ce)return!1;for(var Rt=e.doc.splitLines(Nr(e,Ce,vt,ge,Be)),$t=Qn(e.doc,Zt(ge,0),Zt(Be,rn(e.doc,Be).text.length));Rt.length>1&&$t.length>1;)if(q(Rt)==q($t))Rt.pop(),$t.pop(),Be--;else if(Rt[0]==$t[0])Rt.shift(),$t.shift(),ge++;else break;for(var zt=0,Tn=0,Hn=Rt[0],nr=$t[0],xr=Math.min(Hn.length,nr.length);zt<xr&&Hn.charCodeAt(zt)==nr.charCodeAt(zt);)++zt;for(var kr=q(Rt),Cr=q($t),Vr=Math.min(kr.length-(Rt.length==1?zt:0),Cr.length-($t.length==1?zt:0));Tn<Vr&&kr.charCodeAt(kr.length-Tn-1)==Cr.charCodeAt(Cr.length-Tn-1);)++Tn;if(Rt.length==1&&$t.length==1&&ge==U.line)for(;zt&&zt>U.ch&&kr.charCodeAt(kr.length-Tn-1)==Cr.charCodeAt(Cr.length-Tn-1);)zt--,Tn++;Rt[Rt.length-1]=kr.slice(0,kr.length-Tn).replace(/^\u200b+/,""),Rt[0]=Rt[0].slice(zt).replace(/\u200b+$/,"");var aa=Zt(ge,zt),ea=Zt(Be,$t.length?q($t).length-Tn:0);if(Rt.length>1||Rt[0]||An(aa,ea))return Xo(e.doc,Rt,aa,ea,"+input"),!0},Ut.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ut.prototype.reset=function(){this.forceCompositionEnd()},Ut.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Ut.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Ut.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&fi(this.cm,function(){return La(e.cm)})},Ut.prototype.setUneditable=function(e){e.contentEditable="false"},Ut.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Wa(this.cm,Le)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Ut.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ut.prototype.onContextMenu=function(){},Ut.prototype.resetPosition=function(){},Ut.prototype.needsContentAttribute=!0;function pn(e,u){var j=pt(e,u.line);if(!j||j.hidden)return null;var U=rn(e.doc,u.line),H=Ie(j,U,u.line),ee=wt(U,e.doc.direction),ge="left";if(ee){var Ce=Et(ee,u.ch);ge=Ce%2?"right":"left"}var Re=hn(H.map,u.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function fr(e){for(var u=e;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}function _r(e,u){return u&&(e.bad=!0),e}function Nr(e,u,j,U,H){var ee="",ge=!1,Ce=e.doc.lineSeparator(),Re=!1;function Be(zt){return function(Tn){return Tn.id==zt}}function vt(){ge&&(ee+=Ce,Re&&(ee+=Ce),ge=Re=!1)}function Rt(zt){zt&&(vt(),ee+=zt)}function $t(zt){if(zt.nodeType==1){var Tn=zt.getAttribute("cm-text");if(Tn){Rt(Tn);return}var Hn=zt.getAttribute("cm-marker"),nr;if(Hn){var xr=e.findMarks(Zt(U,0),Zt(H+1,0),Be(+Hn));xr.length&&(nr=xr[0].find(0))&&Rt(Qn(e.doc,nr.from,nr.to).join(Ce));return}if(zt.getAttribute("contenteditable")=="false")return;var kr=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;kr&&vt();for(var Cr=0;Cr<zt.childNodes.length;Cr++)$t(zt.childNodes[Cr]);/^(pre|p)$/i.test(zt.nodeName)&&(Re=!0),kr&&(ge=!0)}else zt.nodeType==3&&Rt(zt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!($t(u),u==j);)u=u.nextSibling,Re=!1;return ee}function Kr(e,u,j){var U;if(u==e.display.lineDiv){if(U=e.display.lineDiv.childNodes[j],!U)return _r(e.clipPos(Zt(e.display.viewTo-1)),!0);u=null,j=0}else for(U=u;;U=U.parentNode){if(!U||U==e.display.lineDiv)return null;if(U.parentNode&&U.parentNode==e.display.lineDiv)break}for(var H=0;H<e.display.view.length;H++){var ee=e.display.view[H];if(ee.node==U)return na(ee,u,j)}}function na(e,u,j){var U=e.text.firstChild,H=!1;if(!u||!N(U,u))return _r(Zt($n(e.line),0),!0);if(u==U&&(H=!0,u=U.childNodes[j],j=0,!u)){var ee=e.rest?q(e.rest):e.line;return _r(Zt($n(ee),ee.text.length),H)}var ge=u.nodeType==3?u:null,Ce=u;for(!ge&&u.childNodes.length==1&&u.firstChild.nodeType==3&&(ge=u.firstChild,j&&(j=ge.nodeValue.length));Ce.parentNode!=U;)Ce=Ce.parentNode;var Re=e.measure,Be=Re.maps;function vt(nr,xr,kr){for(var Cr=-1;Cr<(Be?Be.length:0);Cr++)for(var Vr=Cr<0?Re.map:Be[Cr],aa=0;aa<Vr.length;aa+=3){var ea=Vr[aa+2];if(ea==nr||ea==xr){var Ca=$n(Cr<0?e.line:e.rest[Cr]),Va=Vr[aa]+kr;return(kr<0||ea!=nr)&&(Va=Vr[aa+(kr?1:0)]),Zt(Ca,Va)}}}var Rt=vt(ge,Ce,j);if(Rt)return _r(Rt,H);for(var $t=Ce.nextSibling,zt=ge?ge.nodeValue.length-j:0;$t;$t=$t.nextSibling){if(Rt=vt($t,$t.firstChild,0),Rt)return _r(Zt(Rt.line,Rt.ch-zt),H);zt+=$t.textContent.length}for(var Tn=Ce.previousSibling,Hn=j;Tn;Tn=Tn.previousSibling){if(Rt=vt(Tn,Tn.firstChild,-1),Rt)return _r(Zt(Rt.line,Rt.ch+Hn),H);Hn+=Tn.textContent.length}}var Wr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ne,this.hasSelection=!1,this.composing=null};Wr.prototype.init=function(e){var u=this,j=this,U=this.cm;this.createField(e);var H=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),i&&(H.style.width="0px"),Ue(H,"input",function(){T&&h>=9&&u.hasSelection&&(u.hasSelection=null),j.poll()}),Ue(H,"paste",function(ge){if(_t(U,ge)||Ne(ge,U))return;U.state.pasteIncoming=+new Date,j.fastPoll()});function ee(ge){if(_t(U,ge))return;if(U.somethingSelected())_e({lineWise:!1,text:U.getSelections()});else if(U.options.lineWiseCopyCut){var Ce=Ke(U);_e({lineWise:!0,text:Ce.text}),ge.type=="cut"?U.setSelections(Ce.ranges,null,we):(j.prevInput="",H.value=Ce.text.join(`
`),K(H))}else return;ge.type=="cut"&&(U.state.cutIncoming=+new Date)}Ue(H,"cut",ee),Ue(H,"copy",ee),Ue(e.scroller,"paste",function(ge){if(wa(e,ge)||_t(U,ge))return;if(!H.dispatchEvent){U.state.pasteIncoming=+new Date,j.focus();return}var Ce=new Event("paste");Ce.clipboardData=ge.clipboardData,H.dispatchEvent(Ce)}),Ue(e.lineSpace,"selectstart",function(ge){wa(e,ge)||Te(ge)}),Ue(H,"compositionstart",function(){var ge=U.getCursor("from");j.composing&&j.composing.range.clear(),j.composing={start:ge,range:U.markText(ge,U.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(H,"compositionend",function(){j.composing&&(j.poll(),j.composing.range.clear(),j.composing=null)})},Wr.prototype.createField=function(e){this.wrapper=Bt(),this.textarea=this.wrapper.firstChild},Wr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wr.prototype.prepareSelection=function(){var e=this.cm,u=e.display,j=e.doc,U=bi(e);if(e.options.moveInputWithCursor){var H=Vn(e,j.sel.primary().head,"div"),ee=u.wrapper.getBoundingClientRect(),ge=u.lineDiv.getBoundingClientRect();U.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,H.top+ge.top-ee.top)),U.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,H.left+ge.left-ee.left))}return U},Wr.prototype.showSelection=function(e){var u=this.cm,j=u.display;g(j.cursorDiv,e.cursors),g(j.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wr.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var u=this.cm;if(u.somethingSelected()){this.prevInput="";var j=u.getSelection();this.textarea.value=j,u.state.focused&&K(this.textarea),T&&h>=9&&(this.hasSelection=j)}else e||(this.prevInput=this.textarea.value="",T&&h>=9&&(this.hasSelection=null))},Wr.prototype.getField=function(){return this.textarea},Wr.prototype.supportsTouch=function(){return!1},Wr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!l||V()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wr.prototype.blur=function(){this.textarea.blur()},Wr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wr.prototype.receivedFocus=function(){this.slowPoll()},Wr.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wr.prototype.fastPoll=function(){var e=!1,u=this;u.pollingFast=!0;function j(){var U=u.poll();!U&&!e?(e=!0,u.polling.set(60,j)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,j)},Wr.prototype.poll=function(){var e=this,u=this.cm,j=this.textarea,U=this.prevInput;if(this.contextMenuPending||!u.state.focused||tt(j)&&!U&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var H=j.value;if(H==U&&!u.somethingSelected())return!1;if(T&&h>=9&&this.hasSelection===H||o&&/[\uf700-\uf7ff]/.test(H))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var ee=H.charCodeAt(0);if(ee==8203&&!U&&(U="\u200B"),ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var ge=0,Ce=Math.min(U.length,H.length);ge<Ce&&U.charCodeAt(ge)==H.charCodeAt(ge);)++ge;return fi(u,function(){Le(u,H.slice(ge),U.length-ge,null,e.composing?"*compose":null),H.length>1e3||H.indexOf(`
`)>-1?j.value=e.prevInput="":e.prevInput=H,e.composing&&(e.composing.range.clear(),e.composing.range=u.markText(e.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wr.prototype.onKeyPress=function(){T&&h>=9&&(this.hasSelection=null),this.fastPoll()},Wr.prototype.onContextMenu=function(e){var u=this,j=u.cm,U=j.display,H=u.textarea;u.contextMenuPending&&u.contextMenuPending();var ee=Oa(j,e),ge=U.scroller.scrollTop;if(!ee||c)return;var Ce=j.options.resetSelectionOnContextMenu;Ce&&j.doc.sel.contains(ee)==-1&&Wa(j,gi)(j.doc,Sr(ee),we);var Re=H.style.cssText,Be=u.wrapper.style.cssText,vt=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",H.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-vt.top-5)+"px; left: "+(e.clientX-vt.left-5)+`px;
z-index: 1000; background: `+(T?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Rt;_&&(Rt=window.scrollY),U.input.focus(),_&&window.scrollTo(null,Rt),U.input.reset(),j.somethingSelected()||(H.value=u.prevInput=" "),u.contextMenuPending=zt,U.selForContextMenu=j.doc.sel,clearTimeout(U.detectingSelectAll);function $t(){if(H.selectionStart!=null){var Hn=j.somethingSelected(),nr="\u200B"+(Hn?H.value:"");H.value="\u21DA",H.value=nr,u.prevInput=Hn?"":"\u200B",H.selectionStart=1,H.selectionEnd=nr.length,U.selForContextMenu=j.doc.sel}}function zt(){if(u.contextMenuPending!=zt)return;if(u.contextMenuPending=!1,u.wrapper.style.cssText=Be,H.style.cssText=Re,T&&h<9&&U.scrollbars.setScrollTop(U.scroller.scrollTop=ge),H.selectionStart!=null){(!T||T&&h<9)&&$t();var Hn=0,nr=function(){U.selForContextMenu==j.doc.sel&&H.selectionStart==0&&H.selectionEnd>0&&u.prevInput=="\u200B"?Wa(j,ol)(j):Hn++<10?U.detectingSelectAll=setTimeout(nr,500):(U.selForContextMenu=null,U.input.reset())};U.detectingSelectAll=setTimeout(nr,200)}}if(T&&h>=9&&$t(),P){Ge(e);var Tn=function(){jt(window,"mouseup",Tn),setTimeout(zt,20)};Ue(window,"mouseup",Tn)}else setTimeout(zt,50)},Wr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Wr.prototype.setUneditable=function(){},Wr.prototype.needsContentAttribute=!1;function Ma(e,u){if(u=u?k(u):{},u.value=e.value,!u.tabindex&&e.tabIndex&&(u.tabindex=e.tabIndex),!u.placeholder&&e.placeholder&&(u.placeholder=e.placeholder),u.autofocus==null){var j=V();u.autofocus=j==e||e.getAttribute("autofocus")!=null&&j==document.body}function U(){e.value=Ce.getValue()}var H;if(e.form&&(Ue(e.form,"submit",U),!u.leaveSubmitMethodAlone)){var ee=e.form;H=ee.submit;try{var ge=ee.submit=function(){U(),ee.submit=H,ee.submit(),ee.submit=ge}}catch(Re){}}u.finishInit=function(Re){Re.save=U,Re.getTextArea=function(){return e},Re.toTextArea=function(){Re.toTextArea=isNaN,U(),e.parentNode.removeChild(Re.getWrapperElement()),e.style.display="",e.form&&(jt(e.form,"submit",U),!u.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=H))}},e.style.display="none";var Ce=Ya(function(Re){return e.parentNode.insertBefore(Re,e.nextSibling)},u);return Ce}function Aa(e){e.off=jt,e.on=Ue,e.wheelEventPixels=Hi,e.Doc=Oi,e.splitLines=je,e.countColumn=G,e.findColumn=ve,e.isWordChar=$,e.Pass=Ee,e.signal=ht,e.Line=cn,e.changeEnd=Qr,e.scrollbarModel=xo,e.Pos=Zt,e.cmpPos=An,e.modes=bt,e.mimeModes=dt,e.resolveMode=et,e.getMode=Mt,e.modeExtensions=Ht,e.extendMode=_n,e.copyState=vn,e.startState=Gn,e.innerMode=fn,e.commands=qo,e.keyMap=vo,e.keyName=xs,e.isModifierKey=is,e.lookupKey=_o,e.normalizeKeyMap=_l,e.StringStream=wn,e.SharedTextMarker=Qo,e.TextMarker=Gi,e.LineWidget=ns,e.e_preventDefault=Te,e.e_stopPropagation=Me,e.e_stop=Ge,e.addClass=F,e.contains=N,e.rmClass=E,e.keyNames=Ro}eu(Ya),Ft(Ya);var Ga="iter insert remove copy getEditor constructor".split(" ");for(var si in Oi.prototype)Oi.prototype.hasOwnProperty(si)&&fe(Ga,si)<0&&(Ya.prototype[si]=function(e){return function(){return e.apply(this.doc,arguments)}}(Oi.prototype[si]));return Xe(Oi),Ya.inputStyles={textarea:Wr,contenteditable:Ut},Ya.defineMode=function(e){!Ya.defaults.mode&&e!="null"&&(Ya.defaults.mode=e),xt.apply(this,arguments)},Ya.defineMIME=kt,Ya.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ya.defineMIME("text/plain","null"),Ya.defineExtension=function(e,u){Ya.prototype[e]=u},Ya.defineDocExtension=function(e,u){Oi.prototype[e]=u},Ya.fromTextArea=Ma,Aa(Ya),Ya.version="5.58.2",Ya})},W6BS:function(M,Y){M.exports="data:image/png;base64,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"},WO9J:function(M,Y,s){"use strict";s.r(Y);var L=s("0Owb"),p=s("PpiC"),A=s("cDcd"),b=s.n(A),y=s("EkPF"),S=s.n(y),T=s("miYZ"),h=s("tsqr"),_=s("2qtc"),d=s("kLXV"),r=s("9og8"),c=s("WmNS"),t=s.n(c),a=s("auZk"),n=s.n(a),i=s("1vsH"),f=s("Ufr+"),l=s.n(f),o=s("HBuW"),m=s("ErOA"),w=s("Ty5D"),C=s("9kvl"),v=function(Yt){var cn,Rn,qt=Yt.globalSetting,On=Yt.loading,gn=Yt.dispatch,In=Yt.practiceSetting,Fn=Yt.shixunsDetail,ur=Object(p.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),ar=Object(w.h)(),Rr=Object(A.useRef)(""),Ir=Object(w.i)(),tr=In.title,Dr=In.base_info_warning,br=In.challenges_warning,Gr=In.service_warning,Lr=In.repository_warning,qr=In.mirror_warning;Object(A.useEffect)(function(){var hr;Rr.current=(hr=ar.pathname.split("/"))===null||hr===void 0?void 0:hr[2],gn({type:"practiceSetting/setParams",payload:{id:Rr.current}}),gn({type:"practiceSetting/getCommonData",payload:{id:Rr.current}})},[ar.pathname]),Object(A.useEffect)(function(){return Object(i.Z)(tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(i.Z)()}});var sr=function(){var hr=Object(r.a)(t.a.mark(function cr(){return t.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Kt();case 2:C.d.push("/shixuns/".concat(Rr.current,"/challenges"));case 3:case"end":return dr.stop()}},cr)}));return function(){return hr.apply(this,arguments)}}(),Kt=function(){return new Promise(function(cr,Zr){var dr;In!=null&&(dr=In.sideBar)!==null&&dr!==void 0&&dr.confirmLeave?d.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(){gn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),cr()},onCancel:function(){Zr()}}):cr()})},Qt=function(cr){var Zr;if(cr===(In==null?void 0:In.sideBar.tabsActive))return;var dr=function(){C.d.push("/shixuns/".concat(Rr.current,"/edit?tabId=").concat(cr)),gn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:cr,selectPath:"",confirmLeave:!1}})};In!=null&&(Zr=In.sideBar)!==null&&Zr!==void 0&&Zr.confirmLeave?d.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(){dr()}}):dr()},Jt=function hr(cr){var Zr;cr=(Zr=cr)!==null&&Zr!==void 0&&Zr.includes(".json")?cr:"".concat(cr,".json"),d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var dr=Object(r.a)(t.a.mark(function Xr(){var yr,wr;return t.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:return Yr.next=2,Object(m.a)("/api"+cr,{method:"get"});case 2:if(yr=Yr.sent,yr){Yr.next=5;break}return Yr.abrupt("return");case 5:return h.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Yr.next=8,Object(o.E)({id:yr.shixun_identifier});case 8:if(wr=Yr.sent,!(wr!=null&&wr.game_identifier)){Yr.next=12;break}return Object(i.U)("/tasks/".concat(wr.game_identifier)),Yr.abrupt("return");case 12:(wr==null?void 0:wr.status)===2?hr(wr==null?void 0:wr.message):(wr==null?void 0:wr.status)===3&&Xn(wr==null?void 0:wr.message);case 13:case"end":return Yr.stop()}},Xr)}));function la(){return dr.apply(this,arguments)}return la}()})},Xn=function(cr){d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",cr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},ir=function(){var hr=Object(r.a)(t.a.mark(function cr(Zr,dr){var la,Xr,yr;return t.a.wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:return Hr.next=2,Kt();case 2:if(Object(i.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((la=Fn.detail)!==null&&la!==void 0&&la.is_jupyter||(Xr=Fn.detail)!==null&&Xr!==void 0&&Xr.is_jupyter_lab)){Hr.next=6;break}return gn({type:"shixunsDetail/execJupyter",payload:{id:Rr.current}}).then(function(Yr){Yr!=null&&Yr.identifier&&(C.d===null||C.d===void 0||C.d.push("/tasks/".concat(Yr.identifier,"/jupyter")))}),Hr.abrupt("return");case 6:if(gn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!dr){Hr.next=13;break}return Hr.next=10,Object(o.D)({id:Zr});case 10:Hr.t0=Hr.sent,Hr.next=16;break;case 13:return Hr.next=15,Object(o.E)({id:Zr});case 15:Hr.t0=Hr.sent;case 16:if(yr=Hr.t0,gn({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(yr!=null&&yr.game_identifier||yr!=null&&yr.identifier)){Hr.next=21;break}return Object(i.U)(dr?"/tasks/".concat(yr==null?void 0:yr.identifier,"/jupyter"):"/tasks/".concat(yr.game_identifier)),Hr.abrupt("return");case 21:(yr==null?void 0:yr.status)===-3?Object(i.q)():(yr==null?void 0:yr.status)===2?Jt(yr==null?void 0:yr.message):(yr==null?void 0:yr.status)===3&&Xn(yr==null?void 0:yr.message);case 22:case"end":return Hr.stop()}},cr)}));return function(Zr,dr){return hr.apply(this,arguments)}}(),kn=function(){var hr=Object(r.a)(t.a.mark(function cr(){return t.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Kt();case 2:gn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return dr.stop()}},cr)}));return function(){return hr.apply(this,arguments)}}(),lr=function(cr){var Zr={borderBottomColor:(In==null?void 0:In.sideBar.tabsActive)===cr?"#0152d9":"transparent"};return Zr};return b.a.createElement("div",{className:n.a.header},b.a.createElement("aside",{className:n.a.title},b.a.createElement("i",{onClick:sr,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:n.a.edit},tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),b.a.createElement("i",{onClick:kn,className:"icon iconfont icon-xiugai1"})),b.a.createElement("aside",{className:n.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:lr("information"),className:n.a.clickWarp,onClick:function(){return Qt("information")}},Dr?b.a.createElement("span",{className:n.a.num},"1"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u57FA\u672C\u4FE1\u606F")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:lr("warehouse"),className:n.a.clickWarp,onClick:function(){return Qt("warehouse")}},Lr?b.a.createElement("span",{className:n.a.num},"2"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Fn==null?void 0:Fn.detail)&&!(Fn!=null&&(cn=Fn.detail)!==null&&cn!==void 0&&cn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:lr("level"),className:n.a.clickWarp,onClick:function(){return Qt("level")}},br?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u4EFB\u52A1\u5173\u5361")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Fn==null?void 0:Fn.detail)&&(Fn==null||((Rn=Fn.detail)===null||Rn===void 0)?void 0:Rn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:lr("service"),className:n.a.clickWarp,onClick:function(){return Qt("service")}},Gr?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u670D\u52A1")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:lr("environment"),className:n.a.clickWarp,onClick:function(){return Qt("environment")}},qr?b.a.createElement("span",{className:n.a.num},"4"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),b.a.createElement("aside",{className:n.a.btns},b.a.createElement("div",{className:n.a.simulate,onClick:function(){return ir(Rr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},P=Object(C.a)(function(Sn){var Yt=Sn.loading,cn=Sn.globalSetting,Rn=Sn.practiceSetting,qt=Sn.shixunsDetail;return{globalSetting:cn,loading:Yt,practiceSetting:Rn,shixunsDetail:qt}})(v),R=s("sRBo"),E=s("kaz8"),x=s("14J3"),g=s("BMrR"),O=s("jCWc"),I=s("kPKH"),D=s("DZo9"),N=s("8z0m"),V=s("6UJt"),F=s("DFOY"),W=s("5NDa"),K=s("5rEg"),B=s("+L6B"),k=s("2/Rp"),G=s("k1fw"),ne=s("y8nQ"),fe=s("Vl3Y"),de=s("tJVT"),Ee=s("h/E3"),we=s.n(Ee),ce=s("Ot1p"),be=s("oBTY"),ve=s("+Xk9"),ue=s.n(ve),se=s("FTkQ"),q=s.n(se),me=function(Yt){var cn=Yt.InputRight,Rn=Yt.value,qt=Rn===void 0?[]:Rn,On=Yt.onChange,gn=Object(p.a)(Yt,["InputRight","value","onChange"]),In=Object(A.useState)(),Fn=Object(de.a)(In,2),ur=Fn[0],ar=Fn[1],Rr=function(Dr){var br=qt.filter(function(Gr,Lr){return Lr!==Dr});On(br)},Ir=function(Dr){if(Dr.preventDefault(),!ur)return;if(qt.findIndex(function(br){return br.name===ur})>-1){h.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}On([].concat(Object(be.a)(qt),[{id:null,name:ur}])),ar(null)};return b.a.createElement("div",null,b.a.createElement(K.a,Object(L.a)({bordered:!1,style:{width:600},value:ur,onChange:function(Dr){return ar(Dr.target.value)},onPressEnter:Ir,onBlur:Ir},gn)),cn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},qt==null?void 0:qt.map(function(tr,Dr){return b.a.createElement("div",{key:Dr,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},tr.name),b.a.createElement("img",{src:q.a,className:ue.a.s2,onClick:function(){return Rr(Dr)}}))})))},re=me,ie=s("LvDl"),Oe=s("m3rI"),le=s("hW5Z"),$=s.n(le),J=function(Yt){var cn=Yt.dispatch,Rn=Yt.onCancel,qt=Yt.onSave,On=Yt.loading,gn=On===void 0?!1:On;return b.a.createElement("div",{className:$.a.complete},b.a.createElement("div",{onClick:Rn,className:$.a.cancel},"\u53D6\u6D88"),b.a.createElement(k.a,{type:"primary",loading:gn,onClick:qt,className:$.a.save},"\u4FDD\u5B58"))},te=Object(C.a)()(J),Ae=s("UqFu"),Se=s("z7Xi"),ke=s("jN4g"),rt=function(Yt){var cn,Rn,qt=Yt.globalSetting,On=Yt.loading,gn=Yt.dispatch,In=Yt.practiceSetting,Fn=Yt.problemset,ur=Yt.shixunsDetail,ar=Object(p.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Rr=fe.a.useForm(),Ir=Object(de.a)(Rr,1),tr=Ir[0],Dr=Object(A.useState)({}),br=Object(de.a)(Dr,2),Gr=br[0],Lr=br[1],qr=Object(A.useState)(!1),sr=Object(de.a)(qr,2),Kt=sr[0],Qt=sr[1],Jt=Object(A.useState)(!1),Xn=Object(de.a)(Jt,2),ir=Xn[0],kn=Xn[1],lr=Object(A.useState)(""),hr=Object(de.a)(lr,2),cr=hr[0],Zr=hr[1],dr=Object(A.useState)(""),la=Object(de.a)(dr,2),Xr=la[0],yr=la[1],wr=Object(A.useRef)({}),Hr=Object(A.useRef)(""),Yr=Object(A.useRef)(null),wa=Object(A.useRef)(Object(ie.throttle)(function(){return Pe()},2e3,{leading:!0,trailing:!1})).current,va=In.id;Object(A.useEffect)(function(){if(!va)return;ct()},[va]),Object(A.useEffect)(function(){return JSON.stringify(Gr)!=="{}"&&Je(),function(){clearTimeout(Yr.current)}},[Gr,cr,Xr]);var Je=function(){clearTimeout(Yr.current),Yr.current=setTimeout(function(){!Object(ie.isEqual)(Gr,wr.current)||cr!==Hr.current||Xr!==Hr.current?gn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):gn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},ct=function(){var un=Object(r.a)(t.a.mark(function ln(){var Kn,xn,Ur,Pr,Jr,Fr,ta,zn,Or;return t.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return gn({type:"problemset/getEditDisciplines",payload:{source:"shixun"}}),En.next=3,Object(m.a)("/api/shixuns/".concat(va,"/edit_base_info.json"),{method:"get"});case 3:Kn=En.sent,Kn.status===0&&(zn=Object(G.a)(Object(G.a)({},Kn.data),{},{description:Object(Ae.a)(Kn.data.description)}),Or={description:zn.description,shixun_tags:zn.shixun_tags,name:zn.name,course:(zn==null||((xn=zn.disciplines)===null||xn===void 0)?void 0:xn.length)>0?[zn==null||((Ur=zn.disciplines)===null||Ur===void 0||((Pr=Ur[0])===null||Pr===void 0))?void 0:Pr.id,zn==null||((Jr=zn.disciplines)===null||Jr===void 0||((Fr=Jr[0])===null||Fr===void 0||((ta=Fr.sub_discipline)===null||ta===void 0)))?void 0:ta.id]:[],jupyter_show_description:Kn.data.jupyter_show_description},tr.setFieldsValue(Or),wr.current=Object(G.a)({},Or),Hr.current=zn.attachment_id||"",Lr(Object(G.a)({},Or)),Zr(zn.attachment_id||""),yr(zn.cover_image_id||""));case 5:case"end":return En.stop()}},ln)}));return function(){return un.apply(this,arguments)}}(),yt=function(ln,Kn){Lr(Object(G.a)({},Kn))},at=function(){Ie()},Pe=function(){Object(i.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),tr.submit()},ze=function(ln){var Kn,xn=ln.name,Ur=ln.description,Pr=ln.shixun_tags,Jr=ln.course,Fr=ln.jupyter_show_description,ta=Fr===void 0?!1:Fr,zn={name:xn,description:Ur,shixun_tags:Pr,attachment_id:cr,cover_image_id:Xr,sub_discipline_ids:Jr[1]};(Kn=ur.detail)!==null&&Kn!==void 0&&Kn.is_jupyter_lab&&(zn=Object(G.a)(Object(G.a)({},zn),{},{jupyter_show_description:ta}));var Or=Object(m.a)("/api/shixuns/".concat(va,"/base_info_save.json"),{method:"post",body:{shixun:Object(G.a)({},zn)}});Or.then(function(Vn){Vn.status===0&&(h.b.success("\u4FDD\u5B58\u6210\u529F"),gn({type:"practiceSetting/getCommonData",payload:{id:va}}),gn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),wr.current={description:Gr.description,shixun_tags:Gr.shixun_tags,name:Gr.name},Hr.current=cr)})},Ie=function(){var ln,Kn=function(){C.d.push("/shixuns/".concat(va,"/challenges")),gn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};In!=null&&(ln=In.sideBar)!==null&&ln!==void 0&&ln.confirmLeave?d.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(){Kn()}}):Kn()};function $e(un){var ln=un.type==="image/jpeg"||un.type==="image/png";return ln||h.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),ln}var qe=b.a.createElement(k.a,{loading:Kt,icon:b.a.createElement(Se.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),pt=b.a.createElement(k.a,{loading:ir,icon:b.a.createElement(Se.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function it(un,ln){var Kn=new FileReader;Kn.addEventListener("load",function(){return ln(Kn.result)}),Kn.readAsDataURL(un)}var Lt=function(ln){if(ln.file.status==="uploading"){Qt(!0);return}if(ln.file.status==="done"){var Kn,xn;Qt(!1),Zr(ln==null||((Kn=ln.file)===null||Kn===void 0||((xn=Kn.response)===null||xn===void 0))?void 0:xn.id)}},Vt=function(){return b.a.createElement("div",{className:we.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+cr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(ke.a,{onClick:function(){return Zr("")},style:{fontSize:"16px",color:"red"}})))},hn=function(ln){if(ln.file.status==="uploading"){kn(!0);return}if(ln.file.status==="done"){var Kn,xn;kn(!1),yr(ln==null||((Kn=ln.file)===null||Kn===void 0||((xn=Kn.response)===null||xn===void 0))?void 0:xn.id)}},sn=function(){return b.a.createElement("div",{className:we.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+Xr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(ke.a,{onClick:function(){return yr("")},style:{fontSize:"16px",color:"red"}})))};return b.a.createElement("div",{className:we.a.information},b.a.createElement("section",{className:we.a.scroll},b.a.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),b.a.createElement("div",{className:we.a.formWrap}," ",b.a.createElement(fe.a,{form:tr,scrollToFirstError:!0,layout:"vertical",onValuesChange:yt,onFinish:ze},b.a.createElement(fe.a.Item,{name:"name",label:"\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.a.createElement(K.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((cn=Gr.name)===null||cn===void 0?void 0:cn.length)||0,"/60")})),b.a.createElement(fe.a.Item,{className:"customAddTags",name:"shixun_tags",label:b.a.createElement("div",null,"\u6280\u80FD\u6807\u7B7E :"," ",b.a.createElement("span",{className:"pl10 font14 c-light-black"},"\u5B66\u5458\u901A\u8FC7\u6240\u6709\u4EFB\u52A1\u5173\u5361\uFF0C\u5C06\u83B7\u5F97\u6280\u80FD\u6807\u7B7E")),rules:[{required:!0,message:"\u8BF7\u9009\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},b.a.createElement(re,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"})),b.a.createElement(fe.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},b.a.createElement(F.a,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Fn.courseOptions})),b.a.createElement(g.a,null,b.a.createElement(I.a,null,b.a.createElement(fe.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},cr?Vt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:Lt},qe))),b.a.createElement(I.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u75281920*200\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(g.a,null,b.a.createElement(I.a,null,b.a.createElement(fe.a.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Xr?sn():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:hn},pt))),b.a.createElement(I.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528290*218\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(fe.a.Item,{name:"description",label:"\u7B80\u4ECB:"},b.a.createElement(ce.a,{defaultValue:Gr.description||"",watch:!0})),((Rn=ur.detail)===null||Rn===void 0?void 0:Rn.is_jupyter_lab)&&b.a.createElement(fe.a.Item,{name:"jupyter_show_description",valuePropName:"checked"},b.a.createElement(E.a,null,"\u663E\u793A\u4EFB\u52A1\u8981\u6C42\uFF08\u52FE\u9009\u540E\uFF0C\u5C06\u7B80\u4ECB\u4F5C\u4E3A\u4EFB\u52A1\u8981\u6C42\u663E\u793A\u5728\u5B9E\u8DF5\u9879\u76EE\u6311\u6218\u9875\u9762\uFF09"))))),b.a.createElement(te,{onSave:wa,onCancel:at,loading:Kt||ir}))},ot=Object(C.a)(function(Sn){var Yt=Sn.problemset,cn=Sn.loading,Rn=Sn.globalSetting,qt=Sn.practiceSetting,On=Sn.shixunsDetail;return{globalSetting:Rn,loading:cn,practiceSetting:qt,problemset:Yt,shixunsDetail:On}})(rt),gt=s("ch0t"),Et=s("R9oj"),Ct=s("ECub"),wt=s("T2oS"),Qe=s("W9HT"),Ue=s("bKvZ"),ft=s.n(Ue),jt=s("KeGQ"),ht=s.n(jt),_t=s("NLgs"),Ye=s("ngQI"),We=function(Yt){var cn=Yt.globalSetting,Rn=Yt.dispatch,qt=Yt.practiceSetting,On=Object(p.a)(Yt,["globalSetting","dispatch","practiceSetting"]),gn=Object(A.useState)(!1),In=Object(de.a)(gn,2),Fn=In[0],ur=In[1],ar=Object(A.useState)({}),Rr=Object(de.a)(ar,2),Ir=Rr[0],tr=Rr[1],Dr=Object(A.useState)(!0),br=Object(de.a)(Dr,2),Gr=br[0],Lr=br[1],qr=Object(A.useState)(!1),sr=Object(de.a)(qr,2),Kt=sr[0],Qt=sr[1],Jt=Object(A.useState)(null),Xn=Object(de.a)(Jt,2),ir=Xn[0],kn=Xn[1],lr=Object(A.useRef)(!1),hr=qt.id,cr=qt.updateIndex,Zr=qt.is_published,dr=qt.newQuestion,la=Ir.challenge_list,Xr=la===void 0?[]:la;Object(A.useEffect)(function(){return hr?(wr(),function(){Rn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[hr,cr]),Object(A.useEffect)(function(){yr()},[On.location]);var yr=function(){var $e,qe=On.location,pt=qe.pathname.split("/");(pt.includes("newquestion")||pt.includes("new")||qe!=null&&($e=qe.query)!==null&&$e!==void 0&&$e.tabId)&&(lr.current=!0)},wr=function(){var Ie=Object(r.a)(t.a.mark(function $e(){var qe,pt,it,Lt,Vt,hn,sn;return t.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return Lr(!0),ln.next=3,Object(o.J)({id:hr});case 3:it=ln.sent,it!=null&&(qe=it.challenge_list)!==null&&qe!==void 0&&qe.length&&(Lt=On.location.pathname.split("/"),Vt=it.challenge_list.find(function(Kn){return String(Kn.challenge_id)===Lt[4]}),Lt.includes("newquestion")||Lt.includes("new")?(sn=it.challenge_list[((hn=it.challenge_list)===null||hn===void 0?void 0:hn.length)-1],Rn({type:"practiceSetting/setParams",payload:{newQuestion:{st:Lt.includes("new")?0:1,name:""}}}),kn(void 0),Je(sn)):Lt[4]&&Vt?Hr(Vt,!1):Hr(it.challenge_list[0])),it!=null&&(pt=it.challenge_list)!==null&&pt!==void 0&&pt.length||kn(null),tr(it),Lr(!1);case 8:case"end":return ln.stop()}},$e)}));return function(){return Ie.apply(this,arguments)}}(),Hr=function($e){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(kn($e.challenge_id),Je($e),qe){var pt="/shixuns/".concat(hr,"/edit/").concat($e.challenge_id,"/").concat($e.st===1?"editquestion":"editcheckpoint");C.d.push(pt)}},Yr=function($e,qe){qe.stopPropagation();var pt=$e.challenge_id,it=function(){var Lt=Object(r.a)(t.a.mark(function Vt(){var hn,sn,un,ln;return t.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.next=2,Object(o.v)({id:hr,challengesId:pt});case 2:if(hn=xn.sent,!(hn.status===1)){xn.next=12;break}return xn.next=6,Object(o.J)({id:hr});case 6:if(ln=xn.sent,tr(ln),!(pt===ir&&(sn=ln.challenge_list)!==null&&sn!==void 0&&sn.length)){xn.next=11;break}return Hr(ln.challenge_list[0]),xn.abrupt("return");case 11:(un=ln.challenge_list)!==null&&un!==void 0&&un.length||(kn(null),lr.current=!0,Je({}),C.d.push("/shixuns/".concat(hr,"/edit?tabId=level")));case 12:case"end":return xn.stop()}},Vt)}));return function(){return Lt.apply(this,arguments)}}();d.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:it})},wa=function($e,qe,pt){var it=Array.from($e),Lt=it.splice(qe,1),Vt=Object(de.a)(Lt,1),hn=Vt[0];return it.splice(pt,0,hn),it},va=function($e,qe){if(!$e.destination)return;var pt=wa(qe,$e.source.index,$e.destination.index);tr(Object(G.a)(Object(G.a)({},Ir),{},{challenge_list:pt}));var it=pt.map(function(Lt){return Lt.challenge_id});Object(o.Kb)({id:hr,ids:it}).then(function(Lt){Lt.status!==0&&tr(Object(G.a)(Object(G.a)({},Ir),{},{challenge_list:qe}))})},Je=function($e){Rn({type:"practiceSetting/setParams",payload:{selectQuestionParams:$e}})},ct=function(){var Ie=Object(r.a)(t.a.mark(function $e(qe,pt){var it;return t.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!(qe===ir)){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.next=4,yt();case 4:kn(qe),Je(pt),Rn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),it="/shixuns/".concat(hr,"/edit/").concat(qe,"/").concat(pt.st===1?"editquestion":"editcheckpoint"),C.d.push(it);case 9:case"end":return Vt.stop()}},$e)}));return function(qe,pt){return Ie.apply(this,arguments)}}(),yt=function(){return new Promise(function($e,qe){var pt;qt!=null&&(pt=qt.sideBar)!==null&&pt!==void 0&&pt.confirmLeave?d.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(){Rn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),$e()},onCancel:function(){qe()}}):$e()})},at=function($e){return b.a.createElement(b.a.Fragment,null,b.a.createElement(Ye.a,{onDragEnd:function(pt){return va(pt,$e)}},b.a.createElement(Ye.c,{droppableId:"droppable"},function(qe,pt){return b.a.createElement("div",Object(L.a)({ref:qe.innerRef},qe.droppableProps,{style:{width:"100%"}}),$e.map(function(it,Lt){var Vt=it.st,hn=it.name,sn=it.challenge_id;return b.a.createElement(Ye.b,{key:sn,draggableId:sn.toString(),index:Lt,isDragDisabled:Zr},function(un,ln){return b.a.createElement("div",Object(L.a)({ref:un.innerRef},un.draggableProps,un.dragHandleProps,{className:ir===sn?ft.a.listActive:ft.a.list,onClick:function(){return ct(sn,it)}}),b.a.createElement("span",{className:ft.a.s1},Vt===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ft.a.s2},"\u7B2C",Lt+1,"\u5173: ",hn),!Zr&&b.a.createElement("span",{className:ft.a.s3,onClick:function(xn){return Yr(it,xn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),dr&&b.a.createElement("div",{className:ft.a.listActive},b.a.createElement("span",{className:ft.a.s1},(dr==null?void 0:dr.st)===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ft.a.s2},"\u7B2C",$e.length+1,"\u5173: ",dr==null?void 0:dr.name)),!Zr&&b.a.createElement("div",{className:ft.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Pe=function(){var Ie=Object(r.a)(t.a.mark(function $e(qe){return t.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,yt();case 2:qe==="new"?C.d.push("/shixuns/".concat(hr,"/edit/new")):C.d.push("/shixuns/".concat(hr,"/edit/newquestion")),ur(!1),kn(void 0),Rn({type:"practiceSetting/setParams",payload:{newQuestion:{st:qe==="new"?0:1,name:""}}});case 6:case"end":return it.stop()}},$e)}));return function(qe){return Ie.apply(this,arguments)}}(),ze=function(){if(Object(_t.b)(Rn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;ur(!Fn)};return b.a.createElement("div",{className:ft.a.level},b.a.createElement("aside",{className:ft.a.left,style:{width:Kt?"0":"25%"}},b.a.createElement("div",{className:ft.a.container},b.a.createElement("div",{className:ft.a.title},"\u4EFB\u52A1\u5173\u5361(",Xr.length,")"),b.a.createElement("div",{className:ft.a.listWrap},Gr?b.a.createElement(Qe.a,{size:"large"}):!!Xr.length||!!dr?at(Xr):b.a.createElement(Ct.a,{image:ht.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Kt&&b.a.createElement("div",{className:ft.a.btns},b.a.createElement("aside",{className:ft.a.btnsWrap},b.a.createElement("div",{style:{transform:Fn?"rotate(45deg)":"rotate(0deg)"},className:ft.a.icon,onClick:ze},"+"),b.a.createElement("div",{className:ft.a.btn,style:{left:Fn?20:-154}},b.a.createElement("div",{className:ft.a.d1,onClick:function(){return Pe("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:ft.a.d2,onClick:function(){return Pe("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Kt?ft.a.elseShrink:ft.a.shrink,onClick:function(){return Qt(!Kt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:ft.a.right,id:"modal-level-question"},ir===null&&lr.current?b.a.createElement("div",{className:ft.a.addIcon},b.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):On.children))},Xe=Object(C.a)(function(Sn){var Yt=Sn.globalSetting,cn=Sn.practiceSetting;return{globalSetting:Yt,practiceSetting:cn}})(We),Te=s("DjyN"),Me=s("NUBc"),Ve=s("cWXX"),Ge=s("/ezw"),Ze=s("qVdP"),mt=s("jsC+"),Pt=s("lUTK"),Gt=s("BvKs"),dn=s("7Kak"),Tt=s("9yH6"),ut=s("Qvpy"),je=s.n(ut),tt=function(Yt){var cn=Yt.shixunsDetail,Rn=Yt.globalSetting,qt=Yt.loading,On=Yt.dispatch,gn=Yt.onReloadData,In=Object(p.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Fn=Object(A.useState)(),ur=Object(de.a)(Fn,2),ar=ur[0],Rr=ur[1],Ir=Object(A.useState)([]),tr=Object(de.a)(Ir,2),Dr=tr[0],br=tr[1];Object(A.useEffect)(function(){cn.actionTabs.key==="Collaborators-ChangeManager"&&Gr()},[cn.actionTabs.key]);var Gr=function(){var Kt=Object(r.a)(t.a.mark(function Qt(){var Jt,Xn;return t.a.wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return kn.next=2,On({type:"shixunsDetail/getChangeManager",payload:{id:(Jt=cn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}});case 2:Xn=kn.sent,br(Xn||[]);case 4:case"end":return kn.stop()}},Qt)}));return function(){return Kt.apply(this,arguments)}}(),Lr=function(){var Qt;On({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(Qt=cn.actionTabs.params)===null||Qt===void 0?void 0:Qt.id}}})},qr=function(){var Kt=Object(r.a)(t.a.mark(function Qt(){var Jt,Xn;return t.a.wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:if(ar){kn.next=3;break}return h.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),kn.abrupt("return");case 3:return kn.next=5,On({type:"shixunsDetail/changeManager",payload:{id:(Jt=cn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id,user_id:ar}});case 5:Xn=kn.sent,sr(),Xn&&(gn(),h.b.info(Xn.message));case 8:case"end":return kn.stop()}},Qt)}));return function(){return Kt.apply(this,arguments)}}(),sr=function(){On({type:"shixunsDetail/setActionTabs",payload:{}}),Rr(null)};return b.a.createElement(d.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:cn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:qt.effects["shixunsDetail/changeManager"],onOk:qr,onCancel:sr},b.a.createElement("div",null,b.a.createElement("div",{className:je.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",b.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),b.a.createElement("div",{className:je.a.content},Dr.length?b.a.createElement(Tt.a.Group,{value:ar,onChange:function(Qt){return Rr(Qt.target.value)}},Dr.map(function(Kt,Qt){return b.a.createElement(Tt.a,{className:je.a.radio,key:Qt,value:Kt.user_id},Kt.name)})):b.a.createElement("div",{className:je.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:je.a.colorBlue,onClick:Lr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},nt=Object(C.a)(function(Sn){var Yt=Sn.shixunsDetail,cn=Sn.loading,Rn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Rn,loading:cn}})(tt),De=s("Znn+"),Fe=s("ZTPi"),bt=s("ju9d"),dt=s("DDK+"),xt=Fe.a.TabPane,kt=function(Sn){var Yt=Sn.visible,cn=Sn.onCancel,Rn=Sn.onSelectGroup,qt=Sn.shixunId,On=Sn.onSelectCollaborator;return b.a.createElement(d.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Yt,width:1100,centered:!0,keyboard:!1,onCancel:cn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Fe.a,{defaultActiveKey:"1"},b.a.createElement(xt,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(bt.a,{onCancel:cn,container_type:2,container_id:qt,onSelect:On})),b.a.createElement(xt,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(dt.a,{onCancel:cn,onSelect:Rn}))))},et=s("oaGz"),Mt=s.n(et),Ht=s("8Skl"),_n=s("ruvs"),vn=function(Yt){var cn,Rn,qt,On,gn,In,Fn=Yt.shixunsDetail,ur=Yt.globalSetting,ar=Yt.loading,Rr=Yt.user,Ir=Yt.dispatch,tr=Object(p.a)(Yt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Dr=Object(A.useRef)(),br=Object(A.useState)(0),Gr=Object(de.a)(br,2),Lr=Gr[0],qr=Gr[1],sr=Object(A.useState)([]),Kt=Object(de.a)(sr,2),Qt=Kt[0],Jt=Kt[1],Xn=Object(A.useState)({id:null,page:1}),ir=Object(de.a)(Xn,2),kn=ir[0],lr=ir[1],hr=(cn=Rr.userInfo)===null||cn===void 0||((Rn=cn.shixun)===null||Rn===void 0)?void 0:Rn.editable,cr=((qt=Rr.userInfo)===null||qt===void 0?void 0:qt.role)<=2||((On=Rr.userInfo)===null||On===void 0||((gn=On.shixun)===null||gn===void 0)?void 0:gn.is_creator);Object(A.useEffect)(function(){Dr.current=tr.match.params.id,kn.id=Dr.current,lr(kn),Zr(kn)},[]);var Zr=function(){var Je=Object(r.a)(t.a.mark(function ct(yt){var at;return t.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,Ir({type:"shixunsDetail/getCollaboratorsData",payload:yt});case 2:at=ze.sent,at&&(Jt(at.members||[]),qr(at.member_count));case 4:case"end":return ze.stop()}},ct)}));return function(yt){return Je.apply(this,arguments)}}(),dr=function(){var Je=Object(r.a)(t.a.mark(function ct(){var yt;return t.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return kn.page=1,lr(kn),yt=Object(_n.b)(),Pe.next=5,Ir({type:"user/getUserInfo",payload:yt});case 5:return Pe.next=7,Zr(kn);case 7:case"end":return Pe.stop()}},ct)}));return function(){return Je.apply(this,arguments)}}(),la=function(ct){kn.page=ct,lr(kn),Zr(kn)},Xr=function(ct){d.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Mt.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var yt=Object(r.a)(t.a.mark(function Pe(){var ze,Ie;return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Ir({type:"shixunsDetail/deleteCollaborators",payload:{id:Dr.current,userId:ct}});case 2:if(Ie=qe.sent,!(((ze=Rr.userInfo)===null||ze===void 0?void 0:ze.user_id)===ct)){qe.next=6;break}return C.d.push("/shixuns"),qe.abrupt("return");case 6:h.b.info(Ie==null?void 0:Ie.message),kn.page=1,lr(kn),Zr(kn);case 10:case"end":return qe.stop()}},Pe)}));function at(){return yt.apply(this,arguments)}return at}()})},yr=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Dr.current}}})};function wr(Je,ct,yt,at){return Hr.apply(this,arguments)}function Hr(){return Hr=Object(r.a)(t.a.mark(function Je(ct,yt,at,Pe){return t.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,Ir({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:ct,user_id:yt,editable:at?0:1}});case 2:Zr(kn);case 3:case"end":return Ie.stop()}},Je)})),Hr.apply(this,arguments)}var Yr=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Dr.current}}})};function wa(){Ir({type:"shixunsDetail/setActionTabs",payload:{}})}var va={visible:Fn.actionTabs.key==="Collaborators-AddCollaborator",onCancel:wa,shixunId:Dr.current,onSelectCollaborator:function(){var Je=Object(r.a)(t.a.mark(function yt(at){var Pe;return t.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return wa(),Ie.next=3,Ir({type:"shixunsDetail/addCollaborator",payload:{id:Dr.current,user_ids:at}});case 3:Pe=Ie.sent,Pe&&(h.b.success("\u6DFB\u52A0\u6210\u529F"),dr());case 5:case"end":return Ie.stop()}},yt)}));function ct(yt){return Je.apply(this,arguments)}return ct}(),onSelectGroup:function(){var Je=Object(r.a)(t.a.mark(function yt(at){var Pe;return t.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return wa(),Ie.next=3,Ir({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Dr.current,group_id:at.group_id}});case 3:Pe=Ie.sent,Pe&&(h.b.success("\u6DFB\u52A0\u6210\u529F"),dr());case 5:case"end":return Ie.stop()}},yt)}));function ct(yt){return Je.apply(this,arguments)}return ct}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Mt.a.wrap},b.a.createElement("div",{className:Mt.a.content},((In=Fn.detail)===null||In===void 0?void 0:In.identity)<5&&b.a.createElement("div",{className:Mt.a.head},b.a.createElement("span",{className:Mt.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Lr,"\u4EBA\uFF09"),b.a.createElement("div",null,cr&&b.a.createElement(k.a,{type:"primary",ghost:!0,className:Mt.a.button,style:{marginRight:"20px"},onClick:yr},"\u66F4\u6362\u7BA1\u7406\u5458"),hr&&b.a.createElement(k.a,{type:"primary",className:Mt.a.button,style:{marginRight:"40px"},onClick:Yr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Mt.a.list},b.a.createElement(Ge.a,{loading:ar.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},Qt.map(function(Je,ct){var yt,at,Pe,ze,Ie,$e,qe,pt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Mt.a.itemWrap,key:ct},b.a.createElement("a",{href:(yt=Je.user)===null||yt===void 0?void 0:yt.user_url,target:"_blank",className:Mt.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Mt.a.img,src:"".concat(Oe.a.IMG_SERVER,"/images/").concat((at=Je.user)===null||at===void 0?void 0:at.image_url)}),((Pe=Je.user)===null||Pe===void 0?void 0:Pe.shixun_manager)&&b.a.createElement("span",{className:Mt.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Mt.a.itemContent},b.a.createElement("p",{className:Mt.a.nameWrap},b.a.createElement("a",{href:Je.user.user_url,target:"_blank",className:Mt.a.name},(ze=Je.user)===null||ze===void 0?void 0:ze.name,Je.user.user_id===((Ie=Rr.userInfo)===null||Ie===void 0?void 0:Ie.user_id)?b.a.createElement("span",null,"\u6211"):null),b.a.createElement("div",{className:Mt.a.actionGroup},cr?($e=Je.user)!==null&&$e!==void 0&&$e.shixun_manager?null:b.a.createElement(mt.a,{overlay:b.a.createElement(Gt.a,{selectedKeys:[Je.editable?"1":"2"],onClick:function(){var Lt;wr(Fn.detail.identifier,Je.user.user_id,Je.editable,(Lt=Je.user)===null||Lt===void 0?void 0:Lt.name)}},b.a.createElement(Gt.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Gt.a.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},b.a.createElement("div",null,Je.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650")," ",b.a.createElement(Ht.a,{style:{fontSize:"14px",color:"#888888"}}))):Je.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650"),!((qe=Je.user)!==null&&qe!==void 0&&qe.shixun_manager)&&hr?b.a.createElement("a",{className:Mt.a.deletetitle,onClick:function(){var Lt;return Xr((Lt=Je.user)===null||Lt===void 0?void 0:Lt.user_id)}},"\u5220\u9664"):null)),b.a.createElement("p",{className:Mt.a.schoolWrap},b.a.createElement("span",{className:Mt.a.school},(pt=Je.user)===null||pt===void 0?void 0:pt.school_name)))))})))),Lr>10&&b.a.createElement("div",{className:Mt.a.countWrap},b.a.createElement(Me.a,{showQuickJumper:!1,showSizeChanger:!1,total:Lr,onChange:function(ct){return la(ct)},pageSize:10,current:kn.page}))),b.a.createElement(nt,{onReloadData:dr}),b.a.createElement(kt,va))},fn=Object(C.a)(function(Sn){var Yt=Sn.shixunsDetail,cn=Sn.loading,Rn=Sn.globalSetting,qt=Sn.user;return{shixunsDetail:Yt,globalSetting:Rn,user:qt,loading:cn}})(vn),Gn=s("11/R"),wn=s("Q9mQ"),rn=s("diRs"),Qn=s("jrin"),Zn=s("OaEy"),rr=s("2fM7"),$n=s("ZW9T"),Ar=s("RCxd"),pr=s("4SAo"),on=s.n(pr),Zt=K.a.TextArea,An=function(Yt){var cn=Yt.shixunsDetail,Rn=Yt.globalSetting,qt=Yt.loading,On=Yt.dispatch,gn=Yt.onFinish,In=gn===void 0?function(){}:gn,Fn=Object(p.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),ur=fe.a.useForm(),ar=Object(de.a)(ur,1),Rr=ar[0],Ir=function(){var Dr=Object(r.a)(t.a.mark(function br(Gr){var Lr,qr;return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,On({type:"shixunsDetail/getCustomScript",payload:{id:(Lr=cn.actionTabs.params)===null||Lr===void 0?void 0:Lr.id,compile:Gr.execute,excutive:Gr.compile}});case 2:qr=Kt.sent,tr(),qr&&In(qr==null?void 0:qr.shixun_script);case 5:case"end":return Kt.stop()}},br)}));return function(Gr){return Dr.apply(this,arguments)}}(),tr=function(){On({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(d.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:cn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:tr},b.a.createElement(fe.a,{form:Rr,scrollToFirstError:!0,layout:"vertical",onFinish:Ir},b.a.createElement(fe.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},b.a.createElement(Zt,{rows:4})),b.a.createElement(fe.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(Zt,{rows:4})),b.a.createElement("div",{className:on.a.footerWrap},b.a.createElement(fe.a.Item,null,b.a.createElement(k.a,{className:"mr5",size:"large",onClick:tr},"\u53D6\u6D88"),b.a.createElement(k.a,{size:"large",type:"primary",htmlType:"submit",loading:qt.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},jr=Object(C.a)(function(Sn){var Yt=Sn.shixunsDetail,cn=Sn.loading,Rn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Rn,loading:cn}})(An),Ln=s("Lai7"),qn=s.n(Ln),Un=s("EGTK"),pe=s("UGPy"),z=s.n(pe),Z=s("FrRK"),oe=s("9Bee"),xe=s("N3QO"),he=rr.a.Option,lt=function(Yt){var cn,Rn,qt=Yt.practiceSetting,On=Yt.dispatch,gn=Yt.shixunsDetail,In=Yt.user,Fn=Object(A.useState)(null),ur=Object(de.a)(Fn,2),ar=ur[0],Rr=ur[1],Ir=Object(A.useState)([]),tr=Object(de.a)(Ir,2),Dr=tr[0],br=tr[1],Gr=Object(A.useState)(!0),Lr=Object(de.a)(Gr,2),qr=Lr[0],sr=Lr[1],Kt=Object(A.useState)({}),Qt=Object(de.a)(Kt,2),Jt=Qt[0],Xn=Qt[1],ir=Object(A.useState)([]),kn=Object(de.a)(ir,2),lr=kn[0],hr=kn[1],cr=Object(A.useState)(),Zr=Object(de.a)(cr,2),dr=Zr[0],la=Zr[1],Xr=Object(A.useState)(),yr=Object(de.a)(Xr,2),wr=yr[0],Hr=yr[1],Yr=Object(A.useState)([]),wa=Object(de.a)(Yr,2),va=wa[0],Je=wa[1],ct=Object(A.useState)({}),yt=Object(de.a)(ct,2),at=yt[0],Pe=yt[1],ze=Object(A.useRef)(null),Ie=Object(A.useRef)(!0),$e=Object(A.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),qe=Object(A.useRef)(null),pt=qt.id,it=qt.is_published,Lt=at.frequence_image,Vt=Lt===void 0?[]:Lt,hn=at.environments,sn=hn===void 0?[]:hn,un=at.choice_small_type,ln=un===void 0?[]:un,Kn=at.other_image,xn=Kn===void 0?[]:Kn,Ur=Jt.name,Pr=Jt.description,Jr=Jt.authorization,Fr=Jt.small_type,ta=Fr===void 0?[]:Fr;Object(A.useEffect)(function(){if(ar===null)return;Vn(),ze.current.scrollTop=0},[ar]),Object(A.useEffect)(function(){if(!pt)return;Or()},[pt]),Object(A.useEffect)(function(){return ar===null?void 0:(zn(),function(){clearTimeout(qe.current)})},[ar,Dr,lr,dr,wr]);var zn=function(){clearTimeout(qe.current),qe.current=setTimeout(function(){!Object(ie.isEqual)($e.current.activeId,ar)||!Object(ie.isEqual)($e.current.selectId,Dr)||!Object(ie.isEqual)($e.current.serviceConfigList,lr)||!Object(ie.isEqual)($e.current.evaluateScript,dr)||!Object(ie.isEqual)($e.current.evaluationScript,wr)?On({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):On({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},Or=function(){var Tr=Object(r.a)(t.a.mark(function Er(){var Mr,or,da,ya;return t.a.wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:return sr(!0),Oa.next=3,Object(m.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get"});case 3:Mr=Oa.sent,Mr.status===0&&(Pe(Object(G.a)({},Mr.data)),sr(!1),Mr!=null&&(or=Mr.data)!==null&&or!==void 0&&or.id?($e.current.activeId=Mr==null||((da=Mr.data)===null||da===void 0)?void 0:da.id,Rr(Mr==null||((ya=Mr.data)===null||ya===void 0)?void 0:ya.id)):Rr(null));case 5:case"end":return Oa.stop()}},Er)}));return function(){return Tr.apply(this,arguments)}}(),Vn=function(){var Tr=Object(r.a)(t.a.mark(function Er(){var Mr,or,da,ya,_a;return t.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.next=2,Object(m.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:ar}});case 2:_a=ha.sent,Xn(_a.data),$e.current.selectId=(Mr=_a.data)===null||Mr===void 0?void 0:Mr.choice_small_type,br((or=_a.data)===null||or===void 0?void 0:or.choice_small_type),$e.current.serviceConfigList=(da=_a.data)===null||da===void 0?void 0:da.shixun_service_configs,hr((ya=_a.data)===null||ya===void 0?void 0:ya.shixun_service_configs),$e.current.evaluateScript=_a.data.evaluate_script,la(_a.data.evaluate_script),$e.current.evaluationScript=_a.data.choice_standard_scripts,Hr(_a.data.choice_standard_scripts),Je(_a.data.standard_scripts);case 13:case"end":return ha.stop()}},Er)}));return function(){return Tr.apply(this,arguments)}}(),En=function(){var Er,Mr=function(){C.d.push("/shixuns/".concat(pt,"/challenges")),On({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};qt!=null&&(Er=qt.sideBar)!==null&&Er!==void 0&&Er.confirmLeave?d.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(){Mr()}}):Mr()},Wn=function(){var Tr=Object(r.a)(t.a.mark(function Er(){var Mr,or,da,ya=arguments;return t.a.wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:if(Mr=ya.length>0&&ya[0]!==void 0?ya[0]:!1,!Object(_t.b)(On,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Oa.next=3;break}return Oa.abrupt("return");case 3:return or={sub_type:Dr,main_type:ar,shixun:{mirror_script_id:wr},shixun_info:{evaluate_script:dr},shixun_service_configs:lr.map(function(ha){return{mirror_repository_id:ha.mirror_repository_id,cpu_limit:ha.cpu_limit,lower_cpu_limit:ha.lower_cpu_limit,memory_limit:ha.memory_limit,request_limit:ha.request_limit,resource_limit:ha.resource_limit}})},Oa.next=6,Object(m.a)("/api/shixuns/".concat(pt),{method:"put",body:or});case 6:da=Oa.sent,da.status===0&&(h.b.success("\u7F16\u8F91\u6210\u529F"),$e.current={activeId:ar,selectId:Dr,serviceConfigList:lr,evaluateScript:dr,evaluationScript:wr},On({type:"practiceSetting/getCommonData",payload:{id:pt}}),On({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Oa.stop()}},Er)}));return function(){return Tr.apply(this,arguments)}}(),zr=ta.filter(function(Tr){return Dr.includes(Tr.id)}),sa=function(){En()},gr=function(Er,Mr,or){var da=lr.map(function(ya,_a){return _a===or?Object(G.a)(Object(G.a)({},ya),{},Object(Qn.a)({},Mr,Er)):ya});hr(da)},ra=function(){if(Object(_t.b)(On,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;On({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:pt}}})},Ea=function(){var Tr=Object(r.a)(t.a.mark(function Er(Mr){var or;return t.a.wrap(function(ya){for(;;)switch(ya.prev=ya.next){case 0:return ya.next=2,On({type:"shixunsDetail/getScriptContent",payload:{id:pt,script_id:Mr}});case 2:or=ya.sent,or&&la(or.content);case 4:case"end":return ya.stop()}},Er)}));return function(Mr){return Tr.apply(this,arguments)}}(),ca=function(Er){d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",b.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var Mr=Object(r.a)(t.a.mark(function da(){return t.a.wrap(function(_a){for(;;)switch(_a.prev=_a.next){case 0:return _a.next=2,Ea(Er);case 2:d.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:b.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return _a.stop()}},da)}));function or(){return Mr.apply(this,arguments)}return or}()})},xa=function(Er,Mr){var or=lr[0]?[lr[0]]:[];Mr.forEach(function(da){var ya=lr.find(function(ha){return ha.mirror_repository_id===Number(da.key)});if(ya)or.push(ya);else{var _a=ta.find(function(ha){return ha.id===Number(da.key)});if(_a.mirror_name){var Oa={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(da.key),name:_a.mirror_name,request_limit:10};or.push(Oa)}}}),hr(or),br(Er)};return b.a.createElement("div",{className:z.a.practice},b.a.createElement(Un.a,{loading:qr,skin:"night",className:z.a.left,dispatch:On,value:ar,data:sn,otherData:xn,tags:Vt,onChange:function(Er){return Rr(Er)}}),b.a.createElement("div",{className:z.a.right},b.a.createElement("header",null,b.a.createElement("div",{className:z.a.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",ar===null?"\u2014 \u2014":Ur)),b.a.createElement("div",{className:z.a.content,ref:ze},ar===null&&b.a.createElement(Ct.a,{image:qn.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),ar!==null&&b.a.createElement("div",{className:z.a.des},b.a.createElement("div",{className:z.a.mainBody},b.a.createElement(oe.a,{value:Pr})),b.a.createElement("div",{className:z.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:z.a.selectBox},b.a.createElement(rr.a,{onChange:function(Er,Mr){return xa(Er,Mr)},getPopupContainer:function(Er){return Er.parentNode},mode:"multiple",bordered:!1,value:Dr,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},ta.map(function(Tr,Er){return b.a.createElement(he,{key:Tr.id,value:Tr.id},Tr.type_name)})),b.a.createElement("div",{className:z.a.smallType},zr.map(function(Tr){return Tr.description?b.a.createElement("span",{key:Tr.id},Tr.description):null}))),!(gn!=null&&(cn=gn.detail)!==null&&cn!==void 0&&cn.is_jupyter_lab)&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:z.a.title},"\u8BC4\u6D4B\u811A\u672C"),b.a.createElement("div",{className:z.a.evaluating},b.a.createElement("div",{className:z.a.evaluatingLabel},it&&b.a.createElement("div",{onClick:function(){if(Object(_t.b)(On,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:z.a.mask}),b.a.createElement(rr.a,{style:{width:400},bordered:!1,getPopupContainer:function(Er){return Er.parentNode},value:wr,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(Er){ca(Er),Hr(Er)}},(va||[]).map(function(Tr,Er){return b.a.createElement(he,{value:parseInt(Tr.id),name:Tr.scptname,key:Er},Tr.scptname)})),b.a.createElement("span",{className:z.a.evaluatingS1,onClick:ra},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(rn.a,{overlayClassName:z.a.popover,placement:"bottomLeft",content:b.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",b.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",b.a.createElement("br",null),"challengeProgramNames",b.a.createElement("br",null),"sourceClassNames",b.a.createElement("br",null),b.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"src/step1/HelloWorld.java",b.a.createElement("br",null),"src/step2/Other.java",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"step1.HelloWorld",b.a.createElement("br",null),"step2.Other",b.a.createElement("br",null),b.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",b.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',b.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',b.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',b.a.createElement("br",null),'" "step2.Other")',b.a.createElement("br",null),b.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},b.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},b.a.createElement(Ar.a,null)))),b.a.createElement($n.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:dr,onChange:function(Er){if(Ie.current){Ie.current=!1;return}la(Er),Object(_t.b)(On,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Ie.current=!0,la($e.current.evaluateScript)},200)}}))),((Rn=gn.detail)===null||Rn===void 0?void 0:Rn.identity)<3&&!!lr.length&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:z.a.title},"\u670D\u52A1\u914D\u7F6E"),b.a.createElement("div",{className:z.a.serviceSettingWrap},lr==null?void 0:lr.map(function(Tr,Er){return b.a.createElement("div",{key:Er,className:"mb30"},b.a.createElement("div",null,b.a.createElement("span",{className:"font16"},Tr.name)),b.a.createElement("div",{className:z.a.serviceBox},b.a.createElement("label",{className:z.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),b.a.createElement(K.a,{className:z.a.serviceSetInput,value:Tr.cpu_limit,disabled:it,onChange:function(or){return gr(or.target.value,"cpu_limit",Er)}})),b.a.createElement("div",{className:z.a.serviceBox},b.a.createElement("label",{className:z.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),b.a.createElement(K.a,{className:z.a.serviceSetInput,value:Tr.lower_cpu_limit,disabled:it,onChange:function(or){return gr(or.target.value,"lower_cpu_limit",Er)}})),b.a.createElement("div",{className:z.a.serviceBox},b.a.createElement("label",{className:z.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),b.a.createElement(K.a,{className:z.a.serviceSetInput,value:Tr.memory_limit,disabled:it,onChange:function(or){return gr(or.target.value,"memory_limit",Er)}})),b.a.createElement("div",{className:z.a.serviceBox},b.a.createElement("label",{className:z.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),b.a.createElement(K.a,{className:z.a.serviceSetInput,value:Tr.request_limit,style:{width:300},disabled:it,onChange:function(or){return gr(or.target.value,"request_limit",Er)}}),b.a.createElement("label",{className:z.a.serviceSetTip},"\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%")),b.a.createElement("div",{className:z.a.serviceBox},b.a.createElement("label",{className:z.a.serviceSetLeft},"\u78C1\u76D8\u9650\u5236(K)\uFF1A"),b.a.createElement(K.a,{className:z.a.serviceSetInput,value:Tr.resource_limit,style:{width:300},disabled:it,maxLength:8,onChange:function(or){var da=or.target.value,ya=/^\d*(\.\d*)?$/;da.match(ya)&&gr(or.target.value,"resource_limit",Er)}})))}))))),b.a.createElement("div",{className:z.a.btns},b.a.createElement(k.a,{size:"large",style:{marginRight:20},onClick:sa},"\u53D6\u6D88"),b.a.createElement(k.a,{size:"large",type:"primary",disabled:ar===null,onClick:function(){return Wn()}},"\u4FDD\u5B58"))),b.a.createElement(Z.a,null),b.a.createElement(jr,{onFinish:function(Er){return la(Er)}}),b.a.createElement(xe.a,null))},an=Object(C.a)(function(Sn){var Yt=Sn.practiceSetting,cn=Sn.globalSetting,Rn=Sn.shixunsDetail,qt=Sn.user;return{practiceSetting:Yt,globalSetting:cn,shixunsDetail:Rn,user:qt}})(lt),Nn=s("g9YV"),Yn=s("wCAj"),tn=s("5Dmo"),Cn=s("3S7+"),Jn=s("P5Jw"),$r=s("wd/R"),ga=s.n($r),pa=s("3d99"),mr=s.n(pa),za=s("Lf5v"),ja=s("xKgJ"),Ra=s("lzim"),Ha=b.a.Fragment,Sa=function(Yt){var cn,Rn,qt,On,gn=Yt.globalSetting,In=Yt.dispatch,Fn=Yt.practiceSetting,ur=Yt.shixunsDetail,ar=Yt.user,Rr=Object(p.a)(Yt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Ir=Fn.id,tr=Object(A.useState)([]),Dr=Object(de.a)(tr,2),br=Dr[0],Gr=Dr[1],Lr=Object(A.useState)({}),qr=Object(de.a)(Lr,2),sr=qr[0],Kt=qr[1],Qt=Object(A.useState)(!1),Jt=Object(de.a)(Qt,2),Xn=Jt[0],ir=Jt[1],kn=Object(A.useState)(!0),lr=Object(de.a)(kn,2),hr=lr[0],cr=lr[1],Zr=Object(A.useState)(!1),dr=Object(de.a)(Zr,2),la=dr[0],Xr=dr[1],yr=Object(A.useState)(!1),wr=Object(de.a)(yr,2),Hr=wr[0],Yr=wr[1],wa=Object(A.useState)([]),va=Object(de.a)(wa,2),Je=va[0],ct=va[1],yt=Object(A.useState)(!1),at=Object(de.a)(yt,2),Pe=at[0],ze=at[1],Ie=Object(A.useState)({}),$e=Object(de.a)(Ie,2),qe=$e[0],pt=$e[1],it=Object(A.useState)({page:1,limit:10,total:0}),Lt=Object(de.a)(it,2),Vt=Lt[0],hn=Lt[1];Object(A.useEffect)(function(){if(!Ir)return;un()},[Ir]);var sn=function(Or){var Vn=Object(G.a)(Object(G.a)({},Vt),{},{page:Or});ct([]),hn(Vn),un(Vn)},un=function(){var zn=Object(r.a)(t.a.mark(function Or(Vn){var En,Wn,zr;return t.a.wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:return En={page:1,limit:10,total:0},Wn=Vn||En,ir(!0),gr.next=5,In({type:"shixunsDetail/getSetData",payload:Object(G.a)(Object(G.a)({},Wn),{},{id:Ir})});case 5:zr=gr.sent,zr!=null&&zr.data_sets&&(ir(!1),Gr(Object(be.a)(zr.data_sets)),hn(Object(G.a)(Object(G.a)({},Wn),{},{total:zr==null?void 0:zr.data_sets_count})),cr(!1),Kt(Object(G.a)({},zr)));case 7:case"end":return gr.stop()}},Or)}));return function(Vn){return zn.apply(this,arguments)}}(),ln=function(){return b.a.createElement("div",{className:mr.a.empty},b.a.createElement("img",{src:Ra.j,width:"258"}),b.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~"))},Kn=function(Or){console.log("selectedRowKeys changed: ",Or),ct(Or)},xn={selectedRowKeys:Je,columnWidth:70,onChange:Kn},Ur=function(Or){Object(i.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var Vn=Or?[Or]:Je;d.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var En=Object(r.a)(t.a.mark(function zr(){var sa,gr;return t.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:return Ea.next=2,Object(m.a)("/api/shixuns/".concat(Ir,"/destroy_data_sets.json"),{method:"Delete",body:{id:Vn}});case 2:sa=Ea.sent,sa.status===0&&(gr=Vn.length===br.length&&Vt.page>1?Vt.page-1:Vt.page,h.b.success("\u5220\u9664\u6210\u529F"),un(Object(G.a)(Object(G.a)({},Vt),{},{page:gr})),ct([]));case 4:case"end":return Ea.stop()}},zr)}));function Wn(){return En.apply(this,arguments)}return Wn}()})},Pr=function(){var zn=Object(r.a)(t.a.mark(function Or(){var Vn,En,Wn,zr,sa;return t.a.wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:if(Vn=qe.title,En=null,console.log(Vn,"title"),!(Vn==="")){ra.next=7;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",pt(Object(G.a)(Object(G.a)({},qe),{},{errorDes:En})),ra.abrupt("return");case 7:if(Wn=br.find(function(Ea){return Ea.id===(qe==null?void 0:qe.id)}).title,!(Vn===Wn.substring(0,Wn.lastIndexOf("."))||Vn===Wn)){ra.next=12;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",pt(Object(G.a)(Object(G.a)({},qe),{},{errorDes:En})),ra.abrupt("return");case 12:return zr=Wn.includes(".")?Wn.substring(Wn.lastIndexOf("."),Wn.length):"",ra.next=15,Object(m.a)("/api/shixuns/".concat(Ir,"/rename_data_sets.json"),{method:"post",body:{id:qe==null?void 0:qe.id,new_file_name:Vn+zr}});case 15:sa=ra.sent,sa.status===0&&(h.b.success("\u91CD\u547D\u540D\u6210\u529F"),un(Vt),Xr(!1),pt({}));case 17:case"end":return ra.stop()}},Or)}));return function(){return zn.apply(this,arguments)}}(),Jr=function(){var Or=qe.download_url;Fr(Or),h.b.success("\u590D\u5236\u6210\u529F"),Yr(!1),pt({})},Fr=function(Or){var Vn=Or,En=document.createElement("input");En.value=Vn,document.body.appendChild(En),En.select(),document.execCommand("Copy"),En.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(Or){return b.a.createElement(Cn.a,{title:Or},b.a.createElement("span",null,Or))}},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:function(Or){return b.a.createElement(Cn.a,{title:Or},b.a.createElement("span",null,Or||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:function(Or,Vn){return ga()(Vn.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(Or,Vn){return b.a.createElement("div",{className:mr.a.path},b.a.createElement(Cn.a,{title:Or},b.a.createElement("span",{className:mr.a.text},Or)),b.a.createElement(Jn.CopyToClipboard,{text:Or,onCopy:function(){return h.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(Cn.a,{title:"\u590D\u5236"},b.a.createElement("i",{className:"iconfont icon-fuzhi6 ml5"}))))}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author",align:"left",width:120},{title:"\u6587\u4EF6\u5927\u5C0F",dataIndex:"filesize",key:"filesize",align:"left",width:100},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"left",width:Object(ja.v)()?200:120,render:function(Or,Vn){return b.a.createElement("div",{className:mr.a.actionsBtns},b.a.createElement(Cn.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var Wn;pt(Object(ie.clone)(Object(G.a)(Object(G.a)({},Vn),{},{title:Vn!=null&&Vn.title.includes(".")?Vn==null||((Wn=Vn.title)===null||Wn===void 0)?void 0:Wn.substring(0,Vn.title.lastIndexOf(".")):Vn==null?void 0:Vn.title}))),Xr(!0),Object(i.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(ja.v)()&&b.a.createElement(Cn.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(i.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),pt(Object(ie.clone)(Vn)),Yr(!0)}})),Object(ja.v)()&&b.a.createElement(Cn.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(i.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(i.x)(Vn.title,Vn==null?void 0:Vn.download_url)}})),b.a.createElement(Cn.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(i.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),Ur(Vn.id)}})))}}];return b.a.createElement("div",{className:mr.a.dataset},b.a.createElement("div",{className:mr.a.header},b.a.createElement("div",{className:mr.a.title},"\u6570\u636E\u96C6(",Vt.total,")"),b.a.createElement("div",{className:mr.a.dataPath},b.a.createElement("span",{className:mr.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:sr==null?void 0:sr.folder_name,disabled:!0}),b.a.createElement(Jn.CopyToClipboard,{text:sr==null?void 0:sr.folder_name,onCopy:function(){return h.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(Cn.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u6570\u636E\u96C6\u8DEF\u5F84"},b.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})))),b.a.createElement("div",{className:mr.a.btns},b.a.createElement(k.a,{type:"primary",ghost:!0,onClick:function(){return Ur()},disabled:!Je.length},"\u5220\u9664"),b.a.createElement(k.a,{type:"primary",onClick:function(){return ze(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:mr.a.content},b.a.createElement(Ge.a,{loading:hr,active:!0,paragraph:{rows:5}},Vt.total?b.a.createElement(Yn.a,{rowSelection:xn,className:mr.a.customTable,dataSource:br,bordered:!1,rowKey:function(Or){return Or.id},rowClassName:mr.a.row,columns:ta,loading:Xn,pagination:{pageSize:Vt.limit,total:Vt.total,current:Vt.page,onChange:sn,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):ln())),b.a.createElement(za.a,{rootIdentifier:ur==null||((cn=ur.detail)===null||cn===void 0)?void 0:cn.root_identifier,wrapClassName:mr.a.uploadFileModal,id:Ir,containerId:ur==null||((Rn=ur.detail)===null||Rn===void 0)?void 0:Rn.id,local:gn==null||((qt=gn.setting)===null||qt===void 0)?void 0:qt.is_local,dispatch:In,visible:Pe,onClose:function(){return ze(!1)},onOK:un}),b.a.createElement(d.a,{title:"\u91CD\u547D\u540D",visible:la,onOk:Pr,centered:!0,wrapClassName:mr.a.renameModal,onCancel:function(){Xr(!1),pt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:mr.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(K.a,{value:qe==null?void 0:qe.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(Or){pt(Object(G.a)(Object(G.a)({},qe),{},{title:Or.target.value,errorDes:null}))},maxLength:60,suffix:"".concat((qe==null||((On=qe.title)===null||On===void 0)?void 0:On.length)||0,"/60")}),(qe==null?void 0:qe.errorDes)&&b.a.createElement("div",{className:mr.a.errorDes},qe==null?void 0:qe.errorDes))),b.a.createElement(d.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Hr,onOk:Jr,centered:!0,wrapClassName:mr.a.shareModal,onCancel:function(){Yr(!1),pt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:mr.a.fileName},"\u53D1\u9001\u94FE\u63A5\uFF0C\u522B\u4EBA\u53EF\u4EE5\u901A\u8FC7\u94FE\u63A5\u4E0B\u8F7D\u6587\u4EF6",b.a.createElement("span",null,"(\u6709\u6548\u671F\u4E3A3\u5929)")),b.a.createElement(K.a,{bordered:!1,addonBefore:"\u94FE\u63A5",value:qe==null?void 0:qe.download_url}))))},Ja=Object(C.a)(function(Sn){var Yt=Sn.globalSetting,cn=Sn.shixunsDetail,Rn=Sn.practiceSetting,qt=Sn.user;return{globalSetting:Yt,shixunsDetail:cn,user:qt,practiceSetting:Rn}})(Sa),ka=s("aHsQ"),li=s("sGsY"),oi=s("fKo2"),ua=s.n(oi),fa=s("BMKw"),oa=s.n(fa),ye=function(Yt){return Yt!=null&&Yt.length?Yt.filter(function(cn,Rn){return Rn!==0}).map(function(cn){return cn.val}).join("").substr(1):""},st=function(Yt){var cn=Yt.shixunsDetail,Rn=Yt.globalSetting,qt=Yt.loading,On=Yt.dispatch,gn=Yt.fileType,In=Yt.path,Fn=Yt.onFinish,ur=Fn===void 0?function(){}:Fn,ar=Object(w.i)(),Rr=Object(A.useState)(""),Ir=Object(de.a)(Rr,2),tr=Ir[0],Dr=Ir[1],br=Object(A.useState)([]),Gr=Object(de.a)(br,2),Lr=Gr[0],qr=Gr[1],sr=Object(A.useState)([]),Kt=Object(de.a)(sr,2),Qt=Kt[0],Jt=Kt[1],Xn=[Xt.OriginalPicturePath,Xt.ExpectPicturePath,Xt.PicturePath],ir=Xn.includes(gn);Object(A.useEffect)(function(){if(cn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Dr(In||""),kn()},[cn.actionTabs.key]);var kn=function(){var Xr=Object(r.a)(t.a.mark(function yr(){var wr,Hr,Yr,wa,va=arguments;return t.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Hr=va.length>0&&va[0]!==void 0?va[0]:"",ct.next=3,On({type:"shixunsDetail/getRepository",payload:{id:ar.id,path:Hr}});case 3:Yr=ct.sent,Hr===""&&!(Yr!=null&&(wr=Yr.trees)!==null&&wr!==void 0&&wr.length)&&h.b.warn("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Yr!=null&&Yr.trees&&(wa=Yr.trees.map(function(yt){return Object(G.a)(Object(G.a)({},yt),{name:yt.name,val:yt.name})}),Jt(wa||[]));case 6:case"end":return ct.stop()}},yr)}));return function(){return Xr.apply(this,arguments)}}(),lr=function(yr){var wr=ye(Lr),Hr="".concat(wr&&"".concat(wr,"/")).concat(yr);gn===Xt.Path?!(tr!=null&&tr.includes("".concat(Hr,"\uFF1B")))&&Dr("".concat(tr).concat(Hr,"\uFF1B")):gn===Xt.ExecPath&&Dr(Hr)},hr=function(yr){if(yr.type==="tree"){Lr.length?Lr.push({val:"/".concat(yr.val),path:yr.val}):Lr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(yr.val),path:yr.val}),qr(Lr);var wr=ye(Lr);ir&&Dr(wr),kn(wr)}},cr=function(yr,wr){var Hr=Lr.filter(function(wa,va){return va<=wr});qr(Hr);var Yr=ye(Hr);ir&&Dr(Yr),kn(Yr)},Zr=function(){var Xr=Object(r.a)(t.a.mark(function yr(){return t.a.wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:ur(tr),dr();case 2:case"end":return Hr.stop()}},yr)}));return function(){return Xr.apply(this,arguments)}}(),dr=function(){Dr(""),qr([]),Jt([]),On({type:"shixunsDetail/setActionTabs",payload:{}})},la=ye(Lr);return b.a.createElement(d.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:cn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:Zr,onCancel:dr},b.a.createElement("div",{className:oa.a.wrap},b.a.createElement("div",{className:oa.a.content},b.a.createElement("div",{className:oa.a.mainPathWrap},!!(Lr!=null&&Lr.length)&&Lr.map(function(Xr,yr){return b.a.createElement("a",{key:yr,onClick:function(){return cr(Xr,yr)}},Xr.val)})),!!(Qt!=null&&Qt.length)&&Qt.map(function(Xr,yr){return Xr.type==="tree"?b.a.createElement("a",{key:yr,onClick:function(){return hr(Xr)}},b.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(oa.a.colorBlue)}),la&&"".concat(la,"/"),Xr.name):b.a.createElement("a",{key:yr,onClick:function(){return lr("".concat(Xr.name))}},b.a.createElement("i",{className:"iconfont icon-zuoye ".concat(oa.a.colorBlue)}),la&&"".concat(la,"/"),Xr.name)})),b.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),b.a.createElement(K.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:tr,onChange:function(yr){return Dr(yr.target.value)}})))},It=Object(C.a)(function(Sn){var Yt=Sn.shixunsDetail,cn=Sn.loading,Rn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Rn,loading:cn.models.index}})(st),At=s("dhSg"),Wt=li.a.Countdown,Nt;(function(Sn){Sn[Sn.LoadingFail=1]="LoadingFail",Sn[Sn.Loading=2]="Loading",Sn[Sn.Finish=3]="Finish"})(Nt||(Nt={}));var Xt;(function(Sn){Sn.Path="path",Sn.ExecPath="exec_path",Sn.OriginalPicturePath="original_picture_path",Sn.ExpectPicturePath="expect_picture_path",Sn.PicturePath="picture_path"})(Xt||(Xt={}));var en=function(Yt){var cn=Yt.globalSetting,Rn=Yt.loading,qt=Yt.dispatch,On=Yt.practiceSetting,gn=Yt.shixunsDetail,In=Object(p.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Fn=Object(A.useState)(),ur=Object(de.a)(Fn,2),ar=ur[0],Rr=ur[1],Ir=Object(A.useState)(),tr=Object(de.a)(Ir,2),Dr=tr[0],br=tr[1],Gr=Object(A.useRef)(),Lr=Object(A.useState)(),qr=Object(de.a)(Lr,2),sr=qr[0],Kt=qr[1],Qt=Object(A.useState)(),Jt=Object(de.a)(Qt,2),Xn=Jt[0],ir=Jt[1],kn=Object(A.useState)(),lr=Object(de.a)(kn,2),hr=lr[0],cr=lr[1],Zr=Object(A.useRef)(!0),dr=Object(A.useState)(!0),la=Object(de.a)(dr,2),Xr=la[0],yr=la[1],wr=Object(A.useState)(700),Hr=Object(de.a)(wr,2),Yr=Hr[0],wa=Hr[1],va=Object(A.useState)(""),Je=Object(de.a)(va,2),ct=Je[0],yt=Je[1],at=Object(A.useRef)(),Pe=Object(w.i)();Object(A.useEffect)(function(){Ie()},[]);var ze=function(){var sn=Object(r.a)(t.a.mark(function un(){var ln,Kn,xn;return t.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,qt({type:"shixunsDetail/updateRepositoryFile",payload:{id:Pe.id,path:gn==null||((ln=gn.fileContent)===null||ln===void 0||((Kn=ln.params)===null||Kn===void 0))?void 0:Kn.path,content:ar,secret_repository:Xr?null:!0}});case 2:xn=Pr.sent,xn!=null&&xn.content&&(h.b.info("\u4FDD\u5B58\u6210\u529F"),qt({type:"practiceSetting/setSideBarTabs",payload:Object(G.a)(Object(G.a)({},On.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Pr.stop()}},un)}));return function(){return sn.apply(this,arguments)}}(),Ie=function(){var sn=Object(r.a)(t.a.mark(function un(){var ln,Kn,xn,Ur,Pr;return t.a.wrap(function(Fr){for(;;)switch(Fr.prev=Fr.next){case 0:return Fr.next=2,Object(o.X)({identifier:Pe.id});case 2:if(xn=Fr.sent,!(xn!=null&&(ln=xn.data)!==null&&ln!==void 0&&(Kn=ln.data_list)!==null&&Kn!==void 0&&Kn.length)){Fr.next=6;break}return At.a.publish("pod-restrict-data",{identifier:xn==null||((Ur=xn.data)===null||Ur===void 0)?void 0:Ur.identifier,data_list:xn==null||((Pr=xn.data)===null||Pr===void 0)?void 0:Pr.data_list}),Fr.abrupt("return");case 6:xn!=null&&xn.url&&yt(xn==null?void 0:xn.url);case 7:case"end":return Fr.stop()}},un)}));return function(){return sn.apply(this,arguments)}}(),$e=function(){var sn=Object(r.a)(t.a.mark(function un(){var ln;return t.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.next=2,Object(o.rb)({identifier:Pe.id});case 2:if(ln=xn.sent,!((ln==null?void 0:ln.status)!==0)){xn.next=5;break}return xn.abrupt("return");case 5:ln!=null&&ln.remainingSeconds?(Kt(Date.now()+ln.remainingSeconds*1e3),ir(ln.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(ln.remainingSeconds-300)*1e3)):qe();case 6:case"end":return xn.stop()}},un)}));return function(){return sn.apply(this,arguments)}}(),qe=function(){d.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",zIndex:9999,content:b.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F"),onOk:function(){var un=Object(r.a)(t.a.mark(function Kn(){return t.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:pt();case 1:case"end":return Ur.stop()}},Kn)}));function ln(){return un.apply(this,arguments)}return ln}()})},pt=function(){var sn=Object(r.a)(t.a.mark(function un(){var ln;return t.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return br(Nt.Loading),xn.next=3,Object(o.Cb)({identifier:Pe.id});case 3:if(ln=xn.sent,!((ln==null?void 0:ln.status)!==0)){xn.next=6;break}return xn.abrupt("return");case 6:br(Nt.Finish),yt(ln.url),Gr.current=ln.port,h.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return xn.stop()}},un)}));return function(){return sn.apply(this,arguments)}}(),it=function(){d.a.destroyAll(),d.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:b.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",b.a.createElement("span",null,b.a.createElement(Wt,{value:sr,format:"HH:mm:ss",onFinish:Lt})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:function(){var un=Object(r.a)(t.a.mark(function Kn(){var xn;return t.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,Object(o.a)({identifier:Pe.id});case 2:if(xn=Pr.sent,!(xn.status===0)){Pr.next=7;break}return Pr.next=6,$e();case 6:h.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Pr.stop()}},Kn)}));function ln(){return un.apply(this,arguments)}return ln}()})},Lt=function(){d.a.destroyAll(),d.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:b.a.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){pt()}})},Vt=function(un){qt({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},hn=function(){var sn=Object(r.a)(t.a.mark(function un(ln){return t.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.next=2,Object(o.Pb)({id:Pe.id,startup_file:ln});case 2:Ie(),qt({type:"practiceSetting/getCommonData",payload:Object(G.a)({},Pe)});case 4:case"end":return xn.stop()}},un)}));return function(ln){return sn.apply(this,arguments)}}();return b.a.createElement("div",{className:ua.a.warehouse},b.a.createElement(g.a,{className:"mt20 ml20 font14",align:"middle"},b.a.createElement(I.a,null,b.a.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),b.a.createElement(I.a,{flex:"300px",onClick:function(){return Vt(Xt.ExecPath)}},b.a.createElement(K.a,{value:ct})),b.a.createElement(I.a,{flex:"1"},b.a.createElement(k.a,{type:"primary",className:"ml10",onClick:function(){return Vt(Xt.ExecPath)}},"\u8BBE\u7F6E"))),b.a.createElement("iframe",{onLoad:function(un){},src:ct,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),b.a.createElement(It,{fileType:"path",path:"",onFinish:function(un){return hn(un)}}))},yn=Object(C.a)(function(Sn){var Yt=Sn.loading,cn=Sn.globalSetting,Rn=Sn.practiceSetting,qt=Sn.shixunsDetail;return{globalSetting:cn,loading:Yt,practiceSetting:Rn,shixunsDetail:qt}})(en),mn=function(Yt){var cn=Yt.tabsActive,Rn=Object(p.a)(Yt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,cn==="information"&&b.a.createElement(ot,null),cn==="warehouse"&&b.a.createElement(gt.default,null),cn==="level"&&b.a.createElement(Xe,Rn),cn==="collaborate"&&b.a.createElement(fn,Rn),cn==="setting"&&b.a.createElement(Gn.a,null),cn==="environment"&&b.a.createElement(an,Rn),cn==="dataset"&&b.a.createElement(Ja,null),cn==="service"&&b.a.createElement(yn,Rn))},jn=mn,Dn=s("Jv0p"),nn=s.n(Dn),Mn=s("luix"),bn=s.n(Mn),Bn=[{name:"\u57FA\u672C\u4FE1\u606F",icon:b.a.createElement("i",{className:"icon iconfont icon-jibenxinxi1"}),tabId:"information"},{name:"\u4EE3\u7801\u4ED3\u5E93",icon:b.a.createElement("i",{className:"icon iconfont icon-daimacangku"}),tabId:"warehouse"},{name:"\u4EFB\u52A1\u5173\u5361",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"level"},{name:"\u5B9E\u9A8C\u73AF\u5883",icon:b.a.createElement("i",{className:"icon iconfont icon-shiyanhuanjing"}),tabId:"environment"},{name:"\u6570\u636E\u96C6",icon:b.a.createElement("i",{className:"icon iconfont icon-shujuji",style:{fontSize:25}}),tabId:"dataset"},{name:"\u670D\u52A1",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"service"},{name:"\u5408\u4F5C\u4EBA\u5458",icon:b.a.createElement("i",{className:"icon iconfont icon-hezuochengyuan"}),tabId:"collaborate"},{name:"\u8BBE\u7F6E",icon:b.a.createElement("i",{className:"icon iconfont icon-shezhi5"}),tabId:"setting"}],Pn=function(Yt){var cn,Rn=Yt.globalSetting,qt=Yt.loading,On=Yt.dispatch,gn=Yt.shixunsDetail,In=Yt.practiceSetting,Fn=Object(p.a)(Yt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),ur=In.base_info_warning,ar=In.challenges_warning,Rr=In.id,Ir=In.repository_warning,tr=In.sideBar,Dr=In.service_warning,br=Object(w.h)(),Gr=Object(w.i)();Object(A.useEffect)(function(){var sr,Kt,Qt=br==null||((sr=br.query)===null||sr===void 0)?void 0:sr.tabId,Jt=br.pathname.split("/").length,Xn=gn!=null&&(Kt=gn.detail)!==null&&Kt!==void 0&&Kt.windows_vnc?Bn.filter(function(kn){return kn.tabId!=="dataset"}):Bn,ir=Xn.map(function(kn){return kn.tabId}).includes(Qt);if(Qt&&ir){On({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Qt}});return}if(Jt>4){On({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!Qt||Qt&&!ir){On({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[gn==null||((cn=gn.detail)===null||cn===void 0)?void 0:cn.windows_vnc]),Object(A.useEffect)(function(){return function(){On({type:"practiceSetting/setSideBarTabs",payload:Object(G.a)(Object(G.a)({},In.sideBar),{},{selectPath:""})})}},[Gr.id]);var Lr=function(Kt){var Qt;if(Kt===tr.tabsActive)return;var Jt=function(){C.d.push("/shixuns/".concat(Rr,"/edit?tabId=").concat(Kt)),On({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Kt,selectPath:"",confirmLeave:!1}})};In!=null&&(Qt=In.sideBar)!==null&&Qt!==void 0&&Qt.confirmLeave?d.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(){Jt()}}):Jt()},qr=function(){var Kt,Qt=gn!=null&&(Kt=gn.detail)!==null&&Kt!==void 0&&Kt.windows_vnc?Bn.filter(function(Jt){return Jt.tabId!=="dataset"}):Bn;return Qt.filter(function(Jt){var Xn;return gn!=null&&(Xn=gn.detail)!==null&&Xn!==void 0&&Xn.is_jupyter_lab?Jt.tabId!=="level":Jt.tabId!=="service"}).map(function(Jt){var Xn=Jt.name,ir=Jt.icon,kn=Jt.tabId;return b.a.createElement("div",{key:kn,className:In.sideBar.tabsActive===kn?nn.a.itemActive:nn.a.item,onClick:function(){return Lr(kn)}},ir,b.a.createElement("span",{className:nn.a.name},Xn),kn==="information"&&ur&&b.a.createElement(Cn.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:bn.a,alt:""})),kn==="level"&&ar&&b.a.createElement(Cn.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:bn.a,alt:""})),kn==="service"&&Dr&&b.a.createElement(Cn.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:bn.a,alt:""})),kn==="warehouse"&&Ir&&b.a.createElement(Cn.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},b.a.createElement("img",{src:bn.a,alt:""})))})};return b.a.createElement("div",{className:nn.a.sidebar},b.a.createElement("div",{className:nn.a.items},qr()),b.a.createElement("div",{className:nn.a.question},b.a.createElement(Cn.a,{placement:"right",title:"\u5E38\u89C1\u95EE\u9898"},b.a.createElement("span",{style:{cursor:"pointer"},onClick:function(){return window.open("https://www.educoder.net/forums/4692")}},b.a.createElement("img",{src:Ra.u,height:44,width:44,alt:""})))))},er=Object(C.a)(function(Sn){var Yt=Sn.loading,cn=Sn.globalSetting,Rn=Sn.shixunsDetail,qt=Sn.practiceSetting;return{globalSetting:cn,loading:Yt,practiceSetting:qt,shixunsDetail:Rn}})(Pn),vr=function(Yt){var cn=Yt.globalSetting,Rn=Yt.loading,qt=Yt.dispatch,On=Yt.practiceSetting,gn=Object(p.a)(Yt,["globalSetting","loading","dispatch","practiceSetting"]),In=On.sideBar,Fn=In.tabsActive,ur=Object(w.i)();return Object(A.useEffect)(function(){return qt({type:"globalSetting/headerFooterToggle",payload:!1}),qt({type:"shixunsDetail/getShixunsDetail",payload:ur}),qt({type:"shixunsDetail/getSettingsData",payload:ur}),function(){qt({type:"globalSetting/headerFooterToggle",payload:!0}),qt({type:"practiceSetting/setParams",payload:{id:""}})}},[]),b.a.createElement("div",{className:S.a.practiceSetting},b.a.createElement("div",{className:S.a.wrapHeader},b.a.createElement(P,null)),b.a.createElement("div",{className:S.a.wrapLayout},b.a.createElement("div",{className:S.a.wrapSidebar},b.a.createElement(er,null)),b.a.createElement("div",{className:S.a.wrapContent},b.a.createElement(jn,Object(L.a)({},gn,{tabsActive:On.sideBar.tabsActive})))))},Br=Y.default=Object(C.a)(function(Sn){var Yt=Sn.loading,cn=Sn.globalSetting,Rn=Sn.practiceSetting;return{globalSetting:cn,loading:Yt,practiceSetting:Rn}})(vr)},WYAk:function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){(function(){var p=L,A=p.lib,b=A.Base,y=p.enc,S=y.Utf8,T=p.algo,h=T.HMAC=b.extend({init:function(_,d){_=this._hasher=new _.init,typeof d=="string"&&(d=S.parse(d));var r=_.blockSize,c=r*4;d.sigBytes>c&&(d=_.finalize(d)),d.clamp();for(var t=this._oKey=d.clone(),a=this._iKey=d.clone(),n=t.words,i=a.words,f=0;f<r;f++)n[f]^=1549556828,i[f]^=909522486;t.sigBytes=a.sigBytes=c,this.reset()},reset:function(){var _=this._hasher;_.reset(),_.update(this._iKey)},update:function(_){return this._hasher.update(_),this},finalize:function(_){var d=this._hasher,r=d.finalize(_);d.reset();var c=d.finalize(this._oKey.clone().concat(r));return c}})})()})},WaYH:function(M,Y,s){"use strict";var L=s("rePB"),p=s("Ff2n"),A=s("VTBJ"),b=s("1OyB"),y=s("vuIU"),S=s("JX7q"),T=s("Ji7U"),h=s("LK+K"),_=s("cDcd"),d=s("TSYQ"),r=s.n(d),c=s("sboe"),t=s("OZM5"),a=function(P){var R=P.prefixCls,E=P.level,x=P.isStart,g=P.isEnd;if(!E)return null;for(var O="".concat(R,"-indent-unit"),I=[],D=0;D<E;D+=1){var N;I.push(_.createElement("span",{key:D,className:r()(O,(N={},Object(L.a)(N,"".concat(O,"-start"),x[D+1]),Object(L.a)(N,"".concat(O,"-end"),g[D+1]),Object(L.a)(N,"".concat(O,"-end-first-level"),!D&&g[0]),N))}))}return _.createElement("span",{"aria-hidden":"true",className:"".concat(R,"-indent")},I)},n=a,i=s("815F"),f="open",l="close",o="---",m=function(v){Object(T.a)(R,v);var P=Object(h.a)(R);function R(){var E;return Object(b.a)(this,R),E=P.apply(this,arguments),E.state={dragNodeHighlight:!1},E.onSelectorClick=function(x){var g=E.props.context.onNodeClick;g(x,Object(i.b)(E.props)),E.isSelectable()?E.onSelect(x):E.onCheck(x)},E.onSelectorDoubleClick=function(x){var g=E.props.context.onNodeDoubleClick;g(x,Object(i.b)(E.props))},E.onSelect=function(x){if(E.isDisabled())return;var g=E.props.context.onNodeSelect;x.preventDefault(),g(x,Object(i.b)(E.props))},E.onCheck=function(x){if(E.isDisabled())return;var g=E.props,O=g.disableCheckbox,I=g.checked,D=E.props.context.onNodeCheck;if(!E.isCheckable()||O)return;x.preventDefault();var N=!I;D(x,Object(i.b)(E.props),N)},E.onMouseEnter=function(x){var g=E.props.context.onNodeMouseEnter;g(x,Object(i.b)(E.props))},E.onMouseLeave=function(x){var g=E.props.context.onNodeMouseLeave;g(x,Object(i.b)(E.props))},E.onContextMenu=function(x){var g=E.props.context.onNodeContextMenu;g(x,Object(i.b)(E.props))},E.onDragStart=function(x){var g=E.props.context.onNodeDragStart;x.stopPropagation(),E.setState({dragNodeHighlight:!0}),g(x,Object(S.a)(E));try{x.dataTransfer.setData("text/plain","")}catch(O){}},E.onDragEnter=function(x){var g=E.props.context.onNodeDragEnter;x.preventDefault(),x.stopPropagation(),g(x,Object(S.a)(E))},E.onDragOver=function(x){var g=E.props.context.onNodeDragOver;x.preventDefault(),x.stopPropagation(),g(x,Object(S.a)(E))},E.onDragLeave=function(x){var g=E.props.context.onNodeDragLeave;x.stopPropagation(),g(x,Object(S.a)(E))},E.onDragEnd=function(x){var g=E.props.context.onNodeDragEnd;x.stopPropagation(),E.setState({dragNodeHighlight:!1}),g(x,Object(S.a)(E))},E.onDrop=function(x){var g=E.props.context.onNodeDrop;x.preventDefault(),x.stopPropagation(),E.setState({dragNodeHighlight:!1}),g(x,Object(S.a)(E))},E.onExpand=function(x){var g=E.props.context.onNodeExpand;g(x,Object(i.b)(E.props))},E.setSelectHandle=function(x){E.selectHandle=x},E.getNodeState=function(){var x=E.props.expanded;return E.isLeaf()?null:x?f:l},E.hasChildren=function(){var x=E.props.eventKey,g=E.props.context.keyEntities,O=g[x]||{},I=O.children;return!!(I||[]).length},E.isLeaf=function(){var x=E.props,g=x.isLeaf,O=x.loaded,I=E.props.context.loadData,D=E.hasChildren();return g===!1?!1:g||!I&&!D||I&&O&&!D},E.isDisabled=function(){var x=E.props.disabled,g=E.props.context.disabled;return!!(g||x)},E.isCheckable=function(){var x=E.props.checkable,g=E.props.context.checkable;return!g||x===!1?!1:g},E.syncLoadData=function(x){var g=x.expanded,O=x.loading,I=x.loaded,D=E.props.context,N=D.loadData,V=D.onNodeLoad;if(O)return;N&&g&&!E.isLeaf()&&(!E.hasChildren()&&!I&&V(Object(i.b)(E.props)))},E.renderSwitcher=function(){var x=E.props,g=x.expanded,O=x.switcherIcon,I=E.props.context,D=I.prefixCls,N=I.switcherIcon,V=O||N;if(E.isLeaf())return _.createElement("span",{className:r()("".concat(D,"-switcher"),"".concat(D,"-switcher-noop"))},typeof V=="function"?V(Object(A.a)(Object(A.a)({},E.props),{},{isLeaf:!0})):V);var F=r()("".concat(D,"-switcher"),"".concat(D,"-switcher_").concat(g?f:l));return _.createElement("span",{onClick:E.onExpand,className:F},typeof V=="function"?V(Object(A.a)(Object(A.a)({},E.props),{},{isLeaf:!1})):V)},E.renderCheckbox=function(){var x=E.props,g=x.checked,O=x.halfChecked,I=x.disableCheckbox,D=E.props.context.prefixCls,N=E.isDisabled(),V=E.isCheckable();if(!V)return null;var F=typeof V!="boolean"?V:null;return _.createElement("span",{className:r()("".concat(D,"-checkbox"),g&&"".concat(D,"-checkbox-checked"),!g&&O&&"".concat(D,"-checkbox-indeterminate"),(N||I)&&"".concat(D,"-checkbox-disabled")),onClick:E.onCheck},F)},E.renderIcon=function(){var x=E.props.loading,g=E.props.context.prefixCls;return _.createElement("span",{className:r()("".concat(g,"-iconEle"),"".concat(g,"-icon__").concat(E.getNodeState()||"docu"),x&&"".concat(g,"-icon_loading"))})},E.renderSelector=function(){var x=E.state.dragNodeHighlight,g=E.props,O=g.title,I=g.selected,D=g.icon,N=g.loading,V=g.data,F=E.props.context,W=F.prefixCls,K=F.showIcon,B=F.icon,k=F.draggable,G=F.loadData,ne=F.titleRender,fe=E.isDisabled(),de="".concat(W,"-node-content-wrapper"),Ee;if(K){var we=D||B;Ee=we?_.createElement("span",{className:r()("".concat(W,"-iconEle"),"".concat(W,"-icon__customize"))},typeof we=="function"?we(E.props):we):E.renderIcon()}else G&&N&&(Ee=E.renderIcon());var ce;typeof O=="function"?ce=O(V):ne?ce=ne(V):ce=O;var be=_.createElement("span",{className:"".concat(W,"-title")},ce);return _.createElement("span",{ref:E.setSelectHandle,title:typeof O=="string"?O:"",className:r()("".concat(de),"".concat(de,"-").concat(E.getNodeState()||"normal"),!fe&&(I||x)&&"".concat(W,"-node-selected"),!fe&&k&&"draggable"),draggable:!fe&&k||void 0,"aria-grabbed":!fe&&k||void 0,onMouseEnter:E.onMouseEnter,onMouseLeave:E.onMouseLeave,onContextMenu:E.onContextMenu,onClick:E.onSelectorClick,onDoubleClick:E.onSelectorDoubleClick,onDragStart:k?E.onDragStart:void 0},Ee,be)},E}return Object(y.a)(R,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var x=this.props.selectable,g=this.props.context.selectable;return typeof x=="boolean"?x:g}},{key:"render",value:function(){var x,g=this.props,O=g.eventKey,I=g.className,D=g.style,N=g.dragOver,V=g.dragOverGapTop,F=g.dragOverGapBottom,W=g.isLeaf,K=g.isStart,B=g.isEnd,k=g.expanded,G=g.selected,ne=g.checked,fe=g.halfChecked,de=g.loading,Ee=g.domRef,we=g.active,ce=g.onMouseMove,be=Object(p.a)(g,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ve=this.props.context,ue=ve.prefixCls,se=ve.filterTreeNode,q=ve.draggable,me=ve.keyEntities,re=this.isDisabled(),ie=Object(t.f)(be),Oe=me[O]||{},le=Oe.level,$=B[B.length-1];return _.createElement("div",Object.assign({ref:Ee,className:r()(I,"".concat(ue,"-treenode"),(x={},Object(L.a)(x,"".concat(ue,"-treenode-disabled"),re),Object(L.a)(x,"".concat(ue,"-treenode-switcher-").concat(k?"open":"close"),!W),Object(L.a)(x,"".concat(ue,"-treenode-checkbox-checked"),ne),Object(L.a)(x,"".concat(ue,"-treenode-checkbox-indeterminate"),fe),Object(L.a)(x,"".concat(ue,"-treenode-selected"),G),Object(L.a)(x,"".concat(ue,"-treenode-loading"),de),Object(L.a)(x,"".concat(ue,"-treenode-active"),we),Object(L.a)(x,"".concat(ue,"-treenode-leaf-last"),$),Object(L.a)(x,"drag-over",!re&&N),Object(L.a)(x,"drag-over-gap-top",!re&&V),Object(L.a)(x,"drag-over-gap-bottom",!re&&F),Object(L.a)(x,"filter-node",se&&se(Object(i.b)(this.props))),x)),style:D,onDragEnter:q?this.onDragEnter:void 0,onDragOver:q?this.onDragOver:void 0,onDragLeave:q?this.onDragLeave:void 0,onDrop:q?this.onDrop:void 0,onDragEnd:q?this.onDragEnd:void 0,onMouseMove:ce},ie),_.createElement(n,{prefixCls:ue,level:le,isStart:K,isEnd:B}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),R}(_.Component),w=function(P){return _.createElement(c.a.Consumer,null,function(R){return _.createElement(m,Object.assign({},P,{context:R}))})};w.displayName="TreeNode",w.defaultProps={title:o},w.isTreeNode=1;var C=Y.a=w},XIdC:function(M,Y,s){"use strict";var L=s("rePB"),p=s("ODXe"),A=s("Ff2n"),b=s("cDcd"),y=s.n(b),S=s("TSYQ"),T=s.n(S),h=s("6cGi"),_=s("4IlW"),d=b.forwardRef(function(r,c){var t,a=r.prefixCls,n=a===void 0?"rc-switch":a,i=r.className,f=r.checked,l=r.defaultChecked,o=r.disabled,m=r.loadingIcon,w=r.checkedChildren,C=r.unCheckedChildren,v=r.onClick,P=r.onChange,R=r.onKeyDown,E=Object(A.a)(r,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),x=Object(h.a)(!1,{value:f,defaultValue:l}),g=Object(p.a)(x,2),O=g[0],I=g[1];function D(W,K){var B=O;return o||(B=W,I(B),P==null||P(B,K)),B}function N(W){W.which===_.a.LEFT?D(!1,W):W.which===_.a.RIGHT&&D(!0,W),R==null||R(W)}function V(W){var K=D(!O,W);v==null||v(K,W)}var F=T()(n,i,(t={},Object(L.a)(t,"".concat(n,"-checked"),O),Object(L.a)(t,"".concat(n,"-disabled"),o),t));return b.createElement("button",Object.assign({},E,{type:"button",role:"switch","aria-checked":O,disabled:o,className:F,ref:c,onKeyDown:N,onClick:V}),m,b.createElement("span",{className:"".concat(n,"-inner")},O?w:C))});d.displayName="Switch",Y.a=d},Xsq0:function(M,Y,s){M.exports=s.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(M,Y,s){"use strict";s.r(Y),s.d(Y,"ResizableTextArea",function(){return fe});var L=s("wx14"),p=s("1OyB"),A=s("vuIU"),b=s("Ji7U"),y=s("LK+K"),S=s("cDcd"),T=s("VTBJ"),h=s("rePB"),_=s("Zm9Q"),d=s("Kwbf"),r=s("c+Xe"),c=s("m+aA"),t=s("bdgK"),a=new Map;function n(we){we.forEach(function(ce){var be,ve=ce.target;(be=a.get(ve))===null||be===void 0||be.forEach(function(ue){return ue(ve)})})}var i=new t.default(n),f=null,l=null;function o(we,ce){a.has(we)||(a.set(we,new Set),i.observe(we)),a.get(we).add(ce)}function m(we,ce){a.has(we)&&(a.get(we).delete(ce),a.get(we).size||(i.unobserve(we),a.delete(we)))}var w=function(we){Object(b.a)(be,we);var ce=Object(y.a)(be);function be(){return Object(p.a)(this,be),ce.apply(this,arguments)}return Object(A.a)(be,[{key:"render",value:function(){return this.props.children}}]),be}(S.Component),C=S.createContext(null);function v(we){var ce=we.children,be=we.onBatchResize,ve=S.useRef(0),ue=S.useRef([]),se=S.useContext(C),q=S.useCallback(function(me,re,ie){ve.current+=1;var Oe=ve.current;ue.current.push({size:me,element:re,data:ie}),Promise.resolve().then(function(){Oe===ve.current&&(be==null||be(ue.current),ue.current=[])}),se==null||se(me,re,ie)},[be,se]);return S.createElement(C.Provider,{value:q},ce)}function P(we){var ce=we.children,be=we.disabled,ve=S.useRef(null),ue=S.useRef(null),se=S.useContext(C),q=S.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),me=S.isValidElement(ce)&&Object(r.c)(ce),re=me?ce.ref:null,ie=S.useMemo(function(){return Object(r.a)(re,ve)},[re,ve]),Oe=S.useRef(we);Oe.current=we;var le=S.useCallback(function($){var J=Oe.current,te=J.onResize,Ae=J.data,Se=$.getBoundingClientRect(),ke=Se.width,rt=Se.height,ot=$.offsetWidth,gt=$.offsetHeight,Et=Math.floor(ke),Ct=Math.floor(rt);if(q.current.width!==Et||q.current.height!==Ct||q.current.offsetWidth!==ot||q.current.offsetHeight!==gt){var wt={width:Et,height:Ct,offsetWidth:ot,offsetHeight:gt};q.current=wt;var Qe=ot===Math.round(ke)?ke:ot,Ue=gt===Math.round(rt)?rt:gt,ft=Object(T.a)(Object(T.a)({},wt),{},{offsetWidth:Qe,offsetHeight:Ue});se==null||se(ft,$,Ae),te&&Promise.resolve().then(function(){te(ft,$)})}},[]);return S.useEffect(function(){var $=Object(c.a)(ve.current)||Object(c.a)(ue.current);return $&&!be&&o($,le),function(){return m($,le)}},[ve.current,be]),S.createElement(w,{ref:ue},me?S.cloneElement(ce,{ref:ie}):ce)}var R="rc-observer-key";function E(we){var ce=we.children,be=Object(_.a)(ce);return be.map(function(ve,ue){var se=(ve==null?void 0:ve.key)||"".concat(R,"-").concat(ue);return S.createElement(P,Object(L.a)({},we,{key:se}),ve)})}E.Collection=v;var x=E,g=s("bT9E"),O=s("TSYQ"),I=s.n(O),D=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,N=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],V={},F;function W(we){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=we.getAttribute("id")||we.getAttribute("data-reactid")||we.getAttribute("name");if(ce&&V[be])return V[be];var ve=window.getComputedStyle(we),ue=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),se=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),q=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),me=N.map(function(ie){return"".concat(ie,":").concat(ve.getPropertyValue(ie))}).join(";"),re={sizingStyle:me,paddingSize:se,borderSize:q,boxSizing:ue};return ce&&be&&(V[be]=re),re}function K(we){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),document.body.appendChild(F)),we.getAttribute("wrap")?F.setAttribute("wrap",we.getAttribute("wrap")):F.removeAttribute("wrap");var ue=W(we,ce),se=ue.paddingSize,q=ue.borderSize,me=ue.boxSizing,re=ue.sizingStyle;F.setAttribute("style","".concat(re,";").concat(D)),F.value=we.value||we.placeholder||"";var ie=Number.MIN_SAFE_INTEGER,Oe=Number.MAX_SAFE_INTEGER,le=F.scrollHeight,$;if(me==="border-box"?le+=q:me==="content-box"&&(le-=se),be!==null||ve!==null){F.value=" ";var J=F.scrollHeight-se;be!==null&&(ie=J*be,me==="border-box"&&(ie=ie+se+q),le=Math.max(ie,le)),ve!==null&&(Oe=J*ve,me==="border-box"&&(Oe=Oe+se+q),$=le>Oe?"":"hidden",le=Math.min(Oe,le))}return{height:le,minHeight:ie,maxHeight:Oe,overflowY:$,resize:"none"}}var B=s("Gytx"),k=s.n(B),G;(function(we){we[we.NONE=0]="NONE",we[we.RESIZING=1]="RESIZING",we[we.RESIZED=2]="RESIZED"})(G||(G={}));var ne=function(we){Object(b.a)(be,we);var ce=Object(y.a)(be);function be(ve){var ue;return Object(p.a)(this,be),ue=ce.call(this,ve),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(se){ue.textArea=se},ue.handleResize=function(se){var q=ue.state.resizeStatus,me=ue.props,re=me.autoSize,ie=me.onResize;if(q!==G.NONE)return;typeof ie=="function"&&ie(se),re&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var se=ue.props.autoSize;if(!se||!ue.textArea)return;var q=se.minRows,me=se.maxRows,re=K(ue.textArea,!1,q,me);ue.setState({textareaStyles:re,resizeStatus:G.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:G.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:G.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var se=ue.props,q=se.prefixCls,me=q===void 0?"rc-textarea":q,re=se.autoSize,ie=se.onResize,Oe=se.className,le=se.disabled,$=ue.state,J=$.textareaStyles,te=$.resizeStatus,Ae=Object(g.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Se=I()(me,Oe,Object(h.a)({},"".concat(me,"-disabled"),le));"value"in Ae&&(Ae.value=Ae.value||"");var ke=Object(T.a)(Object(T.a)(Object(T.a)({},ue.props.style),J),te===G.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return S.createElement(x,{onResize:ue.handleResize,disabled:!(re||ie)},S.createElement("textarea",Object(L.a)({},Ae,{className:Se,style:ke,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:G.NONE},ue}return Object(A.a)(be,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!k()(ue.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ue=this.textArea.selectionStart,se=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,se)}}catch(q){}}},{key:"render",value:function(){return this.renderTextArea()}}]),be}(S.Component),fe=ne,de=function(we){Object(b.a)(be,we);var ce=Object(y.a)(be);function be(ve){var ue;Object(p.a)(this,be),ue=ce.call(this,ve),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function(q){ue.resizableTextArea=q},ue.handleChange=function(q){var me=ue.props.onChange;ue.setValue(q.target.value,function(){ue.resizableTextArea.resizeTextarea()}),me&&me(q)},ue.handleKeyDown=function(q){var me=ue.props,re=me.onPressEnter,ie=me.onKeyDown;q.keyCode===13&&re&&re(q),ie&&ie(q)};var se=typeof ve.value=="undefined"||ve.value===null?ve.defaultValue:ve.value;return ue.state={value:se},ue}return Object(A.a)(be,[{key:"setValue",value:function(ue,se){"value"in this.props||this.setState({value:ue},se)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return S.createElement(fe,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ue){return"value"in ue?{value:ue.value}:null}}]),be}(S.Component),Ee=Y.default=de},ZJlW:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___XZ1Hd",flex_space_between:"flex_space_between___2oG4i",flex_box_vertical_center:"flex_box_vertical_center___1UWtb",flex_box_center_end:"flex_box_center_end___1o2xT",flex_box_column:"flex_box_column___SlAE0",list:"list___1HvWe",wrap:"wrap___10sri",lockWrap:"lockWrap___2djiu",li:"li___2W_zn",cover:"cover___2FS3L",img:"img___cyxrw",sign:"sign___1cxDK",name:"name___3tYlu",e:"e___1-orw",unit:"unit___ycOgg",tags:"tags___2FRpJ",tag:"tag___1e0XO"}},ZW9T:function(M,Y,s){"use strict";s.d(Y,"a",function(){return K});var L=s("k1fw"),p=s("miYZ"),A=s("tsqr"),b=s("rAM+"),y=s("tJVT"),S=s("PpiC"),T=s("cDcd"),h=s.n(T),_=s("bdgK"),d=s("oBTY"),r=s("9og8"),c=s("WmNS"),t=s.n(c),a={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},n={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},i={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"#include",content:'include "$0"'},{label:"printf",content:"printf($0)"},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"for",content:["for( ; ; ){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"#include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"#include <vector>",content:["#include <vector>"].join(`
`)},{label:"#include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"#include <string>",content:["#include <string>"].join(`
`)},{label:"#include <cmath>",content:["#include <cmath>"].join(`
`)}]},f={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},l=s("5VLF"),o=s.n(l),m={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},w=function(k,G){return G.map(function(ne){return{label:ne,kind:k.languages.CompletionItemKind.Keyword,insertText:ne}})},C=function(k){return Object.keys(m.tables).map(function(G){return{label:G,kind:k.languages.CompletionItemKind.Variable,insertText:G}})},v=function(k,G){var ne=m.tables[k];return ne?ne.map(function(fe){return{label:fe,kind:G.languages.CompletionItemKind.Field,insertText:fe}}):[]};function P(B,k,G,ne,fe){var de=k.getWordUntilPosition(G),Ee={startLineNumber:G.lineNumber,endLineNumber:G.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},we=ne.map(function(ce){return{label:ce,kind:B.languages.CompletionItemKind.Keyword,insertText:ce,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}});return fe.map(function(ce){we.push(Object(L.a)(Object(L.a)({},ce),{},{range:Ee}))}),we}var R=function(B){m.languages.map(function(fe){return B.languages.registerDocumentFormattingEditProvider(fe,{provideDocumentFormattingEdits:function(Ee,we,ce){return Object(r.a)(t.a.mark(function be(){var ve;return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return ve=o()(Ee.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),se.abrupt("return",[{range:Ee.getFullModelRange(),text:ve}]);case 2:case"end":return se.stop()}},be)}))()}}),fe});var k=i.quickKey.map(function(fe){return{label:fe.label,kind:B.languages.CompletionItemKind.Method,insertText:fe.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),G=f.quickKey.map(function(fe){return{label:fe.label,kind:B.languages.CompletionItemKind.Method,insertText:fe.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ne=n.quickKey.map(function(fe){return{label:fe.label,kind:B.languages.CompletionItemKind.Method,insertText:fe.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}});B.languages.registerCompletionItemProvider("cpp",{triggerCharacters:["."," ","#"].concat(Object(d.a)(i.keywords),Object(d.a)(i.quickKey.map(function(fe){return fe.label}))),provideCompletionItems:function(de,Ee){var we=de.getValueInRange({startLineNumber:Ee.lineNumber,startColumn:1,endLineNumber:Ee.lineNumber,endColumn:Ee.column}),ce=we.match(/cu/gim);console.log("match:",ce,Ee,we,de);var be=[],ve=Ee.lineNumber,ue=Ee.column,se=de.getValueInRange({startLineNumber:ve,startColumn:0,endLineNumber:ve,endColumn:ue}),q=se.trim().split(/\s+/),me=q[q.length-1];if(me.endsWith(".")){var re=me.slice(0,me.length-1);Object.keys(m.tables).includes(re)&&(be=Object(d.a)(v(re,B)))}else me==="."?be=[]:be=[].concat(Object(d.a)(C(B)),Object(d.a)(w(B,i.keywords)),Object(d.a)(k));return{suggestions:be}}}),B.languages.registerCompletionItemProvider("c",{triggerCharacters:["."," ","#"].concat(Object(d.a)(a.keywords)),provideCompletionItems:function(de,Ee){var we=de.getValueInRange({startLineNumber:Ee.lineNumber,startColumn:1,endLineNumber:Ee.lineNumber,endColumn:Ee.column}),ce=we.match(/cu/gim);console.log("match:",ce,Ee,we,de);var be=[],ve=Ee.lineNumber,ue=Ee.column,se=de.getValueInRange({startLineNumber:ve,startColumn:0,endLineNumber:ve,endColumn:ue}),q=se.trim().split(/\s+/),me=q[q.length-1];if(me.endsWith(".")){var re=me.slice(0,me.length-1);Object.keys(m.tables).includes(re)&&(be=Object(d.a)(v(re,B)))}else me==="."?be=[]:be=[].concat(Object(d.a)(C(B)),Object(d.a)(w(B,a.keywords)));return{suggestions:be}}}),B.languages.registerCompletionItemProvider("java",{triggerCharacters:["."," "].concat(Object(d.a)(n.keywords)),provideCompletionItems:function(de,Ee){var we=[],ce=Ee.lineNumber,be=Ee.column,ve=de.getValueInRange({startLineNumber:ce,startColumn:0,endLineNumber:ce,endColumn:be}),ue=ve.trim().split(/\s+/),se=ue[ue.length-1];if(se.endsWith(".")){var q=se.slice(0,se.length-1);Object.keys(m.tables).includes(q)&&(we=Object(d.a)(v(q,B)))}else se==="."?we=[]:we=[].concat(Object(d.a)(C(B)),Object(d.a)(w(B,n.keywords)),Object(d.a)(ne));return{suggestions:we}}}),B.languages.registerCompletionItemProvider("python",{triggerCharacters:["."," "].concat(Object(d.a)(f.keywords)),provideCompletionItems:function(de,Ee){var we=[],ce=Ee.lineNumber,be=Ee.column,ve=de.getValueInRange({startLineNumber:ce,startColumn:0,endLineNumber:ce,endColumn:be}),ue=ve.trim().split(/\s+/),se=ue[ue.length-1];if(se.endsWith(".")){var q=se.slice(0,se.length-1);Object.keys(m.tables).includes(q)&&(we=Object(d.a)(v(q,B)))}else se==="."?we=[]:we=[].concat(Object(d.a)(C(B)),Object(d.a)(w(B,f.keywords)),Object(d.a)(G));return{suggestions:we}}})},E="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",x=s("LvDl"),g=s("+ua5");function O(B){return/^\d+$/.test(B)?"".concat(B,"px"):B}function I(){}var D=!1,N={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function V(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=B;if(Array.isArray(B)){for(var G=0;G<B.length;G++){var ne=N[B[G]];if(ne)return ne}return k[0]}return N[k]||k}var F=null,W=Y.b=function(B){var k=B.width,G=k===void 0?"100%":k,ne=B.height,fe=ne===void 0?"100%":ne,de=B.value,Ee=B.language,we=Ee===void 0?"javascript":Ee,ce=B.style,be=ce===void 0?{}:ce,ve=B.options,ue=ve===void 0?{}:ve,se=B.overrideServices,q=se===void 0?{}:se,me=B.theme,re=me===void 0?"vs-dark":me,ie=B.onEditBlur,Oe=B.onSave,le=B.autoHeight,$=le===void 0?!1:le,J=B.forbidCopy,te=J===void 0?!1:J,Ae=B.onChange,Se=Ae===void 0?I:Ae,ke=B.editorDidMount,rt=ke===void 0?I:ke,ot=B.onFocus,gt=ot===void 0?I:ot,Et=B.filename,Ct=Et===void 0?"educoder.txt":Et,wt=B.errorLine,Qe=B.errorContent,Ue=Qe===void 0?"":Qe,ft=Object(S.a)(B,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),jt=Object(T.useRef)(),ht=Object(T.useRef)({}),_t=Object(T.useRef)(),Ye=Object(T.useRef)(!1),We=Object(T.useRef)(),Xe=Object(T.useState)(!1),Te=Object(y.a)(Xe,2),Me=Te[0],Ve=Te[1];function Ge(){var et;return jt.current&&(et=new _.default(function(Mt){var Ht=Object(b.a)(Mt),_n;try{for(Ht.s();!(_n=Ht.n()).done;){var vn=_n.value;(vn.target.offsetHeight>0||vn.target.offsetWidth>0)&&ht.current.instance.layout()}}catch(fn){Ht.e(fn)}finally{Ht.f()}}),et.observe(jt.current)),et}function Ze(){A.b.warn(decodeURIComponent(E))}var mt=function(){var Mt=ht.current.instance;if(de!=null&&Mt&&Me){var Ht=Mt.getModel();Ht&&de!==Ht.getValue()&&(D=!0,Ht.setValue(de),Mt.layout(),D=!1)}};Object(T.useEffect)(function(){_t.current&&clearTimeout(_t.current),_t.current=setTimeout(function(){mt()},500)},[de,Me,ht.current]),Object(T.useEffect)(function(){if(wt&&ht.current&&ht.current.instance){var et=ht.current.instance;et.changeViewZones(function(Ht){var _n=document.createElement("div");_n.style.padding="10px 20px",_n.style.width="calc(100% - 20px)",_n.className="my-error-line-wrp",_n.innerHTML=Ue,Ht.addZone({afterLineNumber:wt||11,heightInLines:3,domNode:_n})});var Mt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};et.addOverlayWidget(Mt),et.revealPositionInCenter({lineNumber:20,column:1})}},[wt,ht.current,Me]);function Pt(){var et=ht.current.instance;if(et){var Mt=et.getSelection(),Ht=ht.current.pastePos||{},_n=new F.Range(Ht.startLineNumber||Mt.endLineNumber,Ht.startColumn||Mt.endColumn,Ht.endLineNumber||Mt.endLineNumber,Ht.endColumn||Mt.endColumn);setTimeout(function(){et.executeEdits("",[{range:_n,text:""}])},300)}}function Gt(et){(window.navigator.platform.match("Mac")?et.metaKey:et.ctrlKey)&&et.keyCode==83&&(et.preventDefault(),Oe())}var dn=function(){if($&&ht.current.instance){var Mt=ht.current.instance.getContentHeight();xt(Mt<fe?fe:Mt)}else xt(fe)};function Tt(et){var Mt=document.createEvent("MouseEvents");Mt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),et.dispatchEvent(Mt)}function ut(et,Mt){var Ht=window.URL||window.webkitURL||window,_n=new Blob([Mt]),vn=document.createElementNS("http://www.w3.org/1999/xhtml","a");vn.href=Ht.createObjectURL(_n),vn.download=et,Tt(vn)}Object(T.useEffect)(function(){dn()},[dn]),Object(T.useEffect)(function(){jt.current&&!Me&&s.e(27).then(s.t.bind(null,"M/lh",7)).then(function(et){try{F=et,ht.current.instance=F.editor.create(jt.current,{value:de,language:V(we),theme:re,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},q);var Mt=ht.current.instance;if(rt(Mt,F),setTimeout(function(){dn(),ht.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){ut(Ct||"educoder.txt",Mt.getValue())}})},500),ht.current.subscription=Mt.onDidChangeModelContent(function(_n){Ye.current?clearTimeout(We.current):(dn(),Se(Mt.getValue(),_n)),We.current=setTimeout(function(){Ye.current=!1},500)}),window.Monaco||R(F),te&&(Mt.addCommand(F.KeyMod.CtrlCmd|F.KeyMod.Shift|F.KeyCode.KEY_V,function(){return Ze(),null}),Mt.addCommand(F.KeyMod.CtrlCmd|F.KeyCode.KEY_C,function(){return Ze(),null})),window.Monaco=F,ie&&Mt.onDidBlurEditorWidget(function(){ie(Mt.getValue())}),gt&&Mt.onDidFocusEditorText(function(){gt(Mt.getValue())}),te){Mt.addCommand(F.KeyMod.CtrlCmd|F.KeyCode.KEY_V,function(){return Ze(),null}),Mt.onDidPaste(function(_n){ht.current.pastePos=_n});try{window.addEventListener("paste",Pt)}catch(_n){}}var Ht=Ge();return Ve(!0),function(){var _n=ht.current.instance;_n.dispose();var vn=_n.getModel();vn&&vn.dispose(),ht.current.subscription&&ht.current.subscription.dispose(),te&&window.removeEventListener("paste",Pt),Ht.unobserve(jt.current)}}catch(_n){}})},[]),Object(T.useEffect)(function(){var et=ht.current.instance;if(et&&Me)return document.addEventListener("keydown",Gt,!1),function(){document.removeEventListener("keydown",Gt)}},[Oe,Me]),Object(T.useEffect)(function(){var et=ht.current.instance;if(et&&Me){var Mt=V(we);F.editor.setModelLanguage(et.getModel(),Mt),console.log("language:",we,et.getModel(),Mt)}},[we,Me]),Object(T.useEffect)(function(){var et=ht.current.instance;et&&Me&&F.editor.setTheme(re)},[re,Me]),Object(T.useEffect)(function(){var et=ht.current.instance;et&&Me&&(et.updateOptions(Object(L.a)({},ue)),setTimeout(function(){et.getModel().updateOptions(Object(L.a)({},ue))},200))},[JSON.stringify(ue),Me]),Object(T.useEffect)(function(){var et=ht.current.instance;et&&Me&&et.layout()},[G,fe,Me]);var je=Object(T.useState)(O(G)),tt=Object(y.a)(je,2),nt=tt[0],De=tt[1],Fe=Object(T.useState)(O(fe)),bt=Object(y.a)(Fe,2),dt=bt[0],xt=bt[1],kt=Object(L.a)(Object(L.a)({},be),{},{width:nt,height:dt});return h.a.createElement("div",{className:"my-monaco-editor",ref:jt,style:kt})};function K(B){var k=B.width,G=k===void 0?"100%":k,ne=B.height,fe=ne===void 0?"100%":ne,de=B.original,Ee=B.modified,we=B.language,ce=B.options,be=ce===void 0?{}:ce,ve=Object(T.useRef)(),ue=Object(T.useState)(null),se=Object(y.a)(ue,2),q=se[0],me=se[1];function re($){var J;return ve.current&&(J=new _.default(function(te){var Ae=Object(b.a)(te),Se;try{for(Ae.s();!(Se=Ae.n()).done;){var ke=Se.value;(ke.target.offsetHeight>0||ke.target.offsetWidth>0)&&$.layout()}}catch(rt){Ae.e(rt)}finally{Ae.f()}}),J.observe(ve.current)),J}Object(T.useEffect)(function(){ve.current&&s.e(27).then(s.t.bind(null,"M/lh",7)).then(function($){F=$;var J=F.editor.createDiffEditor(ve.current,Object(L.a)(Object(L.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},be),{},{wordWrap:!0}));me(J);var te=re(J);return function(){J.dispose();var Ae=J.getModel();Ae&&Ae.dispose(),te.unobserve(ve.current)}})},[]),Object(T.useEffect)(function(){q&&q.setModel({original:F.editor.createModel(de,we),modified:F.editor.createModel(Ee,we)})},[de,Ee,we,q]);var ie=O(G),Oe=O(fe),le={width:ie,height:Oe};return h.a.createElement("div",{className:"my-diff-editor",ref:ve,style:le})}},ZpRC:function(M,Y,s){"use strict";function L(r){return typeof r=="object"&&r!=null&&r.nodeType===1}function p(r,c){return(!c||r!=="hidden")&&r!=="visible"&&r!=="clip"}function A(r,c){if(r.clientHeight<r.scrollHeight||r.clientWidth<r.scrollWidth){var t=getComputedStyle(r,null);return p(t.overflowY,c)||p(t.overflowX,c)||function(a){var n=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(f){return null}}(a);return!!n&&(n.clientHeight<a.scrollHeight||n.clientWidth<a.scrollWidth)}(r)}return!1}function b(r,c,t,a,n,i,f,l){return i<r&&f>c||i>r&&f<c?0:i<=r&&l<=t||f>=c&&l>=t?i-r-a:f>c&&l<t||i<r&&l>t?f-c+n:0}var y=function(r,c){var t=window,a=c.scrollMode,n=c.block,i=c.inline,f=c.boundary,l=c.skipOverflowHiddenElements,o=typeof f=="function"?f:function(J){return J!==f};if(!L(r))throw new TypeError("Invalid target");for(var m=document.scrollingElement||document.documentElement,w=[],C=r;L(C)&&o(C);){if((C=C.parentElement)===m){w.push(C);break}C!=null&&C===document.body&&A(C)&&!A(document.documentElement)||C!=null&&A(C,l)&&w.push(C)}for(var v=t.visualViewport?t.visualViewport.width:innerWidth,P=t.visualViewport?t.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,x=r.getBoundingClientRect(),g=x.height,O=x.width,I=x.top,D=x.right,N=x.bottom,V=x.left,F=n==="start"||n==="nearest"?I:n==="end"?N:I+g/2,W=i==="center"?V+O/2:i==="end"?D:V,K=[],B=0;B<w.length;B++){var k=w[B],G=k.getBoundingClientRect(),ne=G.height,fe=G.width,de=G.top,Ee=G.right,we=G.bottom,ce=G.left;if(a==="if-needed"&&I>=0&&V>=0&&N<=P&&D<=v&&I>=de&&N<=we&&V>=ce&&D<=Ee)return K;var be=getComputedStyle(k),ve=parseInt(be.borderLeftWidth,10),ue=parseInt(be.borderTopWidth,10),se=parseInt(be.borderRightWidth,10),q=parseInt(be.borderBottomWidth,10),me=0,re=0,ie="offsetWidth"in k?k.offsetWidth-k.clientWidth-ve-se:0,Oe="offsetHeight"in k?k.offsetHeight-k.clientHeight-ue-q:0;if(m===k)me=n==="start"?F:n==="end"?F-P:n==="nearest"?b(E,E+P,P,ue,q,E+F,E+F+g,g):F-P/2,re=i==="start"?W:i==="center"?W-v/2:i==="end"?W-v:b(R,R+v,v,ve,se,R+W,R+W+O,O),me=Math.max(0,me+E),re=Math.max(0,re+R);else{me=n==="start"?F-de-ue:n==="end"?F-we+q+Oe:n==="nearest"?b(de,we,ne,ue,q+Oe,F,F+g,g):F-(de+ne/2)+Oe/2,re=i==="start"?W-ce-ve:i==="center"?W-(ce+fe/2)+ie/2:i==="end"?W-Ee+se+ie:b(ce,Ee,fe,ve,se+ie,W,W+O,O);var le=k.scrollLeft,$=k.scrollTop;F+=$-(me=Math.max(0,Math.min($+me,k.scrollHeight-ne+Oe))),W+=le-(re=Math.max(0,Math.min(le+re,k.scrollWidth-fe+ie)))}K.push({el:k,top:me,left:re})}return K};function S(r){return r===Object(r)&&Object.keys(r).length!==0}function T(r,c){c===void 0&&(c="auto");var t="scrollBehavior"in document.body.style;r.forEach(function(a){var n=a.el,i=a.top,f=a.left;n.scroll&&t?n.scroll({top:i,left:f,behavior:c}):(n.scrollTop=i,n.scrollLeft=f)})}function h(r){return r===!1?{block:"end",inline:"nearest"}:S(r)?r:{block:"start",inline:"nearest"}}function _(r,c){var t=!r.ownerDocument.documentElement.contains(r);if(S(c)&&typeof c.behavior=="function")return c.behavior(t?[]:y(r,c));if(t)return;var a=h(c);return T(y(r,a),a.behavior)}var d=Y.a=_},Zss7:function(M,Y,s){var L;(function(p){var A=/^\s+/,b=/\s+$/,y=0,S=p.round,T=p.min,h=p.max,_=p.random;function d(q,me){if(q=q||"",me=me||{},q instanceof d)return q;if(!(this instanceof d))return new d(q,me);var re=r(q);this._originalInput=q,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=S(100*this._a)/100,this._format=me.format||re.format,this._gradientType=me.gradientType,this._r<1&&(this._r=S(this._r)),this._g<1&&(this._g=S(this._g)),this._b<1&&(this._b=S(this._b)),this._ok=re.ok,this._tc_id=y++}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var q=this.toRgb();return(q.r*299+q.g*587+q.b*114)/1e3},getLuminance:function(){var q=this.toRgb(),me,re,ie,Oe,le,$;return me=q.r/255,re=q.g/255,ie=q.b/255,me<=.03928?Oe=me/12.92:Oe=p.pow((me+.055)/1.055,2.4),re<=.03928?le=re/12.92:le=p.pow((re+.055)/1.055,2.4),ie<=.03928?$=ie/12.92:$=p.pow((ie+.055)/1.055,2.4),.2126*Oe+.7152*le+.0722*$},setAlpha:function(q){return this._a=K(q),this._roundA=S(100*this._a)/100,this},toHsv:function(){var q=n(this._r,this._g,this._b);return{h:q.h*360,s:q.s,v:q.v,a:this._a}},toHsvString:function(){var q=n(this._r,this._g,this._b),me=S(q.h*360),re=S(q.s*100),ie=S(q.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+ie+"%)":"hsva("+me+", "+re+"%, "+ie+"%, "+this._roundA+")"},toHsl:function(){var q=t(this._r,this._g,this._b);return{h:q.h*360,s:q.s,l:q.l,a:this._a}},toHslString:function(){var q=t(this._r,this._g,this._b),me=S(q.h*360),re=S(q.s*100),ie=S(q.l*100);return this._a==1?"hsl("+me+", "+re+"%, "+ie+"%)":"hsla("+me+", "+re+"%, "+ie+"%, "+this._roundA+")"},toHex:function(q){return f(this._r,this._g,this._b,q)},toHexString:function(q){return"#"+this.toHex(q)},toHex8:function(q){return l(this._r,this._g,this._b,this._a,q)},toHex8String:function(q){return"#"+this.toHex8(q)},toRgb:function(){return{r:S(this._r),g:S(this._g),b:S(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+S(this._r)+", "+S(this._g)+", "+S(this._b)+")":"rgba("+S(this._r)+", "+S(this._g)+", "+S(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:S(B(this._r,255)*100)+"%",g:S(B(this._g,255)*100)+"%",b:S(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+S(B(this._r,255)*100)+"%, "+S(B(this._g,255)*100)+"%, "+S(B(this._b,255)*100)+"%)":"rgba("+S(B(this._r,255)*100)+"%, "+S(B(this._g,255)*100)+"%, "+S(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[f(this._r,this._g,this._b,!0)]||!1},toFilter:function(q){var me="#"+o(this._r,this._g,this._b,this._a),re=me,ie=this._gradientType?"GradientType = 1, ":"";if(q){var Oe=d(q);re="#"+o(Oe._r,Oe._g,Oe._b,Oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+ie+"startColorstr="+me+",endColorstr="+re+")"},toString:function(q){var me=!!q;q=q||this._format;var re=!1,ie=this._a<1&&this._a>=0,Oe=!me&&ie&&(q==="hex"||q==="hex6"||q==="hex3"||q==="hex4"||q==="hex8"||q==="name");return Oe?q==="name"&&this._a===0?this.toName():this.toRgbString():(q==="rgb"&&(re=this.toRgbString()),q==="prgb"&&(re=this.toPercentageRgbString()),(q==="hex"||q==="hex6")&&(re=this.toHexString()),q==="hex3"&&(re=this.toHexString(!0)),q==="hex4"&&(re=this.toHex8String(!0)),q==="hex8"&&(re=this.toHex8String()),q==="name"&&(re=this.toName()),q==="hsl"&&(re=this.toHslString()),q==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(q,me){var re=q.apply(null,[this].concat([].slice.call(me)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(C,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(q,me){return q.apply(null,[this].concat([].slice.call(me)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(g,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},d.fromRatio=function(q,me){if(typeof q=="object"){var re={};for(var ie in q)q.hasOwnProperty(ie)&&(ie==="a"?re[ie]=q[ie]:re[ie]=Ee(q[ie]));q=re}return d(q,me)};function r(q){var me={r:0,g:0,b:0},re=1,ie=null,Oe=null,le=null,$=!1,J=!1;return typeof q=="string"&&(q=ue(q)),typeof q=="object"&&(ve(q.r)&&ve(q.g)&&ve(q.b)?(me=c(q.r,q.g,q.b),$=!0,J=String(q.r).substr(-1)==="%"?"prgb":"rgb"):ve(q.h)&&ve(q.s)&&ve(q.v)?(ie=Ee(q.s),Oe=Ee(q.v),me=i(q.h,ie,Oe),$=!0,J="hsv"):ve(q.h)&&ve(q.s)&&ve(q.l)&&(ie=Ee(q.s),le=Ee(q.l),me=a(q.h,ie,le),$=!0,J="hsl"),q.hasOwnProperty("a")&&(re=q.a)),re=K(re),{ok:$,format:q.format||J,r:T(255,h(me.r,0)),g:T(255,h(me.g,0)),b:T(255,h(me.b,0)),a:re}}function c(q,me,re){return{r:B(q,255)*255,g:B(me,255)*255,b:B(re,255)*255}}function t(q,me,re){q=B(q,255),me=B(me,255),re=B(re,255);var ie=h(q,me,re),Oe=T(q,me,re),le,$,J=(ie+Oe)/2;if(ie==Oe)le=$=0;else{var te=ie-Oe;$=J>.5?te/(2-ie-Oe):te/(ie+Oe);switch(ie){case q:le=(me-re)/te+(me<re?6:0);break;case me:le=(re-q)/te+2;break;case re:le=(q-me)/te+4;break}le/=6}return{h:le,s:$,l:J}}function a(q,me,re){var ie,Oe,le;q=B(q,360),me=B(me,100),re=B(re,100);function $(Ae,Se,ke){return ke<0&&(ke+=1),ke>1&&(ke-=1),ke<1/6?Ae+(Se-Ae)*6*ke:ke<1/2?Se:ke<2/3?Ae+(Se-Ae)*(2/3-ke)*6:Ae}if(me===0)ie=Oe=le=re;else{var J=re<.5?re*(1+me):re+me-re*me,te=2*re-J;ie=$(te,J,q+1/3),Oe=$(te,J,q),le=$(te,J,q-1/3)}return{r:ie*255,g:Oe*255,b:le*255}}function n(q,me,re){q=B(q,255),me=B(me,255),re=B(re,255);var ie=h(q,me,re),Oe=T(q,me,re),le,$,J=ie,te=ie-Oe;if($=ie===0?0:te/ie,ie==Oe)le=0;else{switch(ie){case q:le=(me-re)/te+(me<re?6:0);break;case me:le=(re-q)/te+2;break;case re:le=(q-me)/te+4;break}le/=6}return{h:le,s:$,v:J}}function i(q,me,re){q=B(q,360)*6,me=B(me,100),re=B(re,100);var ie=p.floor(q),Oe=q-ie,le=re*(1-me),$=re*(1-Oe*me),J=re*(1-(1-Oe)*me),te=ie%6,Ae=[re,$,le,le,J,re][te],Se=[J,re,re,$,le,le][te],ke=[le,le,J,re,re,$][te];return{r:Ae*255,g:Se*255,b:ke*255}}function f(q,me,re,ie){var Oe=[de(S(q).toString(16)),de(S(me).toString(16)),de(S(re).toString(16))];return ie&&Oe[0].charAt(0)==Oe[0].charAt(1)&&Oe[1].charAt(0)==Oe[1].charAt(1)&&Oe[2].charAt(0)==Oe[2].charAt(1)?Oe[0].charAt(0)+Oe[1].charAt(0)+Oe[2].charAt(0):Oe.join("")}function l(q,me,re,ie,Oe){var le=[de(S(q).toString(16)),de(S(me).toString(16)),de(S(re).toString(16)),de(we(ie))];return Oe&&le[0].charAt(0)==le[0].charAt(1)&&le[1].charAt(0)==le[1].charAt(1)&&le[2].charAt(0)==le[2].charAt(1)&&le[3].charAt(0)==le[3].charAt(1)?le[0].charAt(0)+le[1].charAt(0)+le[2].charAt(0)+le[3].charAt(0):le.join("")}function o(q,me,re,ie){var Oe=[de(we(ie)),de(S(q).toString(16)),de(S(me).toString(16)),de(S(re).toString(16))];return Oe.join("")}d.equals=function(q,me){return!q||!me?!1:d(q).toRgbString()==d(me).toRgbString()},d.random=function(){return d.fromRatio({r:_(),g:_(),b:_()})};function m(q,me){me=me===0?0:me||10;var re=d(q).toHsl();return re.s-=me/100,re.s=k(re.s),d(re)}function w(q,me){me=me===0?0:me||10;var re=d(q).toHsl();return re.s+=me/100,re.s=k(re.s),d(re)}function C(q){return d(q).desaturate(100)}function v(q,me){me=me===0?0:me||10;var re=d(q).toHsl();return re.l+=me/100,re.l=k(re.l),d(re)}function P(q,me){me=me===0?0:me||10;var re=d(q).toRgb();return re.r=h(0,T(255,re.r-S(255*-(me/100)))),re.g=h(0,T(255,re.g-S(255*-(me/100)))),re.b=h(0,T(255,re.b-S(255*-(me/100)))),d(re)}function R(q,me){me=me===0?0:me||10;var re=d(q).toHsl();return re.l-=me/100,re.l=k(re.l),d(re)}function E(q,me){var re=d(q).toHsl(),ie=(re.h+me)%360;return re.h=ie<0?360+ie:ie,d(re)}function x(q){var me=d(q).toHsl();return me.h=(me.h+180)%360,d(me)}function g(q){var me=d(q).toHsl(),re=me.h;return[d(q),d({h:(re+120)%360,s:me.s,l:me.l}),d({h:(re+240)%360,s:me.s,l:me.l})]}function O(q){var me=d(q).toHsl(),re=me.h;return[d(q),d({h:(re+90)%360,s:me.s,l:me.l}),d({h:(re+180)%360,s:me.s,l:me.l}),d({h:(re+270)%360,s:me.s,l:me.l})]}function I(q){var me=d(q).toHsl(),re=me.h;return[d(q),d({h:(re+72)%360,s:me.s,l:me.l}),d({h:(re+216)%360,s:me.s,l:me.l})]}function D(q,me,re){me=me||6,re=re||30;var ie=d(q).toHsl(),Oe=360/re,le=[d(q)];for(ie.h=(ie.h-(Oe*me>>1)+720)%360;--me;)ie.h=(ie.h+Oe)%360,le.push(d(ie));return le}function N(q,me){me=me||6;for(var re=d(q).toHsv(),ie=re.h,Oe=re.s,le=re.v,$=[],J=1/me;me--;)$.push(d({h:ie,s:Oe,v:le})),le=(le+J)%1;return $}d.mix=function(q,me,re){re=re===0?0:re||50;var ie=d(q).toRgb(),Oe=d(me).toRgb(),le=re/100,$={r:(Oe.r-ie.r)*le+ie.r,g:(Oe.g-ie.g)*le+ie.g,b:(Oe.b-ie.b)*le+ie.b,a:(Oe.a-ie.a)*le+ie.a};return d($)},d.readability=function(q,me){var re=d(q),ie=d(me);return(p.max(re.getLuminance(),ie.getLuminance())+.05)/(p.min(re.getLuminance(),ie.getLuminance())+.05)},d.isReadable=function(q,me,re){var ie=d.readability(q,me),Oe,le;le=!1,Oe=se(re);switch(Oe.level+Oe.size){case"AAsmall":case"AAAlarge":le=ie>=4.5;break;case"AAlarge":le=ie>=3;break;case"AAAsmall":le=ie>=7;break}return le},d.mostReadable=function(q,me,re){var ie=null,Oe=0,le,$,J,te;re=re||{},$=re.includeFallbackColors,J=re.level,te=re.size;for(var Ae=0;Ae<me.length;Ae++)le=d.readability(q,me[Ae]),le>Oe&&(Oe=le,ie=d(me[Ae]));return d.isReadable(q,ie,{level:J,size:te})||!$?ie:(re.includeFallbackColors=!1,d.mostReadable(q,["#fff","#000"],re))};var V=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=d.hexNames=W(V);function W(q){var me={};for(var re in q)q.hasOwnProperty(re)&&(me[q[re]]=re);return me}function K(q){return q=parseFloat(q),(isNaN(q)||q<0||q>1)&&(q=1),q}function B(q,me){ne(q)&&(q="100%");var re=fe(q);return q=T(me,h(0,parseFloat(q))),re&&(q=parseInt(q*me,10)/100),p.abs(q-me)<1e-6?1:q%me/parseFloat(me)}function k(q){return T(1,h(0,q))}function G(q){return parseInt(q,16)}function ne(q){return typeof q=="string"&&q.indexOf(".")!=-1&&parseFloat(q)===1}function fe(q){return typeof q=="string"&&q.indexOf("%")!=-1}function de(q){return q.length==1?"0"+q:""+q}function Ee(q){return q<=1&&(q=q*100+"%"),q}function we(q){return p.round(parseFloat(q)*255).toString(16)}function ce(q){return G(q)/255}var be=function(){var q="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+q+")",ie="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Oe="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ie),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+ie),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+ie),hsva:new RegExp("hsva"+Oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ve(q){return!!be.CSS_UNIT.exec(q)}function ue(q){q=q.replace(A,"").replace(b,"").toLowerCase();var me=!1;if(V[q])q=V[q],me=!0;else if(q=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=be.rgb.exec(q))?{r:re[1],g:re[2],b:re[3]}:(re=be.rgba.exec(q))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=be.hsl.exec(q))?{h:re[1],s:re[2],l:re[3]}:(re=be.hsla.exec(q))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=be.hsv.exec(q))?{h:re[1],s:re[2],v:re[3]}:(re=be.hsva.exec(q))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=be.hex8.exec(q))?{r:G(re[1]),g:G(re[2]),b:G(re[3]),a:ce(re[4]),format:me?"name":"hex8"}:(re=be.hex6.exec(q))?{r:G(re[1]),g:G(re[2]),b:G(re[3]),format:me?"name":"hex"}:(re=be.hex4.exec(q))?{r:G(re[1]+""+re[1]),g:G(re[2]+""+re[2]),b:G(re[3]+""+re[3]),a:ce(re[4]+""+re[4]),format:me?"name":"hex8"}:(re=be.hex3.exec(q))?{r:G(re[1]+""+re[1]),g:G(re[2]+""+re[2]),b:G(re[3]+""+re[3]),format:me?"name":"hex"}:!1}function se(q){var me,re;return q=q||{level:"AA",size:"small"},me=(q.level||"AA").toUpperCase(),re=(q.size||"small").toLowerCase(),me!=="AA"&&me!=="AAA"&&(me="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:me,size:re}}M.exports?M.exports=d:!(L=function(){return d}.call(Y,s,Y,M),L!==void 0&&(M.exports=L))})(Math)},aBPH:function(M,Y,s){M.exports={wrap:"wrap___1eujs",modal:"modal___3NBln",title:"title___26WI_",path:"path___HzdTG",colorBlue:"colorBlue___3sufs",width240:"width240___DJhZ8",filePath:"filePath___13aFg"}},auZk:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___3qTxW",flex_space_between:"flex_space_between___3ea87",flex_box_vertical_center:"flex_box_vertical_center___3pRKY",flex_box_center_end:"flex_box_center_end___1knqW",flex_box_column:"flex_box_column___2jnF_",header:"header___1jftB","flex-center":"flex-center___2n5vX",title:"title___JYziX",schedule:"schedule___3dZqv",clickWarp:"clickWarp___Nw-Yv",num:"num___2kh_y",subject:"subject___3cFDa",btns:"btns___jk1p6",btn:"btn___2VKv5",simulate:"simulate___3PtJU",exit:"exit___3vlKF"}},bKvZ:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___2dXfh",flex_space_between:"flex_space_between___2BhUa",flex_box_vertical_center:"flex_box_vertical_center___15ksZ",flex_box_center_end:"flex_box_center_end___3JbfY",flex_box_column:"flex_box_column___1raS-",level:"level___W4wcy",left:"left___1XwUw",container:"container___16wfS",title:"title___2mqN2",listWrap:"listWrap___U0Df3",list:"list___2YNXa",s3:"s3___25biP",s2:"s2___3z1Hl",listActive:"listActive___1B21p",os:"os___2rPuf",btns:"btns___3SwkA",btnsWrap:"btnsWrap___30oSS",icon:"icon___IUU5o",btn:"btn___GdOfs",d1:"d1___uGVV7",d2:"d2___12wBt",shrink:"shrink___tBEU_",elseShrink:"elseShrink___1vnuF",right:"right___27lwg",addIcon:"addIcon___3jWNX"}},bQjk:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return function(p){var A=L,b=A.lib,y=b.CipherParams,S=A.enc,T=S.Hex,h=A.format,_=h.Hex={stringify:function(d){return d.ciphertext.toString(T)},parse:function(d){var r=T.parse(d);return y.create({ciphertext:r})}}}(),L.format.Hex})},bT9E:function(M,Y,s){"use strict";s.d(Y,"a",function(){return p});var L=s("VTBJ");function p(A,b){var y=Object(L.a)({},A);return Array.isArray(b)&&b.forEach(function(S){delete y[S]}),y}},bUJZ:function(M,Y){M.exports="data:image/png;base64,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"},biw7:function(M,Y,s){"use strict";var L=s("cDcd"),p=s.n(L),A=L.createContext(null);Y.a=A},c5Ni:function(M,Y,s){},cFMs:function(M,Y){M.exports="data:image/png;base64,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"},cRFk:function(M,Y,s){M.exports=s.p+"static/RepositoryNoneData.828085a8.png"},ch0t:function(M,Y,s){"use strict";s.r(Y);var L=s("+L6B"),p=s("2/Rp"),A=s("T2oS"),b=s("W9HT"),y=s("14J3"),S=s("BMrR"),T=s("2qtc"),h=s("kLXV"),_=s("jCWc"),d=s("kPKH"),r=s("qVdP"),c=s("jsC+"),t=s("k1fw"),a=s("lUTK"),n=s("BvKs"),i=s("9og8"),f=s("miYZ"),l=s("tsqr"),o=s("5Dmo"),m=s("3S7+"),w=s("tJVT"),C=s("PpiC"),v=s("Znn+"),P=s("ZTPi"),R=s("WmNS"),E=s.n(R),x=s("cDcd"),g=s.n(x),O=s("B6bo"),I=s.n(O),D=s("Ty5D"),N=s("9kvl"),V=s("BoS7"),F=s("Sdc0"),W=s("oBTY"),K=s("ozfa"),B=s("MJZm"),k=s("P5Jw"),G=s("5NDa"),ne=s("5rEg"),fe=s("y8nQ"),de=s("Vl3Y"),Ee=s("aBPH"),we=s.n(Ee),ce=function(je){var tt=je.shixunsDetail,nt=je.globalSetting,De=je.loading,Fe=je.user,bt=je.dispatch,dt=je.isRepository,xt=Object(C.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),kt=Object(D.h)(),et=Object(D.i)(),Mt=Object(x.useState)({}),Ht=Object(w.a)(Mt,2),_n=Ht[0],vn=Ht[1],fn=Object(x.useRef)(),Gn=de.a.useForm(),wn=Object(w.a)(Gn,1),rn=wn[0],Qn=Object(x.useState)(""),Zn=Object(w.a)(Qn,2),rr=Zn[0],$n=Zn[1];Object(x.useEffect)(function(){xt.visible&&rn.resetFields()},[xt.visible]),Object(x.useEffect)(function(){var on=sessionStorage.getItem("pathArray");if(on){var Zt=on.split(",").join("/"),An=Zt.indexOf("/")===0?Zt.substr(1):Zt;$n(An)}},[]),Object(x.useEffect)(function(){var on,Zt;fn.current=(on=kt.pathname)===null||on===void 0||((Zt=on.split("/"))===null||Zt===void 0)?void 0:Zt[2]},[]);var Ar=function(){var on=Object(i.a)(E.a.mark(function Zt(){var An,jr,Ln=arguments;return E.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:return An=Ln.length>0&&Ln[0]!==void 0?Ln[0]:{},Un.next=3,bt({type:"shixunsDetail/addRepositoryFile",payload:{id:et.id,message:An.commitMessage,content:"",path:(xt.defaultPath?xt.defaultPath+"/":"")+An.path+"/"+(An.file||".gitkeep"),secret_repository:dt?void 0:!0}});case 3:jr=Un.sent,jr!=null&&jr.url&&(l.b.success("\u6DFB\u52A0\u6210\u529F"),xt.onOK({path:(xt.defaultPath?xt.defaultPath+"/":"")+An.path+"/"+(An.file||".gitkeep"),name:An.path.split("/")[An.path.split("/").length-1]}),xt.onClose());case 5:case"end":return Un.stop()}},Zt)}));return function(){return on.apply(this,arguments)}}(),pr=function(){var Zt,An;N.d.push("/shixuns/".concat(fn.current,"/").concat((Zt=kt.pathname)===null||Zt===void 0||((An=Zt.split("/"))===null||An===void 0)?void 0:An[3]).concat(rr?"/master/shixun_show/".concat(rr):""))};return g.a.createElement(h.a,{width:"60%",centered:!0,visible:xt.visible,wrapClassName:we.a.modal,onOk:function(){rn.submit()},onCancel:xt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},g.a.createElement("section",{className:we.a.bg},g.a.createElement("div",{className:we.a.wrap},g.a.createElement(de.a,{className:"mt10",form:rn,scrollToFirstError:!0,layout:"vertical",onFinish:Ar,onChange:function(){var Zt,An,jr,Ln,qn=Object(t.a)({},rn.getFieldsValue()),Un=qn==null||((Zt=qn.path)===null||Zt===void 0)?void 0:Zt.split(""),pe=qn==null||((An=qn.file)===null||An===void 0)?void 0:An.split("");Un!=null&&(jr=Un.filter(function(z){return z=="/"}))!==null&&jr!==void 0&&jr.length&&(qn.path=qn.path.substring(0,qn.path.length-1)),pe!=null&&(Ln=pe.filter(function(z){return z=="/"}))!==null&&Ln!==void 0&&Ln.length&&(qn.file=qn.file.substring(0,qn.path.length-1)),rn.setFieldsValue(Object(t.a)({},qn)),vn(qn)}},g.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},g.a.createElement(S.a,null,g.a.createElement(d.a,null,g.a.createElement("span",{className:we.a.filePath},xt.defaultPath+"/")),g.a.createElement(d.a,{flex:"1"},g.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},g.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),g.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},g.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"large"})),g.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},g.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"}))))))},be=Object(N.a)(function(ut){var je=ut.shixunsDetail,tt=ut.loading,nt=ut.globalSetting,De=ut.user;return{shixunsDetail:je,globalSetting:nt,user:De,loading:tt.models.index}})(ce),ve=s("7ahc"),ue=function(je){var tt=je.shixunsDetail,nt=je.globalSetting,De=je.loading,Fe=je.user,bt=je.dispatch,dt=je.isRepository,xt=Object(C.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),kt=Object(D.h)(),et=Object(D.i)(),Mt=Object(x.useState)({}),Ht=Object(w.a)(Mt,2),_n=Ht[0],vn=Ht[1],fn=Object(x.useRef)(),Gn=de.a.useForm(),wn=Object(w.a)(Gn,1),rn=wn[0],Qn=Object(x.useState)(""),Zn=Object(w.a)(Qn,2),rr=Zn[0],$n=Zn[1];Object(x.useEffect)(function(){xt.visible&&rn.resetFields()},[xt.visible]),Object(x.useEffect)(function(){var on=sessionStorage.getItem("pathArray");if(on){var Zt=on.split(",").join("/"),An=Zt.indexOf("/")===0?Zt.substr(1):Zt;$n(An)}},[]),Object(x.useEffect)(function(){var on,Zt;fn.current=(on=kt.pathname)===null||on===void 0||((Zt=on.split("/"))===null||Zt===void 0)?void 0:Zt[2]},[]);var Ar=function(){var on=Object(i.a)(E.a.mark(function Zt(){var An,jr,Ln=arguments;return E.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:return An=Ln.length>0&&Ln[0]!==void 0?Ln[0]:{},Un.next=3,bt({type:"shixunsDetail/addRepositoryFile",payload:{id:et.id,message:An.commitMessage,content:An.codeMirror,path:(xt.defaultPath?xt.defaultPath+"/":"")+An.path,secret_repository:dt?void 0:!0}});case 3:jr=Un.sent,jr!=null&&jr.url&&(l.b.success("\u6DFB\u52A0\u6210\u529F"),xt.onOK({path:(xt.defaultPath?xt.defaultPath+"/":"")+An.path,name:An.path.split("/")[An.path.split("/").length-1]}),xt.onClose());case 5:case"end":return Un.stop()}},Zt)}));return function(){return on.apply(this,arguments)}}(),pr=function(){var Zt,An;N.d.push("/shixuns/".concat(fn.current,"/").concat((Zt=kt.pathname)===null||Zt===void 0||((An=Zt.split("/"))===null||An===void 0)?void 0:An[3]).concat(rr?"/master/shixun_show/".concat(rr):""))};return g.a.createElement(h.a,{width:"60%",visible:xt.visible,wrapClassName:we.a.modal,centered:!0,onOk:function(){rn.submit()},onCancel:xt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},g.a.createElement("section",{className:we.a.bg},g.a.createElement("div",{className:we.a.wrap},g.a.createElement(de.a,{className:"mt10",form:rn,scrollToFirstError:!0,layout:"vertical",onFinish:Ar,onChange:function(){var Zt,An,jr=Object(t.a)({},rn.getFieldsValue()),Ln=jr==null||((Zt=jr.path)===null||Zt===void 0)?void 0:Zt.split("");(Ln==null||((An=Ln.filter(function(qn){return qn=="/"}))===null||An===void 0)?void 0:An.length)>1&&(jr.path=jr.path.substring(0,jr.path.length-1)),rn.setFieldsValue(Object(t.a)({},jr)),vn(jr)}},g.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},g.a.createElement(S.a,null,g.a.createElement(d.a,null,g.a.createElement("span",{className:we.a.filePath},xt.defaultPath+"/")),g.a.createElement(d.a,{flex:"1"},g.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},g.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),g.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},g.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"})),g.a.createElement("div",{className:"mt10 mb20"},g.a.createElement(de.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},g.a.createElement(ve.a,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))},se=Object(N.a)(function(ut){var je=ut.shixunsDetail,tt=ut.loading,nt=ut.globalSetting,De=ut.user;return{shixunsDetail:je,globalSetting:nt,user:De,loading:tt.models.index}})(ue),q=function(je){var tt=je.shixunsDetail,nt=je.globalSetting,De=je.loading,Fe=je.user,bt=je.dispatch,dt=je.isRepository,xt=Object(C.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),kt=Object(D.h)(),et=Object(D.i)(),Mt=Object(x.useState)({}),Ht=Object(w.a)(Mt,2),_n=Ht[0],vn=Ht[1],fn=Object(x.useRef)(),Gn=de.a.useForm(),wn=Object(w.a)(Gn,1),rn=wn[0],Qn=Object(x.useState)(""),Zn=Object(w.a)(Qn,2),rr=Zn[0],$n=Zn[1],Ar=Object(x.useState)(""),pr=Object(w.a)(Ar,2),on=pr[0],Zt=pr[1];Object(x.useEffect)(function(){xt.visible&&rn.resetFields()},[xt.visible]),Object(x.useEffect)(function(){var Ln=xt.defaultPath.split("/");Ln.length===1?($n(""),Zt(xt.defaultPath)):(Zt(Ln.pop()),$n(Ln.join("/")+"/"))},[xt.defaultPath]),Object(x.useEffect)(function(){var Ln,qn;fn.current=(Ln=kt.pathname)===null||Ln===void 0||((qn=Ln.split("/"))===null||qn===void 0)?void 0:qn[2]},[]);var An=function(){var Ln=Object(i.a)(E.a.mark(function qn(){var Un,pe,z=arguments;return E.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return Un=z.length>0&&z[0]!==void 0?z[0]:{},oe.next=3,bt({type:"shixunsDetail/moveGitFile",payload:{id:et.id,from:xt.defaultPath,to:rr+Un.path,message:Un.commitMessage||"".concat(xt.defaultPath," rename to ").concat(rr).concat(Un.path," "),secret_repository:dt}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(l.b.success("\u6DFB\u52A0\u6210\u529F"),xt.onOK({path:Un.path,name:Un.path}),xt.onClose());case 5:case"end":return oe.stop()}},qn)}));return function(){return Ln.apply(this,arguments)}}(),jr=function(){var qn,Un;N.d.push("/shixuns/".concat(fn.current,"/").concat((qn=kt.pathname)===null||qn===void 0||((Un=qn.split("/"))===null||Un===void 0)?void 0:Un[3]).concat(rr?"/master/shixun_show/".concat(rr):""))};return g.a.createElement(h.a,{width:"40%",visible:xt.visible,wrapClassName:we.a.modal,centered:!0,onOk:function(){rn.submit()},onCancel:xt.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},g.a.createElement("section",{className:we.a.bg},g.a.createElement("div",{className:we.a.wrap},g.a.createElement(de.a,{className:"mt10",form:rn,scrollToFirstError:!0,layout:"vertical",onFinish:An,onChange:function(){var qn,Un,pe=Object(t.a)({},rn.getFieldsValue()),z=pe==null||((qn=pe.path)===null||qn===void 0)?void 0:qn.split("");(z==null||((Un=z.filter(function(Z){return Z=="/"}))===null||Un===void 0)?void 0:Un.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),rn.setFieldsValue(Object(t.a)({},pe)),vn(pe)}},g.a.createElement(de.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},g.a.createElement(S.a,null,g.a.createElement(d.a,{flex:"1"},g.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},g.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:on}))))),g.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},g.a.createElement(ne.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(xt.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(ut){var je=ut.shixunsDetail,tt=ut.loading,nt=ut.globalSetting,De=ut.user;return{shixunsDetail:je,globalSetting:nt,user:De,loading:tt.models.index}})(q),re=s("DZo9"),ie=s("8z0m"),Oe=s("m3rI"),le=s("8j3D"),$=s("RC3E"),J=s.n($),te=ie.a.Dragger,Ae=function(je){var tt=je.shixunsDetail,nt=je.globalSetting,De=je.loading,Fe=je.user,bt=je.dispatch,dt=je.isRepository,xt=Object(C.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),kt=Object(D.h)(),et=Object(D.i)(),Mt=Object(x.useState)({}),Ht=Object(w.a)(Mt,2),_n=Ht[0],vn=Ht[1],fn=Object(x.useRef)(),Gn=de.a.useForm(),wn=Object(w.a)(Gn,1),rn=wn[0],Qn=Object(x.useState)([]),Zn=Object(w.a)(Qn,2),rr=Zn[0],$n=Zn[1],Ar=Object(x.useState)(),pr=Object(w.a)(Ar,2),on=pr[0],Zt=pr[1],An;Object(x.useEffect)(function(){xt.visible&&(rn.resetFields(),$n([]))},[xt.visible]),Object(x.useEffect)(function(){fn.current=et.id},[]),Object(x.useEffect)(function(){var z=sessionStorage.getItem("pathArray");if(z){var Z=z.split(",").join("/"),oe=Z.indexOf("/")===0?Z.substr(1):Z;Zt(oe)}},[]);var jr=function(Z){if(An=Z.file.name,Z.file.status==="done"||Z.file.status==="uploading"){var oe,xe,he;if($n(Z.fileList),!Z.file.response)return;if(((oe=Z.file.response)===null||oe===void 0?void 0:oe.status)===0){l.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}$n(rr.filter(function(lt){return lt.uid!==Z.file.uid})),((xe=Z.file.response)===null||xe===void 0?void 0:xe.message)&&l.b.info((he=Z.file.response)===null||he===void 0?void 0:he.message)}},Ln=function(){var z=Object(i.a)(E.a.mark(function Z(oe){var xe;return E.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(oe.response){lt.next=3;break}return l.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),lt.abrupt("return");case 3:return lt.next=5,bt({type:"shixunsDetail/deleteGitFile",payload:{id:et.id,path:on?"".concat(on,"/").concat(oe.name):oe.name,message:rn.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(on?"".concat(on,"/").concat(oe.name):oe.name),secret_repository:dt?null:!0}});case 5:xe=lt.sent,xe.status===0&&($n(rr.filter(function(an){return an.uid!==oe.uid})),l.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return lt.stop()}},Z)}));return function(oe){return z.apply(this,arguments)}}(),qn={height:300,multiple:!0,withCredentials:!0,data:function(){var z=Object(i.a)(E.a.mark(function oe(){return E.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.abrupt("return",new Promise(function(){var lt=Object(i.a)(E.a.mark(function an(Nn,Yn){return E.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:setTimeout(Object(i.a)(E.a.mark(function Jn(){var $r,ga;return E.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:return mr.next=2,rn.getFieldsValue();case 2:$r=mr.sent,ga=Object(t.a)(Object(t.a)({},{path:xt.defaultPath?xt.defaultPath:"",message:_n.commitMessage||"\u4E0A\u4F20\u4E86".concat(An)}),dt?{}:{secret_repository:!0}),Nn(ga);case 5:case"end":return mr.stop()}},Jn)})),200);case 1:case"end":return Cn.stop()}},an)}));return function(an,Nn){return lt.apply(this,arguments)}}()));case 1:case"end":return he.stop()}},oe)}));function Z(){return z.apply(this,arguments)}return Z}(),fileList:rr,method:"post",action:"".concat(Oe.a.API_SERVER,"/api/shixuns/").concat(fn.current,"/upload_git_file.json"),onChange:jr,onRemove:Ln,beforeUpload:function(Z){An=Z.name}},Un=function(){var z=Object(i.a)(E.a.mark(function Z(oe){return E.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,rn.validateFields();case 2:xt.onClose(),xt.onOK({path:xt.defaultPath}),pe();case 5:case"end":return he.stop()}},Z)}));return function(oe){return z.apply(this,arguments)}}(),pe=function(){var Z,oe;N.d.push("/shixuns/".concat(fn.current,"/").concat((Z=kt.pathname)===null||Z===void 0||((oe=Z.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(on?"/master/shixun_show/".concat(on):""))};return g.a.createElement(h.a,{visible:xt.visible,onOk:Un,centered:!0,onCancel:xt.onClose,width:"70%"},g.a.createElement("section",{className:J.a.bg},g.a.createElement("div",{className:J.a.wrap},g.a.createElement("div",{className:J.a.title},"\u4E0A\u4F20\u6587\u4EF6"),g.a.createElement(de.a,{className:"mt10",form:rn,scrollToFirstError:!0,layout:"vertical",onFinish:Un,onValuesChange:function(){return vn(Object(t.a)({},rn.getFieldsValue()))}},g.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},g.a.createElement(ne.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),g.a.createElement(de.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},g.a.createElement(te,qn,g.a.createElement("div",null,g.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(J.a.colorBlue)})),g.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",g.a.createElement("span",{className:"".concat(J.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),g.a.createElement(le.a,{onFinish:function(Z){return Zt(Z)}})))},Se=Object(N.a)(function(ut){var je=ut.shixunsDetail,tt=ut.loading,nt=ut.globalSetting,De=ut.user;return{shixunsDetail:je,globalSetting:nt,user:De,loading:tt.models.index}})(Ae),ke=s("Bbdw"),rt=s.n(ke),ot=s("HpfO"),gt=s.n(ot),Et=function(je){var tt=je.shixunsDetail,nt=je.globalSetting,De=je.loading,Fe=je.dispatch,bt=je.title,dt=je.pathList,xt=dt===void 0?[]:dt,kt=je.showInputPath,et=kt===void 0?!1:kt,Mt=je.isMergeSelectFile,Ht=Mt===void 0?!1:Mt,_n=je.onFinish,vn=_n===void 0?function(){}:_n,fn=de.a.useForm(),Gn=Object(w.a)(fn,1),wn=Gn[0],rn=Object(D.i)(),Qn=Object(D.h)(),Zn=Object(x.useRef)(),rr=Object(x.useState)(""),$n=Object(w.a)(rr,2),Ar=$n[0],pr=$n[1],on=Object(x.useState)(""),Zt=Object(w.a)(on,2),An=Zt[0],jr=Zt[1],Ln=Object(x.useState)([]),qn=Object(w.a)(Ln,2),Un=qn[0],pe=qn[1],z=Object(x.useState)([]),Z=Object(w.a)(z,2),oe=Z[0],xe=Z[1];Object(x.useEffect)(function(){var tn,Cn;Zn.current=((tn=Qn.pathname)===null||tn===void 0||((Cn=tn.split("/"))===null||Cn===void 0)?void 0:Cn[3])==="repository"},[]),Object(x.useEffect)(function(){if(tt.actionTabs.key!=="Repository-SelectFilePath")return;var tn=xt.join("/"),Cn=[];xt.map(function(Jn,$r){$r===0?Cn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Jn),path:tn}):Cn.push({val:"/".concat(Jn),path:tn})}),pe(Cn),pr(tn),jr(tn),he(tn)},[tt.actionTabs.key]);var he=function(){var tn=Object(i.a)(E.a.mark(function Cn(Jn){var $r;return E.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,Fe({type:Zn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:rn.id,path:Jn}});case 2:$r=pa.sent,$r&&xe($r.trees||[]);case 4:case"end":return pa.stop()}},Cn)}));return function(Jn){return tn.apply(this,arguments)}}(),lt=function(Cn){var Jn=Ar;Cn.type==="tree"&&(Un.length?Un.push({val:"/".concat(Cn.name),path:Cn.name}):Un.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Cn.name),path:Cn.name}),pe(Un),Jn=Ar?"".concat(Ar,"/").concat(Cn.name):Cn.name,pr(Jn)),he(Jn)},an=function(Cn,Jn){var $r=Un.filter(function(pa,mr){return mr<=Jn});pe($r);var ga=$r.filter(function(pa,mr){return mr!==0}).map(function(pa){return pa.val}).join("").substr(1);pr(ga),he(ga)},Nn=function(){var tn=Object(i.a)(E.a.mark(function Cn(){var Jn,$r,ga;return E.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:if(Jn=wn==null?void 0:wn.getFieldsValue(),$r=Ar?"".concat(Ar).concat(Jn!=null&&Jn.name?"/".concat(Jn==null?void 0:Jn.name):""):Jn==null?void 0:Jn.name,!Ht){mr.next=6;break}return vn($r),Yn(),mr.abrupt("return");case 6:if(!et){mr.next=16;break}return mr.next=9,wn.validateFields();case 9:return mr.next=11,Fe({type:"shixunsDetail/uploadGitFolder",payload:Object(t.a)(Object(t.a)({},{id:rn.id,path:$r}),Zn.current?{}:{secret_repository:!0})});case 11:ga=mr.sent,vn(An),ga.status===0&&l.b.info("\u65B0\u5EFA\u6210\u529F"),mr.next=18;break;case 16:vn($r),l.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Yn();case 19:case"end":return mr.stop()}},Cn)}));return function(){return tn.apply(this,arguments)}}(),Yn=function(){Fe({type:"shixunsDetail/setActionTabs",payload:{}}),wn.resetFields()};return g.a.createElement(h.a,{centered:!0,title:bt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:tt.actionTabs.key==="Repository-SelectFilePath",onOk:Nn,onCancel:Yn},g.a.createElement("div",{className:gt.a.wrap},g.a.createElement("div",{className:gt.a.content},g.a.createElement("div",{className:gt.a.mainPathWrap},!!(Un!=null&&Un.length)&&Un.map(function(tn,Cn){return g.a.createElement("a",{key:Cn,onClick:function(){return an(tn,Cn)}},tn.val)})),!!(oe!=null&&oe.length)&&oe.map(function(tn,Cn){return tn.type==="tree"&&g.a.createElement("a",{key:Cn,onClick:function(){return lt(tn)}},g.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(gt.a.colorBlue)}),tn.name)})),g.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),g.a.createElement("div",{className:"mt5 mb5"},Ar),et&&g.a.createElement(de.a,{form:wn,scrollToFirstError:!0,className:"mt20"},g.a.createElement(de.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},g.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},Ct=Object(N.a)(function(ut){var je=ut.shixunsDetail,tt=ut.loading,nt=ut.globalSetting;return{shixunsDetail:je,globalSetting:nt,loading:tt.models.index}})(Et),wt=s("GZ0F"),Qe=s("8Skl"),Ue=s("HBuW"),ft=s("1vsH"),jt=s("NLgs"),ht=s("lzim"),_t=B.a.DirectoryTree,Ye=function(je){var tt,nt,De,Fe,bt,dt,xt,kt=je.shixunsDetail,et=je.globalSetting,Mt=je.loading,Ht=je.user,_n=je.activeKey,vn=je.dispatch,fn=je.practiceSetting,Gn=je.isRepository,wn=je.treeData,rn=je.setTreeData,Qn=Object(C.a)(je,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Zn=Object(D.i)(),rr=Object(D.h)(),$n=Object(x.useState)(),Ar=Object(w.a)($n,2),pr=Ar[0],on=Ar[1],Zt=Object(x.useState)(!1),An=Object(w.a)(Zt,2),jr=An[0],Ln=An[1],qn=Object(x.useState)(!1),Un=Object(w.a)(qn,2),pe=Un[0],z=Un[1],Z=Object(x.useState)(!1),oe=Object(w.a)(Z,2),xe=oe[0],he=oe[1],lt=Object(x.useState)(!1),an=Object(w.a)(lt,2),Nn=an[0],Yn=an[1],tn=Object(x.useState)(""),Cn=Object(w.a)(tn,2),Jn=Cn[0],$r=Cn[1],ga=Object(x.useState)([]),pa=Object(w.a)(ga,2),mr=pa[0],za=pa[1],ja=Object(x.useState)([]),Ra=Object(w.a)(ja,2),Ha=Ra[0],Sa=Ra[1],Ja=Object(x.useState)([]),ka=Object(w.a)(Ja,2),li=ka[0],oi=ka[1],ua=Object(x.useState)(!1),fa=Object(w.a)(ua,2),oa=fa[0],ye=fa[1],st=Object(x.useState)(),It=Object(w.a)(st,2),At=It[0],Wt=It[1],Nt=Object(x.useState)(),Xt=Object(w.a)(Nt,2),en=Xt[0],yn=Xt[1],mn=Object(x.useState)(""),jn=Object(w.a)(mn,2),Dn=jn[0],nn=jn[1],Mn=Object(x.useState)(),bn=Object(w.a)(Mn,2),Bn=bn[0],Pn=bn[1],er=Object(x.useState)(!1),vr=Object(w.a)(er,2),Br=vr[0],Sn=vr[1];Object(x.useEffect)(function(){rn([]),Fn(""),localStorage.warehouseHideTip||ye(!0)},[rr.pathname,Gn]);var Yt=function(){var sr=Object(i.a)(E.a.mark(function Kt(){var Qt,Jt,Xn=arguments;return E.a.wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return Qt=Xn.length>0&&Xn[0]!==void 0?Xn[0]:"",kn.next=3,Object(Ue.Gb)({id:Zn.id,secret_dir_path:Qt});case 3:Jt=kn.sent,Jt&&Pn(Qt);case 5:case"end":return kn.stop()}},Kt)}));return function(){return sr.apply(this,arguments)}}(),cn=function(Kt){var Qt;return g.a.createElement(n.a,{className:rt.a.menu,onClick:function(Xn){$r(Kt.path||"");switch(Xn.key){case"1":Object(ft.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Ln(!0);break;case"2":Object(ft.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),he(!0);break;case"3":Object(ft.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Yn(!0);break;case"4":Object(ft.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),z(!0);break;case"5":Object(ft.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Rr(Kt.path,Kt.name,Kt);break;case"6":Object(ft.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Ir(Kt);break}}},(Kt.type==="topTree"||Kt.type==="tree")&&g.a.createElement(n.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Kt.type==="topTree"||Kt.type==="tree")&&g.a.createElement(n.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Kt.type==="topTree"||Kt.type==="tree")&&g.a.createElement(n.a.Item,{key:"3"},"\u4E0A\u4F20"),Kt.type!=="topTree"&&Kt.type!=="tree"&&(kt==null||((Qt=kt.detail)===null||Qt===void 0)?void 0:Qt.public)<2&&g.a.createElement(n.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Kt.type!=="topTree"&&g.a.createElement(k.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Gn?"":"secret/").concat(Kt==null?void 0:Kt.path),onCopy:function(){return l.b.success("\u590D\u5236\u6210\u529F")}},g.a.createElement(n.a.Item,{key:"6"},g.a.createElement(g.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Kt.type!=="topTree"&&g.a.createElement(n.a.Item,{key:"5"},"\u5220\u9664"))},Rn=function(Kt,Qt){return Kt.map(function(Jt){return Qt==""?Jt.path=Qt+Jt.name:Jt.path=Qt+"/"+Jt.name,Jt.title=g.a.createElement(S.a,{className:"font14"},g.a.createElement(d.a,{flex:"1"},g.a.createElement(S.a,null,g.a.createElement(d.a,{flex:"20px"},Jt.type==="blob"&&g.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),g.a.createElement(d.a,{flex:"1"},g.a.createElement("span",{className:" multi_ellipsis1"},Jt.name)))),g.a.createElement(d.a,null,(Jt.type==="blob"||Jt.type==="tree")&&g.a.createElement(c.a,{overlay:cn(Jt),className:rt.a.ellipsis},g.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Jt.disableCheckbox=pr&&pr!==Jt.name,Jt.className=Jt.type==="tree"?rt.a.pl23:"",Jt.checkable=Jt.type!=="tree",Jt.isLeaf=Jt.type!=="tree",Jt.children=Jt.type==="tree"&&[],Jt.key=Jt.path,Jt})},qt=function(Kt){vn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Kt}})},On=function(){var sr=Object(i.a)(E.a.mark(function Kt(Qt,Jt){var Xn;return E.a.wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return Xn=Qt.split("/"),kn.next=3,Fn(Jn);case 3:setTimeout(function(){qt(Qt),mr=[Xn[0]||""],Ha=[Qt],Sa(Object(W.a)(Ha)),za(Object(W.a)(mr))},150);case 4:case"end":return kn.stop()}},Kt)}));return function(Qt,Jt){return sr.apply(this,arguments)}}(),gn=function(Kt,Qt){if(Qt=="")wn=Object(W.a)(Kt),rn(Object(W.a)(Kt));else{var Jt=In(wn,Qt,Kt);wn=Jt,rn(Object(W.a)(Jt))}};function In(sr,Kt,Qt){return sr.map(function(Jt){return Jt.key===Kt?(Jt.children=Object(W.a)(Qt),Object(t.a)({},Jt)):Jt.children?Object(t.a)(Object(t.a)({},Jt),{},{children:In(Jt.children,Kt,Qt)}):Jt})}var Fn=function(){var sr=Object(i.a)(E.a.mark(function Kt(){var Qt,Jt,Xn,ir,kn,lr=arguments;return E.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return Qt=lr.length>0&&lr[0]!==void 0?lr[0]:"",cr.next=3,vn({type:Gn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Zn.id,path:Qt}});case 3:return Jt=cr.sent,Jt&&((Xn=Jt.trees)!==null&&Xn!==void 0&&Xn.length?(kn=Rn(Object(W.a)(Jt.trees),Qt),gn(kn,Qt),oi(Jt.trees||[]),yn(Qt||""),console.log("handleGetRepository:",kn,Qt),setTimeout(function(){return console.log(wn,Jt.trees,Qt,999999)},2e3)):Qt==""&&rn([]),Wt(((ir=Jt.commits)===null||ir===void 0?void 0:ir[0])||{})),cr.abrupt("return",Jt);case 6:case"end":return cr.stop()}},Kt)}));return function(){return sr.apply(this,arguments)}}(),ur=function(){var sr=Object(i.a)(E.a.mark(function Kt(Qt){return E.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.abrupt("return",new Promise(function(){var ir=Object(i.a)(E.a.mark(function kn(lr,hr){return E.a.wrap(function(Zr){for(;;)switch(Zr.prev=Zr.next){case 0:return Qt.children.length&&lr(),nn(Qt.path),Zr.next=4,Fn(Qt.path);case 4:lr();case 5:case"end":return Zr.stop()}},kn)}));return function(kn,lr){return ir.apply(this,arguments)}}()));case 1:case"end":return Xn.stop()}},Kt)}));return function(Qt){return sr.apply(this,arguments)}}(),ar=function(){var sr=Object(i.a)(E.a.mark(function Kt(Qt,Jt){var Xn,ir;return E.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:if(console.log("handleSelectTree",Qt,Jt.nativeEvent.target.nodeName,Jt),Xn=function(){qt(Jt.node.path),Qt=[Jt.node.path],Sa(Object(W.a)(Qt))},!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="LI"||Jt.nativeEvent.target.nodeName==="I")){lr.next=4;break}return lr.abrupt("return");case 4:Jt.node.type==="blob"&&(fn!=null&&(ir=fn.sideBar)!==null&&ir!==void 0&&ir.confirmLeave?h.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(){Xn(),vn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Xn());case 5:case"end":return lr.stop()}},Kt)}));return function(Qt,Jt){return sr.apply(this,arguments)}}(),Rr=function(Kt,Qt,Jt){h.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Jt.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Xn=Object(i.a)(E.a.mark(function kn(){var lr,hr,cr;return E.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,vn({type:"shixunsDetail/deleteGitFile",payload:{id:Zn.id,path:Kt,message:"\u5220\u9664".concat(Kt),secret_repository:Gn?null:!0}});case 2:if(lr=dr.sent,hr=Kt.split("/"),!((lr==null?void 0:lr.status)===0)){dr.next=20;break}return l.b.info("\u5220\u9664\u6210\u529F"),hr.splice(hr.length-1,1),dr.next=9,Fn(hr.length>1?hr.join("/"):"");case 9:if(cr=dr.sent,!(cr!=null&&cr.trees)){dr.next=13;break}dr.next=16;break;case 13:return hr.splice(hr.length-1,1),dr.next=16,Fn(hr.length>1?hr.join("/"):"");case 16:return qt(""),dr.abrupt("return",!0);case 20:(lr==null?void 0:lr.status)===-3&&h.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:g.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",Kt,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u524D\u5F80\u4FEE\u6539",cancelText:"\u53D6\u6D88",onOk:function(){window.location.href="/shixuns/".concat(Zn.id,"/edit/").concat(lr==null?void 0:lr.message,"/tab=2")}});case 21:case"end":return dr.stop()}},kn)}));function ir(){return Xn.apply(this,arguments)}return ir}()})},Ir=function(Kt){console.log(Kt,"item")},tr=function(){var sr=Object(i.a)(E.a.mark(function Kt(Qt,Jt){return E.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(console.log("handleExpand",Jt),!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="path"||Jt.nativeEvent.target.nodeName==="LI")){ir.next=5;break}return ir.abrupt("return",!0);case 5:return ir.next=7,ur(Jt.node);case 7:mr.includes(Jt.node.path)?mr.splice(mr.indexOf(Jt.node.path),1):mr.push(Jt.node.path);case 8:za(Object(W.a)(mr));case 9:case"end":return ir.stop()}},Kt)}));return function(Qt,Jt){return sr.apply(this,arguments)}}(),Dr=function(){ye(!1),localStorage.warehouseHideTip=!0},br=function(){var sr=Object(i.a)(E.a.mark(function Kt(Qt){var Jt,Xn,ir,kn,lr;return E.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:ir="",cr.t0=Gn,cr.next=cr.t0===!0?4:cr.t0===!1?9:11;break;case 4:return ir="\u5F00\u542F\u7248\u672C\u5E93",kn="\u5F00\u542F",lr="\u4E0D\u5F00\u542F",Xn=g.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),cr.abrupt("break",11);case 9:return kt!=null&&(Jt=kt.detail)!==null&&Jt!==void 0&&Jt.secret_repository?(ir="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",kn="\u786E\u5B9A",lr="\u53D6\u6D88",Xn=g.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):(ir="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",kn="\u4E0D\u4F7F\u7528",lr="\u4F7F\u7528",Xn=g.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),cr.abrupt("break",11);case 11:if(!(!Gn&&Object(jt.b)(vn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){cr.next=13;break}return cr.abrupt("return");case 13:h.a.confirm({title:ir,okText:kn,cancelText:lr,content:Xn,onOk:function(){var dr;Object(ft.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",ir]),!Gn&&!(kt!=null&&(dr=kt.detail)!==null&&dr!==void 0&&dr.secret_repository)||Gr(Qt)},onCancel:function(){var dr;!Gn&&!(kt!=null&&(dr=kt.detail)!==null&&dr!==void 0&&dr.secret_repository)&&Gr(Qt)}});case 14:case"end":return cr.stop()}},Kt)}));return function(Qt){return sr.apply(this,arguments)}}(),Gr=function(){var sr=Object(i.a)(E.a.mark(function Kt(Qt){return E.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(!Gn){Xn.next=6;break}return Xn.next=3,Object(Ue.r)(Object(t.a)({},Zn));case 3:vn({type:"practiceSetting/getCommonData",payload:Object(t.a)({},Zn)}),Xn.next=8;break;case 6:return Xn.next=8,Object(Ue.t)(Object(t.a)(Object(t.a)({},Zn),{},{is_secret_repository:Qt}));case 8:Fn(),vn({type:"shixunsDetail/getShixunsDetail",payload:{id:Zn.id}});case 10:case"end":return Xn.stop()}},Kt)}));return function(Qt){return sr.apply(this,arguments)}}(),Lr=function(Kt){console.log(Kt)},qr=function(){var sr=Object(i.a)(E.a.mark(function Kt(Qt){var Jt,Xn,ir,kn,lr,hr,cr,Zr,dr,la,Xr;return E.a.wrap(function(wr){for(;;)switch(wr.prev=wr.next){case 0:if(console.log(Qt),Jt=Qt.node.key,Xn=Qt.dragNode.key,ir=Qt.node.pos.split("-"),kn=Qt.dropPosition-Number(ir[ir.length-1]),!(Qt.dragNode.type==="tree")){wr.next=8;break}return l.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),wr.abrupt("return");case 8:if(!(Qt.node.type!=="tree")){wr.next=11;break}return l.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),wr.abrupt("return");case 11:return wr.next=13,vn({type:"shixunsDetail/moveGitFile",payload:{id:Zn.id,from:Qt.dragNode.path,to:Qt.node.path+"/"+Qt.dragNode.name,message:"".concat(Qt.dragNode.path," move to ").concat(Qt.node.path+"/"+Qt.dragNode.name," ")}});case 13:if(lr=wr.sent,!(lr.status===0)){wr.next=26;break}return qt(""),wr.next=18,Fn("");case 18:hr=0;case 19:if(!(hr<mr.length)){wr.next=26;break}if(!(mr[hr]!="")){wr.next=23;break}return wr.next=23,Fn(mr[hr]);case 23:hr++,wr.next=19;break;case 26:return wr.abrupt("return");case 32:case"end":return wr.stop()}},Kt)}));return function(Qt){return sr.apply(this,arguments)}}();return g.a.createElement("section",{className:rt.a.bg},g.a.createElement("div",{className:rt.a.contentbg},g.a.createElement("div",{className:rt.a.wrap},g.a.createElement(S.a,{className:rt.a.gitCode},g.a.createElement(d.a,{flex:"1"},g.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),Gn?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",g.a.createElement(F.a,{className:Gn&&kt!==null&&kt!==void 0&&(tt=kt.detail)!==null&&tt!==void 0&&tt.init_repository?"hide":"ml10",checked:Gn?kt==null||((De=kt.detail)===null||De===void 0)?void 0:De.init_repository:kt==null||((nt=kt.detail)===null||nt===void 0)?void 0:nt.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:br})),g.a.createElement(d.a,null,g.a.createElement(c.a,{overlay:cn({type:"topTree"}),className:"current"},g.a.createElement(m.a,{visible:oa,title:g.a.createElement("div",{className:"font16"},g.a.createElement(wt.a,{style:{position:"relative",left:-35},onClick:function(){return Dr()}}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",g.a.createElement("span",{onClick:function(){return Dr()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:rt.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},Gn&&(kt==null||((Fe=kt.detail)===null||Fe===void 0)?void 0:Fe.init_repository)&&g.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!Gn&&(kt==null||((bt=kt.detail)===null||bt===void 0)?void 0:bt.secret_repository)&&g.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!wn.length&&!Gn&&g.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},g.a.createElement("div",null,"\u5B9E\u8BAD\u8BC4\u6D4B\u7684\u65F6\u5019\uFF0C\u7CFB\u7EDF\u4F1A\u4E34\u65F6\u5C06\u79C1\u5BC6\u4EE3\u7801\u5E93\u79FB\u52A8\u666E\u901A\u4EE3\u7801\u5E93\u7684secret\u76EE\u5F55\u4E0B\u9762\uFF0C\u8BC4\u6D4B\u7ED3\u675F\u4F1A\u6E05\u7A7Asecret\u76EE\u5F55\u5185\u5BB9\u3002\u5982\u679C\u79C1\u5BC6\u4EE3\u7801\u5E93\u4E2D\u5B58\u5728\u6587\u4EF6src/test.sh\uFF0C\u5728\u666E\u901A\u4EE3\u7801\u5E93\u8C03\u7528\u8BE5\u6587\u4EF6\u5219\u4F7F\u7528\u8DEF\u5F84\uFF1Asecret/src/test.sh")),wn.length?g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:rt.a.content},_n==="1"&&g.a.createElement("div",{className:rt.a.tips},"\u63D0\u793A\uFF1A",g.a.createElement("br",null),'\u4EE3\u7801\u8FD0\u884C\u5728\u670D\u52A1\u5668/data/workspace/myshixun/\u4E0B\uFF0C\u5982\u679C\u4EE3\u7801 \u9700\u8981\u7528\u5230\u6587\u4EF6\u8DEF\u5F84\u65F6\uFF0C\u60A8\u5C06\u9F20\u6807\u79FB\u5165\u4ED3\u5E93\u6587\u4EF6\u6216\u76EE\u5F55\u53F3\u4FA7\u7684"..." \u56FE\u6807\uFF0C\u9009\u62E9\u590D\u5236\u8DEF\u5F84\u5F97\u5230\u6587\u4EF6\u7684\u7EDD\u5BF9\u8DEF\u5F84\u3002'),g.a.createElement(_t,{disabled:!!Mt.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:wn,switcherIcon:g.a.createElement(Qe.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:tr,expandedKeys:mr,selectedKeys:Ha,onSelect:ar,draggable:!0,onDragEnter:Lr,onDrop:qr,allowDrop:function(Kt){var Qt=Kt.dropNode,Jt=Kt.dropPosition;return!1}}))):"",!wn.length&&Gn&&(kt==null||((dt=kt.detail)===null||dt===void 0)?void 0:dt.init_repository)&&g.a.createElement(We,null),!wn.length&&!Gn&&(kt==null||((xt=kt.detail)===null||xt===void 0)?void 0:xt.secret_repository)&&g.a.createElement(We,null))),g.a.createElement(me,{visible:pe,defaultPath:Jn,onClose:function(){return z(!1)},isRepository:!Gn,onOK:function(){var sr=Object(i.a)(E.a.mark(function Kt(Qt){var Jt;return E.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return Jt=Jn.split("/"),Jt.pop(),ir.next=4,Fn(Jt.join("/"));case 4:qt("");case 5:case"end":return ir.stop()}},Kt)}));return function(Kt){return sr.apply(this,arguments)}}()}),g.a.createElement(se,{visible:jr,defaultPath:Jn,onClose:function(){return Ln(!1)},isRepository:Gn,onOK:function(Kt){On(Kt.path,Kt.name)}}),g.a.createElement(be,{visible:xe,defaultPath:Jn,onClose:function(){return he(!1)},isRepository:Gn,onOK:function(Kt){On(Kt.path,Kt.name)}}),g.a.createElement(Se,{defaultPath:Jn,visible:Nn,isRepository:Gn,onClose:function(){return Yn(!1)},onOK:function(){var sr=Object(i.a)(E.a.mark(function Kt(Qt){var Jt;return E.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return Jt=Jn.split("/"),ir.next=3,Fn(Jn);case 3:mr=[Jt[0]||""],Ha=[Jn],Sa(Object(W.a)(Ha)),za(Object(W.a)(mr));case 7:case"end":return ir.stop()}},Kt)}));return function(Kt){return sr.apply(this,arguments)}}()}),g.a.createElement(Ct,{pathList:Jn==null?void 0:Jn.split("/"),showInputPath:!0,isMergeSelectFile:Br,onFinish:function(Kt){Br?Yt(Kt):Fn(Kt),Sn(!1)}}))},We=function(){return g.a.createElement("div",{className:"mt20 pb50 ".concat(rt.a.nodata)},g.a.createElement("div",{className:rt.a.headLeft},"\u63D0\u793A\uFF1A",g.a.createElement("br",null),"\u6B64\u5904\u5B58\u653E\u672C\u5B9E\u8BAD\u6240\u9700\u7684\u6240\u6709\u4EE3\u7801\u7B49\u76F8\u5173\u6587\u4EF6\uFF0C\u4F60\u53EF\u4EE5\u76F4\u63A5\u5728\u5E73\u53F0\u4E0A\u521B\u5EFA\u6587\u4EF6\u76EE\u5F55\u4EE5\u53CA\u76F8\u5173\u4EE3\u7801\u6587\u4EF6",g.a.createElement("br",null)),g.a.createElement("img",{width:"100%",src:ht.v}))},Xe=Object(N.a)(function(ut){var je=ut.shixunsDetail,tt=ut.loading,nt=ut.globalSetting,De=ut.practiceSetting,Fe=ut.user;return{shixunsDetail:je,globalSetting:nt,user:Fe,practiceSetting:De,loading:tt}})(Ye),Te=s("/zsF"),Me=s("PArb"),Ve=s("yDYP"),Ge=s.n(Ve),Ze=function(je){var tt=je.shixunsDetail,nt=je.globalSetting,De=je.loading,Fe=je.user,bt=je.dispatch,dt=je.isRepository,xt=Object(C.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),kt=Object(D.i)(),et=Object(x.useState)([]),Mt=Object(w.a)(et,2),Ht=Mt[0],_n=Mt[1];Object(x.useEffect)(function(){vn()},[dt]);var vn=function(){var fn=Object(i.a)(E.a.mark(function Gn(){var wn;return E.a.wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Qn.next=2,bt({type:"shixunsDetail/getRepositoryCommit",payload:{id:kt.id,secret_repository:dt?void 0:!0}});case 2:wn=Qn.sent,wn&&_n(wn.commits||[]);case 4:case"end":return Qn.stop()}},Gn)}));return function(){return fn.apply(this,arguments)}}();return g.a.createElement(g.a.Fragment,null,Ht==""&&g.a.createElement("div",{className:Ge.a.empty},g.a.createElement("img",{src:ht.k,width:"258"}),g.a.createElement("br",null),g.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Ht!=""&&g.a.createElement("section",{className:Ge.a.bg},g.a.createElement("div",{className:Ge.a.wrap},g.a.createElement("div",{className:Ge.a.content},Ht==null?void 0:Ht.map(function(fn){var Gn,wn;return g.a.createElement("div",null,g.a.createElement(S.a,{align:"middle",className:"c-white font16"},g.a.createElement(d.a,null,fn.title)),g.a.createElement(S.a,{align:"middle",className:"mt20 "},g.a.createElement(d.a,null,g.a.createElement("img",{className:Ge.a.imageUrl,src:Oe.a.IMG_SERVER+"/"+((Gn=fn.author)===null||Gn===void 0?void 0:Gn.image_url)})),g.a.createElement(d.a,{className:Ge.a.blueLight},g.a.createElement("span",{className:"ml20"},(wn=fn.author)===null||wn===void 0?void 0:wn.username)),g.a.createElement(d.a,null,g.a.createElement("span",{className:"ml20 ".concat(Ge.a.blueLight)},"\u63D0\u4EA4\u4E8E"),g.a.createElement("span",{className:"ml20 ".concat(Ge.a.blueLight)},fn.time))),g.a.createElement(Me.a,{className:Ge.a.divider}))})))))},mt=Object(N.a)(function(ut){var je=ut.shixunsDetail,tt=ut.loading,nt=ut.globalSetting,De=ut.user;return{shixunsDetail:je,globalSetting:nt,user:De,loading:tt.models.index}})(Ze),Pt=s("p5ED"),Gt=P.a.TabPane,dn=function(je){var tt,nt,De,Fe,bt,dt,xt,kt,et,Mt,Ht,_n,vn,fn,Gn,wn,rn,Qn,Zn,rr=je.globalSetting,$n=je.loading,Ar=je.dispatch,pr=je.practiceSetting,on=je.shixunsDetail,Zt=Object(C.a)(je,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),An=Object(x.useState)("1"),jr=Object(w.a)(An,2),Ln=jr[0],qn=jr[1],Un=Object(x.useState)("1"),pe=Object(w.a)(Un,2),z=pe[0],Z=pe[1],oe=Object(x.useState)(),xe=Object(w.a)(oe,2),he=xe[0],lt=xe[1],an=Object(x.useRef)(),Nn=Object(x.useState)(!0),Yn=Object(w.a)(Nn,2),tn=Yn[0],Cn=Yn[1],Jn=Object(x.useState)(["2","1"]),$r=Object(w.a)(Jn,2),ga=$r[0],pa=$r[1],mr=Object(x.useState)([]),za=Object(w.a)(mr,2),ja=za[0],Ra=za[1],Ha=Object(x.useRef)(),Sa=Object(D.i)(),Ja=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:g.a.createElement("span",null,g.a.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),g.a.createElement(m.a,{title:"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002"},g.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(x.useEffect)(function(){try{var ua,fa,oa,ye,st;if(!!(on!=null&&(ua=on.fileContent)!==null&&ua!==void 0&&(fa=ua.content)!==null&&fa!==void 0&&(oa=fa.content)!==null&&oa!==void 0&&oa.length)||(on==null||((ye=on.fileContent)===null||ye===void 0||((st=ye.content)===null||st===void 0))?void 0:st.content)==""){var It;if((on==null||((It=on.fileContent)===null||It===void 0)?void 0:It.file_type)==="txt"){var At,Wt,Nt,Xt;an.current=window.decodeURIComponent(escape(window.atob(on==null||((At=on.fileContent)===null||At===void 0||((Wt=At.content)===null||Wt===void 0))?void 0:Wt.content))),he=window.decodeURIComponent(escape(window.atob(on==null||((Nt=on.fileContent)===null||Nt===void 0||((Xt=Nt.content)===null||Xt===void 0))?void 0:Xt.content))),lt(he)}else{var en,yn,mn,jn;an.current=on==null||((en=on.fileContent)===null||en===void 0||((yn=en.content)===null||yn===void 0))?void 0:yn.content,he=on==null||((mn=on.fileContent)===null||mn===void 0||((jn=mn.content)===null||jn===void 0))?void 0:jn.content,lt(he)}}}catch(Bn){var Dn,nn,Mn,bn;an.current=window.atob(on==null||((Dn=on.fileContent)===null||Dn===void 0||((nn=Dn.content)===null||nn===void 0))?void 0:nn.content),he=window.atob(on==null||((Mn=on.fileContent)===null||Mn===void 0||((bn=Mn.content)===null||bn===void 0))?void 0:bn.content),lt(he),l.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}console.log("codeMirrorSourceValue1212:12",on.fileContent.content)},[on==null||((tt=on.fileContent)===null||tt===void 0)?void 0:tt.content]),Object(x.useEffect)(function(){var ua,fa=pr==null||((ua=pr.sideBar)===null||ua===void 0)?void 0:ua.selectPath.split("/");pa(fa)},[pr==null||((nt=pr.sideBar)===null||nt===void 0)?void 0:nt.selectPath]);var ka=function(fa){lt(fa);var oa=-1;fa===an.current?oa=0:oa=1,oa!==-1,Ar({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!oa}})};Object(x.useEffect)(function(){new Promise(function(){var ua=Object(i.a)(E.a.mark(function fa(oa,ye){var st,It,At,Wt;return E.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(!((pr==null||((st=pr.sideBar)===null||st===void 0)?void 0:st.selectPath)!==""&&pr!==null&&pr!==void 0&&(It=pr.sideBar)!==null&&It!==void 0&&It.selectPath)){Xt.next=5;break}return Xt.next=3,Ar({type:"shixunsDetail/getFileContent",payload:{id:Sa.id,path:pr==null||((At=pr.sideBar)===null||At===void 0)?void 0:At.selectPath,secret_repository:tn?null:!0}});case 3:Wt=Xt.sent,Wt!=null&&Wt.content||(Wt==null?void 0:Wt.content)==""||Ar({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return Xt.stop()}},fa)}));return function(fa,oa){return ua.apply(this,arguments)}}())},[pr==null||((De=pr.sideBar)===null||De===void 0)?void 0:De.selectPath]);var li=g.a.createElement(n.a,{className:I.a.menu,onClick:function(fa){var oa;!(on!=null&&(oa=on.detail)!==null&&oa!==void 0&&oa.secret_repository)&&fa.key==="2"&&Z("1"),qn(fa.key),fa.key==="1"?Cn(!0):Cn(!1)}},g.a.createElement(n.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),Ja.filter(function(ua){var fa,oa;return!(on!=null&&(fa=on.detail)!==null&&fa!==void 0&&fa.init_repository)||on!=null&&(oa=on.detail)!==null&&oa!==void 0&&oa.is_jupyter_lab?ua.id!=="2":ua}).map(function(ua,fa){return g.a.createElement(n.a.Item,{className:"leaveClick",key:ua.id},ua.name)})),oi=function(){var ua=Object(i.a)(E.a.mark(function fa(){var oa,ye,st;return E.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,Ar({type:"shixunsDetail/updateRepositoryFile",payload:{id:Sa.id,path:on==null||((oa=on.fileContent)===null||oa===void 0||((ye=oa.params)===null||ye===void 0))?void 0:ye.path,content:he,secret_repository:tn?null:!0}});case 2:st=At.sent,st!=null&&st.content&&(l.b.info("\u4FDD\u5B58\u6210\u529F"),Ar({type:"practiceSetting/setSideBarTabs",payload:Object(t.a)(Object(t.a)({},pr.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return At.stop()}},fa)}));return function(){return ua.apply(this,arguments)}}();return g.a.createElement("div",{className:I.a.warehouse},g.a.createElement("div",{className:I.a.header},g.a.createElement(S.a,{align:"middle",className:"w100 c-white",style:{height:60}},g.a.createElement(d.a,{flex:"1"},g.a.createElement(S.a,{align:"middle"},g.a.createElement(d.a,null,g.a.createElement(c.a,{overlay:li,className:I.a.menu},g.a.createElement("span",{className:"font16 c-white current ml20"},Ja.find(function(ua){return ua.id===Ln}).name," ",g.a.createElement("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})))),g.a.createElement(d.a,{flex:"81px"},g.a.createElement("div",{className:I.a.line})),g.a.createElement(d.a,null,g.a.createElement(P.a,{className:I.a.tabs,activeKey:z,onChange:function(fa){var oa;pr!=null&&(oa=pr.sideBar)!==null&&oa!==void 0&&oa.confirmLeave?h.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(){Z(fa),Ar({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(Z(fa),Ar({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},g.a.createElement(Gt,{tab:g.a.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),tn&&(on==null||((Fe=on.detail)===null||Fe===void 0)?void 0:Fe.init_repository)&&g.a.createElement(Gt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!tn&&(on==null||((bt=on.detail)===null||bt===void 0)?void 0:bt.secret_repository)&&g.a.createElement(Gt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),(tn&&(on==null||((dt=on.repository)===null||dt===void 0)?void 0:dt.git_url)||!tn&&(on==null||((xt=on.secretRepository)===null||xt===void 0)?void 0:xt.git_url))&&g.a.createElement(g.a.Fragment,null,g.a.createElement(d.a,null,g.a.createElement("span",{className:I.a.title},"\u4ED3\u5E93\u5730\u5740:"),g.a.createElement("input",{value:tn?on==null||((kt=on.repository)===null||kt===void 0)?void 0:kt.git_url:on==null||((et=on.secretRepository)===null||et===void 0)?void 0:et.git_url}),g.a.createElement(k.CopyToClipboard,{text:tn?on==null||((Mt=on.repository)===null||Mt===void 0)?void 0:Mt.git_url:on==null||((Ht=on.secretRepository)===null||Ht===void 0)?void 0:Ht.git_url,onCopy:function(){return l.b.success("\u590D\u5236\u6210\u529F")}},g.a.createElement(m.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93"},g.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"}))))))),g.a.createElement("div",{className:I.a.content,style:{overflow:"auto"}},z==="1"&&g.a.createElement(g.a.Fragment,null,g.a.createElement("aside",{className:I.a.left},g.a.createElement(b.a,{spinning:!!$n.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(I.a.loading," ").concat(I.a.bottom0)},g.a.createElement(Xe,{setTreeData:Ra,treeData:ja,activeKey:Ln,isRepository:tn}))),g.a.createElement("aside",{className:I.a.right,ref:Ha},(pr==null||((_n=pr.sideBar)===null||_n===void 0)?void 0:_n.selectPath)!==""&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.a,{spinning:!!$n.effects["shixunsDetail/getFileContent"],wrapperClassName:I.a.loading},g.a.createElement("div",{className:I.a.filePathWrp},g.a.createElement(S.a,{align:"middle",className:"w100"},g.a.createElement(d.a,null,g.a.createElement("span",{className:"iconfont icon-daimacangku2 c-white"})),g.a.createElement(d.a,{flex:"40px"},g.a.createElement("div",{className:I.a.line,style:{marginLeft:20}})),g.a.createElement(d.a,{className:I.a.filePath},ga.map(function(ua,fa){return g.a.createElement("span",{className:"c-blue"},ua)})))),g.a.createElement("div",{className:$n.effects["shixunsDetail/getFileContent"]?"hide":"show"},g.a.createElement(Pt.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:on==null||((vn=on.fileContent)===null||vn===void 0)?void 0:vn.filename,type:(on==null||((fn=on.fileContent)===null||fn===void 0)?void 0:fn.file_type)==="office"?"download":on==null||((Gn=on.fileContent)===null||Gn===void 0)?void 0:Gn.file_type,data:he,monacoEditor:{value:he,language:on==null||((wn=on.fileContent)===null||wn===void 0)?void 0:wn.language,onChange:function(fa){return ka(fa)},options:{fontSize:14}}}))),(on==null||((rn=on.fileContent)===null||rn===void 0)?void 0:rn.file_type)==="txt"&&g.a.createElement(S.a,{align:"middle",justify:"center",className:I.a.footer},g.a.createElement(d.a,null,g.a.createElement(p.a,{type:"primary",size:"large",ghost:!0,onClick:function(){N.d.push("/shixuns/".concat(Sa.id,"/challenges"))}},"\u53D6\u6D88"),g.a.createElement(p.a,{type:"primary",size:"large",className:"ml40",onClick:oi},"\u63D0\u4EA4")))),(pr==null||((Qn=pr.sideBar)===null||Qn===void 0)?void 0:Qn.selectPath)==""&&(on==null||((Zn=on.detail)===null||Zn===void 0)?void 0:Zn.init_repository)&&g.a.createElement("div",{className:I.a.empty},g.a.createElement("img",{src:ht.j,width:"258"}),g.a.createElement("br",null),g.a.createElement("span",{className:"c-grey-c"},!!(ja!=null&&ja.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(ja!=null&&ja.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),z==="2"&&g.a.createElement("div",{className:I.a.commit},g.a.createElement(mt,{isRepository:tn}))))},Tt=Y.default=Object(N.a)(function(ut){var je=ut.loading,tt=ut.globalSetting,nt=ut.practiceSetting,De=ut.shixunsDetail;return{globalSetting:tt,loading:je,practiceSetting:nt,shixunsDetail:De}})(dn)},csWT:function(M,Y,s){M.exports=s.p+"static/choose.4ad1045f.svg"},cv67:function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){return function(p){var A=L,b=A.lib,y=b.WordArray,S=b.Hasher,T=A.algo,h=[];(function(){for(var a=0;a<64;a++)h[a]=p.abs(p.sin(a+1))*4294967296|0})();var _=T.MD5=S.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(a,n){for(var i=0;i<16;i++){var f=n+i,l=a[f];a[f]=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360}var o=this._hash.words,m=a[n+0],w=a[n+1],C=a[n+2],v=a[n+3],P=a[n+4],R=a[n+5],E=a[n+6],x=a[n+7],g=a[n+8],O=a[n+9],I=a[n+10],D=a[n+11],N=a[n+12],V=a[n+13],F=a[n+14],W=a[n+15],K=o[0],B=o[1],k=o[2],G=o[3];K=d(K,B,k,G,m,7,h[0]),G=d(G,K,B,k,w,12,h[1]),k=d(k,G,K,B,C,17,h[2]),B=d(B,k,G,K,v,22,h[3]),K=d(K,B,k,G,P,7,h[4]),G=d(G,K,B,k,R,12,h[5]),k=d(k,G,K,B,E,17,h[6]),B=d(B,k,G,K,x,22,h[7]),K=d(K,B,k,G,g,7,h[8]),G=d(G,K,B,k,O,12,h[9]),k=d(k,G,K,B,I,17,h[10]),B=d(B,k,G,K,D,22,h[11]),K=d(K,B,k,G,N,7,h[12]),G=d(G,K,B,k,V,12,h[13]),k=d(k,G,K,B,F,17,h[14]),B=d(B,k,G,K,W,22,h[15]),K=r(K,B,k,G,w,5,h[16]),G=r(G,K,B,k,E,9,h[17]),k=r(k,G,K,B,D,14,h[18]),B=r(B,k,G,K,m,20,h[19]),K=r(K,B,k,G,R,5,h[20]),G=r(G,K,B,k,I,9,h[21]),k=r(k,G,K,B,W,14,h[22]),B=r(B,k,G,K,P,20,h[23]),K=r(K,B,k,G,O,5,h[24]),G=r(G,K,B,k,F,9,h[25]),k=r(k,G,K,B,v,14,h[26]),B=r(B,k,G,K,g,20,h[27]),K=r(K,B,k,G,V,5,h[28]),G=r(G,K,B,k,C,9,h[29]),k=r(k,G,K,B,x,14,h[30]),B=r(B,k,G,K,N,20,h[31]),K=c(K,B,k,G,R,4,h[32]),G=c(G,K,B,k,g,11,h[33]),k=c(k,G,K,B,D,16,h[34]),B=c(B,k,G,K,F,23,h[35]),K=c(K,B,k,G,w,4,h[36]),G=c(G,K,B,k,P,11,h[37]),k=c(k,G,K,B,x,16,h[38]),B=c(B,k,G,K,I,23,h[39]),K=c(K,B,k,G,V,4,h[40]),G=c(G,K,B,k,m,11,h[41]),k=c(k,G,K,B,v,16,h[42]),B=c(B,k,G,K,E,23,h[43]),K=c(K,B,k,G,O,4,h[44]),G=c(G,K,B,k,N,11,h[45]),k=c(k,G,K,B,W,16,h[46]),B=c(B,k,G,K,C,23,h[47]),K=t(K,B,k,G,m,6,h[48]),G=t(G,K,B,k,x,10,h[49]),k=t(k,G,K,B,F,15,h[50]),B=t(B,k,G,K,R,21,h[51]),K=t(K,B,k,G,N,6,h[52]),G=t(G,K,B,k,v,10,h[53]),k=t(k,G,K,B,I,15,h[54]),B=t(B,k,G,K,w,21,h[55]),K=t(K,B,k,G,g,6,h[56]),G=t(G,K,B,k,W,10,h[57]),k=t(k,G,K,B,E,15,h[58]),B=t(B,k,G,K,V,21,h[59]),K=t(K,B,k,G,P,6,h[60]),G=t(G,K,B,k,D,10,h[61]),k=t(k,G,K,B,C,15,h[62]),B=t(B,k,G,K,O,21,h[63]),o[0]=o[0]+K|0,o[1]=o[1]+B|0,o[2]=o[2]+k|0,o[3]=o[3]+G|0},_doFinalize:function(){var a=this._data,n=a.words,i=this._nDataBytes*8,f=a.sigBytes*8;n[f>>>5]|=128<<24-f%32;var l=p.floor(i/4294967296),o=i;n[(f+64>>>9<<4)+15]=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,n[(f+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,a.sigBytes=(n.length+1)*4,this._process();for(var m=this._hash,w=m.words,C=0;C<4;C++){var v=w[C];w[C]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return m},clone:function(){var a=S.clone.call(this);return a._hash=this._hash.clone(),a}});function d(a,n,i,f,l,o,m){var w=a+(n&i|~n&f)+l+m;return(w<<o|w>>>32-o)+n}function r(a,n,i,f,l,o,m){var w=a+(n&f|i&~f)+l+m;return(w<<o|w>>>32-o)+n}function c(a,n,i,f,l,o,m){var w=a+(n^i^f)+l+m;return(w<<o|w>>>32-o)+n}function t(a,n,i,f,l,o,m){var w=a+(i^(n|~f))+l+m;return(w<<o|w>>>32-o)+n}A.MD5=S._createHelper(_),A.HmacMD5=S._createHmacHelper(_)}(Math),L.MD5})},cz0n:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___G8W6i",flex_space_between:"flex_space_between___1p_ZB",flex_box_vertical_center:"flex_box_vertical_center___2wivF",flex_box_center_end:"flex_box_center_end___y5a20",flex_box_column:"flex_box_column___6oXp3",tabs:"tabs___sKski",active:"active___10xGM"}},dGDm:function(M,Y,s){M.exports={selectEnvironment:"selectEnvironment___1zrTT",search:"search___2Sku-",searchListWrap:"searchListWrap___30F5Q",searchList:"searchList___dxlP6",name:"name___28Ilk",tag:"tag___GYHhS",searchListActive:"searchListActive___1H-dL",spin:"spin___2GYcy",common:"common___JE3ZS",title:"title___11-q3",tags:"tags___3vE7b",tagActive:"tagActive___1c0bT",wrap:"wrap___fFVWs",allList:"allList___2mVBv",item:"item___2NPtB",itemActive:"itemActive___2aQTm",line:"line___yjjYk",apply:"apply___3NyxD",p1:"p1___2xNuY",p2:"p2___uGM8U",list:"list___1jtVf",items:"items___3gafm",darklySelectEnvironment:"darklySelectEnvironment___2KS0W"}},dejd:function(M,Y,s){},djh8:function(M,Y,s){M.exports=s.p+"static/qrCode.42927872.png"},dmUQ:function(M,Y,s){"use strict";var L=s("Ff2n"),p=s("rePB"),A=s("1OyB"),b=s("vuIU"),y=s("Ji7U"),S=s("md7G"),T=s("foSv"),h=s("cDcd"),_=s.n(h),d=s("TSYQ"),r=s.n(d),c=s("4IlW");function t(g,O){var I=Object.keys(g);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(g);O&&(D=D.filter(function(N){return Object.getOwnPropertyDescriptor(g,N).enumerable})),I.push.apply(I,D)}return I}function a(g){for(var O=1;O<arguments.length;O++){var I=arguments[O]!=null?arguments[O]:{};O%2?t(Object(I),!0).forEach(function(D){Object(p.a)(g,D,I[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(I)):t(Object(I)).forEach(function(D){Object.defineProperty(g,D,Object.getOwnPropertyDescriptor(I,D))})}return g}function n(g){var O=i();return function(){var D=Object(T.a)(g),N;if(O){var V=Object(T.a)(this).constructor;N=Reflect.construct(D,arguments,V)}else N=D.apply(this,arguments);return Object(S.a)(this,N)}}function i(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(g){return!1}}function f(){}function l(g){g.preventDefault()}var o=function(O){return O.replace(/[^\w.-]+/g,"")},m=200,w=600,C=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,v=function(O){return O!=null},P=function(O,I){return I===O||typeof I=="number"&&typeof O=="number"&&isNaN(I)&&isNaN(O)},R=function(g){Object(y.a)(I,g);var O=n(I);function I(D){var N;Object(A.a)(this,I),N=O.call(this,D),N.onKeyDown=function(W){var K=N.props,B=K.onKeyDown,k=K.onPressEnter;if(W.keyCode===c.a.UP){var G=N.getRatio(W);N.up(W,G,null),N.stop()}else if(W.keyCode===c.a.DOWN){var ne=N.getRatio(W);N.down(W,ne,null),N.stop()}else W.keyCode===c.a.ENTER&&k&&k(W);if(N.recordCursorPosition(),N.lastKeyCode=W.keyCode,B){for(var fe=arguments.length,de=new Array(fe>1?fe-1:0),Ee=1;Ee<fe;Ee++)de[Ee-1]=arguments[Ee];B.apply(void 0,[W].concat(de))}},N.onKeyUp=function(W){var K=N.props.onKeyUp;if(N.stop(),N.recordCursorPosition(),K){for(var B=arguments.length,k=new Array(B>1?B-1:0),G=1;G<B;G++)k[G-1]=arguments[G];K.apply(void 0,[W].concat(k))}},N.onChange=function(W){var K=N.props.onChange;N.state.focused&&(N.inputting=!0),N.rawInput=N.props.parser(N.getValueFromEvent(W)),N.setState({inputValue:N.rawInput}),K(N.toNumber(N.rawInput))},N.onMouseUp=function(){var W=N.props.onMouseUp;N.recordCursorPosition(),W&&W.apply(void 0,arguments)},N.onFocus=function(){var W;N.setState({focused:!0}),(W=N.props).onFocus.apply(W,arguments)},N.onBlur=function(){var W=N.props.onBlur;N.inputting=!1,N.setState({focused:!1});var K=N.getCurrentValidValue(N.state.inputValue),B=N.setValue(K,f);if(W){var k=N.input.value,G=N.getInputDisplayValue({focus:!1,value:B});N.input.value=G&&Number(G),W.apply(void 0,arguments),N.input.value=k}},N.getRatio=function(W){var K=1;return W.metaKey||W.ctrlKey?K=.1:W.shiftKey&&(K=10),K},N.getFullNum=function(W){return isNaN(W)?W:/e/i.test(String(W))?Number(W).toFixed(18).replace(/\.?0+$/,""):W},N.getPrecision=function(W){if(v(N.props.precision))return N.props.precision;var K=String(W);if(K.indexOf("e-")>=0)return parseInt(K.slice(K.indexOf("e-")+2),10);var B=0;return K.indexOf(".")>=0&&(B=K.length-K.indexOf(".")-1),B},N.getInputDisplayValue=function(W){var K=W||N.state,B=K.focused,k=K.inputValue,G=K.value,ne;B?ne=k:ne=N.toPrecisionAsStep(G),ne==null&&(ne="");var fe=N.formatWrapper(ne);return v(N.props.decimalSeparator)&&(fe=fe.toString().replace(".",N.props.decimalSeparator)),fe},N.recordCursorPosition=function(){try{N.cursorStart=N.input.selectionStart,N.cursorEnd=N.input.selectionEnd,N.currentValue=N.input.value,N.cursorBefore=N.input.value.substring(0,N.cursorStart),N.cursorAfter=N.input.value.substring(N.cursorEnd)}catch(W){}},N.restoreByAfter=function(W){if(W===void 0)return!1;var K=N.input.value,B=K.lastIndexOf(W);if(B===-1)return!1;var k=N.cursorBefore.length;return N.lastKeyCode===c.a.DELETE&&N.cursorBefore.charAt(k-1)===W[0]?(N.fixCaret(k,k),!0):B+W.length===K.length?(N.fixCaret(B,B),!0):!1},N.partRestoreByAfter=function(W){return W===void 0?!1:Array.prototype.some.call(W,function(K,B){var k=W.substring(B);return N.restoreByAfter(k)})},N.isNotCompleteNumber=function(W){return isNaN(W)||W===""||W===null||W&&W.toString().indexOf(".")===W.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(W,K,B){N.pressingUpOrDown=!0,N.step("down",W,K,B)},N.up=function(W,K,B){N.pressingUpOrDown=!0,N.step("up",W,K,B)},N.saveInput=function(W){N.input=W};var V=D.value;V===void 0&&(V=D.defaultValue),N.state={focused:D.autoFocus};var F=N.getValidValue(N.toNumber(V));return N.state=a(a({},N.state),{},{inputValue:N.toPrecisionAsStep(F),value:F}),N}return Object(b.a)(I,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var V=this.props,F=V.value,W=V.onChange,K=V.max,B=V.min,k=this.state.focused;if(N){if(!P(N.value,F)||!P(N.max,K)||!P(N.min,B)){var G=k?F:this.getValidValue(F),ne;this.pressingUpOrDown?ne=G:this.inputting?ne=this.rawInput:ne=this.toPrecisionAsStep(G),this.setState({value:G,inputValue:ne})}var fe="value"in this.props?F:this.state.value;"max"in this.props&&N.max!==K&&typeof fe=="number"&&fe>K&&W&&W(K),"min"in this.props&&N.min!==B&&typeof fe=="number"&&fe<B&&W&&W(B)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var de=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===c.a.BACKSPACE?de=this.cursorStart-1:this.lastKeyCode===c.a.DELETE&&(de=this.cursorStart):de=this.input.value.length,this.fixCaret(de,de)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case c.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case c.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Ee){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(N){var V=N;return V===""?V="":this.isNotCompleteNumber(parseFloat(V))?V=this.state.value:V=this.getValidValue(V),this.toNumber(V)}},{key:"getValueFromEvent",value:function(N){var V=N.target.value.trim().replace(/。/g,".");return v(this.props.decimalSeparator)&&(V=V.replace(this.props.decimalSeparator,".")),V}},{key:"getValidValue",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,W=parseFloat(N);return isNaN(W)?N:(W<V&&(W=V),W>F&&(W=F),W)}},{key:"setValue",value:function(N,V){var F=this.props.precision,W=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),K=this.state.value,B=K===void 0?null:K,k=this.state.inputValue,G=k===void 0?null:k,ne=typeof W=="number"?W.toFixed(F):"".concat(W),fe=W!==B||ne!=="".concat(G);return"value"in this.props?(G=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:G},V)):this.setState({value:W,inputValue:this.toPrecisionAsStep(N)},V),fe&&this.props.onChange(W),W}},{key:"getMaxPrecision",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.props,W=F.precision,K=F.step;if(v(W))return W;var B=this.getPrecision(V),k=this.getPrecision(K),G=this.getPrecision(N);return N?Math.max(G,B+k):B+k}},{key:"getPrecisionFactor",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.getMaxPrecision(N,V);return Math.pow(10,F)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(N){return this.props.formatter?this.props.formatter(N):N}},{key:"toPrecisionAsStep",value:function(N){if(this.isNotCompleteNumber(N)||N==="")return N;var V=Math.abs(this.getMaxPrecision(N));return isNaN(V)?N.toString():Number(N).toFixed(V)}},{key:"toNumber",value:function(N){var V=this.props.precision,F=this.state.focused,W=N&&N.length>16&&F;return this.isNotCompleteNumber(N)||W?N:v(V)?Math.round(N*Math.pow(10,V))/Math.pow(10,V):Number(N)}},{key:"upStep",value:function(N,V){var F=this.props.step,W=this.getPrecisionFactor(N,V),K=Math.abs(this.getMaxPrecision(N,V)),B=((W*N+W*F*V)/W).toFixed(K);return this.toNumber(B)}},{key:"downStep",value:function(N,V){var F=this.props.step,W=this.getPrecisionFactor(N,V),K=Math.abs(this.getMaxPrecision(N,V)),B=((W*N-W*F*V)/W).toFixed(K);return this.toNumber(B)}},{key:"step",value:function(N,V){var F=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3?arguments[3]:void 0;this.stop(),V&&(V.persist(),V.preventDefault());var B=this.props;if(B.disabled)return;var k=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(k))return;var G=this["".concat(N,"Step")](k,W),ne=G>B.max||G<B.min;if(G>B.max?G=B.max:G<B.min&&(G=B.min),this.setValue(G,null),this.setState({focused:!0},function(){F.pressingUpOrDown=!1}),ne)return;this.autoStepTimer=setTimeout(function(){F[N](V,W,!0)},K?m:w)}},{key:"fixCaret",value:function(N,V){if(N===void 0||V===void 0||!this.input||!this.input.value)return;try{var F=this.input.selectionStart,W=this.input.selectionEnd;(N!==F||V!==W)&&this.input.setSelectionRange(N,V)}catch(K){}}},{key:"render",value:function(){var N,V=this.props,F=V.prefixCls,W=V.disabled,K=V.readOnly,B=V.useTouch,k=V.autoComplete,G=V.upHandler,ne=V.downHandler,fe=V.className,de=V.max,Ee=V.min,we=V.style,ce=V.title,be=V.onMouseEnter,ve=V.onMouseLeave,ue=V.onMouseOver,se=V.onMouseOut,q=V.required,me=V.onClick,re=V.tabIndex,ie=V.type,Oe=V.placeholder,le=V.id,$=V.inputMode,J=V.pattern,te=V.step,Ae=V.maxLength,Se=V.autoFocus,ke=V.name,rt=V.onPaste,ot=V.onInput,gt=Object(L.a)(V,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),Et=this.state,Ct=Et.value,wt=Et.focused,Qe=r()(F,(N={},Object(p.a)(N,fe,!!fe),Object(p.a)(N,"".concat(F,"-disabled"),W),Object(p.a)(N,"".concat(F,"-focused"),wt),N)),Ue={};Object.keys(gt).forEach(function(Ge){(Ge.substr(0,5)==="data-"||Ge.substr(0,5)==="aria-"||Ge==="role")&&(Ue[Ge]=gt[Ge])});var ft=!K&&!W,jt=this.getInputDisplayValue(null),ht=(Ct||Ct===0)&&(isNaN(Ct)||Number(Ct)>=de),_t=(Ct||Ct===0)&&(isNaN(Ct)||Number(Ct)<=Ee),Ye=ht||W||K,We=_t||W||K,Xe=r()("".concat(F,"-handler"),"".concat(F,"-handler-up"),Object(p.a)({},"".concat(F,"-handler-up-disabled"),Ye)),Te=r()("".concat(F,"-handler"),"".concat(F,"-handler-down"),Object(p.a)({},"".concat(F,"-handler-down-disabled"),We)),Me=B?{onTouchStart:Ye?f:this.up,onTouchEnd:this.stop}:{onMouseDown:Ye?f:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ve=B?{onTouchStart:We?f:this.down,onTouchEnd:this.stop}:{onMouseDown:We?f:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return _.a.createElement("div",{className:Qe,style:we,title:ce,onMouseEnter:be,onMouseLeave:ve,onMouseOver:ue,onMouseOut:se,onFocus:function(){return null},onBlur:function(){return null}},_.a.createElement("div",{className:"".concat(F,"-handler-wrap")},_.a.createElement("span",Object.assign({unselectable:"on"},Me,{role:"button","aria-label":"Increase Value","aria-disabled":Ye,className:Xe}),G||_.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner"),onClick:l})),_.a.createElement("span",Object.assign({unselectable:"on"},Ve,{role:"button","aria-label":"Decrease Value","aria-disabled":We,className:Te}),ne||_.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner"),onClick:l}))),_.a.createElement("div",{className:"".concat(F,"-input-wrap")},_.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ee,"aria-valuemax":de,"aria-valuenow":Ct,required:q,type:ie,placeholder:Oe,onPaste:rt,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(F,"-input"),tabIndex:re,autoComplete:k,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ft?this.onKeyDown:f,onKeyUp:ft?this.onKeyUp:f,autoFocus:Se,maxLength:Ae,readOnly:K,disabled:W,max:de,min:Ee,step:te,name:ke,title:ce,id:le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(jt),pattern:J,inputMode:$,onInput:ot},Ue))))}}]),I}(_.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:C,min:-C,step:1,style:{},onChange:f,onKeyDown:f,onPressEnter:f,onFocus:f,onBlur:f,parser:o,required:!1,autoComplete:"off"};var E=R,x=Y.a=E},e7zE:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("3y9D"),s("WYAk"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.Base,y=A.WordArray,S=p.algo,T=S.SHA1,h=S.HMAC,_=S.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:T,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,r){for(var c=this.cfg,t=h.create(c.hasher,d),a=y.create(),n=y.create([1]),i=a.words,f=n.words,l=c.keySize,o=c.iterations;i.length<l;){var m=t.update(r).finalize(n);t.reset();for(var w=m.words,C=w.length,v=m,P=1;P<o;P++){v=t.finalize(v),t.reset();for(var R=v.words,E=0;E<C;E++)w[E]^=R[E]}a.concat(m),f[0]++}return a.sigBytes=l*4,a}});p.PBKDF2=function(d,r,c){return _.create(c).compute(d,r)}}(),L.PBKDF2})},"f0W+":function(M,Y,s){M.exports={flex_box_center:"flex_box_center___2AWuG",flex_space_between:"flex_space_between___4j1zo",flex_box_vertical_center:"flex_box_vertical_center___3dWcm",flex_box_center_end:"flex_box_center_end___qvHJi",flex_box_column:"flex_box_column___3Eier",tabs:"tabs___25WKT",tabsWrap:"tabsWrap___2lPJE",active:"active___gGp9s"}},f9pc:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___fO1Sq",flex_space_between:"flex_space_between___2MANs",flex_box_vertical_center:"flex_box_vertical_center___2x-su",flex_box_center_end:"flex_box_center_end___6bZNq",flex_box_column:"flex_box_column___CGTHC",quickPager:"quickPager___2XH6F",disabled:"disabled___2gPWV"}},fAei:function(M,Y,s){"use strict";s.d(Y,"a",function(){return m.a});var L=s("rePB"),p=s("VTBJ"),A=s("KQm4"),b=s("1OyB"),y=s("vuIU"),S=s("Ji7U"),T=s("LK+K"),h=s("cDcd"),_=s("4IlW"),d=s("Kwbf"),r=s("TSYQ"),c=s.n(r),t=s("sboe"),a=s("OZM5"),n=s("815F"),i=s("ODXe"),f=s("Ff2n"),l=s("+nKL"),o=s("8XRh"),m=s("WaYH"),w=function(Ee,we){var ce=Ee.className,be=Ee.style,ve=Ee.motion,ue=Ee.motionNodes,se=Ee.motionType,q=Ee.onMotionStart,me=Ee.onMotionEnd,re=Ee.active,ie=Ee.treeNodeRequiredProps,Oe=Object(f.a)(Ee,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),le=h.useState(!0),$=Object(i.a)(le,2),J=$[0],te=$[1],Ae=h.useContext(t.a),Se=Ae.prefixCls,ke=h.useRef(!1),rt=function(){ke.current||me(),ke.current=!0};return Object(h.useEffect)(function(){ue&&se==="hide"&&J&&te(!1)},[ue]),Object(h.useEffect)(function(){return ue&&q(),function(){ue&&rt()}},[]),ue?h.createElement(o.default,Object.assign({ref:we,visible:J},ve,{motionAppear:se==="show",onAppearEnd:rt,onLeaveEnd:rt}),function(ot,gt){var Et=ot.className,Ct=ot.style;return h.createElement("div",{ref:gt,className:c()("".concat(Se,"-treenode-motion"),Et),style:Ct},ue.map(function(wt){var Qe=wt.data,Ue=Qe.key,ft=Object(f.a)(Qe,["key"]),jt=wt.isStart,ht=wt.isEnd;delete ft.children;var _t=Object(n.f)(Ue,ie);return h.createElement(m.a,Object.assign({},ft,_t,{active:re,data:wt.data,key:Ue,isStart:jt,isEnd:ht}))}))}):h.createElement(m.a,Object.assign({domRef:we,className:ce,style:be},Oe,{active:re}))};w.displayName="MotionTreeNode";var C=h.forwardRef(w),v=C;function P(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],we=de.length,ce=Ee.length;if(Math.abs(we-ce)!==1)return{add:!1,key:null};function be(ve,ue){var se=new Map;ve.forEach(function(me){se.set(me,!0)});var q=ue.filter(function(me){return!se.has(me)});return q.length===1?q[0]:null}return we<ce?{add:!0,key:be(de,Ee)}:{add:!1,key:be(Ee,de)}}function R(de,Ee,we){var ce=de.findIndex(function(se){var q=se.data;return q.key===we}),be=de[ce+1],ve=Ee.findIndex(function(se){var q=se.data;return q.key===we});if(be){var ue=Ee.findIndex(function(se){var q=se.data;return q.key===be.data.key});return Ee.slice(ve+1,ue)}return Ee.slice(ve+1)}var E={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},x=function(){},g="RC_TREE_MOTION_".concat(Math.random()),O={key:g},I={key:g,level:0,index:0,pos:"0",node:O},D={parent:null,children:[],pos:I.pos,data:O,isStart:[],isEnd:[]};function N(de,Ee,we,ce){return Ee===!1||!we?de:de.slice(0,Math.ceil(we/ce)+1)}function V(de){var Ee=de.data.key,we=de.pos;return Object(n.e)(Ee,we)}function F(de){for(var Ee=String(de.data.key),we=de;we.parent;)we=we.parent,Ee="".concat(we.data.key," > ").concat(Ee);return Ee}var W=function(Ee,we){var ce=Ee.prefixCls,be=Ee.data,ve=Ee.selectable,ue=Ee.checkable,se=Ee.expandedKeys,q=Ee.selectedKeys,me=Ee.checkedKeys,re=Ee.loadedKeys,ie=Ee.loadingKeys,Oe=Ee.halfCheckedKeys,le=Ee.keyEntities,$=Ee.disabled,J=Ee.dragging,te=Ee.dragOverNodeKey,Ae=Ee.dropPosition,Se=Ee.motion,ke=Ee.height,rt=Ee.itemHeight,ot=Ee.virtual,gt=Ee.focusable,Et=Ee.activeItem,Ct=Ee.focused,wt=Ee.tabIndex,Qe=Ee.onKeyDown,Ue=Ee.onFocus,ft=Ee.onBlur,jt=Ee.onActiveChange,ht=Ee.onListChangeStart,_t=Ee.onListChangeEnd,Ye=Object(f.a)(Ee,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),We=h.useRef(null);h.useImperativeHandle(we,function(){return{scrollTo:function(_n){We.current.scrollTo(_n)}}});var Xe=h.useState(se),Te=Object(i.a)(Xe,2),Me=Te[0],Ve=Te[1],Ge=h.useState(be),Ze=Object(i.a)(Ge,2),mt=Ze[0],Pt=Ze[1],Gt=h.useState(be),dn=Object(i.a)(Gt,2),Tt=dn[0],ut=dn[1],je=h.useState([]),tt=Object(i.a)(je,2),nt=tt[0],De=tt[1],Fe=h.useState(null),bt=Object(i.a)(Fe,2),dt=bt[0],xt=bt[1];function kt(){Pt(be),ut(be),De([]),xt(null),_t()}h.useEffect(function(){Ve(se);var Ht=P(Me,se);if(Ht.key!==null)if(Ht.add){var _n=mt.findIndex(function(Qn){var Zn=Qn.data.key;return Zn===Ht.key}),vn=N(R(mt,be,Ht.key),ot,ke,rt),fn=mt.slice();fn.splice(_n+1,0,D),ut(fn),De(vn),xt("show")}else{var Gn=be.findIndex(function(Qn){var Zn=Qn.data.key;return Zn===Ht.key}),wn=N(R(be,mt,Ht.key),ot,ke,rt),rn=be.slice();rn.splice(Gn+1,0,D),ut(rn),De(wn),xt("hide")}else mt!==be&&(Pt(be),ut(be))},[se,be]),h.useEffect(function(){J||kt()},[J]);var et=Se?Tt:be,Mt={expandedKeys:se,selectedKeys:q,loadedKeys:re,loadingKeys:ie,checkedKeys:me,halfCheckedKeys:Oe,dragOverNodeKey:te,dropPosition:Ae,keyEntities:le};return h.createElement(h.Fragment,null,Ct&&Et&&h.createElement("span",{style:E,"aria-live":"assertive"},F(Et)),h.createElement("div",{role:"tree"},h.createElement("input",{style:E,disabled:gt===!1||$,tabIndex:gt!==!1?wt:null,onKeyDown:Qe,onFocus:Ue,onBlur:ft,value:"",onChange:x})),h.createElement(l.a,Object.assign({},Ye,{data:et,itemKey:V,height:ke,fullHeight:!1,virtual:ot,itemHeight:rt,prefixCls:"".concat(ce,"-list"),ref:We}),function(Ht){var _n=Ht.pos,vn=Ht.data,fn=vn.key,Gn=Object(f.a)(vn,["key"]),wn=Ht.isStart,rn=Ht.isEnd,Qn=Object(n.e)(fn,_n);delete Gn.children;var Zn=Object(n.f)(Qn,Mt);return h.createElement(v,Object.assign({},Gn,Zn,{active:Et&&fn===Et.data.key,pos:_n,data:Ht.data,isStart:wn,isEnd:rn,motion:Se,motionNodes:fn===g?nt:null,motionType:dt,onMotionStart:ht,onMotionEnd:kt,treeNodeRequiredProps:Mt,onMouseMove:function(){jt(null)}}))}))},K=h.forwardRef(W);K.displayName="NodeList";var B=K,k=s("NvD2"),G=function(de){Object(S.a)(we,de);var Ee=Object(T.a)(we);function we(){var ce;return Object(b.a)(this,we),ce=Ee.apply(this,arguments),ce.destroyed=!1,ce.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},ce.listRef=h.createRef(),ce.onNodeDragStart=function(be,ve){var ue=ce.state,se=ue.expandedKeys,q=ue.keyEntities,me=ce.props.onDragStart,re=ve.props.eventKey;ce.dragNode=ve;var ie=Object(a.b)(se,re);ce.setState({dragging:!0,dragNodesKeys:Object(a.g)(re,q)}),ce.setExpandedKeys(ie),me&&me({event:be,node:Object(n.b)(ve.props)})},ce.onNodeDragEnter=function(be,ve){var ue=ce.state,se=ue.expandedKeys,q=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ie=ve.props,Oe=ie.pos,le=ie.eventKey;if(!ce.dragNode||me.indexOf(le)!==-1)return;var $=Object(a.c)(be,ve);if(ce.dragNode.props.eventKey===le&&$===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:le,dropPosition:$}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(J){clearTimeout(ce.delayedDragEnterLogic[J])}),ce.delayedDragEnterLogic[Oe]=window.setTimeout(function(){if(!ce.state.dragging)return;var J=Object(A.a)(se),te=q[le];te&&(te.children||[]).length&&(J=Object(a.a)(se,le)),"expandedKeys"in ce.props||ce.setExpandedKeys(J),re&&re({event:be,node:Object(n.b)(ve.props),expandedKeys:J})},400)},0)},ce.onNodeDragOver=function(be,ve){var ue=ce.state.dragNodesKeys,se=ce.props.onDragOver,q=ve.props.eventKey;if(ue.indexOf(q)!==-1)return;if(ce.dragNode&&q===ce.state.dragOverNodeKey){var me=Object(a.c)(be,ve);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}se&&se({event:be,node:Object(n.b)(ve.props)})},ce.onNodeDragLeave=function(be,ve){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:be,node:Object(n.b)(ve.props)})},ce.onNodeDragEnd=function(be,ve){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:be,node:Object(n.b)(ve.props)}),ce.dragNode=null},ce.onNodeDrop=function(be,ve){var ue=ce.state,se=ue.dragNodesKeys,q=se===void 0?[]:se,me=ue.dropPosition,re=ce.props.onDrop,ie=ve.props,Oe=ie.eventKey,le=ie.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),q.indexOf(Oe)!==-1){Object(d.a)(!1,"Can not drop to dragNode(include it's children node)");return}var $=Object(a.k)(le),J={event:be,node:Object(n.b)(ve.props),dragNode:ce.dragNode?Object(n.b)(ce.dragNode.props):null,dragNodesKeys:q.slice(),dropPosition:me+Number($[$.length-1]),dropToGap:!1};me!==0&&(J.dropToGap=!0),re&&re(J),ce.dragNode=null},ce.cleanDragState=function(){var be=ce.state.dragging;be&&ce.setState({dragging:!1})},ce.onNodeClick=function(be,ve){var ue=ce.props.onClick;ue&&ue(be,ve)},ce.onNodeDoubleClick=function(be,ve){var ue=ce.props.onDoubleClick;ue&&ue(be,ve)},ce.onNodeSelect=function(be,ve){var ue=ce.state.selectedKeys,se=ce.state.keyEntities,q=ce.props,me=q.onSelect,re=q.multiple,ie=ve.selected,Oe=ve.key,le=!ie;le?re?ue=Object(a.a)(ue,Oe):ue=[Oe]:ue=Object(a.b)(ue,Oe);var $=ue.map(function(J){var te=se[J];return te?te.node:null}).filter(function(J){return J});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:le,node:ve,selectedNodes:$,nativeEvent:be.nativeEvent})},ce.onNodeCheck=function(be,ve,ue){var se=ce.state,q=se.keyEntities,me=se.checkedKeys,re=se.halfCheckedKeys,ie=ce.props,Oe=ie.checkStrictly,le=ie.onCheck,$=ve.key,J,te={event:"check",node:ve,checked:ue,nativeEvent:be.nativeEvent};if(Oe){var Ae=ue?Object(a.a)(me,$):Object(a.b)(me,$),Se=Object(a.b)(re,$);J={checked:Ae,halfChecked:Se},te.checkedNodes=Ae.map(function(Ct){return q[Ct]}).filter(function(Ct){return Ct}).map(function(Ct){return Ct.node}),ce.setUncontrolledState({checkedKeys:Ae})}else{var ke=Object(k.a)([].concat(Object(A.a)(me),[$]),!0,q),rt=ke.checkedKeys,ot=ke.halfCheckedKeys;if(!ue){var gt=new Set(rt);gt.delete($);var Et=Object(k.a)(Array.from(gt),{checked:!1,halfCheckedKeys:ot},q);rt=Et.checkedKeys,ot=Et.halfCheckedKeys}J=rt,te.checkedNodes=[],te.checkedNodesPositions=[],te.halfCheckedKeys=ot,rt.forEach(function(Ct){var wt=q[Ct];if(!wt)return;var Qe=wt.node,Ue=wt.pos;te.checkedNodes.push(Qe),te.checkedNodesPositions.push({node:Qe,pos:Ue})}),ce.setUncontrolledState({checkedKeys:rt},!1,{halfCheckedKeys:ot})}le&&le(J,te)},ce.onNodeLoad=function(be){return new Promise(function(ve){ce.setState(function(ue){var se=ue.loadedKeys,q=se===void 0?[]:se,me=ue.loadingKeys,re=me===void 0?[]:me,ie=ce.props,Oe=ie.loadData,le=ie.onLoad,$=be.key;if(!Oe||q.indexOf($)!==-1||re.indexOf($)!==-1)return{};var J=Oe(be);return J.then(function(){var te=ce.state,Ae=te.loadedKeys,Se=te.loadingKeys,ke=Object(a.a)(Ae,$),rt=Object(a.b)(Se,$);le&&le(ke,{event:"load",node:be}),ce.setUncontrolledState({loadedKeys:ke}),ce.setState({loadingKeys:rt}),ve()}),{loadingKeys:Object(a.a)(re,$)}})})},ce.onNodeMouseEnter=function(be,ve){var ue=ce.props.onMouseEnter;ue&&ue({event:be,node:ve})},ce.onNodeMouseLeave=function(be,ve){var ue=ce.props.onMouseLeave;ue&&ue({event:be,node:ve})},ce.onNodeContextMenu=function(be,ve){var ue=ce.props.onRightClick;ue&&(be.preventDefault(),ue({event:be,node:ve}))},ce.onFocus=function(){var be=ce.props.onFocus;ce.setState({focused:!0}),be&&be.apply(void 0,arguments)},ce.onBlur=function(){var be=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),be&&be.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var be=ce.state,ve=be.expandedKeys,ue=be.selectedKeys,se=be.loadedKeys,q=be.loadingKeys,me=be.checkedKeys,re=be.halfCheckedKeys,ie=be.dragOverNodeKey,Oe=be.dropPosition,le=be.keyEntities;return{expandedKeys:ve||[],selectedKeys:ue||[],loadedKeys:se||[],loadingKeys:q||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ie,dropPosition:Oe,keyEntities:le}},ce.setExpandedKeys=function(be){var ve=ce.state.treeData,ue=Object(n.d)(ve,be);ce.setUncontrolledState({expandedKeys:be,flattenNodes:ue},!0)},ce.onNodeExpand=function(be,ve){var ue=ce.state.expandedKeys,se=ce.state.listChanging,q=ce.props,me=q.onExpand,re=q.loadData,ie=ve.key,Oe=ve.expanded;if(se)return;var le=ue.indexOf(ie),$=!Oe;if(Object(d.a)(Oe&&le!==-1||!Oe&&le===-1,"Expand state not sync with index check"),$?ue=Object(a.a)(ue,ie):ue=Object(a.b)(ue,ie),ce.setExpandedKeys(ue),me&&me(ue,{node:ve,expanded:$,nativeEvent:be.nativeEvent}),$&&re){var J=ce.onNodeLoad(ve);J&&J.then(function(){var te=Object(n.d)(ce.state.treeData,ue);ce.setUncontrolledState({flattenNodes:te})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(be){var ve=ce.state.activeKey,ue=ce.props.onActiveChange;if(ve===be)return;ce.setState({activeKey:be}),be!==null&&ce.scrollTo({key:be}),ue&&ue(be)},ce.getActiveItem=function(){var be=ce.state,ve=be.activeKey,ue=be.flattenNodes;return ve===null?null:ue.find(function(se){var q=se.data.key;return q===ve})||null},ce.offsetActiveKey=function(be){var ve=ce.state,ue=ve.flattenNodes,se=ve.activeKey,q=ue.findIndex(function(ie){var Oe=ie.data.key;return Oe===se});q===-1&&be<0&&(q=ue.length),q=(q+be+ue.length)%ue.length;var me=ue[q];if(me){var re=me.data.key;ce.onActiveChange(re)}else ce.onActiveChange(null)},ce.onKeyDown=function(be){var ve=ce.state,ue=ve.activeKey,se=ve.expandedKeys,q=ve.checkedKeys,me=ce.props,re=me.onKeyDown,ie=me.checkable,Oe=me.selectable;switch(be.which){case _.a.UP:{ce.offsetActiveKey(-1),be.preventDefault();break}case _.a.DOWN:{ce.offsetActiveKey(1),be.preventDefault();break}}var le=ce.getActiveItem();if(le&&le.data){var $=ce.getTreeNodeRequiredProps(),J=le.data.isLeaf===!1||!!(le.data.children||[]).length,te=Object(n.b)(Object(p.a)(Object(p.a)({},Object(n.f)(ue,$)),{},{data:le.data,active:!0}));switch(be.which){case _.a.LEFT:{J&&se.includes(ue)?ce.onNodeExpand({},te):le.parent&&ce.onActiveChange(le.parent.data.key),be.preventDefault();break}case _.a.RIGHT:{J&&!se.includes(ue)?ce.onNodeExpand({},te):le.children&&le.children.length&&ce.onActiveChange(le.children[0].data.key),be.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{ie&&!te.disabled&&te.checkable!==!1&&!te.disableCheckbox?ce.onNodeCheck({},te,!q.includes(ue)):!ie&&Oe&&!te.disabled&&te.selectable!==!1&&ce.onNodeSelect({},te);break}}}re&&re(be)},ce.setUncontrolledState=function(be){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ce.destroyed)return;var se=!1,q=!0,me={};Object.keys(be).forEach(function(re){if(re in ce.props){q=!1;return}se=!0,me[re]=be[re]}),se&&(!ve||q)&&ce.setState(Object(p.a)(Object(p.a)({},me),ue))},ce.scrollTo=function(be){ce.listRef.current.scrollTo(be)},ce}return Object(y.a)(we,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var be,ve=this.state,ue=ve.focused,se=ve.flattenNodes,q=ve.keyEntities,me=ve.dragging,re=ve.activeKey,ie=this.props,Oe=ie.prefixCls,le=ie.className,$=ie.style,J=ie.showLine,te=ie.focusable,Ae=ie.tabIndex,Se=Ae===void 0?0:Ae,ke=ie.selectable,rt=ie.showIcon,ot=ie.icon,gt=ie.switcherIcon,Et=ie.draggable,Ct=ie.checkable,wt=ie.checkStrictly,Qe=ie.disabled,Ue=ie.motion,ft=ie.loadData,jt=ie.filterTreeNode,ht=ie.height,_t=ie.itemHeight,Ye=ie.virtual,We=ie.titleRender,Xe=ie.onContextMenu,Te=Object(a.f)(this.props);return h.createElement(t.a.Provider,{value:{prefixCls:Oe,selectable:ke,showIcon:rt,icon:ot,switcherIcon:gt,draggable:Et,checkable:Ct,checkStrictly:wt,disabled:Qe,keyEntities:q,loadData:ft,filterTreeNode:jt,titleRender:We,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},h.createElement("div",{className:c()(Oe,le,(be={},Object(L.a)(be,"".concat(Oe,"-show-line"),J),Object(L.a)(be,"".concat(Oe,"-focused"),ue),Object(L.a)(be,"".concat(Oe,"-active-focused"),re!==null),be))},h.createElement(B,Object.assign({ref:this.listRef,prefixCls:Oe,style:$,data:se,disabled:Qe,selectable:ke,checkable:!!Ct,motion:Ue,dragging:me,height:ht,itemHeight:_t,virtual:Ye,focusable:te,focused:ue,tabIndex:Se,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Xe},this.getTreeNodeRequiredProps(),Te))))}}],[{key:"getDerivedStateFromProps",value:function(be,ve){var ue=ve.prevProps,se={prevProps:be};function q(ot){return!ue&&ot in be||ue&&ue[ot]!==be[ot]}var me;if(q("treeData")?me=be.treeData:q("children")&&(Object(d.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),me=Object(n.c)(be.children)),me){se.treeData=me;var re=Object(n.a)(me);se.keyEntities=Object(p.a)(Object(L.a)({},g,I),re.keyEntities)}var ie=se.keyEntities||ve.keyEntities;if(q("expandedKeys")||ue&&q("autoExpandParent"))se.expandedKeys=be.autoExpandParent||!ue&&be.defaultExpandParent?Object(a.e)(be.expandedKeys,ie):be.expandedKeys;else if(!ue&&be.defaultExpandAll){var Oe=Object(p.a)({},ie);delete Oe[g],se.expandedKeys=Object.keys(Oe).map(function(ot){return Oe[ot].key})}else!ue&&be.defaultExpandedKeys&&(se.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(a.e)(be.defaultExpandedKeys,ie):be.defaultExpandedKeys);if(se.expandedKeys||delete se.expandedKeys,me||se.expandedKeys){var le=Object(n.d)(me||ve.treeData,se.expandedKeys||ve.expandedKeys);se.flattenNodes=le}if(be.selectable&&(q("selectedKeys")?se.selectedKeys=Object(a.d)(be.selectedKeys,be):!ue&&be.defaultSelectedKeys&&(se.selectedKeys=Object(a.d)(be.defaultSelectedKeys,be))),be.checkable){var $;if(q("checkedKeys")?$=Object(a.j)(be.checkedKeys)||{}:!ue&&be.defaultCheckedKeys?$=Object(a.j)(be.defaultCheckedKeys)||{}:me&&($=Object(a.j)(be.checkedKeys)||{checkedKeys:ve.checkedKeys,halfCheckedKeys:ve.halfCheckedKeys}),$){var J=$,te=J.checkedKeys,Ae=te===void 0?[]:te,Se=J.halfCheckedKeys,ke=Se===void 0?[]:Se;if(!be.checkStrictly){var rt=Object(k.a)(Ae,!0,ie);Ae=rt.checkedKeys,ke=rt.halfCheckedKeys}se.checkedKeys=Ae,se.halfCheckedKeys=ke}}return q("loadedKeys")&&(se.loadedKeys=be.loadedKeys),se}}]),we}(h.Component);G.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},G.TreeNode=m.a;var ne=G,fe=Y.b=ne},fKo2:function(M,Y,s){},fyJ8:function(M,Y,s){"use strict";var L=s("rePB"),p=s("VTBJ"),A=s("Ff2n"),b=s("U8pU"),y=s("cDcd"),S=s.n(y),T=s("TSYQ"),h=s.n(T),_=s("c+Xe"),d=s("sR1s");function r(i){return i&&Object(b.a)(i)==="object"&&!Array.isArray(i)&&!y.isValidElement(i)}function c(i){return typeof i=="string"?!0:Object(_.c)(i)}function t(i,f){var l,o=i.prefixCls,m=i.className,w=i.record,C=i.index,v=i.dataIndex,P=i.render,R=i.children,E=i.component,x=E===void 0?"td":E,g=i.colSpan,O=i.rowSpan,I=i.fixLeft,D=i.fixRight,N=i.firstFixLeft,V=i.lastFixLeft,F=i.firstFixRight,W=i.lastFixRight,K=i.appendNode,B=i.additionalProps,k=B===void 0?{}:B,G=i.ellipsis,ne=i.align,fe=i.rowType,de=i.isSticky,Ee="".concat(o,"-cell"),we,ce;if(R)ce=R;else{var be=Object(d.b)(w,v);if(ce=be,P){var ve=P(be,w,C);r(ve)?(ce=ve.children,we=ve.props):ce=ve}}Object(b.a)(ce)==="object"&&!Array.isArray(ce)&&!y.isValidElement(ce)&&(ce=null),G&&(V||F)&&(ce=y.createElement("span",{className:"".concat(Ee,"-content")},ce));var ue=we||{},se=ue.colSpan,q=ue.rowSpan,me=ue.style,re=ue.className,ie=Object(A.a)(ue,["colSpan","rowSpan","style","className"]),Oe=se!==void 0?se:g,le=q!==void 0?q:O;if(Oe===0||le===0)return null;var $={},J=typeof I=="number",te=typeof D=="number";J&&($.position="sticky",$.left=I),te&&($.position="sticky",$.right=D);var Ae={};ne&&(Ae.textAlign=ne);var Se,ke=G===!0?{showTitle:!0}:G;ke&&(ke.showTitle||fe==="header")&&(typeof ce=="string"||typeof ce=="number"?Se=ce.toString():y.isValidElement(ce)&&typeof ce.props.children=="string"&&(Se=ce.props.children));var rt=Object(p.a)(Object(p.a)(Object(p.a)({title:Se},ie),k),{},{colSpan:Oe&&Oe!==1?Oe:null,rowSpan:le&&le!==1?le:null,className:h()(Ee,m,(l={},Object(L.a)(l,"".concat(Ee,"-fix-left"),J),Object(L.a)(l,"".concat(Ee,"-fix-left-first"),N),Object(L.a)(l,"".concat(Ee,"-fix-left-last"),V),Object(L.a)(l,"".concat(Ee,"-fix-right"),te),Object(L.a)(l,"".concat(Ee,"-fix-right-first"),F),Object(L.a)(l,"".concat(Ee,"-fix-right-last"),W),Object(L.a)(l,"".concat(Ee,"-ellipsis"),G),Object(L.a)(l,"".concat(Ee,"-with-append"),K),Object(L.a)(l,"".concat(Ee,"-fix-sticky"),(J||te)&&de),l),k.className,re),style:Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({},k.style),Ae),$),me),ref:c(x)?f:null});return y.createElement(x,Object.assign({},rt),K,ce)}var a=y.forwardRef(t);a.displayName="Cell";var n=y.memo(a,function(i,f){return f.shouldCellUpdate?!f.shouldCellUpdate(f.record,i.record):!1});Y.a=n},"gb/T":function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return L.mode.ECB=function(){var p=L.lib.BlockCipherMode.extend();return p.Encryptor=p.extend({processBlock:function(A,b){this._cipher.encryptBlock(A,b)}}),p.Decryptor=p.extend({processBlock:function(A,b){this._cipher.decryptBlock(A,b)}}),p}(),L.mode.ECB})},"h/E3":function(M,Y,s){M.exports={information:"information___wfVJL",scroll:"scroll___2bOg0",formWrap:"formWrap___3qgTO",img:"img___2zP-8"}},h78n:function(M,Y,s){"use strict";s.d(Y,"a",function(){return N});var L=s("cDcd"),p=s.n(L),A=s("TSYQ"),b=s.n(A),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},S=function(W){var K=W.map(function(){return Object(L.useRef)()}),B=Object(L.useRef)();return Object(L.useEffect)(function(){var k=Date.now(),G=!1;Object.keys(K).forEach(function(ne){var fe=K[ne].current;if(!fe)return;G=!0;var de=fe.style;de.transitionDuration=".3s, .3s, .3s, .06s",B.current&&k-B.current<100&&(de.transitionDuration="0s, 0s")}),G&&(B.current=Date.now())}),[K]};function T(){return T=Object.assign||function(F){for(var W=1;W<arguments.length;W++){var K=arguments[W];for(var B in K)Object.prototype.hasOwnProperty.call(K,B)&&(F[B]=K[B])}return F},T.apply(this,arguments)}function h(F,W){return t(F)||c(F,W)||d(F,W)||_()}function _(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(F,W){if(!F)return;if(typeof F=="string")return r(F,W);var K=Object.prototype.toString.call(F).slice(8,-1);if(K==="Object"&&F.constructor&&(K=F.constructor.name),K==="Map"||K==="Set")return Array.from(F);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return r(F,W)}function r(F,W){(W==null||W>F.length)&&(W=F.length);for(var K=0,B=new Array(W);K<W;K++)B[K]=F[K];return B}function c(F,W){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var K=[],B=!0,k=!1,G=void 0;try{for(var ne=F[Symbol.iterator](),fe;!(B=(fe=ne.next()).done)&&!(K.push(fe.value),W&&K.length===W);B=!0);}catch(de){k=!0,G=de}finally{try{!B&&ne.return!=null&&ne.return()}finally{if(k)throw G}}return K}function t(F){if(Array.isArray(F))return F}function a(F,W){if(F==null)return{};var K=n(F,W),B,k;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(F);for(k=0;k<G.length;k++){if(B=G[k],W.indexOf(B)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,B))continue;K[B]=F[B]}}return K}function n(F,W){if(F==null)return{};var K={},B=Object.keys(F),k,G;for(G=0;G<B.length;G++){if(k=B[G],W.indexOf(k)>=0)continue;K[k]=F[k]}return K}var i=function(W){var K=W.className,B=W.percent,k=W.prefixCls,G=W.strokeColor,ne=W.strokeLinecap,fe=W.strokeWidth,de=W.style,Ee=W.trailColor,we=W.trailWidth,ce=W.transition,be=a(W,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete be.gapPosition;var ve=Array.isArray(B)?B:[B],ue=Array.isArray(G)?G:[G],se=S(ve),q=h(se,1),me=q[0],re=fe/2,ie=100-fe/2,Oe="M ".concat(ne==="round"?re:0,",").concat(re,`
L `).concat(ne==="round"?ie:100,",").concat(re),le="0 0 100 ".concat(fe),$=0;return p.a.createElement("svg",T({className:b()("".concat(k,"-line"),K),viewBox:le,preserveAspectRatio:"none",style:de},be),p.a.createElement("path",{className:"".concat(k,"-line-trail"),d:Oe,strokeLinecap:ne,stroke:Ee,strokeWidth:we||fe,fillOpacity:"0"}),ve.map(function(J,te){var Ae={strokeDasharray:"".concat(J,"px, 100px"),strokeDashoffset:"-".concat($,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Se=ue[te]||ue[ue.length-1];return $+=J,p.a.createElement("path",{key:te,className:"".concat(k,"-line-path"),d:Oe,strokeLinecap:ne,stroke:Se,strokeWidth:fe,fillOpacity:"0",ref:me[te],style:Ae})}))};i.defaultProps=y;var f=i;function l(){return l=Object.assign||function(F){for(var W=1;W<arguments.length;W++){var K=arguments[W];for(var B in K)Object.prototype.hasOwnProperty.call(K,B)&&(F[B]=K[B])}return F},l.apply(this,arguments)}function o(F,W){return P(F)||v(F,W)||w(F,W)||m()}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(F,W){if(!F)return;if(typeof F=="string")return C(F,W);var K=Object.prototype.toString.call(F).slice(8,-1);if(K==="Object"&&F.constructor&&(K=F.constructor.name),K==="Map"||K==="Set")return Array.from(F);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return C(F,W)}function C(F,W){(W==null||W>F.length)&&(W=F.length);for(var K=0,B=new Array(W);K<W;K++)B[K]=F[K];return B}function v(F,W){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var K=[],B=!0,k=!1,G=void 0;try{for(var ne=F[Symbol.iterator](),fe;!(B=(fe=ne.next()).done)&&!(K.push(fe.value),W&&K.length===W);B=!0);}catch(de){k=!0,G=de}finally{try{!B&&ne.return!=null&&ne.return()}finally{if(k)throw G}}return K}function P(F){if(Array.isArray(F))return F}function R(F,W){if(F==null)return{};var K=E(F,W),B,k;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(F);for(k=0;k<G.length;k++){if(B=G[k],W.indexOf(B)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,B))continue;K[B]=F[B]}}return K}function E(F,W){if(F==null)return{};var K={},B=Object.keys(F),k,G;for(G=0;G<B.length;G++){if(k=B[G],W.indexOf(k)>=0)continue;K[k]=F[k]}return K}var x=0;function g(F){return+F.replace("%","")}function O(F){return Array.isArray(F)?F:[F]}function I(F,W,K,B){var k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,G=arguments.length>5?arguments[5]:void 0,ne=50-B/2,fe=0,de=-ne,Ee=0,we=-2*ne;switch(G){case"left":fe=-ne,de=0,Ee=2*ne,we=0;break;case"right":fe=ne,de=0,Ee=-2*ne,we=0;break;case"bottom":de=ne,we=2*ne;break;default:}var ce="M 50,50 m ".concat(fe,",").concat(de,`
a `).concat(ne,",").concat(ne," 0 1 1 ").concat(Ee,",").concat(-we,`
a `).concat(ne,",").concat(ne," 0 1 1 ").concat(-Ee,",").concat(we),be=Math.PI*2*ne,ve={stroke:K,strokeDasharray:"".concat(W/100*(be-k),"px ").concat(be,"px"),strokeDashoffset:"-".concat(k/2+F/100*(be-k),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:ve}}var D=function(W){var K=W.prefixCls,B=W.strokeWidth,k=W.trailWidth,G=W.gapDegree,ne=W.gapPosition,fe=W.trailColor,de=W.strokeLinecap,Ee=W.style,we=W.className,ce=W.strokeColor,be=W.percent,ve=R(W,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(L.useMemo)(function(){return x+=1,x},[]),se=I(0,100,fe,B,G,ne),q=se.pathString,me=se.pathStyle,re=O(be),ie=O(ce),Oe=ie.find(function(Ae){return Object.prototype.toString.call(Ae)==="[object Object]"}),le=S(re),$=o(le,1),J=$[0],te=function(){var Se=0;return re.map(function(ke,rt){var ot=ie[rt]||ie[ie.length-1],gt=Object.prototype.toString.call(ot)==="[object Object]"?"url(#".concat(K,"-gradient-").concat(ue,")"):"",Et=I(Se,ke,ot,B,G,ne);return Se+=ke,p.a.createElement("path",{key:rt,className:"".concat(K,"-circle-path"),d:Et.pathString,stroke:gt,strokeLinecap:de,strokeWidth:B,opacity:ke===0?0:1,fillOpacity:"0",style:Et.pathStyle,ref:J[rt]})})};return p.a.createElement("svg",l({className:b()("".concat(K,"-circle"),we),viewBox:"0 0 100 100",style:Ee},ve),Oe&&p.a.createElement("defs",null,p.a.createElement("linearGradient",{id:"".concat(K,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Oe).sort(function(Ae,Se){return g(Ae)-g(Se)}).map(function(Ae,Se){return p.a.createElement("stop",{key:Se,offset:Ae,stopColor:Oe[Ae]})}))),p.a.createElement("path",{className:"".concat(K,"-circle-trail"),d:q,stroke:fe,strokeLinecap:de,strokeWidth:k||B,fillOpacity:"0",style:me}),te().reverse())};D.defaultProps=y;var N=D,V={Line:f,Circle:N}},hW5Z:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___2rjmw",flex_space_between:"flex_space_between___1LywI",flex_box_vertical_center:"flex_box_vertical_center___S66g_",flex_box_center_end:"flex_box_center_end___1QDp6",flex_box_column:"flex_box_column___12YxX",complete:"complete___2qtu-",cancel:"cancel___3WJG4",save:"save___oTylI"}},hW8S:function(M,Y,s){"use strict";s.d(Y,"a",function(){return b}),s.d(Y,"c",function(){return y}),s.d(Y,"b",function(){return S});var L=s("VTBJ"),p=s("Ff2n"),A=s("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function y(T){var h=T.expandable,_=Object(p.a)(T,["expandable"]);return"expandable"in T?Object(L.a)(Object(L.a)({},_),h):_}function S(T){return Object.keys(T).reduce(function(h,_){return(_.substr(0,5)==="data-"||_.substr(0,5)==="aria-")&&(h[_]=T[_]),h},{})}},"iL++":function(M,Y,s){M.exports={flex_box_center:"flex_box_center___2pHUo",flex_space_between:"flex_space_between___3Bfes",flex_box_vertical_center:"flex_box_vertical_center___1thiW",flex_box_center_end:"flex_box_center_end___3Zr7k",flex_box_column:"flex_box_column___3xe1a",list:"list___3rlGv",wrap:"wrap____oZzM",lockWrap:"lockWrap___24eY2",top:"top___3SCOc",sign:"sign____uZ_B",name:"name___2nHyM",img:"img___3Spn7",text:"text___1Pg2L",btns:"btns___Kr_Ti",bottom:"bottom___2_iOx"}},jO9C:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return L.pad.Iso97971={pad:function(p,A){p.concat(L.lib.WordArray.create([2147483648],1)),L.pad.ZeroPadding.pad(p,A)},unpad:function(p){L.pad.ZeroPadding.unpad(p),p.sigBytes--}},L.pad.Iso97971})},ji0R:function(M,Y,s){M.exports=s.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(M,Y,s){"use strict";var L=s("g9YV"),p=s("wCAj"),A=s("miYZ"),b=s("tsqr"),y=s("5Dmo"),S=s("3S7+"),T=s("sRBo"),h=s("kaz8"),_=s("oBTY"),d=s("9og8"),r=s("tJVT"),c=s("k1fw"),t=s("+L6B"),a=s("2/Rp"),n=s("O3gP"),i=s("lrIw"),f=s("5NDa"),l=s("5rEg"),o=s("y8nQ"),m=s("Vl3Y"),w=s("OaEy"),C=s("2fM7"),v=s("WmNS"),P=s.n(v),R=s("cDcd"),E=s.n(R),x=s("55Ip"),g=s("wd/R"),O=s.n(g),I=s("RotF"),D=s.n(I),N=s("E7E6"),V=s.n(N),F=s("oUNq"),W=s("Nf5h"),K=s("Fhpe"),B=s.n(K),k=[];function G(Ee){var we=Ee.onSearch,ce=Ee.schools;return E.a.createElement(m.a,{colon:!1,layout:"inline",onFinish:we,initialValues:{keyword:"",school_name:"",search_type:"1"},className:"search-form"},E.a.createElement(m.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},E.a.createElement(C.a,{dropdownClassName:B.a.selectdown,style:{width:148}},E.a.createElement(C.a.Option,{value:"1"},"\u59D3\u540D"),E.a.createElement(C.a.Option,{value:"2"},"\u624B\u673A\u53F7"),E.a.createElement(C.a.Option,{value:"3"},"\u90AE\u7BB1"))),E.a.createElement(m.a.Item,{label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",style:{marginLeft:44},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},E.a.createElement(l.a,{allowClear:!0,style:{width:170},size:"large"})),E.a.createElement(m.a.Item,{label:"\u5355\u4F4D",name:"school_name",style:{marginLeft:10}},E.a.createElement(i.a,{options:ce,style:{width:383},size:"large",showSearch:!0,filterOption:function(ve,ue){return ue.value.toUpperCase().indexOf(ve.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),E.a.createElement(m.a.Item,null,E.a.createElement(a.a,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",border:"1px solid #BACFFE"},htmlType:"submit"},"\u641C\u7D22")))}var ne;(function(Ee){Ee[Ee.INITDATA=0]="INITDATA",Ee[Ee.INITSCHOOLS=1]="INITSCHOOLS",Ee[Ee.SHOWLOADING=2]="SHOWLOADING",Ee[Ee.SELECTEDIDS=3]="SELECTEDIDS",Ee[Ee.SETQUERY=4]="SETQUERY",Ee[Ee.SETPAGE=5]="SETPAGE"})(ne||(ne={}));function fe(Ee,we){switch(we.type){case ne.INITDATA:return Object(c.a)(Object(c.a)({},Ee),we.payload);case ne.SETQUERY:return Object(c.a)(Object(c.a)({},Ee),we.payload);case ne.SETPAGE:return Object(c.a)(Object(c.a)({},Ee),{},{page:we.payload,reload:!1});case ne.SHOWLOADING:return Object(c.a)(Object(c.a)({},Ee),{},{loading:we.payload});case ne.INITSCHOOLS:return Object(c.a)(Object(c.a)({},Ee),{},{schools:we.payload});case ne.SELECTEDIDS:return Object(c.a)(Object(c.a)({},Ee),{},{selectedIds:we.payload});default:throw new Error}}var de={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};Y.a=function(Ee){var we=Ee.onSelect,ce=Ee.onCancel,be=Ee.container_id,ve=Ee.container_type,ue=Object(R.useReducer)(fe,de),se=Object(r.a)(ue,2),q=se[0],me=se[1],re=q.data,ie=q.schools,Oe=q.loading,le=q.selectedIds,$=q.page,J=q.count,te=q.query,Ae=q.reload;Object(R.useEffect)(function(){function Ct(){return wt.apply(this,arguments)}function wt(){return wt=Object(d.a)(P.a.mark(function Qe(){var Ue,ft,jt;return P.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(F.yb)(Object(c.a)(Object(c.a)({},te),{},{page:$,container_type:ve,container_id:be}));case 2:Ue=_t.sent,ft=Ue.users,jt=Ue.user_count,me({type:ne.INITDATA,payload:{data:Ae?ft:[].concat(Object(_.a)(re),Object(_.a)(ft)),count:jt}});case 6:case"end":return _t.stop()}},Qe)})),wt.apply(this,arguments)}te&&Ct()},[$,te,Ae,be,ve]),Object(R.useEffect)(function(){function Ct(){return wt.apply(this,arguments)}function wt(){return wt=Object(d.a)(P.a.mark(function Qe(){var Ue,ft;return P.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,Object(F.lb)({});case 2:Ue=ht.sent,ft=Ue.school_names,me({type:ne.INITSCHOOLS,payload:ft.map(function(_t){return{value:_t}})});case 5:case"end":return ht.stop()}},Qe)})),wt.apply(this,arguments)}Ct()},[]);var Se=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(wt,Qe){return E.a.createElement(h.a,{value:Qe.numid,checked:le.includes(Qe.numid),disabled:!!wt})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(wt,Qe){return E.a.createElement("div",null,E.a.createElement(S.a,{placement:"bottom",title:wt},E.a.createElement(x.a,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(Qe.login),target:"_blank"},wt||"--")))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(wt){return E.a.createElement(S.a,{placement:"bottom",title:wt},E.a.createElement("span",{style:{color:"#000000"}},wt||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(wt){return E.a.createElement(S.a,{placement:"bottom",title:wt},E.a.createElement("span",{style:{color:"#000000"}},wt||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(wt){return E.a.createElement(S.a,{placement:"bottom",title:wt},E.a.createElement("span",{style:{color:"#000000"}},wt||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(wt){return E.a.createElement(S.a,{placement:"bottom",title:wt},E.a.createElement("span",{style:{color:"#000000"}},wt||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(wt){return E.a.createElement(S.a,{placement:"bottom",title:wt},E.a.createElement("span",{style:{color:"#000000"}},wt||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(wt){return E.a.createElement("span",{style:{color:"#000000"}},wt?"\u662F":"\u5426")}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(wt){return E.a.createElement(S.a,{placement:"bottom",title:wt},E.a.createElement("span",{style:{color:"#000000"}},O()(wt).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(wt){if(wt===1)return E.a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function ke(Ct){me({type:ne.SETQUERY,payload:{page:1,reload:!0,query:Ct}})}function rt(Ct){me({type:ne.SETPAGE,payload:Ct})}function ot(Ct){var wt=le.indexOf(Ct);wt>=0?le.splice(wt,1):le.push(Ct),me({type:ne.SELECTEDIDS,payload:Object(_.a)(le)})}function gt(){le.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(we(le,be),me({type:ne.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var Et=J>$*10;return E.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},E.a.createElement(G,{onSearch:ke,schools:ie}),te?E.a.createElement(E.a.Fragment,null,E.a.createElement("div",{className:"flexd-table-header mt20"},E.a.createElement(W.f,null,E.a.createElement(p.a,{pagination:!1,dataSource:k,columns:Se}))),E.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},E.a.createElement(D.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:rt,hasMore:Et,useWindow:!1},E.a.createElement(W.f,null,E.a.createElement(p.a,{loading:Oe,showHeader:!1,pagination:!1,dataSource:re,columns:Se,onRow:function(wt){return{onClick:function(Ue){wt.added!==1&&ot(wt.numid)}}}})))),E.a.createElement("div",{className:"flex-container flex-end"},E.a.createElement(a.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ce},"\u53D6\u6D88"),E.a.createElement(a.a,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:gt},"\u786E\u5B9A"))):E.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},E.a.createElement("img",{src:V.a,width:"100",alt:""}),E.a.createElement("br",null),E.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(M,Y,s){"use strict";s.d(Y,"a",function(){return Xr});var L=s("rePB"),p=s("ODXe"),A=s("Ff2n"),b=s("VTBJ"),y=s("cDcd"),S=s("TSYQ"),T=s.n(S),h=s("Zm9Q"),_=s("6cGi"),d=s("KQm4"),r=s("xEkU"),c=s.n(r),t=s("t23M");function a(Je){var ct=Object(y.useRef)(),yt=Object(y.useRef)(!1);function at(){for(var Pe=arguments.length,ze=new Array(Pe),Ie=0;Ie<Pe;Ie++)ze[Ie]=arguments[Ie];yt.current||(c.a.cancel(ct.current),ct.current=c()(function(){Je.apply(void 0,ze)}))}return Object(y.useEffect)(function(){return function(){yt.current=!0,c.a.cancel(ct.current)}},[]),at}function n(Je){var ct=Object(y.useRef)([]),yt=Object(y.useState)({}),at=Object(p.a)(yt,2),Pe=at[1],ze=Object(y.useRef)(typeof Je=="function"?Je():Je),Ie=a(function(){var qe=ze.current;ct.current.forEach(function(pt){qe=pt(qe)}),ct.current=[],ze.current=qe,Pe({})});function $e(qe){ct.current.push(qe),Ie()}return[ze.current,$e]}var i=s("4IlW");function f(Je,ct){var yt,at=Je.prefixCls,Pe=Je.id,ze=Je.active,Ie=Je.rtl,$e=Je.tab,qe=$e.key,pt=$e.tab,it=$e.disabled,Lt=$e.closeIcon,Vt=Je.tabBarGutter,hn=Je.tabPosition,sn=Je.closable,un=Je.renderWrapper,ln=Je.removeAriaLabel,Kn=Je.editable,xn=Je.onClick,Ur=Je.onRemove,Pr=Je.onFocus,Jr="".concat(at,"-tab");y.useEffect(function(){return Ur},[]);var Fr={};hn==="top"||hn==="bottom"?Fr[Ie?"marginLeft":"marginRight"]=Vt:Fr.marginBottom=Vt;var ta=Kn&&sn!==!1&&!it;function zn(En){if(it)return;xn(En)}function Or(En){En.preventDefault(),En.stopPropagation(),Kn.onEdit("remove",{key:qe,event:En})}var Vn=y.createElement("div",{key:qe,ref:ct,className:T()(Jr,(yt={},Object(L.a)(yt,"".concat(Jr,"-with-remove"),ta),Object(L.a)(yt,"".concat(Jr,"-active"),ze),Object(L.a)(yt,"".concat(Jr,"-disabled"),it),yt)),style:Fr,onClick:zn},y.createElement("div",{role:"tab","aria-selected":ze,id:Pe&&"".concat(Pe,"-tab-").concat(qe),className:"".concat(Jr,"-btn"),"aria-controls":Pe&&"".concat(Pe,"-panel-").concat(qe),"aria-disabled":it,tabIndex:it?null:0,onClick:function(Wn){Wn.stopPropagation(),zn(Wn)},onKeyDown:function(Wn){[i.a.SPACE,i.a.ENTER].includes(Wn.which)&&(Wn.preventDefault(),zn(Wn))},onFocus:Pr},pt),ta&&y.createElement("button",{type:"button","aria-label":ln||"remove",tabIndex:0,className:"".concat(Jr,"-remove"),onClick:function(Wn){Wn.stopPropagation(),Or(Wn)}},Lt||Kn.removeIcon||"\xD7"));return un&&(Vn=un(Vn)),Vn}var l=y.forwardRef(f),o={width:0,height:0,left:0,top:0};function m(Je,ct,yt){return Object(y.useMemo)(function(){for(var at,Pe=new Map,ze=ct.get((at=Je[0])===null||at===void 0?void 0:at.key)||o,Ie=ze.left+ze.width,$e=0;$e<Je.length;$e+=1){var qe=Je[$e].key,pt=ct.get(qe);if(!pt){var it;pt=ct.get((it=Je[$e-1])===null||it===void 0?void 0:it.key)||o}var Lt=Pe.get(qe)||Object(b.a)({},pt);Lt.right=Ie-Lt.left-Lt.width,Pe.set(qe,Lt)}return Pe},[Je.map(function(at){return at.key}).join("_"),ct,yt])}var w={width:0,height:0,left:0,top:0,right:0};function C(Je,ct,yt,at,Pe){var ze=Pe.tabs,Ie=Pe.tabPosition,$e=Pe.rtl,qe,pt,it;["top","bottom"].includes(Ie)?(qe="width",pt=$e?"right":"left",it=Math.abs(ct.left)):(qe="height",pt="top",it=-ct.top);var Lt=ct[qe],Vt=yt[qe],hn=at[qe],sn=Lt;return Vt+hn>Lt&&(sn=Lt-hn),Object(y.useMemo)(function(){if(!ze.length)return[0,0];for(var un=ze.length,ln=un,Kn=0;Kn<un;Kn+=1){var xn=Je.get(ze[Kn].key)||w;if(xn[pt]+xn[qe]>it+sn){ln=Kn-1;break}}for(var Ur=0,Pr=un-1;Pr>=0;Pr-=1){var Jr=Je.get(ze[Pr].key)||w;if(Jr[pt]<it){Ur=Pr+1;break}}return[Ur,ln]},[Je,it,sn,Ie,ze.map(function(un){return un.key}).join("_"),$e])}var v=s("wx14"),P=s("1OyB"),R=s("vuIU"),E=s("JX7q"),x=s("Ji7U"),g=s("LK+K"),O=s("I8Z2"),I=s("bT9E"),D=s("2GS6"),N=s("Gytx"),V=s.n(N),F=s("U8pU"),W=/iPhone/i,K=/iPod/i,B=/iPad/i,k=/\bAndroid(?:.+)Mobile\b/i,G=/Android/i,ne=/\bAndroid(?:.+)SD4930UR\b/i,fe=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,de=/Windows Phone/i,Ee=/\bWindows(?:.+)ARM\b/i,we=/BlackBerry/i,ce=/BB10/i,be=/Opera Mini/i,ve=/\b(CriOS|Chrome)(?:.+)Mobile/i,ue=/Mobile(?:.+)Firefox\b/i;function se(Je,ct){return Je.test(ct)}function q(Je){var ct=Je||(typeof navigator!="undefined"?navigator.userAgent:""),yt=(ct||"").split("[FBAN");if(typeof yt[1]!="undefined"){var at=yt,Pe=Object(p.a)(at,1);ct=Pe[0]}if(yt=ct.split("Twitter"),typeof yt[1]!="undefined"){var ze=yt,Ie=Object(p.a)(ze,1);ct=Ie[0]}var $e={apple:{phone:se(W,ct)&&!se(de,ct),ipod:se(K,ct),tablet:!se(W,ct)&&se(B,ct)&&!se(de,ct),device:(se(W,ct)||se(K,ct)||se(B,ct))&&!se(de,ct)},amazon:{phone:se(ne,ct),tablet:!se(ne,ct)&&se(fe,ct),device:se(ne,ct)||se(fe,ct)},android:{phone:!se(de,ct)&&se(ne,ct)||!se(de,ct)&&se(k,ct),tablet:!se(de,ct)&&!se(ne,ct)&&!se(k,ct)&&(se(fe,ct)||se(G,ct)),device:!se(de,ct)&&(se(ne,ct)||se(fe,ct)||se(k,ct)||se(G,ct))||se(/\bokhttp\b/i,ct)},windows:{phone:se(de,ct),tablet:se(Ee,ct),device:se(de,ct)||se(Ee,ct)},other:{blackberry:se(we,ct),blackberry10:se(ce,ct),opera:se(be,ct),firefox:se(ue,ct),chrome:se(ve,ct),device:se(we,ct)||se(ce,ct)||se(be,ct)||se(ue,ct)||se(ve,ct)},any:null,phone:null,tablet:null};return $e.any=$e.apple.device||$e.android.device||$e.windows.device||$e.other.device,$e.phone=$e.apple.phone||$e.android.phone||$e.windows.phone,$e.tablet=$e.apple.tablet||$e.android.tablet||$e.windows.tablet,$e}var me=Object(b.a)(Object(b.a)({},q()),{},{isMobile:q}),re=me;function ie(){}function Oe(Je,ct,yt){var at=ct||"";return Je.key||"".concat(at,"item_").concat(yt)}function le(Je){return"".concat(Je,"-menu-")}function $(Je,ct){var yt=-1;y.Children.forEach(Je,function(at){yt+=1,at&&at.type&&at.type.isMenuItemGroup?y.Children.forEach(at.props.children,function(Pe){yt+=1,ct(Pe,yt)}):ct(at,yt)})}function J(Je,ct,yt){if(!Je||yt.find)return;y.Children.forEach(Je,function(at){if(at){var Pe=at.type;if(!Pe||!(Pe.isSubMenu||Pe.isMenuItem||Pe.isMenuItemGroup))return;ct.indexOf(at.key)!==-1?yt.find=!0:at.props.children&&J(at.props.children,ct,yt)}})}var te=["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"],Ae=function(ct){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=ct&&typeof ct.getBoundingClientRect=="function"&&ct.getBoundingClientRect().width;if(at){if(yt){var Pe=getComputedStyle(ct),ze=Pe.marginLeft,Ie=Pe.marginRight;at+=+ze.replace("px","")+ +Ie.replace("px","")}at=+at.toFixed(6)}return at||0},Se=function(ct,yt,at){ct&&Object(F.a)(ct.style)==="object"&&(ct.style[yt]=at)},ke=function(){return re.any},rt=s("bdgK"),ot=s("faye"),gt=s.n(ot),Et=s("wgJM"),Ct=s("l4aY"),wt=s("m+aA"),Qe=s("c+Xe"),Ue=s("zT1h"),ft=s("QC+M");function jt(Je,ct,yt){return yt?Je[0]===ct[0]:Je[0]===ct[0]&&Je[1]===ct[1]}function ht(Je,ct,yt){var at=Je[ct]||{};return Object(b.a)(Object(b.a)({},at),yt)}function _t(Je,ct,yt,at){for(var Pe=yt.points,ze=Object.keys(Je),Ie=0;Ie<ze.length;Ie+=1){var $e=ze[Ie];if(jt(Je[$e].points,Pe,at))return"".concat(ct,"-placement-").concat($e)}return""}var Ye=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Je=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Je)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Je==null?void 0:Je.substr(0,4)))},We=s("MNnm");function Xe(Je,ct){var yt={};return yt[Je.toLowerCase()]=ct.toLowerCase(),yt["Webkit".concat(Je)]="webkit".concat(ct),yt["Moz".concat(Je)]="moz".concat(ct),yt["ms".concat(Je)]="MS".concat(ct),yt["O".concat(Je)]="o".concat(ct.toLowerCase()),yt}function Te(Je,ct){var yt={animationend:Xe("Animation","AnimationEnd"),transitionend:Xe("Transition","TransitionEnd")};return Je&&("AnimationEvent"in ct||delete yt.animationend.animation,"TransitionEvent"in ct||delete yt.transitionend.transition),yt}var Me=Te(Object(We.a)(),typeof window!="undefined"?window:{}),Ve={};if(Object(We.a)()){var Ge=document.createElement("div");Ve=Ge.style}var Ze={};function mt(Je){if(Ze[Je])return Ze[Je];var ct=Me[Je];if(ct)for(var yt=Object.keys(ct),at=yt.length,Pe=0;Pe<at;Pe+=1){var ze=yt[Pe];if(Object.prototype.hasOwnProperty.call(ct,ze)&&ze in Ve)return Ze[Je]=ct[ze],Ze[Je]}return""}var Pt=mt("animationend"),Gt=mt("transitionend"),dn=!!(Pt&&Gt),Tt=Pt||"animationend",ut=Gt||"transitionend";function je(Je,ct){if(!Je)return null;if(Object(F.a)(Je)==="object"){var yt=ct.replace(/-\w/g,function(at){return at[1].toUpperCase()});return Je[yt]}return"".concat(Je,"-").concat(ct)}var tt="none",nt="appear",De="enter",Fe="leave",bt="none",dt="prepare",xt="start",kt="active",et="end";function Mt(Je){var ct=Object(y.useRef)(!1),yt=Object(y.useState)(Je),at=Object(p.a)(yt,2),Pe=at[0],ze=at[1];function Ie($e){ct.current||ze($e)}return Object(y.useEffect)(function(){return function(){ct.current=!0}},[]),[Pe,Ie]}var Ht=Object(We.a)()?y.useLayoutEffect:y.useEffect,_n=Ht,vn=function(){var Je=y.useRef(null);function ct(){Et.a.cancel(Je.current)}function yt(at){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ct();var ze=Object(Et.a)(function(){Pe<=1?at({isCanceled:function(){return ze!==Je.current}}):yt(at,Pe-1)});Je.current=ze}return y.useEffect(function(){return function(){ct()}},[]),[yt,ct]},fn=[dt,xt,kt,et],Gn=!1,wn=!0;function rn(Je){return Je===kt||Je===et}var Qn=function(Je,ct){var yt=y.useState(bt),at=Object(p.a)(yt,2),Pe=at[0],ze=at[1],Ie=vn(),$e=Object(p.a)(Ie,2),qe=$e[0],pt=$e[1];function it(){ze(dt)}return _n(function(){if(Pe!==bt&&Pe!==et){var Lt=fn.indexOf(Pe),Vt=fn[Lt+1],hn=ct(Pe);hn===Gn?ze(Vt):qe(function(sn){function un(){if(sn.isCanceled())return;ze(Vt)}hn===!0?un():Promise.resolve(hn).then(un)})}},[Je,Pe]),y.useEffect(function(){return function(){pt()}},[]),[it,Pe]},Zn=function(Je){var ct=Object(y.useRef)(),yt=Object(y.useRef)(Je);yt.current=Je;var at=y.useCallback(function(Ie){yt.current(Ie)},[]);function Pe(Ie){Ie&&(Ie.removeEventListener(ut,at),Ie.removeEventListener(Tt,at))}function ze(Ie){ct.current&&ct.current!==Ie&&Pe(ct.current),Ie&&Ie!==ct.current&&(Ie.addEventListener(ut,at),Ie.addEventListener(Tt,at),ct.current=Ie)}return y.useEffect(function(){return function(){Pe(ct.current)}},[]),[ze,Pe]};function rr(Je,ct,yt,at){var Pe=at.motionEnter,ze=Pe===void 0?!0:Pe,Ie=at.motionAppear,$e=Ie===void 0?!0:Ie,qe=at.motionLeave,pt=qe===void 0?!0:qe,it=at.motionDeadline,Lt=at.motionLeaveImmediately,Vt=at.onAppearPrepare,hn=at.onEnterPrepare,sn=at.onLeavePrepare,un=at.onAppearStart,ln=at.onEnterStart,Kn=at.onLeaveStart,xn=at.onAppearActive,Ur=at.onEnterActive,Pr=at.onLeaveActive,Jr=at.onAppearEnd,Fr=at.onEnterEnd,ta=at.onLeaveEnd,zn=at.onVisibleChanged,Or=Mt(),Vn=Object(p.a)(Or,2),En=Vn[0],Wn=Vn[1],zr=Mt(tt),sa=Object(p.a)(zr,2),gr=sa[0],ra=sa[1],Ea=Mt(null),ca=Object(p.a)(Ea,2),xa=ca[0],Tr=ca[1],Er=Object(y.useRef)(!1),Mr=Object(y.useRef)(null),or=Object(y.useRef)(!1),da=Object(y.useRef)(null);function ya(){var Ua=yt();return Ua||da.current}var _a=Object(y.useRef)(!1);function Oa(Ua){var Pa=ya();if(Ua&&!Ua.deadline&&Ua.target!==Pa)return;var Za;gr===nt&&_a.current?Za=Jr==null?void 0:Jr(Pa,Ua):gr===De&&_a.current?Za=Fr==null?void 0:Fr(Pa,Ua):gr===Fe&&_a.current&&(Za=ta==null?void 0:ta(Pa,Ua)),Za!==!1&&!or.current&&(ra(tt),Tr(null))}var ha=Zn(Oa),La=Object(p.a)(ha,1),Na=La[0],Ba=y.useMemo(function(){var Ua,Pa,Za;switch(gr){case"appear":return Ua={},Object(L.a)(Ua,dt,Vt),Object(L.a)(Ua,xt,un),Object(L.a)(Ua,kt,xn),Ua;case"enter":return Pa={},Object(L.a)(Pa,dt,hn),Object(L.a)(Pa,xt,ln),Object(L.a)(Pa,kt,Ur),Pa;case"leave":return Za={},Object(L.a)(Za,dt,sn),Object(L.a)(Za,xt,Kn),Object(L.a)(Za,kt,Pr),Za;default:return{}}},[gr]),ni=Qn(gr,function(Ua){if(Ua===dt){var Pa=Ba[dt];return Pa?Pa(ya()):Gn}if(Ia in Ba){var Za;Tr(((Za=Ba[Ia])===null||Za===void 0?void 0:Za.call(Ba,ya(),null))||null)}return Ia===kt&&(Na(ya()),it>0&&(clearTimeout(Mr.current),Mr.current=setTimeout(function(){Oa({deadline:!0})},it))),wn}),Fi=Object(p.a)(ni,2),Ai=Fi[0],Ia=Fi[1],bi=rn(Ia);_a.current=bi,_n(function(){Wn(ct);var Ua=Er.current;if(Er.current=!0,!Je)return;var Pa;!Ua&&ct&&$e&&(Pa=nt),Ua&&ct&&ze&&(Pa=De),(Ua&&!ct&&pt||!Ua&&Lt&&!ct&&pt)&&(Pa=Fe),Pa&&(ra(Pa),Ai())},[ct]),Object(y.useEffect)(function(){(gr===nt&&!$e||gr===De&&!ze||gr===Fe&&!pt)&&ra(tt)},[$e,ze,pt]),Object(y.useEffect)(function(){return function(){clearTimeout(Mr.current),or.current=!0}},[]),Object(y.useEffect)(function(){En!==void 0&&gr===tt&&(zn==null||zn(En))},[En,gr]);var Si=xa;return Ba[dt]&&Ia===xt&&(Si=Object(b.a)({transition:"none"},Si)),[gr,Ia,Si,En!=null?En:ct]}var $n=function(Je){Object(x.a)(yt,Je);var ct=Object(g.a)(yt);function yt(){return Object(P.a)(this,yt),ct.apply(this,arguments)}return Object(R.a)(yt,[{key:"render",value:function(){return this.props.children}}]),yt}(y.Component),Ar=$n;function pr(Je){var ct=Je;Object(F.a)(Je)==="object"&&(ct=Je.transitionSupport);function yt(Pe){return!!(Pe.motionName&&ct)}var at=y.forwardRef(function(Pe,ze){var Ie=Pe.visible,$e=Ie===void 0?!0:Ie,qe=Pe.removeOnLeave,pt=qe===void 0?!0:qe,it=Pe.forceRender,Lt=Pe.children,Vt=Pe.motionName,hn=Pe.leavedClassName,sn=Pe.eventProps,un=yt(Pe),ln=Object(y.useRef)(),Kn=Object(y.useRef)();function xn(){try{return Object(wt.a)(ln.current||Kn.current)}catch(ra){return null}}var Ur=rr(un,$e,xn,Pe),Pr=Object(p.a)(Ur,4),Jr=Pr[0],Fr=Pr[1],ta=Pr[2],zn=Pr[3],Or=y.useRef(zn);zn&&(Or.current=!0);var Vn=Object(y.useRef)(ze);Vn.current=ze;var En=y.useCallback(function(ra){ln.current=ra,Object(Qe.b)(Vn.current,ra)},[]),Wn,zr=Object(b.a)(Object(b.a)({},sn),{},{visible:$e});if(!Lt)Wn=null;else if(Jr===tt||!yt(Pe))zn?Wn=Lt(Object(b.a)({},zr),En):!pt&&Or.current?Wn=Lt(Object(b.a)(Object(b.a)({},zr),{},{className:hn}),En):it?Wn=Lt(Object(b.a)(Object(b.a)({},zr),{},{style:{display:"none"}}),En):Wn=null;else{var sa,gr;Fr===dt?gr="prepare":rn(Fr)?gr="active":Fr===xt&&(gr="start"),Wn=Lt(Object(b.a)(Object(b.a)({},zr),{},{className:T()(je(Vt,Jr),(sa={},Object(L.a)(sa,je(Vt,"".concat(Jr,"-").concat(gr)),gr),Object(L.a)(sa,Vt,typeof Vt=="string"),sa)),style:ta}),En)}return y.createElement(Ar,{ref:Kn},Wn)});return at.displayName="CSSMotion",at}var on=pr(dn),Zt="add",An="keep",jr="remove",Ln="removed";function qn(Je){var ct;return Je&&Object(F.a)(Je)==="object"&&"key"in Je?ct=Je:ct={key:Je},Object(b.a)(Object(b.a)({},ct),{},{key:String(ct.key)})}function Un(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Je.map(qn)}function pe(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=[],at=0,Pe=ct.length,ze=Un(Je),Ie=Un(ct);ze.forEach(function(pt){for(var it=!1,Lt=at;Lt<Pe;Lt+=1){var Vt=Ie[Lt];if(Vt.key===pt.key){at<Lt&&(yt=yt.concat(Ie.slice(at,Lt).map(function(hn){return Object(b.a)(Object(b.a)({},hn),{},{status:Zt})})),at=Lt),yt.push(Object(b.a)(Object(b.a)({},Vt),{},{status:An})),at+=1,it=!0;break}}it||yt.push(Object(b.a)(Object(b.a)({},pt),{},{status:jr}))}),at<Pe&&(yt=yt.concat(Ie.slice(at).map(function(pt){return Object(b.a)(Object(b.a)({},pt),{},{status:Zt})})));var $e={};yt.forEach(function(pt){var it=pt.key;$e[it]=($e[it]||0)+1});var qe=Object.keys($e).filter(function(pt){return $e[pt]>1});return qe.forEach(function(pt){yt=yt.filter(function(it){var Lt=it.key,Vt=it.status;return Lt!==pt||Vt!==jr}),yt.forEach(function(it){it.key===pt&&(it.status=An)})}),yt}var z=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Z(Je){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:on,yt=function(at){Object(x.a)(ze,at);var Pe=Object(g.a)(ze);function ze(){var Ie;return Object(P.a)(this,ze),Ie=Pe.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function($e){Ie.setState(function(qe){var pt=qe.keyEntities;return{keyEntities:pt.map(function(it){return it.key!==$e?it:Object(b.a)(Object(b.a)({},it),{},{status:Ln})})}})},Ie}return Object(R.a)(ze,[{key:"render",value:function(){var $e=this,qe=this.state.keyEntities,pt=this.props,it=pt.component,Lt=pt.children,Vt=pt.onVisibleChanged,hn=Object(A.a)(pt,["component","children","onVisibleChanged"]),sn=it||y.Fragment,un={};return z.forEach(function(ln){un[ln]=hn[ln],delete hn[ln]}),delete hn.keys,y.createElement(sn,hn,qe.map(function(ln){var Kn=ln.status,xn=Object(A.a)(ln,["status"]),Ur=Kn===Zt||Kn===An;return y.createElement(ct,Object(v.a)({},un,{key:xn.key,visible:Ur,eventProps:xn,onVisibleChanged:function(Jr){Vt==null||Vt(Jr,{key:xn.key}),Jr||$e.removeKey(xn.key)}}),Lt)}))}}],[{key:"getDerivedStateFromProps",value:function($e,qe){var pt=$e.keys,it=qe.keyEntities,Lt=Un(pt),Vt=pe(it,Lt);return{keyEntities:Vt.filter(function(hn){var sn=it.find(function(un){var ln=un.key;return hn.key===ln});return!(sn&&sn.status===Ln&&hn.status===jr)})}}}]),ze}(y.Component);return yt.defaultProps={component:"div"},yt}var oe=Z(dn),xe=on;function he(Je){var ct=Je.prefixCls,yt=Je.motion,at=Je.animation,Pe=Je.transitionName;return yt||(at?{motionName:"".concat(ct,"-").concat(at)}:Pe?{motionName:Pe}:null)}function lt(Je){var ct=Je.prefixCls,yt=Je.visible,at=Je.zIndex,Pe=Je.mask,ze=Je.maskMotion,Ie=Je.maskAnimation,$e=Je.maskTransitionName;if(!Pe)return null;var qe={};return(ze||$e||Ie)&&(qe=Object(b.a)({motionAppear:!0},he({motion:ze,prefixCls:ct,transitionName:$e,animation:Ie}))),y.createElement(xe,Object(v.a)({},qe,{visible:yt,removeOnLeave:!0}),function(pt){var it=pt.className;return y.createElement("div",{style:{zIndex:at},className:T()("".concat(ct,"-mask"),it)})})}var an=s("9mu1"),Nn=s("o0o1"),Yn=s.n(Nn),tn=s("HaE+"),Cn=["measure","align",null,"motion"],Jn=function(Je,ct){var yt=Object(y.useState)(null),at=Object(p.a)(yt,2),Pe=at[0],ze=at[1],Ie=Object(y.useRef)(),$e=Object(y.useRef)(!1);function qe(Lt){$e.current||ze(Lt)}function pt(){Et.a.cancel(Ie.current)}function it(Lt){pt(),Ie.current=Object(Et.a)(function(){qe(function(Vt){switch(Pe){case"align":return"motion";case"motion":return"stable";default:}return Vt}),Lt==null||Lt()})}return Object(y.useEffect)(function(){qe("measure")},[Je]),Object(y.useEffect)(function(){switch(Pe){case"measure":ct();break;default:}Pe&&(Ie.current=Object(Et.a)(Object(tn.a)(Yn.a.mark(function Lt(){var Vt,hn;return Yn.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:Vt=Cn.indexOf(Pe),hn=Cn[Vt+1],hn&&Vt!==-1&&qe(hn);case 3:case"end":return un.stop()}},Lt)}))))},[Pe]),Object(y.useEffect)(function(){return function(){$e.current=!0,pt()}},[]),[Pe,it]},$r=function(Je){var ct=y.useState({width:0,height:0}),yt=Object(p.a)(ct,2),at=yt[0],Pe=yt[1];function ze($e){Pe({width:$e.offsetWidth,height:$e.offsetHeight})}var Ie=y.useMemo(function(){var $e={};if(Je){var qe=at.width,pt=at.height;Je.indexOf("height")!==-1&&pt?$e.height=pt:Je.indexOf("minHeight")!==-1&&pt&&($e.minHeight=pt),Je.indexOf("width")!==-1&&qe?$e.width=qe:Je.indexOf("minWidth")!==-1&&qe&&($e.minWidth=qe)}return $e},[Je,at]);return[Ie,ze]},ga=y.forwardRef(function(Je,ct){var yt=Je.visible,at=Je.prefixCls,Pe=Je.className,ze=Je.style,Ie=Je.children,$e=Je.zIndex,qe=Je.stretch,pt=Je.destroyPopupOnHide,it=Je.forceRender,Lt=Je.align,Vt=Je.point,hn=Je.getRootDomNode,sn=Je.getClassNameFromAlign,un=Je.onAlign,ln=Je.onMouseEnter,Kn=Je.onMouseLeave,xn=Je.onMouseDown,Ur=Je.onTouchStart,Pr=Object(y.useRef)(),Jr=Object(y.useRef)(),Fr=Object(y.useState)(),ta=Object(p.a)(Fr,2),zn=ta[0],Or=ta[1],Vn=$r(qe),En=Object(p.a)(Vn,2),Wn=En[0],zr=En[1];function sa(){qe&&zr(hn())}var gr=Jn(yt,sa),ra=Object(p.a)(gr,2),Ea=ra[0],ca=ra[1],xa=Object(y.useRef)();function Tr(){return Vt||hn}function Er(){var ha;(ha=Pr.current)===null||ha===void 0||ha.forceAlign()}function Mr(ha,La){var Na=sn(La);zn!==Na&&Or(Na),Ea==="align"&&(zn!==Na?Promise.resolve().then(function(){Er()}):ca(function(){var Ba;(Ba=xa.current)===null||Ba===void 0||Ba.call(xa)}),un==null||un(ha,La))}var or=Object(b.a)({},he(Je));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ha){var La=or[ha];or[ha]=function(Na,Ba){return ca(),La==null?void 0:La(Na,Ba)}});function da(){return new Promise(function(ha){xa.current=ha})}y.useEffect(function(){!or.motionName&&Ea==="motion"&&ca()},[or.motionName,Ea]),y.useImperativeHandle(ct,function(){return{forceAlign:Er,getElement:function(){return Jr.current}}});var ya=Object(b.a)(Object(b.a)({},Wn),{},{zIndex:$e,opacity:Ea==="motion"||Ea==="stable"||!yt?void 0:0,pointerEvents:Ea==="stable"?void 0:"none"},ze),_a=!0;(Lt==null?void 0:Lt.points)&&(Ea==="align"||Ea==="stable")&&(_a=!1);var Oa=Ie;return y.Children.count(Ie)>1&&(Oa=y.createElement("div",{className:"".concat(at,"-content")},Ie)),y.createElement(xe,Object(v.a)({visible:yt,ref:Jr,leavedClassName:"".concat(at,"-hidden")},or,{onAppearPrepare:da,onEnterPrepare:da,removeOnLeave:pt,forceRender:it}),function(ha,La){var Na=ha.className,Ba=ha.style,ni=T()(at,Pe,zn,Na);return y.createElement(an.a,{target:Tr(),key:"popup",ref:Pr,monitorWindowResize:!0,disabled:_a,align:Lt,onAlign:Mr},y.createElement("div",{ref:La,className:ni,onMouseEnter:ln,onMouseLeave:Kn,onMouseDownCapture:xn,onTouchStartCapture:Ur,style:Object(b.a)(Object(b.a)({},Ba),ya)},Oa))})});ga.displayName="PopupInner";var pa=ga,mr=y.forwardRef(function(Je,ct){var yt=Je.prefixCls,at=Je.visible,Pe=Je.zIndex,ze=Je.children,Ie=Je.mobile;Ie=Ie===void 0?{}:Ie;var $e=Ie.popupClassName,qe=Ie.popupStyle,pt=Ie.popupMotion,it=pt===void 0?{}:pt,Lt=Ie.popupRender,Vt=y.useRef();y.useImperativeHandle(ct,function(){return{forceAlign:function(){},getElement:function(){return Vt.current}}});var hn=Object(b.a)({zIndex:Pe},qe),sn=ze;return y.Children.count(ze)>1&&(sn=y.createElement("div",{className:"".concat(yt,"-content")},ze)),Lt&&(sn=Lt(sn)),y.createElement(xe,Object(v.a)({visible:at,ref:Vt,removeOnLeave:!0},it),function(un,ln){var Kn=un.className,xn=un.style,Ur=T()(yt,$e,Kn);return y.createElement("div",{ref:ln,className:Ur,style:Object(b.a)(Object(b.a)({},xn),hn)},sn)})});mr.displayName="MobilePopupInner";var za=mr,ja=["visible","mobile"],Ra=y.forwardRef(function(Je,ct){var yt=Je.visible,at=Je.mobile,Pe=Object(A.a)(Je,ja),ze=Object(y.useState)(yt),Ie=Object(p.a)(ze,2),$e=Ie[0],qe=Ie[1],pt=Object(y.useState)(!1),it=Object(p.a)(pt,2),Lt=it[0],Vt=it[1],hn=Object(b.a)(Object(b.a)({},Pe),{},{visible:$e});Object(y.useEffect)(function(){qe(yt),yt&&at&&Vt(Ye())},[yt,at]);var sn=Lt?y.createElement(za,Object(v.a)({},hn,{mobile:at,ref:ct})):y.createElement(pa,Object(v.a)({},hn,{ref:ct}));return y.createElement("div",null,y.createElement(lt,hn),sn)});Ra.displayName="Popup";var Ha=Ra,Sa=y.createContext(null),Ja=Sa;function ka(){}function li(){return""}function oi(Je){return Je?Je.ownerDocument:window.document}var ua=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function fa(Je){var ct=function(yt){Object(x.a)(Pe,yt);var at=Object(g.a)(Pe);function Pe(ze){var Ie;Object(P.a)(this,Pe),Ie=at.call(this,ze),Ie.popupRef=y.createRef(),Ie.triggerRef=y.createRef(),Ie.attachId=void 0,Ie.clickOutsideHandler=void 0,Ie.touchOutsideHandler=void 0,Ie.contextMenuOutsideHandler1=void 0,Ie.contextMenuOutsideHandler2=void 0,Ie.mouseDownTimeout=void 0,Ie.focusTime=void 0,Ie.preClickTime=void 0,Ie.preTouchTime=void 0,Ie.delayTimer=void 0,Ie.hasPopupMouseDown=void 0,Ie.onMouseEnter=function(qe){var pt=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",qe),Ie.delaySetPopupVisible(!0,pt,pt?null:qe)},Ie.onMouseMove=function(qe){Ie.fireEvents("onMouseMove",qe),Ie.setPoint(qe)},Ie.onMouseLeave=function(qe){Ie.fireEvents("onMouseLeave",qe),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function(qe){var pt;if(qe.relatedTarget&&!qe.relatedTarget.setTimeout&&Object(Ct.a)((pt=Ie.popupRef.current)===null||pt===void 0?void 0:pt.getElement(),qe.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function(qe){Ie.fireEvents("onFocus",qe),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function(qe){Ie.fireEvents("onMouseDown",qe),Ie.preClickTime=Date.now()},Ie.onTouchStart=function(qe){Ie.fireEvents("onTouchStart",qe),Ie.preTouchTime=Date.now()},Ie.onBlur=function(qe){Ie.fireEvents("onBlur",qe),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function(qe){qe.preventDefault(),Ie.fireEvents("onContextMenu",qe),Ie.setPopupVisible(!0,qe)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function(qe){if(Ie.fireEvents("onClick",qe),Ie.focusTime){var pt;if(Ie.preClickTime&&Ie.preTouchTime?pt=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?pt=Ie.preClickTime:Ie.preTouchTime&&(pt=Ie.preTouchTime),Math.abs(pt-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&qe&&qe.preventDefault&&qe.preventDefault();var it=!Ie.state.popupVisible;(Ie.isClickToHide()&&!it||it&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,qe)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var qe;(qe=Ie.context).onPopupMouseDown.apply(qe,arguments)}},Ie.onDocumentClick=function(qe){if(Ie.props.mask&&!Ie.props.maskClosable)return;var pt=qe.target,it=Ie.getRootDomNode(),Lt=Ie.getPopupDomNode();(!Object(Ct.a)(it,pt)||Ie.isContextMenuOnly())&&!Object(Ct.a)(Lt,pt)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var qe=Ie.props.getTriggerDOMNode;if(qe)return qe(Ie.triggerRef.current);try{var pt=Object(wt.a)(Ie.triggerRef.current);if(pt)return pt}catch(it){}return gt.a.findDOMNode(Object(E.a)(Ie))},Ie.getPopupClassNameFromAlign=function(qe){var pt=[],it=Ie.props,Lt=it.popupPlacement,Vt=it.builtinPlacements,hn=it.prefixCls,sn=it.alignPoint,un=it.getPopupClassNameFromAlign;return Lt&&Vt&&pt.push(_t(Vt,hn,qe,sn)),un&&pt.push(un(qe)),pt.join(" ")},Ie.getComponent=function(){var qe=Ie.props,pt=qe.prefixCls,it=qe.destroyPopupOnHide,Lt=qe.popupClassName,Vt=qe.onPopupAlign,hn=qe.popupMotion,sn=qe.popupAnimation,un=qe.popupTransitionName,ln=qe.popupStyle,Kn=qe.mask,xn=qe.maskAnimation,Ur=qe.maskTransitionName,Pr=qe.maskMotion,Jr=qe.zIndex,Fr=qe.popup,ta=qe.stretch,zn=qe.alignPoint,Or=qe.mobile,Vn=qe.forceRender,En=Ie.state,Wn=En.popupVisible,zr=En.point,sa=Ie.getPopupAlign(),gr={};return Ie.isMouseEnterToShow()&&(gr.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(gr.onMouseLeave=Ie.onPopupMouseLeave),gr.onMouseDown=Ie.onPopupMouseDown,gr.onTouchStart=Ie.onPopupMouseDown,y.createElement(Ha,Object(v.a)({prefixCls:pt,destroyPopupOnHide:it,visible:Wn,point:zn&&zr,className:Lt,align:sa,onAlign:Vt,animation:sn,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},gr,{stretch:ta,getRootDomNode:Ie.getRootDomNode,style:ln,mask:Kn,zIndex:Jr,transitionName:un,maskAnimation:xn,maskTransitionName:Ur,maskMotion:Pr,ref:Ie.popupRef,motion:hn,mobile:Or,forceRender:Vn}),typeof Fr=="function"?Fr():Fr)},Ie.attachParent=function(qe){Et.a.cancel(Ie.attachId);var pt=Ie.props,it=pt.getPopupContainer,Lt=pt.getDocument,Vt=Ie.getRootDomNode(),hn;it?(Vt||it.length===0)&&(hn=it(Vt)):hn=Lt(Ie.getRootDomNode()).body,hn?hn.appendChild(qe):Ie.attachId=Object(Et.a)(function(){Ie.attachParent(qe)})},Ie.getContainer=function(){var qe=Ie.props.getDocument,pt=qe(Ie.getRootDomNode()).createElement("div");return pt.style.position="absolute",pt.style.top="0",pt.style.left="0",pt.style.width="100%",Ie.attachParent(pt),pt},Ie.setPoint=function(qe){var pt=Ie.props.alignPoint;if(!pt||!qe)return;Ie.setState({point:{pageX:qe.pageX,pageY:qe.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)},Ie.triggerContextValue={onPopupMouseDown:Ie.onPopupMouseDown};var $e;return"popupVisible"in ze?$e=!!ze.popupVisible:$e=!!ze.defaultPopupVisible,Ie.state={prevPopupVisible:$e,popupVisible:$e},ua.forEach(function(qe){Ie["fire".concat(qe)]=function(pt){Ie.fireEvents(qe,pt)}}),Ie}return Object(R.a)(Pe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,$e=this.state;if($e.popupVisible){var qe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(qe=Ie.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ue.a)(qe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(qe=qe||Ie.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ue.a)(qe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(qe=qe||Ie.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ue.a)(qe,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ue.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Et.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Ie;return((Ie=this.popupRef.current)===null||Ie===void 0?void 0:Ie.getElement())||null}},{key:"getPopupAlign",value:function(){var Ie=this.props,$e=Ie.popupPlacement,qe=Ie.popupAlign,pt=Ie.builtinPlacements;return $e&&pt?ht(pt,$e,qe):qe}},{key:"setPopupVisible",value:function(Ie,$e){var qe=this.props.alignPoint,pt=this.state.popupVisible;this.clearDelayTimer(),pt!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:pt}),this.props.onPopupVisibleChange(Ie)),qe&&$e&&Ie&&this.setPoint($e)}},{key:"delaySetPopupVisible",value:function(Ie,$e,qe){var pt=this,it=$e*1e3;if(this.clearDelayTimer(),it){var Lt=qe?{pageX:qe.pageX,pageY:qe.pageY}:null;this.delayTimer=window.setTimeout(function(){pt.setPopupVisible(Ie,Lt),pt.clearDelayTimer()},it)}else this.setPopupVisible(Ie,qe)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Ie){var $e=this.props.children.props,qe=this.props;return $e[Ie]&&qe[Ie]?this["fire".concat(Ie)]:$e[Ie]||qe[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ie=this.props.action;return Ie==="contextMenu"||Ie.length===1&&Ie[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("contextMenu")!==-1||qe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.hideAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.hideAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("focus")!==-1||qe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.hideAction;return $e.indexOf("focus")!==-1||qe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ie;(Ie=this.popupRef.current)===null||Ie===void 0||Ie.forceAlign()}}},{key:"fireEvents",value:function(Ie,$e){var qe=this.props.children.props[Ie];qe&&qe($e);var pt=this.props[Ie];pt&&pt($e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,$e=this.props,qe=$e.children,pt=$e.forceRender,it=$e.alignPoint,Lt=$e.className,Vt=$e.autoDestroy,hn=y.Children.only(qe),sn={key:"trigger"};this.isContextMenuToShow()?sn.onContextMenu=this.onContextMenu:sn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(sn.onClick=this.onClick,sn.onMouseDown=this.onMouseDown,sn.onTouchStart=this.onTouchStart):(sn.onClick=this.createTwoChains("onClick"),sn.onMouseDown=this.createTwoChains("onMouseDown"),sn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(sn.onMouseEnter=this.onMouseEnter,it&&(sn.onMouseMove=this.onMouseMove)):sn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?sn.onMouseLeave=this.onMouseLeave:sn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(sn.onFocus=this.onFocus,sn.onBlur=this.onBlur):(sn.onFocus=this.createTwoChains("onFocus"),sn.onBlur=this.createTwoChains("onBlur"));var un=T()(hn&&hn.props&&hn.props.className,Lt);un&&(sn.className=un);var ln=Object(b.a)({},sn);Object(Qe.c)(hn)&&(ln.ref=Object(Qe.a)(this.triggerRef,hn.ref));var Kn=y.cloneElement(hn,ln),xn;return(Ie||this.popupRef.current||pt)&&(xn=y.createElement(Je,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&Vt&&(xn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Kn,xn)}}],[{key:"getDerivedStateFromProps",value:function(Ie,$e){var qe=Ie.popupVisible,pt={};return qe!==void 0&&$e.popupVisible!==qe&&(pt.popupVisible=qe,pt.prevPopupVisible=$e.popupVisible),pt}}]),Pe}(y.Component);return ct.contextType=Ja,ct.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:ka,afterPopupVisibleChange:ka,onPopupAlign:ka,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ct}var oa=fa(ft.a),ye={adjustX:1,adjustY:1},st={topLeft:{points:["bl","tl"],overflow:ye,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ye,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ye,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ye,offset:[4,0]}},It={topLeft:{points:["bl","tl"],overflow:ye,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ye,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ye,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ye,offset:[4,0]}},At=st,Wt=0,Nt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Xt=function(ct,yt,at){var Pe=le(yt),ze=ct.getState();ct.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},ze.defaultActiveFirst),{},Object(L.a)({},Pe,at))})},en=function(Je){Object(x.a)(yt,Je);var ct=Object(g.a)(yt);function yt(at){var Pe;Object(P.a)(this,yt),Pe=ct.call(this,at),Pe.onDestroy=function(it){Pe.props.onDestroy(it)},Pe.onKeyDown=function(it){var Lt=it.keyCode,Vt=Pe.menuInstance,hn=Pe.props.store,sn=Pe.getVisible();if(Lt===i.a.ENTER)return Pe.onTitleClick(it),Xt(hn,Pe.props.eventKey,!0),!0;if(Lt===i.a.RIGHT)return sn?Vt.onKeyDown(it):(Pe.triggerOpenChange(!0),Xt(hn,Pe.props.eventKey,!0)),!0;if(Lt===i.a.LEFT){var un;if(sn)un=Vt.onKeyDown(it);else return;return un||(Pe.triggerOpenChange(!1),un=!0),un}return sn&&(Lt===i.a.UP||Lt===i.a.DOWN)?Vt.onKeyDown(it):void 0},Pe.onOpenChange=function(it){Pe.props.onOpenChange(it)},Pe.onPopupVisibleChange=function(it){Pe.triggerOpenChange(it,it?"mouseenter":"mouseleave")},Pe.onMouseEnter=function(it){var Lt=Pe.props,Vt=Lt.eventKey,hn=Lt.onMouseEnter,sn=Lt.store;Xt(sn,Pe.props.eventKey,!1),hn({key:Vt,domEvent:it})},Pe.onMouseLeave=function(it){var Lt=Pe.props,Vt=Lt.parentMenu,hn=Lt.eventKey,sn=Lt.onMouseLeave;Vt.subMenuInstance=Object(E.a)(Pe),sn({key:hn,domEvent:it})},Pe.onTitleMouseEnter=function(it){var Lt=Pe.props,Vt=Lt.eventKey,hn=Lt.onItemHover,sn=Lt.onTitleMouseEnter;hn({key:Vt,hover:!0}),sn({key:Vt,domEvent:it})},Pe.onTitleMouseLeave=function(it){var Lt=Pe.props,Vt=Lt.parentMenu,hn=Lt.eventKey,sn=Lt.onItemHover,un=Lt.onTitleMouseLeave;Vt.subMenuInstance=Object(E.a)(Pe),sn({key:hn,hover:!1}),un({key:hn,domEvent:it})},Pe.onTitleClick=function(it){var Lt=Object(E.a)(Pe),Vt=Lt.props;if(Vt.onTitleClick({key:Vt.eventKey,domEvent:it}),Vt.triggerSubMenuAction==="hover")return;Pe.triggerOpenChange(!Pe.getVisible(),"click"),Xt(Vt.store,Pe.props.eventKey,!1)},Pe.onSubMenuClick=function(it){typeof Pe.props.onClick=="function"&&Pe.props.onClick(Pe.addKeyPath(it))},Pe.onSelect=function(it){Pe.props.onSelect(it)},Pe.onDeselect=function(it){Pe.props.onDeselect(it)},Pe.getPrefixCls=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu")},Pe.getActiveClassName=function(){return"".concat(Pe.getPrefixCls(),"-active")},Pe.getDisabledClassName=function(){return"".concat(Pe.getPrefixCls(),"-disabled")},Pe.getSelectedClassName=function(){return"".concat(Pe.getPrefixCls(),"-selected")},Pe.getOpenClassName=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu-open")},Pe.getVisible=function(){return Pe.state.isOpen},Pe.getMode=function(){return Pe.state.mode},Pe.saveMenuInstance=function(it){Pe.menuInstance=it},Pe.addKeyPath=function(it){return Object(b.a)(Object(b.a)({},it),{},{keyPath:(it.keyPath||[]).concat(Pe.props.eventKey)})},Pe.triggerOpenChange=function(it,Lt){var Vt=Pe.props.eventKey,hn=function(){Pe.onOpenChange({key:Vt,item:Object(E.a)(Pe),trigger:Lt,open:it})};Lt==="mouseenter"?Pe.mouseenterTimeout=setTimeout(function(){hn()},0):hn()},Pe.isChildrenSelected=function(){var it={find:!1};return J(Pe.props.children,Pe.props.selectedKeys,it),it.find},Pe.isInlineMode=function(){return Pe.getMode()==="inline"},Pe.adjustWidth=function(){if(!Pe.subMenuTitle||!Pe.menuInstance)return;var it=ot.findDOMNode(Pe.menuInstance);if(it.offsetWidth>=Pe.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(Pe.subMenuTitle.offsetWidth,"px")},Pe.saveSubMenuTitle=function(it){Pe.subMenuTitle=it},Pe.getBaseProps=function(){var it=Object(E.a)(Pe),Lt=it.props,Vt=Pe.getMode();return{mode:Vt==="horizontal"?"vertical":Vt,visible:Pe.getVisible(),level:Lt.level+1,inlineIndent:Lt.inlineIndent,focusable:!1,onClick:Pe.onSubMenuClick,onSelect:Pe.onSelect,onDeselect:Pe.onDeselect,onDestroy:Pe.onDestroy,selectedKeys:Lt.selectedKeys,eventKey:"".concat(Lt.eventKey,"-menu-"),openKeys:Lt.openKeys,motion:Lt.motion,onOpenChange:Pe.onOpenChange,subMenuOpenDelay:Lt.subMenuOpenDelay,parentMenu:Object(E.a)(Pe),subMenuCloseDelay:Lt.subMenuCloseDelay,forceSubMenuRender:Lt.forceSubMenuRender,triggerSubMenuAction:Lt.triggerSubMenuAction,builtinPlacements:Lt.builtinPlacements,defaultActiveFirst:Lt.store.getState().defaultActiveFirst[le(Lt.eventKey)],multiple:Lt.multiple,prefixCls:Lt.rootPrefixCls,id:Pe.internalMenuId,manualRef:Pe.saveMenuInstance,itemIcon:Lt.itemIcon,expandIcon:Lt.expandIcon,direction:Lt.direction}},Pe.getMotion=function(it,Lt){var Vt=Object(E.a)(Pe),hn=Vt.haveRendered,sn=Pe.props,un=sn.motion,ln=sn.rootPrefixCls,Kn=Object(b.a)(Object(b.a)({},un),{},{leavedClassName:"".concat(ln,"-hidden"),removeOnLeave:!1,motionAppear:hn||!Lt||it!=="inline"});return Kn};var ze=at.store,Ie=at.eventKey,$e=ze.getState(),qe=$e.defaultActiveFirst;Pe.isRootMenu=!1;var pt=!1;return qe&&(pt=qe[Ie]),Xt(ze,Ie,pt),Pe.state={mode:at.mode,isOpen:at.isOpen},Pe}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this,ze=this.props,Ie=ze.mode,$e=ze.parentMenu,qe=ze.manualRef,pt=ze.isOpen,it=function(){Pe.setState({mode:Ie,isOpen:pt})},Lt=pt!==this.state.isOpen,Vt=Ie!==this.state.mode;if((Vt||Lt)&&(Et.a.cancel(this.updateStateRaf),Vt?this.updateStateRaf=Object(Et.a)(it):it()),qe&&qe(this),Ie!=="horizontal"||!($e==null?void 0:$e.isRootMenu)||!pt)return;this.minWidthTimeout=setTimeout(function(){return Pe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Pe=this.props,ze=Pe.onDestroy,Ie=Pe.eventKey;ze&&ze(Ie),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Et.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Pe,ze){var Ie=this.getBaseProps();return y.createElement(Yt,Object(v.a)({},Ie,{id:this.internalMenuId,className:Pe,style:ze}),this.props.children)}},{key:"renderChildren",value:function(){var Pe=this,ze=this.getBaseProps(),Ie=ze.mode,$e=ze.visible,qe=ze.forceSubMenuRender,pt=ze.direction,it=this.getMotion(Ie,$e);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e||qe,!this.haveOpened)return y.createElement("div",null);var Lt=T()("".concat(ze.prefixCls,"-sub"),Object(L.a)({},"".concat(ze.prefixCls,"-rtl"),pt==="rtl"));return this.isInlineMode()?y.createElement(xe,Object(v.a)({visible:ze.visible,forceRender:qe},it),function(Vt){var hn=Vt.className,sn=Vt.style,un=T()(Lt,hn);return Pe.renderPopupMenu(un,sn)}):this.renderPopupMenu(Lt)}},{key:"render",value:function(){var Pe,ze,Ie,$e=Object(b.a)({},this.props),qe=this.getVisible(),pt=this.getPrefixCls(),it=this.isInlineMode(),Lt=this.getMode(),Vt=T()(pt,"".concat(pt,"-").concat(Lt),(Pe={},Object(L.a)(Pe,$e.className,!!$e.className),Object(L.a)(Pe,this.getOpenClassName(),qe),Object(L.a)(Pe,this.getActiveClassName(),$e.active||qe&&!it),Object(L.a)(Pe,this.getDisabledClassName(),$e.disabled),Object(L.a)(Pe,this.getSelectedClassName(),this.isChildrenSelected()),Pe));this.internalMenuId||($e.eventKey?this.internalMenuId="".concat($e.eventKey,"$Menu"):(Wt+=1,this.internalMenuId="$__$".concat(Wt,"$Menu")));var hn={},sn={},un={};$e.disabled||(hn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},sn={onClick:this.onTitleClick},un={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ln={},Kn=$e.direction,xn=Kn==="rtl";it&&(xn?ln.paddingRight=$e.inlineIndent*$e.level:ln.paddingLeft=$e.inlineIndent*$e.level);var Ur={};this.getVisible()&&(Ur={"aria-owns":this.internalMenuId});var Pr=null;Lt!=="horizontal"&&(Pr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Pr=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Jr=y.createElement("div",Object(v.a)({ref:this.saveSubMenuTitle,style:ln,className:"".concat(pt,"-title"),role:"button"},un,sn,{"aria-expanded":qe},Ur,{"aria-haspopup":"true",title:typeof $e.title=="string"?$e.title:void 0}),$e.title,Pr||y.createElement("i",{className:"".concat(pt,"-arrow")})),Fr=this.renderChildren(),ta=((ze=$e.parentMenu)===null||ze===void 0?void 0:ze.isRootMenu)?$e.parentMenu.props.getPopupContainer:function(Tr){return Tr.parentNode},zn=Nt[Lt],Or=$e.popupOffset?{offset:$e.popupOffset}:{},Vn=T()((Ie={},Object(L.a)(Ie,$e.popupClassName,$e.popupClassName&&!it),Object(L.a)(Ie,"".concat(pt,"-rtl"),xn),Ie)),En=$e.disabled,Wn=$e.triggerSubMenuAction,zr=$e.subMenuOpenDelay,sa=$e.forceSubMenuRender,gr=$e.subMenuCloseDelay,ra=$e.builtinPlacements;te.forEach(function(Tr){return delete $e[Tr]}),delete $e.onClick;var Ea=xn?Object(b.a)(Object(b.a)({},It),ra):Object(b.a)(Object(b.a)({},st),ra);delete $e.direction;var ca=this.getBaseProps(),xa=it?null:this.getMotion(ca.mode,ca.visible);return y.createElement("li",Object(v.a)({},$e,hn,{className:Vt,role:"menuitem"}),y.createElement(oa,{prefixCls:pt,popupClassName:T()("".concat(pt,"-popup"),Vn),getPopupContainer:ta,builtinPlacements:Ea,popupPlacement:zn,popupVisible:it?!1:qe,popupAlign:Or,popup:it?null:Fr,action:En||it?[]:[Wn],mouseEnterDelay:zr,mouseLeaveDelay:gr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:sa,popupMotion:xa},Jr),it?Fr:null)}}]),yt}(y.Component);en.defaultProps={onMouseEnter:ie,onMouseLeave:ie,onTitleMouseEnter:ie,onTitleMouseLeave:ie,onTitleClick:ie,manualRef:ie,mode:"vertical",title:""};var yn=Object(O.b)(function(Je,ct){var yt=Je.openKeys,at=Je.activeKey,Pe=Je.selectedKeys,ze=ct.eventKey,Ie=ct.subMenuKey;return{isOpen:yt.indexOf(ze)>-1,active:at[Ie]===ze,selectedKeys:Pe}})(en);yn.isSubMenu=!0;var mn=yn,jn="menuitem-overflowed",Dn=.5,nn=function(Je){Object(x.a)(yt,Je);var ct=Object(g.a)(yt);function yt(){var at;return Object(P.a)(this,yt),at=ct.apply(this,arguments),at.resizeObserver=null,at.mutationObserver=null,at.originalTotalWidth=0,at.overflowedItems=[],at.menuItemSizes=[],at.cancelFrameId=null,at.state={lastVisibleIndex:void 0},at.childRef=y.createRef(),at.getMenuItemNodes=function(){var Pe=at.props.prefixCls,ze=at.childRef.current;return ze?[].slice.call(ze.children).filter(function(Ie){return Ie.className.split(" ").indexOf("".concat(Pe,"-overflowed-submenu"))<0}):[]},at.getOverflowedSubMenuItem=function(Pe,ze,Ie){var $e=at.props,qe=$e.overflowedIndicator,pt=$e.level,it=$e.mode,Lt=$e.prefixCls,Vt=$e.theme;if(pt!==1||it!=="horizontal")return null;var hn=at.props.children[0],sn=hn.props,un=sn.children,ln=sn.title,Kn=sn.style,xn=Object(A.a)(sn,["children","title","style"]),Ur=Object(b.a)({},Kn),Pr="".concat(Pe,"-overflowed-indicator"),Jr="".concat(Pe,"-overflowed-indicator");ze.length===0&&Ie!==!0?Ur=Object(b.a)(Object(b.a)({},Ur),{},{display:"none"}):Ie&&(Ur=Object(b.a)(Object(b.a)({},Ur),{},{visibility:"hidden",position:"absolute"}),Pr="".concat(Pr,"-placeholder"),Jr="".concat(Jr,"-placeholder"));var Fr=Vt?"".concat(Lt,"-").concat(Vt):"",ta={};return te.forEach(function(zn){xn[zn]!==void 0&&(ta[zn]=xn[zn])}),y.createElement(mn,Object(v.a)({title:qe,className:"".concat(Lt,"-overflowed-submenu"),popupClassName:Fr},ta,{key:Pr,eventKey:Jr,disabled:!1,style:Ur}),ze)},at.setChildrenWidthAndResize=function(){if(at.props.mode!=="horizontal")return;var Pe=at.childRef.current;if(!Pe)return;var ze=Pe.children;if(!ze||ze.length===0)return;var Ie=Pe.children[ze.length-1];Se(Ie,"display","inline-block");var $e=at.getMenuItemNodes(),qe=$e.filter(function(pt){return pt.className.split(" ").indexOf(jn)>=0});qe.forEach(function(pt){Se(pt,"display","inline-block")}),at.menuItemSizes=$e.map(function(pt){return Ae(pt,!0)}),qe.forEach(function(pt){Se(pt,"display","none")}),at.overflowedIndicatorWidth=Ae(Pe.children[Pe.children.length-1],!0),at.originalTotalWidth=at.menuItemSizes.reduce(function(pt,it){return pt+it},0),at.handleResize(),Se(Ie,"display","none")},at.handleResize=function(){if(at.props.mode!=="horizontal")return;var Pe=at.childRef.current;if(!Pe)return;var ze=Ae(Pe);at.overflowedItems=[];var Ie=0,$e;at.originalTotalWidth>ze+Dn&&($e=-1,at.menuItemSizes.forEach(function(qe){Ie+=qe,Ie+at.overflowedIndicatorWidth<=ze&&($e+=1)})),at.setState({lastVisibleIndex:$e})},at}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){var Pe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ze=this.childRef.current;if(!ze)return;this.resizeObserver=new rt.default(function(Ie){Ie.forEach(function(){var $e=Pe.cancelFrameId;cancelAnimationFrame($e),Pe.cancelFrameId=requestAnimationFrame(Pe.setChildrenWidthAndResize)})}),[].slice.call(ze.children).concat(ze).forEach(function(Ie){Pe.resizeObserver.observe(Ie)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pe.resizeObserver.disconnect(),[].slice.call(ze.children).concat(ze).forEach(function(Ie){Pe.resizeObserver.observe(Ie)}),Pe.setChildrenWidthAndResize()}),this.mutationObserver.observe(ze,{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(Pe){var ze=this,Ie=this.state.lastVisibleIndex;return(Pe||[]).reduce(function($e,qe,pt){var it=qe;if(ze.props.mode==="horizontal"){var Lt=ze.getOverflowedSubMenuItem(qe.props.eventKey,[]);Ie!==void 0&&ze.props.className.indexOf("".concat(ze.props.prefixCls,"-root"))!==-1&&(pt>Ie&&(it=y.cloneElement(qe,{style:{display:"none"},eventKey:"".concat(qe.props.eventKey,"-hidden"),className:"".concat(jn)})),pt===Ie+1&&(ze.overflowedItems=Pe.slice(Ie+1).map(function(hn){return y.cloneElement(hn,{key:hn.props.eventKey,mode:"vertical-left"})}),Lt=ze.getOverflowedSubMenuItem(qe.props.eventKey,ze.overflowedItems)));var Vt=[].concat(Object(d.a)($e),[Lt,it]);return pt===Pe.length-1&&Vt.push(ze.getOverflowedSubMenuItem(qe.props.eventKey,[],!0)),Vt}return[].concat(Object(d.a)($e),[it])},[])}},{key:"render",value:function(){var Pe=this.props,ze=Pe.visible,Ie=Pe.prefixCls,$e=Pe.overflowedIndicator,qe=Pe.mode,pt=Pe.level,it=Pe.tag,Lt=Pe.children,Vt=Pe.theme,hn=Object(A.a)(Pe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),sn=it;return y.createElement(sn,Object(v.a)({ref:this.childRef},hn),this.renderChildren(Lt))}}]),yt}(y.Component);nn.defaultProps={tag:"div",className:""};var Mn=nn;function bn(Je){return Je.length?Je.every(function(ct){return!!ct.props.disabled}):!0}function Bn(Je,ct,yt){var at=Je.getState();Je.setState({activeKey:Object(b.a)(Object(b.a)({},at.activeKey),{},Object(L.a)({},ct,yt))})}function Pn(Je){return Je.eventKey||"0-menu-"}function er(Je,ct){var yt=ct,at=Je.children,Pe=Je.eventKey;if(yt){var ze;if($(at,function(Ie,$e){Ie&&Ie.props&&!Ie.props.disabled&&yt===Oe(Ie,Pe,$e)&&(ze=!0)}),ze)return yt}return yt=null,Je.defaultActiveFirst&&$(at,function(Ie,$e){!yt&&Ie&&!Ie.props.disabled&&(yt=Oe(Ie,Pe,$e))}),yt}function vr(Je){if(!Je)return;var ct=this.instanceArray.indexOf(Je);ct!==-1?this.instanceArray[ct]=Je:this.instanceArray.push(Je)}var Br=function(Je){Object(x.a)(yt,Je);var ct=Object(g.a)(yt);function yt(at){var Pe;return Object(P.a)(this,yt),Pe=ct.call(this,at),Pe.onKeyDown=function(ze,Ie){var $e=ze.keyCode,qe;if(Pe.getFlatInstanceArray().forEach(function(it){it&&it.props.active&&it.onKeyDown&&(qe=it.onKeyDown(ze))}),qe)return 1;var pt=null;return($e===i.a.UP||$e===i.a.DOWN)&&(pt=Pe.step($e===i.a.UP?-1:1)),pt?(ze.preventDefault(),Bn(Pe.props.store,Pn(Pe.props),pt.props.eventKey),typeof Ie=="function"&&Ie(pt),1):void 0},Pe.onItemHover=function(ze){var Ie=ze.key,$e=ze.hover;Bn(Pe.props.store,Pn(Pe.props),$e?Ie:null)},Pe.onDeselect=function(ze){Pe.props.onDeselect(ze)},Pe.onSelect=function(ze){Pe.props.onSelect(ze)},Pe.onClick=function(ze){Pe.props.onClick(ze)},Pe.onOpenChange=function(ze){Pe.props.onOpenChange(ze)},Pe.onDestroy=function(ze){Pe.props.onDestroy(ze)},Pe.getFlatInstanceArray=function(){return Pe.instanceArray},Pe.step=function(ze){var Ie=Pe.getFlatInstanceArray(),$e=Pe.props.store.getState().activeKey[Pn(Pe.props)],qe=Ie.length;if(!qe)return null;ze<0&&(Ie=Ie.concat().reverse());var pt=-1;if(Ie.every(function(hn,sn){return hn&&hn.props.eventKey===$e?(pt=sn,!1):!0}),!Pe.props.defaultActiveFirst&&pt!==-1&&bn(Ie.slice(pt,qe-1)))return;var it=(pt+1)%qe,Lt=it;do{var Vt=Ie[Lt];if(!Vt||Vt.props.disabled)Lt=(Lt+1)%qe;else return Vt}while(Lt!==it);return null},Pe.renderCommonMenuItem=function(ze,Ie,$e){var qe=Pe.props.store.getState(),pt=Object(E.a)(Pe),it=pt.props,Lt=Oe(ze,it.eventKey,Ie),Vt=ze.props;if(!Vt||typeof ze.type=="string")return ze;var hn=Lt===qe.activeKey,sn=Object(b.a)(Object(b.a)({mode:Vt.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:Pe.renderMenuItem,rootPrefixCls:it.prefixCls,index:Ie,parentMenu:it.parentMenu,manualRef:Vt.disabled?void 0:Object(D.a)(ze.ref,vr.bind(Object(E.a)(Pe))),eventKey:Lt,active:!Vt.disabled&&hn,multiple:it.multiple,onClick:function(ln){(Vt.onClick||ie)(ln),Pe.onClick(ln)},onItemHover:Pe.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:Pe.onOpenChange,onDeselect:Pe.onDeselect,onSelect:Pe.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:Vt.itemIcon||Pe.props.itemIcon,expandIcon:Vt.expandIcon||Pe.props.expandIcon},$e),{},{direction:it.direction});return(it.mode==="inline"||ke())&&(sn.triggerSubMenuAction="click"),y.cloneElement(ze,Object(b.a)(Object(b.a)({},sn),{},{key:Lt||Ie}))},Pe.renderMenuItem=function(ze,Ie,$e){if(!ze)return null;var qe=Pe.props.store.getState(),pt={openKeys:qe.openKeys,selectedKeys:qe.selectedKeys,triggerSubMenuAction:Pe.props.triggerSubMenuAction,subMenuKey:$e};return Pe.renderCommonMenuItem(ze,Ie,pt)},at.store.setState({activeKey:Object(b.a)(Object(b.a)({},at.store.getState().activeKey),{},Object(L.a)({},at.eventKey,er(at,at.activeKey)))}),Pe.instanceArray=[],Pe}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Pe){return this.props.visible||Pe.visible||this.props.className!==Pe.className||!V()(this.props.style,Pe.style)}},{key:"componentDidUpdate",value:function(Pe){var ze=this.props,Ie="activeKey"in ze?ze.activeKey:ze.store.getState().activeKey[Pn(ze)],$e=er(ze,Ie);if($e!==Ie)Bn(ze.store,Pn(ze),$e);else if("activeKey"in Pe){var qe=er(Pe,Pe.activeKey);$e!==qe&&Bn(ze.store,Pn(ze),$e)}}},{key:"render",value:function(){var Pe=this,ze=Object(v.a)({},this.props);this.instanceArray=[];var Ie=T()(ze.prefixCls,ze.className,"".concat(ze.prefixCls,"-").concat(ze.mode)),$e={className:Ie,role:ze.role||"menu"};ze.id&&($e.id=ze.id),ze.focusable&&($e.tabIndex=0,$e.onKeyDown=this.onKeyDown);var qe=ze.prefixCls,pt=ze.eventKey,it=ze.visible,Lt=ze.level,Vt=ze.mode,hn=ze.overflowedIndicator,sn=ze.theme;return te.forEach(function(un){return delete ze[un]}),delete ze.onClick,y.createElement(Mn,Object(v.a)({},ze,{prefixCls:qe,mode:Vt,tag:"ul",level:Lt,theme:sn,visible:it,overflowedIndicator:hn},$e),Object(h.a)(ze.children).map(function(un,ln){return Pe.renderMenuItem(un,ln,pt||"0-menu-")}))}}]),yt}(y.Component);Br.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ie};var Sn=Object(O.b)()(Br),Yt=Sn,cn=s("Kwbf");function Rn(Je,ct,yt){var at=Je.prefixCls,Pe=Je.motion,ze=Je.defaultMotions,Ie=ze===void 0?{}:ze,$e=Je.openAnimation,qe=Je.openTransitionName,pt=ct.switchingModeFromInline;if(Pe)return Pe;if(Object(F.a)($e)==="object"&&$e)Object(cn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof $e=="string")return{motionName:"".concat(at,"-open-").concat($e)};if(qe)return{motionName:qe};var it=Ie[yt];return it||(pt?null:Ie.other)}var qt=function(Je){Object(x.a)(yt,Je);var ct=Object(g.a)(yt);function yt(at){var Pe;Object(P.a)(this,yt),Pe=ct.call(this,at),Pe.onSelect=function($e){var qe=Object(E.a)(Pe),pt=qe.props;if(pt.selectable){var it=Pe.store.getState(),Lt=it.selectedKeys,Vt=$e.key;pt.multiple?Lt=Lt.concat([Vt]):Lt=[Vt],"selectedKeys"in pt||Pe.store.setState({selectedKeys:Lt}),pt.onSelect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:Lt}))}},Pe.onClick=function($e){var qe=Pe.getRealMenuMode(),pt=Object(E.a)(Pe),it=pt.store,Lt=pt.props.onOpenChange;qe!=="inline"&&!("openKeys"in Pe.props)&&(it.setState({openKeys:[]}),Lt([])),Pe.props.onClick($e)},Pe.onKeyDown=function($e,qe){Pe.innerMenu.getWrappedInstance().onKeyDown($e,qe)},Pe.onOpenChange=function($e){var qe=Object(E.a)(Pe),pt=qe.props,it=Pe.store.getState().openKeys.concat(),Lt=!1,Vt=function(sn){var un=!1;if(sn.open)un=it.indexOf(sn.key)===-1,un&&it.push(sn.key);else{var ln=it.indexOf(sn.key);un=ln!==-1,un&&it.splice(ln,1)}Lt=Lt||un};Array.isArray($e)?$e.forEach(Vt):Vt($e),Lt&&("openKeys"in Pe.props||Pe.store.setState({openKeys:it}),pt.onOpenChange(it))},Pe.onDeselect=function($e){var qe=Object(E.a)(Pe),pt=qe.props;if(pt.selectable){var it=Pe.store.getState().selectedKeys.concat(),Lt=$e.key,Vt=it.indexOf(Lt);Vt!==-1&&it.splice(Vt,1),"selectedKeys"in pt||Pe.store.setState({selectedKeys:it}),pt.onDeselect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:it}))}},Pe.onMouseEnter=function($e){Pe.restoreModeVerticalFromInline();var qe=Pe.props.onMouseEnter;qe&&qe($e)},Pe.onTransitionEnd=function($e){var qe=$e.propertyName==="width"&&$e.target===$e.currentTarget,pt=$e.target.className,it=Object.prototype.toString.call(pt)==="[object SVGAnimatedString]"?pt.animVal:pt,Lt=$e.propertyName==="font-size"&&it.indexOf("anticon")>=0;(qe||Lt)&&Pe.restoreModeVerticalFromInline()},Pe.setInnerMenu=function($e){Pe.innerMenu=$e},Pe.isRootMenu=!0;var ze=at.defaultSelectedKeys,Ie=at.defaultOpenKeys;return"selectedKeys"in at&&(ze=at.selectedKeys||[]),"openKeys"in at&&(Ie=at.openKeys||[]),Pe.store=Object(O.c)({selectedKeys:ze,openKeys:Ie,activeKey:{"0-menu-":er(at,at.activeKey)}}),Pe.state={switchingModeFromInline:!1,prevProps:at,inlineOpenKeys:[],store:Pe.store},Pe}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pe){var ze=this.props,Ie=ze.siderCollapsed,$e=ze.inlineCollapsed,qe=ze.onOpenChange;(!Pe.inlineCollapsed&&$e||!Pe.siderCollapsed&&Ie)&&qe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Pe=this.props.collapsedWidth,ze=this.store,Ie=this.prevOpenKeys,$e=this.getInlineCollapsed()&&(Pe===0||Pe==="0"||Pe==="0px");$e?(this.prevOpenKeys=ze.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ie&&(this.store.setState({openKeys:Ie}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pe=this.props.mode,ze=this.state.switchingModeFromInline,Ie=this.getInlineCollapsed();return ze&&Ie?"inline":Ie?"vertical":Pe}},{key:"getInlineCollapsed",value:function(){var Pe=this.props,ze=Pe.inlineCollapsed,Ie=Pe.siderCollapsed;return Ie!==void 0?Ie:ze}},{key:"restoreModeVerticalFromInline",value:function(){var Pe=this.state.switchingModeFromInline;Pe&&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 Pe=Object(b.a)({},Object(I.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ze=this.getRealMenuMode();return Pe.className+=" ".concat(Pe.prefixCls,"-root"),Pe.direction==="rtl"&&(Pe.className+=" ".concat(Pe.prefixCls,"-rtl")),Pe=Object(b.a)(Object(b.a)({},Pe),{},{mode:ze,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Rn(this.props,this.state,ze)}),delete Pe.openAnimation,delete Pe.openTransitionName,y.createElement(O.a,{store:this.store},y.createElement(Yt,Object(v.a)({},Pe,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Pe,ze){var Ie=ze.prevProps,$e=ze.store,qe=$e.getState(),pt={},it={prevProps:Pe};return Ie.mode==="inline"&&Pe.mode!=="inline"&&(it.switchingModeFromInline=!0),"openKeys"in Pe?pt.openKeys=Pe.openKeys||[]:((Pe.inlineCollapsed&&!Ie.inlineCollapsed||Pe.siderCollapsed&&!Ie.siderCollapsed)&&(it.switchingModeFromInline=!0,it.inlineOpenKeys=qe.openKeys,pt.openKeys=[]),(!Pe.inlineCollapsed&&Ie.inlineCollapsed||!Pe.siderCollapsed&&Ie.siderCollapsed)&&(pt.openKeys=ze.inlineOpenKeys,it.inlineOpenKeys=[])),Object.keys(pt).length&&$e.setState(pt),it}}]),yt}(y.Component);qt.defaultProps={selectable:!0,onClick:ie,onSelect:ie,onOpenChange:ie,onDeselect:ie,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:y.createElement("span",null,"\xB7\xB7\xB7")};var On=qt,gn=function(Je){Object(x.a)(yt,Je);var ct=Object(g.a)(yt);function yt(){var at;return Object(P.a)(this,yt),at=ct.apply(this,arguments),at.onKeyDown=function(Pe){var ze=Pe.keyCode;return ze===i.a.ENTER?(at.onClick(Pe),!0):void 0},at.onMouseLeave=function(Pe){var ze=at.props,Ie=ze.eventKey,$e=ze.onItemHover,qe=ze.onMouseLeave;$e({key:Ie,hover:!1}),qe({key:Ie,domEvent:Pe})},at.onMouseEnter=function(Pe){var ze=at.props,Ie=ze.eventKey,$e=ze.onItemHover,qe=ze.onMouseEnter;$e({key:Ie,hover:!0}),qe({key:Ie,domEvent:Pe})},at.onClick=function(Pe){var ze=at.props,Ie=ze.eventKey,$e=ze.multiple,qe=ze.onClick,pt=ze.onSelect,it=ze.onDeselect,Lt=ze.isSelected,Vt={key:Ie,keyPath:[Ie],item:Object(E.a)(at),domEvent:Pe};qe(Vt),$e?Lt?it(Vt):pt(Vt):Lt||pt(Vt)},at.saveNode=function(Pe){at.node=Pe},at}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Pe=this.props;Pe.onDestroy&&Pe.onDestroy(Pe.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 Pe,ze=Object(b.a)({},this.props),Ie=T()(this.getPrefixCls(),ze.className,(Pe={},Object(L.a)(Pe,this.getActiveClassName(),!ze.disabled&&ze.active),Object(L.a)(Pe,this.getSelectedClassName(),ze.isSelected),Object(L.a)(Pe,this.getDisabledClassName(),ze.disabled),Pe)),$e=Object(b.a)(Object(b.a)({},ze.attribute),{},{title:typeof ze.title=="string"?ze.title:void 0,className:Ie,role:ze.role||"menuitem","aria-disabled":ze.disabled});ze.role==="option"?$e=Object(b.a)(Object(b.a)({},$e),{},{role:"option","aria-selected":ze.isSelected}):(ze.role===null||ze.role==="none")&&($e.role="none");var qe={onClick:ze.disabled?null:this.onClick,onMouseLeave:ze.disabled?null:this.onMouseLeave,onMouseEnter:ze.disabled?null:this.onMouseEnter},pt=Object(b.a)({},ze.style);ze.mode==="inline"&&(ze.direction==="rtl"?pt.paddingRight=ze.inlineIndent*ze.level:pt.paddingLeft=ze.inlineIndent*ze.level),te.forEach(function(Lt){return delete ze[Lt]}),delete ze.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(v.a)({},Object(I.a)(ze,["onClick","onMouseEnter","onMouseLeave","onSelect"]),$e,qe,{style:pt,ref:this.saveNode}),ze.children,it)}}]),yt}(y.Component);gn.isMenuItem=!0,gn.defaultProps={onSelect:ie,onMouseEnter:ie,onMouseLeave:ie,manualRef:ie};var In=Object(O.b)(function(Je,ct){var yt=Je.activeKey,at=Je.selectedKeys,Pe=ct.eventKey,ze=ct.subMenuKey;return{active:yt[ze]===Pe,isSelected:Array.isArray(at)?at.indexOf(Pe)!==-1:at===Pe}})(gn),Fn=In,ur=function(Je){Object(x.a)(yt,Je);var ct=Object(g.a)(yt);function yt(){var at;return Object(P.a)(this,yt),at=ct.apply(this,arguments),at.renderInnerMenuItem=function(Pe){var ze=at.props,Ie=ze.renderMenuItem,$e=ze.index;return Ie(Pe,$e,at.props.subMenuKey)},at}return Object(R.a)(yt,[{key:"render",value:function(){var Pe=Object(v.a)({},this.props),ze=Pe.className,Ie=ze===void 0?"":ze,$e=Pe.rootPrefixCls,qe="".concat($e,"-item-group-title"),pt="".concat($e,"-item-group-list"),it=Pe.title,Lt=Pe.children;return te.forEach(function(Vt){return delete Pe[Vt]}),delete Pe.direction,y.createElement("li",Object(v.a)({},Pe,{onClick:function(hn){return hn.stopPropagation()},className:"".concat(Ie," ").concat($e,"-item-group")}),y.createElement("div",{className:qe,title:typeof it=="string"?it:void 0},it),y.createElement("ul",{className:pt},y.Children.map(Lt,this.renderInnerMenuItem)))}}]),yt}(y.Component);ur.isMenuItemGroup=!0,ur.defaultProps={disabled:!0};var ar=ur,Rr=function(ct){var yt=ct.className,at=ct.rootPrefixCls,Pe=ct.style;return y.createElement("li",{className:"".concat(yt," ").concat(at,"-item-divider"),style:Pe})};Rr.defaultProps={disabled:!0,className:"",style:{}};var Ir=Rr,tr=On,Dr=s("eDIo");function br(Je,ct){var yt=Je.prefixCls,at=Je.editable,Pe=Je.locale,ze=Je.style;return!at||at.showAdd===!1?null:y.createElement("button",{ref:ct,type:"button",className:"".concat(yt,"-nav-add"),style:ze,"aria-label":(Pe==null?void 0:Pe.addAriaLabel)||"Add tab",onClick:function($e){at.onEdit("add",{event:$e})}},at.addIcon||"+")}var Gr=y.forwardRef(br);function Lr(Je,ct){var yt=Je.prefixCls,at=Je.id,Pe=Je.tabs,ze=Je.locale,Ie=Je.mobile,$e=Je.moreIcon,qe=$e===void 0?"More":$e,pt=Je.moreTransitionName,it=Je.style,Lt=Je.className,Vt=Je.editable,hn=Je.tabBarGutter,sn=Je.rtl,un=Je.onTabClick,ln=Object(y.useState)(!1),Kn=Object(p.a)(ln,2),xn=Kn[0],Ur=Kn[1],Pr=Object(y.useState)(null),Jr=Object(p.a)(Pr,2),Fr=Jr[0],ta=Jr[1],zn="".concat(at,"-more-popup"),Or="".concat(yt,"-dropdown"),Vn=Fr!==null?"".concat(zn,"-").concat(Fr):null,En=ze==null?void 0:ze.dropdownAriaLabel,Wn=y.createElement(tr,{onClick:function(xa){var Tr=xa.key,Er=xa.domEvent;un(Tr,Er),Ur(!1)},id:zn,tabIndex:-1,role:"listbox","aria-activedescendant":Vn,selectedKeys:[Fr],"aria-label":En!==void 0?En:"expanded dropdown"},Pe.map(function(ca){return y.createElement(Fn,{key:ca.key,id:"".concat(zn,"-").concat(ca.key),role:"option","aria-controls":at&&"".concat(at,"-panel-").concat(ca.key),disabled:ca.disabled},ca.tab)}));function zr(ca){for(var xa=Pe.filter(function(da){return!da.disabled}),Tr=xa.findIndex(function(da){return da.key===Fr})||0,Er=xa.length,Mr=0;Mr<Er;Mr+=1){Tr=(Tr+ca+Er)%Er;var or=xa[Tr];if(!or.disabled){ta(or.key);return}}}function sa(ca){var xa=ca.which;if(!xn){[i.a.DOWN,i.a.SPACE,i.a.ENTER].includes(xa)&&(Ur(!0),ca.preventDefault());return}switch(xa){case i.a.UP:zr(-1),ca.preventDefault();break;case i.a.DOWN:zr(1),ca.preventDefault();break;case i.a.ESC:Ur(!1);break;case i.a.SPACE:case i.a.ENTER:Fr!==null&&un(Fr,ca);break}}Object(y.useEffect)(function(){var ca=document.getElementById(Vn);ca&&ca.scrollIntoView&&ca.scrollIntoView(!1)},[Fr]),Object(y.useEffect)(function(){xn||ta(null)},[xn]);var gr=Object(L.a)({},sn?"marginLeft":"marginRight",hn);Pe.length||(gr.visibility="hidden",gr.order=1);var ra=T()(Object(L.a)({},"".concat(Or,"-rtl"),sn)),Ea=Ie?null:y.createElement(Dr.a,{prefixCls:Or,overlay:Wn,trigger:["hover"],visible:xn,transitionName:pt,onVisibleChange:Ur,overlayClassName:ra,mouseEnterDelay:.1,mouseLeaveDelay:.1},y.createElement("button",{type:"button",className:"".concat(yt,"-nav-more"),style:gr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":zn,id:"".concat(at,"-more"),"aria-expanded":xn,onKeyDown:sa},qe));return y.createElement("div",{className:T()("".concat(yt,"-nav-operations"),Lt),style:it,ref:ct},Ea,y.createElement(Gr,{prefixCls:yt,locale:ze,editable:Vt}))}var qr=y.forwardRef(Lr),sr=Object(y.createContext)(null),Kt=.1,Qt=.01,Jt=20,Xn=Math.pow(.995,Jt);function ir(){var Je=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Je)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Je.substr(0,4)))}function kn(Je,ct){var yt=Object(y.useState)(),at=Object(p.a)(yt,2),Pe=at[0],ze=at[1],Ie=Object(y.useState)(0),$e=Object(p.a)(Ie,2),qe=$e[0],pt=$e[1],it=Object(y.useState)(0),Lt=Object(p.a)(it,2),Vt=Lt[0],hn=Lt[1],sn=Object(y.useState)(),un=Object(p.a)(sn,2),ln=un[0],Kn=un[1],xn=Object(y.useRef)();function Ur(En){var Wn=En.touches[0],zr=Wn.screenX,sa=Wn.screenY;ze({x:zr,y:sa}),window.clearInterval(xn.current)}function Pr(En){if(!Pe)return;En.preventDefault();var Wn=En.touches[0],zr=Wn.screenX,sa=Wn.screenY;ze({x:zr,y:sa});var gr=zr-Pe.x,ra=sa-Pe.y;ct(gr,ra);var Ea=Date.now();pt(Ea),hn(Ea-qe),Kn({x:gr,y:ra})}function Jr(){if(!Pe)return;if(ze(null),Kn(null),ln){var En=ln.x/Vt,Wn=ln.y/Vt,zr=Math.abs(En),sa=Math.abs(Wn);if(Math.max(zr,sa)<Kt)return;var gr=En,ra=Wn;xn.current=window.setInterval(function(){if(Math.abs(gr)<Qt&&Math.abs(ra)<Qt){window.clearInterval(xn.current);return}gr*=Xn,ra*=Xn,ct(gr*Jt,ra*Jt)},Jt)}}var Fr=Object(y.useRef)(0),ta=Object(y.useRef)(!1),zn=Object(y.useRef)();function Or(En){var Wn=En.deltaX,zr=En.deltaY,sa=0,gr=Math.abs(Wn),ra=Math.abs(zr);gr===ra?sa=zn.current==="x"?Wn:zr:gr>ra?(sa=Wn,zn.current="x"):(sa=zr,zn.current="y");var Ea=Date.now();Ea-Fr.current>100&&(ta.current=!1),(ct(-sa,-sa)||ta.current)&&(En.preventDefault(),ta.current=!0),Fr.current=Ea}var Vn=Object(y.useRef)(null);Vn.current={onTouchStart:Ur,onTouchMove:Pr,onTouchEnd:Jr,onWheel:Or},y.useEffect(function(){function En(gr){Vn.current.onTouchStart(gr)}function Wn(gr){Vn.current.onTouchMove(gr)}function zr(gr){Vn.current.onTouchEnd(gr)}function sa(gr){Vn.current.onWheel(gr)}return document.addEventListener("touchmove",Wn,{passive:!1}),document.addEventListener("touchend",zr,{passive:!1}),Je.current.addEventListener("touchstart",En,{passive:!1}),Je.current.addEventListener("wheel",sa),function(){document.removeEventListener("touchmove",Wn),document.removeEventListener("touchend",zr)}},[])}function lr(){var Je=Object(y.useRef)(new Map);function ct(at){return Je.current.has(at)||Je.current.set(at,y.createRef()),Je.current.get(at)}function yt(at){Je.current.delete(at)}return[ct,yt]}function hr(Je,ct){var yt=y.useRef(Je),at=y.useState({}),Pe=Object(p.a)(at,2),ze=Pe[1];function Ie($e){var qe=typeof $e=="function"?$e(yt.current):$e;qe!==yt.current&&ct(qe,yt.current),yt.current=qe,ze({})}return[yt.current,Ie]}var cr=function(ct){var yt=ct.position,at=ct.prefixCls,Pe=ct.extra;if(!Pe)return null;var ze,Ie=Pe;return yt==="right"&&(ze=Ie.right||!Ie.left&&Ie||null),yt==="left"&&(ze=Ie.left||null),ze?y.createElement("div",{className:"".concat(at,"-extra-content")},ze):null};function Zr(Je,ct){var yt,at=y.useContext(sr),Pe=at.prefixCls,ze=at.tabs,Ie=Je.className,$e=Je.style,qe=Je.id,pt=Je.animated,it=Je.activeKey,Lt=Je.rtl,Vt=Je.extra,hn=Je.editable,sn=Je.locale,un=Je.tabPosition,ln=Je.tabBarGutter,Kn=Je.children,xn=Je.onTabClick,Ur=Je.onTabScroll,Pr=Object(y.useRef)(),Jr=Object(y.useRef)(),Fr=Object(y.useRef)(),ta=Object(y.useRef)(),zn=lr(),Or=Object(p.a)(zn,2),Vn=Or[0],En=Or[1],Wn=un==="top"||un==="bottom",zr=hr(0,function(Ta,ba){Wn&&Ur&&Ur({direction:Ta>ba?"left":"right"})}),sa=Object(p.a)(zr,2),gr=sa[0],ra=sa[1],Ea=hr(0,function(Ta,ba){!Wn&&Ur&&Ur({direction:Ta>ba?"top":"bottom"})}),ca=Object(p.a)(Ea,2),xa=ca[0],Tr=ca[1],Er=Object(y.useState)(0),Mr=Object(p.a)(Er,2),or=Mr[0],da=Mr[1],ya=Object(y.useState)(0),_a=Object(p.a)(ya,2),Oa=_a[0],ha=_a[1],La=Object(y.useState)(0),Na=Object(p.a)(La,2),Ba=Na[0],ni=Na[1],Fi=Object(y.useState)(0),Ai=Object(p.a)(Fi,2),Ia=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),Ua=Object(p.a)(Si,2),Pa=Ua[0],Za=Ua[1],to=Object(y.useState)(null),Mo=Object(p.a)(to,2),Ii=Mo[0],no=Mo[1],ro=Object(y.useState)(0),mi=Object(p.a)(ro,2),uo=mi[0],Io=mi[1],Lo=Object(y.useState)(0),bo=Object(p.a)(Lo,2),Vi=bo[0],co=bo[1],Xi=n(new Map),Yi=Object(p.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=m(ze,No,or),Ji="".concat(Pe,"-nav-operations-hidden"),Qi=0,ei=0;Wn?Lt?(Qi=0,ei=Math.max(0,or-Pa)):(Qi=Math.min(0,Pa-or),ei=0):(Qi=Math.min(0,Ii-Oa),ei=0);function Li(Ta){return Ta<Qi?[Qi,!1]:Ta>ei?[ei,!1]:[Ta,!0]}var Di=Object(y.useRef)(),Zi=Object(y.useState)(),Ri=Object(p.a)(Zi,2),Eo=Ri[0],xo=Ri[1];function Co(){xo(Date.now())}function io(){window.clearTimeout(Di.current)}kn(Pr,function(Ta,ba){var Ka=!1;function ui(eo,ki){eo(function(ho){var wi=Li(ho+ki),qa=Object(p.a)(wi,2),po=qa[0],Hi=qa[1];return Ka=Hi,po})}if(Wn){if(Pa>=or)return Ka;ui(ra,Ta)}else{if(Ii>=Oa)return Ka;ui(Tr,ba)}return io(),Co(),Ka}),Object(y.useEffect)(function(){return io(),Eo&&(Di.current=window.setTimeout(function(){xo(0)},100)),io},[Eo]);function Ni(){var Ta=arguments.length>0&&arguments[0]!==void 0?arguments[0]:it,ba=ao.get(Ta);if(!ba)return;if(Wn){var Ka=gr;Lt?ba.right<gr?Ka=ba.right:ba.right+ba.width>gr+Pa&&(Ka=ba.right+ba.width-Pa):ba.left<-gr?Ka=-ba.left:ba.left+ba.width>-gr+Pa&&(Ka=-(ba.left+ba.width-Pa)),Tr(0),ra(Li(Ka)[0])}else{var ui=xa;ba.top<-xa?ui=-ba.top:ba.top+ba.height>-xa+Ii&&(ui=-(ba.top+ba.height-Ii)),ra(0),Tr(Li(ui)[0])}}var qi=C(ao,{width:Pa,height:Ii,left:gr,top:xa},{width:Ba,height:Ia},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Je),{},{tabs:ze})),ko=Object(p.a)(qi,2),oo=ko[0],so=ko[1],So=ze.map(function(Ta){var ba=Ta.key;return y.createElement(l,{id:qe,prefixCls:Pe,key:ba,rtl:Lt,tab:Ta,closable:Ta.closable,editable:hn,active:ba===it,tabPosition:un,tabBarGutter:ln,renderWrapper:Kn,removeAriaLabel:sn==null?void 0:sn.removeAriaLabel,ref:Vn(ba),onClick:function(ui){xn(ba,ui)},onRemove:function(){En(ba)},onFocus:function(){Ni(ba),Co(),Lt||(Pr.current.scrollLeft=0),Pr.current.scrollTop=0}})}),Uo=a(function(){var Ta,ba,Ka,ui,eo,ki,ho,wi,qa,po=((Ta=Pr.current)===null||Ta===void 0?void 0:Ta.offsetWidth)||0,Hi=((ba=Pr.current)===null||ba===void 0?void 0:ba.offsetHeight)||0,mo=((Ka=ta.current)===null||Ka===void 0?void 0:Ka.offsetWidth)||0,hi=((ui=ta.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Da=((eo=Fr.current)===null||eo===void 0?void 0:eo.offsetWidth)||0,ia=((ki=Fr.current)===null||ki===void 0?void 0:ki.offsetHeight)||0;Za(po),no(Hi),Io(mo),co(hi);var Sr=(((ho=Jr.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-mo,Qr=(((wi=Jr.current)===null||wi===void 0?void 0:wi.offsetHeight)||0)-hi;da(Sr),ha(Qr);var ma=(qa=Fr.current)===null||qa===void 0?void 0:qa.className.includes(Ji);ni(Sr-(ma?0:Da)),bi(Qr-(ma?0:ia)),yo(function(){var Fa=new Map;return ze.forEach(function(Ei){var Pi=Ei.key,$a=Vn(Pi).current;$a&&Fa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Fa})}),jo=ze.slice(0,oo),fi=ze.slice(so+1),Wa=[].concat(Object(d.a)(jo),Object(d.a)(fi)),ri=Object(y.useState)(),Xa=Object(p.a)(ri,2),ai=Xa[0],wo=Xa[1],yi=ao.get(it),Bo=Object(y.useRef)();function Oo(){c.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Ta={};return yi&&(Wn?(Lt?Ta.right=yi.right:Ta.left=yi.left,Ta.width=yi.width):(Ta.top=yi.top,Ta.height=yi.height)),Oo(),Bo.current=c()(function(){wo(Ta)}),Oo},[yi,Wn,Lt]),Object(y.useEffect)(function(){Ni()},[it,yi,ao,Wn]),Object(y.useEffect)(function(){Uo()},[Lt,ln,it,ze.map(function(Ta){return Ta.key}).join("_")]);var $i=!!Wa.length,Wi="".concat(Pe,"-nav-wrap"),To,fo,Wo,lo;return Wn?Lt?(fo=gr>0,To=gr+Pa<or):(To=gr<0,fo=-gr+Pa<or):(Wo=xa<0,lo=-xa+Ii<Oa),y.createElement("div",{ref:ct,role:"tablist",className:T()("".concat(Pe,"-nav"),Ie),style:$e,onKeyDown:function(){Co()}},y.createElement(cr,{position:"left",extra:Vt,prefixCls:Pe}),y.createElement(t.a,{onResize:Uo},y.createElement("div",{className:T()(Wi,(yt={},Object(L.a)(yt,"".concat(Wi,"-ping-left"),To),Object(L.a)(yt,"".concat(Wi,"-ping-right"),fo),Object(L.a)(yt,"".concat(Wi,"-ping-top"),Wo),Object(L.a)(yt,"".concat(Wi,"-ping-bottom"),lo),yt)),ref:Pr},y.createElement(t.a,{onResize:Uo},y.createElement("div",{ref:Jr,className:"".concat(Pe,"-nav-list"),style:{transform:"translate(".concat(gr,"px, ").concat(xa,"px)"),transition:Eo?"none":void 0}},So,y.createElement(Gr,{ref:ta,prefixCls:Pe,locale:sn,editable:hn,style:{visibility:$i?"hidden":null}}),y.createElement("div",{className:T()("".concat(Pe,"-ink-bar"),Object(L.a)({},"".concat(Pe,"-ink-bar-animated"),pt.inkBar)),style:ai}))))),y.createElement(qr,Object.assign({},Je,{ref:Fr,prefixCls:Pe,tabs:Wa,className:!$i&&Ji})),y.createElement(cr,{position:"right",extra:Vt,prefixCls:Pe}))}var dr=y.forwardRef(Zr);function la(Je){var ct=Je.id,yt=Je.activeKey,at=Je.animated,Pe=Je.tabPosition,ze=Je.rtl,Ie=Je.destroyInactiveTabPane,$e=y.useContext(sr),qe=$e.prefixCls,pt=$e.tabs,it=at.tabPane,Lt=pt.findIndex(function(Vt){return Vt.key===yt});return y.createElement("div",{className:T()("".concat(qe,"-content-holder"))},y.createElement("div",{className:T()("".concat(qe,"-content"),"".concat(qe,"-content-").concat(Pe),Object(L.a)({},"".concat(qe,"-content-animated"),it)),style:Lt&&it?Object(L.a)({},ze?"marginRight":"marginLeft","-".concat(Lt,"00%")):null},pt.map(function(Vt){return y.cloneElement(Vt.node,{key:Vt.key,prefixCls:qe,tabKey:Vt.key,id:ct,animated:it,active:Vt.key===yt,destroyInactiveTabPane:Ie})})))}function Xr(Je){var ct=Je.prefixCls,yt=Je.forceRender,at=Je.className,Pe=Je.style,ze=Je.id,Ie=Je.active,$e=Je.animated,qe=Je.destroyInactiveTabPane,pt=Je.tabKey,it=Je.children,Lt=y.useState(yt),Vt=Object(p.a)(Lt,2),hn=Vt[0],sn=Vt[1];y.useEffect(function(){Ie?sn(!0):qe&&sn(!1)},[Ie,qe]);var un={};return Ie||($e?(un.visibility="hidden",un.height=0,un.overflowY="hidden"):un.display="none"),y.createElement("div",{id:ze&&"".concat(ze,"-panel-").concat(pt),role:"tabpanel",tabIndex:Ie?0:-1,"aria-labelledby":ze&&"".concat(ze,"-tab-").concat(pt),"aria-hidden":!Ie,style:Object(b.a)(Object(b.a)({},un),Pe),className:T()("".concat(ct,"-tabpane"),Ie&&"".concat(ct,"-tabpane-active"),at)},(Ie||hn||yt)&&it)}var yr=0;function wr(Je){return Object(h.a)(Je).map(function(ct){if(y.isValidElement(ct)){var yt=ct.key!==void 0?String(ct.key):void 0;return Object(b.a)(Object(b.a)({key:yt},ct.props),{},{node:ct})}return null}).filter(function(ct){return ct})}function Hr(Je,ct){var yt,at=Je.id,Pe=Je.prefixCls,ze=Pe===void 0?"rc-tabs":Pe,Ie=Je.className,$e=Je.children,qe=Je.direction,pt=Je.activeKey,it=Je.defaultActiveKey,Lt=Je.editable,Vt=Je.animated,hn=Je.tabPosition,sn=hn===void 0?"top":hn,un=Je.tabBarGutter,ln=Je.tabBarStyle,Kn=Je.tabBarExtraContent,xn=Je.locale,Ur=Je.moreIcon,Pr=Je.moreTransitionName,Jr=Je.destroyInactiveTabPane,Fr=Je.renderTabBar,ta=Je.onChange,zn=Je.onTabClick,Or=Je.onTabScroll,Vn=Object(A.a)(Je,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),En=wr($e),Wn=qe==="rtl",zr;Vt===!1?zr={inkBar:!1,tabPane:!1}:zr=Object(b.a)({inkBar:!0,tabPane:!1},Vt!==!0?Vt:null);var sa=Object(y.useState)(!1),gr=Object(p.a)(sa,2),ra=gr[0],Ea=gr[1];Object(y.useEffect)(function(){Ea(ir())},[]);var ca=Object(_.a)(function(){var Ia;return(Ia=En[0])===null||Ia===void 0?void 0:Ia.key},{value:pt,defaultValue:it}),xa=Object(p.a)(ca,2),Tr=xa[0],Er=xa[1],Mr=Object(y.useState)(function(){return En.findIndex(function(Ia){return Ia.key===Tr})}),or=Object(p.a)(Mr,2),da=or[0],ya=or[1];Object(y.useEffect)(function(){var Ia=En.findIndex(function(Si){return Si.key===Tr});if(Ia===-1){var bi;Ia=Math.max(0,Math.min(da,En.length-1)),Er((bi=En[Ia])===null||bi===void 0?void 0:bi.key)}ya(Ia)},[En.map(function(Ia){return Ia.key}).join("_"),Tr,da]);var _a=Object(_.a)(null,{value:at}),Oa=Object(p.a)(_a,2),ha=Oa[0],La=Oa[1],Na=sn;ra&&!["left","right"].includes(sn)&&(Na="top"),Object(y.useEffect)(function(){at||(La("rc-tabs-".concat(yr)),yr+=1)},[]);function Ba(Ia,bi){zn==null||zn(Ia,bi),Er(Ia),ta==null||ta(Ia)}var ni={id:ha,activeKey:Tr,animated:zr,tabPosition:Na,rtl:Wn,mobile:ra},Fi,Ai=Object(b.a)(Object(b.a)({},ni),{},{editable:Lt,locale:xn,moreIcon:Ur,moreTransitionName:Pr,tabBarGutter:un,onTabClick:Ba,onTabScroll:Or,extra:Kn,style:ln,panes:$e});return Fr?Fi=Fr(Ai,dr):Fi=y.createElement(dr,Object.assign({},Ai)),y.createElement(sr.Provider,{value:{tabs:En,prefixCls:ze}},y.createElement("div",Object.assign({ref:ct,id:at,className:T()(ze,"".concat(ze,"-").concat(Na),(yt={},Object(L.a)(yt,"".concat(ze,"-mobile"),ra),Object(L.a)(yt,"".concat(ze,"-editable"),Lt),Object(L.a)(yt,"".concat(ze,"-rtl"),Wn),yt),Ie)},Vn),Fi,y.createElement(la,Object.assign({destroyInactiveTabPane:Jr},ni,{animated:zr}))))}var Yr=y.forwardRef(Hr);Yr.TabPane=Xr;var wa=Yr,va=Y.b=wa},kPWJ:function(M,Y,s){M.exports=s.p+"static/question.cb52bef9.gif"},kPYp:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04COkUGoytusEAhUGi9APyO+UTlWVfyPkrt0/kQ8y4FcI3NQF6zYnNAEn1VKtQuAJg1XiPRPOnnggFmwmicTIC/VqOa5wCiFHhCFGGGAtnkNUBGyaLVGKJXvvZXe8ZlpS/UP5DAh8cgPt8nTP8n+LZbS7vIHpdH2WzcBzUZp1njCTgB/HacYNQxS1sluFF4zwmgpHEpa09ckOleGkuUaEa70sRmrU4fgGG7L8VBOPnCiThgvXaU5ByE14rAGcwxA/vsxha3lJPF4ylv0mpCVKYBCGRRFXm5BvedlMcEEVgyY0hSHP+nn8XZiin1G6gu+At3watfC0l8MWIk5GBs+0UhxZbvSyuM545Gvn+ijYsIU9GvKkyeLVIOBUypIwKSbSyt94RUxHCeIgMNRFEauaDBt6fSrdkS+p0MnisUpgGtIlH7rc9nOU8pQyPmF4XGBY5v2G6RRvtp7irkFjeGf7bYTuyXfYVpUhi8gtLOCaoJA1KKPaL2aVHXjM+XievFm6Ti+JlE0GrupIDMqRps+4z6vh+f3DqHcF8MyZVSbdhl9lKCm8gBVBPn+pNq43qHBSlTujgNeDkJUo3+3Iw9BYF3F3i7K5eonUd9hLqhm2lz/IG8OaYADflgjPndMBGHkcqD3B4mMn+Gc2iaszbSOpZtDbFBdN4uFgINOJMAqOjGxLW77bJ/BHJDU7kcfXjOEeEa7s9NzdM65WeNK0sC5dQGjSrPDgB+1zVNiRqmbh7wO2dQWnm2tv0+C8Zq7rfxkbjOEC3AsQmtSyYnc9q8cW8kMDSYHB7saqHGs+xvLgQ36272VJ9Zajh92ukwtH8JCXxxWajvFSC1sjZYEPC0W4pT3RG3jj0xQ/qF8qe86ymVRTbLg2KOQxLBdkvkdWeLoR7qyaL6fOWqMqI+9jZvYAHsEyKP7eVtj//HPBn5bU7CP9uN4oi4GvSFdGcRhhgybYvHuunByzXqd4IZtEmNi2BzZSklrPQ/vKpK43gOJvEzWvZDZrvYCb1ZIDhBZeyE3xt01ZrDRwc5zqhCiyPNtaxZwD63tmRe37jbhZs/1i5iQKSGpIYeZs+7HcKYYZwPfb50bwSK2l/LNOtabzuUet0TGB4VdGmJD5f0qFiro6Ko7cL65OnDVcxjA+zwDFmY9H/TY62/OYuFbzQphthXIRzus8U4kLy10DhGfemi8u3zOuUv9K4Km4gLaF14kIbty7SF75XOAzE0rW6iwxPBxHOFiUt0Plx77HvSjXZiLntI0o/3iJrO+bXZWSCibh8QsjlMRnE06IZYWjiEgb+CLo6RQrm1t4oKbs3E4dnNSh/fLYkvCZHNtRmppDysOAh6oyOHQ/0+i1Ot6HZzyPS1TjunvcRFzVI/gZjn6rKPORzHNps+ro4A6F5aaef+1oXFSl9EFmqvIEkBunBstea5i9Z778T99AgnFr1dWTp0S4sO1u7ETj1LCItiLvEu1RQn6ya7H8Q5/tJnWEzecFz+PSDPtxKWIdMMJFvkNEDHq4iuU1dVSySWrPZXvkeh2SHfEi8EfGQBTRWFdLecLw0IEyaTnXmovX6ng1PC3CeNeuifCZCeP+5OxRXKEXGp95hrgouAjsGBZ+KxHLTCOvd+0YVUrXMUMVB0j70z4cRty0b7H8R19BKqnUGQY20kZnXU1511rm+R5LFa7J2KmOQpJ7lsijfbU7brVOwOcfRSiNIxaqjbBaLeNc5HeAf5DlNQ1fAPyQxoY6yv0vA/xxq3QEAcvFMCumR2eG476vRsKCPQvY0blNbp9y8Xr9YxvyhBFGZS4YRSFzCot4YvvtnVhAT4hN0mDsDSz1PRaoUuCYgcLWAO4IYbXAdzLNTGgtmz5exNxzneMs80n1i7P4TpDLOokY5KiWKlXAYhG+1iXyPw/8FTokO7tT5H8p4CfVlBbyFassFeE6IKvTJRqt5QVfWLVzoXzUE3bOcZpgjYGZmfTgmpBt0UkW71vJe70CNVO9QZbLBl7J3xufCY7tZJq29UPrufdIAYtNG1j9XEqzyq7mwyw+eIiXO2tJ5zrbebfoqKIxVPr5zNB03AOoVd6KWpkbJJwDubXPkf9lgz9powaNdUw1HveqMrUz8Erc6W0OI9bvW8T+Lhy9+003alDcyPd8pVKIu0uHU2O6medaPmP5oZ/KJ+d03DT1i6cy2eSzzE8wTV0P4agS7DeWH+1aJC+VPKhTRXlUNMOkhEhb2d58jLsPHuYNnusqmrXvM2i2DisazeKgkFsRCp1dFRpUWGYifolQDnzv/wV8p5XYfP5CPMpRLu0GzlGrrB9g+Gltbdwc9Dhyzke3HyEqzmKgn2CDSCxWuShzmk86XcvrErDR+vxGsqhNnESbwHiFDJYGvi4+3w8KmEK6Q/azqjzWYLjP8efipBb6eSwQj6XtnbVJQNTEzqiVjZ7PlpYWjuWCbR2ImFYKwkamGMstWf3jBivXVW91+lHIG4W5zKxpJbu9w+0r+CPW6NBcjxcVLo8Lbl/TjvCMmFjRPVNwix/Q0kDiAuc6xy6qoAqHULaKpVGlZ9WzLQtwysLbrR5vZaco1SDO0a6ixzbFgLUcUdhllE+d5OpSiIXhpq0IDnShHrMkSClsM5YluxbJh7HHVWXCaka2BpQb4Vsxo2pr192C084uzq5y2mk7GEaIk4SFi1xHlUmDroC/Z5V79iyUlztrOw58l45OVbMsFbLudEUPbGeFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(M,Y,s){},l2Kq:function(M,Y,s){M.exports=s.p+"static/match_ad.24dc22fd.jpg"},lPiR:function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){return function(p){var A=L,b=A.lib,y=b.WordArray,S=b.Hasher,T=A.algo,h=[],_=[];(function(){function c(i){for(var f=p.sqrt(i),l=2;l<=f;l++)if(!(i%l))return!1;return!0}function t(i){return(i-(i|0))*4294967296|0}for(var a=2,n=0;n<64;)c(a)&&(n<8&&(h[n]=t(p.pow(a,1/2))),_[n]=t(p.pow(a,1/3)),n++),a++})();var d=[],r=T.SHA256=S.extend({_doReset:function(){this._hash=new y.init(h.slice(0))},_doProcessBlock:function(c,t){for(var a=this._hash.words,n=a[0],i=a[1],f=a[2],l=a[3],o=a[4],m=a[5],w=a[6],C=a[7],v=0;v<64;v++){if(v<16)d[v]=c[t+v]|0;else{var P=d[v-15],R=(P<<25|P>>>7)^(P<<14|P>>>18)^P>>>3,E=d[v-2],x=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;d[v]=R+d[v-7]+x+d[v-16]}var g=o&m^~o&w,O=n&i^n&f^i&f,I=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),D=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25),N=C+D+g+_[v]+d[v],V=I+O;C=w,w=m,m=o,o=l+N|0,l=f,f=i,i=n,n=N+V|0}a[0]=a[0]+n|0,a[1]=a[1]+i|0,a[2]=a[2]+f|0,a[3]=a[3]+l|0,a[4]=a[4]+o|0,a[5]=a[5]+m|0,a[6]=a[6]+w|0,a[7]=a[7]+C|0},_doFinalize:function(){var c=this._data,t=c.words,a=this._nDataBytes*8,n=c.sigBytes*8;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=p.floor(a/4294967296),t[(n+64>>>9<<4)+15]=a,c.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var c=S.clone.call(this);return c._hash=this._hash.clone(),c}});A.SHA256=S._createHelper(r),A.HmacSHA256=S._createHmacHelper(r)}(Math),L.SHA256})},lZu9:function(M,Y,s){(function(L){L(s("VrN/"),s("1eCo"),s("8EBN"))})(function(L){"use strict";L.defineMode("markdown",function(p,A){var b=L.getMode(p,"text/html"),y=b.name=="null";function S(B){if(L.findModeByName){var k=L.findModeByName(B);k&&(B=k.mime||k.mimes[0])}var G=L.getMode(p,B);return G.name=="null"?null:G}A.highlightFormatting===void 0&&(A.highlightFormatting=!1),A.maxBlockquoteDepth===void 0&&(A.maxBlockquoteDepth=0),A.taskLists===void 0&&(A.taskLists=!1),A.strikethrough===void 0&&(A.strikethrough=!1),A.emoji===void 0&&(A.emoji=!1),A.fencedCodeBlockHighlighting===void 0&&(A.fencedCodeBlockHighlighting=!0),A.fencedCodeBlockDefaultMode===void 0&&(A.fencedCodeBlockDefaultMode="text/plain"),A.xml===void 0&&(A.xml=!0),A.tokenTypeOverrides===void 0&&(A.tokenTypeOverrides={});var T={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var h in T)T.hasOwnProperty(h)&&A.tokenTypeOverrides[h]&&(T[h]=A.tokenTypeOverrides[h]);var _=/^([*\-_])(?:\s*\1){2,}\s*$/,d=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,r=/^\[(x| )\](?=\s)/i,c=A.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,t=/^ {0,3}(?:\={1,}|-{2,})\s*$/,a=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,i=/^\s*\[[^\]]+?\]:.*$/,f=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,l=" ";function o(B,k,G){return k.f=k.inline=G,G(B,k)}function m(B,k,G){return k.f=k.block=G,G(B,k)}function w(B){return!B||!/\S/.test(B.string)}function C(B){if(B.linkTitle=!1,B.linkHref=!1,B.linkText=!1,B.em=!1,B.strong=!1,B.strikethrough=!1,B.quote=0,B.indentedCode=!1,B.f==P){var k=y;if(!k){var G=L.innerMode(b,B.htmlState);k=G.mode.name=="xml"&&G.state.tagStart===null&&!G.state.context&&G.state.tokenize.isInText}k&&(B.f=g,B.block=v,B.htmlState=null)}return B.trailingSpace=0,B.trailingSpaceNewLine=!1,B.prevLine=B.thisLine,B.thisLine={stream:null},null}function v(B,k){var G=B.column()===k.indentation,ne=w(k.prevLine.stream),fe=k.indentedCode,de=k.prevLine.hr,Ee=k.list!==!1,we=(k.listStack[k.listStack.length-1]||0)+3;k.indentedCode=!1;var ce=k.indentation;if(k.indentationDiff===null&&(k.indentationDiff=k.indentation,Ee)){for(k.list=null;ce<k.listStack[k.listStack.length-1];)k.listStack.pop(),k.listStack.length?k.indentation=k.listStack[k.listStack.length-1]:k.list=!1;k.list!==!1&&(k.indentationDiff=ce-k.listStack[k.listStack.length-1])}var be=!ne&&!de&&!k.prevLine.header&&(!Ee||!fe)&&!k.prevLine.fencedCodeEnd,ve=(k.list===!1||de||ne)&&k.indentation<=we&&B.match(_),ue=null;if(k.indentationDiff>=4&&(fe||k.prevLine.fencedCodeEnd||k.prevLine.header||ne))return B.skipToEnd(),k.indentedCode=!0,T.code;if(B.eatSpace())return null;if(G&&k.indentation<=we&&(ue=B.match(c))&&ue[1].length<=6)return k.quote=0,k.header=ue[1].length,k.thisLine.header=!0,A.highlightFormatting&&(k.formatting="header"),k.f=k.inline,E(k);if(k.indentation<=we&&B.eat(">"))return k.quote=G?1:k.quote+1,A.highlightFormatting&&(k.formatting="quote"),B.eatSpace(),E(k);if(!ve&&!k.setext&&G&&k.indentation<=we&&(ue=B.match(d))){var se=ue[1]?"ol":"ul";return k.indentation=ce+B.current().length,k.list=!0,k.quote=0,k.listStack.push(k.indentation),k.em=!1,k.strong=!1,k.code=!1,k.strikethrough=!1,A.taskLists&&B.match(r,!1)&&(k.taskList=!0),k.f=k.inline,A.highlightFormatting&&(k.formatting=["list","list-"+se]),E(k)}else{if(G&&k.indentation<=we&&(ue=B.match(n,!0)))return k.quote=0,k.fencedEndRE=new RegExp(ue[1]+"+ *$"),k.localMode=A.fencedCodeBlockHighlighting&&S(ue[2]||A.fencedCodeBlockDefaultMode),k.localMode&&(k.localState=L.startState(k.localMode)),k.f=k.block=R,A.highlightFormatting&&(k.formatting="code-block"),k.code=-1,E(k);if(k.setext||(!be||!Ee)&&!k.quote&&k.list===!1&&!k.code&&!ve&&!i.test(B.string)&&(ue=B.lookAhead(1))&&(ue=ue.match(t)))return k.setext?(k.header=k.setext,k.setext=0,B.skipToEnd(),A.highlightFormatting&&(k.formatting="header")):(k.header=ue[0].charAt(0)=="="?1:2,k.setext=k.header),k.thisLine.header=!0,k.f=k.inline,E(k);if(ve)return B.skipToEnd(),k.hr=!0,k.thisLine.hr=!0,T.hr;if(B.peek()==="[")return o(B,k,V)}return o(B,k,k.inline)}function P(B,k){var G=b.token(B,k.htmlState);if(!y){var ne=L.innerMode(b,k.htmlState);(ne.mode.name=="xml"&&ne.state.tagStart===null&&!ne.state.context&&ne.state.tokenize.isInText||k.md_inside&&B.current().indexOf(">")>-1)&&(k.f=g,k.block=v,k.htmlState=null)}return G}function R(B,k){var G=k.listStack[k.listStack.length-1]||0,ne=k.indentation<G,fe=G+3;if(k.fencedEndRE&&k.indentation<=fe&&(ne||B.match(k.fencedEndRE))){A.highlightFormatting&&(k.formatting="code-block");var de;return ne||(de=E(k)),k.localMode=k.localState=null,k.block=v,k.f=g,k.fencedEndRE=null,k.code=0,k.thisLine.fencedCodeEnd=!0,ne?m(B,k,k.block):de}else return k.localMode?k.localMode.token(B,k.localState):(B.skipToEnd(),T.code)}function E(B){var k=[];if(B.formatting){k.push(T.formatting),typeof B.formatting=="string"&&(B.formatting=[B.formatting]);for(var G=0;G<B.formatting.length;G++)k.push(T.formatting+"-"+B.formatting[G]),B.formatting[G]==="header"&&k.push(T.formatting+"-"+B.formatting[G]+"-"+B.header),B.formatting[G]==="quote"&&(!A.maxBlockquoteDepth||A.maxBlockquoteDepth>=B.quote?k.push(T.formatting+"-"+B.formatting[G]+"-"+B.quote):k.push("error"))}if(B.taskOpen)return k.push("meta"),k.length?k.join(" "):null;if(B.taskClosed)return k.push("property"),k.length?k.join(" "):null;if(B.linkHref?k.push(T.linkHref,"url"):(B.strong&&k.push(T.strong),B.em&&k.push(T.em),B.strikethrough&&k.push(T.strikethrough),B.emoji&&k.push(T.emoji),B.linkText&&k.push(T.linkText),B.code&&k.push(T.code),B.image&&k.push(T.image),B.imageAltText&&k.push(T.imageAltText,"link"),B.imageMarker&&k.push(T.imageMarker)),B.header&&k.push(T.header,T.header+"-"+B.header),B.quote&&(k.push(T.quote),!A.maxBlockquoteDepth||A.maxBlockquoteDepth>=B.quote?k.push(T.quote+"-"+B.quote):k.push(T.quote+"-"+A.maxBlockquoteDepth)),B.list!==!1){var ne=(B.listStack.length-1)%3;ne?ne===1?k.push(T.list2):k.push(T.list3):k.push(T.list1)}return B.trailingSpaceNewLine?k.push("trailing-space-new-line"):B.trailingSpace&&k.push("trailing-space-"+(B.trailingSpace%2?"a":"b")),k.length?k.join(" "):null}function x(B,k){return B.match(a,!0)?E(k):void 0}function g(B,k){var G=k.text(B,k);if(typeof G!="undefined")return G;if(k.list)return k.list=null,E(k);if(k.taskList){var ne=B.match(r,!0)[1]===" ";return ne?k.taskOpen=!0:k.taskClosed=!0,A.highlightFormatting&&(k.formatting="task"),k.taskList=!1,E(k)}if(k.taskOpen=!1,k.taskClosed=!1,k.header&&B.match(/^#+$/,!0))return A.highlightFormatting&&(k.formatting="header"),E(k);var fe=B.next();if(k.linkTitle){k.linkTitle=!1;var de=fe;fe==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ee="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(B.match(new RegExp(Ee),!0))return T.linkHref}if(fe==="`"){var we=k.formatting;A.highlightFormatting&&(k.formatting="code"),B.eatWhile("`");var ce=B.current().length;if(k.code==0&&(!k.quote||ce==1))return k.code=ce,E(k);if(ce==k.code){var be=E(k);return k.code=0,be}else return k.formatting=we,E(k)}else if(k.code)return E(k);if(fe==="\\"&&(B.next(),A.highlightFormatting)){var ve=E(k),ue=T.formatting+"-escape";return ve?ve+" "+ue:ue}if(fe==="!"&&B.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return k.imageMarker=!0,k.image=!0,A.highlightFormatting&&(k.formatting="image"),E(k);if(fe==="["&&k.imageMarker&&B.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return k.imageMarker=!1,k.imageAltText=!0,A.highlightFormatting&&(k.formatting="image"),E(k);if(fe==="]"&&k.imageAltText){A.highlightFormatting&&(k.formatting="image");var ve=E(k);return k.imageAltText=!1,k.image=!1,k.inline=k.f=I,ve}if(fe==="["&&!k.image)return k.linkText&&B.match(/^.*?\]/)||(k.linkText=!0,A.highlightFormatting&&(k.formatting="link")),E(k);if(fe==="]"&&k.linkText){A.highlightFormatting&&(k.formatting="link");var ve=E(k);return k.linkText=!1,k.inline=k.f=B.match(/\(.*?\)| ?\[.*?\]/,!1)?I:g,ve}if(fe==="<"&&B.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){k.f=k.inline=O,A.highlightFormatting&&(k.formatting="link");var ve=E(k);return ve?ve+=" ":ve="",ve+T.linkInline}if(fe==="<"&&B.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){k.f=k.inline=O,A.highlightFormatting&&(k.formatting="link");var ve=E(k);return ve?ve+=" ":ve="",ve+T.linkEmail}if(A.xml&&fe==="<"&&B.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var se=B.string.indexOf(">",B.pos);if(se!=-1){var q=B.string.substring(B.start,se);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(q)&&(k.md_inside=!0)}return B.backUp(1),k.htmlState=L.startState(b),m(B,k,P)}if(A.xml&&fe==="<"&&B.match(/^\/\w*?>/))return k.md_inside=!1,"tag";if(fe==="*"||fe==="_"){for(var me=1,re=B.pos==1?" ":B.string.charAt(B.pos-2);me<3&&B.eat(fe);)me++;var ie=B.peek()||" ",Oe=!/\s/.test(ie)&&(!f.test(ie)||/\s/.test(re)||f.test(re)),le=!/\s/.test(re)&&(!f.test(re)||/\s/.test(ie)||f.test(ie)),$=null,J=null;if(me%2&&(!k.em&&Oe&&(fe==="*"||!le||f.test(re))?$=!0:k.em==fe&&le&&(fe==="*"||!Oe||f.test(ie))&&($=!1)),me>1&&(!k.strong&&Oe&&(fe==="*"||!le||f.test(re))?J=!0:k.strong==fe&&le&&(fe==="*"||!Oe||f.test(ie))&&(J=!1)),J!=null||$!=null){A.highlightFormatting&&(k.formatting=$==null?"strong":J==null?"em":"strong em"),$===!0&&(k.em=fe),J===!0&&(k.strong=fe);var be=E(k);return $===!1&&(k.em=!1),J===!1&&(k.strong=!1),be}}else if(fe===" "&&(B.eat("*")||B.eat("_"))){if(B.peek()===" ")return E(k);B.backUp(1)}if(A.strikethrough){if(fe==="~"&&B.eatWhile(fe)){if(k.strikethrough){A.highlightFormatting&&(k.formatting="strikethrough");var be=E(k);return k.strikethrough=!1,be}else if(B.match(/^[^\s]/,!1))return k.strikethrough=!0,A.highlightFormatting&&(k.formatting="strikethrough"),E(k)}else if(fe===" "&&B.match(/^~~/,!0)){if(B.peek()===" ")return E(k);B.backUp(2)}}if(A.emoji&&fe===":"&&B.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){k.emoji=!0,A.highlightFormatting&&(k.formatting="emoji");var te=E(k);return k.emoji=!1,te}return fe===" "&&(B.match(/^ +$/,!1)?k.trailingSpace++:k.trailingSpace&&(k.trailingSpaceNewLine=!0)),E(k)}function O(B,k){var G=B.next();if(G===">"){k.f=k.inline=g,A.highlightFormatting&&(k.formatting="link");var ne=E(k);return ne?ne+=" ":ne="",ne+T.linkInline}return B.match(/^[^>]+/,!0),T.linkInline}function I(B,k){if(B.eatSpace())return null;var G=B.next();return G==="("||G==="["?(k.f=k.inline=N(G==="("?")":"]"),A.highlightFormatting&&(k.formatting="link-string"),k.linkHref=!0,E(k)):"error"}var D={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(B){return function(k,G){var ne=k.next();if(ne===B){G.f=G.inline=g,A.highlightFormatting&&(G.formatting="link-string");var fe=E(G);return G.linkHref=!1,fe}return k.match(D[B]),G.linkHref=!0,E(G)}}function V(B,k){return B.match(/^([^\]\\]|\\.)*\]:/,!1)?(k.f=F,B.next(),A.highlightFormatting&&(k.formatting="link"),k.linkText=!0,E(k)):o(B,k,g)}function F(B,k){if(B.match(/^\]:/,!0)){k.f=k.inline=W,A.highlightFormatting&&(k.formatting="link");var G=E(k);return k.linkText=!1,G}return B.match(/^([^\]\\]|\\.)+/,!0),T.linkText}function W(B,k){return B.eatSpace()?null:(B.match(/^[^\s]+/,!0),B.peek()===void 0?k.linkTitle=!0:B.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),k.f=k.inline=g,T.linkHref+" url")}var K={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:g,text:x,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(B){return{f:B.f,prevLine:B.prevLine,thisLine:B.thisLine,block:B.block,htmlState:B.htmlState&&L.copyState(b,B.htmlState),indentation:B.indentation,localMode:B.localMode,localState:B.localMode?L.copyState(B.localMode,B.localState):null,inline:B.inline,text:B.text,formatting:!1,linkText:B.linkText,linkTitle:B.linkTitle,linkHref:B.linkHref,code:B.code,em:B.em,strong:B.strong,strikethrough:B.strikethrough,emoji:B.emoji,header:B.header,setext:B.setext,hr:B.hr,taskList:B.taskList,list:B.list,listStack:B.listStack.slice(0),quote:B.quote,indentedCode:B.indentedCode,trailingSpace:B.trailingSpace,trailingSpaceNewLine:B.trailingSpaceNewLine,md_inside:B.md_inside,fencedEndRE:B.fencedEndRE}},token:function(B,k){if(k.formatting=!1,B!=k.thisLine.stream){if(k.header=0,k.hr=!1,B.match(/^\s*$/,!0))return C(k),null;if(k.prevLine=k.thisLine,k.thisLine={stream:B},k.taskList=!1,k.trailingSpace=0,k.trailingSpaceNewLine=!1,!k.localState&&(k.f=k.block,k.f!=P)){var G=B.match(/^\s*/,!0)[0].replace(/\t/g,l).length;if(k.indentation=G,k.indentationDiff=null,G>0)return null}}return k.f(B,k)},innerMode:function(B){return B.block==P?{state:B.htmlState,mode:b}:B.localState?{state:B.localState,mode:B.localMode}:{state:B,mode:K}},indent:function(B,k,G){return B.block==P&&b.indent?b.indent(B.htmlState,k,G):B.localState&&B.localMode.indent?B.localMode.indent(B.localState,k,G):L.Pass},blankLine:C,getType:E,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return K},"xml"),L.defineMIME("text/markdown","markdown"),L.defineMIME("text/x-markdown","markdown")})},luix:function(M,Y,s){M.exports=s.p+"static/tips.2ae2707a.svg"},lzim:function(M,Y,s){"use strict";var L=s("E7E6"),p=s.n(L);s.d(Y,"x",function(){return p.a});var A=s("/GNS"),b=s.n(A);s.d(Y,"w",function(){return b.a});var y=s("FOrL"),S=s.n(y);s.d(Y,"q",function(){return S.a});var T=s("HpTS"),h=s.n(T);s.d(Y,"y",function(){return h.a});var _=s("tWlo"),d=s.n(_);s.d(Y,"a",function(){return d.a});var r=s("7ZXX"),c=s.n(r);s.d(Y,"l",function(){return c.a});var t=s("GABl"),a=s.n(t);s.d(Y,"e",function(){return a.a});var n=s("onxn"),i=s.n(n);s.d(Y,"n",function(){return i.a});var f=s("nKGa"),l=s.n(f);s.d(Y,"m",function(){return l.a});var o=s("4qgm"),m=s.n(o);s.d(Y,"A",function(){return m.a});var w=s("JeFH"),C=s.n(w);s.d(Y,"b",function(){return C.a});var v=s("ji0R"),P=s.n(v);s.d(Y,"i",function(){return P.a});var R=s("W6BS"),E=s.n(R);s.d(Y,"B",function(){return E.a});var x=s("kPYp"),g=s.n(x);s.d(Y,"C",function(){return g.a});var O=s("nukY"),I=s.n(O),D=s("4u4S"),N=s.n(D),V=s("yslc"),F=s.n(V),W=s("l2Kq"),K=s.n(W),B=s("RMFE"),k=s.n(B);s.d(Y,"o",function(){return k.a});var G=s("TGq3"),ne=s.n(G),fe=s("SMhR"),de=s.n(fe);s.d(Y,"z",function(){return de.a});var Ee=s("8/bI"),we=s.n(Ee);s.d(Y,"j",function(){return we.a});var ce=s("JWDV"),be=s.n(ce),ve=s("Xsq0"),ue=s.n(ve);s.d(Y,"p",function(){return ue.a});var se=s("Ohmc"),q=s.n(se);s.d(Y,"c",function(){return q.a});var me=s("csWT"),re=s.n(me);s.d(Y,"d",function(){return re.a});var ie=s("7v3h"),Oe=s.n(ie);s.d(Y,"k",function(){return Oe.a});var le=s("cRFk"),$=s.n(le);s.d(Y,"v",function(){return $.a});var J=s("kPWJ"),te=s.n(J);s.d(Y,"u",function(){return te.a});var Ae=s("qgvg"),Se=s.n(Ae);s.d(Y,"r",function(){return Se.a});var ke=s("FPkq"),rt=s.n(ke);s.d(Y,"t",function(){return rt.a});var ot=s("A/g1"),gt=s.n(ot);s.d(Y,"f",function(){return gt.a});var Et=s("Nmxd"),Ct=s.n(Et);s.d(Y,"g",function(){return Ct.a});var wt=s("5D2P"),Qe=s.n(wt);s.d(Y,"h",function(){return Qe.a});var Ue=s("djh8"),ft=s.n(Ue);s.d(Y,"s",function(){return ft.a});var jt=s("Jq4h"),ht=s.n(jt)},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(M){if(!0)module.exports=M();else var Y})(function(){var define,module,exports;return function(){function M(Y,s,L){function p(y,S){if(!s[y]){if(!Y[y]){var T=typeof require=="function"&&require;if(!S&&T)return require(y,!0);if(A)return A(y,!0);var h=new Error("Cannot find module '"+y+"'");throw h.code="MODULE_NOT_FOUND",h}var _=s[y]={exports:{}};Y[y][0].call(_.exports,function(d){var r=Y[y][1][d];return p(r||d)},_,_.exports,M,Y,s,L)}return s[y].exports}for(var A=typeof require=="function"&&require,b=0;b<L.length;b++)p(L[b]);return p}return M}()({1:[function(M,Y,s){"use strict";var L=M("./browser/client");L.Buffer=M("buffer").Buffer,L.urllib=M("../shims/xhr"),L.version=M("./browser/version").version,Y.exports=L},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(M,Y,s){(function(L,p){"use strict";var A=M("babel-runtime/core-js/promise"),b=_(A),y=M("babel-runtime/regenerator"),S=_(y),T=M("babel-runtime/core-js/object/assign"),h=_(T);function _(V){return V&&V.__esModule?V:{default:V}}var d=M("debug")("ali-oss"),r=M("copy-to"),c=M("xml2js"),t=M("agentkeepalive"),a=M("merge-descriptors"),n=M("url"),i=M("is-type-of"),f=M("platform"),l=M("utility"),o=M("urllib"),m=M("./version"),w=M("bowser"),C=M("../common/signUtils"),v=M("../common/utils/isIP"),P=v.isIP,R=M("../common/client/initOptions"),E=M("../common/utils/createRequest"),x=E.createRequest,g=new t;function O(){var V=f.name,F=f.version;V&&V.toLowerCase&&V.toLowerCase()==="ie"&&F.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function I(){return location&&location.protocol==="https:"}function D(V,F){if(O(),!(this instanceof D))return new D(V,F);V&&V.inited?this.options=V:this.options=D.initOptions(V),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=o,this.agent=this.options.agent||g),this.ctx=F,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}Y.exports=D,D.initOptions=function(F){F.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var W=(0,h.default)({secure:I(),useFetch:!1},F);return R(W)};var N=D.prototype;N.debug=d,a(N,M("./object")),a(N,M("../common/bucket/getBucketWebsite")),a(N,M("../common/bucket/putBucketWebsite")),a(N,M("../common/bucket/deleteBucketWebsite")),a(N,M("../common/bucket/getBucketLifecycle")),a(N,M("../common/bucket/putBucketLifecycle")),a(N,M("../common/bucket/deleteBucketLifecycle")),a(N,M("../common/bucket/putBucketVersioning")),a(N,M("../common/bucket/getBucketVersioning")),a(N,M("./managed-upload")),a(N,M("../common/multipart")),a(N,M("../common/parallel")),N.signature=function(F){return this.debug("authorization stringToSign: %s",F,"info"),C.computeSignature(this.options.accessKeySecret,F)},N.authorization=function(F,W,K,B){var k=C.buildCanonicalString(F.toUpperCase(),W,{headers:B,parameters:K});return C.authorization(this.options.accessKeyId,this.options.accessKeySecret,k)},N.request=function(F){var W,K,B,k,G,ne;return S.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return W=x.call(this,F),this.options.useFetch||(W.params.mode="disable-fetch"),K=void 0,B=void 0,k=!!F.stream,de.prev=5,de.next=8,S.default.awrap(this.urllib.request(W.url,W.params));case 8:K=de.sent,this.debug("response %s %s, got %s, headers: %j",F.method,W.url,K.status,K.headers,"info"),de.next=15;break;case 12:de.prev=12,de.t0=de.catch(5),B=de.t0;case 15:if(G=void 0,!(K&&F.successStatuses&&F.successStatuses.indexOf(K.status)===-1)){de.next=28;break}return de.next=19,S.default.awrap(this.requestError(K));case 19:if(G=de.sent,!(G.code==="RequestTimeTooSkewed"&&!k)){de.next=25;break}return this.options.amendTimeSkewed=+new Date(G.serverTime)-new Date,de.next=24,S.default.awrap(this.request(F));case 24:return de.abrupt("return",de.sent);case 25:G.params=F,de.next=32;break;case 28:if(!B){de.next=32;break}return de.next=31,S.default.awrap(this.requestError(B));case 31:G=de.sent;case 32:if(!G){de.next=34;break}throw G;case 34:if(!F.xmlResponse){de.next=39;break}return de.next=37,S.default.awrap(this.parseXML(K.data));case 37:ne=de.sent,K.data=ne;case 39:return de.abrupt("return",K);case 40:case"end":return de.stop()}},null,this,[[5,12]])},N._getResource=function(F){var W="/";return F.bucket&&(W+=F.bucket+"/"),F.object&&(W+=F.object),W},N._isIP=P,N._escape=function(F){return l.encodeURIComponent(F).replace(/%2F/g,"/")},N._getReqUrl=function(F){var W={};r(this.options.endpoint).to(W);var K=this._isIP(W.hostname),B=this.options.cname;F.bucket&&!B&&!K&&(W.host=F.bucket+"."+W.host);var k="/";F.bucket&&K&&(k+=F.bucket+"/"),F.object&&(k+=this._escape(F.object).replace(/\+/g,"%2B")),W.pathname=k;var G={};if(F.query&&a(G,F.query),F.subres){var ne={};i.string(F.subres)?ne[F.subres]="":i.array(F.subres)?F.subres.forEach(function(fe){ne[fe]=""}):ne=F.subres,a(G,ne)}return W.query=G,n.format(W)},N._getUserAgent=function(){var F=p&&p.browser?"js":"nodejs",W="aliyun-sdk-"+F+"/"+m.version,K=f.description;return!K&&p&&(K="Node.js "+p.version.slice(1)+" on "+p.platform+" "+p.arch),this._checkUserAgent(W+" "+K)},N._checkUserAgent=function(F){var W=F.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return W},N.checkBrowserAndVersion=function(F,W){return w.name===F&&w.version.split(".")[0]===W},N.parseXML=function(F){return new b.default(function(W,K){L.isBuffer(F)&&(F=F.toString()),c.parseString(F,{explicitRoot:!1,explicitArray:!1},function(B,k){B?K(B):W(k)})})},N.requestError=function(F){var W,K,B,k;return S.default.async(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(W=null,!(!F.data||!F.data.length)){ne.next=5;break}F.status===-1||F.status===-2?(W=new Error(F.message),W.name=F.name,W.status=F.status,W.code=F.name):(F.status===404?(W=new Error("Object not exists"),W.name="NoSuchKeyError",W.status=404,W.code="NoSuchKey"):F.status===412?(W=new Error("Pre condition failed"),W.name="PreconditionFailedError",W.status=412,W.code="PreconditionFailed"):(W=new Error("Unknow error, status: "+F.status),W.name="UnknowError",W.status=F.status),W.requestId=F.headers["x-oss-request-id"],W.host=""),ne.next=33;break;case 5:return K=String(F.data),this.debug("request response error data: %s",K,"error"),B=void 0,ne.prev=8,ne.next=11,S.default.awrap(this.parseXML(K));case 11:if(ne.t0=ne.sent,ne.t0){ne.next=14;break}ne.t0={};case 14:B=ne.t0,ne.next=24;break;case 17:return ne.prev=17,ne.t1=ne.catch(8),this.debug(K,"error"),ne.t1.message+=`
raw xml: `+K,ne.t1.status=F.status,ne.t1.requestId=F.headers["x-oss-request-id"],ne.abrupt("return",ne.t1);case 24:k=B.Message||"unknow request error, status: "+F.status,B.Condition&&(k+=" (condition: "+B.Condition+")"),W=new Error(k),W.name=B.Code?B.Code+"Error":"UnknowError",W.status=F.status,W.code=B.Code,W.requestId=B.RequestId,W.hostId=B.HostId,W.serverTime=B.ServerTime;case 33:return this.debug("generate error %j",W,"error"),ne.abrupt("return",W);case 35:case"end":return ne.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:M("../../node_modules/is-buffer/index.js")},M("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(M,Y,s){(function(L){"use strict";var p=M("babel-runtime/core-js/array/from"),A=h(p),b=M("babel-runtime/core-js/promise"),y=h(b),S=M("babel-runtime/regenerator"),T=h(S);function h(C){return C&&C.__esModule?C:{default:C}}var _=M("is-type-of"),d=M("util"),r=M("path"),c=M("mime"),t=M("copy-to"),a=M("../common/utils/isBlob"),n=a.isBlob,i=M("../common/utils/isFile"),f=i.isFile,l=s;l.multipartUpload=function(v,P,R){var E,x,g,O,I,D,N,V,F;return T.default.async(function(K){for(;;)switch(K.prev=K.next){case 0:if(this.resetCancelFlag(),R=R||{},!(R.checkpoint&&R.checkpoint.uploadId)){K.next=6;break}return K.next=5,T.default.awrap(this._resumeMultipart(R.checkpoint,R));case 5:return K.abrupt("return",K.sent);case 6:return E=100*1024,R.mime||(f(P)?R.mime=c.getType(r.extname(P.name)):n(P)?R.mime=P.type:R.mime=c.getType(r.extname(P))),R.headers=R.headers||{},this._convertMetaToHeaders(R.meta,R.headers),K.next=12,T.default.awrap(this._getFileSize(P));case 12:if(x=K.sent,!(x<E)){K.next=25;break}return g=this._createStream(P,0,x),R.contentLength=x,K.next=18,T.default.awrap(this.putStream(v,g,R));case 18:if(O=K.sent,!(R&&R.progress)){K.next=22;break}return K.next=22,T.default.awrap(R.progress(1));case 22:return I={res:O.res,bucket:this.options.bucket,name:v,etag:O.res.headers.etag},(R.headers&&R.headers["x-oss-callback"]||R.callback)&&(I.data=O.data),K.abrupt("return",I);case 25:if(!(R.partSize&&!(parseInt(R.partSize,10)===R.partSize))){K.next=27;break}throw new Error("partSize must be int number");case 27:if(!(R.partSize&&R.partSize<E)){K.next=29;break}throw new Error("partSize must not be smaller than "+E);case 29:return K.next=31,T.default.awrap(this.initMultipartUpload(v,R));case 31:if(D=K.sent,N=D.uploadId,V=this._getPartSize(x,R.partSize),F={file:P,name:v,fileSize:x,partSize:V,uploadId:N,doneParts:[]},!(R&&R.progress)){K.next=38;break}return K.next=38,T.default.awrap(R.progress(0,F,D.res));case 38:return K.next=40,T.default.awrap(this._resumeMultipart(F,R));case 40:return K.abrupt("return",K.sent);case 41:case"end":return K.stop()}},null,this)},l._resumeMultipart=function(v,P){var R,E,x,g,O,I,D,N,V,F,W,K,B,k,G,ne,fe,de;return T.default.async(function(we){for(;;)switch(we.prev=we.next){case 0:if(R=this,!this.isCancel()){we.next=3;break}throw this._makeCancelEvent();case 3:return E=v.file,x=v.fileSize,g=v.partSize,O=v.uploadId,I=v.doneParts,D=v.name,N=[],I.length>0&&t(I).to(N),V=this._divideParts(x,g),F=V.length,W=!1,K=function(be,ve){var ue=this;return new y.default(function(q,me){var re,ie,Oe,le;return T.default.async(function(J){for(;;)switch(J.prev=J.next){case 0:if(J.prev=0,be.isCancel()){J.next=18;break}return re=V[ve-1],ie={stream:be._createStream(E,re.start,re.end),size:re.end-re.start},J.next=6,T.default.awrap(be._uploadPart(D,O,ve,ie));case 6:if(Oe=J.sent,!(!be.isCancel()&&!W)){J.next=15;break}if(v.doneParts.push({number:ve,etag:Oe.res.headers.etag}),!P.progress){J.next=12;break}return J.next=12,T.default.awrap(P.progress(I.length/F,v,Oe.res));case 12:q({number:ve,etag:Oe.res.headers.etag}),J.next=16;break;case 15:q();case 16:J.next=19;break;case 18:q();case 19:J.next=30;break;case 21:J.prev=21,J.t0=J.catch(0),le=new Error,le.name=J.t0.name,le.message=J.t0.message,le.stack=J.t0.stack,le.partNum=ve,t(J.t0).to(le),me(le);case 30:case"end":return J.stop()}},null,ue,[[0,21]])})},B=(0,A.default)(new Array(F),function(ce,be){return be+1}),k=N.map(function(ce){return ce.number}),G=B.filter(function(ce){return k.indexOf(ce)<0}),ne=5,fe=P.parallel||ne,we.next=17,T.default.awrap(this._parallel(G,fe,function(ce){return new y.default(function(be,ve){K(R,ce).then(function(ue){ue&&N.push(ue),be()}).catch(function(ue){ve(ue)})})}));case 17:if(de=we.sent,W=!0,!this.isCancel()){we.next=22;break}throw K=null,this._makeCancelEvent();case 22:if(!(de&&de.length>0)){we.next=25;break}throw de[0].message="Failed to upload some parts with error: "+de[0].toString()+" part_num: "+de[0].partNum,de[0];case 25:return we.next=27,T.default.awrap(this.completeMultipartUpload(D,O,N,P));case 27:return we.abrupt("return",we.sent);case 28:case"end":return we.stop()}},null,this)},l._getFileSize=function(v){return T.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!_.buffer(v)){R.next=4;break}return R.abrupt("return",v.length);case 4:if(!(n(v)||f(v))){R.next=6;break}return R.abrupt("return",v.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return R.stop()}},null,this)};var o=M("stream"),m=o.Readable;function w(C,v){if(!(this instanceof w))return new w(C,v);m.call(this,v),this.file=C,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}d.inherits(w,m),w.prototype.readFileAndPush=function(v){if(this.fileBuffer)for(var P=!0;P&&this.fileBuffer&&this.start<this.fileBuffer.length;){var R=this.start,E=R+v;E=E>this.fileBuffer.length?this.fileBuffer.length:E,this.start=E,P=this.push(this.fileBuffer.slice(R,E))}},w.prototype._read=function(v){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var P=16*1024;v=v||P;var R=this;this.reader.onload=function(x){R.fileBuffer=L.from(new Uint8Array(x.target.result)),R.file=null,R.readFileAndPush(v)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(v)},l._createStream=function(v,P,R){if(n(v)||f(v))return new w(v.slice(P,R));throw new Error("_createStream requires File/Blob.")},l._getPartSize=function(v,P){var R=10*1e3,E=1024*1024;return P?Math.max(Math.ceil(v/R),P):E},l._divideParts=function(v,P){for(var R=Math.ceil(v/P),E=[],x=0;x<R;x++){var g=P*x,O=Math.min(g+P,v);E.push({start:g,end:O})}return E}}).call(this,M("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/promise"),p=_(L),A=M("babel-runtime/core-js/object/keys"),b=_(A),y=M("babel-runtime/core-js/object/assign"),S=_(y),T=M("babel-runtime/regenerator"),h=_(T);function _(R){return R&&R.__esModule?R:{default:R}}var d=M("utility"),r=M("fs"),c=M("is-type-of"),t=M("url"),a=M("copy-to"),n=M("path"),i=M("mime"),f=M("../common/callback"),l=M("../common/signUtils"),o=M("merge-descriptors"),m=M("../common/utils/isBlob"),w=m.isBlob,C=M("../common/utils/isFile"),v=C.isFile,P=s;P.append=function(E,x,g){var O;return h.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return g=g||{},g.position===void 0&&(g.position="0"),g.subres={append:"",position:g.position},g.method="POST",D.next=6,h.default.awrap(this.put(E,x,g));case 6:return O=D.sent,O.nextAppendPosition=O.res.headers["x-oss-next-append-position"],D.abrupt("return",O);case 9:case"end":return D.stop()}},null,this)},P.put=function(E,x,g){var O,I,D,N,V,F,W;return h.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:if(O=void 0,g=g||{},E=this._objectName(E),!c.buffer(x)){B.next=7;break}O=x,B.next=33;break;case 7:if(!(w(x)||v(x))){B.next=32;break}return g.mime||(v(x)?g.mime=i.getType(n.extname(x.name)):g.mime=x.type),I=this._createStream(x,0,x.size),B.next=12,h.default.awrap(this._getFileSize(x));case 12:return g.contentLength=B.sent,B.prev=13,B.next=16,h.default.awrap(this.putStream(E,I,g));case 16:return D=B.sent,B.abrupt("return",D);case 20:if(B.prev=20,B.t0=B.catch(13),!(B.t0.code==="RequestTimeTooSkewed")){B.next=29;break}return this.options.amendTimeSkewed=+new Date(B.t0.serverTime)-new Date,B.next=26,h.default.awrap(this.put(E,x,g));case 26:return B.abrupt("return",B.sent);case 29:throw B.t0;case 30:B.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return g.headers=g.headers||{},this._convertMetaToHeaders(g.meta,g.headers),N=g.method||"PUT",V=this._objectRequestParams(N,E,g),f.encodeCallback(V,g),V.mime=g.mime,V.content=O,V.successStatuses=[200],B.next=43,h.default.awrap(this.request(V));case 43:return F=B.sent,W={name:E,url:this._objectUrl(E),res:F.res},V.headers&&V.headers["x-oss-callback"]&&(W.data=JSON.parse(F.data.toString())),B.abrupt("return",W);case 47:case"end":return B.stop()}},null,this,[[13,20]])},P.putStream=function(E,x,g){var O,I,D,N;return h.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:return g=g||{},g.headers=g.headers||{},E=this._objectName(E),g.contentLength?g.headers["Content-Length"]=g.contentLength:g.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(g.meta,g.headers),O=g.method||"PUT",I=this._objectRequestParams(O,E,g),f.encodeCallback(I,g),I.mime=g.mime,I.stream=x,I.successStatuses=[200],F.next=13,h.default.awrap(this.request(I));case 13:return D=F.sent,N={name:E,url:this._objectUrl(E),res:D.res},I.headers&&I.headers["x-oss-callback"]&&(N.data=JSON.parse(D.data.toString())),F.abrupt("return",N);case 17:case"end":return F.stop()}},null,this)},o(P,M("../common/object/copyObject")),o(P,M("../common/object/getObjectTagging")),o(P,M("../common/object/putObjectTagging")),o(P,M("../common/object/deleteObjectTagging")),o(P,M("../common/image")),o(P,M("../common/object/getBucketVersions")),o(P,M("../common/object/getACL")),o(P,M("../common/object/putACL")),o(P,M("../common/object/head")),o(P,M("../common/object/delete")),o(P,M("../common/object/get")),o(P,M("../common/object/putSymlink")),o(P,M("../common/object/getSymlink")),o(P,M("../common/object/deleteMulti")),o(P,M("../common/object/getObjectMeta")),P.putMeta=function(E,x,g){var O;return h.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,h.default.awrap(this.copy(E,E,{meta:x||{},timeout:g&&g.timeout,ctx:g&&g.ctx}));case 2:return O=D.sent,D.abrupt("return",O);case 4:case"end":return D.stop()}},null,this)},P.list=function(E,x){var g,O,I,D,N;return h.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:return g=this._objectRequestParams("GET","",x),g.query=E,g.xmlResponse=!0,g.successStatuses=[200],F.next=6,h.default.awrap(this.request(g));case 6:return O=F.sent,I=O.data.Contents,D=this,I&&(Array.isArray(I)||(I=[I]),I=I.map(function(W){return{name:W.Key,url:D._objectUrl(W.Key),lastModified:W.LastModified,etag:W.ETag,type:W.Type,size:Number(W.Size),storageClass:W.StorageClass,owner:{id:W.Owner.ID,displayName:W.Owner.DisplayName}}})),N=O.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(W){return W.Prefix})),F.abrupt("return",{res:O.res,objects:I,prefixes:N,nextMarker:O.data.NextMarker||null,isTruncated:O.data.IsTruncated==="true"});case 13:case"end":return F.stop()}},null,this)},P.restore=function(E,x){var g,O;return h.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return x=x||{},x.subres=(0,S.default)({restore:""},x.subres),x.versionId&&(x.subres.versionId=x.versionId),g=this._objectRequestParams("POST",E,x),g.successStatuses=[202],D.next=7,h.default.awrap(this.request(g));case 7:return O=D.sent,D.abrupt("return",{res:O.res});case 9:case"end":return D.stop()}},null,this)},P.signatureUrl=function(E,x){x=x||{},E=this._objectName(E),x.method=x.method||"GET";var g=d.timestamp()+(x.expires||1800),O={bucket:this.options.bucket,object:E},I=this._getResource(O);this.options.stsToken&&(x["security-token"]=this.options.stsToken);var D=l._signatureForURL(this.options.accessKeySecret,x,I,g),N=t.parse(this._getReqUrl(O));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:g,Signature:D.Signature},a(D.subResource).to(N.query),N.format()},P.getObjectUrl=function(E,x){return x?x[x.length-1]!=="/"&&(x+="/"):x=this.options.endpoint.format(),x+this._escape(this._objectName(E))},P._objectUrl=function(E){return this._getReqUrl({bucket:this.options.bucket,object:E})},P.generateObjectUrl=function(R,E){if(E)E[E.length-1]!=="/"&&(E+="/");else{E=this.options.endpoint.format();var x=t.parse(E),g=this.options.bucket;x.hostname=g+"."+x.hostname,x.host=g+"."+x.host,E=x.format()}return E+this._escape(this._objectName(R))},P._objectRequestParams=function(E,x,g){if(!this.options.bucket)throw new Error("Please create a bucket first");g=g||{},x=this._objectName(x);var O={object:x,bucket:this.options.bucket,method:E,subres:g&&g.subres,timeout:g&&g.timeout,ctx:g&&g.ctx};return g.headers&&(O.headers={},a(g.headers).to(O.headers)),O},P._objectName=function(E){return E.replace(/^\/+/,"")},P._convertMetaToHeaders=function(E,x){if(!E)return;(0,b.default)(E).forEach(function(g){x["x-oss-meta-"+g]=E[g]})},P._deleteFileSafe=function(E){var x=this;return new p.default(function(g){r.exists(E,function(O){O?r.unlink(E,function(I){I&&x.debug("unlink %j error: %s",E,I,"error"),g()}):g()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(M,Y,s){"use strict";s.version="6.10.0"},{}],6:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(T){return T&&T.__esModule?T:{default:T}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,S=s;S.deleteBucketLifecycle=function(h,_){var d,r;return p.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return y(h),d=this._bucketRequestParams("DELETE",h,"lifecycle",_),d.successStatuses=[204],t.next=5,p.default.awrap(this.request(d));case 5:return r=t.sent,t.abrupt("return",{res:r.res});case 7:case"end":return t.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(T){return T&&T.__esModule?T:{default:T}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,S=s;S.deleteBucketWebsite=function(h,_){var d,r;return p.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return y(h),d=this._bucketRequestParams("DELETE",h,"website",_),d.successStatuses=[204],t.next=5,p.default.awrap(this.request(d));case 5:return r=t.sent,t.abrupt("return",{res:r.res});case 7:case"end":return t.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(r){return r&&r.__esModule?r:{default:r}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,S=M("../utils/isArray"),T=S.isArray,h=M("../utils/formatObjKey"),_=h.formatObjKey,d=s;d.getBucketLifecycle=function(c,t){var a,n,i;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return y(c),a=this._bucketRequestParams("GET",c,"lifecycle",t),a.successStatuses=[200],a.xmlResponse=!0,l.next=6,p.default.awrap(this.request(a));case 6:return n=l.sent,i=n.data.Rule||null,i&&(T(i)||(i=[i]),i=i.map(function(o){return o.ID&&(o.id=o.ID,delete o.ID),o.Tag&&!T(o.Tag)&&(o.Tag=[o.Tag]),_(o,"firstLowerCase")})),l.abrupt("return",{rules:i,res:n.res});case 10:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(T){return T&&T.__esModule?T:{default:T}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,S=s;S.getBucketVersioning=function(h,_){var d,r,c;return p.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return y(h),d=this._bucketRequestParams("GET",h,"versioning",_),d.xmlResponse=!0,d.successStatuses=[200],a.next=6,p.default.awrap(this.request(d));case 6:return r=a.sent,c=r.data.Status,a.abrupt("return",{status:r.status,versionStatus:c,res:r.res});case 9:case"end":return a.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(_){return _&&_.__esModule?_:{default:_}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,S=M("../utils/isObject"),T=S.isObject,h=s;h.getBucketWebsite=function(d,r){var c,t,a;return p.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return y(d),c=this._bucketRequestParams("GET",d,"website",r),c.successStatuses=[200],c.xmlResponse=!0,i.next=6,p.default.awrap(this.request(c));case 6:return t=i.sent,a=[],t.data.RoutingRules&&t.data.RoutingRules.RoutingRule&&(T(t.data.RoutingRules.RoutingRule)?a=[t.data.RoutingRules.RoutingRule]:a=t.data.RoutingRules.RoutingRule),i.abrupt("return",{index:t.data.IndexDocument&&t.data.IndexDocument.Suffix||"",supportSubDir:t.data.IndexDocument&&t.data.IndexDocument.SupportSubDir||"false",type:t.data.IndexDocument&&t.data.IndexDocument.Type,routingRules:a,error:t.data.ErrorDocument&&t.data.ErrorDocument.Key||null,res:t.res});case 10:case"end":return i.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(v){return v&&v.__esModule?v:{default:v}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,S=M("../utils/isArray"),T=S.isArray,h=M("../utils/deepCopy"),_=h.deepCopy,d=M("../utils/isObject"),r=d.isObject,c=M("../utils/obj2xml"),t=c.obj2xml,a=M("../utils/checkObjectTag"),n=a.checkObjectTag,i=M("../utils/getStrBytesCount"),f=i.getStrBytesCount,l=s;l.putBucketLifecycle=function(P,R,E){var x,g,O,I,D;return p.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(y(P),T(R)){V.next=3;break}throw new Error("rules must be Array");case 3:return x=this._bucketRequestParams("PUT",P,"lifecycle",E),g=[],O={LifecycleConfiguration:{Rule:g}},R.forEach(function(F){o(F),C(F),F.id&&(F.ID=F.id,delete F.id),g.push(F)}),I=t(O,{headers:!0,firstUpperCase:!0}),x.content=I,x.mime="xml",x.successStatuses=[200],V.next=13,p.default.awrap(this.request(x));case 13:return D=V.sent,V.abrupt("return",{res:D.res});case 15:case"end":return V.stop()}},null,this)};function o(v){v.days&&(v.expiration={days:v.days}),v.date&&(v.expiration={createdBeforeDate:v.date})}function m(v,P){var R=v.days,E=v.createdBeforeDate;if(!R&&!E)throw new Error(P+" must includes days or createdBeforeDate");if(R&&!/^[1-9][0-9]*$/.test(R))throw new Error("days must be a positive integer");if(E&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(E))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function w(v){if(!T(v)&&!r(v))throw new Error("tag must be Object or Array");v=r(v)?[v]:v;var P={},R=_(v);R.forEach(function(E){P[E.key]=E.value}),n(P)}function C(v){if(v.id&&f(v.id)>255)throw new Error("ID is composed of 255 bytes at most");if(v.prefix===""||v.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(v.status))throw new Error("Status must be Enabled or Disabled");if(v.transition){if(!["IA","Archive"].includes(v.transition.storageClass))throw new Error("StorageClass must be IA or Archive");m(v.transition,"Transition")}if(v.expiration){if(!v.expiration.expiredObjectDeleteMarker)m(v.expiration,"Expiration");else if(v.expiration.days||v.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(v.abortMultipartUpload&&m(v.abortMultipartUpload,"AbortMultipartUpload"),!v.expiration&&!v.abortMultipartUpload&&!v.transition&&!v.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(v.tag){if(v.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");w(v.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(_){return _&&_.__esModule?_:{default:_}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,S=M("../utils/obj2xml"),T=S.obj2xml,h=s;h.putBucketVersioning=function(d,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t,a,n;return p.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:if(y(d),["Enabled","Suspended"].includes(r)){f.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return t=this._bucketRequestParams("PUT",d,"versioning",c),a={VersioningConfiguration:{Status:r}},t.mime="xml",t.content=T(a,{headers:!0}),f.next=9,p.default.awrap(this.request(t));case 9:return n=f.sent,f.abrupt("return",{res:n.res,status:n.status});case 11:case"end":return f.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(r){return r&&r.__esModule?r:{default:r}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,S=M("../utils/obj2xml"),T=S.obj2xml,h=M("../utils/isArray"),_=h.isArray,d=s;d.putBucketWebsite=function(c){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments[2],n,i,f,l,o;return p.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(y(c),n=this._bucketRequestParams("PUT",c,"website",a),i={Suffix:t.index||"index.html"},f={IndexDocument:i},l={WebsiteConfiguration:f},t.supportSubDir&&(i.SupportSubDir=t.supportSubDir),t.type&&(i.Type=t.type),t.error&&(f.ErrorDocument={Key:t.error}),!(t.routingRules!==void 0)){w.next=12;break}if(_(t.routingRules)){w.next=11;break}throw new Error("RoutingRules must be Array");case 11:f.RoutingRules={RoutingRule:t.routingRules};case 12:return l=T(l),n.content=l,n.mime="xml",n.successStatuses=[200],w.next=18,p.default.awrap(this.request(n));case 18:return o=w.sent,w.abrupt("return",{res:o.res});case 20:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(M,Y,s){(function(L){"use strict";var p=M("babel-runtime/core-js/object/keys"),A=S(p),b=M("babel-runtime/core-js/json/stringify"),y=S(b);function S(T){return T&&T.__esModule?T:{default:T}}s.encodeCallback=function(h,_){if(h.headers=h.headers||{},!Object.prototype.hasOwnProperty.call(h.headers,"x-oss-callback")&&_.callback){var d={callbackUrl:encodeURI(_.callback.url),callbackBody:_.callback.body};_.callback.host&&(d.callbackHost=_.callback.host),_.callback.contentType&&(d.callbackBodyType=_.callback.contentType);var r=L.from((0,y.default)(d)).toString("base64");if(h.headers["x-oss-callback"]=r,_.callback.customValue){var c={};(0,A.default)(_.callback.customValue).forEach(function(t){c["x:"+t]=_.callback.customValue[t]}),h.headers["x-oss-callback-var"]=L.from((0,y.default)(c)).toString("base64")}}}}).call(this,M("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/assign"),p=A(L);function A(d){return d&&d.__esModule?d:{default:d}}var b=M("humanize-ms"),y=M("url"),S=M("../utils/checkBucketName"),T=S.checkBucketName;function h(d,r){var c=y.parse(d);if(c.protocol||(c=y.parse("http"+(r?"s":"")+"://"+d)),c.protocol!=="http:"&&c.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return c}function _(d,r,c){var t=c?"https://":"http://",a=r?"-internal.aliyuncs.com":".aliyuncs.com",n="vpc100-oss-cn-";return d.substr(0,n.length)===n&&(a=".aliyuncs.com"),y.parse(t+d+a)}Y.exports=function(d){if(!d||!d.accessKeyId||!d.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");d.bucket&&T(d.bucket);var r=(0,p.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},d);if(r.accessKeyId=r.accessKeyId.trim(),r.accessKeySecret=r.accessKeySecret.trim(),r.timeout&&(r.timeout=b(r.timeout)),r.endpoint)r.endpoint=h(r.endpoint,r.secure);else if(r.region)r.endpoint=_(r.region,r.internal,r.secure);else throw new Error("require options.endpoint or options.region");return r.inited=!0,r}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(M,Y,s){"use strict";var L=M("merge-descriptors"),p=s;L(p,M("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(r){return r&&r.__esModule?r:{default:r}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,S=M("querystring"),T=M("js-base64"),h=T.Base64.encode,_=s;_.processObjectSave=function(c,t,a,n){var i,f,l,o;return p.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return d(c,"sourceObject"),d(t,"targetObject"),d(a,"process"),t=this._objectName(t),n&&y(n),i=this._objectRequestParams("POST",c,{subres:"x-oss-process"}),f=n?",b_"+h(n):"",t=h(t),l={"x-oss-process":a+"|sys/saveas,o_"+t+f},i.content=S.stringify(l),w.next=12,p.default.awrap(this.request(i));case 12:return o=w.sent,w.abrupt("return",{res:o.res,status:o.res.status});case 14:case"end":return w.stop()}},null,this)};function d(r,c){if(!r)throw new Error(c+" is required");if(typeof r!="string")throw new Error(c+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=A(L);function A(_){return _&&_.__esModule?_:{default:_}}var b=M("copy-to"),y=M("./callback"),S=M("./utils/deepCopy"),T=S.deepCopy,h=s;h.listUploads=function(d,r){var c,t,a,n;return p.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return r=r||{},c={},b(r).to(c),c.subres="uploads",t=this._objectRequestParams("GET","",c),t.query=d,t.xmlResponse=!0,t.successStatuses=[200],f.next=10,p.default.awrap(this.request(t));case 10:return a=f.sent,n=a.data.Upload||[],Array.isArray(n)||(n=[n]),n=n.map(function(l){return{name:l.Key,uploadId:l.UploadId,initiated:l.Initiated}}),f.abrupt("return",{res:a.res,uploads:n,bucket:a.data.Bucket,nextKeyMarker:a.data.NextKeyMarker,nextUploadIdMarker:a.data.NextUploadIdMarker,isTruncated:a.data.IsTruncated==="true"});case 15:case"end":return f.stop()}},null,this)},h.listParts=function(d,r,c,t){var a,n,i;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return t=t||{},a={},b(t).to(a),a.subres={uploadId:r},n=this._objectRequestParams("GET",d,a),n.query=c,n.xmlResponse=!0,n.successStatuses=[200],l.next=10,p.default.awrap(this.request(n));case 10:return i=l.sent,l.abrupt("return",{res:i.res,uploadId:i.data.UploadId,bucket:i.data.Bucket,name:i.data.Key,partNumberMarker:i.data.PartNumberMarker,nextPartNumberMarker:i.data.NextPartNumberMarker,maxParts:i.data.MaxParts,isTruncated:i.data.IsTruncated,parts:i.data.Part||[]});case 12:case"end":return l.stop()}},null,this)},h.abortMultipartUpload=function(d,r,c){var t,a,n;return p.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return this._stop(),c=c||{},t={},b(c).to(t),t.subres={uploadId:r},a=this._objectRequestParams("DELETE",d,t),a.successStatuses=[204],f.next=9,p.default.awrap(this.request(a));case 9:return n=f.sent,f.abrupt("return",{res:n.res});case 11:case"end":return f.stop()}},null,this)},h.initMultipartUpload=function(d,r){var c,t,a;return p.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=r||{},c={},b(r).to(c),c.headers=c.headers||{},this._convertMetaToHeaders(r.meta,c.headers),c.subres="uploads",t=this._objectRequestParams("POST",d,c),t.mime=r.mime,t.xmlResponse=!0,t.successStatuses=[200],i.next=12,p.default.awrap(this.request(t));case 12:return a=i.sent,i.abrupt("return",{res:a.res,bucket:a.data.Bucket,name:a.data.Key,uploadId:a.data.UploadId});case 14:case"end":return i.stop()}},null,this)},h.uploadPart=function(d,r,c,t,a,n,i){var f;return p.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return f={stream:this._createStream(t,a,n),size:n-a},o.next=3,p.default.awrap(this._uploadPart(d,r,c,f,i));case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}},null,this)},h.completeMultipartUpload=function(d,r,c,t){var a,n,i,f,l,o,m,w;return p.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:for(a=c.concat().sort(function(P,R){return P.number-R.number}).filter(function(P,R,E){return!R||P.number!==E[R-1].number}),n=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,i=0;i<a.length;i++)f=a[i],n+=`<Part>
`,n+="<PartNumber>"+f.number+`</PartNumber>
`,n+="<ETag>"+f.etag+`</ETag>
`,n+=`</Part>
`;return n+="</CompleteMultipartUpload>",t=t||{},l={},l=T(t),l.headers&&delete l.headers["x-oss-server-side-encryption"],l.subres={uploadId:r},o=this._objectRequestParams("POST",d,l),y.encodeCallback(o,l),o.mime="xml",o.content=n,o.headers&&o.headers["x-oss-callback"]||(o.xmlResponse=!0),o.successStatuses=[200],v.next=17,p.default.awrap(this.request(o));case 17:return m=v.sent,w={res:m.res,bucket:o.bucket,name:d,etag:m.res.headers.etag},o.headers&&o.headers["x-oss-callback"]&&(w.data=JSON.parse(m.data.toString())),v.abrupt("return",w);case 21:case"end":return v.stop()}},null,this)},h._uploadPart=function(d,r,c,t,a){var n,i,f;return p.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return a=a||{},n={},b(a).to(n),n.headers={"Content-Length":t.size},n.subres={partNumber:c,uploadId:r},i=this._objectRequestParams("PUT",d,n),i.mime=n.mime,i.stream=t.stream,i.successStatuses=[200],o.next=11,p.default.awrap(this.request(i));case 11:if(f=o.sent,f.res.headers.etag){o.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 14:return t.stream=null,i.stream=null,o.abrupt("return",{name:d,etag:f.res.headers.etag,res:f.res});case 17:case"end":return o.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=T(L),A=M("babel-runtime/core-js/object/keys"),b=T(A),y=M("babel-runtime/helpers/typeof"),S=T(y);function T(r){return r&&r.__esModule?r:{default:r}}var h=M("../utils/checkBucketName"),_=h.checkBucketName,d=s;d.copy=function(c,t,a,n){var i,f,l;return p.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return(typeof a=="undefined"?"undefined":(0,S.default)(a))==="object"&&(n=a),n=n||{},n.headers=n.headers||{},(0,b.default)(n.headers).forEach(function(w){n.headers["x-oss-copy-source-"+w.toLowerCase()]=n.headers[w]}),n.meta&&(n.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(n.meta,n.headers),t=this._getSourceName(t,a),n.versionId&&(t=t+"?versionId="+n.versionId),n.headers["x-oss-copy-source"]=t,i=this._objectRequestParams("PUT",c,n),i.xmlResponse=!0,i.successStatuses=[200,304],m.next=14,p.default.awrap(this.request(i));case 14:return f=m.sent,l=f.data,l&&(l={etag:l.ETag,lastModified:l.LastModified}),m.abrupt("return",{data:l,res:f.res});case 18:case"end":return m.stop()}},null,this)},d._getSourceName=function(c,t){return typeof t=="string"?c=this._objectName(c):c[0]!=="/"?t=this.options.bucket:(t=c.replace(/\/(.+?)(\/.*)/,"$1"),c=c.replace(/(\/.+?\/)(.*)/,"$2")),_(t),c=encodeURI(c),c="/"+t+"/"+c,c}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(T){return T&&T.__esModule?T:{default:T}}var S=s;S.delete=function(h){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,r;return p.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return _.subres=(0,b.default)({},_.subres),_.versionId&&(_.subres.versionId=_.versionId),d=this._objectRequestParams("DELETE",h,_),d.successStatuses=[204],t.next=6,p.default.awrap(this.request(d));case 6:return r=t.sent,t.abrupt("return",{res:r.res});case 8:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(d){return d&&d.__esModule?d:{default:d}}var S=M("utility"),T=M("../utils/obj2xml"),h=T.obj2xml,_=s;_.deleteMulti=function(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t,a,n,i,f,l,o,m,w,C,v,P;return p.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:if(t=[],!(!r||!r.length)){E.next=3;break}throw new Error("names is required");case 3:for(a=0;a<r.length;a++)n={},typeof r[a]=="string"?n.Key=S.escape(this._objectName(r[a])):(i=r[a],f=i.key,l=i.versionId,n.Key=S.escape(this._objectName(f)),n.VersionId=l),t.push(n);return o={Delete:{Quiet:!!c.quiet,Object:t}},m=h(o,{headers:!0}),c.subres=(0,b.default)({delete:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),w=this._objectRequestParams("POST","",c),w.mime="xml",w.content=m,w.xmlResponse=!0,w.successStatuses=[200],E.next=15,p.default.awrap(this.request(w));case 15:return C=E.sent,v=C.data,P=v&&v.Deleted||null,P&&(Array.isArray(P)||(P=[P])),E.abrupt("return",{res:C.res,deleted:P||[]});case 20:case"end":return E.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(T){return T&&T.__esModule?T:{default:T}}var S=s;S.deleteObjectTagging=function(h){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,r;return p.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return _.subres=(0,b.default)({tagging:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),h=this._objectName(h),d=this._objectRequestParams("DELETE",h,_),d.successStatuses=[204],t.next=7,p.default.awrap(this.request(d));case 7:return r=t.sent,t.abrupt("return",{status:r.status,res:r.res});case 9:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(_){return _&&_.__esModule?_:{default:_}}var S=M("fs"),T=M("is-type-of"),h=s;h.get=function(d,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t,a,n,i;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return t=null,a=!1,T.writableStream(r)?t=r:T.string(r)?(t=S.createWriteStream(r),a=!0):c=r,c=c||{},c.subres=(0,b.default)({},c.subres),c.versionId&&(c.subres.versionId=c.versionId),c.process&&(c.subres["x-oss-process"]=c.process),n=void 0,l.prev=8,i=this._objectRequestParams("GET",d,c),i.writeStream=t,i.successStatuses=[200,206,304],l.next=14,p.default.awrap(this.request(i));case 14:n=l.sent,a&&t.destroy(),l.next=25;break;case 18:if(l.prev=18,l.t0=l.catch(8),!a){l.next=24;break}return t.destroy(),l.next=24,p.default.awrap(this._deleteFileSafe(r));case 24:throw l.t0;case 25:return l.abrupt("return",{res:n.res,content:n.data});case 26:case"end":return l.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(T){return T&&T.__esModule?T:{default:T}}var S=s;S.getACL=function(h){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,r;return p.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return _.subres=(0,b.default)({acl:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),h=this._objectName(h),d=this._objectRequestParams("GET",h,_),d.successStatuses=[200],d.xmlResponse=!0,t.next=8,p.default.awrap(this.request(d));case 8:return r=t.sent,t.abrupt("return",{acl:r.data.AccessControlList.Grant,owner:{id:r.data.Owner.ID,displayName:r.data.Owner.DisplayName},res:r.res});case 10:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/keys"),p=T(L),A=M("babel-runtime/regenerator"),b=T(A),y=M("babel-runtime/core-js/object/assign"),S=T(y);function T(i){return i&&i.__esModule?i:{default:i}}var h=s,_=M("../utils/isObject"),d=_.isObject,r=M("../utils/isArray"),c=r.isArray;h.getBucketVersions=t,h.listObjectVersions=t;function t(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,o,m,w,C,v;return b.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!(i.versionIdMarker&&i.keyMarker===void 0)){R.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return f.subres=(0,S.default)({versions:""},f.subres),f.versionId&&(f.subres.versionId=f.versionId),l=this._objectRequestParams("GET","",f),l.xmlResponse=!0,l.successStatuses=[200],l.query=n(i),R.next=10,b.default.awrap(this.request(l));case 10:return o=R.sent,m=o.data.Version||[],w=o.data.DeleteMarker||[],C=this,m&&(Array.isArray(m)||(m=[m]),m=m.map(function(E){return{name:E.Key,url:C._objectUrl(E.Key),lastModified:E.LastModified,isLatest:E.IsLatest==="true",versionId:E.VersionId,etag:E.ETag,type:E.Type,size:Number(E.Size),storageClass:E.StorageClass,owner:{id:E.Owner.ID,displayName:E.Owner.DisplayName}}})),w&&(c(w)||(w=[w]),w=w.map(function(E){return{name:E.Key,lastModified:E.LastModified,versionId:E.VersionId,owner:{id:E.Owner.ID,displayName:E.Owner.DisplayName}}})),v=o.data.CommonPrefixes||null,v&&(c(v)||(v=[v]),v=v.map(function(E){return E.Prefix})),R.abrupt("return",{res:o.res,objects:m,deleteMarker:w,prefixes:v,nextMarker:o.data.NextMarker||null,NextVersionIdMarker:o.data.NextVersionIdMarker||null,isTruncated:o.data.IsTruncated==="true"});case 19:case"end":return R.stop()}},null,this)}function a(i){return i.replace(/([A-Z])/g,"-$1").toLowerCase()}function n(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f={};return d(i)&&(0,p.default)(i).forEach(function(l){f[a(l)]=i[l]}),f}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(T){return T&&T.__esModule?T:{default:T}}var S=s;S.getObjectMeta=function(h,_){var d,r;return p.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return _=_||{},h=this._objectName(h),_.subres=(0,b.default)({objectMeta:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),d=this._objectRequestParams("HEAD",h,_),d.successStatuses=[200],t.next=8,p.default.awrap(this.request(d));case 8:return r=t.sent,t.abrupt("return",{status:r.status,res:r.res});case 10:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(_){return _&&_.__esModule?_:{default:_}}var S=s,T=M("../utils/isObject"),h=T.isObject;S.getObjectTagging=function(d){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,t,a,n,i;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return r.subres=(0,b.default)({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),d=this._objectName(d),c=this._objectRequestParams("GET",d,r),c.successStatuses=[200],l.next=7,p.default.awrap(this.request(c));case 7:return t=l.sent,l.next=10,p.default.awrap(this.parseXML(t.data));case 10:return a=l.sent,n=a.TagSet.Tag,n=n&&h(n)?[n]:n||[],i={},n.forEach(function(o){i[o.Key]=o.Value}),l.abrupt("return",{status:t.status,res:t.res,tag:i});case 16:case"end":return l.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(T){return T&&T.__esModule?T:{default:T}}var S=s;S.getSymlink=function(h){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,r,c;return p.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return _.subres=(0,b.default)({symlink:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),h=this._objectName(h),d=this._objectRequestParams("GET",h,_),d.successStatuses=[200],a.next=7,p.default.awrap(this.request(d));case 7:return r=a.sent,c=r.res.headers["x-oss-symlink-target"],a.abrupt("return",{targetName:decodeURIComponent(c),res:r.res});case 10:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=T(L),A=M("babel-runtime/core-js/object/keys"),b=T(A),y=M("babel-runtime/core-js/object/assign"),S=T(y);function T(_){return _&&_.__esModule?_:{default:_}}var h=s;h.head=function(d){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,t,a;return p.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return r.subres=(0,S.default)({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),c=this._objectRequestParams("HEAD",d,r),c.successStatuses=[200,304],i.next=6,p.default.awrap(this.request(c));case 6:return t=i.sent,a={meta:null,res:t.res,status:t.status},t.status===200&&(0,b.default)(t.headers).forEach(function(f){f.indexOf("x-oss-meta-")===0&&(a.meta||(a.meta={}),a.meta[f.substring(11)]=t.headers[f])}),i.abrupt("return",a);case 10:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(T){return T&&T.__esModule?T:{default:T}}var S=s;S.putACL=function(h,_,d){var r,c;return p.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return d=d||{},d.subres=(0,b.default)({acl:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),d.headers=d.headers||{},d.headers["x-oss-object-acl"]=_,h=this._objectName(h),r=this._objectRequestParams("PUT",h,d),r.successStatuses=[200],a.next=10,p.default.awrap(this.request(r));case 10:return c=a.sent,a.abrupt("return",{res:c.res});case 12:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=T(L),A=M("babel-runtime/core-js/object/keys"),b=T(A),y=M("babel-runtime/core-js/object/assign"),S=T(y);function T(t){return t&&t.__esModule?t:{default:t}}var h=M("../utils/obj2xml"),_=h.obj2xml,d=M("../utils/checkObjectTag"),r=d.checkObjectTag,c=s;c.putObjectTagging=function(a,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f,l,o;return p.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return r(n),i.subres=(0,S.default)({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),a=this._objectName(a),f=this._objectRequestParams("PUT",a,i),f.successStatuses=[200],n=(0,b.default)(n).map(function(C){return{Key:C,Value:n[C]}}),l={Tagging:{TagSet:{Tag:n}}},f.mime="xml",f.content=_(l),w.next=12,p.default.awrap(this.request(f));case 12:return o=w.sent,w.abrupt("return",{res:o.res,status:o.status});case 14:case"end":return w.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(T){return T&&T.__esModule?T:{default:T}}var S=s;S.putSymlink=function(h,_,d){var r,c;return p.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return d=d||{},d.headers=d.headers||{},_=this._escape(this._objectName(_)),this._convertMetaToHeaders(d.meta,d.headers),d.headers["x-oss-symlink-target"]=_,d.subres=(0,b.default)({symlink:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),d.storageClass&&(d.headers["x-oss-storage-class"]=d.storageClass),h=this._objectName(h),r=this._objectRequestParams("PUT",h,d),r.successStatuses=[200],a.next=13,p.default.awrap(this.request(r));case 13:return c=a.sent,a.abrupt("return",{res:c.res});case 15:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(M,Y,s){"use strict";var L=M("babel-runtime/regenerator"),p=y(L),A=M("babel-runtime/core-js/promise"),b=y(A);function y(T){return T&&T.__esModule?T:{default:T}}var S=s;S._parallelNode=function(h,_,d,r){var c,t,a,n,i,f,l,o;return p.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:c=this,t=[],a=[],n=h.length/_,i=h.length%_,f=i===0?n:(h.length-i)/_+1,l=1,o=0;case 8:if(!(o<h.length)){w.next=26;break}if(!c.isCancel()){w.next=11;break}return w.abrupt("break",26);case 11:if(r?a.push(d(c,h[o],r)):a.push(d(c,h[o])),!(a.length===_||l===f&&o===h.length-1)){w.next=23;break}return w.prev=13,l+=1,w.next=17,p.default.awrap(b.default.all(a));case 17:w.next=22;break;case 19:w.prev=19,w.t0=w.catch(13),t.push(w.t0);case 22:a=[];case 23:o++,w.next=8;break;case 26:return w.abrupt("return",t);case 27:case"end":return w.stop()}},null,this,[[13,19]])},S._parallel=function(h,_,d){var r=this;return new b.default(function(c){var t=[];if(_<=0||!h){c(t);return}function a(v){return function(){if(v===null)throw new Error("Callback was already called.");var P=v;v=null;for(var R=arguments.length,E=Array(R),x=0;x<R;x++)E[x]=arguments[x];P.apply(this,E)}}function n(v){var P=-1,R=v.length;return function(){return++P<R&&!r.isCancel()?{value:v[P],key:P}:null}}var i=n(h),f=!1,l=0,o=!1;function m(v,P){l-=1,v?(f=!0,t.push(v),c(t)):P==={}||f&&l<=0?(f=!0,c(t)):o||(r.isCancel()?c(t):C())}function w(v,P){d(v).then(function(R){P(null,R)}).catch(function(R){P(R)})}function C(){for(o=!0;l<_&&!f&&!r.isCancel();){var v=i();if(v===null||t.length>0){f=!0,l<=0&&c(t);return}l+=1,w(v.value,a(m))}o=!1}C()})},S.cancel=function(h){this.options.cancelFlag=!0,h&&this.abortMultipartUpload(h.name,h.uploadId,h.options)},S.isCancel=function(){return this.options.cancelFlag},S.resetCancelFlag=function(){this.options.cancelFlag=!1},S._stop=function(){this.options.cancelFlag=!0},S._makeCancelEvent=function(){var h={status:0,name:"cancel"};return h}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(M,Y,s){(function(L){"use strict";var p=M("babel-runtime/core-js/json/stringify"),A=S(p),b=M("babel-runtime/core-js/object/keys"),y=S(b);function S(_){return _&&_.__esModule?_:{default:_}}var T=M("./../../shims/crypto/crypto.js"),h=M("is-type-of");s.buildCanonicalizedResource=function(d,r){var c=""+d,t="?";if(h.string(r)&&r.trim()!=="")c+=t+r;else if(h.array(r))r.sort(),c+=t+r.join("&");else if(r){var a=function(f,l){return f[0]>l[0]?1:f[0]<l[0]?-1:0},n=function(f){c+=t+f,r[f]&&(c+="="+r[f]),t="&"};(0,y.default)(r).sort(a).forEach(n)}return c},s.buildCanonicalString=function(d,r,c,t){c=c||{};var a=c.headers||{},n="x-oss-",i=[],f={},l=[d.toUpperCase(),a["Content-Md5"]||"",a["Content-Type"]||a["Content-Type".toLowerCase()],t||a["x-oss-date"]];return(0,y.default)(a).forEach(function(o){var m=o.toLowerCase();m.indexOf(n)===0&&(f[m]=String(a[o]).trim())}),(0,y.default)(f).sort().forEach(function(o){i.push(o+":"+f[o])}),l=l.concat(i),l.push(this.buildCanonicalizedResource(r,c.parameters)),l.join(`
`)},s.computeSignature=function(d,r){var c=T.createHmac("sha1",d);return c.update(L.from(r,"utf8")).digest("base64")},s.authorization=function(d,r,c){return"OSS "+d+":"+this.computeSignature(r,c)},s._signatureForURL=function(d){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments[2],t=arguments[3],a={},n=r.subResource,i=n===void 0?{}:n;if(r.process){var f="x-oss-process";i[f]=r.process}if(r.trafficLimit){var l="x-oss-traffic-limit";i[l]=r.trafficLimit}if(r.response&&(0,y.default)(r.response).forEach(function(C){var v="response-"+C.toLowerCase();i[v]=r.response[C]}),(0,y.default)(r).forEach(function(C){var v=C.toLowerCase(),P=r[C];v.indexOf("x-oss-")===0?a[v]=P:(v.indexOf("content-md5")===0||v.indexOf("content-type")===0)&&(a[C]=P)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(i["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var o={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(o.callbackHost=r.callback.host),r.callback.contentType&&(o.callbackBodyType=r.callback.contentType),i.callback=L.from((0,A.default)(o)).toString("base64"),r.callback.customValue){var m={};(0,y.default)(r.callback.customValue).forEach(function(C){m["x:"+C]=r.callback.customValue[C]}),i["callback-var"]=L.from((0,A.default)(m)).toString("base64")}}var w=this.buildCanonicalString(r.method,c,{headers:a,parameters:i},t.toString());return{Signature:this.computeSignature(d,w),subResource:i}}}).call(this,M("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(M,Y,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.checkBucketName=void 0,s.checkBucketName=function(L,p){var A=p?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!A.test(L))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/entries"),p=A(L);function A(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(s,"__esModule",{value:!0}),s.checkObjectTag=void 0;var b=M("./checkValid"),y=b.checkValid,S=M("./isObject"),T=S.isObject,h=[{validator:function(c){if(typeof c!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],_={key:[].concat(h,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(h,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function d(r){if(!T(r))throw new Error("tag must be Object");var c=(0,p.default)(r);if(c.length>10)throw new Error("maximum of 10 tags for a object");var t=["key","value"];c.forEach(function(a){a.forEach(function(n,i){y(n,_[t[i]])})})}s.checkObjectTag=d},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(M,Y,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.checkValid=void 0;function L(p,A){A.forEach(function(b){if(b.validator)b.validator(p);else if(b.pattern&&!b.pattern.test(p))throw new Error(b.msg)})}s.checkValid=L},{}],38:[function(M,Y,s){(function(L){"use strict";var p=M("babel-runtime/core-js/object/assign"),A=b(p);function b(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(s,"__esModule",{value:!0}),s.createRequest=void 0;var y=M("./../../../shims/crypto/crypto.js"),S=M("debug")("ali-oss"),T=M("mime"),h=M("dateformat"),_=M("copy-to"),d=M("path");function r(a,n){return a[n]||a[n.toLowerCase()]}function c(a,n){delete a[n],delete a[n.toLowerCase()]}function t(a){var n=new Date;this.options.amendTimeSkewed&&(n=+new Date+this.options.amendTimeSkewed);var i={"x-oss-date":h(n,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(i["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,A.default)(i,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(i["x-oss-security-token"]=this.options.stsToken),_(a.headers).to(i),r(i,"Content-Type")||(a.mime&&a.mime.indexOf("/")>0?i["Content-Type"]=a.mime:i["Content-Type"]=T.getType(a.mime||d.extname(a.object||""))),r(i,"Content-Type")||c(i,"Content-Type"),a.content&&(i["Content-Md5"]=y.createHash("md5").update(L.from(a.content,"utf8")).digest("base64"),i["Content-Length"]||(i["Content-Length"]=a.content.length));var f=this._getResource(a);i.authorization=this.authorization(a.method,f,a.subres,i);var l=this._getReqUrl(a);S("request %s %s, with headers %j, !!stream: %s",a.method,l,i,!!a.stream);var o=a.timeout||this.options.timeout,m={method:a.method,content:a.content,stream:a.stream,headers:i,timeout:o,writeStream:a.writeStream,customResponse:a.customResponse,ctx:a.ctx||this.ctx};return this.agent&&(m.agent=this.agent),this.httpsAgent&&(m.httpsAgent=this.httpsAgent),{url:l,params:m}}s.createRequest=t}).call(this,M("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/keys"),p=y(L),A=M("babel-runtime/helpers/typeof"),b=y(A);function y(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(s,"__esModule",{value:!0}),s.deepCopy=void 0,s.deepCopy=function(S){if(S===null||(typeof S=="undefined"?"undefined":(0,b.default)(S))!=="object")return S;var T=Array.isArray(S)?[]:{};return(0,p.default)(S).forEach(function(h){T[h]=s.deepCopy(S[h])}),T}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/keys"),p=y(L),A=M("babel-runtime/helpers/typeof"),b=y(A);function y(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(s,"__esModule",{value:!0}),s.formatObjKey=void 0;function S(h,_){if(h===null||(typeof h=="undefined"?"undefined":(0,b.default)(h))!=="object")return h;var d=void 0;if(Array.isArray(h)){d=[];for(var r=0;r<h.length;r++)d.push(S(h[r],_))}else d={},(0,p.default)(h).forEach(function(c){d[T(c,_)]=S(h[c],_)});return d}s.formatObjKey=S;function T(h,_){return _==="firstUpperCase"?h=h.replace(/^./,function(d){return d.toUpperCase()}):_==="firstLowerCase"&&(h=h.replace(/^./,function(d){return d.toLowerCase()})),h}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(M,Y,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.getStrBytesCount=void 0;function L(p){for(var A=0,b=0;b<p.length;b++){var y=p.charAt(b);/^[\u00-\uff]$/.test(y)?A+=1:A+=2}return A}s.getStrBytesCount=L},{}],42:[function(M,Y,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.isArray=void 0,s.isArray=function(L){return Object.prototype.toString.call(L)==="[object Array]"}},{}],43:[function(M,Y,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.isBlob=void 0;function L(p){return typeof Blob!="undefined"&&p instanceof Blob}s.isBlob=L},{}],44:[function(M,Y,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.isFile=void 0,s.isFile=function(L){return typeof File!="undefined"&&L instanceof File}},{}],45:[function(M,Y,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.isIP=void 0,s.isIP=function(L){var p=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,A=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return p.test(L)||A.test(L)}},{}],46:[function(M,Y,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.isObject=void 0,s.isObject=function(L){return Object.prototype.toString.call(L)==="[object Object]"}},{}],47:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/keys"),p=A(L);function A(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(s,"__esModule",{value:!0}),s.obj2xml=void 0;var b=M("./formatObjKey");function y(T){return Object.prototype.toString.call(T).replace(/(.*? |])/g,"").toLowerCase()}function S(T,h){var _="";return h&&h.headers&&(_=`<?xml version="1.0" encoding="UTF-8"?>
`),h&&h.firstUpperCase&&(T=b.formatObjKey(T,"firstUpperCase")),y(T)==="object"?(0,p.default)(T).forEach(function(d){y(T[d])==="string"||y(T[d])==="number"?_+="<"+d+">"+T[d]+"</"+d+">":y(T[d])==="object"?_+="<"+d+">"+S(T[d])+"</"+d+">":y(T[d])==="array"?_+=T[d].map(function(r){return"<"+d+">"+S(r)+"</"+d+">"}).join(""):_+="<"+d+">"+T[d].toString()+"</"+d+">"}):_+=T.toString(),_}s.obj2xml=S},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(M,Y,s){Y.exports=L,Y.exports.HttpsAgent=L;function L(){}},{}],49:[function(M,Y,s){Y.exports=M("./register")().Promise},{"./register":51}],50:[function(M,Y,s){"use strict";var L="@@any-promise/REGISTRATION",p=null;Y.exports=function(A,b){return function(S,T){S=S||null,T=T||{};var h=T.global!==!1;if(p===null&&h&&(p=A[L]||null),p!==null&&S!==null&&p.implementation!==S)throw new Error('any-promise already defined as "'+p.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return p===null&&(S!==null&&typeof T.Promise!="undefined"?p={Promise:T.Promise,implementation:S}:p=b(S),h&&(A[L]=p)),p}}},{}],51:[function(M,Y,s){"use strict";Y.exports=M("./loader")(window,L);function L(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(M,Y,s){Y.exports={default:M("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(M,Y,s){"use strict";s.__esModule=!0;var L=M("../core-js/symbol/iterator"),p=S(L),A=M("../core-js/symbol"),b=S(A),y=typeof b.default=="function"&&typeof p.default=="symbol"?function(T){return typeof T}:function(T){return T&&typeof b.default=="function"&&T.constructor===b.default&&T!==b.default.prototype?"symbol":typeof T};function S(T){return T&&T.__esModule?T:{default:T}}s.default=typeof b.default=="function"&&y(p.default)==="symbol"?function(T){return typeof T=="undefined"?"undefined":y(T)}:function(T){return T&&typeof b.default=="function"&&T.constructor===b.default&&T!==b.default.prototype?"symbol":typeof T=="undefined"?"undefined":y(T)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(M,Y,s){Y.exports=M("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(M,Y,s){"use strict";s.byteLength=h,s.toByteArray=d,s.fromByteArray=t;for(var L=[],p=[],A=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,S=b.length;y<S;++y)L[y]=b[y],p[b.charCodeAt(y)]=y;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;function T(a){var n=a.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=a.indexOf("=");i===-1&&(i=n);var f=i===n?0:4-i%4;return[i,f]}function h(a){var n=T(a),i=n[0],f=n[1];return(i+f)*3/4-f}function _(a,n,i){return(n+i)*3/4-i}function d(a){var n,i=T(a),f=i[0],l=i[1],o=new A(_(a,f,l)),m=0,w=l>0?f-4:f,C;for(C=0;C<w;C+=4)n=p[a.charCodeAt(C)]<<18|p[a.charCodeAt(C+1)]<<12|p[a.charCodeAt(C+2)]<<6|p[a.charCodeAt(C+3)],o[m++]=n>>16&255,o[m++]=n>>8&255,o[m++]=n&255;return l===2&&(n=p[a.charCodeAt(C)]<<2|p[a.charCodeAt(C+1)]>>4,o[m++]=n&255),l===1&&(n=p[a.charCodeAt(C)]<<10|p[a.charCodeAt(C+1)]<<4|p[a.charCodeAt(C+2)]>>2,o[m++]=n>>8&255,o[m++]=n&255),o}function r(a){return L[a>>18&63]+L[a>>12&63]+L[a>>6&63]+L[a&63]}function c(a,n,i){for(var f,l=[],o=n;o<i;o+=3)f=(a[o]<<16&16711680)+(a[o+1]<<8&65280)+(a[o+2]&255),l.push(r(f));return l.join("")}function t(a){for(var n,i=a.length,f=i%3,l=[],o=16383,m=0,w=i-f;m<w;m+=o)l.push(c(a,m,m+o>w?w:m+o));return f===1?(n=a[i-1],l.push(L[n>>2]+L[n<<4&63]+"==")):f===2&&(n=(a[i-2]<<8)+a[i-1],l.push(L[n>>10]+L[n>>4&63]+L[n<<2&63]+"=")),l.join("")}},{}],70:[function(M,Y,s){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(L,p,A){typeof Y!="undefined"&&Y.exports?Y.exports=A():typeof define=="function"&&define.amd?define(p,A):L[p]=A()}(this,"bowser",function(){var L=!0;function p(_){function d(K){var B=_.match(K);return B&&B.length>1&&B[1]||""}function r(K){var B=_.match(K);return B&&B.length>1&&B[2]||""}var c=d(/(ipod|iphone|ipad)/i).toLowerCase(),t=/like android/i.test(_),a=!t&&/android/i.test(_),n=/nexus\s*[0-6]\s*/i.test(_),i=!n&&/nexus\s*[0-9]+/i.test(_),f=/CrOS/.test(_),l=/silk/i.test(_),o=/sailfish/i.test(_),m=/tizen/i.test(_),w=/(web|hpw)(o|0)s/i.test(_),C=/windows phone/i.test(_),v=/SamsungBrowser/i.test(_),P=!C&&/windows/i.test(_),R=!c&&!l&&/macintosh/i.test(_),E=!a&&!o&&!m&&!w&&/linux/i.test(_),x=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),g=d(/version\/(\d+(\.\d+)?)/i),O=/tablet/i.test(_)&&!/tablet pc/i.test(_),I=!O&&/[^-]mobi/i.test(_),D=/xbox/i.test(_),N;/opera/i.test(_)?N={name:"Opera",opera:L,version:g||d(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(_)?N={name:"Opera",opera:L,version:d(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||g}:/SamsungBrowser/i.test(_)?N={name:"Samsung Internet for Android",samsungBrowser:L,version:g||d(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(_)?N={name:"NAVER Whale browser",whale:L,version:d(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(_)?N={name:"MZ Browser",mzbrowser:L,version:d(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(_)?N={name:"Opera Coast",coast:L,version:g||d(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(_)?N={name:"Focus",focus:L,version:d(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(_)?N={name:"Yandex Browser",yandexbrowser:L,version:g||d(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(_)?N={name:"UC Browser",ucbrowser:L,version:d(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(_)?N={name:"Maxthon",maxthon:L,version:d(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(_)?N={name:"Epiphany",epiphany:L,version:d(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(_)?N={name:"Puffin",puffin:L,version:d(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(_)?N={name:"Sleipnir",sleipnir:L,version:d(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(_)?N={name:"K-Meleon",kMeleon:L,version:d(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:C?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:L},x?(N.msedge=L,N.version=x):(N.msie=L,N.version=d(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(_)?N={name:"Internet Explorer",msie:L,version:d(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:f?N={name:"Chrome",osname:"Chrome OS",chromeos:L,chromeBook:L,chrome:L,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(_)?N={name:"Microsoft Edge",msedge:L,version:x}:/vivaldi/i.test(_)?N={name:"Vivaldi",vivaldi:L,version:d(/vivaldi\/(\d+(\.\d+)?)/i)||g}:o?N={name:"Sailfish",osname:"Sailfish OS",sailfish:L,version:d(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(_)?N={name:"SeaMonkey",seamonkey:L,version:d(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(_)?(N={name:"Firefox",firefox:L,version:d(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(_)&&(N.firefoxos=L,N.osname="Firefox OS")):l?N={name:"Amazon Silk",silk:L,version:d(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(_)?N={name:"PhantomJS",phantom:L,version:d(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(_)?N={name:"SlimerJS",slimer:L,version:d(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(_)||/rim\stablet/i.test(_)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:L,version:g||d(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:w?(N={name:"WebOS",osname:"WebOS",webos:L,version:g||d(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(_)&&(N.touchpad=L)):/bada/i.test(_)?N={name:"Bada",osname:"Bada",bada:L,version:d(/dolfin\/(\d+(\.\d+)?)/i)}:m?N={name:"Tizen",osname:"Tizen",tizen:L,version:d(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||g}:/qupzilla/i.test(_)?N={name:"QupZilla",qupzilla:L,version:d(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||g}:/chromium/i.test(_)?N={name:"Chromium",chromium:L,version:d(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||g}:/chrome|crios|crmo/i.test(_)?N={name:"Chrome",chrome:L,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?N={name:"Android",version:g}:/safari|applewebkit/i.test(_)?(N={name:"Safari",safari:L},g&&(N.version=g)):c?(N={name:c=="iphone"?"iPhone":c=="ipad"?"iPad":"iPod"},g&&(N.version=g)):/googlebot/i.test(_)?N={name:"Googlebot",googlebot:L,version:d(/googlebot\/(\d+(\.\d+))/i)||g}:N={name:d(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(_)?(/(apple)?webkit\/537\.36/i.test(_)?(N.name=N.name||"Blink",N.blink=L):(N.name=N.name||"Webkit",N.webkit=L),!N.version&&g&&(N.version=g)):!N.opera&&/gecko\//i.test(_)&&(N.name=N.name||"Gecko",N.gecko=L,N.version=N.version||d(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(a||N.silk)?(N.android=L,N.osname="Android"):!N.windowsphone&&c?(N[c]=L,N.ios=L,N.osname="iOS"):R?(N.mac=L,N.osname="macOS"):D?(N.xbox=L,N.osname="Xbox"):P?(N.windows=L,N.osname="Windows"):E&&(N.linux=L,N.osname="Linux");function V(K){switch(K){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var F="";N.windows?F=V(d(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?F=d(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(F=d(/Mac OS X (\d+([_\.\s]\d+)*)/i),F=F.replace(/[_\s]/g,".")):c?(F=d(/os (\d+([_\s]\d+)*) like mac os x/i),F=F.replace(/[_\s]/g,".")):a?F=d(/android[ \/-](\d+(\.\d+)*)/i):N.webos?F=d(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?F=d(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?F=d(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(F=d(/tizen[\/\s](\d+(\.\d+)*)/i)),F&&(N.osversion=F);var W=!N.windows&&F.split(".")[0];return O||i||c=="ipad"||a&&(W==3||W>=4&&!I)||N.silk?N.tablet=L:(I||c=="iphone"||c=="ipod"||a||n||N.blackberry||N.webos||N.bada)&&(N.mobile=L),N.msedge||N.msie&&N.version>=10||N.yandexbrowser&&N.version>=15||N.vivaldi&&N.version>=1||N.chrome&&N.version>=20||N.samsungBrowser&&N.version>=4||N.whale&&S([N.version,"1.0"])===1||N.mzbrowser&&S([N.version,"6.0"])===1||N.focus&&S([N.version,"1.0"])===1||N.firefox&&N.version>=20||N.safari&&N.version>=6||N.opera&&N.version>=10||N.ios&&N.osversion&&N.osversion.split(".")[0]>=6||N.blackberry&&N.version>=10.1||N.chromium&&N.version>=20?N.a=L:N.msie&&N.version<10||N.chrome&&N.version<20||N.firefox&&N.version<20||N.safari&&N.version<6||N.opera&&N.version<10||N.ios&&N.osversion&&N.osversion.split(".")[0]<6||N.chromium&&N.version<20?N.c=L:N.x=L,N}var A=p(typeof navigator!="undefined"&&navigator.userAgent||"");A.test=function(_){for(var d=0;d<_.length;++d){var r=_[d];if(typeof r=="string"&&r in A)return!0}return!1};function b(_){return _.split(".").length}function y(_,d){var r=[],c;if(Array.prototype.map)return Array.prototype.map.call(_,d);for(c=0;c<_.length;c++)r.push(d(_[c]));return r}function S(_){for(var d=Math.max(b(_[0]),b(_[1])),r=y(_,function(c){var t=d-b(c);return c=c+new Array(t+1).join(".0"),y(c.split("."),function(a){return new Array(20-a.length).join("0")+a}).reverse()});--d>=0;){if(r[0][d]>r[1][d])return 1;if(r[0][d]===r[1][d]){if(d===0)return 0}else return-1}}function T(_,d,r){var c=A;typeof d=="string"&&(r=d,d=void 0),d===void 0&&(d=!1),r&&(c=p(r));var t=""+c.version;for(var a in _)if(_.hasOwnProperty(a)&&c[a]){if(typeof _[a]!="string")throw new Error("Browser version in the minVersion map should be a string: "+a+": "+String(_));return S([t,_[a]])<0}return d}function h(_,d,r){return!T(_,d,r)}return A.isUnsupportedBrowser=T,A.compareVersions=S,A.check=h,A._detect=p,A.detect=p,A})},{}],71:[function(M,Y,s){},{}],72:[function(M,Y,s){var L=M("buffer").Buffer,p=L.isEncoding||function(h){switch(h&&h.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function A(h){if(h&&!p(h))throw new Error("Unknown encoding: "+h)}var b=s.StringDecoder=function(h){this.encoding=(h||"utf8").toLowerCase().replace(/[-_]/,""),A(h);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=S;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=T;break;default:this.write=y;return}this.charBuffer=new L(6),this.charReceived=0,this.charLength=0};b.prototype.write=function(h){for(var _="";this.charLength;){var d=h.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:h.length;if(h.copy(this.charBuffer,this.charReceived,0,d),this.charReceived+=d,this.charReceived<this.charLength)return"";h=h.slice(d,h.length),_=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var c=_.charCodeAt(_.length-1);if(c>=55296&&c<=56319){this.charLength+=this.surrogateSize,_="";continue}if(this.charReceived=this.charLength=0,h.length===0)return _;break}this.detectIncompleteChar(h);var r=h.length;this.charLength&&(h.copy(this.charBuffer,0,h.length-this.charReceived,r),r-=this.charReceived),_+=h.toString(this.encoding,0,r);var r=_.length-1,c=_.charCodeAt(r);if(c>=55296&&c<=56319){var t=this.surrogateSize;return this.charLength+=t,this.charReceived+=t,this.charBuffer.copy(this.charBuffer,t,0,t),h.copy(this.charBuffer,0,0,t),_.substring(0,r)}return _},b.prototype.detectIncompleteChar=function(h){for(var _=h.length>=3?3:h.length;_>0;_--){var d=h[h.length-_];if(_==1&&d>>5==6){this.charLength=2;break}if(_<=2&&d>>4==14){this.charLength=3;break}if(_<=3&&d>>3==30){this.charLength=4;break}}this.charReceived=_},b.prototype.end=function(h){var _="";if(h&&h.length&&(_=this.write(h)),this.charReceived){var d=this.charReceived,r=this.charBuffer,c=this.encoding;_+=r.slice(0,d).toString(c)}return _};function y(h){return h.toString(this.encoding)}function S(h){this.charReceived=h.length%2,this.charLength=this.charReceived?2:0}function T(h){this.charReceived=h.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(M,Y,s){(function(L,p){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var A=M("base64-js"),b=M("ieee754"),y=M("isarray");s.Buffer=p,s.SlowBuffer=l,s.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=L.TYPED_ARRAY_SUPPORT!==void 0?L.TYPED_ARRAY_SUPPORT:S(),s.kMaxLength=T();function S(){try{var le=new Uint8Array(1);return le.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},le.foo()===42&&typeof le.subarray=="function"&&le.subarray(1,1).byteLength===0}catch($){return!1}}function T(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(le,$){if(T()<$)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(le=new Uint8Array($),le.__proto__=p.prototype):(le===null&&(le=new p($)),le.length=$),le}function p(le,$,J){if(!p.TYPED_ARRAY_SUPPORT&&!(this instanceof p))return new p(le,$,J);if(typeof le=="number"){if(typeof $=="string")throw new Error("If encoding is specified then the first argument must be a string");return c(this,le)}return _(this,le,$,J)}p.poolSize=8192,p._augment=function(le){return le.__proto__=p.prototype,le};function _(le,$,J,te){if(typeof $=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&$ instanceof ArrayBuffer?n(le,$,J,te):typeof $=="string"?t(le,$,J):i(le,$)}p.from=function(le,$,J){return _(null,le,$,J)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0}));function d(le){if(typeof le!="number")throw new TypeError('"size" argument must be a number');if(le<0)throw new RangeError('"size" argument must not be negative')}function r(le,$,J,te){return d($),$<=0?h(le,$):J!==void 0?typeof te=="string"?h(le,$).fill(J,te):h(le,$).fill(J):h(le,$)}p.alloc=function(le,$,J){return r(null,le,$,J)};function c(le,$){if(d($),le=h(le,$<0?0:f($)|0),!p.TYPED_ARRAY_SUPPORT)for(var J=0;J<$;++J)le[J]=0;return le}p.allocUnsafe=function(le){return c(null,le)},p.allocUnsafeSlow=function(le){return c(null,le)};function t(le,$,J){if((typeof J!="string"||J==="")&&(J="utf8"),!p.isEncoding(J))throw new TypeError('"encoding" must be a valid string encoding');var te=o($,J)|0;le=h(le,te);var Ae=le.write($,J);return Ae!==te&&(le=le.slice(0,Ae)),le}function a(le,$){var J=$.length<0?0:f($.length)|0;le=h(le,J);for(var te=0;te<J;te+=1)le[te]=$[te]&255;return le}function n(le,$,J,te){if($.byteLength,J<0||$.byteLength<J)throw new RangeError("'offset' is out of bounds");if($.byteLength<J+(te||0))throw new RangeError("'length' is out of bounds");return J===void 0&&te===void 0?$=new Uint8Array($):te===void 0?$=new Uint8Array($,J):$=new Uint8Array($,J,te),p.TYPED_ARRAY_SUPPORT?(le=$,le.__proto__=p.prototype):le=a(le,$),le}function i(le,$){if(p.isBuffer($)){var J=f($.length)|0;return le=h(le,J),le.length===0||$.copy(le,0,0,J),le}if($){if(typeof ArrayBuffer!="undefined"&&$.buffer instanceof ArrayBuffer||"length"in $)return typeof $.length!="number"||Oe($.length)?h(le,0):a(le,$);if($.type==="Buffer"&&y($.data))return a(le,$.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function f(le){if(le>=T())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T().toString(16)+" bytes");return le|0}function l(le){return+le!=le&&(le=0),p.alloc(+le)}p.isBuffer=function($){return!!($!=null&&$._isBuffer)},p.compare=function($,J){if(!p.isBuffer($)||!p.isBuffer(J))throw new TypeError("Arguments must be Buffers");if($===J)return 0;for(var te=$.length,Ae=J.length,Se=0,ke=Math.min(te,Ae);Se<ke;++Se)if($[Se]!==J[Se]){te=$[Se],Ae=J[Se];break}return te<Ae?-1:Ae<te?1:0},p.isEncoding=function($){switch(String($).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function($,J){if(!y($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return p.alloc(0);var te;if(J===void 0)for(J=0,te=0;te<$.length;++te)J+=$[te].length;var Ae=p.allocUnsafe(J),Se=0;for(te=0;te<$.length;++te){var ke=$[te];if(!p.isBuffer(ke))throw new TypeError('"list" argument must be an Array of Buffers');ke.copy(Ae,Se),Se+=ke.length}return Ae};function o(le,$){if(p.isBuffer(le))return le.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(le)||le instanceof ArrayBuffer))return le.byteLength;typeof le!="string"&&(le=""+le);var J=le.length;if(J===0)return 0;for(var te=!1;;)switch($){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":case void 0:return se(le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J*2;case"hex":return J>>>1;case"base64":return re(le).length;default:if(te)return se(le).length;$=(""+$).toLowerCase(),te=!0}}p.byteLength=o;function m(le,$,J){var te=!1;if(($===void 0||$<0)&&($=0),$>this.length)return"";if((J===void 0||J>this.length)&&(J=this.length),J<=0)return"";if(J>>>=0,$>>>=0,J<=$)return"";for(le||(le="utf8");;)switch(le){case"hex":return K(this,$,J);case"utf8":case"utf-8":return D(this,$,J);case"ascii":return F(this,$,J);case"latin1":case"binary":return W(this,$,J);case"base64":return I(this,$,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,$,J);default:if(te)throw new TypeError("Unknown encoding: "+le);le=(le+"").toLowerCase(),te=!0}}p.prototype._isBuffer=!0;function w(le,$,J){var te=le[$];le[$]=le[J],le[J]=te}p.prototype.swap16=function(){var $=this.length;if($%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var J=0;J<$;J+=2)w(this,J,J+1);return this},p.prototype.swap32=function(){var $=this.length;if($%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var J=0;J<$;J+=4)w(this,J,J+3),w(this,J+1,J+2);return this},p.prototype.swap64=function(){var $=this.length;if($%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var J=0;J<$;J+=8)w(this,J,J+7),w(this,J+1,J+6),w(this,J+2,J+5),w(this,J+3,J+4);return this},p.prototype.toString=function(){var $=this.length|0;return $===0?"":arguments.length===0?D(this,0,$):m.apply(this,arguments)},p.prototype.equals=function($){if(!p.isBuffer($))throw new TypeError("Argument must be a Buffer");return this===$?!0:p.compare(this,$)===0},p.prototype.inspect=function(){var $="",J=s.INSPECT_MAX_BYTES;return this.length>0&&($=this.toString("hex",0,J).match(/.{2}/g).join(" "),this.length>J&&($+=" ... ")),"<Buffer "+$+">"},p.prototype.compare=function($,J,te,Ae,Se){if(!p.isBuffer($))throw new TypeError("Argument must be a Buffer");if(J===void 0&&(J=0),te===void 0&&(te=$?$.length:0),Ae===void 0&&(Ae=0),Se===void 0&&(Se=this.length),J<0||te>$.length||Ae<0||Se>this.length)throw new RangeError("out of range index");if(Ae>=Se&&J>=te)return 0;if(Ae>=Se)return-1;if(J>=te)return 1;if(J>>>=0,te>>>=0,Ae>>>=0,Se>>>=0,this===$)return 0;for(var ke=Se-Ae,rt=te-J,ot=Math.min(ke,rt),gt=this.slice(Ae,Se),Et=$.slice(J,te),Ct=0;Ct<ot;++Ct)if(gt[Ct]!==Et[Ct]){ke=gt[Ct],rt=Et[Ct];break}return ke<rt?-1:rt<ke?1:0};function C(le,$,J,te,Ae){if(le.length===0)return-1;if(typeof J=="string"?(te=J,J=0):J>2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),J=+J,isNaN(J)&&(J=Ae?0:le.length-1),J<0&&(J=le.length+J),J>=le.length){if(Ae)return-1;J=le.length-1}else if(J<0)if(Ae)J=0;else return-1;if(typeof $=="string"&&($=p.from($,te)),p.isBuffer($))return $.length===0?-1:v(le,$,J,te,Ae);if(typeof $=="number")return $=$&255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ae?Uint8Array.prototype.indexOf.call(le,$,J):Uint8Array.prototype.lastIndexOf.call(le,$,J):v(le,[$],J,te,Ae);throw new TypeError("val must be string, number or Buffer")}function v(le,$,J,te,Ae){var Se=1,ke=le.length,rt=$.length;if(te!==void 0&&(te=String(te).toLowerCase(),te==="ucs2"||te==="ucs-2"||te==="utf16le"||te==="utf-16le")){if(le.length<2||$.length<2)return-1;Se=2,ke/=2,rt/=2,J/=2}function ot(Qe,Ue){return Se===1?Qe[Ue]:Qe.readUInt16BE(Ue*Se)}var gt;if(Ae){var Et=-1;for(gt=J;gt<ke;gt++)if(ot(le,gt)===ot($,Et===-1?0:gt-Et)){if(Et===-1&&(Et=gt),gt-Et+1===rt)return Et*Se}else Et!==-1&&(gt-=gt-Et),Et=-1}else for(J+rt>ke&&(J=ke-rt),gt=J;gt>=0;gt--){for(var Ct=!0,wt=0;wt<rt;wt++)if(ot(le,gt+wt)!==ot($,wt)){Ct=!1;break}if(Ct)return gt}return-1}p.prototype.includes=function($,J,te){return this.indexOf($,J,te)!==-1},p.prototype.indexOf=function($,J,te){return C(this,$,J,te,!0)},p.prototype.lastIndexOf=function($,J,te){return C(this,$,J,te,!1)};function P(le,$,J,te){J=Number(J)||0;var Ae=le.length-J;te?(te=Number(te),te>Ae&&(te=Ae)):te=Ae;var Se=$.length;if(Se%2!==0)throw new TypeError("Invalid hex string");te>Se/2&&(te=Se/2);for(var ke=0;ke<te;++ke){var rt=parseInt($.substr(ke*2,2),16);if(isNaN(rt))return ke;le[J+ke]=rt}return ke}function R(le,$,J,te){return ie(se($,le.length-J),le,J,te)}function E(le,$,J,te){return ie(q($),le,J,te)}function x(le,$,J,te){return E(le,$,J,te)}function g(le,$,J,te){return ie(re($),le,J,te)}function O(le,$,J,te){return ie(me($,le.length-J),le,J,te)}p.prototype.write=function($,J,te,Ae){if(J===void 0)Ae="utf8",te=this.length,J=0;else if(te===void 0&&typeof J=="string")Ae=J,te=this.length,J=0;else if(isFinite(J))J=J|0,isFinite(te)?(te=te|0,Ae===void 0&&(Ae="utf8")):(Ae=te,te=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Se=this.length-J;if((te===void 0||te>Se)&&(te=Se),$.length>0&&(te<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ae||(Ae="utf8");for(var ke=!1;;)switch(Ae){case"hex":return P(this,$,J,te);case"utf8":case"utf-8":return R(this,$,J,te);case"ascii":return E(this,$,J,te);case"latin1":case"binary":return x(this,$,J,te);case"base64":return g(this,$,J,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,$,J,te);default:if(ke)throw new TypeError("Unknown encoding: "+Ae);Ae=(""+Ae).toLowerCase(),ke=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(le,$,J){return $===0&&J===le.length?A.fromByteArray(le):A.fromByteArray(le.slice($,J))}function D(le,$,J){J=Math.min(le.length,J);for(var te=[],Ae=$;Ae<J;){var Se=le[Ae],ke=null,rt=Se>239?4:Se>223?3:Se>191?2:1;if(Ae+rt<=J){var ot,gt,Et,Ct;switch(rt){case 1:Se<128&&(ke=Se);break;case 2:ot=le[Ae+1],(ot&192)===128&&(Ct=(Se&31)<<6|ot&63,Ct>127&&(ke=Ct));break;case 3:ot=le[Ae+1],gt=le[Ae+2],(ot&192)===128&&(gt&192)===128&&(Ct=(Se&15)<<12|(ot&63)<<6|gt&63,Ct>2047&&(Ct<55296||Ct>57343)&&(ke=Ct));break;case 4:ot=le[Ae+1],gt=le[Ae+2],Et=le[Ae+3],(ot&192)===128&&(gt&192)===128&&(Et&192)===128&&(Ct=(Se&15)<<18|(ot&63)<<12|(gt&63)<<6|Et&63,Ct>65535&&Ct<1114112&&(ke=Ct))}}ke===null?(ke=65533,rt=1):ke>65535&&(ke-=65536,te.push(ke>>>10&1023|55296),ke=56320|ke&1023),te.push(ke),Ae+=rt}return V(te)}var N=4096;function V(le){var $=le.length;if($<=N)return String.fromCharCode.apply(String,le);for(var J="",te=0;te<$;)J+=String.fromCharCode.apply(String,le.slice(te,te+=N));return J}function F(le,$,J){var te="";J=Math.min(le.length,J);for(var Ae=$;Ae<J;++Ae)te+=String.fromCharCode(le[Ae]&127);return te}function W(le,$,J){var te="";J=Math.min(le.length,J);for(var Ae=$;Ae<J;++Ae)te+=String.fromCharCode(le[Ae]);return te}function K(le,$,J){var te=le.length;(!$||$<0)&&($=0),(!J||J<0||J>te)&&(J=te);for(var Ae="",Se=$;Se<J;++Se)Ae+=ue(le[Se]);return Ae}function B(le,$,J){for(var te=le.slice($,J),Ae="",Se=0;Se<te.length;Se+=2)Ae+=String.fromCharCode(te[Se]+te[Se+1]*256);return Ae}p.prototype.slice=function($,J){var te=this.length;$=~~$,J=J===void 0?te:~~J,$<0?($+=te,$<0&&($=0)):$>te&&($=te),J<0?(J+=te,J<0&&(J=0)):J>te&&(J=te),J<$&&(J=$);var Ae;if(p.TYPED_ARRAY_SUPPORT)Ae=this.subarray($,J),Ae.__proto__=p.prototype;else{var Se=J-$;Ae=new p(Se,void 0);for(var ke=0;ke<Se;++ke)Ae[ke]=this[ke+$]}return Ae};function k(le,$,J){if(le%1!==0||le<0)throw new RangeError("offset is not uint");if(le+$>J)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUIntLE=function($,J,te){$=$|0,J=J|0,te||k($,J,this.length);for(var Ae=this[$],Se=1,ke=0;++ke<J&&(Se*=256);)Ae+=this[$+ke]*Se;return Ae},p.prototype.readUIntBE=function($,J,te){$=$|0,J=J|0,te||k($,J,this.length);for(var Ae=this[$+--J],Se=1;J>0&&(Se*=256);)Ae+=this[$+--J]*Se;return Ae},p.prototype.readUInt8=function($,J){return J||k($,1,this.length),this[$]},p.prototype.readUInt16LE=function($,J){return J||k($,2,this.length),this[$]|this[$+1]<<8},p.prototype.readUInt16BE=function($,J){return J||k($,2,this.length),this[$]<<8|this[$+1]},p.prototype.readUInt32LE=function($,J){return J||k($,4,this.length),(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216},p.prototype.readUInt32BE=function($,J){return J||k($,4,this.length),this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])},p.prototype.readIntLE=function($,J,te){$=$|0,J=J|0,te||k($,J,this.length);for(var Ae=this[$],Se=1,ke=0;++ke<J&&(Se*=256);)Ae+=this[$+ke]*Se;return Se*=128,Ae>=Se&&(Ae-=Math.pow(2,8*J)),Ae},p.prototype.readIntBE=function($,J,te){$=$|0,J=J|0,te||k($,J,this.length);for(var Ae=J,Se=1,ke=this[$+--Ae];Ae>0&&(Se*=256);)ke+=this[$+--Ae]*Se;return Se*=128,ke>=Se&&(ke-=Math.pow(2,8*J)),ke},p.prototype.readInt8=function($,J){return J||k($,1,this.length),this[$]&128?(255-this[$]+1)*-1:this[$]},p.prototype.readInt16LE=function($,J){J||k($,2,this.length);var te=this[$]|this[$+1]<<8;return te&32768?te|4294901760:te},p.prototype.readInt16BE=function($,J){J||k($,2,this.length);var te=this[$+1]|this[$]<<8;return te&32768?te|4294901760:te},p.prototype.readInt32LE=function($,J){return J||k($,4,this.length),this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24},p.prototype.readInt32BE=function($,J){return J||k($,4,this.length),this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]},p.prototype.readFloatLE=function($,J){return J||k($,4,this.length),b.read(this,$,!0,23,4)},p.prototype.readFloatBE=function($,J){return J||k($,4,this.length),b.read(this,$,!1,23,4)},p.prototype.readDoubleLE=function($,J){return J||k($,8,this.length),b.read(this,$,!0,52,8)},p.prototype.readDoubleBE=function($,J){return J||k($,8,this.length),b.read(this,$,!1,52,8)};function G(le,$,J,te,Ae,Se){if(!p.isBuffer(le))throw new TypeError('"buffer" argument must be a Buffer instance');if($>Ae||$<Se)throw new RangeError('"value" argument is out of bounds');if(J+te>le.length)throw new RangeError("Index out of range")}p.prototype.writeUIntLE=function($,J,te,Ae){if($=+$,J=J|0,te=te|0,!Ae){var Se=Math.pow(2,8*te)-1;G(this,$,J,te,Se,0)}var ke=1,rt=0;for(this[J]=$&255;++rt<te&&(ke*=256);)this[J+rt]=$/ke&255;return J+te},p.prototype.writeUIntBE=function($,J,te,Ae){if($=+$,J=J|0,te=te|0,!Ae){var Se=Math.pow(2,8*te)-1;G(this,$,J,te,Se,0)}var ke=te-1,rt=1;for(this[J+ke]=$&255;--ke>=0&&(rt*=256);)this[J+ke]=$/rt&255;return J+te},p.prototype.writeUInt8=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,1,255,0),p.TYPED_ARRAY_SUPPORT||($=Math.floor($)),this[J]=$&255,J+1};function ne(le,$,J,te){$<0&&($=65535+$+1);for(var Ae=0,Se=Math.min(le.length-J,2);Ae<Se;++Ae)le[J+Ae]=($&255<<8*(te?Ae:1-Ae))>>>(te?Ae:1-Ae)*8}p.prototype.writeUInt16LE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[J]=$&255,this[J+1]=$>>>8):ne(this,$,J,!0),J+2},p.prototype.writeUInt16BE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[J]=$>>>8,this[J+1]=$&255):ne(this,$,J,!1),J+2};function fe(le,$,J,te){$<0&&($=4294967295+$+1);for(var Ae=0,Se=Math.min(le.length-J,4);Ae<Se;++Ae)le[J+Ae]=$>>>(te?Ae:3-Ae)*8&255}p.prototype.writeUInt32LE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[J+3]=$>>>24,this[J+2]=$>>>16,this[J+1]=$>>>8,this[J]=$&255):fe(this,$,J,!0),J+4},p.prototype.writeUInt32BE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[J]=$>>>24,this[J+1]=$>>>16,this[J+2]=$>>>8,this[J+3]=$&255):fe(this,$,J,!1),J+4},p.prototype.writeIntLE=function($,J,te,Ae){if($=+$,J=J|0,!Ae){var Se=Math.pow(2,8*te-1);G(this,$,J,te,Se-1,-Se)}var ke=0,rt=1,ot=0;for(this[J]=$&255;++ke<te&&(rt*=256);)$<0&&ot===0&&this[J+ke-1]!==0&&(ot=1),this[J+ke]=($/rt>>0)-ot&255;return J+te},p.prototype.writeIntBE=function($,J,te,Ae){if($=+$,J=J|0,!Ae){var Se=Math.pow(2,8*te-1);G(this,$,J,te,Se-1,-Se)}var ke=te-1,rt=1,ot=0;for(this[J+ke]=$&255;--ke>=0&&(rt*=256);)$<0&&ot===0&&this[J+ke+1]!==0&&(ot=1),this[J+ke]=($/rt>>0)-ot&255;return J+te},p.prototype.writeInt8=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,1,127,-128),p.TYPED_ARRAY_SUPPORT||($=Math.floor($)),$<0&&($=255+$+1),this[J]=$&255,J+1},p.prototype.writeInt16LE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[J]=$&255,this[J+1]=$>>>8):ne(this,$,J,!0),J+2},p.prototype.writeInt16BE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[J]=$>>>8,this[J+1]=$&255):ne(this,$,J,!1),J+2},p.prototype.writeInt32LE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[J]=$&255,this[J+1]=$>>>8,this[J+2]=$>>>16,this[J+3]=$>>>24):fe(this,$,J,!0),J+4},p.prototype.writeInt32BE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,4,2147483647,-2147483648),$<0&&($=4294967295+$+1),p.TYPED_ARRAY_SUPPORT?(this[J]=$>>>24,this[J+1]=$>>>16,this[J+2]=$>>>8,this[J+3]=$&255):fe(this,$,J,!1),J+4};function de(le,$,J,te,Ae,Se){if(J+te>le.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("Index out of range")}function Ee(le,$,J,te,Ae){return Ae||de(le,$,J,4,34028234663852886e22,-34028234663852886e22),b.write(le,$,J,te,23,4),J+4}p.prototype.writeFloatLE=function($,J,te){return Ee(this,$,J,!0,te)},p.prototype.writeFloatBE=function($,J,te){return Ee(this,$,J,!1,te)};function we(le,$,J,te,Ae){return Ae||de(le,$,J,8,17976931348623157e292,-17976931348623157e292),b.write(le,$,J,te,52,8),J+8}p.prototype.writeDoubleLE=function($,J,te){return we(this,$,J,!0,te)},p.prototype.writeDoubleBE=function($,J,te){return we(this,$,J,!1,te)},p.prototype.copy=function($,J,te,Ae){if(te||(te=0),!Ae&&Ae!==0&&(Ae=this.length),J>=$.length&&(J=$.length),J||(J=0),Ae>0&&Ae<te&&(Ae=te),Ae===te)return 0;if($.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(te<0||te>=this.length)throw new RangeError("sourceStart out of bounds");if(Ae<0)throw new RangeError("sourceEnd out of bounds");Ae>this.length&&(Ae=this.length),$.length-J<Ae-te&&(Ae=$.length-J+te);var Se=Ae-te,ke;if(this===$&&te<J&&J<Ae)for(ke=Se-1;ke>=0;--ke)$[ke+J]=this[ke+te];else if(Se<1e3||!p.TYPED_ARRAY_SUPPORT)for(ke=0;ke<Se;++ke)$[ke+J]=this[ke+te];else Uint8Array.prototype.set.call($,this.subarray(te,te+Se),J);return Se},p.prototype.fill=function($,J,te,Ae){if(typeof $=="string"){if(typeof J=="string"?(Ae=J,J=0,te=this.length):typeof te=="string"&&(Ae=te,te=this.length),$.length===1){var Se=$.charCodeAt(0);Se<256&&($=Se)}if(Ae!==void 0&&typeof Ae!="string")throw new TypeError("encoding must be a string");if(typeof Ae=="string"&&!p.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae)}else typeof $=="number"&&($=$&255);if(J<0||this.length<J||this.length<te)throw new RangeError("Out of range index");if(te<=J)return this;J=J>>>0,te=te===void 0?this.length:te>>>0,$||($=0);var ke;if(typeof $=="number")for(ke=J;ke<te;++ke)this[ke]=$;else{var rt=p.isBuffer($)?$:se(new p($,Ae).toString()),ot=rt.length;for(ke=0;ke<te-J;++ke)this[ke+J]=rt[ke%ot]}return this};var ce=/[^+\/0-9A-Za-z-_]/g;function be(le){if(le=ve(le).replace(ce,""),le.length<2)return"";for(;le.length%4!==0;)le=le+"=";return le}function ve(le){return le.trim?le.trim():le.replace(/^\s+|\s+$/g,"")}function ue(le){return le<16?"0"+le.toString(16):le.toString(16)}function se(le,$){$=$||Infinity;for(var J,te=le.length,Ae=null,Se=[],ke=0;ke<te;++ke){if(J=le.charCodeAt(ke),J>55295&&J<57344){if(!Ae){if(J>56319){($-=3)>-1&&Se.push(239,191,189);continue}else if(ke+1===te){($-=3)>-1&&Se.push(239,191,189);continue}Ae=J;continue}if(J<56320){($-=3)>-1&&Se.push(239,191,189),Ae=J;continue}J=(Ae-55296<<10|J-56320)+65536}else Ae&&(($-=3)>-1&&Se.push(239,191,189));if(Ae=null,J<128){if(($-=1)<0)break;Se.push(J)}else if(J<2048){if(($-=2)<0)break;Se.push(J>>6|192,J&63|128)}else if(J<65536){if(($-=3)<0)break;Se.push(J>>12|224,J>>6&63|128,J&63|128)}else if(J<1114112){if(($-=4)<0)break;Se.push(J>>18|240,J>>12&63|128,J>>6&63|128,J&63|128)}else throw new Error("Invalid code point")}return Se}function q(le){for(var $=[],J=0;J<le.length;++J)$.push(le.charCodeAt(J)&255);return $}function me(le,$){for(var J,te,Ae,Se=[],ke=0;ke<le.length&&!(($-=2)<0);++ke)J=le.charCodeAt(ke),te=J>>8,Ae=J%256,Se.push(Ae),Se.push(te);return Se}function re(le){return A.toByteArray(be(le))}function ie(le,$,J,te){for(var Ae=0;Ae<te&&!(Ae+J>=$.length||Ae>=le.length);++Ae)$[Ae+J]=le[Ae];return Ae}function Oe(le){return le!==le}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},M("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(M,Y,s){Y.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(M,Y,s){Y.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(M,Y,s){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var L=Array.prototype.slice;Y.exports=p;function p(b,y){if(!(this instanceof p))return new p(b,y);this.src=b,this._withAccess=y}p.prototype.withAccess=function(b){return this._withAccess=b!==!1,this},p.prototype.pick=function(b){return Array.isArray(b)||(b=L.call(arguments)),b.length&&(this.keys=b),this},p.prototype.to=function(b){if(b=b||{},!this.src)return b;var y=this.keys||Object.keys(this.src);if(!this._withAccess){for(var S=0;S<y.length;S++){if(T=y[S],b[T]!==void 0)continue;b[T]=this.src[T]}return b}for(var S=0;S<y.length;S++){var T=y[S];if(!A(b,T))continue;var h=this.src.__lookupGetter__(T),_=this.src.__lookupSetter__(T);h&&b.__defineGetter__(T,h),_&&b.__defineSetter__(T,_),!h&&!_&&(b[T]=this.src[T])}return b},p.prototype.toCover=function(b){for(var y=this.keys||Object.keys(this.src),S=0;S<y.length;S++){var T=y[S];delete b[T];var h=this.src.__lookupGetter__(T),_=this.src.__lookupSetter__(T);h&&b.__defineGetter__(T,h),_&&b.__defineSetter__(T,_),!h&&!_&&(b[T]=this.src[T])}},p.prototype.override=p.prototype.toCover,p.prototype.and=function(b){var y={};return this.to(y),this.src=b,this.to(y),this.src=y,this};function A(b,y){return b[y]===void 0&&b.__lookupGetter__(y)===void 0&&b.__lookupSetter__(y)===void 0}},{}],77:[function(M,Y,s){M("../../modules/es6.string.iterator"),M("../../modules/es6.array.from"),Y.exports=M("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(M,Y,s){var L=M("../../modules/_core"),p=L.JSON||(L.JSON={stringify:JSON.stringify});Y.exports=function(b){return p.stringify.apply(p,arguments)}},{"../../modules/_core":99}],79:[function(M,Y,s){M("../../modules/es6.object.assign"),Y.exports=M("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(M,Y,s){M("../../modules/es6.object.create");var L=M("../../modules/_core").Object;Y.exports=function(A,b){return L.create(A,b)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(M,Y,s){M("../../modules/es6.object.define-property");var L=M("../../modules/_core").Object;Y.exports=function(A,b,y){return L.defineProperty(A,b,y)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(M,Y,s){M("../../modules/es7.object.entries"),Y.exports=M("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(M,Y,s){M("../../modules/es6.object.get-own-property-names");var L=M("../../modules/_core").Object;Y.exports=function(A){return L.getOwnPropertyNames(A)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(M,Y,s){M("../../modules/es6.object.get-prototype-of"),Y.exports=M("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(M,Y,s){M("../../modules/es6.object.keys"),Y.exports=M("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(M,Y,s){M("../modules/es6.object.to-string"),M("../modules/es6.string.iterator"),M("../modules/web.dom.iterable"),M("../modules/es6.promise"),M("../modules/es7.promise.finally"),M("../modules/es7.promise.try"),Y.exports=M("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(M,Y,s){M("../modules/web.immediate"),Y.exports=M("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(M,Y,s){M("../../modules/es6.string.from-code-point"),Y.exports=M("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(M,Y,s){M("../../modules/es6.function.has-instance"),Y.exports=M("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(M,Y,s){M("../../modules/es6.symbol"),M("../../modules/es6.object.to-string"),M("../../modules/es7.symbol.async-iterator"),M("../../modules/es7.symbol.observable"),Y.exports=M("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(M,Y,s){M("../../modules/es6.string.iterator"),M("../../modules/web.dom.iterable"),Y.exports=M("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(M,Y,s){Y.exports=function(L){if(typeof L!="function")throw TypeError(L+" is not a function!");return L}},{}],93:[function(M,Y,s){Y.exports=function(){}},{}],94:[function(M,Y,s){Y.exports=function(L,p,A,b){if(!(L instanceof p)||b!==void 0&&b in L)throw TypeError(A+": incorrect invocation!");return L}},{}],95:[function(M,Y,s){var L=M("./_is-object");Y.exports=function(p){if(!L(p))throw TypeError(p+" is not an object!");return p}},{"./_is-object":119}],96:[function(M,Y,s){var L=M("./_to-iobject"),p=M("./_to-length"),A=M("./_to-absolute-index");Y.exports=function(b){return function(y,S,T){var h=L(y),_=p(h.length),d=A(T,_),r;if(b&&S!=S){for(;_>d;)if(r=h[d++],r!=r)return!0}else for(;_>d;d++)if((b||d in h)&&h[d]===S)return b||d||0;return!b&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(M,Y,s){var L=M("./_cof"),p=M("./_wks")("toStringTag"),A=L(function(){return arguments}())=="Arguments",b=function(y,S){try{return y[S]}catch(T){}};Y.exports=function(y){var S,T,h;return y===void 0?"Undefined":y===null?"Null":typeof(T=b(S=Object(y),p))=="string"?T:A?L(S):(h=L(S))=="Object"&&typeof S.callee=="function"?"Arguments":h}},{"./_cof":98,"./_wks":166}],98:[function(M,Y,s){var L={}.toString;Y.exports=function(p){return L.call(p).slice(8,-1)}},{}],99:[function(M,Y,s){var L=Y.exports={version:"2.6.11"};typeof __e=="number"&&(__e=L)},{}],100:[function(M,Y,s){"use strict";var L=M("./_object-dp"),p=M("./_property-desc");Y.exports=function(A,b,y){b in A?L.f(A,b,p(0,y)):A[b]=y}},{"./_object-dp":132,"./_property-desc":146}],101:[function(M,Y,s){var L=M("./_a-function");Y.exports=function(p,A,b){if(L(p),A===void 0)return p;switch(b){case 1:return function(y){return p.call(A,y)};case 2:return function(y,S){return p.call(A,y,S)};case 3:return function(y,S,T){return p.call(A,y,S,T)}}return function(){return p.apply(A,arguments)}}},{"./_a-function":92}],102:[function(M,Y,s){Y.exports=function(L){if(L==null)throw TypeError("Can't call method on "+L);return L}},{}],103:[function(M,Y,s){Y.exports=!M("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(M,Y,s){var L=M("./_is-object"),p=M("./_global").document,A=L(p)&&L(p.createElement);Y.exports=function(b){return A?p.createElement(b):{}}},{"./_global":110,"./_is-object":119}],105:[function(M,Y,s){Y.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(M,Y,s){var L=M("./_object-keys"),p=M("./_object-gops"),A=M("./_object-pie");Y.exports=function(b){var y=L(b),S=p.f;if(S)for(var T=S(b),h=A.f,_=0,d;T.length>_;)h.call(b,d=T[_++])&&y.push(d);return y}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(M,Y,s){var L=M("./_global"),p=M("./_core"),A=M("./_ctx"),b=M("./_hide"),y=M("./_has"),S="prototype",T=function(h,_,d){var r=h&T.F,c=h&T.G,t=h&T.S,a=h&T.P,n=h&T.B,i=h&T.W,f=c?p:p[_]||(p[_]={}),l=f[S],o=c?L:t?L[_]:(L[_]||{})[S],m,w,C;c&&(d=_);for(m in d){if(w=!r&&o&&o[m]!==void 0,w&&y(f,m))continue;C=w?o[m]:d[m],f[m]=c&&typeof o[m]!="function"?d[m]:n&&w?A(C,L):i&&o[m]==C?function(v){var P=function(R,E,x){if(this instanceof v){switch(arguments.length){case 0:return new v;case 1:return new v(R);case 2:return new v(R,E)}return new v(R,E,x)}return v.apply(this,arguments)};return P[S]=v[S],P}(C):a&&typeof C=="function"?A(Function.call,C):C,a&&((f.virtual||(f.virtual={}))[m]=C,h&T.R&&l&&!l[m]&&b(l,m,C))}};T.F=1,T.G=2,T.S=4,T.P=8,T.B=16,T.W=32,T.U=64,T.R=128,Y.exports=T},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(M,Y,s){Y.exports=function(L){try{return!!L()}catch(p){return!0}}},{}],109:[function(M,Y,s){var L=M("./_ctx"),p=M("./_iter-call"),A=M("./_is-array-iter"),b=M("./_an-object"),y=M("./_to-length"),S=M("./core.get-iterator-method"),T={},h={},s=Y.exports=function(_,d,r,c,t){var a=t?function(){return _}:S(_),n=L(r,c,d?2:1),i=0,f,l,o,m;if(typeof a!="function")throw TypeError(_+" is not iterable!");if(A(a)){for(f=y(_.length);f>i;i++)if(m=d?n(b(l=_[i])[0],l[1]):n(_[i]),m===T||m===h)return m}else for(o=a.call(_);!(l=o.next()).done;)if(m=p(o,n,l.value,d),m===T||m===h)return m};s.BREAK=T,s.RETURN=h},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(M,Y,s){var L=Y.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=L)},{}],111:[function(M,Y,s){var L={}.hasOwnProperty;Y.exports=function(p,A){return L.call(p,A)}},{}],112:[function(M,Y,s){var L=M("./_object-dp"),p=M("./_property-desc");Y.exports=M("./_descriptors")?function(A,b,y){return L.f(A,b,p(1,y))}:function(A,b,y){return A[b]=y,A}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(M,Y,s){var L=M("./_global").document;Y.exports=L&&L.documentElement},{"./_global":110}],114:[function(M,Y,s){Y.exports=!M("./_descriptors")&&!M("./_fails")(function(){return Object.defineProperty(M("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(M,Y,s){Y.exports=function(L,p,A){var b=A===void 0;switch(p.length){case 0:return b?L():L.call(A);case 1:return b?L(p[0]):L.call(A,p[0]);case 2:return b?L(p[0],p[1]):L.call(A,p[0],p[1]);case 3:return b?L(p[0],p[1],p[2]):L.call(A,p[0],p[1],p[2]);case 4:return b?L(p[0],p[1],p[2],p[3]):L.call(A,p[0],p[1],p[2],p[3])}return L.apply(A,p)}},{}],116:[function(M,Y,s){var L=M("./_cof");Y.exports=Object("z").propertyIsEnumerable(0)?Object:function(p){return L(p)=="String"?p.split(""):Object(p)}},{"./_cof":98}],117:[function(M,Y,s){var L=M("./_iterators"),p=M("./_wks")("iterator"),A=Array.prototype;Y.exports=function(b){return b!==void 0&&(L.Array===b||A[p]===b)}},{"./_iterators":125,"./_wks":166}],118:[function(M,Y,s){var L=M("./_cof");Y.exports=Array.isArray||function(A){return L(A)=="Array"}},{"./_cof":98}],119:[function(M,Y,s){Y.exports=function(L){return typeof L=="object"?L!==null:typeof L=="function"}},{}],120:[function(M,Y,s){var L=M("./_an-object");Y.exports=function(p,A,b,y){try{return y?A(L(b)[0],b[1]):A(b)}catch(T){var S=p.return;throw S!==void 0&&L(S.call(p)),T}}},{"./_an-object":95}],121:[function(M,Y,s){"use strict";var L=M("./_object-create"),p=M("./_property-desc"),A=M("./_set-to-string-tag"),b={};M("./_hide")(b,M("./_wks")("iterator"),function(){return this}),Y.exports=function(y,S,T){y.prototype=L(b,{next:p(1,T)}),A(y,S+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(M,Y,s){"use strict";var L=M("./_library"),p=M("./_export"),A=M("./_redefine"),b=M("./_hide"),y=M("./_iterators"),S=M("./_iter-create"),T=M("./_set-to-string-tag"),h=M("./_object-gpo"),_=M("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),r="@@iterator",c="keys",t="values",a=function(){return this};Y.exports=function(n,i,f,l,o,m,w){S(f,i,l);var C=function(F){if(!d&&F in E)return E[F];switch(F){case c:return function(){return new f(this,F)};case t:return function(){return new f(this,F)}}return function(){return new f(this,F)}},v=i+" Iterator",P=o==t,R=!1,E=n.prototype,x=E[_]||E[r]||o&&E[o],g=x||C(o),O=o?P?C("entries"):g:void 0,I=i=="Array"&&E.entries||x,D,N,V;if(I&&(V=h(I.call(new n)),V!==Object.prototype&&V.next&&(T(V,v,!0),!L&&typeof V[_]!="function"&&b(V,_,a))),P&&x&&x.name!==t&&(R=!0,g=function(){return x.call(this)}),(!L||w)&&(d||R||!E[_])&&b(E,_,g),y[i]=g,y[v]=a,o)if(D={values:P?g:C(t),keys:m?g:C(c),entries:O},w)for(N in D)N in E||A(E,N,D[N]);else p(p.P+p.F*(d||R),i,D);return D}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(M,Y,s){var L=M("./_wks")("iterator"),p=!1;try{var A=[7][L]();A.return=function(){p=!0},Array.from(A,function(){throw 2})}catch(b){}Y.exports=function(b,y){if(!y&&!p)return!1;var S=!1;try{var T=[7],h=T[L]();h.next=function(){return{done:S=!0}},T[L]=function(){return h},b(T)}catch(_){}return S}},{"./_wks":166}],124:[function(M,Y,s){Y.exports=function(L,p){return{value:p,done:!!L}}},{}],125:[function(M,Y,s){Y.exports={}},{}],126:[function(M,Y,s){Y.exports=!0},{}],127:[function(M,Y,s){var L=M("./_uid")("meta"),p=M("./_is-object"),A=M("./_has"),b=M("./_object-dp").f,y=0,S=Object.isExtensible||function(){return!0},T=!M("./_fails")(function(){return S(Object.preventExtensions({}))}),h=function(t){b(t,L,{value:{i:"O"+ ++y,w:{}}})},_=function(t,a){if(!p(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!A(t,L)){if(!S(t))return"F";if(!a)return"E";h(t)}return t[L].i},d=function(t,a){if(!A(t,L)){if(!S(t))return!0;if(!a)return!1;h(t)}return t[L].w},r=function(t){return T&&c.NEED&&S(t)&&!A(t,L)&&h(t),t},c=Y.exports={KEY:L,NEED:!1,fastKey:_,getWeak:d,onFreeze:r}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(M,Y,s){var L=M("./_global"),p=M("./_task").set,A=L.MutationObserver||L.WebKitMutationObserver,b=L.process,y=L.Promise,S=M("./_cof")(b)=="process";Y.exports=function(){var T,h,_,d=function(){var a,n;for(S&&(a=b.domain)&&a.exit();T;){n=T.fn,T=T.next;try{n()}catch(i){throw T?_():h=void 0,i}}h=void 0,a&&a.enter()};if(S)_=function(){b.nextTick(d)};else if(A&&!(L.navigator&&L.navigator.standalone)){var r=!0,c=document.createTextNode("");new A(d).observe(c,{characterData:!0}),_=function(){c.data=r=!r}}else if(y&&y.resolve){var t=y.resolve(void 0);_=function(){t.then(d)}}else _=function(){p.call(L,d)};return function(a){var n={fn:a,next:void 0};h&&(h.next=n),T||(T=n,_()),h=n}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(M,Y,s){"use strict";var L=M("./_a-function");function p(A){var b,y;this.promise=new A(function(S,T){if(b!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");b=S,y=T}),this.resolve=L(b),this.reject=L(y)}Y.exports.f=function(A){return new p(A)}},{"./_a-function":92}],130:[function(M,Y,s){"use strict";var L=M("./_descriptors"),p=M("./_object-keys"),A=M("./_object-gops"),b=M("./_object-pie"),y=M("./_to-object"),S=M("./_iobject"),T=Object.assign;Y.exports=!T||M("./_fails")(function(){var h={},_={},d=Symbol(),r="abcdefghijklmnopqrst";return h[d]=7,r.split("").forEach(function(c){_[c]=c}),T({},h)[d]!=7||Object.keys(T({},_)).join("")!=r})?function(_,d){for(var r=y(_),c=arguments.length,t=1,a=A.f,n=b.f;c>t;)for(var i=S(arguments[t++]),f=a?p(i).concat(a(i)):p(i),l=f.length,o=0,m;l>o;)m=f[o++],(!L||n.call(i,m))&&(r[m]=i[m]);return r}:T},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(M,Y,s){var L=M("./_an-object"),p=M("./_object-dps"),A=M("./_enum-bug-keys"),b=M("./_shared-key")("IE_PROTO"),y=function(){},S="prototype",T=function(){var h=M("./_dom-create")("iframe"),_=A.length,d="<",r=">",c;for(h.style.display="none",M("./_html").appendChild(h),h.src="javascript:",c=h.contentWindow.document,c.open(),c.write(d+"script"+r+"document.F=Object"+d+"/script"+r),c.close(),T=c.F;_--;)delete T[S][A[_]];return T()};Y.exports=Object.create||function(_,d){var r;return _!==null?(y[S]=L(_),r=new y,y[S]=null,r[b]=_):r=T(),d===void 0?r:p(r,d)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(M,Y,s){var L=M("./_an-object"),p=M("./_ie8-dom-define"),A=M("./_to-primitive"),b=Object.defineProperty;s.f=M("./_descriptors")?Object.defineProperty:function(S,T,h){if(L(S),T=A(T,!0),L(h),p)try{return b(S,T,h)}catch(_){}if("get"in h||"set"in h)throw TypeError("Accessors not supported!");return"value"in h&&(S[T]=h.value),S}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(M,Y,s){var L=M("./_object-dp"),p=M("./_an-object"),A=M("./_object-keys");Y.exports=M("./_descriptors")?Object.defineProperties:function(y,S){p(y);for(var T=A(S),h=T.length,_=0,d;h>_;)L.f(y,d=T[_++],S[d]);return y}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(M,Y,s){var L=M("./_object-pie"),p=M("./_property-desc"),A=M("./_to-iobject"),b=M("./_to-primitive"),y=M("./_has"),S=M("./_ie8-dom-define"),T=Object.getOwnPropertyDescriptor;s.f=M("./_descriptors")?T:function(_,d){if(_=A(_),d=b(d,!0),S)try{return T(_,d)}catch(r){}if(y(_,d))return p(!L.f.call(_,d),_[d])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(M,Y,s){var L=M("./_to-iobject"),p=M("./_object-gopn").f,A={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(S){try{return p(S)}catch(T){return b.slice()}};Y.exports.f=function(T){return b&&A.call(T)=="[object Window]"?y(T):p(L(T))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(M,Y,s){var L=M("./_object-keys-internal"),p=M("./_enum-bug-keys").concat("length","prototype");s.f=Object.getOwnPropertyNames||function(b){return L(b,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(M,Y,s){s.f=Object.getOwnPropertySymbols},{}],138:[function(M,Y,s){var L=M("./_has"),p=M("./_to-object"),A=M("./_shared-key")("IE_PROTO"),b=Object.prototype;Y.exports=Object.getPrototypeOf||function(y){return y=p(y),L(y,A)?y[A]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?b:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(M,Y,s){var L=M("./_has"),p=M("./_to-iobject"),A=M("./_array-includes")(!1),b=M("./_shared-key")("IE_PROTO");Y.exports=function(y,S){var T=p(y),h=0,_=[],d;for(d in T)d!=b&&(L(T,d)&&_.push(d));for(;S.length>h;)L(T,d=S[h++])&&(~A(_,d)||_.push(d));return _}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(M,Y,s){var L=M("./_object-keys-internal"),p=M("./_enum-bug-keys");Y.exports=Object.keys||function(b){return L(b,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(M,Y,s){s.f={}.propertyIsEnumerable},{}],142:[function(M,Y,s){var L=M("./_export"),p=M("./_core"),A=M("./_fails");Y.exports=function(b,y){var S=(p.Object||{})[b]||Object[b],T={};T[b]=y(S),L(L.S+L.F*A(function(){S(1)}),"Object",T)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(M,Y,s){var L=M("./_descriptors"),p=M("./_object-keys"),A=M("./_to-iobject"),b=M("./_object-pie").f;Y.exports=function(y){return function(S){for(var T=A(S),h=p(T),_=h.length,d=0,r=[],c;_>d;)c=h[d++],(!L||b.call(T,c))&&r.push(y?[c,T[c]]:T[c]);return r}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(M,Y,s){Y.exports=function(L){try{return{e:!1,v:L()}}catch(p){return{e:!0,v:p}}}},{}],145:[function(M,Y,s){var L=M("./_an-object"),p=M("./_is-object"),A=M("./_new-promise-capability");Y.exports=function(b,y){if(L(b),p(y)&&y.constructor===b)return y;var S=A.f(b),T=S.resolve;return T(y),S.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(M,Y,s){Y.exports=function(L,p){return{enumerable:!(L&1),configurable:!(L&2),writable:!(L&4),value:p}}},{}],147:[function(M,Y,s){var L=M("./_hide");Y.exports=function(p,A,b){for(var y in A)b&&p[y]?p[y]=A[y]:L(p,y,A[y]);return p}},{"./_hide":112}],148:[function(M,Y,s){Y.exports=M("./_hide")},{"./_hide":112}],149:[function(M,Y,s){"use strict";var L=M("./_global"),p=M("./_core"),A=M("./_object-dp"),b=M("./_descriptors"),y=M("./_wks")("species");Y.exports=function(S){var T=typeof p[S]=="function"?p[S]:L[S];b&&T&&!T[y]&&A.f(T,y,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(M,Y,s){var L=M("./_object-dp").f,p=M("./_has"),A=M("./_wks")("toStringTag");Y.exports=function(b,y,S){b&&!p(b=S?b:b.prototype,A)&&L(b,A,{configurable:!0,value:y})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(M,Y,s){var L=M("./_shared")("keys"),p=M("./_uid");Y.exports=function(A){return L[A]||(L[A]=p(A))}},{"./_shared":152,"./_uid":162}],152:[function(M,Y,s){var L=M("./_core"),p=M("./_global"),A="__core-js_shared__",b=p[A]||(p[A]={});(Y.exports=function(y,S){return b[y]||(b[y]=S!==void 0?S:{})})("versions",[]).push({version:L.version,mode:M("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(M,Y,s){var L=M("./_an-object"),p=M("./_a-function"),A=M("./_wks")("species");Y.exports=function(b,y){var S=L(b).constructor,T;return S===void 0||(T=L(S)[A])==null?y:p(T)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(M,Y,s){var L=M("./_to-integer"),p=M("./_defined");Y.exports=function(A){return function(b,y){var S=String(p(b)),T=L(y),h=S.length,_,d;return T<0||T>=h?A?"":void 0:(_=S.charCodeAt(T),_<55296||_>56319||T+1===h||(d=S.charCodeAt(T+1))<56320||d>57343?A?S.charAt(T):_:A?S.slice(T,T+2):(_-55296<<10)+(d-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(M,Y,s){var L=M("./_ctx"),p=M("./_invoke"),A=M("./_html"),b=M("./_dom-create"),y=M("./_global"),S=y.process,T=y.setImmediate,h=y.clearImmediate,_=y.MessageChannel,d=y.Dispatch,r=0,c={},t="onreadystatechange",a,n,i,f=function(){var o=+this;if(c.hasOwnProperty(o)){var m=c[o];delete c[o],m()}},l=function(o){f.call(o.data)};(!T||!h)&&(T=function(m){for(var w=[],C=1;arguments.length>C;)w.push(arguments[C++]);return c[++r]=function(){p(typeof m=="function"?m:Function(m),w)},a(r),r},h=function(m){delete c[m]},M("./_cof")(S)=="process"?a=function(o){S.nextTick(L(f,o,1))}:d&&d.now?a=function(o){d.now(L(f,o,1))}:_?(n=new _,i=n.port2,n.port1.onmessage=l,a=L(i.postMessage,i,1)):y.addEventListener&&typeof postMessage=="function"&&!y.importScripts?(a=function(o){y.postMessage(o+"","*")},y.addEventListener("message",l,!1)):t in b("script")?a=function(o){A.appendChild(b("script"))[t]=function(){A.removeChild(this),f.call(o)}}:a=function(o){setTimeout(L(f,o,1),0)}),Y.exports={set:T,clear:h}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(M,Y,s){var L=M("./_to-integer"),p=Math.max,A=Math.min;Y.exports=function(b,y){return b=L(b),b<0?p(b+y,0):A(b,y)}},{"./_to-integer":157}],157:[function(M,Y,s){var L=Math.ceil,p=Math.floor;Y.exports=function(A){return isNaN(A=+A)?0:(A>0?p:L)(A)}},{}],158:[function(M,Y,s){var L=M("./_iobject"),p=M("./_defined");Y.exports=function(A){return L(p(A))}},{"./_defined":102,"./_iobject":116}],159:[function(M,Y,s){var L=M("./_to-integer"),p=Math.min;Y.exports=function(A){return A>0?p(L(A),9007199254740991):0}},{"./_to-integer":157}],160:[function(M,Y,s){var L=M("./_defined");Y.exports=function(p){return Object(L(p))}},{"./_defined":102}],161:[function(M,Y,s){var L=M("./_is-object");Y.exports=function(p,A){if(!L(p))return p;var b,y;if(A&&typeof(b=p.toString)=="function"&&!L(y=b.call(p)))return y;if(typeof(b=p.valueOf)=="function"&&!L(y=b.call(p)))return y;if(!A&&typeof(b=p.toString)=="function"&&!L(y=b.call(p)))return y;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(M,Y,s){var L=0,p=Math.random();Y.exports=function(A){return"Symbol(".concat(A===void 0?"":A,")_",(++L+p).toString(36))}},{}],163:[function(M,Y,s){var L=M("./_global"),p=L.navigator;Y.exports=p&&p.userAgent||""},{"./_global":110}],164:[function(M,Y,s){var L=M("./_global"),p=M("./_core"),A=M("./_library"),b=M("./_wks-ext"),y=M("./_object-dp").f;Y.exports=function(S){var T=p.Symbol||(p.Symbol=A?{}:L.Symbol||{});S.charAt(0)!="_"&&!(S in T)&&y(T,S,{value:b.f(S)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(M,Y,s){s.f=M("./_wks")},{"./_wks":166}],166:[function(M,Y,s){var L=M("./_shared")("wks"),p=M("./_uid"),A=M("./_global").Symbol,b=typeof A=="function",y=Y.exports=function(S){return L[S]||(L[S]=b&&A[S]||(b?A:p)("Symbol."+S))};y.store=L},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(M,Y,s){var L=M("./_classof"),p=M("./_wks")("iterator"),A=M("./_iterators");Y.exports=M("./_core").getIteratorMethod=function(b){if(b!=null)return b[p]||b["@@iterator"]||A[L(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(M,Y,s){"use strict";var L=M("./_ctx"),p=M("./_export"),A=M("./_to-object"),b=M("./_iter-call"),y=M("./_is-array-iter"),S=M("./_to-length"),T=M("./_create-property"),h=M("./core.get-iterator-method");p(p.S+p.F*!M("./_iter-detect")(function(_){Array.from(_)}),"Array",{from:function(d){var r=A(d),c=typeof this=="function"?this:Array,t=arguments.length,a=t>1?arguments[1]:void 0,n=a!==void 0,i=0,f=h(r),l,o,m,w;if(n&&(a=L(a,t>2?arguments[2]:void 0,2)),f!=null&&!(c==Array&&y(f)))for(w=f.call(r),o=new c;!(m=w.next()).done;i++)T(o,i,n?b(w,a,[m.value,i],!0):m.value);else for(l=S(r.length),o=new c(l);l>i;i++)T(o,i,n?a(r[i],i):r[i]);return o.length=i,o}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(M,Y,s){"use strict";var L=M("./_add-to-unscopables"),p=M("./_iter-step"),A=M("./_iterators"),b=M("./_to-iobject");Y.exports=M("./_iter-define")(Array,"Array",function(y,S){this._t=b(y),this._i=0,this._k=S},function(){var y=this._t,S=this._k,T=this._i++;return!y||T>=y.length?(this._t=void 0,p(1)):S=="keys"?p(0,T):S=="values"?p(0,y[T]):p(0,[T,y[T]])},"values"),A.Arguments=A.Array,L("keys"),L("values"),L("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(M,Y,s){"use strict";var L=M("./_is-object"),p=M("./_object-gpo"),A=M("./_wks")("hasInstance"),b=Function.prototype;A in b||M("./_object-dp").f(b,A,{value:function(y){if(typeof this!="function"||!L(y))return!1;if(!L(this.prototype))return y instanceof this;for(;y=p(y);)if(this.prototype===y)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(M,Y,s){var L=M("./_export");L(L.S+L.F,"Object",{assign:M("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(M,Y,s){var L=M("./_export");L(L.S,"Object",{create:M("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(M,Y,s){var L=M("./_export");L(L.S+L.F*!M("./_descriptors"),"Object",{defineProperty:M("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(M,Y,s){M("./_object-sap")("getOwnPropertyNames",function(){return M("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(M,Y,s){var L=M("./_to-object"),p=M("./_object-gpo");M("./_object-sap")("getPrototypeOf",function(){return function(b){return p(L(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(M,Y,s){var L=M("./_to-object"),p=M("./_object-keys");M("./_object-sap")("keys",function(){return function(b){return p(L(b))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(M,Y,s){arguments[4][71][0].apply(s,arguments)},{dup:71}],178:[function(M,Y,s){"use strict";var L=M("./_library"),p=M("./_global"),A=M("./_ctx"),b=M("./_classof"),y=M("./_export"),S=M("./_is-object"),T=M("./_a-function"),h=M("./_an-instance"),_=M("./_for-of"),d=M("./_species-constructor"),r=M("./_task").set,c=M("./_microtask")(),t=M("./_new-promise-capability"),a=M("./_perform"),n=M("./_user-agent"),i=M("./_promise-resolve"),f="Promise",l=p.TypeError,o=p.process,m=o&&o.versions,w=m&&m.v8||"",C=p[f],v=b(o)=="process",P=function(){},R,E,x,g,O=E=t.f,I=!!function(){try{var k=C.resolve(1),G=(k.constructor={})[M("./_wks")("species")]=function(ne){ne(P,P)};return(v||typeof PromiseRejectionEvent=="function")&&k.then(P)instanceof G&&w.indexOf("6.6")!==0&&n.indexOf("Chrome/66")===-1}catch(ne){}}(),D=function(k){var G;return S(k)&&typeof(G=k.then)=="function"?G:!1},N=function(k,G){if(k._n)return;k._n=!0;var ne=k._c;c(function(){for(var fe=k._v,de=k._s==1,Ee=0,we=function(ce){var be=de?ce.ok:ce.fail,ve=ce.resolve,ue=ce.reject,se=ce.domain,q,me,re;try{be?(de||(k._h==2&&W(k),k._h=1),be===!0?q=fe:(se&&se.enter(),q=be(fe),se&&(se.exit(),re=!0)),q===ce.promise?ue(l("Promise-chain cycle")):(me=D(q))?me.call(q,ve,ue):ve(q)):ue(fe)}catch(ie){se&&!re&&se.exit(),ue(ie)}};ne.length>Ee;)we(ne[Ee++]);k._c=[],k._n=!1,G&&!k._h&&V(k)})},V=function(k){r.call(p,function(){var G=k._v,ne=F(k),fe,de,Ee;if(ne&&(fe=a(function(){v?o.emit("unhandledRejection",G,k):(de=p.onunhandledrejection)?de({promise:k,reason:G}):(Ee=p.console)&&Ee.error&&Ee.error("Unhandled promise rejection",G)}),k._h=v||F(k)?2:1),k._a=void 0,ne&&fe.e)throw fe.v})},F=function(k){return k._h!==1&&(k._a||k._c).length===0},W=function(k){r.call(p,function(){var G;v?o.emit("rejectionHandled",k):(G=p.onrejectionhandled)&&G({promise:k,reason:k._v})})},K=function(k){var G=this;if(G._d)return;G._d=!0,G=G._w||G,G._v=k,G._s=2,G._a||(G._a=G._c.slice()),N(G,!0)},B=function(k){var G=this,ne;if(G._d)return;G._d=!0,G=G._w||G;try{if(G===k)throw l("Promise can't be resolved itself");(ne=D(k))?c(function(){var fe={_w:G,_d:!1};try{ne.call(k,A(B,fe,1),A(K,fe,1))}catch(de){K.call(fe,de)}}):(G._v=k,G._s=1,N(G,!1))}catch(fe){K.call({_w:G,_d:!1},fe)}};I||(C=function(G){h(this,C,f,"_h"),T(G),R.call(this);try{G(A(B,this,1),A(K,this,1))}catch(ne){K.call(this,ne)}},R=function(G){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},R.prototype=M("./_redefine-all")(C.prototype,{then:function(G,ne){var fe=O(d(this,C));return fe.ok=typeof G=="function"?G:!0,fe.fail=typeof ne=="function"&&ne,fe.domain=v?o.domain:void 0,this._c.push(fe),this._a&&this._a.push(fe),this._s&&N(this,!1),fe.promise},catch:function(k){return this.then(void 0,k)}}),x=function(){var k=new R;this.promise=k,this.resolve=A(B,k,1),this.reject=A(K,k,1)},t.f=O=function(k){return k===C||k===g?new x(k):E(k)}),y(y.G+y.W+y.F*!I,{Promise:C}),M("./_set-to-string-tag")(C,f),M("./_set-species")(f),g=M("./_core")[f],y(y.S+y.F*!I,f,{reject:function(G){var ne=O(this),fe=ne.reject;return fe(G),ne.promise}}),y(y.S+y.F*(L||!I),f,{resolve:function(G){return i(L&&this===g?C:this,G)}}),y(y.S+y.F*!(I&&M("./_iter-detect")(function(k){C.all(k).catch(P)})),f,{all:function(G){var ne=this,fe=O(ne),de=fe.resolve,Ee=fe.reject,we=a(function(){var ce=[],be=0,ve=1;_(G,!1,function(ue){var se=be++,q=!1;ce.push(void 0),ve++,ne.resolve(ue).then(function(me){if(q)return;q=!0,ce[se]=me,--ve||de(ce)},Ee)}),--ve||de(ce)});return we.e&&Ee(we.v),fe.promise},race:function(G){var ne=this,fe=O(ne),de=fe.reject,Ee=a(function(){_(G,!1,function(we){ne.resolve(we).then(fe.resolve,de)})});return Ee.e&&de(Ee.v),fe.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(M,Y,s){var L=M("./_export"),p=M("./_to-absolute-index"),A=String.fromCharCode,b=String.fromCodePoint;L(L.S+L.F*(!!b&&b.length!=1),"String",{fromCodePoint:function(S){for(var T=[],h=arguments.length,_=0,d;h>_;){if(d=+arguments[_++],p(d,1114111)!==d)throw RangeError(d+" is not a valid code point");T.push(d<65536?A(d):A(((d-=65536)>>10)+55296,d%1024+56320))}return T.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(M,Y,s){"use strict";var L=M("./_string-at")(!0);M("./_iter-define")(String,"String",function(p){this._t=String(p),this._i=0},function(){var p=this._t,A=this._i,b;return A>=p.length?{value:void 0,done:!0}:(b=L(p,A),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(M,Y,s){"use strict";var L=M("./_global"),p=M("./_has"),A=M("./_descriptors"),b=M("./_export"),y=M("./_redefine"),S=M("./_meta").KEY,T=M("./_fails"),h=M("./_shared"),_=M("./_set-to-string-tag"),d=M("./_uid"),r=M("./_wks"),c=M("./_wks-ext"),t=M("./_wks-define"),a=M("./_enum-keys"),n=M("./_is-array"),i=M("./_an-object"),f=M("./_is-object"),l=M("./_to-object"),o=M("./_to-iobject"),m=M("./_to-primitive"),w=M("./_property-desc"),C=M("./_object-create"),v=M("./_object-gopn-ext"),P=M("./_object-gopd"),R=M("./_object-gops"),E=M("./_object-dp"),x=M("./_object-keys"),g=P.f,O=E.f,I=v.f,D=L.Symbol,N=L.JSON,V=N&&N.stringify,F="prototype",W=r("_hidden"),K=r("toPrimitive"),B={}.propertyIsEnumerable,k=h("symbol-registry"),G=h("symbols"),ne=h("op-symbols"),fe=Object[F],de=typeof D=="function"&&!!R.f,Ee=L.QObject,we=!Ee||!Ee[F]||!Ee[F].findChild,ce=A&&T(function(){return C(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a!=7})?function(Se,ke,rt){var ot=g(fe,ke);ot&&delete fe[ke],O(Se,ke,rt),ot&&Se!==fe&&O(fe,ke,ot)}:O,be=function(Se){var ke=G[Se]=C(D[F]);return ke._k=Se,ke},ve=de&&typeof D.iterator=="symbol"?function(Se){return typeof Se=="symbol"}:function(Se){return Se instanceof D},ue=function(ke,rt,ot){return ke===fe&&ue(ne,rt,ot),i(ke),rt=m(rt,!0),i(ot),p(G,rt)?(ot.enumerable?(p(ke,W)&&ke[W][rt]&&(ke[W][rt]=!1),ot=C(ot,{enumerable:w(0,!1)})):(p(ke,W)||O(ke,W,w(1,{})),ke[W][rt]=!0),ce(ke,rt,ot)):O(ke,rt,ot)},se=function(ke,rt){i(ke);for(var ot=a(rt=o(rt)),gt=0,Et=ot.length,Ct;Et>gt;)ue(ke,Ct=ot[gt++],rt[Ct]);return ke},q=function(ke,rt){return rt===void 0?C(ke):se(C(ke),rt)},me=function(ke){var rt=B.call(this,ke=m(ke,!0));return this===fe&&p(G,ke)&&!p(ne,ke)?!1:rt||!p(this,ke)||!p(G,ke)||p(this,W)&&this[W][ke]?rt:!0},re=function(ke,rt){if(ke=o(ke),rt=m(rt,!0),ke===fe&&p(G,rt)&&!p(ne,rt))return;var ot=g(ke,rt);return ot&&p(G,rt)&&!(p(ke,W)&&ke[W][rt])&&(ot.enumerable=!0),ot},ie=function(ke){for(var rt=I(o(ke)),ot=[],gt=0,Et;rt.length>gt;)!p(G,Et=rt[gt++])&&Et!=W&&Et!=S&&ot.push(Et);return ot},Oe=function(ke){for(var rt=ke===fe,ot=I(rt?ne:o(ke)),gt=[],Et=0,Ct;ot.length>Et;)p(G,Ct=ot[Et++])&&(rt?p(fe,Ct):!0)&&gt.push(G[Ct]);return gt};de||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var ke=d(arguments.length>0?arguments[0]:void 0),rt=function(ot){this===fe&&rt.call(ne,ot),p(this,W)&&p(this[W],ke)&&(this[W][ke]=!1),ce(this,ke,w(1,ot))};return A&&we&&ce(fe,ke,{configurable:!0,set:rt}),be(ke)},y(D[F],"toString",function(){return this._k}),P.f=re,E.f=ue,M("./_object-gopn").f=v.f=ie,M("./_object-pie").f=me,R.f=Oe,A&&!M("./_library")&&y(fe,"propertyIsEnumerable",me,!0),c.f=function(Se){return be(r(Se))}),b(b.G+b.W+b.F*!de,{Symbol:D});for(var le="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),$=0;le.length>$;)r(le[$++]);for(var J=x(r.store),te=0;J.length>te;)t(J[te++]);b(b.S+b.F*!de,"Symbol",{for:function(Se){return p(k,Se+="")?k[Se]:k[Se]=D(Se)},keyFor:function(ke){if(!ve(ke))throw TypeError(ke+" is not a symbol!");for(var rt in k)if(k[rt]===ke)return rt},useSetter:function(){we=!0},useSimple:function(){we=!1}}),b(b.S+b.F*!de,"Object",{create:q,defineProperty:ue,defineProperties:se,getOwnPropertyDescriptor:re,getOwnPropertyNames:ie,getOwnPropertySymbols:Oe});var Ae=T(function(){R.f(1)});b(b.S+b.F*Ae,"Object",{getOwnPropertySymbols:function(ke){return R.f(l(ke))}}),N&&b(b.S+b.F*(!de||T(function(){var Se=D();return V([Se])!="[null]"||V({a:Se})!="{}"||V(Object(Se))!="{}"})),"JSON",{stringify:function(ke){for(var rt=[ke],ot=1,gt,Et;arguments.length>ot;)rt.push(arguments[ot++]);return Et=gt=rt[1],!f(gt)&&ke===void 0||ve(ke)?void 0:(n(gt)||(gt=function(Ct,wt){if(typeof Et=="function"&&(wt=Et.call(this,Ct,wt)),!ve(wt))return wt}),rt[1]=gt,V.apply(N,rt))}}),D[F][K]||M("./_hide")(D[F],K,D[F].valueOf),_(D,"Symbol"),_(Math,"Math",!0),_(L.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(M,Y,s){var L=M("./_export"),p=M("./_object-to-array")(!0);L(L.S,"Object",{entries:function(b){return p(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(M,Y,s){"use strict";var L=M("./_export"),p=M("./_core"),A=M("./_global"),b=M("./_species-constructor"),y=M("./_promise-resolve");L(L.P+L.R,"Promise",{finally:function(S){var T=b(this,p.Promise||A.Promise),h=typeof S=="function";return this.then(h?function(_){return y(T,S()).then(function(){return _})}:S,h?function(_){return y(T,S()).then(function(){throw _})}:S)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(M,Y,s){"use strict";var L=M("./_export"),p=M("./_new-promise-capability"),A=M("./_perform");L(L.S,"Promise",{try:function(b){var y=p.f(this),S=A(b);return(S.e?y.reject:y.resolve)(S.v),y.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(M,Y,s){M("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(M,Y,s){M("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(M,Y,s){M("./es6.array.iterator");for(var L=M("./_global"),p=M("./_hide"),A=M("./_iterators"),b=M("./_wks")("toStringTag"),y="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),S=0;S<y.length;S++){var T=y[S],h=L[T],_=h&&h.prototype;_&&!_[b]&&p(_,b,T),A[T]=A.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(M,Y,s){var L=M("./_export"),p=M("./_task");L(L.G+L.B,{setImmediate:p.set,clearImmediate:p.clear})},{"./_export":107,"./_task":155}],189:[function(M,Y,s){(function(L){"use strict";var p=M("babel-runtime/helpers/typeof"),A=b(p);function b(m){return m&&m.__esModule?m:{default:m}}function y(m){return Array.isArray?Array.isArray(m):o(m)==="[object Array]"}s.isArray=y;function S(m){return typeof m=="boolean"}s.isBoolean=S;function T(m){return m===null}s.isNull=T;function h(m){return m==null}s.isNullOrUndefined=h;function _(m){return typeof m=="number"}s.isNumber=_;function d(m){return typeof m=="string"}s.isString=d;function r(m){return(typeof m=="undefined"?"undefined":(0,A.default)(m))==="symbol"}s.isSymbol=r;function c(m){return m===void 0}s.isUndefined=c;function t(m){return o(m)==="[object RegExp]"}s.isRegExp=t;function a(m){return(typeof m=="undefined"?"undefined":(0,A.default)(m))==="object"&&m!==null}s.isObject=a;function n(m){return o(m)==="[object Date]"}s.isDate=n;function i(m){return o(m)==="[object Error]"||m instanceof Error}s.isError=i;function f(m){return typeof m=="function"}s.isFunction=f;function l(m){return m===null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||(typeof m=="undefined"?"undefined":(0,A.default)(m))==="symbol"||typeof m=="undefined"}s.isPrimitive=l,s.isBuffer=L.isBuffer;function o(m){return Object.prototype.toString.call(m)}}).call(this,{isBuffer:M("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(M,Y,s){"use strict";var L=M("babel-runtime/helpers/typeof"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(b){"use strict";var y=function(){var d=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,r=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g;return function(t,a,n,i){if(arguments.length===1&&_(t)==="string"&&!/\d/.test(t)&&(a=t,t=void 0),t=t||new Date,t instanceof Date||(t=new Date(t)),isNaN(t))throw TypeError("Invalid date");a=String(y.masks[a]||a||y.masks.default);var f=a.slice(0,4);(f==="UTC:"||f==="GMT:")&&(a=a.slice(4),n=!0,f==="GMT:"&&(i=!0));var l=n?"getUTC":"get",o=t[l+"Date"](),m=t[l+"Day"](),w=t[l+"Month"](),C=t[l+"FullYear"](),v=t[l+"Hours"](),P=t[l+"Minutes"](),R=t[l+"Seconds"](),E=t[l+"Milliseconds"](),x=n?0:t.getTimezoneOffset(),g=T(t),O=h(t),I={d:o,dd:S(o),ddd:y.i18n.dayNames[m],dddd:y.i18n.dayNames[m+7],m:w+1,mm:S(w+1),mmm:y.i18n.monthNames[w],mmmm:y.i18n.monthNames[w+12],yy:String(C).slice(2),yyyy:C,h:v%12||12,hh:S(v%12||12),H:v,HH:S(v),M:P,MM:S(P),s:R,ss:S(R),l:S(E,3),L:S(Math.round(E/10)),t:v<12?"a":"p",tt:v<12?"am":"pm",T:v<12?"A":"P",TT:v<12?"AM":"PM",Z:i?"GMT":n?"UTC":(String(t).match(r)||[""]).pop().replace(c,""),o:(x>0?"-":"+")+S(Math.floor(Math.abs(x)/60)*100+Math.abs(x)%60,4),S:["th","st","nd","rd"][o%10>3?0:(o%100-o%10!=10)*o%10],W:g,N:O};return a.replace(d,function(D){return D in I?I[D]:D.slice(1,D.length-1)})}}();y.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},y.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function S(d,r){for(d=String(d),r=r||2;d.length<r;)d="0"+d;return d}function T(d){var r=new Date(d.getFullYear(),d.getMonth(),d.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var c=new Date(r.getFullYear(),0,4);c.setDate(c.getDate()-(c.getDay()+6)%7+3);var t=r.getTimezoneOffset()-c.getTimezoneOffset();r.setHours(r.getHours()-t);var a=(r-c)/(864e5*7);return 1+Math.floor(a)}function h(d){var r=d.getDay();return r===0&&(r=7),r}function _(d){return d===null?"null":d===void 0?"undefined":(typeof d=="undefined"?"undefined":(0,p.default)(d))!=="object"?typeof d=="undefined"?"undefined":(0,p.default)(d):Array.isArray(d)?"array":{}.toString.call(d).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return y}):(typeof s=="undefined"?"undefined":(0,p.default)(s))==="object"?Y.exports=y:b.dateFormat=y})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(M,Y,s){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var L=/["'&<>]/;Y.exports=p;function p(A){var b=""+A,y=L.exec(b);if(!y)return b;var S,T="",h=0,_=0;for(h=y.index;h<b.length;h++){switch(b.charCodeAt(h)){case 34:S="&quot;";break;case 38:S="&amp;";break;case 39:S="&#39;";break;case 60:S="&lt;";break;case 62:S="&gt;";break;default:continue}_!==h&&(T+=b.substring(_,h)),_=h+1,T+=S}return _!==h?T+b.substring(_,h):T}},{}],192:[function(M,Y,s){function L(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}Y.exports=L,L.EventEmitter=L,L.prototype._events=void 0,L.prototype._maxListeners=void 0,L.defaultMaxListeners=10,L.prototype.setMaxListeners=function(S){if(!A(S)||S<0||isNaN(S))throw TypeError("n must be a positive number");return this._maxListeners=S,this},L.prototype.emit=function(S){var T,h,_,d,r,c;if(this._events||(this._events={}),S==="error"&&(!this._events.error||b(this._events.error)&&!this._events.error.length)){if(T=arguments[1],T instanceof Error)throw T;var t=new Error('Uncaught, unspecified "error" event. ('+T+")");throw t.context=T,t}if(h=this._events[S],y(h))return!1;if(p(h))switch(arguments.length){case 1:h.call(this);break;case 2:h.call(this,arguments[1]);break;case 3:h.call(this,arguments[1],arguments[2]);break;default:d=Array.prototype.slice.call(arguments,1),h.apply(this,d)}else if(b(h))for(d=Array.prototype.slice.call(arguments,1),c=h.slice(),_=c.length,r=0;r<_;r++)c[r].apply(this,d);return!0},L.prototype.addListener=function(S,T){var h;if(!p(T))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",S,p(T.listener)?T.listener:T),this._events[S]?b(this._events[S])?this._events[S].push(T):this._events[S]=[this._events[S],T]:this._events[S]=T,b(this._events[S])&&!this._events[S].warned&&(y(this._maxListeners)?h=L.defaultMaxListeners:h=this._maxListeners,h&&h>0&&this._events[S].length>h&&(this._events[S].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[S].length),typeof console.trace=="function"&&console.trace())),this},L.prototype.on=L.prototype.addListener,L.prototype.once=function(S,T){if(!p(T))throw TypeError("listener must be a function");var h=!1;function _(){this.removeListener(S,_),h||(h=!0,T.apply(this,arguments))}return _.listener=T,this.on(S,_),this},L.prototype.removeListener=function(S,T){var h,_,d,r;if(!p(T))throw TypeError("listener must be a function");if(!this._events||!this._events[S])return this;if(h=this._events[S],d=h.length,_=-1,h===T||p(h.listener)&&h.listener===T)delete this._events[S],this._events.removeListener&&this.emit("removeListener",S,T);else if(b(h)){for(r=d;r-- >0;)if(h[r]===T||h[r].listener&&h[r].listener===T){_=r;break}if(_<0)return this;h.length===1?(h.length=0,delete this._events[S]):h.splice(_,1),this._events.removeListener&&this.emit("removeListener",S,T)}return this},L.prototype.removeAllListeners=function(S){var T,h;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[S]&&delete this._events[S],this;if(arguments.length===0){for(T in this._events){if(T==="removeListener")continue;this.removeAllListeners(T)}return this.removeAllListeners("removeListener"),this._events={},this}if(h=this._events[S],p(h))this.removeListener(S,h);else if(h)for(;h.length;)this.removeListener(S,h[h.length-1]);return delete this._events[S],this},L.prototype.listeners=function(S){var T;return!this._events||!this._events[S]?T=[]:p(this._events[S])?T=[this._events[S]]:T=this._events[S].slice(),T},L.prototype.listenerCount=function(S){if(this._events){var T=this._events[S];if(p(T))return 1;if(T)return T.length}return 0},L.listenerCount=function(S,T){return S.listenerCount(T)};function p(S){return typeof S=="function"}function A(S){return typeof S=="number"}function b(S){return typeof S=="object"&&S!==null}function y(S){return S===void 0}},{}],193:[function(M,Y,s){var L=M("http"),p=Y.exports;for(var A in L)L.hasOwnProperty(A)&&(p[A]=L[A]);p.request=function(b,y){return b||(b={}),b.scheme="https",b.protocol="https:",L.request.call(this,b,y)}},{http:231}],194:[function(M,Y,s){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var L=M("util"),p=M("ms");Y.exports=function(A){if(typeof A=="number")return A;var b=p(A);if(b===void 0){var y=new Error(L.format("humanize-ms(%j) result undefined",A));console.warn(y.stack)}return b}},{ms:204,util:243}],195:[function(M,Y,s){s.read=function(L,p,A,b,y){var S,T,h=y*8-b-1,_=(1<<h)-1,d=_>>1,r=-7,c=A?y-1:0,t=A?-1:1,a=L[p+c];for(c+=t,S=a&(1<<-r)-1,a>>=-r,r+=h;r>0;S=S*256+L[p+c],c+=t,r-=8);for(T=S&(1<<-r)-1,S>>=-r,r+=b;r>0;T=T*256+L[p+c],c+=t,r-=8);if(S===0)S=1-d;else{if(S===_)return T?NaN:(a?-1:1)*Infinity;T=T+Math.pow(2,b),S=S-d}return(a?-1:1)*T*Math.pow(2,S-b)},s.write=function(L,p,A,b,y,S){var T,h,_,d=S*8-y-1,r=(1<<d)-1,c=r>>1,t=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=b?0:S-1,n=b?1:-1,i=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===Infinity?(h=isNaN(p)?1:0,T=r):(T=Math.floor(Math.log(p)/Math.LN2),p*(_=Math.pow(2,-T))<1&&(T--,_*=2),T+c>=1?p+=t/_:p+=t*Math.pow(2,1-c),p*_>=2&&(T++,_/=2),T+c>=r?(h=0,T=r):T+c>=1?(h=(p*_-1)*Math.pow(2,y),T=T+c):(h=p*Math.pow(2,c-1)*Math.pow(2,y),T=0));y>=8;L[A+a]=h&255,a+=n,h/=256,y-=8);for(T=T<<y|h,d+=y;d>0;L[A+a]=T&255,a+=n,T/=256,d-=8);L[A+a-n]|=i*128}},{}],196:[function(M,Y,s){typeof Object.create=="function"?Y.exports=function(p,A){A&&(p.super_=A,p.prototype=Object.create(A.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:Y.exports=function(p,A){if(A){p.super_=A;var b=function(){};b.prototype=A.prototype,p.prototype=new b,p.prototype.constructor=p}}},{}],197:[function(M,Y,s){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/Y.exports=function(A){return A!=null&&(L(A)||p(A)||!!A._isBuffer)};function L(A){return!!A.constructor&&typeof A.constructor.isBuffer=="function"&&A.constructor.isBuffer(A)}function p(A){return typeof A.readFloatLE=="function"&&typeof A.slice=="function"&&L(A.slice(0,0))}},{}],198:[function(M,Y,s){var L={}.toString;Y.exports=Array.isArray||function(p){return L.call(p)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(M,Y){typeof exports=="object"&&typeof module!="undefined"?module.exports=Y(M):typeof define=="function"&&define.amd?define(Y):Y(M)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(M){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(M){for(var Y={},s=0,L=M.length;s<L;s++)Y[M.charAt(s)]=s;return Y}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(M){if(M.length<2){var Y=M.charCodeAt(0);return Y<128?M:Y<2048?fromCharCode(192|Y>>>6)+fromCharCode(128|Y&63):fromCharCode(224|Y>>>12&15)+fromCharCode(128|Y>>>6&63)+fromCharCode(128|Y&63)}else{var Y=65536+(M.charCodeAt(0)-55296)*1024+(M.charCodeAt(1)-56320);return fromCharCode(240|Y>>>18&7)+fromCharCode(128|Y>>>12&63)+fromCharCode(128|Y>>>6&63)+fromCharCode(128|Y&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(M){return M.replace(re_utob,cb_utob)},cb_encode=function(M){var Y=[0,2,1][M.length%3],s=M.charCodeAt(0)<<16|(M.length>1?M.charCodeAt(1):0)<<8|(M.length>2?M.charCodeAt(2):0),L=[b64chars.charAt(s>>>18),b64chars.charAt(s>>>12&63),Y>=2?"=":b64chars.charAt(s>>>6&63),Y>=1?"=":b64chars.charAt(s&63)];return L.join("")},btoa=global.btoa?function(M){return global.btoa(M)}:function(M){return M.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(M){var Y=Object.prototype.toString.call(M)==="[object Uint8Array]";return Y?M.toString("base64"):btoa(utob(String(M)))},encode=function(M,Y){return Y?_encode(String(M)).replace(/[+\/]/g,function(s){return s=="+"?"-":"_"}).replace(/=/g,""):_encode(M)},encodeURI=function(M){return encode(M,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(M){switch(M.length){case 4:var Y=(7&M.charCodeAt(0))<<18|(63&M.charCodeAt(1))<<12|(63&M.charCodeAt(2))<<6|63&M.charCodeAt(3),s=Y-65536;return fromCharCode((s>>>10)+55296)+fromCharCode((s&1023)+56320);case 3:return fromCharCode((15&M.charCodeAt(0))<<12|(63&M.charCodeAt(1))<<6|63&M.charCodeAt(2));default:return fromCharCode((31&M.charCodeAt(0))<<6|63&M.charCodeAt(1))}},btou=function(M){return M.replace(re_btou,cb_btou)},cb_decode=function(M){var Y=M.length,s=Y%4,L=(Y>0?b64tab[M.charAt(0)]<<18:0)|(Y>1?b64tab[M.charAt(1)]<<12:0)|(Y>2?b64tab[M.charAt(2)]<<6:0)|(Y>3?b64tab[M.charAt(3)]:0),p=[fromCharCode(L>>>16),fromCharCode(L>>>8&255),fromCharCode(L&255)];return p.length-=[0,0,2,1][s],p.join("")},_atob=global.atob?function(M){return global.atob(M)}:function(M){return M.replace(/\S{1,4}/g,cb_decode)},atob=function(M){return _atob(String(M).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(M){return(M.constructor===buffer.constructor?M:buffer.from(M,"base64")).toString()}:function(M){return(M.constructor===buffer.constructor?M:new buffer(M,"base64")).toString()}:function(M){return btou(_atob(M))},decode=function(M){return _decode(String(M).replace(/[-_]/g,function(Y){return Y=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var M=global.Base64;return global.Base64=_Base64,M};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(M){return{value:M,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(M){return encode(this,M)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(M,Y,s){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";Y.exports=p;var L=Object.prototype.hasOwnProperty;function p(A,b,y){if(!A)throw new TypeError("argument dest is required");if(!b)throw new TypeError("argument src is required");return y===void 0&&(y=!0),Object.getOwnPropertyNames(b).forEach(function(T){if(!y&&L.call(A,T))return;var h=Object.getOwnPropertyDescriptor(b,T);Object.defineProperty(A,T,h)}),A}},{}],201:[function(M,Y,s){"use strict";function L(){this._types=Object.create(null),this._extensions=Object.create(null);for(var p=0;p<arguments.length;p++)this.define(arguments[p]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}L.prototype.define=function(p,A){for(var b in p){var y=p[b].map(function(h){return h.toLowerCase()});b=b.toLowerCase();for(var S=0;S<y.length;S++){var T=y[S];if(T[0]=="*")continue;if(!A&&T in this._types)throw new Error('Attempt to change mapping for "'+T+'" extension from "'+this._types[T]+'" to "'+b+'". Pass `force=true` to allow this, otherwise remove "'+T+'" from the list of extensions for "'+b+'".');this._types[T]=b}if(A||!this._extensions[b]){var T=y[0];this._extensions[b]=T[0]!="*"?T:T.substr(1)}}},L.prototype.getType=function(p){p=String(p);var A=p.replace(/^.*[/\\]/,"").toLowerCase(),b=A.replace(/^.*\./,"").toLowerCase(),y=A.length<p.length,S=b.length<A.length-1;return(S||!y)&&this._types[b]||null},L.prototype.getExtension=function(p){return p=/^\s*([^;\s]*)/.test(p)&&RegExp.$1,p&&this._extensions[p.toLowerCase()]||null},Y.exports=L},{}],202:[function(M,Y,s){"use strict";var L=M("./Mime");Y.exports=new L(M("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(M,Y,s){Y.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(M,Y,s){var L=1e3,p=L*60,A=p*60,b=A*24,y=b*7,S=b*365.25;Y.exports=function(r,c){c=c||{};var t=typeof r;if(t==="string"&&r.length>0)return T(r);if(t==="number"&&isFinite(r))return c.long?_(r):h(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function T(r){if(r=String(r),r.length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!c)return;var t=parseFloat(c[1]),a=(c[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*S;case"weeks":case"week":case"w":return t*y;case"days":case"day":case"d":return t*b;case"hours":case"hour":case"hrs":case"hr":case"h":return t*A;case"minutes":case"minute":case"mins":case"min":case"m":return t*p;case"seconds":case"second":case"secs":case"sec":case"s":return t*L;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}function h(r){var c=Math.abs(r);return c>=b?Math.round(r/b)+"d":c>=A?Math.round(r/A)+"h":c>=p?Math.round(r/p)+"m":c>=L?Math.round(r/L)+"s":r+"ms"}function _(r){var c=Math.abs(r);return c>=b?d(r,c,b,"day"):c>=A?d(r,c,A,"hour"):c>=p?d(r,c,p,"minute"):c>=L?d(r,c,L,"second"):r+" ms"}function d(r,c,t,a){var n=c>=t*1.5;return Math.round(r/t)+" "+a+(n?"s":"")}},{}],205:[function(M,Y,s){(function(L){function p(S,T){for(var h=0,_=S.length-1;_>=0;_--){var d=S[_];d==="."?S.splice(_,1):d===".."?(S.splice(_,1),h++):h&&(S.splice(_,1),h--)}if(T)for(;h--;h)S.unshift("..");return S}s.resolve=function(){for(var S="",T=!1,h=arguments.length-1;h>=-1&&!T;h--){var _=h>=0?arguments[h]:L.cwd();if(typeof _!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!_)continue;S=_+"/"+S,T=_.charAt(0)==="/"}return S=p(b(S.split("/"),function(d){return!!d}),!T).join("/"),(T?"/":"")+S||"."},s.normalize=function(S){var T=s.isAbsolute(S),h=y(S,-1)==="/";return S=p(b(S.split("/"),function(_){return!!_}),!T).join("/"),!S&&!T&&(S="."),S&&h&&(S+="/"),(T?"/":"")+S},s.isAbsolute=function(S){return S.charAt(0)==="/"},s.join=function(){var S=Array.prototype.slice.call(arguments,0);return s.normalize(b(S,function(T,h){if(typeof T!="string")throw new TypeError("Arguments to path.join must be strings");return T}).join("/"))},s.relative=function(S,T){S=s.resolve(S).substr(1),T=s.resolve(T).substr(1);function h(n){for(var i=0;i<n.length&&!(n[i]!=="");i++);for(var f=n.length-1;f>=0&&!(n[f]!=="");f--);return i>f?[]:n.slice(i,f-i+1)}for(var _=h(S.split("/")),d=h(T.split("/")),r=Math.min(_.length,d.length),c=r,t=0;t<r;t++)if(_[t]!==d[t]){c=t;break}for(var a=[],t=c;t<_.length;t++)a.push("..");return a=a.concat(d.slice(c)),a.join("/")},s.sep="/",s.delimiter=":",s.dirname=function(S){if(typeof S!="string"&&(S=S+""),S.length===0)return".";for(var T=S.charCodeAt(0),h=T===47,_=-1,d=!0,r=S.length-1;r>=1;--r)if(T=S.charCodeAt(r),T===47){if(!d){_=r;break}}else d=!1;return _===-1?h?"/":".":h&&_===1?"/":S.slice(0,_)};function A(S){typeof S!="string"&&(S=S+"");var T=0,h=-1,_=!0,d;for(d=S.length-1;d>=0;--d)if(S.charCodeAt(d)===47){if(!_){T=d+1;break}}else h===-1&&(_=!1,h=d+1);return h===-1?"":S.slice(T,h)}s.basename=function(S,T){var h=A(S);return T&&h.substr(-1*T.length)===T&&(h=h.substr(0,h.length-T.length)),h},s.extname=function(S){typeof S!="string"&&(S=S+"");for(var T=-1,h=0,_=-1,d=!0,r=0,c=S.length-1;c>=0;--c){var t=S.charCodeAt(c);if(t===47){if(!d){h=c+1;break}continue}_===-1&&(d=!1,_=c+1),t===46?T===-1?T=c:r!==1&&(r=1):T!==-1&&(r=-1)}return T===-1||_===-1||r===0||r===1&&T===_-1&&T===h+1?"":S.slice(T,_)};function b(S,T){if(S.filter)return S.filter(T);for(var h=[],_=0;_<S.length;_++)T(S[_],_,S)&&h.push(S[_]);return h}var y="ab".substr(-1)==="b"?function(S,T,h){return S.substr(T,h)}:function(S,T,h){return T<0&&(T=S.length+T),S.substr(T,h)}}).call(this,M("_process"))},{_process:208}],206:[function(M,Y,s){(function(L){/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var p={function:!0,object:!0},A=p[typeof window]&&window||this,b=A,y=p[typeof s]&&s,S=p[typeof Y]&&Y&&!Y.nodeType&&Y,T=y&&S&&typeof L=="object"&&L;T&&(T.global===T||T.window===T||T.self===T)&&(A=T);var h=Math.pow(2,53)-1,_=/\bOpera/,d=this,r=Object.prototype,c=r.hasOwnProperty,t=r.toString;function a(E){return E=String(E),E.charAt(0).toUpperCase()+E.slice(1)}function n(E,x,g){var O={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return x&&g&&/^Win/i.test(E)&&!/^Windows Phone /i.test(E)&&(O=O[/[\d.]+$/.exec(E)])&&(E="Windows "+O),E=String(E),x&&g&&(E=E.replace(RegExp(x,"i"),g)),E=f(E.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),E}function i(E,x){var g=-1,O=E?E.length:0;if(typeof O=="number"&&O>-1&&O<=h)for(;++g<O;)x(E[g],g,E);else l(E,x)}function f(E){return E=v(E),/^(?:webOS|i(?:OS|P))/.test(E)?E:a(E)}function l(E,x){for(var g in E)c.call(E,g)&&x(E[g],g,E)}function o(E){return E==null?a(E):t.call(E).slice(8,-1)}function m(E,x){var g=E!=null?typeof E[x]:"number";return!/^(?:boolean|number|string|undefined)$/.test(g)&&(g=="object"?!!E[x]:!0)}function w(E){return String(E).replace(/([ -])(?!$)/g,"$1?")}function C(E,x){var g=null;return i(E,function(O,I){g=x(g,O,I,E)}),g}function v(E){return String(E).replace(/^ +| +$/g,"")}function P(E){var x=A,g=E&&typeof E=="object"&&o(E)!="String";g&&(x=E,E=null);var O=x.navigator||{},I=O.userAgent||"";E||(E=I);var D=g||d==b,N=g?!!O.likeChrome:/\bChrome\b/.test(E)&&!/internal|\n/i.test(t.toString()),V="Object",F=g?V:"ScriptBridgingProxyObject",W=g?V:"Environment",K=g&&x.java?"JavaPackage":o(x.java),B=g?V:"RuntimeObject",k=/\bJava/.test(K)&&x.java,G=k&&o(x.environment)==W,ne=k?"a":"\u03B1",fe=k?"b":"\u03B2",de=x.document||{},Ee=x.operamini||x.opera,we=_.test(we=g&&Ee?Ee["[[Class]]"]:o(Ee))?we:Ee=null,ce,be=E,ve=[],ue=null,se=E==I,q=se&&Ee&&typeof Ee.version=="function"&&Ee.version(),me,re=J([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ie=Ae(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Oe=ke([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),le=te({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),$=Se(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function J(Et){return C(Et,function(Ct,wt){return Ct||RegExp("\\b"+(wt.pattern||w(wt))+"\\b","i").exec(E)&&(wt.label||wt)})}function te(Et){return C(Et,function(Ct,wt,Qe){return Ct||(wt[Oe]||wt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Oe)]||RegExp("\\b"+w(Qe)+"(?:\\b|\\w*\\d)","i").exec(E))&&Qe})}function Ae(Et){return C(Et,function(Ct,wt){return Ct||RegExp("\\b"+(wt.pattern||w(wt))+"\\b","i").exec(E)&&(wt.label||wt)})}function Se(Et){return C(Et,function(Ct,wt){var Qe=wt.pattern||w(wt);return!Ct&&(Ct=RegExp("\\b"+Qe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(E))&&(Ct=n(Ct,Qe,wt.label||wt)),Ct})}function ke(Et){return C(Et,function(Ct,wt){var Qe=wt.pattern||w(wt);return!Ct&&(Ct=RegExp("\\b"+Qe+" *\\d+[.\\w_]*","i").exec(E)||RegExp("\\b"+Qe+" *\\w+-[\\w]*","i").exec(E)||RegExp("\\b"+Qe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(E))&&((Ct=String(wt.label&&!RegExp(Qe,"i").test(wt.label)?wt.label:Ct).split("/"))[1]&&!/[\d.]+/.test(Ct[0])&&(Ct[0]+=" "+Ct[1]),wt=wt.label||wt,Ct=f(Ct[0].replace(RegExp(Qe,"i"),wt).replace(RegExp("; *(?:"+wt+"[_-])?","i")," ").replace(RegExp("("+wt+")[-_.]?(\\w)","i"),"$1 $2"))),Ct})}function rt(Et){return C(Et,function(Ct,wt){return Ct||(RegExp(wt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(E)||0)[1]||null})}function ot(){return this.description||""}if(re&&(re=[re]),le&&!Oe&&(Oe=ke([le])),(ce=/\bGoogle TV\b/.exec(Oe))&&(Oe=ce[0]),/\bSimulator\b/i.test(E)&&(Oe=(Oe?Oe+" ":"")+"Simulator"),ie=="Opera Mini"&&/\bOPiOS\b/.test(E)&&ve.push("running in Turbo/Uncompressed mode"),ie=="IE"&&/\blike iPhone OS\b/.test(E)?(ce=P(E.replace(/like iPhone OS/,"")),le=ce.manufacturer,Oe=ce.product):/^iP/.test(Oe)?(ie||(ie="Safari"),$="iOS"+((ce=/ OS ([\d_]+)/i.exec(E))?" "+ce[1].replace(/_/g,"."):"")):ie=="Konqueror"&&!/buntu/i.test($)?$="Kubuntu":le&&le!="Google"&&(/Chrome/.test(ie)&&!/\bMobile Safari\b/i.test(E)||/\bVita\b/.test(Oe))||/\bAndroid\b/.test($)&&/^Chrome/.test(ie)&&/\bVersion\//i.test(E)?(ie="Android Browser",$=/\bAndroid\b/.test($)?$:"Android"):ie=="Silk"?(/\bMobi/i.test(E)||($="Android",ve.unshift("desktop mode")),/Accelerated *= *true/i.test(E)&&ve.unshift("accelerated")):ie=="PaleMoon"&&(ce=/\bFirefox\/([\d.]+)\b/.exec(E))?ve.push("identifying as Firefox "+ce[1]):ie=="Firefox"&&(ce=/\b(Mobile|Tablet|TV)\b/i.exec(E))?($||($="Firefox OS"),Oe||(Oe=ce[1])):!ie||(ce=!/\bMinefield\b/i.test(E)&&/\b(?:Firefox|Safari)\b/.exec(ie))?(ie&&!Oe&&/[\/,]|^[^(]+?\)/.test(E.slice(E.indexOf(ce+"/")+8))&&(ie=null),(ce=Oe||le||$)&&(Oe||le||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test($))&&(ie=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test($)?$:ce)+" Browser")):ie=="Electron"&&(ce=(/\bChrome\/([\d.]+)\b/.exec(E)||0)[1])&&ve.push("Chromium "+ce),q||(q=rt(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",w(ie),"(?:Firefox|Minefield|NetFront)"])),(ce=re=="iCab"&&parseFloat(q)>3&&"WebKit"||/\bOpera\b/.test(ie)&&(/\bOPR\b/.test(E)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(E)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(E)&&($=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ie)&&"NetFront")&&(re=[ce]),ie=="IE"&&(ce=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(E)||0)[1])?(ie+=" Mobile",$="Windows Phone "+(/\+$/.test(ce)?ce:ce+".x"),ve.unshift("desktop mode")):/\bWPDesktop\b/i.test(E)?(ie="IE Mobile",$="Windows Phone 8.x",ve.unshift("desktop mode"),q||(q=(/\brv:([\d.]+)/.exec(E)||0)[1])):ie!="IE"&&re=="Trident"&&(ce=/\brv:([\d.]+)/.exec(E))&&(ie&&ve.push("identifying as "+ie+(q?" "+q:"")),ie="IE",q=ce[1]),se){if(m(x,"global"))if(k&&(ce=k.lang.System,be=ce.getProperty("os.arch"),$=$||ce.getProperty("os.name")+" "+ce.getProperty("os.version")),G){try{q=x.require("ringo/engine").version.join("."),ie="RingoJS"}catch(Et){(ce=x.system)&&ce.global.system==x.system&&(ie="Narwhal",$||($=ce[0].os||null))}ie||(ie="Rhino")}else typeof x.process=="object"&&!x.process.browser&&(ce=x.process)&&(typeof ce.versions=="object"&&(typeof ce.versions.electron=="string"?(ve.push("Node "+ce.versions.node),ie="Electron",q=ce.versions.electron):typeof ce.versions.nw=="string"&&(ve.push("Chromium "+q,"Node "+ce.versions.node),ie="NW.js",q=ce.versions.nw)),ie||(ie="Node.js",be=ce.arch,$=ce.platform,q=/[\d.]+/.exec(ce.version),q=q?q[0]:null));else o(ce=x.runtime)==F?(ie="Adobe AIR",$=ce.flash.system.Capabilities.os):o(ce=x.phantom)==B?(ie="PhantomJS",q=(ce=ce.version||null)&&ce.major+"."+ce.minor+"."+ce.patch):typeof de.documentMode=="number"&&(ce=/\bTrident\/(\d+)/i.exec(E))?(q=[q,de.documentMode],(ce=+ce[1]+4)!=q[1]&&(ve.push("IE "+q[1]+" mode"),re&&(re[1]=""),q[1]=ce),q=ie=="IE"?String(q[1].toFixed(1)):q[0]):typeof de.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ie)&&(ve.push("masking as "+ie+" "+q),ie="IE",q="11.0",re=["Trident"],$="Windows");$=$&&f($)}if(q&&(ce=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(q)||/(?:alpha|beta)(?: ?\d)?/i.exec(E+";"+(se&&O.appMinorVersion))||/\bMinefield\b/i.test(E)&&"a")&&(ue=/b/i.test(ce)?"beta":"alpha",q=q.replace(RegExp(ce+"\\+?$"),"")+(ue=="beta"?fe:ne)+(/\d+\+?/.exec(ce)||"")),ie=="Fennec"||ie=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test($))ie="Firefox Mobile";else if(ie=="Maxthon"&&q)q=q.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Oe))Oe=="Xbox 360"&&($=null),Oe=="Xbox 360"&&/\bIEMobile\b/.test(E)&&ve.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ie)||ie&&!Oe&&!/Browser|Mobi/.test(ie))&&($=="Windows CE"||/Mobi/i.test(E)))ie+=" Mobile";else if(ie=="IE"&&se)try{x.external===null&&ve.unshift("platform preview")}catch(Et){ve.unshift("embedded")}else(/\bBlackBerry\b/.test(Oe)||/\bBB10\b/.test(E))&&(ce=(RegExp(Oe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(E)||0)[1]||q)?(ce=[ce,/BB10/.test(E)],$=(ce[1]?(Oe=null,le="BlackBerry"):"Device Software")+" "+ce[0],q=null):this!=l&&Oe!="Wii"&&(se&&Ee||/Opera/.test(ie)&&/\b(?:MSIE|Firefox)\b/i.test(E)||ie=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test($)||ie=="IE"&&($&&!/^Win/.test($)&&q>5.5||/\bWindows XP\b/.test($)&&q>8||q==8&&!/\bTrident\b/.test(E)))&&!_.test(ce=P.call(l,E.replace(_,"")+";"))&&ce.name&&(ce="ing as "+ce.name+((ce=ce.version)?" "+ce:""),_.test(ie)?(/\bIE\b/.test(ce)&&$=="Mac OS"&&($=null),ce="identify"+ce):(ce="mask"+ce,we?ie=f(we.replace(/([a-z])([A-Z])/g,"$1 $2")):ie="Opera",/\bIE\b/.test(ce)&&($=null),se||(q=null)),re=["Presto"],ve.push(ce));(ce=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(E)||0)[1])&&(ce=[parseFloat(ce.replace(/\.(\d)$/,".0$1")),ce],ie=="Safari"&&ce[1].slice(-1)=="+"?(ie="WebKit Nightly",ue="alpha",q=ce[1].slice(0,-1)):(q==ce[1]||q==(ce[2]=(/\bSafari\/([\d.]+\+?)/i.exec(E)||0)[1]))&&(q=null),ce[1]=(/\bChrome\/([\d.]+)/i.exec(E)||0)[1],ce[0]==537.36&&ce[2]==537.36&&parseFloat(ce[1])>=28&&re=="WebKit"&&(re=["Blink"]),!se||!N&&!ce[1]?(re&&(re[1]="like Safari"),ce=(ce=ce[0],ce<400?1:ce<500?2:ce<526?3:ce<533?4:ce<534?"4+":ce<535?5:ce<537?6:ce<538?7:ce<601?8:"8")):(re&&(re[1]="like Chrome"),ce=ce[1]||(ce=ce[0],ce<530?1:ce<532?2:ce<532.05?3:ce<533?4:ce<534.03?5:ce<534.07?6:ce<534.1?7:ce<534.13?8:ce<534.16?9:ce<534.24?10:ce<534.3?11:ce<535.01?12:ce<535.02?"13+":ce<535.07?15:ce<535.11?16:ce<535.19?17:ce<536.05?18:ce<536.1?19:ce<537.01?20:ce<537.11?"21+":ce<537.13?23:ce<537.18?24:ce<537.24?25:ce<537.36?26:re!="Blink"?"27":"28")),re&&(re[1]+=" "+(ce+=typeof ce=="number"?".x":/[.+]/.test(ce)?"":"+")),ie=="Safari"&&(!q||parseInt(q)>45)&&(q=ce)),ie=="Opera"&&(ce=/\bzbov|zvav$/.exec($))?(ie+=" ",ve.unshift("desktop mode"),ce=="zvav"?(ie+="Mini",q=null):ie+="Mobile",$=$.replace(RegExp(" *"+ce+"$"),"")):ie=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(ve.unshift("desktop mode"),ie="Chrome Mobile",q=null,/\bOS X\b/.test($)?(le="Apple",$="iOS 4.3+"):$=null),q&&q.indexOf(ce=/[\d.]+$/.exec($))==0&&E.indexOf("/"+ce+"-")>-1&&($=v($.replace(ce,""))),re&&!/\b(?:Avant|Nook)\b/.test(ie)&&(/Browser|Lunascape|Maxthon/.test(ie)||ie!="Safari"&&/^iOS/.test($)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ie)&&re[1])&&((ce=re[re.length-1])&&ve.push(ce)),ve.length&&(ve=["("+ve.join("; ")+")"]),le&&Oe&&Oe.indexOf(le)<0&&ve.push("on "+le),Oe&&ve.push((/^on /.test(ve[ve.length-1])?"":"on ")+Oe),$&&(ce=/ ([\d.+]+)$/.exec($),me=ce&&$.charAt($.length-ce[0].length-1)=="/",$={architecture:32,family:ce&&!me?$.replace(ce[0],""):$,version:ce?ce[1]:null,toString:function(){var Et=this.version;return this.family+(Et&&!me?" "+Et:"")+(this.architecture==64?" 64-bit":"")}}),(ce=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be))&&!/\bi686\b/i.test(be)?($&&($.architecture=64,$.family=$.family.replace(RegExp(" *"+ce),"")),ie&&(/\bWOW64\b/i.test(E)||se&&/\w(?:86|32)$/.test(O.cpuClass||O.platform)&&!/\bWin64; x64\b/i.test(E))&&ve.unshift("32-bit")):$&&/^OS X/.test($.family)&&ie=="Chrome"&&parseFloat(q)>=39&&($.architecture=64),E||(E=null);var gt={};return gt.description=E,gt.layout=re&&re[0],gt.manufacturer=le,gt.name=ie,gt.prerelease=ue,gt.product=Oe,gt.ua=E,gt.version=ie&&q,gt.os=$||{architecture:null,family:null,version:null,toString:function(){return"null"}},gt.parse=P,gt.toString=ot,gt.version&&ve.unshift(q),gt.name&&ve.unshift(ie),$&&ie&&!($==String($).split(" ")[0]&&($==ie.split(" ")[0]||Oe))&&ve.push(Oe?"("+$+")":"on "+$),ve.length&&(gt.description=ve.join(" ")),gt}var R=P();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(A.platform=R,define(function(){return R})):y&&S?l(R,function(E,x){y[x]=E}):A.platform=R}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(M,Y,s){(function(L){"use strict";typeof L=="undefined"||!L.version||L.version.indexOf("v0.")===0||L.version.indexOf("v1.")===0&&L.version.indexOf("v1.8.")!==0?Y.exports={nextTick:p}:Y.exports=L;function p(A,b,y,S){if(typeof A!="function")throw new TypeError('"callback" argument must be a function');var T=arguments.length,h,_;switch(T){case 0:case 1:return L.nextTick(A);case 2:return L.nextTick(function(){A.call(null,b)});case 3:return L.nextTick(function(){A.call(null,b,y)});case 4:return L.nextTick(function(){A.call(null,b,y,S)});default:for(h=new Array(T-1),_=0;_<h.length;)h[_++]=arguments[_];return L.nextTick(function(){A.apply(null,h)})}}}).call(this,M("_process"))},{_process:208}],208:[function(M,Y,s){var L=Y.exports={},p,A;function b(){throw new Error("setTimeout has not been defined")}function y(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?p=setTimeout:p=b}catch(i){p=b}try{typeof clearTimeout=="function"?A=clearTimeout:A=y}catch(i){A=y}})();function S(i){if(p===setTimeout)return setTimeout(i,0);if((p===b||!p)&&setTimeout)return p=setTimeout,setTimeout(i,0);try{return p(i,0)}catch(f){try{return p.call(null,i,0)}catch(l){return p.call(this,i,0)}}}function T(i){if(A===clearTimeout)return clearTimeout(i);if((A===y||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(i);try{return A(i)}catch(f){try{return A.call(null,i)}catch(l){return A.call(this,i)}}}var h=[],_=!1,d,r=-1;function c(){if(!_||!d)return;_=!1,d.length?h=d.concat(h):r=-1,h.length&&t()}function t(){if(_)return;var i=S(c);_=!0;for(var f=h.length;f;){for(d=h,h=[];++r<f;)d&&d[r].run();r=-1,f=h.length}d=null,_=!1,T(i)}L.nextTick=function(i){var f=new Array(arguments.length-1);if(arguments.length>1)for(var l=1;l<arguments.length;l++)f[l-1]=arguments[l];h.push(new a(i,f)),h.length===1&&!_&&S(t)};function a(i,f){this.fun=i,this.array=f}a.prototype.run=function(){this.fun.apply(null,this.array)},L.title="browser",L.browser=!0,L.env={},L.argv=[],L.version="",L.versions={};function n(){}L.on=n,L.addListener=n,L.once=n,L.off=n,L.removeListener=n,L.removeAllListeners=n,L.emit=n,L.prependListener=n,L.prependOnceListener=n,L.listeners=function(i){return[]},L.binding=function(i){throw new Error("process.binding is not supported")},L.cwd=function(){return"/"},L.chdir=function(i){throw new Error("process.chdir is not supported")},L.umask=function(){return 0}},{}],209:[function(M,Y,s){(function(L){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(p){var A=typeof s=="object"&&s&&!s.nodeType&&s,b=typeof Y=="object"&&Y&&!Y.nodeType&&Y,y=typeof L=="object"&&L;(y.global===y||y.window===y||y.self===y)&&(p=y);var S,T=2147483647,h=36,_=1,d=26,r=38,c=700,t=72,a=128,n="-",i=/^xn--/,f=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,o={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=h-_,w=Math.floor,C=String.fromCharCode,v;function P(K){throw new RangeError(o[K])}function R(K,B){for(var k=K.length,G=[];k--;)G[k]=B(K[k]);return G}function E(K,B){var k=K.split("@"),G="";k.length>1&&(G=k[0]+"@",K=k[1]),K=K.replace(l,".");var ne=K.split("."),fe=R(ne,B).join(".");return G+fe}function x(K){for(var B=[],k=0,G=K.length,ne,fe;k<G;)ne=K.charCodeAt(k++),ne>=55296&&ne<=56319&&k<G?(fe=K.charCodeAt(k++),(fe&64512)==56320?B.push(((ne&1023)<<10)+(fe&1023)+65536):(B.push(ne),k--)):B.push(ne);return B}function g(K){return R(K,function(B){var k="";return B>65535&&(B-=65536,k+=C(B>>>10&1023|55296),B=56320|B&1023),k+=C(B),k}).join("")}function O(K){return K-48<10?K-22:K-65<26?K-65:K-97<26?K-97:h}function I(K,B){return K+22+75*(K<26)-((B!=0)<<5)}function D(K,B,k){var G=0;for(K=k?w(K/c):K>>1,K+=w(K/B);K>m*d>>1;G+=h)K=w(K/m);return w(G+(m+1)*K/(K+r))}function N(K){var B=[],k=K.length,G,ne=0,fe=a,de=t,Ee,we,ce,be,ve,ue,se,q,me;for(Ee=K.lastIndexOf(n),Ee<0&&(Ee=0),we=0;we<Ee;++we)K.charCodeAt(we)>=128&&P("not-basic"),B.push(K.charCodeAt(we));for(ce=Ee>0?Ee+1:0;ce<k;){for(be=ne,ve=1,ue=h;!(ce>=k&&P("invalid-input"),se=O(K.charCodeAt(ce++)),(se>=h||se>w((T-ne)/ve))&&P("overflow"),ne+=se*ve,q=ue<=de?_:ue>=de+d?d:ue-de,se<q);ue+=h)me=h-q,ve>w(T/me)&&P("overflow"),ve*=me;G=B.length+1,de=D(ne-be,G,be==0),w(ne/G)>T-fe&&P("overflow"),fe+=w(ne/G),ne%=G,B.splice(ne++,0,fe)}return g(B)}function V(K){var B,k,G,ne,fe,de,Ee,we,ce,be,ve,ue=[],se,q,me,re;for(K=x(K),se=K.length,B=a,k=0,fe=t,de=0;de<se;++de)ve=K[de],ve<128&&ue.push(C(ve));for(G=ne=ue.length,ne&&ue.push(n);G<se;){for(Ee=T,de=0;de<se;++de)ve=K[de],ve>=B&&ve<Ee&&(Ee=ve);for(q=G+1,Ee-B>w((T-k)/q)&&P("overflow"),k+=(Ee-B)*q,B=Ee,de=0;de<se;++de)if(ve=K[de],ve<B&&++k>T&&P("overflow"),ve==B){for(we=k,ce=h;!(be=ce<=fe?_:ce>=fe+d?d:ce-fe,we<be);ce+=h)re=we-be,me=h-be,ue.push(C(I(be+re%me,0))),we=w(re/me);ue.push(C(I(we,0))),fe=D(k,q,G==ne),k=0,++G}++k,++B}return ue.join("")}function F(K){return E(K,function(B){return i.test(B)?N(B.slice(4).toLowerCase()):B})}function W(K){return E(K,function(B){return f.test(B)?"xn--"+V(B):B})}if(S={version:"1.4.1",ucs2:{decode:x,encode:g},decode:N,encode:V,toASCII:W,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return S});else if(A&&b)if(Y.exports==A)b.exports=S;else for(v in S)S.hasOwnProperty(v)&&(A[v]=S[v]);else p.punycode=S})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(M,Y,s){"use strict";function L(A,b){return Object.prototype.hasOwnProperty.call(A,b)}Y.exports=function(A,b,y,S){b=b||"&",y=y||"=";var T={};if(typeof A!="string"||A.length===0)return T;var h=/\+/g;A=A.split(b);var _=1e3;S&&typeof S.maxKeys=="number"&&(_=S.maxKeys);var d=A.length;_>0&&d>_&&(d=_);for(var r=0;r<d;++r){var c=A[r].replace(h,"%20"),t=c.indexOf(y),a,n,i,f;t>=0?(a=c.substr(0,t),n=c.substr(t+1)):(a=c,n=""),i=decodeURIComponent(a),f=decodeURIComponent(n),L(T,i)?p(T[i])?T[i].push(f):T[i]=[T[i],f]:T[i]=f}return T};var p=Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"}},{}],211:[function(M,Y,s){"use strict";var L=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};Y.exports=function(y,S,T,h){return S=S||"&",T=T||"=",y===null&&(y=void 0),typeof y=="object"?A(b(y),function(_){var d=encodeURIComponent(L(_))+T;return p(y[_])?A(y[_],function(r){return d+encodeURIComponent(L(r))}).join(S):d+encodeURIComponent(L(y[_]))}).join(S):h?encodeURIComponent(L(h))+T+encodeURIComponent(L(y)):""};var p=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"};function A(y,S){if(y.map)return y.map(S);for(var T=[],h=0;h<y.length;h++)T.push(S(y[h],h));return T}var b=Object.keys||function(y){var S=[];for(var T in y)Object.prototype.hasOwnProperty.call(y,T)&&S.push(T);return S}},{}],212:[function(M,Y,s){"use strict";s.decode=s.parse=M("./decode"),s.encode=s.stringify=M("./encode")},{"./decode":210,"./encode":211}],213:[function(M,Y,s){Y.exports=M("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=y(L),A=M("babel-runtime/core-js/object/keys"),b=y(A);function y(f){return f&&f.__esModule?f:{default:f}}var S=M("process-nextick-args"),T=b.default||function(f){var l=[];for(var o in f)l.push(o);return l};Y.exports=a;var h=(0,p.default)(M("core-util-is"));h.inherits=M("inherits");var _=M("./_stream_readable"),d=M("./_stream_writable");h.inherits(a,_);for(var r=T(d.prototype),c=0;c<r.length;c++){var t=r[c];a.prototype[t]||(a.prototype[t]=d.prototype[t])}function a(f){if(!(this instanceof a))return new a(f);_.call(this,f),d.call(this,f),f&&f.readable===!1&&(this.readable=!1),f&&f.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,f&&f.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",n)}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function n(){if(this.allowHalfOpen||this._writableState.ended)return;S.nextTick(i,this)}function i(f){f.end()}Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(l){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=l,this._writableState.destroyed=l}}),a.prototype._destroy=function(f,l){this.push(null),this.end(),S.nextTick(l,f)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(T){return T&&T.__esModule?T:{default:T}}Y.exports=S;var b=M("./_stream_transform"),y=(0,p.default)(M("core-util-is"));y.inherits=M("inherits"),y.inherits(S,b);function S(T){if(!(this instanceof S))return new S(T);b.call(this,T)}S.prototype._transform=function(T,h,_){_(null,T)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(M,Y,s){(function(L,p){"use strict";var A=M("babel-runtime/core-js/object/get-prototype-of"),b=T(A),y=M("babel-runtime/core-js/object/create"),S=T(y);function T(re){return re&&re.__esModule?re:{default:re}}var h=M("process-nextick-args");Y.exports=x;var _=M("isarray"),d;x.ReadableState=E;var r=M("events").EventEmitter,c=function(ie,Oe){return ie.listeners(Oe).length},t=M("./internal/streams/stream"),a=M("safe-buffer").Buffer,n=p.Uint8Array||function(){};function i(re){return a.from(re)}function f(re){return a.isBuffer(re)||re instanceof n}var l=(0,S.default)(M("core-util-is"));l.inherits=M("inherits");var o=M("util"),m=void 0;o&&o.debuglog?m=o.debuglog("stream"):m=function(){};var w=M("./internal/streams/BufferList"),C=M("./internal/streams/destroy"),v;l.inherits(x,t);var P=["error","close","destroy","pause","resume"];function R(re,ie,Oe){if(typeof re.prependListener=="function")return re.prependListener(ie,Oe);!re._events||!re._events[ie]?re.on(ie,Oe):_(re._events[ie])?re._events[ie].unshift(Oe):re._events[ie]=[Oe,re._events[ie]]}function E(re,ie){d=d||M("./_stream_duplex"),re=re||{};var Oe=ie instanceof d;this.objectMode=!!re.objectMode,Oe&&(this.objectMode=this.objectMode||!!re.readableObjectMode);var le=re.highWaterMark,$=re.readableHighWaterMark,J=this.objectMode?16:16*1024;le||le===0?this.highWaterMark=le:Oe&&($||$===0)?this.highWaterMark=$:this.highWaterMark=J,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=re.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,re.encoding&&(v||(v=M("string_decoder/").StringDecoder),this.decoder=new v(re.encoding),this.encoding=re.encoding)}function x(re){if(d=d||M("./_stream_duplex"),!(this instanceof x))return new x(re);this._readableState=new E(re,this),this.readable=!0,re&&(typeof re.read=="function"&&(this._read=re.read),typeof re.destroy=="function"&&(this._destroy=re.destroy)),t.call(this)}Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ie){if(!this._readableState)return;this._readableState.destroyed=ie}}),x.prototype.destroy=C.destroy,x.prototype._undestroy=C.undestroy,x.prototype._destroy=function(re,ie){this.push(null),ie(re)},x.prototype.push=function(re,ie){var Oe=this._readableState,le;return Oe.objectMode?le=!0:typeof re=="string"&&(ie=ie||Oe.defaultEncoding,ie!==Oe.encoding&&(re=a.from(re,ie),ie=""),le=!0),g(this,re,ie,!1,le)},x.prototype.unshift=function(re){return g(this,re,null,!0,!1)};function g(re,ie,Oe,le,$){var J=re._readableState;if(ie===null)J.reading=!1,W(re,J);else{var te;$||(te=I(J,ie)),te?re.emit("error",te):J.objectMode||ie&&ie.length>0?(typeof ie!="string"&&!J.objectMode&&(0,b.default)(ie)!==a.prototype&&(ie=i(ie)),le?J.endEmitted?re.emit("error",new Error("stream.unshift() after end event")):O(re,J,ie,!0):J.ended?re.emit("error",new Error("stream.push() after EOF")):(J.reading=!1,J.decoder&&!Oe?(ie=J.decoder.write(ie),J.objectMode||ie.length!==0?O(re,J,ie,!1):k(re,J)):O(re,J,ie,!1))):le||(J.reading=!1)}return D(J)}function O(re,ie,Oe,le){ie.flowing&&ie.length===0&&!ie.sync?(re.emit("data",Oe),re.read(0)):(ie.length+=ie.objectMode?1:Oe.length,le?ie.buffer.unshift(Oe):ie.buffer.push(Oe),ie.needReadable&&K(re)),k(re,ie)}function I(re,ie){var Oe;return!f(ie)&&typeof ie!="string"&&ie!==void 0&&!re.objectMode&&(Oe=new TypeError("Invalid non-string/buffer chunk")),Oe}function D(re){return!re.ended&&(re.needReadable||re.length<re.highWaterMark||re.length===0)}x.prototype.isPaused=function(){return this._readableState.flowing===!1},x.prototype.setEncoding=function(re){return v||(v=M("string_decoder/").StringDecoder),this._readableState.decoder=new v(re),this._readableState.encoding=re,this};var N=8388608;function V(re){return re>=N?re=N:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}function F(re,ie){return re<=0||ie.length===0&&ie.ended?0:ie.objectMode?1:re!==re?ie.flowing&&ie.length?ie.buffer.head.data.length:ie.length:(re>ie.highWaterMark&&(ie.highWaterMark=V(re)),re<=ie.length?re:ie.ended?ie.length:(ie.needReadable=!0,0))}x.prototype.read=function(re){m("read",re),re=parseInt(re,10);var ie=this._readableState,Oe=re;if(re!==0&&(ie.emittedReadable=!1),re===0&&ie.needReadable&&(ie.length>=ie.highWaterMark||ie.ended))return m("read: emitReadable",ie.length,ie.ended),ie.length===0&&ie.ended?se(this):K(this),null;if(re=F(re,ie),re===0&&ie.ended)return ie.length===0&&se(this),null;var le=ie.needReadable;m("need readable",le),(ie.length===0||ie.length-re<ie.highWaterMark)&&(le=!0,m("length less than watermark",le)),ie.ended||ie.reading?(le=!1,m("reading or ended",le)):le&&(m("do read"),ie.reading=!0,ie.sync=!0,ie.length===0&&(ie.needReadable=!0),this._read(ie.highWaterMark),ie.sync=!1,ie.reading||(re=F(Oe,ie)));var $;return re>0?$=ce(re,ie):$=null,$===null?(ie.needReadable=!0,re=0):ie.length-=re,ie.length===0&&(ie.ended||(ie.needReadable=!0),Oe!==re&&ie.ended&&se(this)),$!==null&&this.emit("data",$),$};function W(re,ie){if(ie.ended)return;if(ie.decoder){var Oe=ie.decoder.end();Oe&&Oe.length&&(ie.buffer.push(Oe),ie.length+=ie.objectMode?1:Oe.length)}ie.ended=!0,K(re)}function K(re){var ie=re._readableState;ie.needReadable=!1,ie.emittedReadable||(m("emitReadable",ie.flowing),ie.emittedReadable=!0,ie.sync?h.nextTick(B,re):B(re))}function B(re){m("emit readable"),re.emit("readable"),we(re)}function k(re,ie){ie.readingMore||(ie.readingMore=!0,h.nextTick(G,re,ie))}function G(re,ie){for(var Oe=ie.length;!ie.reading&&!ie.flowing&&!ie.ended&&ie.length<ie.highWaterMark&&!(m("maybeReadMore read 0"),re.read(0),Oe===ie.length);)Oe=ie.length;ie.readingMore=!1}x.prototype._read=function(re){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(re,ie){var Oe=this,le=this._readableState;switch(le.pipesCount){case 0:le.pipes=re;break;case 1:le.pipes=[le.pipes,re];break;default:le.pipes.push(re);break}le.pipesCount+=1,m("pipe count=%d opts=%j",le.pipesCount,ie);var $=(!ie||ie.end!==!1)&&re!==L.stdout&&re!==L.stderr,J=$?Ae:Qe;le.endEmitted?h.nextTick(J):Oe.once("end",J),re.on("unpipe",te);function te(Ue,ft){m("onunpipe"),Ue===Oe&&(ft&&ft.hasUnpiped===!1&&(ft.hasUnpiped=!0,rt()))}function Ae(){m("onend"),re.end()}var Se=ne(Oe);re.on("drain",Se);var ke=!1;function rt(){m("cleanup"),re.removeListener("close",Ct),re.removeListener("finish",wt),re.removeListener("drain",Se),re.removeListener("error",Et),re.removeListener("unpipe",te),Oe.removeListener("end",Ae),Oe.removeListener("end",Qe),Oe.removeListener("data",gt),ke=!0,le.awaitDrain&&(!re._writableState||re._writableState.needDrain)&&Se()}var ot=!1;Oe.on("data",gt);function gt(Ue){m("ondata"),ot=!1;var ft=re.write(Ue);ft===!1&&!ot&&((le.pipesCount===1&&le.pipes===re||le.pipesCount>1&&me(le.pipes,re)!==-1)&&!ke&&(m("false write response, pause",Oe._readableState.awaitDrain),Oe._readableState.awaitDrain++,ot=!0),Oe.pause())}function Et(Ue){m("onerror",Ue),Qe(),re.removeListener("error",Et),c(re,"error")===0&&re.emit("error",Ue)}R(re,"error",Et);function Ct(){re.removeListener("finish",wt),Qe()}re.once("close",Ct);function wt(){m("onfinish"),re.removeListener("close",Ct),Qe()}re.once("finish",wt);function Qe(){m("unpipe"),Oe.unpipe(re)}return re.emit("pipe",Oe),le.flowing||(m("pipe resume"),Oe.resume()),re};function ne(re){return function(){var ie=re._readableState;m("pipeOnDrain",ie.awaitDrain),ie.awaitDrain&&ie.awaitDrain--,ie.awaitDrain===0&&c(re,"data")&&(ie.flowing=!0,we(re))}}x.prototype.unpipe=function(re){var ie=this._readableState,Oe={hasUnpiped:!1};if(ie.pipesCount===0)return this;if(ie.pipesCount===1)return re&&re!==ie.pipes?this:(re||(re=ie.pipes),ie.pipes=null,ie.pipesCount=0,ie.flowing=!1,re&&re.emit("unpipe",this,Oe),this);if(!re){var le=ie.pipes,$=ie.pipesCount;ie.pipes=null,ie.pipesCount=0,ie.flowing=!1;for(var J=0;J<$;J++)le[J].emit("unpipe",this,Oe);return this}var te=me(ie.pipes,re);return te===-1?this:(ie.pipes.splice(te,1),ie.pipesCount-=1,ie.pipesCount===1&&(ie.pipes=ie.pipes[0]),re.emit("unpipe",this,Oe),this)},x.prototype.on=function(re,ie){var Oe=t.prototype.on.call(this,re,ie);if(re==="data")this._readableState.flowing!==!1&&this.resume();else if(re==="readable"){var le=this._readableState;!le.endEmitted&&!le.readableListening&&(le.readableListening=le.needReadable=!0,le.emittedReadable=!1,le.reading?le.length&&K(this):h.nextTick(fe,this))}return Oe},x.prototype.addListener=x.prototype.on;function fe(re){m("readable nexttick read 0"),re.read(0)}x.prototype.resume=function(){var re=this._readableState;return re.flowing||(m("resume"),re.flowing=!0,de(this,re)),this};function de(re,ie){ie.resumeScheduled||(ie.resumeScheduled=!0,h.nextTick(Ee,re,ie))}function Ee(re,ie){ie.reading||(m("resume read 0"),re.read(0)),ie.resumeScheduled=!1,ie.awaitDrain=0,re.emit("resume"),we(re),ie.flowing&&!ie.reading&&re.read(0)}x.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function we(re){var ie=re._readableState;for(m("flow",ie.flowing);ie.flowing&&re.read()!==null;);}x.prototype.wrap=function(re){var ie=this,Oe=this._readableState,le=!1;re.on("end",function(){if(m("wrapped end"),Oe.decoder&&!Oe.ended){var te=Oe.decoder.end();te&&te.length&&ie.push(te)}ie.push(null)}),re.on("data",function(te){if(m("wrapped data"),Oe.decoder&&(te=Oe.decoder.write(te)),Oe.objectMode&&te==null)return;if(!Oe.objectMode&&(!te||!te.length))return;var Ae=ie.push(te);Ae||(le=!0,re.pause())});for(var $ in re)this[$]===void 0&&typeof re[$]=="function"&&(this[$]=function(te){return function(){return re[te].apply(re,arguments)}}($));for(var J=0;J<P.length;J++)re.on(P[J],this.emit.bind(this,P[J]));return this._read=function(te){m("wrapped _read",te),le&&(le=!1,re.resume())},this},Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=ce;function ce(re,ie){if(ie.length===0)return null;var Oe;return ie.objectMode?Oe=ie.buffer.shift():!re||re>=ie.length?(ie.decoder?Oe=ie.buffer.join(""):ie.buffer.length===1?Oe=ie.buffer.head.data:Oe=ie.buffer.concat(ie.length),ie.buffer.clear()):Oe=be(re,ie.buffer,ie.decoder),Oe}function be(re,ie,Oe){var le;return re<ie.head.data.length?(le=ie.head.data.slice(0,re),ie.head.data=ie.head.data.slice(re)):re===ie.head.data.length?le=ie.shift():le=Oe?ve(re,ie):ue(re,ie),le}function ve(re,ie){var Oe=ie.head,le=1,$=Oe.data;for(re-=$.length;Oe=Oe.next;){var J=Oe.data,te=re>J.length?J.length:re;if(te===J.length?$+=J:$+=J.slice(0,re),re-=te,re===0){te===J.length?(++le,Oe.next?ie.head=Oe.next:ie.head=ie.tail=null):(ie.head=Oe,Oe.data=J.slice(te));break}++le}return ie.length-=le,$}function ue(re,ie){var Oe=a.allocUnsafe(re),le=ie.head,$=1;for(le.data.copy(Oe),re-=le.data.length;le=le.next;){var J=le.data,te=re>J.length?J.length:re;if(J.copy(Oe,Oe.length-re,0,te),re-=te,re===0){te===J.length?(++$,le.next?ie.head=le.next:ie.head=ie.tail=null):(ie.head=le,le.data=J.slice(te));break}++$}return ie.length-=$,Oe}function se(re){var ie=re._readableState;if(ie.length>0)throw new Error('"endReadable()" called on non-empty stream');ie.endEmitted||(ie.ended=!0,h.nextTick(q,ie,re))}function q(re,ie){!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ie.readable=!1,ie.emit("end"))}function me(re,ie){for(var Oe=0,le=re.length;Oe<le;Oe++)if(re[Oe]===ie)return Oe;return-1}}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(d){return d&&d.__esModule?d:{default:d}}Y.exports=T;var b=M("./_stream_duplex"),y=(0,p.default)(M("core-util-is"));y.inherits=M("inherits"),y.inherits(T,b);function S(d,r){var c=this._transformState;c.transforming=!1;var t=c.writecb;if(!t)return this.emit("error",new Error("write callback called multiple times"));c.writechunk=null,c.writecb=null,r!=null&&this.push(r),t(d);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function T(d){if(!(this instanceof T))return new T(d);b.call(this,d),this._transformState={afterTransform:S.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",h)}function h(){var d=this;typeof this._flush=="function"?this._flush(function(r,c){_(d,r,c)}):_(this,null,null)}T.prototype.push=function(d,r){return this._transformState.needTransform=!1,b.prototype.push.call(this,d,r)},T.prototype._transform=function(d,r,c){throw new Error("_transform() is not implemented")},T.prototype._write=function(d,r,c){var t=this._transformState;if(t.writecb=c,t.writechunk=d,t.writeencoding=r,!t.transforming){var a=this._readableState;(t.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},T.prototype._read=function(d){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0},T.prototype._destroy=function(d,r){var c=this;b.prototype._destroy.call(this,d,function(t){r(t),c.emit("close")})};function _(d,r,c){if(r)return d.emit("error",r);if(c!=null&&d.push(c),d._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(d._transformState.transforming)throw new Error("Calling transform done when still transforming");return d.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(M,Y,s){(function(L,p){"use strict";var A=M("babel-runtime/core-js/object/define-property"),b=t(A),y=M("babel-runtime/core-js/symbol/has-instance"),S=t(y),T=M("babel-runtime/core-js/symbol"),h=t(T),_=M("babel-runtime/core-js/object/create"),d=t(_),r=M("babel-runtime/core-js/set-immediate"),c=t(r);function t(ue){return ue&&ue.__esModule?ue:{default:ue}}var a=M("process-nextick-args");Y.exports=I;function n(ue,se,q){this.chunk=ue,this.encoding=se,this.callback=q,this.next=null}function i(ue){var se=this;this.next=null,this.entry=null,this.finish=function(){ve(se,ue)}}var f=!L.browser&&["v0.10","v0.9."].indexOf(L.version.slice(0,5))>-1?c.default:a.nextTick,l;I.WritableState=g;var o=(0,d.default)(M("core-util-is"));o.inherits=M("inherits");var m={deprecate:M("util-deprecate")},w=M("./internal/streams/stream"),C=M("safe-buffer").Buffer,v=p.Uint8Array||function(){};function P(ue){return C.from(ue)}function R(ue){return C.isBuffer(ue)||ue instanceof v}var E=M("./internal/streams/destroy");o.inherits(I,w);function x(){}function g(ue,se){l=l||M("./_stream_duplex"),ue=ue||{};var q=se instanceof l;this.objectMode=!!ue.objectMode,q&&(this.objectMode=this.objectMode||!!ue.writableObjectMode);var me=ue.highWaterMark,re=ue.writableHighWaterMark,ie=this.objectMode?16:16*1024;me||me===0?this.highWaterMark=me:q&&(re||re===0)?this.highWaterMark=re:this.highWaterMark=ie,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Oe=ue.decodeStrings===!1;this.decodeStrings=!Oe,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){k(se,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}g.prototype.getBuffer=function(){for(var se=this.bufferedRequest,q=[];se;)q.push(se),se=se.next;return q},function(){try{Object.defineProperty(g.prototype,"buffer",{get:m.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var O;typeof h.default=="function"&&S.default&&typeof Function.prototype[S.default]=="function"?(O=Function.prototype[S.default],(0,b.default)(I,S.default,{value:function(se){return O.call(this,se)?!0:this!==I?!1:se&&se._writableState instanceof g}})):O=function(se){return se instanceof this};function I(ue){if(l=l||M("./_stream_duplex"),!O.call(I,this)&&!(this instanceof l))return new I(ue);this._writableState=new g(ue,this),this.writable=!0,ue&&(typeof ue.write=="function"&&(this._write=ue.write),typeof ue.writev=="function"&&(this._writev=ue.writev),typeof ue.destroy=="function"&&(this._destroy=ue.destroy),typeof ue.final=="function"&&(this._final=ue.final)),w.call(this)}I.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function D(ue,se){var q=new Error("write after end");ue.emit("error",q),a.nextTick(se,q)}function N(ue,se,q,me){var re=!0,ie=!1;return q===null?ie=new TypeError("May not write null values to stream"):typeof q!="string"&&q!==void 0&&!se.objectMode&&(ie=new TypeError("Invalid non-string/buffer chunk")),ie&&(ue.emit("error",ie),a.nextTick(me,ie),re=!1),re}I.prototype.write=function(ue,se,q){var me=this._writableState,re=!1,ie=!me.objectMode&&R(ue);return ie&&!C.isBuffer(ue)&&(ue=P(ue)),typeof se=="function"&&(q=se,se=null),ie?se="buffer":se||(se=me.defaultEncoding),typeof q!="function"&&(q=x),me.ended?D(this,q):(ie||N(this,me,ue,q))&&(me.pendingcb++,re=F(this,me,ie,ue,se,q)),re},I.prototype.cork=function(){var ue=this._writableState;ue.corked++},I.prototype.uncork=function(){var ue=this._writableState;ue.corked&&(ue.corked--,!ue.writing&&!ue.corked&&!ue.finished&&!ue.bufferProcessing&&ue.bufferedRequest&&fe(this,ue))},I.prototype.setDefaultEncoding=function(se){if(typeof se=="string"&&(se=se.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((se+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+se);return this._writableState.defaultEncoding=se,this};function V(ue,se,q){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof se=="string"&&(se=C.from(se,q)),se}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function F(ue,se,q,me,re,ie){if(!q){var Oe=V(se,me,re);me!==Oe&&(q=!0,re="buffer",me=Oe)}var le=se.objectMode?1:me.length;se.length+=le;var $=se.length<se.highWaterMark;if($||(se.needDrain=!0),se.writing||se.corked){var J=se.lastBufferedRequest;se.lastBufferedRequest={chunk:me,encoding:re,isBuf:q,callback:ie,next:null},J?J.next=se.lastBufferedRequest:se.bufferedRequest=se.lastBufferedRequest,se.bufferedRequestCount+=1}else W(ue,se,!1,le,me,re,ie);return $}function W(ue,se,q,me,re,ie,Oe){se.writelen=me,se.writecb=Oe,se.writing=!0,se.sync=!0,q?ue._writev(re,se.onwrite):ue._write(re,ie,se.onwrite),se.sync=!1}function K(ue,se,q,me,re){--se.pendingcb,q?(a.nextTick(re,me),a.nextTick(ce,ue,se),ue._writableState.errorEmitted=!0,ue.emit("error",me)):(re(me),ue._writableState.errorEmitted=!0,ue.emit("error",me),ce(ue,se))}function B(ue){ue.writing=!1,ue.writecb=null,ue.length-=ue.writelen,ue.writelen=0}function k(ue,se){var q=ue._writableState,me=q.sync,re=q.writecb;if(B(q),se)K(ue,q,me,se,re);else{var ie=de(q);!ie&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&fe(ue,q),me?f(G,ue,q,ie,re):G(ue,q,ie,re)}}function G(ue,se,q,me){q||ne(ue,se),se.pendingcb--,me(),ce(ue,se)}function ne(ue,se){se.length===0&&se.needDrain&&(se.needDrain=!1,ue.emit("drain"))}function fe(ue,se){se.bufferProcessing=!0;var q=se.bufferedRequest;if(ue._writev&&q&&q.next){var me=se.bufferedRequestCount,re=new Array(me),ie=se.corkedRequestsFree;ie.entry=q;for(var Oe=0,le=!0;q;)re[Oe]=q,q.isBuf||(le=!1),q=q.next,Oe+=1;re.allBuffers=le,W(ue,se,!0,se.length,re,"",ie.finish),se.pendingcb++,se.lastBufferedRequest=null,ie.next?(se.corkedRequestsFree=ie.next,ie.next=null):se.corkedRequestsFree=new i(se),se.bufferedRequestCount=0}else{for(;q;){var $=q.chunk,J=q.encoding,te=q.callback,Ae=se.objectMode?1:$.length;if(W(ue,se,!1,Ae,$,J,te),q=q.next,se.bufferedRequestCount--,se.writing)break}q===null&&(se.lastBufferedRequest=null)}se.bufferedRequest=q,se.bufferProcessing=!1}I.prototype._write=function(ue,se,q){q(new Error("_write() is not implemented"))},I.prototype._writev=null,I.prototype.end=function(ue,se,q){var me=this._writableState;typeof ue=="function"?(q=ue,ue=null,se=null):typeof se=="function"&&(q=se,se=null),ue!=null&&this.write(ue,se),me.corked&&(me.corked=1,this.uncork()),!me.ending&&!me.finished&&be(this,me,q)};function de(ue){return ue.ending&&ue.length===0&&ue.bufferedRequest===null&&!ue.finished&&!ue.writing}function Ee(ue,se){ue._final(function(q){se.pendingcb--,q&&ue.emit("error",q),se.prefinished=!0,ue.emit("prefinish"),ce(ue,se)})}function we(ue,se){!se.prefinished&&!se.finalCalled&&(typeof ue._final=="function"?(se.pendingcb++,se.finalCalled=!0,a.nextTick(Ee,ue,se)):(se.prefinished=!0,ue.emit("prefinish")))}function ce(ue,se){var q=de(se);return q&&(we(ue,se),se.pendingcb===0&&(se.finished=!0,ue.emit("finish"))),q}function be(ue,se,q){se.ending=!0,ce(ue,se),q&&(se.finished?a.nextTick(q):ue.once("finish",q)),se.ended=!0,ue.writable=!1}function ve(ue,se,q){var me=ue.entry;for(ue.entry=null;me;){var re=me.callback;se.pendingcb--,re(q),me=me.next}se.corkedRequestsFree?se.corkedRequestsFree.next=ue:se.corkedRequestsFree=ue}Object.defineProperty(I.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(se){if(!this._writableState)return;this._writableState.destroyed=se}}),I.prototype.destroy=E.destroy,I.prototype._undestroy=E.undestroy,I.prototype._destroy=function(ue,se){this.end(),se(ue)}}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(M,Y,s){"use strict";function L(y,S){if(!(y instanceof S))throw new TypeError("Cannot call a class as a function")}var p=M("safe-buffer").Buffer,A=M("util");function b(y,S,T){y.copy(S,T)}Y.exports=function(){function y(){L(this,y),this.head=null,this.tail=null,this.length=0}return y.prototype.push=function(T){var h={data:T,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length},y.prototype.unshift=function(T){var h={data:T,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length},y.prototype.shift=function(){if(this.length===0)return;var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T},y.prototype.clear=function(){this.head=this.tail=null,this.length=0},y.prototype.join=function(T){if(this.length===0)return"";for(var h=this.head,_=""+h.data;h=h.next;)_+=T+h.data;return _},y.prototype.concat=function(T){if(this.length===0)return p.alloc(0);if(this.length===1)return this.head.data;for(var h=p.allocUnsafe(T>>>0),_=this.head,d=0;_;)b(_.data,h,d),d+=_.data.length,_=_.next;return h},y}(),A&&A.inspect&&A.inspect.custom&&(Y.exports.prototype[A.inspect.custom]=function(){var y=A.inspect({length:this.length});return this.constructor.name+" "+y})},{"safe-buffer":228,util:71}],220:[function(M,Y,s){"use strict";var L=M("process-nextick-args");function p(y,S){var T=this,h=this._readableState&&this._readableState.destroyed,_=this._writableState&&this._writableState.destroyed;return h||_?(S?S(y):y&&(!this._writableState||!this._writableState.errorEmitted)&&L.nextTick(b,this,y),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(d){!S&&d?(L.nextTick(b,T,d),T._writableState&&(T._writableState.errorEmitted=!0)):S&&S(d)}),this)}function A(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function b(y,S){y.emit("error",S)}Y.exports={destroy:p,undestroy:A}},{"process-nextick-args":207}],221:[function(M,Y,s){"use strict";Y.exports=M("events").EventEmitter},{events:192}],222:[function(M,Y,s){Y.exports=M("./readable").PassThrough},{"./readable":223}],223:[function(M,Y,s){s=Y.exports=M("./lib/_stream_readable.js"),s.Stream=s,s.Readable=s,s.Writable=M("./lib/_stream_writable.js"),s.Duplex=M("./lib/_stream_duplex.js"),s.Transform=M("./lib/_stream_transform.js"),s.PassThrough=M("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(M,Y,s){Y.exports=M("./readable").Transform},{"./readable":223}],225:[function(M,Y,s){Y.exports=M("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(M,Y,s){var L=function(){return this}()||Function("return this")(),p=L.regeneratorRuntime&&Object.getOwnPropertyNames(L).indexOf("regeneratorRuntime")>=0,A=p&&L.regeneratorRuntime;if(L.regeneratorRuntime=void 0,Y.exports=M("./runtime"),p)L.regeneratorRuntime=A;else try{delete L.regeneratorRuntime}catch(b){L.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(M,Y,s){!function(L){"use strict";var p=Object.prototype,A=p.hasOwnProperty,b,y=typeof Symbol=="function"?Symbol:{},S=y.iterator||"@@iterator",T=y.asyncIterator||"@@asyncIterator",h=y.toStringTag||"@@toStringTag",_=typeof Y=="object",d=L.regeneratorRuntime;if(d){_&&(Y.exports=d);return}d=L.regeneratorRuntime=_?Y.exports:{};function r(F,W,K,B){var k=W&&W.prototype instanceof l?W:l,G=Object.create(k.prototype),ne=new D(B||[]);return G._invoke=x(F,K,ne),G}d.wrap=r;function c(F,W,K){try{return{type:"normal",arg:F.call(W,K)}}catch(B){return{type:"throw",arg:B}}}var t="suspendedStart",a="suspendedYield",n="executing",i="completed",f={};function l(){}function o(){}function m(){}var w={};w[S]=function(){return this};var C=Object.getPrototypeOf,v=C&&C(C(N([])));v&&v!==p&&A.call(v,S)&&(w=v);var P=m.prototype=l.prototype=Object.create(w);o.prototype=P.constructor=m,m.constructor=o,m[h]=o.displayName="GeneratorFunction";function R(F){["next","throw","return"].forEach(function(W){F[W]=function(K){return this._invoke(W,K)}})}d.isGeneratorFunction=function(F){var W=typeof F=="function"&&F.constructor;return W?W===o||(W.displayName||W.name)==="GeneratorFunction":!1},d.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,m):(F.__proto__=m,h in F||(F[h]="GeneratorFunction")),F.prototype=Object.create(P),F},d.awrap=function(F){return{__await:F}};function E(F){function W(k,G,ne,fe){var de=c(F[k],F,G);if(de.type==="throw")fe(de.arg);else{var Ee=de.arg,we=Ee.value;return we&&typeof we=="object"&&A.call(we,"__await")?Promise.resolve(we.__await).then(function(ce){W("next",ce,ne,fe)},function(ce){W("throw",ce,ne,fe)}):Promise.resolve(we).then(function(ce){Ee.value=ce,ne(Ee)},fe)}}var K;function B(k,G){function ne(){return new Promise(function(fe,de){W(k,G,fe,de)})}return K=K?K.then(ne,ne):ne()}this._invoke=B}R(E.prototype),E.prototype[T]=function(){return this},d.AsyncIterator=E,d.async=function(F,W,K,B){var k=new E(r(F,W,K,B));return d.isGeneratorFunction(W)?k:k.next().then(function(G){return G.done?G.value:k.next()})};function x(F,W,K){var B=t;return function(G,ne){if(B===n)throw new Error("Generator is already running");if(B===i){if(G==="throw")throw ne;return V()}for(K.method=G,K.arg=ne;;){var fe=K.delegate;if(fe){var de=g(fe,K);if(de){if(de===f)continue;return de}}if(K.method==="next")K.sent=K._sent=K.arg;else if(K.method==="throw"){if(B===t)throw B=i,K.arg;K.dispatchException(K.arg)}else K.method==="return"&&K.abrupt("return",K.arg);B=n;var Ee=c(F,W,K);if(Ee.type==="normal"){if(B=K.done?i:a,Ee.arg===f)continue;return{value:Ee.arg,done:K.done}}else Ee.type==="throw"&&(B=i,K.method="throw",K.arg=Ee.arg)}}}function g(F,W){var K=F.iterator[W.method];if(K===b){if(W.delegate=null,W.method==="throw"){if(F.iterator.return&&(W.method="return",W.arg=b,g(F,W),W.method==="throw"))return f;W.method="throw",W.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var B=c(K,F.iterator,W.arg);if(B.type==="throw")return W.method="throw",W.arg=B.arg,W.delegate=null,f;var k=B.arg;if(!k)return W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,f;if(k.done)W[F.resultName]=k.value,W.next=F.nextLoc,W.method!=="return"&&(W.method="next",W.arg=b);else return k;return W.delegate=null,f}R(P),P[h]="Generator",P[S]=function(){return this},P.toString=function(){return"[object Generator]"};function O(F){var W={tryLoc:F[0]};1 in F&&(W.catchLoc=F[1]),2 in F&&(W.finallyLoc=F[2],W.afterLoc=F[3]),this.tryEntries.push(W)}function I(F){var W=F.completion||{};W.type="normal",delete W.arg,F.completion=W}function D(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(O,this),this.reset(!0)}d.keys=function(F){var W=[];for(var K in F)W.push(K);return W.reverse(),function B(){for(;W.length;){var k=W.pop();if(k in F)return B.value=k,B.done=!1,B}return B.done=!0,B}};function N(F){if(F){var W=F[S];if(W)return W.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var K=-1,B=function k(){for(;++K<F.length;)if(A.call(F,K))return k.value=F[K],k.done=!1,k;return k.value=b,k.done=!0,k};return B.next=B}}return{next:V}}d.values=N;function V(){return{value:b,done:!0}}D.prototype={constructor:D,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(I),!F)for(var W in this)W.charAt(0)==="t"&&A.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=b)},stop:function(){this.done=!0;var F=this.tryEntries[0],W=F.completion;if(W.type==="throw")throw W.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var W=this;function K(de,Ee){return G.type="throw",G.arg=F,W.next=de,Ee&&(W.method="next",W.arg=b),!!Ee}for(var B=this.tryEntries.length-1;B>=0;--B){var k=this.tryEntries[B],G=k.completion;if(k.tryLoc==="root")return K("end");if(k.tryLoc<=this.prev){var ne=A.call(k,"catchLoc"),fe=A.call(k,"finallyLoc");if(ne&&fe){if(this.prev<k.catchLoc)return K(k.catchLoc,!0);if(this.prev<k.finallyLoc)return K(k.finallyLoc)}else if(ne){if(this.prev<k.catchLoc)return K(k.catchLoc,!0)}else if(fe){if(this.prev<k.finallyLoc)return K(k.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(F,W){for(var K=this.tryEntries.length-1;K>=0;--K){var B=this.tryEntries[K];if(B.tryLoc<=this.prev&&A.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var k=B;break}}k&&(F==="break"||F==="continue")&&k.tryLoc<=W&&W<=k.finallyLoc&&(k=null);var G=k?k.completion:{};return G.type=F,G.arg=W,k?(this.method="next",this.next=k.finallyLoc,f):this.complete(G)},complete:function(F,W){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&W&&(this.next=W),f},finish:function(F){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.finallyLoc===F)return this.complete(K.completion,K.afterLoc),I(K),f}},catch:function(F){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.tryLoc===F){var B=K.completion;if(B.type==="throw"){var k=B.arg;I(K)}return k}}throw new Error("illegal catch attempt")},delegateYield:function(F,W,K){return this.delegate={iterator:N(F),resultName:W,nextLoc:K},this.method==="next"&&(this.arg=b),f}}}(function(){return this}()||Function("return this")())},{}],228:[function(M,Y,s){var L=M("buffer"),p=L.Buffer;function A(y,S){for(var T in y)S[T]=y[T]}p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?Y.exports=L:(A(L,s),s.Buffer=b);function b(y,S,T){return p(y,S,T)}A(p,b),b.from=function(y,S,T){if(typeof y=="number")throw new TypeError("Argument must not be a number");return p(y,S,T)},b.alloc=function(y,S,T){if(typeof y!="number")throw new TypeError("Argument must be a number");var h=p(y);return S!==void 0?typeof T=="string"?h.fill(S,T):h.fill(S):h.fill(0),h},b.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return p(y)},b.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return L.SlowBuffer(y)}},{buffer:73}],229:[function(M,Y,s){(function(L){"use strict";var p=M("babel-runtime/core-js/string/from-code-point"),A=a(p),b=M("babel-runtime/core-js/json/stringify"),y=a(b),S=M("babel-runtime/helpers/typeof"),T=a(S),h=M("babel-runtime/core-js/object/define-property"),_=a(h),d=M("babel-runtime/core-js/object/keys"),r=a(d),c=M("babel-runtime/core-js/object/create"),t=a(c);function a(n){return n&&n.__esModule?n:{default:n}}(function(n){n.parser=function(J,te){return new f(J,te)},n.SAXParser=f,n.SAXStream=P,n.createStream=v,n.MAX_BUFFER_LENGTH=64*1024;var i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function f(J,te){if(!(this instanceof f))return new f(J,te);var Ae=this;o(Ae),Ae.q=Ae.c="",Ae.bufferCheckPosition=n.MAX_BUFFER_LENGTH,Ae.opt=te||{},Ae.opt.lowercase=Ae.opt.lowercase||Ae.opt.lowercasetags,Ae.looseCase=Ae.opt.lowercase?"toLowerCase":"toUpperCase",Ae.tags=[],Ae.closed=Ae.closedRoot=Ae.sawRoot=!1,Ae.tag=Ae.error=null,Ae.strict=!!J,Ae.noscript=!!(J||Ae.opt.noscript),Ae.state=G.BEGIN,Ae.strictEntities=Ae.opt.strictEntities,Ae.ENTITIES=Ae.strictEntities?(0,t.default)(n.XML_ENTITIES):(0,t.default)(n.ENTITIES),Ae.attribList=[],Ae.opt.xmlns&&(Ae.ns=(0,t.default)(O)),Ae.trackPosition=Ae.opt.position!==!1,Ae.trackPosition&&(Ae.position=Ae.line=Ae.column=0),fe(Ae,"onready")}t.default||(Object.create=function(J){function te(){}te.prototype=J;var Ae=new te;return Ae}),r.default||(Object.keys=function(J){var te=[];for(var Ae in J)J.hasOwnProperty(Ae)&&te.push(Ae);return te});function l(J){for(var te=Math.max(n.MAX_BUFFER_LENGTH,10),Ae=0,Se=0,ke=i.length;Se<ke;Se++){var rt=J[i[Se]].length;if(rt>te)switch(i[Se]){case"textNode":Ee(J);break;case"cdata":de(J,"oncdata",J.cdata),J.cdata="";break;case"script":de(J,"onscript",J.script),J.script="";break;default:ce(J,"Max buffer length exceeded: "+i[Se])}Ae=Math.max(Ae,rt)}var ot=n.MAX_BUFFER_LENGTH-Ae;J.bufferCheckPosition=ot+J.position}function o(J){for(var te=0,Ae=i.length;te<Ae;te++)J[i[te]]=""}function m(J){Ee(J),J.cdata!==""&&(de(J,"oncdata",J.cdata),J.cdata=""),J.script!==""&&(de(J,"onscript",J.script),J.script="")}f.prototype={end:function(){be(this)},write:$,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){m(this)}};var w;try{w=M("stream").Stream}catch(J){w=function(){}}var C=n.EVENTS.filter(function(J){return J!=="error"&&J!=="end"});function v(J,te){return new P(J,te)}function P(J,te){if(!(this instanceof P))return new P(J,te);w.apply(this),this._parser=new f(J,te),this.writable=!0,this.readable=!0;var Ae=this;this._parser.onend=function(){Ae.emit("end")},this._parser.onerror=function(Se){Ae.emit("error",Se),Ae._parser.error=null},this._decoder=null,C.forEach(function(Se){(0,_.default)(Ae,"on"+Se,{get:function(){return Ae._parser["on"+Se]},set:function(rt){if(!rt)return Ae.removeAllListeners(Se),Ae._parser["on"+Se]=rt,rt;Ae.on(Se,rt)},enumerable:!0,configurable:!1})})}P.prototype=(0,t.default)(w.prototype,{constructor:{value:P}}),P.prototype.write=function(J){if(typeof L=="function"&&typeof L.isBuffer=="function"&&L.isBuffer(J)){if(!this._decoder){var te=M("string_decoder").StringDecoder;this._decoder=new te("utf8")}J=this._decoder.write(J)}return this._parser.write(J.toString()),this.emit("data",J),!0},P.prototype.end=function(J){return J&&J.length&&this.write(J),this._parser.end(),!0},P.prototype.on=function(J,te){var Ae=this;return!Ae._parser["on"+J]&&C.indexOf(J)!==-1&&(Ae._parser["on"+J]=function(){var Se=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Se.splice(0,0,J),Ae.emit.apply(Ae,Se)}),w.prototype.on.call(Ae,J,te)};var R="[CDATA[",E="DOCTYPE",x="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/2000/xmlns/",O={xml:x,xmlns:g},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,D=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,N=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,V=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function F(J){return J===" "||J===`
`||J==="\r"||J===" "}function W(J){return J==='"'||J==="'"}function K(J){return J===">"||F(J)}function B(J,te){return J.test(te)}function k(J,te){return!B(J,te)}var G=0;n.STATE={BEGIN:G++,BEGIN_WHITESPACE:G++,TEXT:G++,TEXT_ENTITY:G++,OPEN_WAKA:G++,SGML_DECL:G++,SGML_DECL_QUOTED:G++,DOCTYPE:G++,DOCTYPE_QUOTED:G++,DOCTYPE_DTD:G++,DOCTYPE_DTD_QUOTED:G++,COMMENT_STARTING:G++,COMMENT:G++,COMMENT_ENDING:G++,COMMENT_ENDED:G++,CDATA:G++,CDATA_ENDING:G++,CDATA_ENDING_2:G++,PROC_INST:G++,PROC_INST_BODY:G++,PROC_INST_ENDING:G++,OPEN_TAG:G++,OPEN_TAG_SLASH:G++,ATTRIB:G++,ATTRIB_NAME:G++,ATTRIB_NAME_SAW_WHITE:G++,ATTRIB_VALUE:G++,ATTRIB_VALUE_QUOTED:G++,ATTRIB_VALUE_CLOSED:G++,ATTRIB_VALUE_UNQUOTED:G++,ATTRIB_VALUE_ENTITY_Q:G++,ATTRIB_VALUE_ENTITY_U:G++,CLOSE_TAG:G++,CLOSE_TAG_SAW_WHITE:G++,SCRIPT:G++,SCRIPT_ENDING:G++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,r.default)(n.ENTITIES).forEach(function(J){var te=n.ENTITIES[J],Ae=typeof te=="number"?String.fromCharCode(te):te;n.ENTITIES[J]=Ae});for(var ne in n.STATE)n.STATE[n.STATE[ne]]=ne;G=n.STATE;function fe(J,te,Ae){J[te]&&J[te](Ae)}function de(J,te,Ae){J.textNode&&Ee(J),fe(J,te,Ae)}function Ee(J){J.textNode=we(J.opt,J.textNode),J.textNode&&fe(J,"ontext",J.textNode),J.textNode=""}function we(J,te){return J.trim&&(te=te.trim()),J.normalize&&(te=te.replace(/\s+/g," ")),te}function ce(J,te){return Ee(J),J.trackPosition&&(te+=`
Line: `+J.line+`
Column: `+J.column+`
Char: `+J.c),te=new Error(te),J.error=te,fe(J,"onerror",te),J}function be(J){return J.sawRoot&&!J.closedRoot&&ve(J,"Unclosed root tag"),J.state!==G.BEGIN&&J.state!==G.BEGIN_WHITESPACE&&J.state!==G.TEXT&&ce(J,"Unexpected end"),Ee(J),J.c="",J.closed=!0,fe(J,"onend"),f.call(J,J.strict,J.opt),J}function ve(J,te){if((typeof J=="undefined"?"undefined":(0,T.default)(J))!=="object"||!(J instanceof f))throw new Error("bad call to strictFail");J.strict&&ce(J,te)}function ue(J){J.strict||(J.tagName=J.tagName[J.looseCase]());var te=J.tags[J.tags.length-1]||J,Ae=J.tag={name:J.tagName,attributes:{}};J.opt.xmlns&&(Ae.ns=te.ns),J.attribList.length=0,de(J,"onopentagstart",Ae)}function se(J,te){var Ae=J.indexOf(":"),Se=Ae<0?["",J]:J.split(":"),ke=Se[0],rt=Se[1];return te&&J==="xmlns"&&(ke="xmlns",rt=""),{prefix:ke,local:rt}}function q(J){if(J.strict||(J.attribName=J.attribName[J.looseCase]()),J.attribList.indexOf(J.attribName)!==-1||J.tag.attributes.hasOwnProperty(J.attribName)){J.attribName=J.attribValue="";return}if(J.opt.xmlns){var te=se(J.attribName,!0),Ae=te.prefix,Se=te.local;if(Ae==="xmlns")if(Se==="xml"&&J.attribValue!==x)ve(J,"xml: prefix must be bound to "+x+`
Actual: `+J.attribValue);else if(Se==="xmlns"&&J.attribValue!==g)ve(J,"xmlns: prefix must be bound to "+g+`
Actual: `+J.attribValue);else{var ke=J.tag,rt=J.tags[J.tags.length-1]||J;ke.ns===rt.ns&&(ke.ns=(0,t.default)(rt.ns)),ke.ns[Se]=J.attribValue}J.attribList.push([J.attribName,J.attribValue])}else J.tag.attributes[J.attribName]=J.attribValue,de(J,"onattribute",{name:J.attribName,value:J.attribValue});J.attribName=J.attribValue=""}function me(J,te){if(J.opt.xmlns){var Ae=J.tag,Se=se(J.tagName);Ae.prefix=Se.prefix,Ae.local=Se.local,Ae.uri=Ae.ns[Se.prefix]||"",Ae.prefix&&!Ae.uri&&(ve(J,"Unbound namespace prefix: "+(0,y.default)(J.tagName)),Ae.uri=Se.prefix);var ke=J.tags[J.tags.length-1]||J;Ae.ns&&ke.ns!==Ae.ns&&(0,r.default)(Ae.ns).forEach(function(ht){de(J,"onopennamespace",{prefix:ht,uri:Ae.ns[ht]})});for(var rt=0,ot=J.attribList.length;rt<ot;rt++){var gt=J.attribList[rt],Et=gt[0],Ct=gt[1],wt=se(Et,!0),Qe=wt.prefix,Ue=wt.local,ft=Qe===""?"":Ae.ns[Qe]||"",jt={name:Et,value:Ct,prefix:Qe,local:Ue,uri:ft};Qe&&Qe!=="xmlns"&&!ft&&(ve(J,"Unbound namespace prefix: "+(0,y.default)(Qe)),jt.uri=Qe),J.tag.attributes[Et]=jt,de(J,"onattribute",jt)}J.attribList.length=0}J.tag.isSelfClosing=!!te,J.sawRoot=!0,J.tags.push(J.tag),de(J,"onopentag",J.tag),te||(!J.noscript&&J.tagName.toLowerCase()==="script"?J.state=G.SCRIPT:J.state=G.TEXT,J.tag=null,J.tagName=""),J.attribName=J.attribValue="",J.attribList.length=0}function re(J){if(!J.tagName){ve(J,"Weird empty close tag."),J.textNode+="</>",J.state=G.TEXT;return}if(J.script){if(J.tagName!=="script"){J.script+="</"+J.tagName+">",J.tagName="",J.state=G.SCRIPT;return}de(J,"onscript",J.script),J.script=""}var te=J.tags.length,Ae=J.tagName;J.strict||(Ae=Ae[J.looseCase]());for(var Se=Ae;te--;){var ke=J.tags[te];if(ke.name!==Se)ve(J,"Unexpected close tag");else break}if(te<0){ve(J,"Unmatched closing tag: "+J.tagName),J.textNode+="</"+J.tagName+">",J.state=G.TEXT;return}J.tagName=Ae;for(var rt=J.tags.length;rt-- >te;){var ot=J.tag=J.tags.pop();J.tagName=J.tag.name,de(J,"onclosetag",J.tagName);var gt={};for(var Et in ot.ns)gt[Et]=ot.ns[Et];var Ct=J.tags[J.tags.length-1]||J;J.opt.xmlns&&ot.ns!==Ct.ns&&(0,r.default)(ot.ns).forEach(function(wt){var Qe=ot.ns[wt];de(J,"onclosenamespace",{prefix:wt,uri:Qe})})}te===0&&(J.closedRoot=!0),J.tagName=J.attribValue=J.attribName="",J.attribList.length=0,J.state=G.TEXT}function ie(J){var te=J.entity,Ae=te.toLowerCase(),Se,ke="";return J.ENTITIES[te]?J.ENTITIES[te]:J.ENTITIES[Ae]?J.ENTITIES[Ae]:(te=Ae,te.charAt(0)==="#"&&(te.charAt(1)==="x"?(te=te.slice(2),Se=parseInt(te,16),ke=Se.toString(16)):(te=te.slice(1),Se=parseInt(te,10),ke=Se.toString(10))),te=te.replace(/^0+/,""),isNaN(Se)||ke.toLowerCase()!==te?(ve(J,"Invalid character entity"),"&"+J.entity+";"):(0,A.default)(Se))}function Oe(J,te){te==="<"?(J.state=G.OPEN_WAKA,J.startTagPosition=J.position):F(te)||(ve(J,"Non-whitespace before first tag."),J.textNode=te,J.state=G.TEXT)}function le(J,te){var Ae="";return te<J.length&&(Ae=J.charAt(te)),Ae}function $(J){var te=this;if(this.error)throw this.error;if(te.closed)return ce(te,"Cannot write after close. Assign an onready handler.");if(J===null)return be(te);(typeof J=="undefined"?"undefined":(0,T.default)(J))==="object"&&(J=J.toString());for(var Ae=0,Se="";!(Se=le(J,Ae++),te.c=Se,!Se);){te.trackPosition&&(te.position++,Se===`
`?(te.line++,te.column=0):te.column++);switch(te.state){case G.BEGIN:if(te.state=G.BEGIN_WHITESPACE,Se==="\uFEFF")continue;Oe(te,Se);continue;case G.BEGIN_WHITESPACE:Oe(te,Se);continue;case G.TEXT:if(te.sawRoot&&!te.closedRoot){for(var ke=Ae-1;Se&&Se!=="<"&&Se!=="&";)Se=le(J,Ae++),Se&&te.trackPosition&&(te.position++,Se===`
`?(te.line++,te.column=0):te.column++);te.textNode+=J.substring(ke,Ae-1)}Se==="<"&&!(te.sawRoot&&te.closedRoot&&!te.strict)?(te.state=G.OPEN_WAKA,te.startTagPosition=te.position):(!F(Se)&&(!te.sawRoot||te.closedRoot)&&ve(te,"Text data outside of root node."),Se==="&"?te.state=G.TEXT_ENTITY:te.textNode+=Se);continue;case G.SCRIPT:Se==="<"?te.state=G.SCRIPT_ENDING:te.script+=Se;continue;case G.SCRIPT_ENDING:Se==="/"?te.state=G.CLOSE_TAG:(te.script+="<"+Se,te.state=G.SCRIPT);continue;case G.OPEN_WAKA:if(Se==="!")te.state=G.SGML_DECL,te.sgmlDecl="";else if(!F(Se))if(B(I,Se))te.state=G.OPEN_TAG,te.tagName=Se;else if(Se==="/")te.state=G.CLOSE_TAG,te.tagName="";else if(Se==="?")te.state=G.PROC_INST,te.procInstName=te.procInstBody="";else{if(ve(te,"Unencoded <"),te.startTagPosition+1<te.position){var rt=te.position-te.startTagPosition;Se=new Array(rt).join(" ")+Se}te.textNode+="<"+Se,te.state=G.TEXT}continue;case G.SGML_DECL:(te.sgmlDecl+Se).toUpperCase()===R?(de(te,"onopencdata"),te.state=G.CDATA,te.sgmlDecl="",te.cdata=""):te.sgmlDecl+Se==="--"?(te.state=G.COMMENT,te.comment="",te.sgmlDecl=""):(te.sgmlDecl+Se).toUpperCase()===E?(te.state=G.DOCTYPE,(te.doctype||te.sawRoot)&&ve(te,"Inappropriately located doctype declaration"),te.doctype="",te.sgmlDecl=""):Se===">"?(de(te,"onsgmldeclaration",te.sgmlDecl),te.sgmlDecl="",te.state=G.TEXT):(W(Se)&&(te.state=G.SGML_DECL_QUOTED),te.sgmlDecl+=Se);continue;case G.SGML_DECL_QUOTED:Se===te.q&&(te.state=G.SGML_DECL,te.q=""),te.sgmlDecl+=Se;continue;case G.DOCTYPE:Se===">"?(te.state=G.TEXT,de(te,"ondoctype",te.doctype),te.doctype=!0):(te.doctype+=Se,Se==="["?te.state=G.DOCTYPE_DTD:W(Se)&&(te.state=G.DOCTYPE_QUOTED,te.q=Se));continue;case G.DOCTYPE_QUOTED:te.doctype+=Se,Se===te.q&&(te.q="",te.state=G.DOCTYPE);continue;case G.DOCTYPE_DTD:te.doctype+=Se,Se==="]"?te.state=G.DOCTYPE:W(Se)&&(te.state=G.DOCTYPE_DTD_QUOTED,te.q=Se);continue;case G.DOCTYPE_DTD_QUOTED:te.doctype+=Se,Se===te.q&&(te.state=G.DOCTYPE_DTD,te.q="");continue;case G.COMMENT:Se==="-"?te.state=G.COMMENT_ENDING:te.comment+=Se;continue;case G.COMMENT_ENDING:Se==="-"?(te.state=G.COMMENT_ENDED,te.comment=we(te.opt,te.comment),te.comment&&de(te,"oncomment",te.comment),te.comment=""):(te.comment+="-"+Se,te.state=G.COMMENT);continue;case G.COMMENT_ENDED:Se!==">"?(ve(te,"Malformed comment"),te.comment+="--"+Se,te.state=G.COMMENT):te.state=G.TEXT;continue;case G.CDATA:Se==="]"?te.state=G.CDATA_ENDING:te.cdata+=Se;continue;case G.CDATA_ENDING:Se==="]"?te.state=G.CDATA_ENDING_2:(te.cdata+="]"+Se,te.state=G.CDATA);continue;case G.CDATA_ENDING_2:Se===">"?(te.cdata&&de(te,"oncdata",te.cdata),de(te,"onclosecdata"),te.cdata="",te.state=G.TEXT):Se==="]"?te.cdata+="]":(te.cdata+="]]"+Se,te.state=G.CDATA);continue;case G.PROC_INST:Se==="?"?te.state=G.PROC_INST_ENDING:F(Se)?te.state=G.PROC_INST_BODY:te.procInstName+=Se;continue;case G.PROC_INST_BODY:if(!te.procInstBody&&F(Se))continue;Se==="?"?te.state=G.PROC_INST_ENDING:te.procInstBody+=Se;continue;case G.PROC_INST_ENDING:Se===">"?(de(te,"onprocessinginstruction",{name:te.procInstName,body:te.procInstBody}),te.procInstName=te.procInstBody="",te.state=G.TEXT):(te.procInstBody+="?"+Se,te.state=G.PROC_INST_BODY);continue;case G.OPEN_TAG:B(D,Se)?te.tagName+=Se:(ue(te),Se===">"?me(te):Se==="/"?te.state=G.OPEN_TAG_SLASH:(F(Se)||ve(te,"Invalid character in tag name"),te.state=G.ATTRIB));continue;case G.OPEN_TAG_SLASH:Se===">"?(me(te,!0),re(te)):(ve(te,"Forward-slash in opening tag not followed by >"),te.state=G.ATTRIB);continue;case G.ATTRIB:if(F(Se))continue;Se===">"?me(te):Se==="/"?te.state=G.OPEN_TAG_SLASH:B(I,Se)?(te.attribName=Se,te.attribValue="",te.state=G.ATTRIB_NAME):ve(te,"Invalid attribute name");continue;case G.ATTRIB_NAME:Se==="="?te.state=G.ATTRIB_VALUE:Se===">"?(ve(te,"Attribute without value"),te.attribValue=te.attribName,q(te),me(te)):F(Se)?te.state=G.ATTRIB_NAME_SAW_WHITE:B(D,Se)?te.attribName+=Se:ve(te,"Invalid attribute name");continue;case G.ATTRIB_NAME_SAW_WHITE:if(Se==="=")te.state=G.ATTRIB_VALUE;else{if(F(Se))continue;ve(te,"Attribute without value"),te.tag.attributes[te.attribName]="",te.attribValue="",de(te,"onattribute",{name:te.attribName,value:""}),te.attribName="",Se===">"?me(te):B(I,Se)?(te.attribName=Se,te.state=G.ATTRIB_NAME):(ve(te,"Invalid attribute name"),te.state=G.ATTRIB)}continue;case G.ATTRIB_VALUE:if(F(Se))continue;W(Se)?(te.q=Se,te.state=G.ATTRIB_VALUE_QUOTED):(ve(te,"Unquoted attribute value"),te.state=G.ATTRIB_VALUE_UNQUOTED,te.attribValue=Se);continue;case G.ATTRIB_VALUE_QUOTED:if(Se!==te.q){Se==="&"?te.state=G.ATTRIB_VALUE_ENTITY_Q:te.attribValue+=Se;continue}q(te),te.q="",te.state=G.ATTRIB_VALUE_CLOSED;continue;case G.ATTRIB_VALUE_CLOSED:F(Se)?te.state=G.ATTRIB:Se===">"?me(te):Se==="/"?te.state=G.OPEN_TAG_SLASH:B(I,Se)?(ve(te,"No whitespace between attributes"),te.attribName=Se,te.attribValue="",te.state=G.ATTRIB_NAME):ve(te,"Invalid attribute name");continue;case G.ATTRIB_VALUE_UNQUOTED:if(!K(Se)){Se==="&"?te.state=G.ATTRIB_VALUE_ENTITY_U:te.attribValue+=Se;continue}q(te),Se===">"?me(te):te.state=G.ATTRIB;continue;case G.CLOSE_TAG:if(te.tagName)Se===">"?re(te):B(D,Se)?te.tagName+=Se:te.script?(te.script+="</"+te.tagName,te.tagName="",te.state=G.SCRIPT):(F(Se)||ve(te,"Invalid tagname in closing tag"),te.state=G.CLOSE_TAG_SAW_WHITE);else{if(F(Se))continue;k(I,Se)?te.script?(te.script+="</"+Se,te.state=G.SCRIPT):ve(te,"Invalid tagname in closing tag."):te.tagName=Se}continue;case G.CLOSE_TAG_SAW_WHITE:if(F(Se))continue;Se===">"?re(te):ve(te,"Invalid characters in closing tag");continue;case G.TEXT_ENTITY:case G.ATTRIB_VALUE_ENTITY_Q:case G.ATTRIB_VALUE_ENTITY_U:var ot,gt;switch(te.state){case G.TEXT_ENTITY:ot=G.TEXT,gt="textNode";break;case G.ATTRIB_VALUE_ENTITY_Q:ot=G.ATTRIB_VALUE_QUOTED,gt="attribValue";break;case G.ATTRIB_VALUE_ENTITY_U:ot=G.ATTRIB_VALUE_UNQUOTED,gt="attribValue";break}Se===";"?(te[gt]+=ie(te),te.entity="",te.state=ot):B(te.entity.length?V:N,Se)?te.entity+=Se:(ve(te,"Invalid character in entity name"),te[gt]+="&"+te.entity+Se,te.entity="",te.state=ot);continue;default:throw new Error(te,"Unknown state: "+te.state)}}return te.position>=te.bufferCheckPosition&&l(te),te}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */A.default||function(){var J=String.fromCharCode,te=Math.floor,Ae=function(){var ke=16384,rt=[],ot,gt,Et=-1,Ct=arguments.length;if(!Ct)return"";for(var wt="";++Et<Ct;){var Qe=Number(arguments[Et]);if(!isFinite(Qe)||Qe<0||Qe>1114111||te(Qe)!==Qe)throw RangeError("Invalid code point: "+Qe);Qe<=65535?rt.push(Qe):(Qe-=65536,ot=(Qe>>10)+55296,gt=Qe%1024+56320,rt.push(ot,gt)),(Et+1===Ct||rt.length>ke)&&(wt+=J.apply(null,rt),rt.length=0)}return wt};_.default?Object.defineProperty(String,"fromCodePoint",{value:Ae,configurable:!0,writable:!0}):String.fromCodePoint=Ae}()})(typeof s=="undefined"?(void 0).sax={}:s)}).call(this,M("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(M,Y,s){Y.exports=A;var L=M("events").EventEmitter,p=M("inherits");p(A,L),A.Readable=M("readable-stream/readable.js"),A.Writable=M("readable-stream/writable.js"),A.Duplex=M("readable-stream/duplex.js"),A.Transform=M("readable-stream/transform.js"),A.PassThrough=M("readable-stream/passthrough.js"),A.Stream=A;function A(){L.call(this)}A.prototype.pipe=function(b,y){var S=this;function T(a){b.writable&&(b.write(a)===!1&&S.pause&&S.pause())}S.on("data",T);function h(){S.readable&&S.resume&&S.resume()}b.on("drain",h),!b._isStdio&&(!y||y.end!==!1)&&(S.on("end",d),S.on("close",r));var _=!1;function d(){if(_)return;_=!0,b.end()}function r(){if(_)return;_=!0,typeof b.destroy=="function"&&b.destroy()}function c(a){if(t(),L.listenerCount(this,"error")===0)throw a}S.on("error",c),b.on("error",c);function t(){S.removeListener("data",T),b.removeListener("drain",h),S.removeListener("end",d),S.removeListener("close",r),S.removeListener("error",c),b.removeListener("error",c),S.removeListener("end",t),S.removeListener("close",t),b.removeListener("close",t)}return S.on("end",t),S.on("close",t),b.on("close",t),b.emit("pipe",S),b}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(M,Y,s){(function(L){var p=M("./lib/request"),A=M("./lib/response"),b=M("xtend"),y=M("builtin-status-codes"),S=M("url"),T=s;T.request=function(h,_){typeof h=="string"?h=S.parse(h):h=b(h);var d=L.location.protocol.search(/^https?:$/)===-1?"http:":"",r=h.protocol||d,c=h.hostname||h.host,t=h.port,a=h.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),h.url=(c?r+"//"+c:"")+(t?":"+t:"")+a,h.method=(h.method||"GET").toUpperCase(),h.headers=h.headers||{};var n=new p(h);return _&&n.on("response",_),n},T.get=function(_,d){var r=T.request(_,d);return r.end(),r},T.ClientRequest=p,T.IncomingMessage=A.IncomingMessage,T.Agent=function(){},T.Agent.defaultMaxSockets=4,T.globalAgent=new T.Agent,T.STATUS_CODES=y,T.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(M,Y,s){(function(L){"use strict";s.fetch=T(L.fetch)&&T(L.ReadableStream),s.writableStream=T(L.WritableStream),s.abortController=T(L.AbortController),s.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),s.blobConstructor=!0}catch(h){}var p;function A(){if(p!==void 0)return p;if(L.XMLHttpRequest){p=new L.XMLHttpRequest;try{p.open("GET",L.XDomainRequest?"/":"https://example.com")}catch(h){p=null}}else p=null;return p}function b(h){var _=A();if(!_)return!1;try{return _.responseType=h,_.responseType===h}catch(d){}return!1}var y=typeof L.ArrayBuffer!="undefined",S=y&&T(L.ArrayBuffer.prototype.slice);s.arraybuffer=s.fetch||y&&b("arraybuffer"),s.msstream=!s.fetch&&S&&b("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&y&&b("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||(A()?T(A().overrideMimeType):!1),s.vbArray=T(L.VBArray);function T(h){return typeof h=="function"}p=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(M,Y,s){(function(L,p,A){"use strict";var b=M("babel-runtime/core-js/object/keys"),y=S(b);function S(l){return l&&l.__esModule?l:{default:l}}var T=M("./capability"),h=M("inherits"),_=M("./response"),d=M("readable-stream"),r=M("to-arraybuffer"),c=_.IncomingMessage,t=_.readyStates;function a(l,o){return T.fetch&&o?"fetch":T.mozchunkedarraybuffer?"moz-chunked-arraybuffer":T.msstream?"ms-stream":T.arraybuffer&&l?"arraybuffer":T.vbArray&&l?"text:vbarray":"text"}var n=Y.exports=function(l){var o=this;d.Writable.call(o),o._opts=l,o._body=[],o._headers={},l.auth&&o.setHeader("Authorization","Basic "+new A(l.auth).toString("base64")),(0,y.default)(l.headers).forEach(function(C){o.setHeader(C,l.headers[C])});var m,w=!0;if(l.mode==="disable-fetch"||"requestTimeout"in l&&!T.abortController)w=!1,m=!0;else if(l.mode==="prefer-streaming")m=!1;else if(l.mode==="allow-wrong-content-type")m=!T.overrideMimeType;else if(!l.mode||l.mode==="default"||l.mode==="prefer-fast")m=!0;else throw new Error("Invalid value for opts.mode");o._mode=a(m,w),o._fetchTimer=null,o.on("finish",function(){o._onFinish()})};h(n,d.Writable),n.prototype.setHeader=function(l,o){var m=this,w=l.toLowerCase();if(f.indexOf(w)!==-1)return;m._headers[w]={name:l,value:o}},n.prototype.getHeader=function(l){var o=this._headers[l.toLowerCase()];return o?o.value:null},n.prototype.removeHeader=function(l){var o=this;delete o._headers[l.toLowerCase()]},n.prototype._onFinish=function(){var l=this;if(l._destroyed)return;var o=l._opts,m=l._headers,w=null;o.method!=="GET"&&o.method!=="HEAD"&&(T.arraybuffer?w=r(A.concat(l._body)):T.blobConstructor?w=new p.Blob(l._body.map(function(x){return r(x)}),{type:(m["content-type"]||{}).value||""}):w=A.concat(l._body).toString());var C=[];if((0,y.default)(m).forEach(function(x){var g=m[x].name,O=m[x].value;Array.isArray(O)?O.forEach(function(I){C.push([g,I])}):C.push([g,O])}),l._mode==="fetch"){var v=null,P=null;if(T.abortController){var R=new AbortController;v=R.signal,l._fetchAbortController=R,"requestTimeout"in o&&o.requestTimeout!==0&&(l._fetchTimer=p.setTimeout(function(){l.emit("requestTimeout"),l._fetchAbortController&&l._fetchAbortController.abort()},o.requestTimeout))}p.fetch(l._opts.url,{method:l._opts.method,headers:C,body:w||void 0,mode:"cors",credentials:o.withCredentials?"include":"same-origin",signal:v}).then(function(x){l._fetchResponse=x,l._connect()},function(x){p.clearTimeout(l._fetchTimer),l._destroyed||l.emit("error",x)})}else{var E=l._xhr=new p.XMLHttpRequest;try{E.open(l._opts.method,l._opts.url,!0)}catch(x){L.nextTick(function(){l.emit("error",x)});return}"responseType"in E&&(E.responseType=l._mode.split(":")[0]),"withCredentials"in E&&(E.withCredentials=!!o.withCredentials),l._mode==="text"&&"overrideMimeType"in E&&E.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in o&&(E.timeout=o.requestTimeout,E.ontimeout=function(){l.emit("requestTimeout")}),C.forEach(function(x){E.setRequestHeader(x[0],x[1])}),l._response=null,E.onreadystatechange=function(){switch(E.readyState){case t.LOADING:case t.DONE:l._onXHRProgress();break}},l._mode==="moz-chunked-arraybuffer"&&(E.onprogress=function(){l._onXHRProgress()}),E.onerror=function(){if(l._destroyed)return;l.emit("error",new Error("XHR error"))};try{E.send(w)}catch(x){L.nextTick(function(){l.emit("error",x)});return}}};function i(l){try{var o=l.status;return o!==null&&o!==0}catch(m){return!1}}n.prototype._onXHRProgress=function(){var l=this;if(!i(l._xhr)||l._destroyed)return;l._response||l._connect(),l._response._onXHRProgress()},n.prototype._connect=function(){var l=this;if(l._destroyed)return;l._response=new c(l._xhr,l._fetchResponse,l._mode,l._fetchTimer),l._response.on("error",function(o){l.emit("error",o)}),l.emit("response",l._response)},n.prototype._write=function(l,o,m){var w=this;w._body.push(l),m()},n.prototype.abort=n.prototype.destroy=function(){var l=this;l._destroyed=!0,p.clearTimeout(l._fetchTimer),l._response&&(l._response._destroyed=!0),l._xhr?l._xhr.abort():l._fetchAbortController&&l._fetchAbortController.abort()},n.prototype.end=function(l,o,m){var w=this;typeof l=="function"&&(m=l,l=void 0),d.Writable.prototype.end.call(w,l,o,m)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},M("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(M,Y,s){(function(L,p,A){"use strict";var b=M("babel-runtime/core-js/promise"),y=S(b);function S(c){return c&&c.__esModule?c:{default:c}}var T=M("./capability"),h=M("inherits"),_=M("readable-stream"),d=s.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=s.IncomingMessage=function(c,t,a,n){var i=this;if(_.Readable.call(i),i._mode=a,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){L.nextTick(function(){i.emit("close")})}),a==="fetch"){var f=function v(){o.read().then(function(P){if(i._destroyed)return;if(P.done){p.clearTimeout(n),i.push(null);return}i.push(new A(P.value)),v()}).catch(function(P){p.clearTimeout(n),i._destroyed||i.emit("error",P)})};if(i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText,t.headers.forEach(function(v,P){i.headers[P.toLowerCase()]=v,i.rawHeaders.push(P,v)}),T.writableStream){var l=new WritableStream({write:function(P){return new y.default(function(R,E){i._destroyed?E():i.push(new A(P))?R():i._resumeFetch=R})},close:function(){p.clearTimeout(n),i._destroyed||i.push(null)},abort:function(P){i._destroyed||i.emit("error",P)}});try{t.body.pipeTo(l).catch(function(v){p.clearTimeout(n),i._destroyed||i.emit("error",v)});return}catch(v){}}var o=t.body.getReader();f()}else{i._xhr=c,i._pos=0,i.url=c.responseURL,i.statusCode=c.status,i.statusMessage=c.statusText;var m=c.getAllResponseHeaders().split(/\r?\n/);if(m.forEach(function(v){var P=v.match(/^([^:]+):\s*(.*)/);if(P){var R=P[1].toLowerCase();R==="set-cookie"?(i.headers[R]===void 0&&(i.headers[R]=[]),i.headers[R].push(P[2])):i.headers[R]!==void 0?i.headers[R]+=", "+P[2]:i.headers[R]=P[2],i.rawHeaders.push(P[1],P[2])}}),i._charset="x-user-defined",!T.overrideMimeType){var w=i.rawHeaders["mime-type"];if(w){var C=w.match(/;\s*charset=([^;])(;|$)/);C&&(i._charset=C[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};h(r,_.Readable),r.prototype._read=function(){var c=this,t=c._resumeFetch;t&&(c._resumeFetch=null,t())},r.prototype._onXHRProgress=function(){var c=this,t=c._xhr,a=null;switch(c._mode){case"text:vbarray":if(t.readyState!==d.DONE)break;try{a=new p.VBArray(t.responseBody).toArray()}catch(o){}if(a!==null){c.push(new A(a));break}case"text":try{a=t.responseText}catch(o){c._mode="text:vbarray";break}if(a.length>c._pos){var n=a.substr(c._pos);if(c._charset==="x-user-defined"){for(var i=new A(n.length),f=0;f<n.length;f++)i[f]=n.charCodeAt(f)&255;c.push(i)}else c.push(n,c._charset);c._pos=a.length}break;case"arraybuffer":if(t.readyState!==d.DONE||!t.response)break;a=t.response,c.push(new A(new Uint8Array(a)));break;case"moz-chunked-arraybuffer":if(a=t.response,t.readyState!==d.LOADING||!a)break;c.push(new A(new Uint8Array(a)));break;case"ms-stream":if(a=t.response,t.readyState!==d.LOADING)break;var l=new p.MSStreamReader;l.onprogress=function(){l.result.byteLength>c._pos&&(c.push(new A(new Uint8Array(l.result.slice(c._pos)))),c._pos=l.result.byteLength)},l.onload=function(){c.push(null)},l.readAsArrayBuffer(a);break}c._xhr.readyState===d.DONE&&c._mode!=="ms-stream"&&c.push(null)}}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},M("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(M,Y,s){"use strict";var L=M("safe-buffer").Buffer,p=L.isEncoding||function(l){l=""+l;switch(l&&l.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function A(l){if(!l)return"utf8";for(var o;;)switch(l){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return l;default:if(o)return;l=(""+l).toLowerCase(),o=!0}}function b(l){var o=A(l);if(typeof o!="string"&&(L.isEncoding===p||!p(l)))throw new Error("Unknown encoding: "+l);return o||l}s.StringDecoder=y;function y(l){this.encoding=b(l);var o;switch(this.encoding){case"utf16le":this.text=c,this.end=t,o=4;break;case"utf8":this.fillLast=_,o=4;break;case"base64":this.text=a,this.end=n,o=3;break;default:this.write=i,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=L.allocUnsafe(o)}y.prototype.write=function(l){if(l.length===0)return"";var o,m;if(this.lastNeed){if(o=this.fillLast(l),o===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<l.length?o?o+this.text(l,m):this.text(l,m):o||""},y.prototype.end=r,y.prototype.text=d,y.prototype.fillLast=function(l){if(this.lastNeed<=l.length)return l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,l.length),this.lastNeed-=l.length};function S(l){return l<=127?0:l>>5===6?2:l>>4===14?3:l>>3===30?4:l>>6===2?-1:-2}function T(l,o,m){var w=o.length-1;if(w<m)return 0;var C=S(o[w]);return C>=0?(C>0&&(l.lastNeed=C-1),C):--w<m||C===-2?0:(C=S(o[w]),C>=0?(C>0&&(l.lastNeed=C-2),C):--w<m||C===-2?0:(C=S(o[w]),C>=0?(C>0&&(C===2?C=0:l.lastNeed=C-3),C):0))}function h(l,o,m){if((o[0]&192)!==128)return l.lastNeed=0,"\uFFFD";if(l.lastNeed>1&&o.length>1){if((o[1]&192)!==128)return l.lastNeed=1,"\uFFFD";if(l.lastNeed>2&&o.length>2&&(o[2]&192)!==128)return l.lastNeed=2,"\uFFFD"}}function _(l){var o=this.lastTotal-this.lastNeed,m=h(this,l,o);if(m!==void 0)return m;if(this.lastNeed<=l.length)return l.copy(this.lastChar,o,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);l.copy(this.lastChar,o,0,l.length),this.lastNeed-=l.length}function d(l,o){var m=T(this,l,o);if(!this.lastNeed)return l.toString("utf8",o);this.lastTotal=m;var w=l.length-(m-this.lastNeed);return l.copy(this.lastChar,0,w),l.toString("utf8",o,w)}function r(l){var o=l&&l.length?this.write(l):"";return this.lastNeed?o+"\uFFFD":o}function c(l,o){if((l.length-o)%2===0){var m=l.toString("utf16le",o);if(m){var w=m.charCodeAt(m.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=l[l.length-1],l.toString("utf16le",o,l.length-1)}function t(l){var o=l&&l.length?this.write(l):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return o+this.lastChar.toString("utf16le",0,m)}return o}function a(l,o){var m=(l.length-o)%3;return m===0?l.toString("base64",o):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=l[l.length-1]:(this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1]),l.toString("base64",o,l.length-m))}function n(l){var o=l&&l.length?this.write(l):"";return this.lastNeed?o+this.lastChar.toString("base64",0,3-this.lastNeed):o}function i(l){return l.toString(this.encoding)}function f(l){return l&&l.length?this.write(l):""}},{"safe-buffer":228}],236:[function(M,Y,s){(function(L,p){var A=M("process/browser.js").nextTick,b=Function.prototype.apply,y=Array.prototype.slice,S={},T=0;s.setTimeout=function(){return new h(b.call(setTimeout,window,arguments),clearTimeout)},s.setInterval=function(){return new h(b.call(setInterval,window,arguments),clearInterval)},s.clearTimeout=s.clearInterval=function(_){_.close()};function h(_,d){this._id=_,this._clearFn=d}h.prototype.unref=h.prototype.ref=function(){},h.prototype.close=function(){this._clearFn.call(window,this._id)},s.enroll=function(_,d){clearTimeout(_._idleTimeoutId),_._idleTimeout=d},s.unenroll=function(_){clearTimeout(_._idleTimeoutId),_._idleTimeout=-1},s._unrefActive=s.active=function(_){clearTimeout(_._idleTimeoutId);var d=_._idleTimeout;d>=0&&(_._idleTimeoutId=setTimeout(function(){_._onTimeout&&_._onTimeout()},d))},s.setImmediate=typeof L=="function"?L:function(_){var d=T++,r=arguments.length<2?!1:y.call(arguments,1);return S[d]=!0,A(function(){S[d]&&(r?_.apply(null,r):_.call(null),s.clearImmediate(d))}),d},s.clearImmediate=typeof p=="function"?p:function(_){delete S[_]}}).call(this,M("timers").setImmediate,M("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(M,Y,s){var L=M("buffer").Buffer;Y.exports=function(p){if(p instanceof Uint8Array){if(p.byteOffset===0&&p.byteLength===p.buffer.byteLength)return p.buffer;if(typeof p.buffer.slice=="function")return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}if(L.isBuffer(p)){for(var A=new Uint8Array(p.length),b=p.length,y=0;y<b;y++)A[y]=p[y];return A.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(M,Y,s){"use strict";var L=M("punycode"),p=M("./util");s.parse=o,s.resolve=w,s.resolveObject=C,s.format=m,s.Url=A;function A(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var b=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,S=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,T=["<",">",'"',"`"," ","\r",`
`," "],h=["{","}","|","\\","^","`"].concat(T),_=["'"].concat(h),d=["%","/","?",";","#"].concat(_),r=["/","?","#"],c=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,a=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,n={javascript:!0,"javascript:":!0},i={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},l=M("querystring");function o(v,P,R){if(v&&p.isObject(v)&&v instanceof A)return v;var E=new A;return E.parse(v,P,R),E}A.prototype.parse=function(v,P,R){if(!p.isString(v))throw new TypeError("Parameter 'url' must be a string, not "+typeof v);var E=v.indexOf("?"),x=E!==-1&&E<v.indexOf("#")?"?":"#",g=v.split(x),O=/\\/g;g[0]=g[0].replace(O,"/"),v=g.join(x);var I=v;if(I=I.trim(),!R&&v.split("#").length===1){var D=S.exec(I);if(D)return this.path=I,this.href=I,this.pathname=D[1],D[2]?(this.search=D[2],P?this.query=l.parse(this.search.substr(1)):this.query=this.search.substr(1)):P&&(this.search="",this.query={}),this}var N=b.exec(I);if(N){N=N[0];var V=N.toLowerCase();this.protocol=V,I=I.substr(N.length)}if(R||N||I.match(/^\/\/[^@\/]+@[^@\/]+/)){var F=I.substr(0,2)==="//";F&&!(N&&i[N])&&(I=I.substr(2),this.slashes=!0)}if(!i[N]&&(F||N&&!f[N])){for(var W=-1,K=0;K<r.length;K++){var B=I.indexOf(r[K]);B!==-1&&(W===-1||B<W)&&(W=B)}var k,G;W===-1?G=I.lastIndexOf("@"):G=I.lastIndexOf("@",W),G!==-1&&(k=I.slice(0,G),I=I.slice(G+1),this.auth=decodeURIComponent(k)),W=-1;for(var K=0;K<d.length;K++){var B=I.indexOf(d[K]);B!==-1&&(W===-1||B<W)&&(W=B)}W===-1&&(W=I.length),this.host=I.slice(0,W),I=I.slice(W),this.parseHost(),this.hostname=this.hostname||"";var ne=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ne)for(var fe=this.hostname.split(/\./),K=0,de=fe.length;K<de;K++){var Ee=fe[K];if(!Ee)continue;if(!Ee.match(t)){for(var we="",ce=0,be=Ee.length;ce<be;ce++)Ee.charCodeAt(ce)>127?we+="x":we+=Ee[ce];if(!we.match(t)){var ve=fe.slice(0,K),ue=fe.slice(K+1),se=Ee.match(a);se&&(ve.push(se[1]),ue.unshift(se[2])),ue.length&&(I="/"+ue.join(".")+I),this.hostname=ve.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),ne||(this.hostname=L.toASCII(this.hostname));var q=this.port?":"+this.port:"",me=this.hostname||"";this.host=me+q,this.href+=this.host,ne&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),I[0]!=="/"&&(I="/"+I))}if(!n[V])for(var K=0,de=_.length;K<de;K++){var re=_[K];if(I.indexOf(re)===-1)continue;var ie=encodeURIComponent(re);ie===re&&(ie=escape(re)),I=I.split(re).join(ie)}var Oe=I.indexOf("#");Oe!==-1&&(this.hash=I.substr(Oe),I=I.slice(0,Oe));var le=I.indexOf("?");if(le!==-1?(this.search=I.substr(le),this.query=I.substr(le+1),P&&(this.query=l.parse(this.query)),I=I.slice(0,le)):P&&(this.search="",this.query={}),I&&(this.pathname=I),f[V]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",$=this.search||"";this.path=q+$}return this.href=this.format(),this};function m(v){return p.isString(v)&&(v=o(v)),v instanceof A?v.format():A.prototype.format.call(v)}A.prototype.format=function(){var v=this.auth||"";v&&(v=encodeURIComponent(v),v=v.replace(/%3A/i,":"),v+="@");var P=this.protocol||"",R=this.pathname||"",E=this.hash||"",x=!1,g="";this.host?x=v+this.host:this.hostname&&(x=v+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(x+=":"+this.port)),this.query&&p.isObject(this.query)&&Object.keys(this.query).length&&(g=l.stringify(this.query));var O=this.search||g&&"?"+g||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||f[P])&&x!==!1?(x="//"+(x||""),R&&R.charAt(0)!=="/"&&(R="/"+R)):x||(x=""),E&&E.charAt(0)!=="#"&&(E="#"+E),O&&O.charAt(0)!=="?"&&(O="?"+O),R=R.replace(/[?#]/g,function(I){return encodeURIComponent(I)}),O=O.replace("#","%23"),P+x+R+O+E};function w(v,P){return o(v,!1,!0).resolve(P)}A.prototype.resolve=function(v){return this.resolveObject(o(v,!1,!0)).format()};function C(v,P){return v?o(v,!1,!0).resolveObject(P):P}A.prototype.resolveObject=function(v){if(p.isString(v)){var P=new A;P.parse(v,!1,!0),v=P}for(var R=new A,E=Object.keys(this),x=0;x<E.length;x++){var g=E[x];R[g]=this[g]}if(R.hash=v.hash,v.href==="")return R.href=R.format(),R;if(v.slashes&&!v.protocol){for(var O=Object.keys(v),I=0;I<O.length;I++){var D=O[I];D!=="protocol"&&(R[D]=v[D])}return f[R.protocol]&&R.hostname&&!R.pathname&&(R.path=R.pathname="/"),R.href=R.format(),R}if(v.protocol&&v.protocol!==R.protocol){if(!f[v.protocol]){for(var N=Object.keys(v),V=0;V<N.length;V++){var F=N[V];R[F]=v[F]}return R.href=R.format(),R}if(R.protocol=v.protocol,!v.host&&!i[v.protocol]){for(var de=(v.pathname||"").split("/");de.length&&!(v.host=de.shift()););v.host||(v.host=""),v.hostname||(v.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),R.pathname=de.join("/")}else R.pathname=v.pathname;if(R.search=v.search,R.query=v.query,R.host=v.host||"",R.auth=v.auth,R.hostname=v.hostname||v.host,R.port=v.port,R.pathname||R.search){var W=R.pathname||"",K=R.search||"";R.path=W+K}return R.slashes=R.slashes||v.slashes,R.href=R.format(),R}var B=R.pathname&&R.pathname.charAt(0)==="/",k=v.host||v.pathname&&v.pathname.charAt(0)==="/",G=k||B||R.host&&v.pathname,ne=G,fe=R.pathname&&R.pathname.split("/")||[],de=v.pathname&&v.pathname.split("/")||[],Ee=R.protocol&&!f[R.protocol];if(Ee&&(R.hostname="",R.port=null,R.host&&(fe[0]===""?fe[0]=R.host:fe.unshift(R.host)),R.host="",v.protocol&&(v.hostname=null,v.port=null,v.host&&(de[0]===""?de[0]=v.host:de.unshift(v.host)),v.host=null),G=G&&(de[0]===""||fe[0]==="")),k)R.host=v.host||v.host===""?v.host:R.host,R.hostname=v.hostname||v.hostname===""?v.hostname:R.hostname,R.search=v.search,R.query=v.query,fe=de;else if(de.length)fe||(fe=[]),fe.pop(),fe=fe.concat(de),R.search=v.search,R.query=v.query;else if(!p.isNullOrUndefined(v.search)){if(Ee){R.hostname=R.host=fe.shift();var we=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;we&&(R.auth=we.shift(),R.host=R.hostname=we.shift())}return R.search=v.search,R.query=v.query,(!p.isNull(R.pathname)||!p.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.href=R.format(),R}if(!fe.length)return R.pathname=null,R.search?R.path="/"+R.search:R.path=null,R.href=R.format(),R;for(var ce=fe.slice(-1)[0],be=(R.host||v.host||fe.length>1)&&(ce==="."||ce==="..")||ce==="",ve=0,ue=fe.length;ue>=0;ue--)ce=fe[ue],ce==="."?fe.splice(ue,1):ce===".."?(fe.splice(ue,1),ve++):ve&&(fe.splice(ue,1),ve--);if(!G&&!ne)for(;ve--;ve)fe.unshift("..");G&&fe[0]!==""&&(!fe[0]||fe[0].charAt(0)!=="/")&&fe.unshift(""),be&&fe.join("/").substr(-1)!=="/"&&fe.push("");var se=fe[0]===""||fe[0]&&fe[0].charAt(0)==="/";if(Ee){R.hostname=R.host=se?"":fe.length?fe.shift():"";var we=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;we&&(R.auth=we.shift(),R.host=R.hostname=we.shift())}return G=G||R.host&&fe.length,G&&!se&&fe.unshift(""),fe.length?R.pathname=fe.join("/"):(R.pathname=null,R.path=null),(!p.isNull(R.pathname)||!p.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.auth=v.auth||R.auth,R.slashes=R.slashes||v.slashes,R.href=R.format(),R},A.prototype.parseHost=function(){var v=this.host,P=y.exec(v);P&&(P=P[0],P!==":"&&(this.port=P.substr(1)),v=v.substr(0,v.length-P.length)),v&&(this.hostname=v)}},{"./util":239,punycode:209,querystring:212}],239:[function(M,Y,s){"use strict";Y.exports={isString:function(L){return typeof L=="string"},isObject:function(L){return typeof L=="object"&&L!==null},isNull:function(L){return L===null},isNullOrUndefined:function(L){return L==null}}},{}],240:[function(M,Y,s){(function(L){Y.exports=p;function p(b,y){if(A("noDeprecation"))return b;var S=!1;function T(){if(!S){if(A("throwDeprecation"))throw new Error(y);A("traceDeprecation")?console.trace(y):console.warn(y),S=!0}return b.apply(this,arguments)}return T}function A(b){try{if(!L.localStorage)return!1}catch(S){return!1}var y=L.localStorage[b];return y==null?!1:String(y).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(M,Y,s){typeof Object.create=="function"?Y.exports=function(p,A){p.super_=A,p.prototype=Object.create(A.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:Y.exports=function(p,A){p.super_=A;var b=function(){};b.prototype=A.prototype,p.prototype=new b,p.prototype.constructor=p}},{}],242:[function(M,Y,s){Y.exports=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}},{}],243:[function(M,Y,s){(function(L,p){var A=/%[sdj%]/g;s.format=function(W){if(!w(W)){for(var K=[],B=0;B<arguments.length;B++)K.push(S(arguments[B]));return K.join(" ")}for(var B=1,k=arguments,G=k.length,ne=String(W).replace(A,function(de){if(de==="%%")return"%";if(B>=G)return de;switch(de){case"%s":return String(k[B++]);case"%d":return Number(k[B++]);case"%j":try{return JSON.stringify(k[B++])}catch(Ee){return"[Circular]"}default:return de}}),fe=k[B];B<G;fe=k[++B])l(fe)||!R(fe)?ne+=" "+fe:ne+=" "+S(fe);return ne},s.deprecate=function(W,K){if(v(p.process))return function(){return s.deprecate(W,K).apply(this,arguments)};if(L.noDeprecation===!0)return W;var B=!1;function k(){if(!B){if(L.throwDeprecation)throw new Error(K);L.traceDeprecation?console.trace(K):console.error(K),B=!0}return W.apply(this,arguments)}return k};var b={},y;s.debuglog=function(W){if(v(y)&&(y=L.env.NODE_DEBUG||""),W=W.toUpperCase(),!b[W])if(new RegExp("\\b"+W+"\\b","i").test(y)){var K=L.pid;b[W]=function(){var B=s.format.apply(s,arguments);console.error("%s %d: %s",W,K,B)}}else b[W]=function(){};return b[W]};function S(W,K){var B={seen:[],stylize:h};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),f(K)?B.showHidden=K:K&&s._extend(B,K),v(B.showHidden)&&(B.showHidden=!1),v(B.depth)&&(B.depth=2),v(B.colors)&&(B.colors=!1),v(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=T),d(B,W,B.depth)}s.inspect=S,S.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},S.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function T(W,K){var B=S.styles[K];return B?"["+S.colors[B][0]+"m"+W+"["+S.colors[B][1]+"m":W}function h(W,K){return W}function _(W){var K={};return W.forEach(function(B,k){K[B]=!0}),K}function d(W,K,B){if(W.customInspect&&K&&g(K.inspect)&&K.inspect!==s.inspect&&!(K.constructor&&K.constructor.prototype===K)){var k=K.inspect(B,W);return w(k)||(k=d(W,k,B)),k}var G=r(W,K);if(G)return G;var ne=Object.keys(K),fe=_(ne);if(W.showHidden&&(ne=Object.getOwnPropertyNames(K)),x(K)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return c(K);if(ne.length===0){if(g(K)){var de=K.name?": "+K.name:"";return W.stylize("[Function"+de+"]","special")}if(P(K))return W.stylize(RegExp.prototype.toString.call(K),"regexp");if(E(K))return W.stylize(Date.prototype.toString.call(K),"date");if(x(K))return c(K)}var Ee="",we=!1,ce=["{","}"];if(i(K)&&(we=!0,ce=["[","]"]),g(K)){var be=K.name?": "+K.name:"";Ee=" [Function"+be+"]"}if(P(K)&&(Ee=" "+RegExp.prototype.toString.call(K)),E(K)&&(Ee=" "+Date.prototype.toUTCString.call(K)),x(K)&&(Ee=" "+c(K)),ne.length===0&&(!we||K.length==0))return ce[0]+Ee+ce[1];if(B<0)return P(K)?W.stylize(RegExp.prototype.toString.call(K),"regexp"):W.stylize("[Object]","special");W.seen.push(K);var ve;return we?ve=t(W,K,B,fe,ne):ve=ne.map(function(ue){return a(W,K,B,fe,ue,we)}),W.seen.pop(),n(ve,Ee,ce)}function r(W,K){if(v(K))return W.stylize("undefined","undefined");if(w(K)){var B="'"+JSON.stringify(K).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return W.stylize(B,"string")}if(m(K))return W.stylize(""+K,"number");if(f(K))return W.stylize(""+K,"boolean");if(l(K))return W.stylize("null","null")}function c(W){return"["+Error.prototype.toString.call(W)+"]"}function t(W,K,B,k,G){for(var ne=[],fe=0,de=K.length;fe<de;++fe)F(K,String(fe))?ne.push(a(W,K,B,k,String(fe),!0)):ne.push("");return G.forEach(function(Ee){Ee.match(/^\d+$/)||ne.push(a(W,K,B,k,Ee,!0))}),ne}function a(W,K,B,k,G,ne){var fe,de,Ee;if(Ee=Object.getOwnPropertyDescriptor(K,G)||{value:K[G]},Ee.get?Ee.set?de=W.stylize("[Getter/Setter]","special"):de=W.stylize("[Getter]","special"):Ee.set&&(de=W.stylize("[Setter]","special")),F(k,G)||(fe="["+G+"]"),de||(W.seen.indexOf(Ee.value)<0?(l(B)?de=d(W,Ee.value,null):de=d(W,Ee.value,B-1),de.indexOf(`
`)>-1&&(ne?de=de.split(`
`).map(function(we){return" "+we}).join(`
`).substr(2):de=`
`+de.split(`
`).map(function(we){return" "+we}).join(`
`))):de=W.stylize("[Circular]","special")),v(fe)){if(ne&&G.match(/^\d+$/))return de;fe=JSON.stringify(""+G),fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(fe=fe.substr(1,fe.length-2),fe=W.stylize(fe,"name")):(fe=fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),fe=W.stylize(fe,"string"))}return fe+": "+de}function n(W,K,B){var k=0,G=W.reduce(function(ne,fe){return k++,fe.indexOf(`
`)>=0&&k++,ne+fe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return G>60?B[0]+(K===""?"":K+`
`)+" "+W.join(`,
`)+" "+B[1]:B[0]+K+" "+W.join(", ")+" "+B[1]}function i(W){return Array.isArray(W)}s.isArray=i;function f(W){return typeof W=="boolean"}s.isBoolean=f;function l(W){return W===null}s.isNull=l;function o(W){return W==null}s.isNullOrUndefined=o;function m(W){return typeof W=="number"}s.isNumber=m;function w(W){return typeof W=="string"}s.isString=w;function C(W){return typeof W=="symbol"}s.isSymbol=C;function v(W){return W===void 0}s.isUndefined=v;function P(W){return R(W)&&I(W)==="[object RegExp]"}s.isRegExp=P;function R(W){return typeof W=="object"&&W!==null}s.isObject=R;function E(W){return R(W)&&I(W)==="[object Date]"}s.isDate=E;function x(W){return R(W)&&(I(W)==="[object Error]"||W instanceof Error)}s.isError=x;function g(W){return typeof W=="function"}s.isFunction=g;function O(W){return W===null||typeof W=="boolean"||typeof W=="number"||typeof W=="string"||typeof W=="symbol"||typeof W=="undefined"}s.isPrimitive=O,s.isBuffer=M("./support/isBuffer");function I(W){return Object.prototype.toString.call(W)}function D(W){return W<10?"0"+W.toString(10):W.toString(10)}var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var W=new Date,K=[D(W.getHours()),D(W.getMinutes()),D(W.getSeconds())].join(":");return[W.getDate(),N[W.getMonth()],K].join(" ")}s.log=function(){console.log("%s - %s",V(),s.format.apply(s,arguments))},s.inherits=M("inherits"),s._extend=function(W,K){if(!K||!R(K))return W;for(var B=Object.keys(K),k=B.length;k--;)W[B[k]]=K[B[k]];return W};function F(W,K){return Object.prototype.hasOwnProperty.call(W,K)}}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(M,Y,s){"use strict";(function(){"use strict";s.stripBOM=function(L){return L[0]==="\uFEFF"?L.substring(1):L}}).call(void 0)},{}],245:[function(M,Y,s){"use strict";var L=M("babel-runtime/helpers/typeof"),p=y(L),A=M("babel-runtime/core-js/object/keys"),b=y(A);function y(S){return S&&S.__esModule?S:{default:S}}(function(){"use strict";var S,T,h,_,d,r={}.hasOwnProperty;S=M("xmlbuilder"),T=M("./defaults").defaults,_=function(t){return typeof t=="string"&&(t.indexOf("&")>=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},d=function(t){return"<![CDATA["+h(t)+"]]>"},h=function(t){return t.replace("]]>","]]]]><![CDATA[>")},s.Builder=function(){function c(t){var a,n,i;this.options={},n=T["0.2"];for(a in n){if(!r.call(n,a))continue;i=n[a],this.options[a]=i}for(a in t){if(!r.call(t,a))continue;i=t[a],this.options[a]=i}}return c.prototype.buildObject=function(t){var a,n,i,f,l;return a=this.options.attrkey,n=this.options.charkey,(0,b.default)(t).length===1&&this.options.rootName===T["0.2"].rootName?(l=(0,b.default)(t)[0],t=t[l]):l=this.options.rootName,i=function(o){return function(m,w){var C,v,P,R,E,x;if((typeof w=="undefined"?"undefined":(0,p.default)(w))!=="object")o.options.cdata&&_(w)?m.raw(d(w)):m.txt(w);else if(Array.isArray(w))for(R in w){if(!r.call(w,R))continue;v=w[R];for(E in v)P=v[E],m=i(m.ele(E),P).up()}else for(E in w){if(!r.call(w,E))continue;if(v=w[E],E===a){if((typeof v=="undefined"?"undefined":(0,p.default)(v))==="object")for(C in v)x=v[C],m=m.att(C,x)}else if(E===n)o.options.cdata&&_(v)?m=m.raw(d(v)):m=m.txt(v);else if(Array.isArray(v))for(R in v){if(!r.call(v,R))continue;P=v[R],typeof P=="string"?o.options.cdata&&_(P)?m=m.ele(E).raw(d(P)).up():m=m.ele(E,P).up():m=i(m.ele(E),P).up()}else(typeof v=="undefined"?"undefined":(0,p.default)(v))==="object"?m=i(m.ele(E),v).up():typeof v=="string"&&o.options.cdata&&_(v)?m=m.ele(E).raw(d(v)).up():(v==null&&(v=""),m=m.ele(E,v.toString()).up())}return m}}(this),f=S.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),i(f,t).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(M,Y,s){"use strict";(function(){s.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/promise"),p=_(L),A=M("babel-runtime/core-js/object/get-own-property-names"),b=_(A),y=M("babel-runtime/core-js/object/keys"),S=_(y),T=M("babel-runtime/helpers/typeof"),h=_(T);function _(d){return d&&d.__esModule?d:{default:d}}(function(){"use strict";var d,r,c,t,a,n,i,f,l=function(C,v){return function(){return C.apply(v,arguments)}},o=function(C,v){for(var P in v)m.call(v,P)&&(C[P]=v[P]);function R(){this.constructor=C}return R.prototype=v.prototype,C.prototype=new R,C.__super__=v.prototype,C},m={}.hasOwnProperty;i=M("sax"),c=M("events"),d=M("./bom"),n=M("./processors"),f=M("timers").setImmediate,r=M("./defaults").defaults,t=function(C){return(typeof C=="undefined"?"undefined":(0,h.default)(C))==="object"&&C!=null&&(0,S.default)(C).length===0},a=function(C,v,P){var R,E,x;for(R=0,E=C.length;R<E;R++)x=C[R],v=x(v,P);return v},s.Parser=function(w){o(C,w);function C(v){this.parseStringPromise=l(this.parseStringPromise,this),this.parseString=l(this.parseString,this),this.reset=l(this.reset,this),this.assignOrPush=l(this.assignOrPush,this),this.processAsync=l(this.processAsync,this);var P,R,E;if(!(this instanceof s.Parser))return new s.Parser(v);this.options={},R=r["0.2"];for(P in R){if(!m.call(R,P))continue;E=R[P],this.options[P]=E}for(P in v){if(!m.call(v,P))continue;E=v[P],this.options[P]=E}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(n.normalize)),this.reset()}return C.prototype.processAsync=function(){var v,P;try{return this.remaining.length<=this.options.chunkSize?(v=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(v),this.saxParser.close()):(v=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(v),f(this.processAsync))}catch(R){if(P=R,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(P)}},C.prototype.assignOrPush=function(v,P,R){return P in v?(v[P]instanceof Array||(v[P]=[v[P]]),v[P].push(R)):this.options.explicitArray?v[P]=[R]:v[P]=R},C.prototype.reset=function(){var v,P,R,E;return this.removeAllListeners(),this.saxParser=i.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(x){return function(g){if(x.saxParser.resume(),!x.saxParser.errThrown)return x.saxParser.errThrown=!0,x.emit("error",g)}}(this),this.saxParser.onend=function(x){return function(){if(!x.saxParser.ended)return x.saxParser.ended=!0,x.emit("end",x.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,E=[],v=this.options.attrkey,P=this.options.charkey,this.saxParser.onopentag=function(x){return function(g){var O,I,D,N,V;if(D={},D[P]="",!x.options.ignoreAttrs){V=g.attributes;for(O in V){if(!m.call(V,O))continue;!(v in D)&&!x.options.mergeAttrs&&(D[v]={}),I=x.options.attrValueProcessors?a(x.options.attrValueProcessors,g.attributes[O],O):g.attributes[O],N=x.options.attrNameProcessors?a(x.options.attrNameProcessors,O):O,x.options.mergeAttrs?x.assignOrPush(D,N,I):D[v][N]=I}}return D["#name"]=x.options.tagNameProcessors?a(x.options.tagNameProcessors,g.name):g.name,x.options.xmlns&&(D[x.options.xmlnskey]={uri:g.uri,local:g.local}),E.push(D)}}(this),this.saxParser.onclosetag=function(x){return function(){var g,O,I,D,N,V,F,W,K,B;if(V=E.pop(),N=V["#name"],(!x.options.explicitChildren||!x.options.preserveChildrenOrder)&&delete V["#name"],V.cdata===!0&&(g=V.cdata,delete V.cdata),K=E[E.length-1],V[P].match(/^\s*$/)&&!g?(O=V[P],delete V[P]):(x.options.trim&&(V[P]=V[P].trim()),x.options.normalize&&(V[P]=V[P].replace(/\s{2,}/g," ").trim()),V[P]=x.options.valueProcessors?a(x.options.valueProcessors,V[P],N):V[P],(0,S.default)(V).length===1&&P in V&&!x.EXPLICIT_CHARKEY&&(V=V[P])),t(V)&&(V=x.options.emptyTag!==""?x.options.emptyTag:O),x.options.validator!=null&&(B="/"+function(){var k,G,ne;for(ne=[],k=0,G=E.length;k<G;k++)D=E[k],ne.push(D["#name"]);return ne}().concat(N).join("/"),function(){var k;try{return V=x.options.validator(B,K&&K[N],V)}catch(G){return k=G,x.emit("error",k)}}()),x.options.explicitChildren&&!x.options.mergeAttrs&&(typeof V=="undefined"?"undefined":(0,h.default)(V))==="object"){if(!x.options.preserveChildrenOrder)D={},x.options.attrkey in V&&(D[x.options.attrkey]=V[x.options.attrkey],delete V[x.options.attrkey]),!x.options.charsAsChildren&&x.options.charkey in V&&(D[x.options.charkey]=V[x.options.charkey],delete V[x.options.charkey]),(0,b.default)(V).length>0&&(D[x.options.childkey]=V),V=D;else if(K){K[x.options.childkey]=K[x.options.childkey]||[],F={};for(I in V){if(!m.call(V,I))continue;F[I]=V[I]}K[x.options.childkey].push(F),delete V["#name"],(0,S.default)(V).length===1&&P in V&&!x.EXPLICIT_CHARKEY&&(V=V[P])}}return E.length>0?x.assignOrPush(K,N,V):(x.options.explicitRoot&&(W=V,V={},V[N]=W),x.resultObject=V,x.saxParser.ended=!0,x.emit("end",x.resultObject))}}(this),R=function(x){return function(g){var O,I;if(I=E[E.length-1],I)return I[P]+=g,x.options.explicitChildren&&x.options.preserveChildrenOrder&&x.options.charsAsChildren&&(x.options.includeWhiteChars||g.replace(/\\n/g,"").trim()!=="")&&(I[x.options.childkey]=I[x.options.childkey]||[],O={"#name":"__text__"},O[P]=g,x.options.normalize&&(O[P]=O[P].replace(/\s{2,}/g," ").trim()),I[x.options.childkey].push(O)),I}}(this),this.saxParser.ontext=R,this.saxParser.oncdata=function(x){return function(g){var O;if(O=R(g),O)return O.cdata=!0}}(this)},C.prototype.parseString=function(v,P){var R;P!=null&&typeof P=="function"&&(this.on("end",function(E){return this.reset(),P(null,E)}),this.on("error",function(E){return this.reset(),P(E)}));try{return v=v.toString(),v.trim()===""?(this.emit("end",null),!0):(v=d.stripBOM(v),this.options.async?(this.remaining=v,f(this.processAsync),this.saxParser):this.saxParser.write(v).close())}catch(E){if(R=E,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw R}else return this.emit("error",R),this.saxParser.errThrown=!0}},C.prototype.parseStringPromise=function(v){return new p.default(function(P){return function(R,E){return P.parseString(v,function(x,g){return x?E(x):R(g)})}}(this))},C}(c),s.parseString=function(w,C,v){var P,R,E;return v!=null?(typeof v=="function"&&(P=v),(typeof C=="undefined"?"undefined":(0,h.default)(C))==="object"&&(R=C)):(typeof C=="function"&&(P=C),R={}),E=new s.Parser(R),E.parseString(w,P)},s.parseStringPromise=function(w,C){var v,P;return(typeof C=="undefined"?"undefined":(0,h.default)(C))==="object"&&(v=C),P=new s.Parser(v),P.parseStringPromise(w)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(M,Y,s){"use strict";(function(){"use strict";var L;L=new RegExp(/(?!xmlns)^.*:/),s.normalize=function(p){return p.toLowerCase()},s.firstCharLowerCase=function(p){return p.charAt(0).toLowerCase()+p.slice(1)},s.stripPrefix=function(p){return p.replace(L,"")},s.parseNumbers=function(p){return isNaN(p)||(p=p%1===0?parseInt(p,10):parseFloat(p)),p},s.parseBooleans=function(p){return/^(?:true|false)$/i.test(p)&&(p=p.toLowerCase()==="true"),p}}).call(void 0)},{}],249:[function(M,Y,s){"use strict";(function(){"use strict";var L,p,A,b,y=function(h,_){for(var d in _)S.call(_,d)&&(h[d]=_[d]);function r(){this.constructor=h}return r.prototype=_.prototype,h.prototype=new r,h.__super__=_.prototype,h},S={}.hasOwnProperty;p=M("./defaults"),L=M("./builder"),A=M("./parser"),b=M("./processors"),s.defaults=p.defaults,s.processors=b,s.ValidationError=function(T){y(h,T);function h(_){this.message=_}return h}(Error),s.Builder=L.Builder,s.Parser=A.Parser,s.parseString=A.parseString,s.parseStringPromise=A.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(M,Y,s){"use strict";(function(){Y.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(M,Y,s){"use strict";(function(){Y.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/get-prototype-of"),p=T(L),A=M("babel-runtime/helpers/typeof"),b=T(A),y=M("babel-runtime/core-js/object/assign"),S=T(y);function T(h){return h&&h.__esModule?h:{default:h}}(function(){var h,_,d,r,c,t,a,n=[].slice,i={}.hasOwnProperty;h=function(){var l,o,m,w,C,v;if(v=arguments[0],C=2<=arguments.length?n.call(arguments,1):[],c(S.default))S.default.apply(null,arguments);else for(l=0,m=C.length;l<m;l++)if(w=C[l],w!=null)for(o in w){if(!i.call(w,o))continue;v[o]=w[o]}return v},c=function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},t=function(l){var o;return!!l&&((o=typeof l=="undefined"?"undefined":(0,b.default)(l))==="function"||o==="object")},d=function(l){return c(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},r=function(l){var o;if(d(l))return!l.length;for(o in l){if(!i.call(l,o))continue;return!1}return!0},a=function(l){var o,m;return t(l)&&(m=(0,p.default)(l))&&(o=m.constructor)&&typeof o=="function"&&o instanceof o&&Function.prototype.toString.call(o)===Function.prototype.toString.call(Object)},_=function(l){return c(l.valueOf)?l.valueOf():l},Y.exports.assign=h,Y.exports.isFunction=c,Y.exports.isObject=t,Y.exports.isArray=d,Y.exports.isEmpty=r,Y.exports.isPlainObject=a,Y.exports.getValue=_}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(M,Y,s){"use strict";(function(){Y.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,S;b=M("./NodeType"),S=M("./XMLNode"),Y.exports=y=function(){function T(h,_,d){if(this.parent=h,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),_==null)throw new Error("Missing attribute name. "+this.debugInfo(_));this.name=this.stringify.name(_),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(T.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(T.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(T.prototype,"textContent",{get:function(){return this.value},set:function(_){return this.value=_||""}}),Object.defineProperty(T.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(T.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(T.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(T.prototype,"specified",{get:function(){return!0}}),T.prototype.clone=function(){return(0,p.default)(this)},T.prototype.toString=function(h){return this.options.writer.attribute(this,this.options.writer.filterOptions(h))},T.prototype.debugInfo=function(h){return h=h||this.name,h==null?"parent: <"+this.parent.name+">":"attribute: {"+h+"}, parent: <"+this.parent.name+">"},T.prototype.isEqualNode=function(h){return h.namespaceURI!==this.namespaceURI||(h.prefix!==this.prefix||h.localName!==this.localName)?!1:!(h.value!==this.value)},T}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,S,T=function(d,r){for(var c in r)h.call(r,c)&&(d[c]=r[c]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},h={}.hasOwnProperty;b=M("./NodeType"),S=M("./XMLCharacterData"),Y.exports=y=function(_){T(d,_);function d(r,c){if(d.__super__.constructor.call(this,r),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(c)}return d.prototype.clone=function(){return(0,p.default)(this)},d.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))},d}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,S=function(_,d){for(var r in d)T.call(d,r)&&(_[r]=d[r]);function c(){this.constructor=_}return c.prototype=d.prototype,_.prototype=new c,_.__super__=d.prototype,_},T={}.hasOwnProperty;y=M("./XMLNode"),Y.exports=b=function(h){S(_,h);function _(d){_.__super__.constructor.call(this,d),this.value=""}return Object.defineProperty(_.prototype,"data",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(_.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(_.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),_.prototype.clone=function(){return(0,p.default)(this)},_.prototype.substringData=function(d,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.appendData=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.insertData=function(d,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.deleteData=function(d,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.replaceData=function(d,r,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.isEqualNode=function(d){return _.__super__.isEqualNode.apply(this,arguments).isEqualNode(d)?!(d.data!==this.data):!1},_}(y)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,S,T=function(d,r){for(var c in r)h.call(r,c)&&(d[c]=r[c]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},h={}.hasOwnProperty;b=M("./NodeType"),y=M("./XMLCharacterData"),Y.exports=S=function(_){T(d,_);function d(r,c){if(d.__super__.constructor.call(this,r),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(c)}return d.prototype.clone=function(){return(0,p.default)(this)},d.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))},d}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/keys"),p=y(L),A=M("babel-runtime/core-js/object/create"),b=y(A);function y(S){return S&&S.__esModule?S:{default:S}}(function(){var S,T,h;T=M("./XMLDOMErrorHandler"),h=M("./XMLDOMStringList"),Y.exports=S=function(){function _(){var d;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new T,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=d=(0,b.default)(this.defaultParams)}return Object.defineProperty(_.prototype,"parameterNames",{get:function(){return new h((0,p.default)(this.defaultParams))}}),_.prototype.getParameter=function(d){return this.params.hasOwnProperty(d)?this.params[d]:null},_.prototype.canSetParameter=function(d,r){return!0},_.prototype.setParameter=function(d,r){return r!=null?this.params[d]=r:delete this.params[d]},_}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(M,Y,s){"use strict";(function(){var L;Y.exports=L=function(){function p(){}return p.prototype.handleError=function(A){throw new Error(A)},p}()}).call(void 0)},{}],260:[function(M,Y,s){"use strict";(function(){var L;Y.exports=L=function(){function p(){}return p.prototype.hasFeature=function(A,b){return!0},p.prototype.createDocumentType=function(A,b,y){throw new Error("This DOM method is not implemented.")},p.prototype.createDocument=function(A,b,y){throw new Error("This DOM method is not implemented.")},p.prototype.createHTMLDocument=function(A){throw new Error("This DOM method is not implemented.")},p.prototype.getFeature=function(A,b){throw new Error("This DOM method is not implemented.")},p}()}).call(void 0)},{}],261:[function(M,Y,s){"use strict";(function(){var L;Y.exports=L=function(){function p(A){this.arr=A||[]}return Object.defineProperty(p.prototype,"length",{get:function(){return this.arr.length}}),p.prototype.item=function(A){return this.arr[A]||null},p.prototype.contains=function(A){return this.arr.indexOf(A)!==-1},p}()}).call(void 0)},{}],262:[function(M,Y,s){"use strict";(function(){var L,p,A,b=function(T,h){for(var _ in h)y.call(h,_)&&(T[_]=h[_]);function d(){this.constructor=T}return d.prototype=h.prototype,T.prototype=new d,T.__super__=h.prototype,T},y={}.hasOwnProperty;A=M("./XMLNode"),L=M("./NodeType"),Y.exports=p=function(S){b(T,S);function T(h,_,d,r,c,t){if(T.__super__.constructor.call(this,h),_==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(d==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(_));if(!r)throw new Error("Missing DTD attribute type. "+this.debugInfo(_));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(_));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(_));if(t&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(_));this.elementName=this.stringify.name(_),this.type=L.AttributeDeclaration,this.attributeName=this.stringify.name(d),this.attributeType=this.stringify.dtdAttType(r),t&&(this.defaultValue=this.stringify.dtdAttDefault(t)),this.defaultValueType=c}return T.prototype.toString=function(h){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(h))},T}(A)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(M,Y,s){"use strict";(function(){var L,p,A,b=function(T,h){for(var _ in h)y.call(h,_)&&(T[_]=h[_]);function d(){this.constructor=T}return d.prototype=h.prototype,T.prototype=new d,T.__super__=h.prototype,T},y={}.hasOwnProperty;A=M("./XMLNode"),L=M("./NodeType"),Y.exports=p=function(S){b(T,S);function T(h,_,d){if(T.__super__.constructor.call(this,h),_==null)throw new Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.name(_),this.type=L.ElementDeclaration,this.value=this.stringify.dtdElementValue(d)}return T.prototype.toString=function(h){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(h))},T}(A)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(M,Y,s){"use strict";(function(){var L,p,A,b,y=function(h,_){for(var d in _)S.call(_,d)&&(h[d]=_[d]);function r(){this.constructor=h}return r.prototype=_.prototype,h.prototype=new r,h.__super__=_.prototype,h},S={}.hasOwnProperty;b=M("./Utility").isObject,A=M("./XMLNode"),L=M("./NodeType"),Y.exports=p=function(T){y(h,T);function h(_,d,r,c){if(h.__super__.constructor.call(this,_),r==null)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(c==null)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!d,this.name=this.stringify.name(r),this.type=L.EntityDeclaration,!b(c))this.value=this.stringify.dtdEntityValue(c),this.internal=!0;else{if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}}return Object.defineProperty(h.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(h.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(h.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(h.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(h.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(h.prototype,"xmlVersion",{get:function(){return null}}),h.prototype.toString=function(_){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(_))},h}(A)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(M,Y,s){"use strict";(function(){var L,p,A,b=function(T,h){for(var _ in h)y.call(h,_)&&(T[_]=h[_]);function d(){this.constructor=T}return d.prototype=h.prototype,T.prototype=new d,T.__super__=h.prototype,T},y={}.hasOwnProperty;A=M("./XMLNode"),L=M("./NodeType"),Y.exports=p=function(S){b(T,S);function T(h,_,d){if(T.__super__.constructor.call(this,h),_==null)throw new Error("Missing DTD notation name. "+this.debugInfo(_));if(!d.pubID&&!d.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(_));this.name=this.stringify.name(_),this.type=L.NotationDeclaration,d.pubID!=null&&(this.pubID=this.stringify.dtdPubID(d.pubID)),d.sysID!=null&&(this.sysID=this.stringify.dtdSysID(d.sysID))}return Object.defineProperty(T.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(T.prototype,"systemId",{get:function(){return this.sysID}}),T.prototype.toString=function(h){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(h))},T}(A)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(M,Y,s){"use strict";(function(){var L,p,A,b,y=function(h,_){for(var d in _)S.call(_,d)&&(h[d]=_[d]);function r(){this.constructor=h}return r.prototype=_.prototype,h.prototype=new r,h.__super__=_.prototype,h},S={}.hasOwnProperty;b=M("./Utility").isObject,A=M("./XMLNode"),L=M("./NodeType"),Y.exports=p=function(T){y(h,T);function h(_,d,r,c){var t;h.__super__.constructor.call(this,_),b(d)&&(t=d,d=t.version,r=t.encoding,c=t.standalone),d||(d="1.0"),this.type=L.Declaration,this.version=this.stringify.xmlVersion(d),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return h.prototype.toString=function(_){return this.options.writer.declaration(this,this.options.writer.filterOptions(_))},h}(A)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(M,Y,s){"use strict";(function(){var L,p,A,b,y,S,T,h,_,d=function(t,a){for(var n in a)r.call(a,n)&&(t[n]=a[n]);function i(){this.constructor=t}return i.prototype=a.prototype,t.prototype=new i,t.__super__=a.prototype,t},r={}.hasOwnProperty;_=M("./Utility").isObject,h=M("./XMLNode"),L=M("./NodeType"),p=M("./XMLDTDAttList"),b=M("./XMLDTDEntity"),A=M("./XMLDTDElement"),y=M("./XMLDTDNotation"),T=M("./XMLNamedNodeMap"),Y.exports=S=function(c){d(t,c);function t(a,n,i){var f,l,o,m,w,C;if(t.__super__.constructor.call(this,a),this.type=L.DocType,a.children){for(m=a.children,l=0,o=m.length;l<o;l++)if(f=m[l],f.type===L.Element){this.name=f.name;break}}this.documentObject=a,_(n)&&(w=n,n=w.pubID,i=w.sysID),i==null&&(C=[n,i],i=C[0],n=C[1]),n!=null&&(this.pubID=this.stringify.dtdPubID(n)),i!=null&&(this.sysID=this.stringify.dtdSysID(i))}return Object.defineProperty(t.prototype,"entities",{get:function(){var n,i,f,l,o;for(l={},o=this.children,i=0,f=o.length;i<f;i++)n=o[i],n.type===L.EntityDeclaration&&!n.pe&&(l[n.name]=n);return new T(l)}}),Object.defineProperty(t.prototype,"notations",{get:function(){var n,i,f,l,o;for(l={},o=this.children,i=0,f=o.length;i<f;i++)n=o[i],n.type===L.NotationDeclaration&&(l[n.name]=n);return new T(l)}}),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.element=function(a,n){var i;return i=new A(this,a,n),this.children.push(i),this},t.prototype.attList=function(a,n,i,f,l){var o;return o=new p(this,a,n,i,f,l),this.children.push(o),this},t.prototype.entity=function(a,n){var i;return i=new b(this,!1,a,n),this.children.push(i),this},t.prototype.pEntity=function(a,n){var i;return i=new b(this,!0,a,n),this.children.push(i),this},t.prototype.notation=function(a,n){var i;return i=new y(this,a,n),this.children.push(i),this},t.prototype.toString=function(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))},t.prototype.ele=function(a,n){return this.element(a,n)},t.prototype.att=function(a,n,i,f,l){return this.attList(a,n,i,f,l)},t.prototype.ent=function(a,n){return this.entity(a,n)},t.prototype.pent=function(a,n){return this.pEntity(a,n)},t.prototype.not=function(a,n){return this.notation(a,n)},t.prototype.up=function(){return this.root()||this.documentObject},t.prototype.isEqualNode=function(a){return t.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?a.name!==this.name||a.publicId!==this.publicId?!1:!(a.systemId!==this.systemId):!1},t}(h)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(M,Y,s){"use strict";(function(){var L,p,A,b,y,S,T,h,_=function(c,t){for(var a in t)d.call(t,a)&&(c[a]=t[a]);function n(){this.constructor=c}return n.prototype=t.prototype,c.prototype=new n,c.__super__=t.prototype,c},d={}.hasOwnProperty;h=M("./Utility").isPlainObject,A=M("./XMLDOMImplementation"),p=M("./XMLDOMConfiguration"),y=M("./XMLNode"),L=M("./NodeType"),T=M("./XMLStringifier"),S=M("./XMLStringWriter"),Y.exports=b=function(r){_(c,r);function c(t){c.__super__.constructor.call(this,null),this.name="#document",this.type=L.Document,this.documentURI=null,this.domConfig=new p,t||(t={}),t.writer||(t.writer=new S),this.options=t,this.stringify=new T(t)}return Object.defineProperty(c.prototype,"implementation",{value:new A}),Object.defineProperty(c.prototype,"doctype",{get:function(){var a,n,i,f;for(f=this.children,n=0,i=f.length;n<i;n++)if(a=f[n],a.type===L.DocType)return a;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===L.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===L.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===L.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c.prototype.end=function(t){var a;return a={},t?h(t)&&(a=t,t=this.options.writer):t=this.options.writer,t.document(this,t.filterOptions(a))},c.prototype.toString=function(t){return this.options.writer.document(this,this.options.writer.filterOptions(t))},c.prototype.createElement=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTextNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createComment=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createCDATASection=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createProcessingInstruction=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttribute=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEntityReference=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.importNode=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createElementNS=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttributeNS=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementById=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.adoptNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.renameNode=function(t,a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEvent=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createNodeIterator=function(t,a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTreeWalker=function(t,a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c}(y)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(M,Y,s){"use strict";(function(){var L,p,A,b,y,S,T,h,_,d,r,c,t,a,n,i,f,l,o,m,w,C,v,P,R={}.hasOwnProperty;P=M("./Utility"),C=P.isObject,w=P.isFunction,v=P.isPlainObject,m=P.getValue,L=M("./NodeType"),c=M("./XMLDocument"),a=M("./XMLElement"),b=M("./XMLCData"),y=M("./XMLComment"),i=M("./XMLRaw"),o=M("./XMLText"),n=M("./XMLProcessingInstruction"),d=M("./XMLDeclaration"),r=M("./XMLDocType"),S=M("./XMLDTDAttList"),h=M("./XMLDTDEntity"),T=M("./XMLDTDElement"),_=M("./XMLDTDNotation"),A=M("./XMLAttribute"),l=M("./XMLStringifier"),f=M("./XMLStringWriter"),p=M("./WriterState"),Y.exports=t=function(){function E(x,g,O){var I;this.name="?xml",this.type=L.Document,x||(x={}),I={},x.writer?v(x.writer)&&(I=x.writer,x.writer=new f):x.writer=new f,this.options=x,this.writer=x.writer,this.writerOptions=this.writer.filterOptions(I),this.stringify=new l(x),this.onDataCallback=g||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return E.prototype.createChildNode=function(x){var g,O,I,D,N,V,F,W;switch(x.type){case L.CData:this.cdata(x.value);break;case L.Comment:this.comment(x.value);break;case L.Element:I={},F=x.attribs;for(O in F){if(!R.call(F,O))continue;g=F[O],I[O]=g.value}this.node(x.name,I);break;case L.Dummy:this.dummy();break;case L.Raw:this.raw(x.value);break;case L.Text:this.text(x.value);break;case L.ProcessingInstruction:this.instruction(x.target,x.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+x.constructor.name)}for(W=x.children,N=0,V=W.length;N<V;N++)D=W[N],this.createChildNode(D),D.type===L.Element&&this.up();return this},E.prototype.dummy=function(){return this},E.prototype.node=function(x,g,O){var I;if(x==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(x));return this.openCurrent(),x=m(x),g==null&&(g={}),g=m(g),C(g)||(I=[g,O],O=I[0],g=I[1]),this.currentNode=new a(this,x,g),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null&&this.text(O),this},E.prototype.element=function(x,g,O){var I,D,N,V,F,W;if(this.currentNode&&this.currentNode.type===L.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(x)||C(x)||w(x))for(V=this.options.noValidation,this.options.noValidation=!0,W=new c(this.options).element("TEMP_ROOT"),W.element(x),this.options.noValidation=V,F=W.children,D=0,N=F.length;D<N;D++)I=F[D],this.createChildNode(I),I.type===L.Element&&this.up();else this.node(x,g,O);return this},E.prototype.attribute=function(x,g){var O,I;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(x));if(x!=null&&(x=m(x)),C(x))for(O in x){if(!R.call(x,O))continue;I=x[O],this.attribute(O,I)}else w(g)&&(g=g.apply()),this.options.keepNullAttributes&&g==null?this.currentNode.attribs[x]=new A(this,x,""):g!=null&&(this.currentNode.attribs[x]=new A(this,x,g));return this},E.prototype.text=function(x){var g;return this.openCurrent(),g=new o(this,x),this.onData(this.writer.text(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.cdata=function(x){var g;return this.openCurrent(),g=new b(this,x),this.onData(this.writer.cdata(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.comment=function(x){var g;return this.openCurrent(),g=new y(this,x),this.onData(this.writer.comment(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.raw=function(x){var g;return this.openCurrent(),g=new i(this,x),this.onData(this.writer.raw(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.instruction=function(x,g){var O,I,D,N,V;if(this.openCurrent(),x!=null&&(x=m(x)),g!=null&&(g=m(g)),Array.isArray(x))for(O=0,N=x.length;O<N;O++)I=x[O],this.instruction(I);else if(C(x))for(I in x){if(!R.call(x,I))continue;D=x[I],this.instruction(I,D)}else w(g)&&(g=g.apply()),V=new n(this,x,g),this.onData(this.writer.processingInstruction(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},E.prototype.declaration=function(x,g,O){var I;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return I=new d(this,x,g,O),this.onData(this.writer.declaration(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.doctype=function(x,g,O){if(this.openCurrent(),x==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new r(this,g,O),this.currentNode.rootNodeName=x,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},E.prototype.dtdElement=function(x,g){var O;return this.openCurrent(),O=new T(this,x,g),this.onData(this.writer.dtdElement(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.attList=function(x,g,O,I,D){var N;return this.openCurrent(),N=new S(this,x,g,O,I,D),this.onData(this.writer.dtdAttList(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.entity=function(x,g){var O;return this.openCurrent(),O=new h(this,!1,x,g),this.onData(this.writer.dtdEntity(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.pEntity=function(x,g){var O;return this.openCurrent(),O=new h(this,!0,x,g),this.onData(this.writer.dtdEntity(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.notation=function(x,g){var O;return this.openCurrent(),O=new _(this,x,g),this.onData(this.writer.dtdNotation(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},E.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},E.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},E.prototype.openNode=function(x){var g,O,I,D;if(!x.isOpen){if(!this.root&&this.currentLevel===0&&x.type===L.Element&&(this.root=x),O="",x.type===L.Element){this.writerOptions.state=p.OpenTag,O=this.writer.indent(x,this.writerOptions,this.currentLevel)+"<"+x.name,D=x.attribs;for(I in D){if(!R.call(D,I))continue;g=D[I],O+=this.writer.attribute(g,this.writerOptions,this.currentLevel)}O+=(x.children?">":"/>")+this.writer.endline(x,this.writerOptions,this.currentLevel),this.writerOptions.state=p.InsideTag}else this.writerOptions.state=p.OpenTag,O=this.writer.indent(x,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+x.rootNodeName,x.pubID&&x.sysID?O+=' PUBLIC "'+x.pubID+'" "'+x.sysID+'"':x.sysID&&(O+=' SYSTEM "'+x.sysID+'"'),x.children?(O+=" [",this.writerOptions.state=p.InsideTag):(this.writerOptions.state=p.CloseTag,O+=">"),O+=this.writer.endline(x,this.writerOptions,this.currentLevel);return this.onData(O,this.currentLevel),x.isOpen=!0}},E.prototype.closeNode=function(x){var g;if(!x.isClosed)return g="",this.writerOptions.state=p.CloseTag,x.type===L.Element?g=this.writer.indent(x,this.writerOptions,this.currentLevel)+"</"+x.name+">"+this.writer.endline(x,this.writerOptions,this.currentLevel):g=this.writer.indent(x,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(x,this.writerOptions,this.currentLevel),this.writerOptions.state=p.None,this.onData(g,this.currentLevel),x.isClosed=!0},E.prototype.onData=function(x,g){return this.documentStarted=!0,this.onDataCallback(x,g+1)},E.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},E.prototype.debugInfo=function(x){return x==null?"":"node: <"+x+">"},E.prototype.ele=function(){return this.element.apply(this,arguments)},E.prototype.nod=function(x,g,O){return this.node(x,g,O)},E.prototype.txt=function(x){return this.text(x)},E.prototype.dat=function(x){return this.cdata(x)},E.prototype.com=function(x){return this.comment(x)},E.prototype.ins=function(x,g){return this.instruction(x,g)},E.prototype.dec=function(x,g,O){return this.declaration(x,g,O)},E.prototype.dtd=function(x,g,O){return this.doctype(x,g,O)},E.prototype.e=function(x,g,O){return this.element(x,g,O)},E.prototype.n=function(x,g,O){return this.node(x,g,O)},E.prototype.t=function(x){return this.text(x)},E.prototype.d=function(x){return this.cdata(x)},E.prototype.c=function(x){return this.comment(x)},E.prototype.r=function(x){return this.raw(x)},E.prototype.i=function(x,g){return this.instruction(x,g)},E.prototype.att=function(){return this.currentNode&&this.currentNode.type===L.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.a=function(){return this.currentNode&&this.currentNode.type===L.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.ent=function(x,g){return this.entity(x,g)},E.prototype.pent=function(x,g){return this.pEntity(x,g)},E.prototype.not=function(x,g){return this.notation(x,g)},E}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,S,T=function(d,r){for(var c in r)h.call(r,c)&&(d[c]=r[c]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},h={}.hasOwnProperty;S=M("./XMLNode"),b=M("./NodeType"),Y.exports=y=function(_){T(d,_);function d(r){d.__super__.constructor.call(this,r),this.type=b.Dummy}return d.prototype.clone=function(){return(0,p.default)(this)},d.prototype.toString=function(r){return""},d}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,S,T,h,_,d,r,c,t=function(i,f){for(var l in f)a.call(f,l)&&(i[l]=f[l]);function o(){this.constructor=i}return o.prototype=f.prototype,i.prototype=new o,i.__super__=f.prototype,i},a={}.hasOwnProperty;c=M("./Utility"),r=c.isObject,d=c.isFunction,_=c.getValue,h=M("./XMLNode"),b=M("./NodeType"),y=M("./XMLAttribute"),T=M("./XMLNamedNodeMap"),Y.exports=S=function(n){t(i,n);function i(f,l,o){var m,w,C,v;if(i.__super__.constructor.call(this,f),l==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(l),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,o!=null&&this.attribute(o),f.type===b.Document&&(this.isRoot=!0,this.documentObject=f,f.rootObject=this,f.children)){for(v=f.children,w=0,C=v.length;w<C;w++)if(m=v[w],m.type===b.DocType){m.name=this.name;break}}}return Object.defineProperty(i.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new T(this.attribs)),this.attributeMap}}),i.prototype.clone=function(){var f,l,o,m;o=(0,p.default)(this),o.isRoot&&(o.documentObject=null),o.attribs={},m=this.attribs;for(l in m){if(!a.call(m,l))continue;f=m[l],o.attribs[l]=f.clone()}return o.children=[],this.children.forEach(function(w){var C;return C=w.clone(),C.parent=o,o.children.push(C)}),o},i.prototype.attribute=function(f,l){var o,m;if(f!=null&&(f=_(f)),r(f))for(o in f){if(!a.call(f,o))continue;m=f[o],this.attribute(o,m)}else d(l)&&(l=l.apply()),this.options.keepNullAttributes&&l==null?this.attribs[f]=new y(this,f,""):l!=null&&(this.attribs[f]=new y(this,f,l));return this},i.prototype.removeAttribute=function(f){var l,o,m;if(f==null)throw new Error("Missing attribute name. "+this.debugInfo());if(f=_(f),Array.isArray(f))for(o=0,m=f.length;o<m;o++)l=f[o],delete this.attribs[l];else delete this.attribs[f];return this},i.prototype.toString=function(f){return this.options.writer.element(this,this.options.writer.filterOptions(f))},i.prototype.att=function(f,l){return this.attribute(f,l)},i.prototype.a=function(f,l){return this.attribute(f,l)},i.prototype.getAttribute=function(f){return this.attribs.hasOwnProperty(f)?this.attribs[f].value:null},i.prototype.setAttribute=function(f,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNode=function(f){return this.attribs.hasOwnProperty(f)?this.attribs[f]:null},i.prototype.setAttributeNode=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.removeAttributeNode=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagName=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNS=function(f,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setAttributeNS=function(f,l,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.removeAttributeNS=function(f,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNodeNS=function(f,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setAttributeNodeNS=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(f,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.hasAttribute=function(f){return this.attribs.hasOwnProperty(f)},i.prototype.hasAttributeNS=function(f,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setIdAttribute=function(f,l){return this.attribs.hasOwnProperty(f)?this.attribs[f].isId:l},i.prototype.setIdAttributeNS=function(f,l,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setIdAttributeNode=function(f,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagName=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(f,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByClassName=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.isEqualNode=function(f){var l,o,m;if(!i.__super__.isEqualNode.apply(this,arguments).isEqualNode(f))return!1;if(f.namespaceURI!==this.namespaceURI)return!1;if(f.prefix!==this.prefix)return!1;if(f.localName!==this.localName)return!1;if(f.attribs.length!==this.attribs.length)return!1;for(l=o=0,m=this.attribs.length-1;0<=m?o<=m:o>=m;l=0<=m?++o:--o)if(!this.attribs[l].isEqualNode(f.attribs[l]))return!1;return!0},i}(h)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/keys"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b;Y.exports=b=function(){function y(S){this.nodes=S}return Object.defineProperty(y.prototype,"length",{get:function(){return(0,p.default)(this.nodes).length||0}}),y.prototype.clone=function(){return this.nodes=null},y.prototype.getNamedItem=function(S){return this.nodes[S]},y.prototype.setNamedItem=function(S){var T;return T=this.nodes[S.nodeName],this.nodes[S.nodeName]=S,T||null},y.prototype.removeNamedItem=function(S){var T;return T=this.nodes[S],delete this.nodes[S],T||null},y.prototype.item=function(S){return this.nodes[(0,p.default)(this.nodes)[S]]||null},y.prototype.getNamedItemNS=function(S,T){throw new Error("This DOM method is not implemented.")},y.prototype.setNamedItemNS=function(S){throw new Error("This DOM method is not implemented.")},y.prototype.removeNamedItemNS=function(S,T){throw new Error("This DOM method is not implemented.")},y}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(M,Y,s){"use strict";(function(){var L,p,A,b,y,S,T,h,_,d,r,c,t,a,n,i,f,l,o,m={}.hasOwnProperty;o=M("./Utility"),l=o.isObject,f=o.isFunction,i=o.isEmpty,n=o.getValue,h=null,A=null,b=null,y=null,S=null,t=null,a=null,c=null,T=null,p=null,r=null,_=null,L=null,Y.exports=d=function(){function w(C){this.parent=C,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,h||(h=M("./XMLElement"),A=M("./XMLCData"),b=M("./XMLComment"),y=M("./XMLDeclaration"),S=M("./XMLDocType"),t=M("./XMLRaw"),a=M("./XMLText"),c=M("./XMLProcessingInstruction"),T=M("./XMLDummy"),p=M("./NodeType"),r=M("./XMLNodeList"),_=M("./XMLNamedNodeMap"),L=M("./DocumentPosition"))}return Object.defineProperty(w.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new r(this.children)),this.childNodeList}}),Object.defineProperty(w.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(w.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){var v;return v=this.parent.children.indexOf(this),this.parent.children[v-1]||null}}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){var v;return v=this.parent.children.indexOf(this),this.parent.children[v+1]||null}}),Object.defineProperty(w.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(w.prototype,"textContent",{get:function(){var v,P,R,E,x;if(this.nodeType===p.Element||this.nodeType===p.DocumentFragment){for(x="",E=this.children,P=0,R=E.length;P<R;P++)v=E[P],v.textContent&&(x+=v.textContent);return x}else return null},set:function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),w.prototype.setParent=function(C){var v,P,R,E,x;for(this.parent=C,C&&(this.options=C.options,this.stringify=C.stringify),E=this.children,x=[],P=0,R=E.length;P<R;P++)v=E[P],x.push(v.setParent(this));return x},w.prototype.element=function(C,v,P){var R,E,x,g,O,I,D,N,V,F,W;if(I=null,v===null&&P==null&&(V=[{},null],v=V[0],P=V[1]),v==null&&(v={}),v=n(v),l(v)||(F=[v,P],P=F[0],v=F[1]),C!=null&&(C=n(C)),Array.isArray(C))for(x=0,D=C.length;x<D;x++)E=C[x],I=this.element(E);else if(f(C))I=this.element(C.apply());else if(l(C))for(O in C){if(!m.call(C,O))continue;if(W=C[O],f(W)&&(W=W.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&O.indexOf(this.stringify.convertAttKey)===0)I=this.attribute(O.substr(this.stringify.convertAttKey.length),W);else if(!this.options.separateArrayItems&&Array.isArray(W)&&i(W))I=this.dummy();else if(l(W)&&i(W))I=this.element(O);else if(!this.options.keepNullNodes&&W==null)I=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(W))for(g=0,N=W.length;g<N;g++)E=W[g],R={},R[O]=E,I=this.element(R);else l(W)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&O.indexOf(this.stringify.convertTextKey)===0?I=this.element(W):(I=this.element(O),I.element(W)):I=this.element(O,W)}else!this.options.keepNullNodes&&P===null?I=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&C.indexOf(this.stringify.convertTextKey)===0?I=this.text(P):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&C.indexOf(this.stringify.convertCDataKey)===0?I=this.cdata(P):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&C.indexOf(this.stringify.convertCommentKey)===0?I=this.comment(P):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&C.indexOf(this.stringify.convertRawKey)===0?I=this.raw(P):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&C.indexOf(this.stringify.convertPIKey)===0?I=this.instruction(C.substr(this.stringify.convertPIKey.length),P):I=this.node(C,v,P);if(I==null)throw new Error("Could not create any elements with: "+C+". "+this.debugInfo());return I},w.prototype.insertBefore=function(C,v,P){var R,E,x,g,O;if(C!=null?C.type:void 0)return x=C,g=v,x.setParent(this),g?(E=children.indexOf(g),O=children.splice(E),children.push(x),Array.prototype.push.apply(children,O)):children.push(x),x;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(C));return E=this.parent.children.indexOf(this),O=this.parent.children.splice(E),R=this.parent.element(C,v,P),Array.prototype.push.apply(this.parent.children,O),R},w.prototype.insertAfter=function(C,v,P){var R,E,x;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(C));return E=this.parent.children.indexOf(this),x=this.parent.children.splice(E+1),R=this.parent.element(C,v,P),Array.prototype.push.apply(this.parent.children,x),R},w.prototype.remove=function(){var C,v;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return C=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[C,C-C+1].concat(v=[])),this.parent},w.prototype.node=function(C,v,P){var R,E;return C!=null&&(C=n(C)),v||(v={}),v=n(v),l(v)||(E=[v,P],P=E[0],v=E[1]),R=new h(this,C,v),P!=null&&R.text(P),this.children.push(R),R},w.prototype.text=function(C){var v;return l(C)&&this.element(C),v=new a(this,C),this.children.push(v),this},w.prototype.cdata=function(C){var v;return v=new A(this,C),this.children.push(v),this},w.prototype.comment=function(C){var v;return v=new b(this,C),this.children.push(v),this},w.prototype.commentBefore=function(C){var v,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P),v=this.parent.comment(C),Array.prototype.push.apply(this.parent.children,R),this},w.prototype.commentAfter=function(C){var v,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P+1),v=this.parent.comment(C),Array.prototype.push.apply(this.parent.children,R),this},w.prototype.raw=function(C){var v;return v=new t(this,C),this.children.push(v),this},w.prototype.dummy=function(){var C;return C=new T(this),C},w.prototype.instruction=function(C,v){var P,R,E,x,g;if(C!=null&&(C=n(C)),v!=null&&(v=n(v)),Array.isArray(C))for(x=0,g=C.length;x<g;x++)P=C[x],this.instruction(P);else if(l(C))for(P in C){if(!m.call(C,P))continue;R=C[P],this.instruction(P,R)}else f(v)&&(v=v.apply()),E=new c(this,C,v),this.children.push(E);return this},w.prototype.instructionBefore=function(C,v){var P,R,E;return R=this.parent.children.indexOf(this),E=this.parent.children.splice(R),P=this.parent.instruction(C,v),Array.prototype.push.apply(this.parent.children,E),this},w.prototype.instructionAfter=function(C,v){var P,R,E;return R=this.parent.children.indexOf(this),E=this.parent.children.splice(R+1),P=this.parent.instruction(C,v),Array.prototype.push.apply(this.parent.children,E),this},w.prototype.declaration=function(C,v,P){var R,E;return R=this.document(),E=new y(R,C,v,P),R.children.length===0?R.children.unshift(E):R.children[0].type===p.Declaration?R.children[0]=E:R.children.unshift(E),R.root()||R},w.prototype.dtd=function(C,v){var P,R,E,x,g,O,I,D,N,V;for(R=this.document(),E=new S(R,C,v),N=R.children,x=g=0,I=N.length;g<I;x=++g)if(P=N[x],P.type===p.DocType)return R.children[x]=E,E;for(V=R.children,x=O=0,D=V.length;O<D;x=++O)if(P=V[x],P.isRoot)return R.children.splice(x,0,E),E;return R.children.push(E),E},w.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},w.prototype.root=function(){var C;for(C=this;C;){if(C.type===p.Document)return C.rootObject;if(C.isRoot)return C;C=C.parent}},w.prototype.document=function(){var C;for(C=this;C;){if(C.type===p.Document)return C;C=C.parent}},w.prototype.end=function(C){return this.document().end(C)},w.prototype.prev=function(){var C;if(C=this.parent.children.indexOf(this),C<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[C-1]},w.prototype.next=function(){var C;if(C=this.parent.children.indexOf(this),C===-1||C===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[C+1]},w.prototype.importDocument=function(C){var v;return v=C.root().clone(),v.parent=this,v.isRoot=!1,this.children.push(v),this},w.prototype.debugInfo=function(C){var v,P;return C=C||this.name,C==null&&!((v=this.parent)!=null?v.name:void 0)?"":C==null?"parent: <"+this.parent.name+">":((P=this.parent)!=null?P.name:void 0)?"node: <"+C+">, parent: <"+this.parent.name+">":"node: <"+C+">"},w.prototype.ele=function(C,v,P){return this.element(C,v,P)},w.prototype.nod=function(C,v,P){return this.node(C,v,P)},w.prototype.txt=function(C){return this.text(C)},w.prototype.dat=function(C){return this.cdata(C)},w.prototype.com=function(C){return this.comment(C)},w.prototype.ins=function(C,v){return this.instruction(C,v)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(C,v,P){return this.declaration(C,v,P)},w.prototype.e=function(C,v,P){return this.element(C,v,P)},w.prototype.n=function(C,v,P){return this.node(C,v,P)},w.prototype.t=function(C){return this.text(C)},w.prototype.d=function(C){return this.cdata(C)},w.prototype.c=function(C){return this.comment(C)},w.prototype.r=function(C){return this.raw(C)},w.prototype.i=function(C,v){return this.instruction(C,v)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(C){return this.importDocument(C)},w.prototype.replaceChild=function(C,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeChild=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.appendChild=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasChildNodes=function(){return this.children.length!==0},w.prototype.cloneNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isSupported=function(C,v){return!0},w.prototype.hasAttributes=function(){return this.attribs.length!==0},w.prototype.compareDocumentPosition=function(C){var v,P;return v=this,v===C?0:this.document()!==C.document()?(P=L.Disconnected|L.ImplementationSpecific,Math.random()<.5?P|=L.Preceding:P|=L.Following,P):v.isAncestor(C)?L.Contains|L.Preceding:v.isDescendant(C)?L.Contains|L.Following:v.isPreceding(C)?L.Preceding:L.Following},w.prototype.isSameNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupPrefix=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isDefaultNamespace=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupNamespaceURI=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(C){var v,P,R;if(C.nodeType!==this.nodeType)return!1;if(C.children.length!==this.children.length)return!1;for(v=P=0,R=this.children.length-1;0<=R?P<=R:P>=R;v=0<=R?++P:--P)if(!this.children[v].isEqualNode(C.children[v]))return!1;return!0},w.prototype.getFeature=function(C,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setUserData=function(C,v,P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getUserData=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.contains=function(C){return C?C===this||this.isDescendant(C):!1},w.prototype.isDescendant=function(C){var v,P,R,E,x;for(x=this.children,R=0,E=x.length;R<E;R++){if(v=x[R],C===v)return!0;if(P=v.isDescendant(C),P)return!0}return!1},w.prototype.isAncestor=function(C){return C.isDescendant(this)},w.prototype.isPreceding=function(C){var v,P;return v=this.treePosition(C),P=this.treePosition(this),v===-1||P===-1?!1:v<P},w.prototype.isFollowing=function(C){var v,P;return v=this.treePosition(C),P=this.treePosition(this),v===-1||P===-1?!1:v>P},w.prototype.treePosition=function(C){var v,P;return P=0,v=!1,this.foreachTreeNode(this.document(),function(R){if(P++,!v&&R===C)return v=!0}),v?P:-1},w.prototype.foreachTreeNode=function(C,v){var P,R,E,x,g;for(C||(C=this.document()),x=C.children,R=0,E=x.length;R<E;R++){if(P=x[R],g=v(P))return g;if(g=this.foreachTreeNode(P,v),g)return g}},w}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(M,Y,s){"use strict";(function(){var L;Y.exports=L=function(){function p(A){this.nodes=A}return Object.defineProperty(p.prototype,"length",{get:function(){return this.nodes.length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.item=function(A){return this.nodes[A]||null},p}()}).call(void 0)},{}],275:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,S,T=function(d,r){for(var c in r)h.call(r,c)&&(d[c]=r[c]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},h={}.hasOwnProperty;b=M("./NodeType"),y=M("./XMLCharacterData"),Y.exports=S=function(_){T(d,_);function d(r,c,t){if(d.__super__.constructor.call(this,r),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,t&&(this.value=this.stringify.insValue(t))}return d.prototype.clone=function(){return(0,p.default)(this)},d.prototype.toString=function(r){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(r))},d.prototype.isEqualNode=function(r){return d.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.target!==this.target):!1},d}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,S,T=function(d,r){for(var c in r)h.call(r,c)&&(d[c]=r[c]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},h={}.hasOwnProperty;b=M("./NodeType"),y=M("./XMLNode"),Y.exports=S=function(_){T(d,_);function d(r,c){if(d.__super__.constructor.call(this,r),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(c)}return d.prototype.clone=function(){return(0,p.default)(this)},d.prototype.toString=function(r){return this.options.writer.raw(this,this.options.writer.filterOptions(r))},d}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(M,Y,s){"use strict";(function(){var L,p,A,b,y=function(h,_){for(var d in _)S.call(_,d)&&(h[d]=_[d]);function r(){this.constructor=h}return r.prototype=_.prototype,h.prototype=new r,h.__super__=_.prototype,h},S={}.hasOwnProperty;L=M("./NodeType"),b=M("./XMLWriterBase"),p=M("./WriterState"),Y.exports=A=function(T){y(h,T);function h(_,d){this.stream=_,h.__super__.constructor.call(this,d)}return h.prototype.endline=function(_,d,r){return _.isLastRootNode&&d.state===p.CloseTag?"":h.__super__.endline.call(this,_,d,r)},h.prototype.document=function(_,d){var r,c,t,a,n,i,f,l,o;for(f=_.children,c=t=0,n=f.length;t<n;c=++t)r=f[c],r.isLastRootNode=c===_.children.length-1;for(d=this.filterOptions(d),l=_.children,o=[],a=0,i=l.length;a<i;a++)r=l[a],o.push(this.writeChildNode(r,d,0));return o},h.prototype.attribute=function(_,d,r){return this.stream.write(h.__super__.attribute.call(this,_,d,r))},h.prototype.cdata=function(_,d,r){return this.stream.write(h.__super__.cdata.call(this,_,d,r))},h.prototype.comment=function(_,d,r){return this.stream.write(h.__super__.comment.call(this,_,d,r))},h.prototype.declaration=function(_,d,r){return this.stream.write(h.__super__.declaration.call(this,_,d,r))},h.prototype.docType=function(_,d,r){var c,t,a,n;if(r||(r=0),this.openNode(_,d,r),d.state=p.OpenTag,this.stream.write(this.indent(_,d,r)),this.stream.write("<!DOCTYPE "+_.root().name),_.pubID&&_.sysID?this.stream.write(' PUBLIC "'+_.pubID+'" "'+_.sysID+'"'):_.sysID&&this.stream.write(' SYSTEM "'+_.sysID+'"'),_.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(_,d,r)),d.state=p.InsideTag,n=_.children,t=0,a=n.length;t<a;t++)c=n[t],this.writeChildNode(c,d,r+1);d.state=p.CloseTag,this.stream.write("]")}return d.state=p.CloseTag,this.stream.write(d.spaceBeforeSlash+">"),this.stream.write(this.endline(_,d,r)),d.state=p.None,this.closeNode(_,d,r)},h.prototype.element=function(_,d,r){var c,t,a,n,i,f,l,o,m,w;r||(r=0),this.openNode(_,d,r),d.state=p.OpenTag,this.stream.write(this.indent(_,d,r)+"<"+_.name),m=_.attribs;for(l in m){if(!S.call(m,l))continue;c=m[l],this.attribute(c,d,r)}if(a=_.children.length,n=a===0?null:_.children[0],a===0||_.children.every(function(C){return(C.type===L.Text||C.type===L.Raw)&&C.value===""}))d.allowEmpty?(this.stream.write(">"),d.state=p.CloseTag,this.stream.write("</"+_.name+">")):(d.state=p.CloseTag,this.stream.write(d.spaceBeforeSlash+"/>"));else if(d.pretty&&a===1&&(n.type===L.Text||n.type===L.Raw)&&n.value!=null)this.stream.write(">"),d.state=p.InsideTag,d.suppressPrettyCount++,o=!0,this.writeChildNode(n,d,r+1),d.suppressPrettyCount--,o=!1,d.state=p.CloseTag,this.stream.write("</"+_.name+">");else{for(this.stream.write(">"+this.endline(_,d,r)),d.state=p.InsideTag,w=_.children,i=0,f=w.length;i<f;i++)t=w[i],this.writeChildNode(t,d,r+1);d.state=p.CloseTag,this.stream.write(this.indent(_,d,r)+"</"+_.name+">")}return this.stream.write(this.endline(_,d,r)),d.state=p.None,this.closeNode(_,d,r)},h.prototype.processingInstruction=function(_,d,r){return this.stream.write(h.__super__.processingInstruction.call(this,_,d,r))},h.prototype.raw=function(_,d,r){return this.stream.write(h.__super__.raw.call(this,_,d,r))},h.prototype.text=function(_,d,r){return this.stream.write(h.__super__.text.call(this,_,d,r))},h.prototype.dtdAttList=function(_,d,r){return this.stream.write(h.__super__.dtdAttList.call(this,_,d,r))},h.prototype.dtdElement=function(_,d,r){return this.stream.write(h.__super__.dtdElement.call(this,_,d,r))},h.prototype.dtdEntity=function(_,d,r){return this.stream.write(h.__super__.dtdEntity.call(this,_,d,r))},h.prototype.dtdNotation=function(_,d,r){return this.stream.write(h.__super__.dtdNotation.call(this,_,d,r))},h}(b)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(M,Y,s){"use strict";(function(){var L,p,A=function(S,T){for(var h in T)b.call(T,h)&&(S[h]=T[h]);function _(){this.constructor=S}return _.prototype=T.prototype,S.prototype=new _,S.__super__=T.prototype,S},b={}.hasOwnProperty;p=M("./XMLWriterBase"),Y.exports=L=function(y){A(S,y);function S(T){S.__super__.constructor.call(this,T)}return S.prototype.document=function(T,h){var _,d,r,c,t;for(h=this.filterOptions(h),c="",t=T.children,d=0,r=t.length;d<r;d++)_=t[d],c+=this.writeChildNode(_,h,0);return h.pretty&&c.slice(-h.newline.length)===h.newline&&(c=c.slice(0,-h.newline.length)),c},S}(p)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(M,Y,s){"use strict";(function(){var L,p=function(y,S){return function(){return y.apply(S,arguments)}},A={}.hasOwnProperty;Y.exports=L=function(){function b(y){this.assertLegalName=p(this.assertLegalName,this),this.assertLegalChar=p(this.assertLegalChar,this);var S,T,h;y||(y={}),this.options=y,this.options.version||(this.options.version="1.0"),T=y.stringify||{};for(S in T){if(!A.call(T,S))continue;h=T[S],this[S]=h}}return b.prototype.name=function(y){return this.options.noValidation?y:this.assertLegalName(""+y||"")},b.prototype.text=function(y){return this.options.noValidation?y:this.assertLegalChar(this.textEscape(""+y||""))},b.prototype.cdata=function(y){return this.options.noValidation?y:(y=""+y||"",y=y.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(y))},b.prototype.comment=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+y);return this.assertLegalChar(y)},b.prototype.raw=function(y){return this.options.noValidation?y:""+y||""},b.prototype.attValue=function(y){return this.options.noValidation?y:this.assertLegalChar(this.attEscape(y=""+y||""))},b.prototype.insTarget=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.insValue=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/\?>/))throw new Error("Invalid processing instruction value: "+y);return this.assertLegalChar(y)},b.prototype.xmlVersion=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+y);return y},b.prototype.xmlEncoding=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+y);return this.assertLegalChar(y)},b.prototype.xmlStandalone=function(y){return this.options.noValidation?y:y?"yes":"no"},b.prototype.dtdPubID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdSysID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdElementValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdAttType=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdAttDefault=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdEntityValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdNData=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.convertAttKey="@",b.prototype.convertPIKey="?",b.prototype.convertTextKey="#text",b.prototype.convertCDataKey="#cdata",b.prototype.convertCommentKey="#comment",b.prototype.convertRawKey="#raw",b.prototype.assertLegalChar=function(y){var S,T;if(this.options.noValidation)return y;if(S="",this.options.version==="1.0"){if(S=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,T=y.match(S))throw new Error("Invalid character in string: "+y+" at index "+T.index)}else if(this.options.version==="1.1"&&(S=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,T=y.match(S)))throw new Error("Invalid character in string: "+y+" at index "+T.index);return y},b.prototype.assertLegalName=function(y){var S;if(this.options.noValidation)return y;if(this.assertLegalChar(y),S=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!y.match(S))throw new Error("Invalid character in name");return y},b.prototype.textEscape=function(y){var S;return this.options.noValidation?y:(S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(S,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},b.prototype.attEscape=function(y){var S;return this.options.noValidation?y:(S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(S,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},b}()}).call(void 0)},{}],280:[function(M,Y,s){"use strict";var L=M("babel-runtime/core-js/object/create"),p=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,S,T=function(d,r){for(var c in r)h.call(r,c)&&(d[c]=r[c]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},h={}.hasOwnProperty;b=M("./NodeType"),y=M("./XMLCharacterData"),Y.exports=S=function(_){T(d,_);function d(r,c){if(d.__super__.constructor.call(this,r),c==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(c)}return Object.defineProperty(d.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(d.prototype,"wholeText",{get:function(){var c,t,a;for(a="",t=this.previousSibling;t;)a=t.data+a,t=t.previousSibling;for(a+=this.data,c=this.nextSibling;c;)a=a+c.data,c=c.nextSibling;return a}}),d.prototype.clone=function(){return(0,p.default)(this)},d.prototype.toString=function(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))},d.prototype.splitText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.replaceWholeText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},d}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(M,Y,s){"use strict";(function(){var L,p,A,b,y,S,T,h,_,d,r,c,t,a,n,i,f,l={}.hasOwnProperty;f=M("./Utility").assign,L=M("./NodeType"),_=M("./XMLDeclaration"),d=M("./XMLDocType"),A=M("./XMLCData"),b=M("./XMLComment"),c=M("./XMLElement"),a=M("./XMLRaw"),n=M("./XMLText"),t=M("./XMLProcessingInstruction"),r=M("./XMLDummy"),y=M("./XMLDTDAttList"),S=M("./XMLDTDElement"),T=M("./XMLDTDEntity"),h=M("./XMLDTDNotation"),p=M("./WriterState"),Y.exports=i=function(){function o(m){var w,C,v;m||(m={}),this.options=m,C=m.writer||{};for(w in C){if(!l.call(C,w))continue;v=C[w],this["_"+w]=this[w],this[w]=v}}return o.prototype.filterOptions=function(m){var w,C,v,P,R,E,x,g;return m||(m={}),m=f({},this.options,m),w={writer:this},w.pretty=m.pretty||!1,w.allowEmpty=m.allowEmpty||!1,w.indent=(C=m.indent)!=null?C:" ",w.newline=(v=m.newline)!=null?v:`
`,w.offset=(P=m.offset)!=null?P:0,w.dontPrettyTextNodes=(R=(E=m.dontPrettyTextNodes)!=null?E:m.dontprettytextnodes)!=null?R:0,w.spaceBeforeSlash=(x=(g=m.spaceBeforeSlash)!=null?g:m.spacebeforeslash)!=null?x:"",w.spaceBeforeSlash===!0&&(w.spaceBeforeSlash=" "),w.suppressPrettyCount=0,w.user={},w.state=p.None,w},o.prototype.indent=function(m,w,C){var v;return!w.pretty||w.suppressPrettyCount?"":w.pretty&&(v=(C||0)+w.offset+1,v>0)?new Array(v).join(w.indent):""},o.prototype.endline=function(m,w,C){return!w.pretty||w.suppressPrettyCount?"":w.newline},o.prototype.attribute=function(m,w,C){var v;return this.openAttribute(m,w,C),v=" "+m.name+'="'+m.value+'"',this.closeAttribute(m,w,C),v},o.prototype.cdata=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C)+"<![CDATA[",w.state=p.InsideTag,v+=m.value,w.state=p.CloseTag,v+="]]>"+this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.comment=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C)+"<!-- ",w.state=p.InsideTag,v+=m.value,w.state=p.CloseTag,v+=" -->"+this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.declaration=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C)+"<?xml",w.state=p.InsideTag,v+=' version="'+m.version+'"',m.encoding!=null&&(v+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(v+=' standalone="'+m.standalone+'"'),w.state=p.CloseTag,v+=w.spaceBeforeSlash+"?>",v+=this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.docType=function(m,w,C){var v,P,R,E,x;if(C||(C=0),this.openNode(m,w,C),w.state=p.OpenTag,E=this.indent(m,w,C),E+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?E+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(E+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(E+=" [",E+=this.endline(m,w,C),w.state=p.InsideTag,x=m.children,P=0,R=x.length;P<R;P++)v=x[P],E+=this.writeChildNode(v,w,C+1);w.state=p.CloseTag,E+="]"}return w.state=p.CloseTag,E+=w.spaceBeforeSlash+">",E+=this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),E},o.prototype.element=function(m,w,C){var v,P,R,E,x,g,O,I,D,N,V,F,W,K;C||(C=0),N=!1,V="",this.openNode(m,w,C),w.state=p.OpenTag,V+=this.indent(m,w,C)+"<"+m.name,F=m.attribs;for(D in F){if(!l.call(F,D))continue;v=F[D],V+=this.attribute(v,w,C)}if(R=m.children.length,E=R===0?null:m.children[0],R===0||m.children.every(function(B){return(B.type===L.Text||B.type===L.Raw)&&B.value===""}))w.allowEmpty?(V+=">",w.state=p.CloseTag,V+="</"+m.name+">"+this.endline(m,w,C)):(w.state=p.CloseTag,V+=w.spaceBeforeSlash+"/>"+this.endline(m,w,C));else if(w.pretty&&R===1&&(E.type===L.Text||E.type===L.Raw)&&E.value!=null)V+=">",w.state=p.InsideTag,w.suppressPrettyCount++,N=!0,V+=this.writeChildNode(E,w,C+1),w.suppressPrettyCount--,N=!1,w.state=p.CloseTag,V+="</"+m.name+">"+this.endline(m,w,C);else{if(w.dontPrettyTextNodes){for(W=m.children,x=0,O=W.length;x<O;x++)if(P=W[x],(P.type===L.Text||P.type===L.Raw)&&P.value!=null){w.suppressPrettyCount++,N=!0;break}}for(V+=">"+this.endline(m,w,C),w.state=p.InsideTag,K=m.children,g=0,I=K.length;g<I;g++)P=K[g],V+=this.writeChildNode(P,w,C+1);w.state=p.CloseTag,V+=this.indent(m,w,C)+"</"+m.name+">",N&&w.suppressPrettyCount--,V+=this.endline(m,w,C),w.state=p.None}return this.closeNode(m,w,C),V},o.prototype.writeChildNode=function(m,w,C){switch(m.type){case L.CData:return this.cdata(m,w,C);case L.Comment:return this.comment(m,w,C);case L.Element:return this.element(m,w,C);case L.Raw:return this.raw(m,w,C);case L.Text:return this.text(m,w,C);case L.ProcessingInstruction:return this.processingInstruction(m,w,C);case L.Dummy:return"";case L.Declaration:return this.declaration(m,w,C);case L.DocType:return this.docType(m,w,C);case L.AttributeDeclaration:return this.dtdAttList(m,w,C);case L.ElementDeclaration:return this.dtdElement(m,w,C);case L.EntityDeclaration:return this.dtdEntity(m,w,C);case L.NotationDeclaration:return this.dtdNotation(m,w,C);default:throw new Error("Unknown XML node type: "+m.constructor.name)}},o.prototype.processingInstruction=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C)+"<?",w.state=p.InsideTag,v+=m.target,m.value&&(v+=" "+m.value),w.state=p.CloseTag,v+=w.spaceBeforeSlash+"?>",v+=this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.raw=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C),w.state=p.InsideTag,v+=m.value,w.state=p.CloseTag,v+=this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.text=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C),w.state=p.InsideTag,v+=m.value,w.state=p.CloseTag,v+=this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.dtdAttList=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C)+"<!ATTLIST",w.state=p.InsideTag,v+=" "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(v+=" "+m.defaultValueType),m.defaultValue&&(v+=' "'+m.defaultValue+'"'),w.state=p.CloseTag,v+=w.spaceBeforeSlash+">"+this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.dtdElement=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C)+"<!ELEMENT",w.state=p.InsideTag,v+=" "+m.name+" "+m.value,w.state=p.CloseTag,v+=w.spaceBeforeSlash+">"+this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.dtdEntity=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C)+"<!ENTITY",w.state=p.InsideTag,m.pe&&(v+=" %"),v+=" "+m.name,m.value?v+=' "'+m.value+'"':(m.pubID&&m.sysID?v+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(v+=' SYSTEM "'+m.sysID+'"'),m.nData&&(v+=" NDATA "+m.nData)),w.state=p.CloseTag,v+=w.spaceBeforeSlash+">"+this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.dtdNotation=function(m,w,C){var v;return this.openNode(m,w,C),w.state=p.OpenTag,v=this.indent(m,w,C)+"<!NOTATION",w.state=p.InsideTag,v+=" "+m.name,m.pubID&&m.sysID?v+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?v+=' PUBLIC "'+m.pubID+'"':m.sysID&&(v+=' SYSTEM "'+m.sysID+'"'),w.state=p.CloseTag,v+=w.spaceBeforeSlash+">"+this.endline(m,w,C),w.state=p.None,this.closeNode(m,w,C),v},o.prototype.openNode=function(m,w,C){},o.prototype.closeNode=function(m,w,C){},o.prototype.openAttribute=function(m,w,C){},o.prototype.closeAttribute=function(m,w,C){},o}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(M,Y,s){"use strict";(function(){var L,p,A,b,y,S,T,h,_,d;d=M("./Utility"),h=d.assign,_=d.isFunction,A=M("./XMLDOMImplementation"),b=M("./XMLDocument"),y=M("./XMLDocumentCB"),T=M("./XMLStringWriter"),S=M("./XMLStreamWriter"),L=M("./NodeType"),p=M("./WriterState"),Y.exports.create=function(r,c,t,a){var n,i;if(r==null)throw new Error("Root element needs a name.");return a=h({},c,t,a),n=new b(a),i=n.element(r),a.headless||(n.declaration(a),(a.pubID!=null||a.sysID!=null)&&n.dtd(a)),i},Y.exports.begin=function(r,c,t){var a;return _(r)&&(a=[r,c],c=a[0],t=a[1],r={}),c?new y(r,c,t):new b(r)},Y.exports.stringWriter=function(r){return new T(r)},Y.exports.streamWriter=function(r,c){return new S(r,c)},Y.exports.implementation=new A,Y.exports.nodeType=L,Y.exports.writerState=p}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(M,Y,s){Y.exports=p;var L=Object.prototype.hasOwnProperty;function p(){for(var A={},b=0;b<arguments.length;b++){var y=arguments[b];for(var S in y)L.call(y,S)&&(A[S]=y[S])}return A}},{}],284:[function(M,Y,s){"use strict";var L=M("buffer").Buffer,p=M("./sha"),A=M("./md5"),b={sha1:p,md5:A},y=64,S=L.alloc(y);S.fill(0);function T(d,r,c){L.isBuffer(r)||(r=L.from(r)),L.isBuffer(c)||(c=L.from(c)),r.length>y?r=d(r):r.length<y&&(r=L.concat([r,S],y));for(var t=L.alloc(y),a=L.alloc(y),n=0;n<y;n++)t[n]=r[n]^54,a[n]=r[n]^92;var i=d(L.concat([t,c]));return d(L.concat([a,i]))}function h(d,r){d=d||"sha1";var c=b[d],t=[],a=0;return c||_("algorithm:",d,"is not yet supported"),{update:function(i){return L.isBuffer(i)||(i=L.from(i)),t.push(i),a+=i.length,this},digest:function(i){var f=L.concat(t),l=r?T(c,r,f):c(f);return t=null,i?l.toString(i):l}}}function _(){var d=[].slice.call(arguments).join(" ");throw new Error([d,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}s.createHash=function(d){return h(d)},s.createHmac=function(d,r){return h(d,r)},s.createCredentials=function(){_("sorry,createCredentials is not implemented yet")},s.createCipher=function(){_("sorry,createCipher is not implemented yet")},s.createCipheriv=function(){_("sorry,createCipheriv is not implemented yet")},s.createDecipher=function(){_("sorry,createDecipher is not implemented yet")},s.createDecipheriv=function(){_("sorry,createDecipheriv is not implemented yet")},s.createSign=function(){_("sorry,createSign is not implemented yet")},s.createVerify=function(){_("sorry,createVerify is not implemented yet")},s.createDiffieHellman=function(){_("sorry,createDiffieHellman is not implemented yet")},s.pbkdf2=function(){_("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(M,Y,s){"use strict";var L=M("buffer").Buffer,p=4,A=L.alloc(p);A.fill(0);var b=8;function y(h,_){if(h.length%p!==0){var d=h.length+(p-h.length%p);h=L.concat([h,A],d)}for(var r=[],c=_?h.readInt32BE:h.readInt32LE,t=0;t<h.length;t+=p)r.push(c.call(h,t));return r}function S(h,_,d){for(var r=L.alloc(_),c=d?r.writeInt32BE:r.writeInt32LE,t=0;t<h.length;t++)c.call(r,h[t],t*4,!0);return r}function T(h,_,d,r){L.isBuffer(h)||(h=L.from(h));var c=_(y(h,r),h.length*b);return S(c,d,r)}Y.exports={hash:T}},{buffer:73}],286:[function(M,Y,s){"use strict";var L=M("./helpers");function p(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function A(r,c){r[c>>5]|=128<<c%32,r[(c+64>>>9<<4)+14]=c;for(var t=1732584193,a=-271733879,n=-1732584194,i=271733878,f=0;f<r.length;f+=16){var l=t,o=a,m=n,w=i;t=y(t,a,n,i,r[f+0],7,-680876936),i=y(i,t,a,n,r[f+1],12,-389564586),n=y(n,i,t,a,r[f+2],17,606105819),a=y(a,n,i,t,r[f+3],22,-1044525330),t=y(t,a,n,i,r[f+4],7,-176418897),i=y(i,t,a,n,r[f+5],12,1200080426),n=y(n,i,t,a,r[f+6],17,-1473231341),a=y(a,n,i,t,r[f+7],22,-45705983),t=y(t,a,n,i,r[f+8],7,1770035416),i=y(i,t,a,n,r[f+9],12,-1958414417),n=y(n,i,t,a,r[f+10],17,-42063),a=y(a,n,i,t,r[f+11],22,-1990404162),t=y(t,a,n,i,r[f+12],7,1804603682),i=y(i,t,a,n,r[f+13],12,-40341101),n=y(n,i,t,a,r[f+14],17,-1502002290),a=y(a,n,i,t,r[f+15],22,1236535329),t=S(t,a,n,i,r[f+1],5,-165796510),i=S(i,t,a,n,r[f+6],9,-1069501632),n=S(n,i,t,a,r[f+11],14,643717713),a=S(a,n,i,t,r[f+0],20,-373897302),t=S(t,a,n,i,r[f+5],5,-701558691),i=S(i,t,a,n,r[f+10],9,38016083),n=S(n,i,t,a,r[f+15],14,-660478335),a=S(a,n,i,t,r[f+4],20,-405537848),t=S(t,a,n,i,r[f+9],5,568446438),i=S(i,t,a,n,r[f+14],9,-1019803690),n=S(n,i,t,a,r[f+3],14,-187363961),a=S(a,n,i,t,r[f+8],20,1163531501),t=S(t,a,n,i,r[f+13],5,-1444681467),i=S(i,t,a,n,r[f+2],9,-51403784),n=S(n,i,t,a,r[f+7],14,1735328473),a=S(a,n,i,t,r[f+12],20,-1926607734),t=T(t,a,n,i,r[f+5],4,-378558),i=T(i,t,a,n,r[f+8],11,-2022574463),n=T(n,i,t,a,r[f+11],16,1839030562),a=T(a,n,i,t,r[f+14],23,-35309556),t=T(t,a,n,i,r[f+1],4,-1530992060),i=T(i,t,a,n,r[f+4],11,1272893353),n=T(n,i,t,a,r[f+7],16,-155497632),a=T(a,n,i,t,r[f+10],23,-1094730640),t=T(t,a,n,i,r[f+13],4,681279174),i=T(i,t,a,n,r[f+0],11,-358537222),n=T(n,i,t,a,r[f+3],16,-722521979),a=T(a,n,i,t,r[f+6],23,76029189),t=T(t,a,n,i,r[f+9],4,-640364487),i=T(i,t,a,n,r[f+12],11,-421815835),n=T(n,i,t,a,r[f+15],16,530742520),a=T(a,n,i,t,r[f+2],23,-995338651),t=h(t,a,n,i,r[f+0],6,-198630844),i=h(i,t,a,n,r[f+7],10,1126891415),n=h(n,i,t,a,r[f+14],15,-1416354905),a=h(a,n,i,t,r[f+5],21,-57434055),t=h(t,a,n,i,r[f+12],6,1700485571),i=h(i,t,a,n,r[f+3],10,-1894986606),n=h(n,i,t,a,r[f+10],15,-1051523),a=h(a,n,i,t,r[f+1],21,-2054922799),t=h(t,a,n,i,r[f+8],6,1873313359),i=h(i,t,a,n,r[f+15],10,-30611744),n=h(n,i,t,a,r[f+6],15,-1560198380),a=h(a,n,i,t,r[f+13],21,1309151649),t=h(t,a,n,i,r[f+4],6,-145523070),i=h(i,t,a,n,r[f+11],10,-1120210379),n=h(n,i,t,a,r[f+2],15,718787259),a=h(a,n,i,t,r[f+9],21,-343485551),t=_(t,l),a=_(a,o),n=_(n,m),i=_(i,w)}return Array(t,a,n,i)}function b(r,c,t,a,n,i){return _(d(_(_(c,r),_(a,i)),n),t)}function y(r,c,t,a,n,i,f){return b(c&t|~c&a,r,c,n,i,f)}function S(r,c,t,a,n,i,f){return b(c&a|t&~a,r,c,n,i,f)}function T(r,c,t,a,n,i,f){return b(c^t^a,r,c,n,i,f)}function h(r,c,t,a,n,i,f){return b(t^(c|~a),r,c,n,i,f)}function _(r,c){var t=(r&65535)+(c&65535),a=(r>>16)+(c>>16)+(t>>16);return a<<16|t&65535}function d(r,c){return r<<c|r>>>32-c}Y.exports=function(c){return L.hash(c,A,16)}},{"./helpers":285}],287:[function(M,Y,s){"use strict";var L=M("./helpers");function p(T,h){T[h>>5]|=128<<24-h%32,T[(h+64>>9<<4)+15]=h;for(var _=Array(80),d=1732584193,r=-271733879,c=-1732584194,t=271733878,a=-1009589776,n=0;n<T.length;n+=16){for(var i=d,f=r,l=c,o=t,m=a,w=0;w<80;w++){w<16?_[w]=T[n+w]:_[w]=S(_[w-3]^_[w-8]^_[w-14]^_[w-16],1);var C=y(y(S(d,5),A(w,r,c,t)),y(y(a,_[w]),b(w)));a=t,t=c,c=S(r,30),r=d,d=C}d=y(d,i),r=y(r,f),c=y(c,l),t=y(t,o),a=y(a,m)}return Array(d,r,c,t,a)}function A(T,h,_,d){return T<20?h&_|~h&d:T<40?h^_^d:T<60?h&_|h&d|_&d:h^_^d}function b(T){return T<20?1518500249:T<40?1859775393:T<60?-1894007588:-899497514}function y(T,h){var _=(T&65535)+(h&65535),d=(T>>16)+(h>>16)+(_>>16);return d<<16|_&65535}function S(T,h){return T<<h|T>>>32-h}Y.exports=function(h){return L.hash(h,p,20,!0)}},{"./helpers":285}],288:[function(M,Y,s){"use strict";Y.exports=function(){return function(){}}},{}],289:[function(M,Y,s){(function(L){"use strict";var p=M("babel-runtime/helpers/typeof"),A=b(p);function b(d){return d&&d.__esModule?d:{default:d}}var y=M("stream"),S=y.Stream,T=M("../lib/common/utils/isArray"),h=T.isArray;Y.exports.string=function(r){return typeof r=="string"},Y.exports.array=h,Y.exports.buffer=L.isBuffer;function _(d){return d instanceof S}Y.exports.writableStream=function(r){return _(r)&&typeof r._write=="function"&&(0,A.default)(r._writableState)==="object"}}).call(this,{isBuffer:M("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(M,Y,s){"use strict";s.encodeURIComponent=function(L){try{return encodeURIComponent(L)}catch(p){return L}},s.escape=M("escape-html"),s.timestamp=function(p){if(p){var A=p;return typeof A=="string"&&(A=Number(A)),String(p).length===10&&(A*=1e3),new Date(A)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(M,Y,s){(function(L,p){"use strict";var A=M("babel-runtime/core-js/json/stringify"),b=T(A),y=M("babel-runtime/helpers/typeof"),S=T(y);function T(w){return w&&w.__esModule?w:{default:w}}var h=M("util"),_=M("url"),d=M("http"),r=M("https"),c=M("debug")("urllib"),t=M("humanize-ms"),a,n=0,i=Math.pow(2,31)-10,f=/^https?:\/\//i;function l(w,C){return w===void 0?C:w}function o(w,C){return function(v,P,R){if(v)return C(v);w({data:P,status:R.statusCode,headers:R.headers,res:R})}}s.TIMEOUTS=[t("300s"),t("300s")];var m=["json","text"];s.request=function(C,v,P){return arguments.length===2&&typeof v=="function"&&(P=v,v=null),typeof P=="function"?s.requestWithCallback(C,v,P):(a||(a=M("any-promise")),new a(function(R,E){s.requestWithCallback(C,v,o(R,E))}))},s.requestWithCallback=function(C,v,P){if(!C||typeof C!="string"&&(typeof C=="undefined"?"undefined":(0,S.default)(C))!=="object"){var R=h.format("expect request url to be a string or a http request options, but got %j",C);throw new Error(R)}arguments.length===2&&typeof v=="function"&&(P=v,v=null),v=v||{},n>=i&&(n=0);var E=++n;v.requestUrls=v.requestUrls||[];var x={requestId:E,url:C,args:v,ctx:v.ctx};v.emitter&&v.emitter.emit("request",x),v.timeout=v.timeout||s.TIMEOUTS,v.maxRedirects=v.maxRedirects||10,v.streaming=v.streaming||v.customResponse;var g=Date.now(),O;typeof C=="string"?(f.test(C)||(C="http://"+C),O=_.parse(C)):O=C;var I=(v.type||v.method||O.method||"GET").toUpperCase(),D=O.port||80,N=d,V=l(v.agent,s.agent),F=v.fixJSONCtlChars;O.protocol==="https:"&&(N=r,V=l(v.httpsAgent,s.httpsAgent),O.port||(D=443));var W={host:O.hostname||O.host||"localhost",path:O.path||"/",method:I,port:D,agent:V,headers:v.headers||{},lookup:v.lookup};Array.isArray(v.timeout)?W.requestTimeout=v.timeout[v.timeout.length-1]:typeof v.timeout!="undefined"&&(W.requestTimeout=v.timeout);for(var K=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],B=0;B<K.length;B++){var k=K[B];v.hasOwnProperty(k)&&(W[k]=v[k])}W.rejectUnauthorized===!1&&!W.hasOwnProperty("secureOptions")&&(W.secureOptions=M("constants").SSL_OP_NO_TLSv1_2);var G=v.auth||O.auth;G&&(W.auth=G);var ne=v.content||v.data,fe=I==="GET"||I==="HEAD"||v.dataAsQueryString;if(!v.content&&(ne&&!(typeof ne=="string"||p.isBuffer(ne))))if(fe)ne=v.nestedQuerystring?qs.stringify(ne):querystring.stringify(ne);else{var de=W.headers["Content-Type"]||W.headers["content-type"];de||(v.contentType==="json"?de="application/json":de="application/x-www-form-urlencoded",W.headers["Content-Type"]=de),parseContentType(de).type==="application/json"?ne=(0,b.default)(ne):ne=v.nestedQuerystring?qs.stringify(ne):querystring.stringify(ne)}fe&&ne&&(W.path+=(O.query?"&":"?")+ne,ne=null);var Ee=0;if(ne){var we=ne.length;p.isBuffer(ne)||(we=p.byteLength(ne)),Ee=W.headers["Content-Length"]=we}v.dataType==="json"&&(W.headers.Accept="application/json"),typeof v.beforeRequest=="function"&&v.beforeRequest(W);var ce=null,be=null,ve=null,ue=!1,se=!1,q=0,me=-1,re=!1,ie="",Oe="",le=null;v.timing&&(le={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function $(){ce&&(clearTimeout(ce),ce=null)}function J(){be&&(clearTimeout(be),be=null)}function te(Ue,ft,jt){if(J(),!P){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),E,L.pid,W.method,C),Ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),E,L.pid,Ue.name,Ue.message,Ue.stack);return}var ht=P;P=null;var _t={};if(jt&&(me=jt.statusCode,_t=jt.headers),me===401&&_t["www-authenticate"]&&(!v.headers||!v.headers.Authorization)&&v.digestAuth){var Ye=_t["www-authenticate"];if(Ye.indexOf("Digest ")>=0)return c("Request#%d %s: got digest auth header WWW-Authenticate: %s",E,C,Ye),v.headers=v.headers||{},v.headers.Authorization=digestAuthHeader(W.method,W.path,Ye,v.digestAuth),c("Request#%d %s: auth with digest header: %s",E,C,v.headers.Authorization),jt.headers["set-cookie"]&&(v.headers.Cookie=jt.headers["set-cookie"].join(";")),s.requestWithCallback(C,v,ht)}var We=Date.now()-g;le&&(le.contentDownload=We),c("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",We,q,me,W.method,W.host,W.path,se,le);var Xe={status:me,statusCode:me,headers:_t,size:q,aborted:re,rt:We,keepAliveSocket:se,data:ft,requestUrls:v.requestUrls,timing:le,remoteAddress:ie,remotePort:Oe};if(Ue){var Te="";V&&typeof V.getCurrentStatus=="function"&&(Te=", agent status: "+(0,b.default)(V.getCurrentStatus())),Ue.message+=", "+W.method+" "+C+" "+me+" (connected: "+ue+", keepalive socket: "+se+Te+`)
headers: `+(0,b.default)(_t),Ue.data=ft,Ue.path=W.path,Ue.status=me,Ue.headers=_t,Ue.res=Xe}ht(Ue,ft,v.streaming?jt:Xe),v.emitter&&(x.url=C,x.socket=wt&&wt.connection,x.options=W,x.size=Ee,v.emitter.emit("response",{requestId:E,error:Ue,ctx:v.ctx,req:x,res:Xe}))}function Ae(Ue){var ft=null;if(v.followRedirect&&statuses.redirect[Ue.statusCode]){v._followRedirectCount=(v._followRedirectCount||0)+1;var jt=Ue.headers.location;if(!jt)ft=new Error("Got statusCode "+Ue.statusCode+" but cannot resolve next location from headers"),ft.name="FollowRedirectError";else if(v._followRedirectCount>v.maxRedirects)ft=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+C),ft.name="MaxRedirectError";else{var ht=v.formatRedirectUrl?v.formatRedirectUrl(C,jt):_.resolve(C,jt);c("Request#%d %s: `redirected` from %s to %s",E,W.path,C,ht),J(),v.headers&&v.headers.Host&&f.test(jt)&&(v.headers.Host=null);var _t=P;return P=null,s.requestWithCallback(ht,v,_t),{redirect:!0,error:null}}}return{redirect:!1,error:ft}}!W.headers["User-Agent"]&&!W.headers["user-agent"]&&(W.headers["User-Agent"]=navigator.userAgent),v.gzip&&(!W.headers["Accept-Encoding"]&&!W.headers["accept-encoding"]&&(W.headers["Accept-Encoding"]="gzip"));function Se(Ue,ft,jt){var ht=Ue.headers["content-encoding"];return jt(null,ft,ht)}var ke=v.writeStream;c("Request#%d %s %s with headers %j, options.path: %s",E,I,C,W.headers,W.path),v.requestUrls.push(C);function rt(Ue){if(le&&(le.waiting=Date.now()-g),c("Request#%d %s `req response` event emit: status %d, headers: %j",E,C,Ue.statusCode,Ue.headers),v.streaming){var ft=Ae(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),te(ft.error,null,Ue)):te(null,null,Ue)}if(Ue.on("close",function(){c("Request#%d %s: `res close` event emit, total size %d",E,C,q)}),Ue.on("error",function(){c("Request#%d %s: `res error` event emit, total size %d",E,C,q)}),Ue.on("aborted",function(){re=!0,c("Request#%d %s: `res aborted` event emit, total size %d",E,C,q)}),ke){var ft=Ae(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),ke.end(),te(ft.error,null,Ue)):(v.consumeWriteStream===!1?Ue.on("end",te.bind(null,null,null,Ue)):isNode010||isNode012?first([[ke,"close"],[Ue,"aborted"]],function(_t,Ye,We){c("Request#%d %s: writeStream or res %s event emitted",E,C,We),te(ve||null,null,Ue)}):ke.on("close",function(){c("Request#%d %s: writeStream close event emitted",E,C),te(ve||null,null,Ue)}),Ue.pipe(ke))}var jt=[];Ue.on("data",function(ht){c("Request#%d %s: `res data` event emit, size %d",E,C,ht.length),q+=ht.length,jt.push(ht)}),Ue.on("end",function(){var ht=p.concat(jt,q);if(c("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",E,C,q,Ue._dumped),ve)return te(ve,ht,Ue);var _t=Ae(Ue);if(_t.error)return te(_t.error,ht,Ue);if(_t.redirect)return;Se(Ue,ht,function(Ye,We,Xe){if(Ye)return te(Ye,ht,Ue);if(!Xe&&m.indexOf(v.dataType)>=0){try{We=decodeBodyByCharset(We,Ue)}catch(Me){return c("decodeBodyByCharset error: %s",Me),te(null,We,Ue)}if(v.dataType==="json")if(q===0)We=null;else{var Te=parseJSON(We,F);Te.error?Ye=Te.error:We=Te.data}}re&&c("Request#%d %s: Remote socket was terminated before `response.end()` was called",E,C),te(Ye,We,Ue)})})}var ot,gt;Array.isArray(v.timeout)?(ot=t(v.timeout[0]),gt=t(v.timeout[1])):ot=gt=t(v.timeout),c("ConnectTimeout: %d, ResponseTimeout: %d",ot,gt);function Et(){c("Connect timer ticking, timeout: %d",ot),ce=setTimeout(function(){ce=null,me===-1&&(me=-2);var Ue="Connect timeout for "+ot+"ms",ft="ConnectionTimeoutError";wt.socket||(ft="SocketAssignTimeoutError",Ue+=", working sockets is full"),ve=new Error(Ue),ve.name=ft,ve.requestId=E,c("ConnectTimeout: Request#%d %s %s: %s, connected: %s",E,C,ve.name,Ue,ue),Qe()},ot)}function Ct(){c("Response timer ticking, timeout: %d",gt),be=setTimeout(function(){be=null;var Ue="Response timeout for "+gt+"ms",ft="ResponseTimeoutError";ve=new Error(Ue),ve.name=ft,ve.requestId=E,c("ResponseTimeout: Request#%d %s %s: %s, connected: %s",E,C,ve.name,Ue,ue),Qe()},gt)}var wt;W.mode=v.mode?v.mode:"";try{wt=N.request(W,rt)}catch(Ue){return te(Ue)}typeof window=="undefined"?Et():wt.on("requestTimeout",function(){me===-1&&(me=-2);var Ue="Connect timeout for "+ot+"ms",ft="ConnectionTimeoutError";ve=new Error(Ue),ve.name=ft,ve.requestId=E,Qe()});function Qe(){c("Request#%d %s abort, connected: %s",E,C,ue),wt.socket||(ve.noSocket=!0,te(ve)),wt.abort()}return le&&wt.on("finish",function(){le.requestSent=Date.now()-g}),wt.once("socket",function(Ue){le&&(le.queuing=Date.now()-g),isNode010&&Ue.socket&&(Ue=Ue.socket);var ft=Ue.readyState;if(ft==="opening"){Ue.once("lookup",function(jt,ht,_t){c("Request#%d %s lookup: %s, %s, %s",E,C,jt,ht,_t),le&&(le.dnslookup=Date.now()-g),ht&&(ie=ht)}),Ue.once("connect",function(){le&&(le.connected=Date.now()-g),$(),Ct(),c("Request#%d %s new socket connected",E,C),ue=!0,ie||(ie=Ue.remoteAddress),Oe=Ue.remotePort});return}c("Request#%d %s reuse socket connected, readyState: %s",E,C,ft),ue=!0,se=!0,ie||(ie=Ue.remoteAddress),Oe=Ue.remotePort,$(),Ct()}),wt.on("error",function(Ue){(Ue.name==="Error"||Ue.name==="TypeError")&&(Ue.name=ue?"ResponseError":"RequestError"),Ue.message+=' (req "error")',c("Request#%d %s `req error` event emit, %s: %s",E,C,Ue.name,Ue.message),te(ve||Ue)}),ke&&ke.once("error",function(Ue){Ue.message+=' (writeStream "error")',ve=Ue,c("Request#%d %s `writeStream error` event emit, %s: %s",E,C,Ue.name,Ue.message),Qe()}),v.stream?(v.stream.pipe(wt),v.stream.once("error",function(Ue){Ue.message+=' (stream "error")',ve=Ue,c("Request#%d %s `readStream error` event emit, %s: %s",E,C,Ue.name,Ue.message),Qe()})):wt.end(ne),wt.requestId=E,wt}}).call(this,M("_process"),M("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n6Qo:function(M,Y,s){"use strict";s.d(Y,"a",function(){return h});var L=s("cDcd"),p=s("biw7"),A=s("fyJ8");function b(_){var d=_.className,r=_.index,c=_.children,t=_.colSpan,a=_.rowSpan,n=L.useContext(p.a),i=n.prefixCls,f=n.fixedInfoList,l=f[r];return L.createElement(A.a,Object.assign({className:d,index:r,component:"td",prefixCls:i,record:null,dataIndex:null,render:function(){return{children:c,props:{colSpan:t,rowSpan:a}}}},l))}function y(_){return L.createElement("tr",Object.assign({},_))}function S(_){var d=_.children,r=L.useContext(p.a),c=r.prefixCls;return L.createElement("tfoot",{className:"".concat(c,"-summary")},d)}var T=Y.b=S,h={Cell:b,Row:y}},nKGa:function(M,Y,s){M.exports=s.p+"static/export_exercise-template.f7655c19.png"},ngQI:function(M,Y,s){"use strict";s.d(Y,"a",function(){return jl}),s.d(Y,"b",function(){return Dl}),s.d(Y,"c",function(){return Rl});var L=s("cDcd"),p=s.n(L),A=s("dI71"),b=s("wx14"),y=s("ANjH"),S=s("/MKj");function T(X,Q){if(X.length!==Q.length)return!1;for(var ae=0;ae<X.length;ae++)if(X[ae]!==Q[ae])return!1;return!0}function h(X,Q){var ae=Object(L.useState)(function(){return{inputs:Q,result:X()}})[0],_e=Object(L.useRef)(!0),Le=Object(L.useRef)(ae),Ne=_e.current||Boolean(Q&&Le.current.inputs&&T(Q,Le.current.inputs)),He=Ne?Le.current:{inputs:Q,result:X()};return Object(L.useEffect)(function(){_e.current=!1,Le.current=He},[He]),He.result}function _(X,Q){return h(function(){return X},Q)}var d=h,r=_,c=s("9R94"),t=function(Q){var ae=Q.top,_e=Q.right,Le=Q.bottom,Ne=Q.left,He=_e-Ne,Ke=Le-ae,St={top:ae,right:_e,bottom:Le,left:Ne,width:He,height:Ke,x:Ne,y:ae,center:{x:(_e+Ne)/2,y:(Le+ae)/2}};return St},a=function(Q,ae){return{top:Q.top-ae.top,left:Q.left-ae.left,bottom:Q.bottom+ae.bottom,right:Q.right+ae.right}},n=function(Q,ae){return{top:Q.top+ae.top,left:Q.left+ae.left,bottom:Q.bottom-ae.bottom,right:Q.right-ae.right}},i=function(Q,ae){return{top:Q.top+ae.y,left:Q.left+ae.x,bottom:Q.bottom+ae.y,right:Q.right+ae.x}},f={top:0,right:0,bottom:0,left:0},l=function(Q){var ae=Q.borderBox,_e=Q.margin,Le=_e===void 0?f:_e,Ne=Q.border,He=Ne===void 0?f:Ne,Ke=Q.padding,St=Ke===void 0?f:Ke,Bt=t(a(ae,Le)),Ft=t(n(ae,He)),Dt=t(n(Ft,St));return{marginBox:Bt,borderBox:t(ae),paddingBox:Ft,contentBox:Dt,margin:Le,border:He,padding:St}},o=function(Q){var ae=Q.slice(0,-2),_e=Q.slice(-2);if(_e!=="px")return 0;var Le=Number(ae);return isNaN(Le)&&Object(c.a)(!1),Le},m=function(){return{x:window.pageXOffset,y:window.pageYOffset}},w=function(Q,ae){var _e=Q.borderBox,Le=Q.border,Ne=Q.margin,He=Q.padding,Ke=i(_e,ae);return l({borderBox:Ke,border:Le,margin:Ne,padding:He})},C=function(Q,ae){return ae===void 0&&(ae=m()),w(Q,ae)},v=function(Q,ae){var _e={top:o(ae.marginTop),right:o(ae.marginRight),bottom:o(ae.marginBottom),left:o(ae.marginLeft)},Le={top:o(ae.paddingTop),right:o(ae.paddingRight),bottom:o(ae.paddingBottom),left:o(ae.paddingLeft)},Ne={top:o(ae.borderTopWidth),right:o(ae.borderRightWidth),bottom:o(ae.borderBottomWidth),left:o(ae.borderLeftWidth)};return l({borderBox:Q,margin:_e,padding:Le,border:Ne})},P=function(Q){var ae=Q.getBoundingClientRect(),_e=window.getComputedStyle(Q);return v(ae,_e)},R=Number.isNaN||function(Q){return typeof Q=="number"&&Q!==Q};function E(X,Q){return X===Q?!0:!!(R(X)&&R(Q))}function x(X,Q){if(X.length!==Q.length)return!1;for(var ae=0;ae<X.length;ae++)if(!E(X[ae],Q[ae]))return!1;return!0}function g(X,Q){Q===void 0&&(Q=x);var ae,_e=[],Le,Ne=!1;function He(){for(var Ke=[],St=0;St<arguments.length;St++)Ke[St]=arguments[St];return Ne&&ae===this&&Q(Ke,_e)||(Le=X.apply(this,Ke),Ne=!0,ae=this,_e=Ke),Le}return He}var O=g,I=function(Q){var ae=[],_e=null,Le=function(){for(var He=arguments.length,Ke=new Array(He),St=0;St<He;St++)Ke[St]=arguments[St];if(ae=Ke,_e)return;_e=requestAnimationFrame(function(){_e=null,Q.apply(void 0,ae)})};return Le.cancel=function(){if(!_e)return;cancelAnimationFrame(_e),_e=null},Le},D=I,N=s("faye"),V=s.n(N),F=!0,W=/[ \t]{2,}/g,K=/^[ \t]*/gm,B=function(Q){return Q.replace(W," ").replace(K,"").trim()},k=function(Q){return B(`
%creact-beautiful-dnd
%c`+B(Q)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},G=function(Q){return[k(Q),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ne="__react-beautiful-dnd-disable-dev-warnings";function fe(X,Q){var ae;if(F)return;if(typeof window!="undefined"&&window[ne])return;(ae=console)[X].apply(ae,G(Q))}var de=fe.bind(null,"warn"),Ee=fe.bind(null,"error");function we(){}function ce(X,Q){return Object(b.a)({},X,{},Q)}function be(X,Q,ae){var _e=Q.map(function(Le){var Ne=ce(ae,Le.options);return X.addEventListener(Le.eventName,Le.fn,Ne),function(){X.removeEventListener(Le.eventName,Le.fn,Ne)}});return function(){_e.forEach(function(Ne){Ne()})}}var ve=!0,ue="Invariant failed";function se(X){this.message=X}se.prototype.toString=function(){return this.message};function q(X,Q){if(X)return;throw ve?new se(ue):new se(ue+": "+(Q||""))}var me=function(X){Object(A.a)(Q,X);function Q(){for(var _e,Le=arguments.length,Ne=new Array(Le),He=0;He<Le;He++)Ne[He]=arguments[He];return _e=X.call.apply(X,[this].concat(Ne))||this,_e.callbacks=null,_e.unbind=we,_e.onWindowError=function(Ke){var St=_e.getCallbacks();St.isDragging()&&St.tryAbort();var Bt=Ke.error;Bt instanceof se&&Ke.preventDefault()},_e.getCallbacks=function(){if(!_e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return _e.callbacks},_e.setCallbacks=function(Ke){_e.callbacks=Ke},_e}var ae=Q.prototype;return ae.componentDidMount=function(){this.unbind=be(window,[{eventName:"error",fn:this.onWindowError}])},ae.componentWillUnmount=function(){this.unbind()},ae.componentDidCatch=function(Le){if(Le instanceof se){this.setState({});return}throw Le},ae.render=function(){return this.props.children(this.setCallbacks)},Q}(p.a.Component),re=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,ie=function(Q){return Q+1},Oe=function(Q){return`
You have lifted an item in position `+ie(Q.source.index)+`
`},le=function(Q,ae){var _e=Q.droppableId===ae.droppableId,Le=ie(Q.index),Ne=ie(ae.index);return _e?`
You have moved the item from position `+Le+`
to position `+Ne+`
`:`
You have moved the item from position `+Le+`
in list `+Q.droppableId+`
to list `+ae.droppableId+`
in position `+Ne+`
`},$=function(Q,ae,_e){var Le=ae.droppableId===_e.droppableId;return Le?`
The item `+Q+`
has been combined with `+_e.draggableId:`
The item `+Q+`
in list `+ae.droppableId+`
has been combined with `+_e.draggableId+`
in list `+_e.droppableId+`
`},J=function(Q){var ae=Q.destination;if(ae)return le(Q.source,ae);var _e=Q.combine;return _e?$(Q.draggableId,Q.source,_e):"You are over an area that cannot be dropped on"},te=function(Q){return`
The item has returned to its starting position
of `+ie(Q.index)+`
`},Ae=function(Q){if(Q.reason==="CANCEL")return`
Movement cancelled.
`+te(Q.source)+`
`;var ae=Q.destination,_e=Q.combine;return ae?`
You have dropped the item.
`+le(Q.source,ae)+`
`:_e?`
You have dropped the item.
`+$(Q.draggableId,Q.source,_e)+`
`:`
The item has been dropped while not over a drop area.
`+te(Q.source)+`
`},Se={dragHandleUsageInstructions:re,onDragStart:Oe,onDragUpdate:J,onDragEnd:Ae},ke={x:0,y:0},rt=function(Q,ae){return{x:Q.x+ae.x,y:Q.y+ae.y}},ot=function(Q,ae){return{x:Q.x-ae.x,y:Q.y-ae.y}},gt=function(Q,ae){return Q.x===ae.x&&Q.y===ae.y},Et=function(Q){return{x:Q.x!==0?-Q.x:0,y:Q.y!==0?-Q.y:0}},Ct=function(Q,ae,_e){var Le;return _e===void 0&&(_e=0),Le={},Le[Q]=ae,Le[Q==="x"?"y":"x"]=_e,Le},wt=function(Q,ae){return Math.sqrt(Math.pow(ae.x-Q.x,2)+Math.pow(ae.y-Q.y,2))},Qe=function(Q,ae){return Math.min.apply(Math,ae.map(function(_e){return wt(Q,_e)}))},Ue=function(Q){return function(ae){return{x:Q(ae.x),y:Q(ae.y)}}},ft=function(X,Q){var ae=t({top:Math.max(Q.top,X.top),right:Math.min(Q.right,X.right),bottom:Math.min(Q.bottom,X.bottom),left:Math.max(Q.left,X.left)});return ae.width<=0||ae.height<=0?null:ae},jt=function(Q,ae){return{top:Q.top+ae.y,left:Q.left+ae.x,bottom:Q.bottom+ae.y,right:Q.right+ae.x}},ht=function(Q){return[{x:Q.left,y:Q.top},{x:Q.right,y:Q.top},{x:Q.left,y:Q.bottom},{x:Q.right,y:Q.bottom}]},_t={top:0,right:0,bottom:0,left:0},Ye=function(Q,ae){return ae?jt(Q,ae.scroll.diff.displacement):Q},We=function(Q,ae,_e){if(_e&&_e.increasedBy){var Le;return Object(b.a)({},Q,(Le={},Le[ae.end]=Q[ae.end]+_e.increasedBy[ae.line],Le))}return Q},Xe=function(Q,ae){return ae&&ae.shouldClipSubject?ft(ae.pageMarginBox,Q):t(Q)},Te=function(X){var Q=X.page,ae=X.withPlaceholder,_e=X.axis,Le=X.frame,Ne=Ye(Q.marginBox,Le),He=We(Ne,_e,ae),Ke=Xe(He,Le);return{page:Q,withPlaceholder:ae,active:Ke}},Me=function(X,Q){X.frame||q(!1);var ae=X.frame,_e=ot(Q,ae.scroll.initial),Le=Et(_e),Ne=Object(b.a)({},ae,{scroll:{initial:ae.scroll.initial,current:Q,diff:{value:_e,displacement:Le},max:ae.scroll.max}}),He=Te({page:X.subject.page,withPlaceholder:X.subject.withPlaceholder,axis:X.axis,frame:Ne}),Ke=Object(b.a)({},X,{frame:Ne,subject:He});return Ke};function Ve(X){return Number.isInteger?Number.isInteger(X):typeof X=="number"&&isFinite(X)&&Math.floor(X)===X}function Ge(X){return Object.values?Object.values(X):Object.keys(X).map(function(Q){return X[Q]})}function Ze(X,Q){if(X.findIndex)return X.findIndex(Q);for(var ae=0;ae<X.length;ae++)if(Q(X[ae]))return ae;return-1}function mt(X,Q){if(X.find)return X.find(Q);var ae=Ze(X,Q);return ae!==-1?X[ae]:void 0}function Pt(X){return Array.prototype.slice.call(X)}var Gt=O(function(X){return X.reduce(function(Q,ae){return Q[ae.descriptor.id]=ae,Q},{})}),dn=O(function(X){return X.reduce(function(Q,ae){return Q[ae.descriptor.id]=ae,Q},{})}),Tt=O(function(X){return Ge(X)}),ut=O(function(X){return Ge(X)}),je=O(function(X,Q){var ae=ut(Q).filter(function(_e){return X===_e.descriptor.droppableId}).sort(function(_e,Le){return _e.descriptor.index-Le.descriptor.index});return ae});function tt(X){return X.at&&X.at.type==="REORDER"?X.at.destination:null}function nt(X){return X.at&&X.at.type==="COMBINE"?X.at.combine:null}var De=O(function(X,Q){return Q.filter(function(ae){return ae.descriptor.id!==X.descriptor.id})}),Fe=function(X){var Q=X.isMovingForward,ae=X.draggable,_e=X.destination,Le=X.insideDestination,Ne=X.previousImpact;if(!_e.isCombineEnabled)return null;var He=tt(Ne);if(!He)return null;function Ke(fr){var _r={type:"COMBINE",combine:{draggableId:fr,droppableId:_e.descriptor.id}};return Object(b.a)({},Ne,{at:_r})}var St=Ne.displaced.all,Bt=St.length?St[0]:null;if(Q)return Bt?Ke(Bt):null;var Ft=De(ae,Le);if(!Bt){if(!Ft.length)return null;var Dt=Ft[Ft.length-1];return Ke(Dt.descriptor.id)}var Ot=Ze(Ft,function(fr){return fr.descriptor.id===Bt});Ot!==-1||q(!1);var Ut=Ot-1;if(Ut<0)return null;var pn=Ft[Ut];return Ke(pn.descriptor.id)},bt=function(X,Q){return X.descriptor.droppableId===Q.descriptor.id},dt={point:ke,value:0},xt={invisible:{},visible:{},all:[]},kt={displaced:xt,displacedBy:dt,at:null},et=function(X,Q){return function(ae){return X<=ae&&ae<=Q}},Mt=function(X){var Q=et(X.top,X.bottom),ae=et(X.left,X.right);return function(_e){var Le=Q(_e.top)&&Q(_e.bottom)&&ae(_e.left)&&ae(_e.right);if(Le)return!0;var Ne=Q(_e.top)||Q(_e.bottom),He=ae(_e.left)||ae(_e.right),Ke=Ne&&He;if(Ke)return!0;var St=_e.top<X.top&&_e.bottom>X.bottom,Bt=_e.left<X.left&&_e.right>X.right,Ft=St&&Bt;if(Ft)return!0;var Dt=St&&He||Bt&&Ne;return Dt}},Ht=function(X){var Q=et(X.top,X.bottom),ae=et(X.left,X.right);return function(_e){var Le=Q(_e.top)&&Q(_e.bottom)&&ae(_e.left)&&ae(_e.right);return Le}},_n={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},vn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},fn=function(X){return function(Q){var ae=et(Q.top,Q.bottom),_e=et(Q.left,Q.right);return function(Le){return X===_n?ae(Le.top)&&ae(Le.bottom):_e(Le.left)&&_e(Le.right)}}},Gn=function(Q,ae){var _e=ae.frame?ae.frame.scroll.diff.displacement:ke;return jt(Q,_e)},wn=function(Q,ae,_e){return ae.subject.active?_e(ae.subject.active)(Q):!1},rn=function(Q,ae,_e){return _e(ae)(Q)},Qn=function(Q){var ae=Q.target,_e=Q.destination,Le=Q.viewport,Ne=Q.withDroppableDisplacement,He=Q.isVisibleThroughFrameFn,Ke=Ne?Gn(ae,_e):ae;return wn(Ke,_e,He)&&rn(Ke,Le,He)},Zn=function(Q){return Qn(Object(b.a)({},Q,{isVisibleThroughFrameFn:Mt}))},rr=function(Q){return Qn(Object(b.a)({},Q,{isVisibleThroughFrameFn:Ht}))},$n=function(Q){return Qn(Object(b.a)({},Q,{isVisibleThroughFrameFn:fn(Q.destination.axis)}))},Ar=function(Q,ae,_e){if(typeof _e=="boolean")return _e;if(!ae)return!0;var Le=ae.invisible,Ne=ae.visible;if(Le[Q])return!1;var He=Ne[Q];return He?He.shouldAnimate:!0};function pr(X,Q){var ae=X.page.marginBox,_e={top:Q.point.y,right:0,bottom:0,left:Q.point.x};return t(a(ae,_e))}function on(X){var Q=X.afterDragging,ae=X.destination,_e=X.displacedBy,Le=X.viewport,Ne=X.forceShouldAnimate,He=X.last;return Q.reduce(function(St,Bt){var Ft=pr(Bt,_e),Dt=Bt.descriptor.id;St.all.push(Dt);var Ot=Zn({target:Ft,destination:ae,viewport:Le,withDroppableDisplacement:!0});if(!Ot)return St.invisible[Bt.descriptor.id]=!0,St;var Ut=Ar(Dt,He,Ne),pn={draggableId:Dt,shouldAnimate:Ut};return St.visible[Dt]=pn,St},{all:[],visible:{},invisible:{}})}function Zt(X,Q){if(!X.length)return 0;var ae=X[X.length-1].descriptor.index;return Q.inHomeList?ae:ae+1}function An(X){var Q=X.insideDestination,ae=X.inHomeList,_e=X.displacedBy,Le=X.destination,Ne=Zt(Q,{inHomeList:ae});return{displaced:xt,displacedBy:_e,at:{type:"REORDER",destination:{droppableId:Le.descriptor.id,index:Ne}}}}function jr(X){var Q=X.draggable,ae=X.insideDestination,_e=X.destination,Le=X.viewport,Ne=X.displacedBy,He=X.last,Ke=X.index,St=X.forceShouldAnimate,Bt=bt(Q,_e);if(Ke==null)return An({insideDestination:ae,inHomeList:Bt,displacedBy:Ne,destination:_e});var Ft=mt(ae,function(fr){return fr.descriptor.index===Ke});if(!Ft)return An({insideDestination:ae,inHomeList:Bt,displacedBy:Ne,destination:_e});var Dt=De(Q,ae),Ot=ae.indexOf(Ft),Ut=Dt.slice(Ot),pn=on({afterDragging:Ut,destination:_e,displacedBy:Ne,last:He,viewport:Le.frame,forceShouldAnimate:St});return{displaced:pn,displacedBy:Ne,at:{type:"REORDER",destination:{droppableId:_e.descriptor.id,index:Ke}}}}function Ln(X,Q){return Boolean(Q.effected[X])}var qn=function(X){var Q=X.isMovingForward,ae=X.destination,_e=X.draggables,Le=X.combine,Ne=X.afterCritical;if(!ae.isCombineEnabled)return null;var He=Le.draggableId,Ke=_e[He],St=Ke.descriptor.index,Bt=Ln(He,Ne);return Bt?Q?St:St-1:Q?St+1:St},Un=function(X){var Q=X.isMovingForward,ae=X.isInHomeList,_e=X.insideDestination,Le=X.location;if(!_e.length)return null;var Ne=Le.index,He=Q?Ne+1:Ne-1,Ke=_e[0].descriptor.index,St=_e[_e.length-1].descriptor.index,Bt=ae?St:St+1;return He<Ke||He>Bt?null:He},pe=function(X){var Q=X.isMovingForward,ae=X.isInHomeList,_e=X.draggable,Le=X.draggables,Ne=X.destination,He=X.insideDestination,Ke=X.previousImpact,St=X.viewport,Bt=X.afterCritical,Ft=Ke.at;if(Ft||q(!1),Ft.type==="REORDER"){var Dt=Un({isMovingForward:Q,isInHomeList:ae,location:Ft.destination,insideDestination:He});return Dt==null?null:jr({draggable:_e,insideDestination:He,destination:Ne,viewport:St,last:Ke.displaced,displacedBy:Ke.displacedBy,index:Dt})}var Ot=qn({isMovingForward:Q,destination:Ne,displaced:Ke.displaced,draggables:Le,combine:Ft.combine,afterCritical:Bt});return Ot==null?null:jr({draggable:_e,insideDestination:He,destination:Ne,viewport:St,last:Ke.displaced,displacedBy:Ke.displacedBy,index:Ot})},z=function(X){var Q=X.displaced,ae=X.afterCritical,_e=X.combineWith,Le=X.displacedBy,Ne=Boolean(Q.visible[_e]||Q.invisible[_e]);return Ln(_e,ae)?Ne?ke:Et(Le.point):Ne?Le.point:ke},Z=function(X){var Q=X.afterCritical,ae=X.impact,_e=X.draggables,Le=nt(ae);Le||q(!1);var Ne=Le.draggableId,He=_e[Ne].page.borderBox.center,Ke=z({displaced:ae.displaced,afterCritical:Q,combineWith:Ne,displacedBy:ae.displacedBy});return rt(He,Ke)},oe=function(Q,ae){return ae.margin[Q.start]+ae.borderBox[Q.size]/2},xe=function(Q,ae){return ae.margin[Q.end]+ae.borderBox[Q.size]/2},he=function(Q,ae,_e){return ae[Q.crossAxisStart]+_e.margin[Q.crossAxisStart]+_e.borderBox[Q.crossAxisSize]/2},lt=function(Q){var ae=Q.axis,_e=Q.moveRelativeTo,Le=Q.isMoving;return Ct(ae.line,_e.marginBox[ae.end]+oe(ae,Le),he(ae,_e.marginBox,Le))},an=function(Q){var ae=Q.axis,_e=Q.moveRelativeTo,Le=Q.isMoving;return Ct(ae.line,_e.marginBox[ae.start]-xe(ae,Le),he(ae,_e.marginBox,Le))},Nn=function(Q){var ae=Q.axis,_e=Q.moveInto,Le=Q.isMoving;return Ct(ae.line,_e.contentBox[ae.start]+oe(ae,Le),he(ae,_e.contentBox,Le))},Yn=function(X){var Q=X.impact,ae=X.draggable,_e=X.draggables,Le=X.droppable,Ne=X.afterCritical,He=je(Le.descriptor.id,_e),Ke=ae.page,St=Le.axis;if(!He.length)return Nn({axis:St,moveInto:Le.page,isMoving:Ke});var Bt=Q.displaced,Ft=Q.displacedBy,Dt=Bt.all[0];if(Dt){var Ot=_e[Dt];if(Ln(Dt,Ne))return an({axis:St,moveRelativeTo:Ot.page,isMoving:Ke});var Ut=w(Ot.page,Ft.point);return an({axis:St,moveRelativeTo:Ut,isMoving:Ke})}var pn=He[He.length-1];if(pn.descriptor.id===ae.descriptor.id)return Ke.borderBox.center;if(Ln(pn.descriptor.id,Ne)){var fr=w(pn.page,Et(Ne.displacedBy.point));return lt({axis:St,moveRelativeTo:fr,isMoving:Ke})}return lt({axis:St,moveRelativeTo:pn.page,isMoving:Ke})},tn=function(X,Q){var ae=X.frame;return ae?rt(Q,ae.scroll.diff.displacement):Q},Cn=function(Q){var ae=Q.impact,_e=Q.draggable,Le=Q.droppable,Ne=Q.draggables,He=Q.afterCritical,Ke=_e.page.borderBox.center,St=ae.at;return Le&&St?St.type==="REORDER"?Yn({impact:ae,draggable:_e,draggables:Ne,droppable:Le,afterCritical:He}):Z({impact:ae,draggables:Ne,afterCritical:He}):Ke},Jn=function(X){var Q=Cn(X),ae=X.droppable,_e=ae?tn(ae,Q):Q;return _e},$r=function(X,Q){var ae=ot(Q,X.scroll.initial),_e=Et(ae),Le=t({top:Q.y,bottom:Q.y+X.frame.height,left:Q.x,right:Q.x+X.frame.width}),Ne={frame:Le,scroll:{initial:X.scroll.initial,max:X.scroll.max,current:Q,diff:{value:ae,displacement:_e}}};return Ne};function ga(X,Q){return X.map(function(ae){return Q[ae]})}function pa(X,Q){for(var ae=0;ae<Q.length;ae++){var _e=Q[ae].visible[X];if(_e)return _e}return null}var mr=function(X){var Q=X.impact,ae=X.viewport,_e=X.destination,Le=X.draggables,Ne=X.maxScrollChange,He=$r(ae,rt(ae.scroll.current,Ne)),Ke=_e.frame?Me(_e,rt(_e.frame.scroll.current,Ne)):_e,St=Q.displaced,Bt=on({afterDragging:ga(St.all,Le),destination:_e,displacedBy:Q.displacedBy,viewport:He.frame,last:St,forceShouldAnimate:!1}),Ft=on({afterDragging:ga(St.all,Le),destination:Ke,displacedBy:Q.displacedBy,viewport:ae.frame,last:St,forceShouldAnimate:!1}),Dt={},Ot={},Ut=[St,Bt,Ft];St.all.forEach(function(fr){var _r=pa(fr,Ut);if(_r){Ot[fr]=_r;return}Dt[fr]=!0});var pn=Object(b.a)({},Q,{displaced:{all:St.all,invisible:Dt,visible:Ot}});return pn},za=function(X,Q){return rt(X.scroll.diff.displacement,Q)},ja=function(X){var Q=X.pageBorderBoxCenter,ae=X.draggable,_e=X.viewport,Le=za(_e,Q),Ne=ot(Le,ae.page.borderBox.center);return rt(ae.client.borderBox.center,Ne)},Ra=function(X){var Q=X.draggable,ae=X.destination,_e=X.newPageBorderBoxCenter,Le=X.viewport,Ne=X.withDroppableDisplacement,He=X.onlyOnMainAxis,Ke=He===void 0?!1:He,St=ot(_e,Q.page.borderBox.center),Bt=jt(Q.page.borderBox,St),Ft={target:Bt,destination:ae,withDroppableDisplacement:Ne,viewport:Le};return Ke?$n(Ft):rr(Ft)},Ha=function(X){var Q=X.isMovingForward,ae=X.draggable,_e=X.destination,Le=X.draggables,Ne=X.previousImpact,He=X.viewport,Ke=X.previousPageBorderBoxCenter,St=X.previousClientSelection,Bt=X.afterCritical;if(!_e.isEnabled)return null;var Ft=je(_e.descriptor.id,Le),Dt=bt(ae,_e),Ot=Fe({isMovingForward:Q,draggable:ae,destination:_e,insideDestination:Ft,previousImpact:Ne})||pe({isMovingForward:Q,isInHomeList:Dt,draggable:ae,draggables:Le,destination:_e,insideDestination:Ft,previousImpact:Ne,viewport:He,afterCritical:Bt});if(!Ot)return null;var Ut=Jn({impact:Ot,draggable:ae,droppable:_e,draggables:Le,afterCritical:Bt}),pn=Ra({draggable:ae,destination:_e,newPageBorderBoxCenter:Ut,viewport:He.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(pn){var fr=ja({pageBorderBoxCenter:Ut,draggable:ae,viewport:He});return{clientSelection:fr,impact:Ot,scrollJumpRequest:null}}var _r=ot(Ut,Ke),Nr=mr({impact:Ot,viewport:He,destination:_e,draggables:Le,maxScrollChange:_r});return{clientSelection:St,impact:Nr,scrollJumpRequest:_r}},Sa=function(Q){var ae=Q.subject.active;return ae||q(!1),ae},Ja=function(X){var Q=X.isMovingForward,ae=X.pageBorderBoxCenter,_e=X.source,Le=X.droppables,Ne=X.viewport,He=_e.subject.active;if(!He)return null;var Ke=_e.axis,St=et(He[Ke.start],He[Ke.end]),Bt=Tt(Le).filter(function(Dt){return Dt!==_e}).filter(function(Dt){return Dt.isEnabled}).filter(function(Dt){return Boolean(Dt.subject.active)}).filter(function(Dt){return Mt(Ne.frame)(Sa(Dt))}).filter(function(Dt){var Ot=Sa(Dt);return Q?He[Ke.crossAxisEnd]<Ot[Ke.crossAxisEnd]:Ot[Ke.crossAxisStart]<He[Ke.crossAxisStart]}).filter(function(Dt){var Ot=Sa(Dt),Ut=et(Ot[Ke.start],Ot[Ke.end]);return St(Ot[Ke.start])||St(Ot[Ke.end])||Ut(He[Ke.start])||Ut(He[Ke.end])}).sort(function(Dt,Ot){var Ut=Sa(Dt)[Ke.crossAxisStart],pn=Sa(Ot)[Ke.crossAxisStart];return Q?Ut-pn:pn-Ut}).filter(function(Dt,Ot,Ut){return Sa(Dt)[Ke.crossAxisStart]===Sa(Ut[0])[Ke.crossAxisStart]});if(!Bt.length)return null;if(Bt.length===1)return Bt[0];var Ft=Bt.filter(function(Dt){var Ot=et(Sa(Dt)[Ke.start],Sa(Dt)[Ke.end]);return Ot(ae[Ke.line])});return Ft.length===1?Ft[0]:Ft.length>1?Ft.sort(function(Dt,Ot){return Sa(Dt)[Ke.start]-Sa(Ot)[Ke.start]})[0]:Bt.sort(function(Dt,Ot){var Ut=Qe(ae,ht(Sa(Dt))),pn=Qe(ae,ht(Sa(Ot)));return Ut!==pn?Ut-pn:Sa(Dt)[Ke.start]-Sa(Ot)[Ke.start]})[0]},ka=function(Q,ae){var _e=Q.page.borderBox.center;return Ln(Q.descriptor.id,ae)?ot(_e,ae.displacedBy.point):_e},li=function(Q,ae){var _e=Q.page.borderBox;return Ln(Q.descriptor.id,ae)?jt(_e,Et(ae.displacedBy.point)):_e},oi=function(X){var Q=X.pageBorderBoxCenter,ae=X.viewport,_e=X.destination,Le=X.insideDestination,Ne=X.afterCritical,He=Le.filter(function(Ke){return rr({target:li(Ke,Ne),destination:_e,viewport:ae.frame,withDroppableDisplacement:!0})}).sort(function(Ke,St){var Bt=wt(Q,tn(_e,ka(Ke,Ne))),Ft=wt(Q,tn(_e,ka(St,Ne)));return Bt<Ft?-1:Ft<Bt?1:Ke.descriptor.index-St.descriptor.index});return He[0]||null},ua=O(function(Q,ae){var _e=ae[Q.line];return{value:_e,point:Ct(Q.line,_e)}}),fa=function(Q,ae,_e){var Le=Q.axis;if(Q.descriptor.mode==="virtual")return Ct(Le.line,ae[Le.line]);var Ne=Q.subject.page.contentBox[Le.size],He=je(Q.descriptor.id,_e),Ke=He.reduce(function(Ft,Dt){return Ft+Dt.client.marginBox[Le.size]},0),St=Ke+ae[Le.line],Bt=St-Ne;return Bt<=0?null:Ct(Le.line,Bt)},oa=function(Q,ae){return Object(b.a)({},Q,{scroll:Object(b.a)({},Q.scroll,{max:ae})})},ye=function(Q,ae,_e){var Le=Q.frame;bt(ae,Q)&&q(!1),Q.subject.withPlaceholder&&q(!1);var Ne=ua(Q.axis,ae.displaceBy).point,He=fa(Q,Ne,_e),Ke={placeholderSize:Ne,increasedBy:He,oldFrameMaxScroll:Q.frame?Q.frame.scroll.max:null};if(!Le){var St=Te({page:Q.subject.page,withPlaceholder:Ke,axis:Q.axis,frame:Q.frame});return Object(b.a)({},Q,{subject:St})}var Bt=He?rt(Le.scroll.max,He):Le.scroll.max,Ft=oa(Le,Bt),Dt=Te({page:Q.subject.page,withPlaceholder:Ke,axis:Q.axis,frame:Ft});return Object(b.a)({},Q,{subject:Dt,frame:Ft})},st=function(Q){var ae=Q.subject.withPlaceholder;ae||q(!1);var _e=Q.frame;if(!_e){var Le=Te({page:Q.subject.page,axis:Q.axis,frame:null,withPlaceholder:null});return Object(b.a)({},Q,{subject:Le})}var Ne=ae.oldFrameMaxScroll;Ne||q(!1);var He=oa(_e,Ne),Ke=Te({page:Q.subject.page,axis:Q.axis,frame:He,withPlaceholder:null});return Object(b.a)({},Q,{subject:Ke,frame:He})},It=function(X){var Q=X.previousPageBorderBoxCenter,ae=X.moveRelativeTo,_e=X.insideDestination,Le=X.draggable,Ne=X.draggables,He=X.destination,Ke=X.viewport,St=X.afterCritical;if(!ae){if(_e.length)return null;var Bt={displaced:xt,displacedBy:dt,at:{type:"REORDER",destination:{droppableId:He.descriptor.id,index:0}}},Ft=Jn({impact:Bt,draggable:Le,droppable:He,draggables:Ne,afterCritical:St}),Dt=bt(Le,He)?He:ye(He,Le,Ne),Ot=Ra({draggable:Le,destination:Dt,newPageBorderBoxCenter:Ft,viewport:Ke.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Ot?Bt:null}var Ut=Boolean(Q[He.axis.line]<=ae.page.borderBox.center[He.axis.line]),pn=function(){var _r=ae.descriptor.index;return ae.descriptor.id===Le.descriptor.id||Ut?_r:_r+1}(),fr=ua(He.axis,Le.displaceBy);return jr({draggable:Le,insideDestination:_e,destination:He,viewport:Ke,displacedBy:fr,last:xt,index:pn})},At=function(X){var Q=X.isMovingForward,ae=X.previousPageBorderBoxCenter,_e=X.draggable,Le=X.isOver,Ne=X.draggables,He=X.droppables,Ke=X.viewport,St=X.afterCritical,Bt=Ja({isMovingForward:Q,pageBorderBoxCenter:ae,source:Le,droppables:He,viewport:Ke});if(!Bt)return null;var Ft=je(Bt.descriptor.id,Ne),Dt=oi({pageBorderBoxCenter:ae,viewport:Ke,destination:Bt,insideDestination:Ft,afterCritical:St}),Ot=It({previousPageBorderBoxCenter:ae,destination:Bt,draggable:_e,draggables:Ne,moveRelativeTo:Dt,insideDestination:Ft,viewport:Ke,afterCritical:St});if(!Ot)return null;var Ut=Jn({impact:Ot,draggable:_e,droppable:Bt,draggables:Ne,afterCritical:St}),pn=ja({pageBorderBoxCenter:Ut,draggable:_e,viewport:Ke});return{clientSelection:pn,impact:Ot,scrollJumpRequest:null}},Wt=function(X){var Q=X.at;return Q?Q.type==="REORDER"?Q.destination.droppableId:Q.combine.droppableId:null},Nt=function(Q,ae){var _e=Wt(Q);return _e?ae[_e]:null},Xt=function(X){var Q=X.state,ae=X.type,_e=Nt(Q.impact,Q.dimensions.droppables),Le=Boolean(_e),Ne=Q.dimensions.droppables[Q.critical.droppable.id],He=_e||Ne,Ke=He.axis.direction,St=Ke==="vertical"&&(ae==="MOVE_UP"||ae==="MOVE_DOWN")||Ke==="horizontal"&&(ae==="MOVE_LEFT"||ae==="MOVE_RIGHT");if(St&&!Le)return null;var Bt=ae==="MOVE_DOWN"||ae==="MOVE_RIGHT",Ft=Q.dimensions.draggables[Q.critical.draggable.id],Dt=Q.current.page.borderBoxCenter,Ot=Q.dimensions,Ut=Ot.draggables,pn=Ot.droppables;return St?Ha({isMovingForward:Bt,previousPageBorderBoxCenter:Dt,draggable:Ft,destination:He,draggables:Ut,viewport:Q.viewport,previousClientSelection:Q.current.client.selection,previousImpact:Q.impact,afterCritical:Q.afterCritical}):At({isMovingForward:Bt,previousPageBorderBoxCenter:Dt,draggable:Ft,isOver:He,draggables:Ut,droppables:pn,viewport:Q.viewport,afterCritical:Q.afterCritical})};function en(X){return X.phase==="DRAGGING"||X.phase==="COLLECTING"}function yn(X){var Q=et(X.top,X.bottom),ae=et(X.left,X.right);return function(Le){return Q(Le.y)&&ae(Le.x)}}function mn(X,Q){return X.left<Q.right&&X.right>Q.left&&X.top<Q.bottom&&X.bottom>Q.top}function jn(X){var Q=X.pageBorderBox,ae=X.draggable,_e=X.candidates,Le=ae.page.borderBox.center,Ne=_e.map(function(He){var Ke=He.axis,St=Ct(He.axis.line,Q.center[Ke.line],He.page.borderBox.center[Ke.crossAxisLine]);return{id:He.descriptor.id,distance:wt(Le,St)}}).sort(function(He,Ke){return Ke.distance-He.distance});return Ne[0]?Ne[0].id:null}function Dn(X){var Q=X.pageBorderBox,ae=X.draggable,_e=X.droppables,Le=Tt(_e).filter(function(Ne){if(!Ne.isEnabled)return!1;var He=Ne.subject.active;if(!He)return!1;if(!mn(Q,He))return!1;if(yn(He)(Q.center))return!0;var Ke=Ne.axis,St=He.center[Ke.crossAxisLine],Bt=Q[Ke.crossAxisStart],Ft=Q[Ke.crossAxisEnd],Dt=et(He[Ke.crossAxisStart],He[Ke.crossAxisEnd]),Ot=Dt(Bt),Ut=Dt(Ft);return!Ot&&!Ut?!0:Ot?Bt<St:Ft>St});return Le.length?Le.length===1?Le[0].descriptor.id:jn({pageBorderBox:Q,draggable:ae,candidates:Le}):null}var nn=function(Q,ae){return t(jt(Q,ae))},Mn=function(X,Q){var ae=X.frame;return ae?nn(Q,ae.scroll.diff.value):Q};function bn(X){var Q=X.displaced,ae=X.id;return Boolean(Q.visible[ae]||Q.invisible[ae])}function Bn(X){var Q=X.draggable,ae=X.closest,_e=X.inHomeList;return ae?_e&&ae.descriptor.index>Q.descriptor.index?ae.descriptor.index-1:ae.descriptor.index:null}var Pn=function(X){var Q=X.pageBorderBoxWithDroppableScroll,ae=X.draggable,_e=X.destination,Le=X.insideDestination,Ne=X.last,He=X.viewport,Ke=X.afterCritical,St=_e.axis,Bt=ua(_e.axis,ae.displaceBy),Ft=Bt.value,Dt=Q[St.start],Ot=Q[St.end],Ut=De(ae,Le),pn=mt(Ut,function(_r){var Nr=_r.descriptor.id,Kr=_r.page.borderBox.center[St.line],na=Ln(Nr,Ke),Wr=bn({displaced:Ne,id:Nr});return na?Wr?Ot<=Kr:Dt<Kr-Ft:Wr?Ot<=Kr+Ft:Dt<Kr}),fr=Bn({draggable:ae,closest:pn,inHomeList:bt(ae,_e)});return jr({draggable:ae,insideDestination:Le,destination:_e,viewport:He,last:Ne,displacedBy:Bt,index:fr})},er=4,vr=function(X){var Q=X.draggable,ae=X.pageBorderBoxWithDroppableScroll,_e=X.previousImpact,Le=X.destination,Ne=X.insideDestination,He=X.afterCritical;if(!Le.isCombineEnabled)return null;var Ke=Le.axis,St=ua(Le.axis,Q.displaceBy),Bt=St.value,Ft=ae[Ke.start],Dt=ae[Ke.end],Ot=De(Q,Ne),Ut=mt(Ot,function(fr){var _r=fr.descriptor.id,Nr=fr.page.borderBox,Kr=Nr[Ke.size],na=Kr/er,Wr=Ln(_r,He),Ma=bn({displaced:_e.displaced,id:_r});return Wr?Ma?Dt>Nr[Ke.start]+na&&Dt<Nr[Ke.end]-na:Ft>Nr[Ke.start]-Bt+na&&Ft<Nr[Ke.end]-Bt-na:Ma?Dt>Nr[Ke.start]+Bt+na&&Dt<Nr[Ke.end]+Bt-na:Ft>Nr[Ke.start]+na&&Ft<Nr[Ke.end]-na});if(!Ut)return null;var pn={displacedBy:St,displaced:_e.displaced,at:{type:"COMBINE",combine:{draggableId:Ut.descriptor.id,droppableId:Le.descriptor.id}}};return pn},Br=function(X){var Q=X.pageOffset,ae=X.draggable,_e=X.draggables,Le=X.droppables,Ne=X.previousImpact,He=X.viewport,Ke=X.afterCritical,St=nn(ae.page.borderBox,Q),Bt=Dn({pageBorderBox:St,draggable:ae,droppables:Le});if(!Bt)return kt;var Ft=Le[Bt],Dt=je(Ft.descriptor.id,_e),Ot=Mn(Ft,St);return vr({pageBorderBoxWithDroppableScroll:Ot,draggable:ae,previousImpact:Ne,destination:Ft,insideDestination:Dt,afterCritical:Ke})||Pn({pageBorderBoxWithDroppableScroll:Ot,draggable:ae,destination:Ft,insideDestination:Dt,last:Ne.displaced,viewport:He,afterCritical:Ke})},Sn=function(X,Q){var ae;return Object(b.a)({},X,(ae={},ae[Q.descriptor.id]=Q,ae))},Yt=function(Q){var ae=Q.previousImpact,_e=Q.impact,Le=Q.droppables,Ne=Wt(ae),He=Wt(_e);if(!Ne)return Le;if(Ne===He)return Le;var Ke=Le[Ne];if(!Ke.subject.withPlaceholder)return Le;var St=st(Ke);return Sn(Le,St)},cn=function(X){var Q=X.draggable,ae=X.draggables,_e=X.droppables,Le=X.previousImpact,Ne=X.impact,He=Yt({previousImpact:Le,impact:Ne,droppables:_e}),Ke=Wt(Ne);if(!Ke)return He;var St=_e[Ke];if(bt(Q,St))return He;if(St.subject.withPlaceholder)return He;var Bt=ye(St,Q,ae);return Sn(He,Bt)},Rn=function(X){var Q=X.state,ae=X.clientSelection,_e=X.dimensions,Le=X.viewport,Ne=X.impact,He=X.scrollJumpRequest,Ke=Le||Q.viewport,St=_e||Q.dimensions,Bt=ae||Q.current.client.selection,Ft=ot(Bt,Q.initial.client.selection),Dt={offset:Ft,selection:Bt,borderBoxCenter:rt(Q.initial.client.borderBoxCenter,Ft)},Ot={selection:rt(Dt.selection,Ke.scroll.current),borderBoxCenter:rt(Dt.borderBoxCenter,Ke.scroll.current),offset:rt(Dt.offset,Ke.scroll.diff.value)},Ut={client:Dt,page:Ot};if(Q.phase==="COLLECTING")return Object(b.a)({phase:"COLLECTING"},Q,{dimensions:St,viewport:Ke,current:Ut});var pn=St.draggables[Q.critical.draggable.id],fr=Ne||Br({pageOffset:Ot.offset,draggable:pn,draggables:St.draggables,droppables:St.droppables,previousImpact:Q.impact,viewport:Ke,afterCritical:Q.afterCritical}),_r=cn({draggable:pn,impact:fr,previousImpact:Q.impact,draggables:St.draggables,droppables:St.droppables}),Nr=Object(b.a)({},Q,{current:Ut,dimensions:{draggables:St.draggables,droppables:_r},impact:fr,viewport:Ke,scrollJumpRequest:He||null,forceShouldAnimate:He?!1:null});return Nr};function qt(X,Q){return X.map(function(ae){return Q[ae]})}var On=function(X){var Q=X.impact,ae=X.viewport,_e=X.draggables,Le=X.destination,Ne=X.forceShouldAnimate,He=Q.displaced,Ke=qt(He.all,_e),St=on({afterDragging:Ke,destination:Le,displacedBy:Q.displacedBy,viewport:ae.frame,forceShouldAnimate:Ne,last:He});return Object(b.a)({},Q,{displaced:St})},gn=function(X){var Q=X.impact,ae=X.draggable,_e=X.droppable,Le=X.draggables,Ne=X.viewport,He=X.afterCritical,Ke=Jn({impact:Q,draggable:ae,draggables:Le,droppable:_e,afterCritical:He});return ja({pageBorderBoxCenter:Ke,draggable:ae,viewport:Ne})},In=function(X){var Q=X.state,ae=X.dimensions,_e=X.viewport;Q.movementMode==="SNAP"||q(!1);var Le=Q.impact,Ne=_e||Q.viewport,He=ae||Q.dimensions,Ke=He.draggables,St=He.droppables,Bt=Ke[Q.critical.draggable.id],Ft=Wt(Le);Ft||q(!1);var Dt=St[Ft],Ot=On({impact:Le,viewport:Ne,destination:Dt,draggables:Ke}),Ut=gn({impact:Ot,draggable:Bt,droppable:Dt,draggables:Ke,viewport:Ne,afterCritical:Q.afterCritical});return Rn({impact:Ot,clientSelection:Ut,state:Q,dimensions:He,viewport:Ne})},Fn=function(X){return{index:X.index,droppableId:X.droppableId}},ur=function(X){var Q=X.draggable,ae=X.home,_e=X.draggables,Le=X.viewport,Ne=ua(ae.axis,Q.displaceBy),He=je(ae.descriptor.id,_e),Ke=He.indexOf(Q);Ke!==-1||q(!1);var St=He.slice(Ke+1),Bt=St.reduce(function(Ut,pn){return Ut[pn.descriptor.id]=!0,Ut},{}),Ft={inVirtualList:ae.descriptor.mode==="virtual",displacedBy:Ne,effected:Bt},Dt=on({afterDragging:St,destination:ae,displacedBy:Ne,last:null,viewport:Le.frame,forceShouldAnimate:!1}),Ot={displaced:Dt,displacedBy:Ne,at:{type:"REORDER",destination:Fn(Q.descriptor)}};return{impact:Ot,afterCritical:Ft}},ar=function(X,Q){return{draggables:X.draggables,droppables:Sn(X.droppables,Q)}},Rr=function(Q){},Ir=function(Q){},tr=function(X){var Q=X.draggable,ae=X.offset,_e=X.initialWindowScroll,Le=w(Q.client,ae),Ne=C(Le,_e),He=Object(b.a)({},Q,{placeholder:Object(b.a)({},Q.placeholder,{client:Le}),client:Le,page:Ne});return He},Dr=function(X){var Q=X.frame;return Q||q(!1),Q},br=function(X){var Q=X.additions,ae=X.updatedDroppables,_e=X.viewport,Le=_e.scroll.diff.value;return Q.map(function(Ne){var He=Ne.descriptor.droppableId,Ke=ae[He],St=Dr(Ke),Bt=St.scroll.diff.value,Ft=rt(Le,Bt),Dt=tr({draggable:Ne,offset:Ft,initialWindowScroll:_e.scroll.initial});return Dt})},Gr=function(X){var Q=X.state,ae=X.published;Rr();var _e=ae.modified.map(function(na){var Wr=Q.dimensions.droppables[na.droppableId],Ma=Me(Wr,na.scroll);return Ma}),Le=Object(b.a)({},Q.dimensions.droppables,{},Gt(_e)),Ne=dn(br({additions:ae.additions,updatedDroppables:Le,viewport:Q.viewport})),He=Object(b.a)({},Q.dimensions.draggables,{},Ne);ae.removals.forEach(function(na){delete He[na]});var Ke={droppables:Le,draggables:He},St=Wt(Q.impact),Bt=St?Ke.droppables[St]:null,Ft=Ke.draggables[Q.critical.draggable.id],Dt=Ke.droppables[Q.critical.droppable.id],Ot=ur({draggable:Ft,home:Dt,draggables:He,viewport:Q.viewport}),Ut=Ot.impact,pn=Ot.afterCritical,fr=Bt&&Bt.isCombineEnabled?Q.impact:Ut,_r=Br({pageOffset:Q.current.page.offset,draggable:Ke.draggables[Q.critical.draggable.id],draggables:Ke.draggables,droppables:Ke.droppables,previousImpact:fr,viewport:Q.viewport,afterCritical:pn});Ir();var Nr=Object(b.a)({phase:"DRAGGING"},Q,{phase:"DRAGGING",impact:_r,onLiftImpact:Ut,dimensions:Ke,afterCritical:pn,forceShouldAnimate:!1});if(Q.phase==="COLLECTING")return Nr;var Kr=Object(b.a)({phase:"DROP_PENDING"},Nr,{phase:"DROP_PENDING",reason:Q.reason,isWaiting:!1});return Kr},Lr=function(Q){return Q.movementMode==="SNAP"},qr=function(Q,ae,_e){var Le=ar(Q.dimensions,ae);return!Lr(Q)||_e?Rn({state:Q,dimensions:Le}):In({state:Q,dimensions:Le})};function sr(X){return X.isDragging&&X.movementMode==="SNAP"?Object(b.a)({phase:"DRAGGING"},X,{scrollJumpRequest:null}):X}var Kt={phase:"IDLE",completed:null,shouldFlush:!1},Qt=function(X,Q){if(X===void 0&&(X=Kt),Q.type==="FLUSH")return Object(b.a)({},Kt,{shouldFlush:!0});if(Q.type==="INITIAL_PUBLISH"){X.phase==="IDLE"||q(!1);var ae=Q.payload,_e=ae.critical,Le=ae.clientSelection,Ne=ae.viewport,He=ae.dimensions,Ke=ae.movementMode,St=He.draggables[_e.draggable.id],Bt=He.droppables[_e.droppable.id],Ft={selection:Le,borderBoxCenter:St.client.borderBox.center,offset:ke},Dt={client:Ft,page:{selection:rt(Ft.selection,Ne.scroll.initial),borderBoxCenter:rt(Ft.selection,Ne.scroll.initial),offset:rt(Ft.selection,Ne.scroll.diff.value)}},Ot=Tt(He.droppables).every(function(ea){return!ea.isFixedOnPage}),Ut=ur({draggable:St,home:Bt,draggables:He.draggables,viewport:Ne}),pn=Ut.impact,fr=Ut.afterCritical,_r={phase:"DRAGGING",isDragging:!0,critical:_e,movementMode:Ke,dimensions:He,initial:Dt,current:Dt,isWindowScrollAllowed:Ot,impact:pn,afterCritical:fr,onLiftImpact:pn,viewport:Ne,scrollJumpRequest:null,forceShouldAnimate:null};return _r}if(Q.type==="COLLECTION_STARTING"){if(X.phase==="COLLECTING"||X.phase==="DROP_PENDING")return X;X.phase==="DRAGGING"||q(!1);var Nr=Object(b.a)({phase:"COLLECTING"},X,{phase:"COLLECTING"});return Nr}if(Q.type==="PUBLISH_WHILE_DRAGGING")return X.phase==="COLLECTING"||X.phase==="DROP_PENDING"||q(!1),Gr({state:X,published:Q.payload});if(Q.type==="MOVE"){if(X.phase==="DROP_PENDING")return X;en(X)||q(!1);var Kr=Q.payload.client;return gt(Kr,X.current.client.selection)?X:Rn({state:X,clientSelection:Kr,impact:Lr(X)?X.impact:null})}if(Q.type==="UPDATE_DROPPABLE_SCROLL"){if(X.phase==="DROP_PENDING")return sr(X);if(X.phase==="COLLECTING")return sr(X);en(X)||q(!1);var na=Q.payload,Wr=na.id,Ma=na.newScroll,Aa=X.dimensions.droppables[Wr];if(!Aa)return X;var Ga=Me(Aa,Ma);return qr(X,Ga,!1)}if(Q.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(X.phase==="DROP_PENDING")return X;en(X)||q(!1);var si=Q.payload,e=si.id,u=si.isEnabled,j=X.dimensions.droppables[e];j||q(!1),j.isEnabled!==u||q(!1);var U=Object(b.a)({},j,{isEnabled:u});return qr(X,U,!0)}if(Q.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(X.phase==="DROP_PENDING")return X;en(X)||q(!1);var H=Q.payload,ee=H.id,ge=H.isCombineEnabled,Ce=X.dimensions.droppables[ee];Ce||q(!1),Ce.isCombineEnabled!==ge||q(!1);var Re=Object(b.a)({},Ce,{isCombineEnabled:ge});return qr(X,Re,!0)}if(Q.type==="MOVE_BY_WINDOW_SCROLL"){if(X.phase==="DROP_PENDING"||X.phase==="DROP_ANIMATING")return X;en(X)||q(!1),X.isWindowScrollAllowed||q(!1);var Be=Q.payload.newScroll;if(gt(X.viewport.scroll.current,Be))return sr(X);var vt=$r(X.viewport,Be);return Lr(X)?In({state:X,viewport:vt}):Rn({state:X,viewport:vt})}if(Q.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!en(X))return X;var Rt=Q.payload.maxScroll;if(gt(Rt,X.viewport.scroll.max))return X;var $t=Object(b.a)({},X.viewport,{scroll:Object(b.a)({},X.viewport.scroll,{max:Rt})});return Object(b.a)({phase:"DRAGGING"},X,{viewport:$t})}if(Q.type==="MOVE_UP"||Q.type==="MOVE_DOWN"||Q.type==="MOVE_LEFT"||Q.type==="MOVE_RIGHT"){if(X.phase==="COLLECTING"||X.phase==="DROP_PENDING")return X;X.phase==="DRAGGING"||q(!1);var zt=Xt({state:X,type:Q.type});return zt?Rn({state:X,impact:zt.impact,clientSelection:zt.clientSelection,scrollJumpRequest:zt.scrollJumpRequest}):X}if(Q.type==="DROP_PENDING"){var Tn=Q.payload.reason;X.phase==="COLLECTING"||q(!1);var Hn=Object(b.a)({phase:"DROP_PENDING"},X,{phase:"DROP_PENDING",isWaiting:!0,reason:Tn});return Hn}if(Q.type==="DROP_ANIMATE"){var nr=Q.payload,xr=nr.completed,kr=nr.dropDuration,Cr=nr.newHomeClientOffset;X.phase==="DRAGGING"||X.phase==="DROP_PENDING"||q(!1);var Vr={phase:"DROP_ANIMATING",completed:xr,dropDuration:kr,newHomeClientOffset:Cr,dimensions:X.dimensions};return Vr}if(Q.type==="DROP_COMPLETE"){var aa=Q.payload.completed;return{phase:"IDLE",completed:aa,shouldFlush:!1}}return X},Jt=function(Q){return{type:"BEFORE_INITIAL_CAPTURE",payload:Q}},Xn=function(Q){return{type:"LIFT",payload:Q}},ir=function(Q){return{type:"INITIAL_PUBLISH",payload:Q}},kn=function(Q){return{type:"PUBLISH_WHILE_DRAGGING",payload:Q}},lr=function(){return{type:"COLLECTION_STARTING",payload:null}},hr=function(Q){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Q}},cr=function(Q){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Q}},Zr=function(Q){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Q}},dr=function(Q){return{type:"MOVE",payload:Q}},la=function(Q){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Q}},Xr=function(Q){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Q}},yr=function(){return{type:"MOVE_UP",payload:null}},wr=function(){return{type:"MOVE_DOWN",payload:null}},Hr=function(){return{type:"MOVE_RIGHT",payload:null}},Yr=function(){return{type:"MOVE_LEFT",payload:null}},wa=function(){return{type:"FLUSH",payload:null}},va=function(Q){return{type:"DROP_ANIMATE",payload:Q}},Je=function(Q){return{type:"DROP_COMPLETE",payload:Q}},ct=function(Q){return{type:"DROP",payload:Q}},yt=function(Q){return{type:"DROP_PENDING",payload:Q}},at=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Pe(X){if(X.length<=1)return;for(var Q=X.map(function(Ke){return Ke.descriptor.index}),ae={},_e=1;_e<Q.length;_e++){var Le=Q[_e],Ne=Q[_e-1];Le!==Ne+1&&(ae[Le]=!0)}if(!Object.keys(ae).length)return;var He=Q.map(function(Ke){var St=Boolean(ae[Ke]);return St?"[\u{1F525}"+Ke+"]":""+Ke}).join(", ")}function ze(X,Q){if(!1)var ae}var Ie=function(X){return function(Q){var ae=Q.getState,_e=Q.dispatch;return function(Le){return function(Ne){if(Ne.type!=="LIFT"){Le(Ne);return}var He=Ne.payload,Ke=He.id,St=He.clientSelection,Bt=He.movementMode,Ft=ae();Ft.phase==="DROP_ANIMATING"&&_e(Je({completed:Ft.completed})),ae().phase==="IDLE"||q(!1),_e(wa()),_e(Jt({draggableId:Ke,movementMode:Bt}));var Dt={shouldPublishImmediately:Bt==="SNAP"},Ot={draggableId:Ke,scrollOptions:Dt},Ut=X.startPublishing(Ot),pn=Ut.critical,fr=Ut.dimensions,_r=Ut.viewport;ze(pn,fr),_e(ir({critical:pn,dimensions:fr,clientSelection:St,movementMode:Bt,viewport:_r}))}}}},$e=function(X){return function(){return function(Q){return function(ae){ae.type==="INITIAL_PUBLISH"&&X.dragging(),ae.type==="DROP_ANIMATE"&&X.dropping(ae.payload.completed.result.reason),(ae.type==="FLUSH"||ae.type==="DROP_COMPLETE")&&X.resting(),Q(ae)}}}},qe={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},pt={opacity:{drop:0,combining:.7},scale:{drop:.75}},it={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Lt=it.outOfTheWay+"s "+qe.outOfTheWay,Vt={fluid:"opacity "+Lt,snap:"transform "+Lt+", opacity "+Lt,drop:function(Q){var ae=Q+"s "+qe.drop;return"transform "+ae+", opacity "+ae},outOfTheWay:"transform "+Lt,placeholder:"height "+Lt+", width "+Lt+", margin "+Lt},hn=function(Q){return gt(Q,ke)?null:"translate("+Q.x+"px, "+Q.y+"px)"},sn={moveTo:hn,drop:function(Q,ae){var _e=hn(Q);return _e?ae?_e+" scale("+pt.scale.drop+")":_e:null}},un=it.minDropTime,ln=it.maxDropTime,Kn=ln-un,xn=1500,Ur=.6,Pr=function(X){var Q=X.current,ae=X.destination,_e=X.reason,Le=wt(Q,ae);if(Le<=0)return un;if(Le>=xn)return ln;var Ne=Le/xn,He=un+Kn*Ne,Ke=_e==="CANCEL"?He*Ur:He;return Number(Ke.toFixed(2))},Jr=function(X){var Q=X.impact,ae=X.draggable,_e=X.dimensions,Le=X.viewport,Ne=X.afterCritical,He=_e.draggables,Ke=_e.droppables,St=Wt(Q),Bt=St?Ke[St]:null,Ft=Ke[ae.descriptor.droppableId],Dt=gn({impact:Q,draggable:ae,draggables:He,afterCritical:Ne,droppable:Bt||Ft,viewport:Le}),Ot=ot(Dt,ae.client.borderBox.center);return Ot},Fr=function(X){var Q=X.draggables,ae=X.reason,_e=X.lastImpact,Le=X.home,Ne=X.viewport,He=X.onLiftImpact;if(!_e.at||ae!=="DROP"){var Ke=On({draggables:Q,impact:He,destination:Le,viewport:Ne,forceShouldAnimate:!0});return{impact:Ke,didDropInsideDroppable:!1}}if(_e.at.type==="REORDER")return{impact:_e,didDropInsideDroppable:!0};var St=Object(b.a)({},_e,{displaced:xt});return{impact:St,didDropInsideDroppable:!0}},ta=function(X){var Q=X.getState,ae=X.dispatch;return function(_e){return function(Le){if(Le.type!=="DROP"){_e(Le);return}var Ne=Q(),He=Le.payload.reason;if(Ne.phase==="COLLECTING"){ae(yt({reason:He}));return}if(Ne.phase==="IDLE")return;var Ke=Ne.phase==="DROP_PENDING"&&Ne.isWaiting;Ke&&q(!1),Ne.phase==="DRAGGING"||Ne.phase==="DROP_PENDING"||q(!1);var St=Ne.critical,Bt=Ne.dimensions,Ft=Bt.draggables[Ne.critical.draggable.id],Dt=Fr({reason:He,lastImpact:Ne.impact,afterCritical:Ne.afterCritical,onLiftImpact:Ne.onLiftImpact,home:Ne.dimensions.droppables[Ne.critical.droppable.id],viewport:Ne.viewport,draggables:Ne.dimensions.draggables}),Ot=Dt.impact,Ut=Dt.didDropInsideDroppable,pn=Ut?tt(Ot):null,fr=Ut?nt(Ot):null,_r={index:St.draggable.index,droppableId:St.droppable.id},Nr={draggableId:Ft.descriptor.id,type:Ft.descriptor.type,source:_r,reason:He,mode:Ne.movementMode,destination:pn,combine:fr},Kr=Jr({impact:Ot,draggable:Ft,dimensions:Bt,viewport:Ne.viewport,afterCritical:Ne.afterCritical}),na={critical:Ne.critical,afterCritical:Ne.afterCritical,result:Nr,impact:Ot},Wr=!gt(Ne.current.client.offset,Kr)||Boolean(Nr.combine);if(!Wr){ae(Je({completed:na}));return}var Ma=Pr({current:Ne.current.client.offset,destination:Kr,reason:He}),Aa={newHomeClientOffset:Kr,dropDuration:Ma,completed:na};ae(va(Aa))}}},zn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Or(X){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ae){if(ae.target!==window&&ae.target!==window.document)return;X()}}}function Vn(X){var Q=X.onWindowScroll;function ae(){Q(zn())}var _e=D(ae),Le=Or(_e),Ne=we;function He(){return Ne!==we}function Ke(){He()&&q(!1),Ne=be(window,[Le])}function St(){He()||q(!1),_e.cancel(),Ne(),Ne=we}return{start:Ke,stop:St,isActive:He}}var En=function(Q){return Q.type==="DROP_COMPLETE"||Q.type==="DROP_ANIMATE"||Q.type==="FLUSH"},Wn=function(X){var Q=Vn({onWindowScroll:function(_e){X.dispatch(la({newScroll:_e}))}});return function(ae){return function(_e){!Q.isActive()&&_e.type==="INITIAL_PUBLISH"&&Q.start(),Q.isActive()&&En(_e)&&Q.stop(),ae(_e)}}},zr=function(X){var Q=!1,ae=!1,_e=setTimeout(function(){ae=!0}),Le=function(He){if(Q)return;if(ae)return;Q=!0,X(He),clearTimeout(_e)};return Le.wasCalled=function(){return Q},Le},sa=function(){var X=[],Q=function(Ne){var He=Ze(X,function(Bt){return Bt.timerId===Ne});He!==-1||q(!1);var Ke=X.splice(He,1),St=Ke[0];St.callback()},ae=function(Ne){var He=setTimeout(function(){return Q(He)}),Ke={timerId:He,callback:Ne};X.push(Ke)},_e=function(){if(!X.length)return;var Ne=[].concat(X);X.length=0,Ne.forEach(function(He){clearTimeout(He.timerId),He.callback()})};return{add:ae,flush:_e}},gr=function(Q,ae){return Q==null&&ae==null?!0:Q==null||ae==null?!1:Q.droppableId===ae.droppableId&&Q.index===ae.index},ra=function(Q,ae){return Q==null&&ae==null?!0:Q==null||ae==null?!1:Q.draggableId===ae.draggableId&&Q.droppableId===ae.droppableId},Ea=function(Q,ae){if(Q===ae)return!0;var _e=Q.draggable.id===ae.draggable.id&&Q.draggable.droppableId===ae.draggable.droppableId&&Q.draggable.type===ae.draggable.type&&Q.draggable.index===ae.draggable.index,Le=Q.droppable.id===ae.droppable.id&&Q.droppable.type===ae.droppable.type;return _e&&Le},ca=function(Q,ae){Rr(),ae(),Ir()},xa=function(Q,ae){return{draggableId:Q.draggable.id,type:Q.droppable.type,source:{droppableId:Q.droppable.id,index:Q.draggable.index},mode:ae}},Tr=function(Q,ae,_e,Le){if(!Q){_e(Le(ae));return}var Ne=zr(_e),He={announce:Ne};Q(ae,He),Ne.wasCalled()||_e(Le(ae))},Er=function(X,Q){var ae=sa(),_e=null,Le=function(Ot,Ut){_e&&q(!1),ca("onBeforeCapture",function(){var pn=X().onBeforeCapture;if(pn){var fr={draggableId:Ot,mode:Ut};pn(fr)}})},Ne=function(Ot,Ut){_e&&q(!1),ca("onBeforeDragStart",function(){var pn=X().onBeforeDragStart;pn&&pn(xa(Ot,Ut))})},He=function(Ot,Ut){_e&&q(!1);var pn=xa(Ot,Ut);_e={mode:Ut,lastCritical:Ot,lastLocation:pn.source,lastCombine:null},ae.add(function(){ca("onDragStart",function(){return Tr(X().onDragStart,pn,Q,Se.onDragStart)})})},Ke=function(Ot,Ut){var pn=tt(Ut),fr=nt(Ut);_e||q(!1);var _r=!Ea(Ot,_e.lastCritical);_r&&(_e.lastCritical=Ot);var Nr=!gr(_e.lastLocation,pn);Nr&&(_e.lastLocation=pn);var Kr=!ra(_e.lastCombine,fr);if(Kr&&(_e.lastCombine=fr),!_r&&!Nr&&!Kr)return;var na=Object(b.a)({},xa(Ot,_e.mode),{combine:fr,destination:pn});ae.add(function(){ca("onDragUpdate",function(){return Tr(X().onDragUpdate,na,Q,Se.onDragUpdate)})})},St=function(){_e||q(!1),ae.flush()},Bt=function(Ot){_e||q(!1),_e=null,ca("onDragEnd",function(){return Tr(X().onDragEnd,Ot,Q,Se.onDragEnd)})},Ft=function(){if(!_e)return;var Ot=Object(b.a)({},xa(_e.lastCritical,_e.mode),{combine:null,destination:null,reason:"CANCEL"});Bt(Ot)};return{beforeCapture:Le,beforeStart:Ne,start:He,update:Ke,flush:St,drop:Bt,abort:Ft}},Mr=function(X,Q){var ae=Er(X,Q);return function(_e){return function(Le){return function(Ne){if(Ne.type==="BEFORE_INITIAL_CAPTURE"){ae.beforeCapture(Ne.payload.draggableId,Ne.payload.movementMode);return}if(Ne.type==="INITIAL_PUBLISH"){var He=Ne.payload.critical;ae.beforeStart(He,Ne.payload.movementMode),Le(Ne),ae.start(He,Ne.payload.movementMode);return}if(Ne.type==="DROP_COMPLETE"){var Ke=Ne.payload.completed.result;ae.flush(),Le(Ne),ae.drop(Ke);return}if(Le(Ne),Ne.type==="FLUSH"){ae.abort();return}var St=_e.getState();St.phase==="DRAGGING"&&ae.update(St.critical,St.impact)}}}},or=function(X){return function(Q){return function(ae){if(ae.type!=="DROP_ANIMATION_FINISHED"){Q(ae);return}var _e=X.getState();_e.phase==="DROP_ANIMATING"||q(!1),X.dispatch(Je({completed:_e.completed}))}}},da=function(X){var Q=null,ae=null;function _e(){ae&&(cancelAnimationFrame(ae),ae=null),Q&&(Q(),Q=null)}return function(Le){return function(Ne){if((Ne.type==="FLUSH"||Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATION_FINISHED")&&_e(),Le(Ne),Ne.type!=="DROP_ANIMATE")return;var He={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var St=X.getState();St.phase==="DROP_ANIMATING"&&X.dispatch(at())}};ae=requestAnimationFrame(function(){ae=null,Q=be(window,[He])})}}},ya=function(X){return function(){return function(Q){return function(ae){(ae.type==="DROP_COMPLETE"||ae.type==="FLUSH"||ae.type==="DROP_ANIMATE")&&X.stopPublishing(),Q(ae)}}}},_a=function(X){var Q=!1;return function(){return function(ae){return function(_e){if(_e.type==="INITIAL_PUBLISH"){Q=!0,X.tryRecordFocus(_e.payload.critical.draggable.id),ae(_e),X.tryRestoreFocusRecorded();return}if(ae(_e),!Q)return;if(_e.type==="FLUSH"){Q=!1,X.tryRestoreFocusRecorded();return}if(_e.type==="DROP_COMPLETE"){Q=!1;var Le=_e.payload.completed.result;Le.combine&&X.tryShiftRecord(Le.draggableId,Le.combine.draggableId),X.tryRestoreFocusRecorded()}}}}},Oa=function(Q){return Q.type==="DROP_COMPLETE"||Q.type==="DROP_ANIMATE"||Q.type==="FLUSH"},ha=function(X){return function(Q){return function(ae){return function(_e){if(Oa(_e)){X.stop(),ae(_e);return}if(_e.type==="INITIAL_PUBLISH"){ae(_e);var Le=Q.getState();Le.phase==="DRAGGING"||q(!1),X.start(Le);return}ae(_e),X.scroll(Q.getState())}}}},La=function(X){return function(Q){return function(ae){if(Q(ae),ae.type!=="PUBLISH_WHILE_DRAGGING")return;var _e=X.getState();if(_e.phase!=="DROP_PENDING")return;if(_e.isWaiting)return;X.dispatch(ct({reason:_e.reason}))}}},Na=y.d,Ba=function(X){var Q=X.dimensionMarshal,ae=X.focusMarshal,_e=X.styleMarshal,Le=X.getResponders,Ne=X.announce,He=X.autoScroller;return Object(y.e)(Qt,Na(Object(y.a)($e(_e),ya(Q),Ie(Q),ta,or,da,La,ha(He),Wn,_a(ae),Mr(Le,Ne))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(X){var Q=X.registry,ae=X.callbacks,_e=ni(),Le=null,Ne=function(){if(Le)return;ae.collectionStarting(),Le=requestAnimationFrame(function(){Le=null,Rr();var Ft=_e,Dt=Ft.additions,Ot=Ft.removals,Ut=Ft.modified,pn=Object.keys(Dt).map(function(Nr){return Q.draggable.getById(Nr).getDimension(ke)}).sort(function(Nr,Kr){return Nr.descriptor.index-Kr.descriptor.index}),fr=Object.keys(Ut).map(function(Nr){var Kr=Q.droppable.getById(Nr),na=Kr.callbacks.getScrollWhileDragging();return{droppableId:Nr,scroll:na}}),_r={additions:pn,removals:Object.keys(Ot),modified:fr};_e=ni(),Ir(),ae.publish(_r)})},He=function(Ft){var Dt=Ft.descriptor.id;_e.additions[Dt]=Ft,_e.modified[Ft.descriptor.droppableId]=!0,_e.removals[Dt]&&delete _e.removals[Dt],Ne()},Ke=function(Ft){var Dt=Ft.descriptor;_e.removals[Dt.id]=!0,_e.modified[Dt.droppableId]=!0,_e.additions[Dt.id]&&delete _e.additions[Dt.id],Ne()},St=function(){if(!Le)return;cancelAnimationFrame(Le),Le=null,_e=ni()};return{add:He,remove:Ke,stop:St}}var Ai=function(X){var Q=X.scrollHeight,ae=X.scrollWidth,_e=X.height,Le=X.width,Ne=ot({x:ae,y:Q},{x:Le,y:_e}),He={x:Math.max(0,Ne.x),y:Math.max(0,Ne.y)};return He},Ia=function(){var X=document.documentElement;return X||q(!1),X},bi=function(){var X=Ia(),Q=Ai({scrollHeight:X.scrollHeight,scrollWidth:X.scrollWidth,width:X.clientWidth,height:X.clientHeight});return Q},Si=function(){var X=zn(),Q=bi(),ae=X.y,_e=X.x,Le=Ia(),Ne=Le.clientWidth,He=Le.clientHeight,Ke=_e+Ne,St=ae+He,Bt=t({top:ae,left:_e,right:Ke,bottom:St}),Ft={frame:Bt,scroll:{initial:X,current:X,max:Q,diff:{value:ke,displacement:ke}}};return Ft},Ua=function(X){var Q=X.critical,ae=X.scrollOptions,_e=X.registry;Rr();var Le=Si(),Ne=Le.scroll.current,He=Q.droppable,Ke=_e.droppable.getAllByType(He.type).map(function(Dt){return Dt.callbacks.getDimensionAndWatchScroll(Ne,ae)}),St=_e.draggable.getAllByType(Q.draggable.type).map(function(Dt){return Dt.getDimension(Ne)}),Bt={draggables:dn(St),droppables:Gt(Ke)};Ir();var Ft={dimensions:Bt,critical:Q,viewport:Le};return Ft};function Pa(X,Q,ae){if(ae.descriptor.id===Q.id)return!1;if(ae.descriptor.type!==Q.type)return!1;var _e=X.droppable.getById(ae.descriptor.droppableId);return!(_e.descriptor.mode!=="virtual")}var Za=function(X,Q){var ae=null,_e=Fi({callbacks:{publish:Q.publishWhileDragging,collectionStarting:Q.collectionStarting},registry:X}),Le=function(Ut,pn){if(X.droppable.exists(Ut)||q(!1),!ae)return;Q.updateDroppableIsEnabled({id:Ut,isEnabled:pn})},Ne=function(Ut,pn){if(!ae)return;X.droppable.exists(Ut)||q(!1),Q.updateDroppableIsCombineEnabled({id:Ut,isCombineEnabled:pn})},He=function(Ut,pn){if(!ae)return;X.droppable.exists(Ut)||q(!1),Q.updateDroppableScroll({id:Ut,newScroll:pn})},Ke=function(Ut,pn){if(!ae)return;X.droppable.getById(Ut).callbacks.scroll(pn)},St=function(){if(!ae)return;_e.stop();var Ut=ae.critical.droppable;X.droppable.getAllByType(Ut.type).forEach(function(pn){return pn.callbacks.dragStopped()}),ae.unsubscribe(),ae=null},Bt=function(Ut){ae||q(!1);var pn=ae.critical.draggable;Ut.type==="ADDITION"&&(Pa(X,pn,Ut.value)&&_e.add(Ut.value)),Ut.type==="REMOVAL"&&(Pa(X,pn,Ut.value)&&_e.remove(Ut.value))},Ft=function(Ut){ae&&q(!1);var pn=X.draggable.getById(Ut.draggableId),fr=X.droppable.getById(pn.descriptor.droppableId),_r={draggable:pn.descriptor,droppable:fr.descriptor},Nr=X.subscribe(Bt);return ae={critical:_r,unsubscribe:Nr},Ua({critical:_r,registry:X,scrollOptions:Ut.scrollOptions})},Dt={updateDroppableIsEnabled:Le,updateDroppableIsCombineEnabled:Ne,scrollDroppable:Ke,updateDroppableScroll:He,startPublishing:Ft,stopPublishing:St};return Dt},to=function(X,Q){return X.phase==="IDLE"?!0:X.phase!=="DROP_ANIMATING"||X.completed.result.draggableId===Q?!1:X.completed.result.reason==="DROP"},Mo=function(X){window.scrollBy(X.x,X.y)},Ii=O(function(X){return Tt(X).filter(function(Q){return Q.isEnabled?!!Q.frame:!1})}),no=function(Q,ae){var _e=mt(Ii(ae),function(Le){return Le.frame||q(!1),yn(Le.frame.pageMarginBox)(Q)});return _e},ro=function(X){var Q=X.center,ae=X.destination,_e=X.droppables;if(ae){var Le=_e[ae];return Le.frame?Le:null}var Ne=no(Q,_e);return Ne},mi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Q){return Math.pow(Q,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},uo=function(X,Q){var ae=X[Q.size]*mi.startFromPercentage,_e=X[Q.size]*mi.maxScrollAtPercentage,Le={startScrollingFrom:ae,maxScrollValueAt:_e};return Le},Io=function(X){var Q=X.startOfRange,ae=X.endOfRange,_e=X.current,Le=ae-Q;if(Le===0)return 0;var Ne=_e-Q,He=Ne/Le;return He},Lo=1,bo=function(X,Q){if(X>Q.startScrollingFrom)return 0;if(X<=Q.maxScrollValueAt)return mi.maxPixelScroll;if(X===Q.startScrollingFrom)return Lo;var ae=Io({startOfRange:Q.maxScrollValueAt,endOfRange:Q.startScrollingFrom,current:X}),_e=1-ae,Le=mi.maxPixelScroll*mi.ease(_e);return Math.ceil(Le)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(X,Q){var ae=Q,_e=co,Le=Date.now(),Ne=Le-ae;if(Ne>=co)return X;if(Ne<Vi)return Lo;var He=Io({startOfRange:Vi,endOfRange:_e,current:Ne}),Ke=X*mi.ease(He);return Math.ceil(Ke)},Yi=function(X){var Q=X.distanceToEdge,ae=X.thresholds,_e=X.dragStartTime,Le=X.shouldUseTimeDampening,Ne=bo(Q,ae);return Ne===0?0:Le?Math.max(Xi(Ne,_e),Lo):Ne},No=function(X){var Q=X.container,ae=X.distanceToEdges,_e=X.dragStartTime,Le=X.axis,Ne=X.shouldUseTimeDampening,He=uo(Q,Le),Ke=ae[Le.end]<ae[Le.start];return Ke?Yi({distanceToEdge:ae[Le.end],thresholds:He,dragStartTime:_e,shouldUseTimeDampening:Ne}):-1*Yi({distanceToEdge:ae[Le.start],thresholds:He,dragStartTime:_e,shouldUseTimeDampening:Ne})},yo=function(X){var Q=X.container,ae=X.subject,_e=X.proposedScroll,Le=ae.height>Q.height,Ne=ae.width>Q.width;return!Ne&&!Le?_e:Ne&&Le?null:{x:Ne?0:_e.x,y:Le?0:_e.y}},ao=Ue(function(X){return X===0?0:X}),Ji=function(X){var Q=X.dragStartTime,ae=X.container,_e=X.subject,Le=X.center,Ne=X.shouldUseTimeDampening,He={top:Le.y-ae.top,right:ae.right-Le.x,bottom:ae.bottom-Le.y,left:Le.x-ae.left},Ke=No({container:ae,distanceToEdges:He,dragStartTime:Q,axis:_n,shouldUseTimeDampening:Ne}),St=No({container:ae,distanceToEdges:He,dragStartTime:Q,axis:vn,shouldUseTimeDampening:Ne}),Bt=ao({x:St,y:Ke});if(gt(Bt,ke))return null;var Ft=yo({container:ae,subject:_e,proposedScroll:Bt});return Ft?gt(Ft,ke)?null:Ft:null},Qi=Ue(function(X){return X===0?0:X>0?1:-1}),ei=function(){var X=function(ae,_e){return ae<0?ae:ae>_e?ae-_e:0};return function(Q){var ae=Q.current,_e=Q.max,Le=Q.change,Ne=rt(ae,Le),He={x:X(Ne.x,_e.x),y:X(Ne.y,_e.y)};return gt(He,ke)?null:He}}(),Li=function(Q){var ae=Q.max,_e=Q.current,Le=Q.change,Ne={x:Math.max(_e.x,ae.x),y:Math.max(_e.y,ae.y)},He=Qi(Le),Ke=ei({max:Ne,current:_e,change:He});return Ke?He.x!==0&&Ke.x===0?!0:He.y!==0&&Ke.y===0:!0},Di=function(Q,ae){return Li({current:Q.scroll.current,max:Q.scroll.max,change:ae})},Zi=function(Q,ae){if(!Di(Q,ae))return null;var _e=Q.scroll.max,Le=Q.scroll.current;return ei({current:Le,max:_e,change:ae})},Ri=function(Q,ae){var _e=Q.frame;return _e?Li({current:_e.scroll.current,max:_e.scroll.max,change:ae}):!1},Eo=function(Q,ae){var _e=Q.frame;return _e&&Ri(Q,ae)?ei({current:_e.scroll.current,max:_e.scroll.max,change:ae}):null},xo=function(X){var Q=X.viewport,ae=X.subject,_e=X.center,Le=X.dragStartTime,Ne=X.shouldUseTimeDampening,He=Ji({dragStartTime:Le,container:Q.frame,subject:ae,center:_e,shouldUseTimeDampening:Ne});return He&&Di(Q,He)?He:null},Co=function(X){var Q=X.droppable,ae=X.subject,_e=X.center,Le=X.dragStartTime,Ne=X.shouldUseTimeDampening,He=Q.frame;if(!He)return null;var Ke=Ji({dragStartTime:Le,container:He.pageMarginBox,subject:ae,center:_e,shouldUseTimeDampening:Ne});return Ke&&Ri(Q,Ke)?Ke:null},io=function(X){var Q=X.state,ae=X.dragStartTime,_e=X.shouldUseTimeDampening,Le=X.scrollWindow,Ne=X.scrollDroppable,He=Q.current.page.borderBoxCenter,Ke=Q.dimensions.draggables[Q.critical.draggable.id],St=Ke.page.marginBox;if(Q.isWindowScrollAllowed){var Bt=Q.viewport,Ft=xo({dragStartTime:ae,viewport:Bt,subject:St,center:He,shouldUseTimeDampening:_e});if(Ft){Le(Ft);return}}var Dt=ro({center:He,destination:Wt(Q.impact),droppables:Q.dimensions.droppables});if(!Dt)return;var Ot=Co({dragStartTime:ae,droppable:Dt,subject:St,center:He,shouldUseTimeDampening:_e});Ot&&Ne(Dt.descriptor.id,Ot)},Ni=function(X){var Q=X.scrollWindow,ae=X.scrollDroppable,_e=D(Q),Le=D(ae),Ne=null,He=function(Ft){Ne||q(!1);var Dt=Ne,Ot=Dt.shouldUseTimeDampening,Ut=Dt.dragStartTime;io({state:Ft,scrollWindow:_e,scrollDroppable:Le,dragStartTime:Ut,shouldUseTimeDampening:Ot})},Ke=function(Ft){Rr(),Ne&&q(!1);var Dt=Date.now(),Ot=!1,Ut=function(){Ot=!0};io({state:Ft,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Ut,scrollDroppable:Ut}),Ne={dragStartTime:Dt,shouldUseTimeDampening:Ot},Ir(),Ot&&He(Ft)},St=function(){if(!Ne)return;_e.cancel(),Le.cancel(),Ne=null};return{start:Ke,stop:St,scroll:He}},qi=function(X){var Q=X.move,ae=X.scrollDroppable,_e=X.scrollWindow,Le=function(Bt,Ft){var Dt=rt(Bt.current.client.selection,Ft);Q({client:Dt})},Ne=function(Bt,Ft){if(!Ri(Bt,Ft))return Ft;var Dt=Eo(Bt,Ft);if(!Dt)return ae(Bt.descriptor.id,Ft),null;var Ot=ot(Ft,Dt);ae(Bt.descriptor.id,Ot);var Ut=ot(Ft,Ot);return Ut},He=function(Bt,Ft,Dt){if(!Bt)return Dt;if(!Di(Ft,Dt))return Dt;var Ot=Zi(Ft,Dt);if(!Ot)return _e(Dt),null;var Ut=ot(Dt,Ot);_e(Ut);var pn=ot(Dt,Ut);return pn},Ke=function(Bt){var Ft=Bt.scrollJumpRequest;if(!Ft)return;var Dt=Wt(Bt.impact);Dt||q(!1);var Ot=Ne(Bt.dimensions.droppables[Dt],Ft);if(!Ot)return;var Ut=Bt.viewport,pn=He(Bt.isWindowScrollAllowed,Ut,Ot);if(!pn)return;Le(Bt,pn)};return Ke},ko=function(X){var Q=X.scrollDroppable,ae=X.scrollWindow,_e=X.move,Le=Ni({scrollWindow:ae,scrollDroppable:Q}),Ne=qi({move:_e,scrollWindow:ae,scrollDroppable:Q}),He=function(Bt){if(Bt.phase!=="DRAGGING")return;if(Bt.movementMode==="FLUID"){Le.scroll(Bt);return}if(!Bt.scrollJumpRequest)return;Ne(Bt)},Ke={scroll:He,start:Le.start,stop:Le.stop};return Ke},oo="data-rbd",so=function(){var X=oo+"-drag-handle";return{base:X,draggableId:X+"-draggable-id",contextId:X+"-context-id"}}(),So=function(){var X=oo+"-draggable";return{base:X,contextId:X+"-context-id",id:X+"-id"}}(),Uo=function(){var X=oo+"-droppable";return{base:X,contextId:X+"-context-id",id:X+"-id"}}(),jo={contextId:oo+"-scroll-container-context-id"},fi=function(Q){return function(ae){return"["+ae+'="'+Q+'"]'}},Wa=function(Q,ae){return Q.map(function(_e){var Le=_e.styles[ae];return Le?_e.selector+" { "+Le+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(X){var Q=fi(X),ae=function(){var Ke=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Q(so.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Ke,dragging:ri,dropAnimating:Ke}}}(),_e=function(){var Ke=`
transition: `+Vt.outOfTheWay+`;
`;return{selector:Q(So.contextId),styles:{dragging:Ke,dropAnimating:Ke,userCancel:Ke}}}(),Le={selector:Q(Uo.contextId),styles:{always:"overflow-anchor: none;"}},Ne={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},He=[_e,ae,Le,Ne];return{always:Wa(He,"always"),resting:Wa(He,"resting"),dragging:Wa(He,"dragging"),dropAnimating:Wa(He,"dropAnimating"),userCancel:Wa(He,"userCancel")}},ai=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?L.useLayoutEffect:L.useEffect,wo=function(){var Q=document.querySelector("head");return Q||q(!1),Q},yi=function(Q){var ae=document.createElement("style");return Q&&ae.setAttribute("nonce",Q),ae.type="text/css",ae};function Bo(X,Q){var ae=d(function(){return Xa(X)},[X]),_e=Object(L.useRef)(null),Le=Object(L.useRef)(null),Ne=r(O(function(Dt){var Ot=Le.current;Ot||q(!1),Ot.textContent=Dt}),[]),He=r(function(Dt){var Ot=_e.current;Ot||q(!1),Ot.textContent=Dt},[]);ai(function(){!_e.current&&!Le.current||q(!1);var Dt=yi(Q),Ot=yi(Q);return _e.current=Dt,Le.current=Ot,Dt.setAttribute(oo+"-always",X),Ot.setAttribute(oo+"-dynamic",X),wo().appendChild(Dt),wo().appendChild(Ot),He(ae.always),Ne(ae.resting),function(){var Ut=function(fr){var _r=fr.current;_r||q(!1),wo().removeChild(_r),fr.current=null};Ut(_e),Ut(Le)}},[Q,He,Ne,ae.always,ae.resting,X]);var Ke=r(function(){return Ne(ae.dragging)},[Ne,ae.dragging]),St=r(function(Dt){if(Dt==="DROP"){Ne(ae.dropAnimating);return}Ne(ae.userCancel)},[Ne,ae.dropAnimating,ae.userCancel]),Bt=r(function(){if(!Le.current)return;Ne(ae.resting)},[Ne,ae.resting]),Ft=d(function(){return{dragging:Ke,dropping:St,resting:Bt}},[Ke,St,Bt]);return Ft}var Oo=function(X){return X&&X.ownerDocument?X.ownerDocument.defaultView:window};function $i(X){return X instanceof Oo(X).HTMLElement}function Wi(X,Q){var ae="["+so.contextId+'="'+X+'"]',_e=Pt(document.querySelectorAll(ae));if(!_e.length)return null;var Le=mt(_e,function(Ne){return Ne.getAttribute(so.draggableId)===Q});return Le&&$i(Le)?Le:null}function To(X){var Q=Object(L.useRef)({}),ae=Object(L.useRef)(null),_e=Object(L.useRef)(null),Le=Object(L.useRef)(!1),Ne=r(function(Ot,Ut){var pn={id:Ot,focus:Ut};return Q.current[Ot]=pn,function(){var _r=Q.current,Nr=_r[Ot];Nr!==pn&&delete _r[Ot]}},[]),He=r(function(Ot){var Ut=Wi(X,Ot);Ut&&Ut!==document.activeElement&&Ut.focus()},[X]),Ke=r(function(Ot,Ut){ae.current===Ot&&(ae.current=Ut)},[]),St=r(function(){if(_e.current)return;if(!Le.current)return;_e.current=requestAnimationFrame(function(){_e.current=null;var Ot=ae.current;Ot&&He(Ot)})},[He]),Bt=r(function(Ot){ae.current=null;var Ut=document.activeElement;if(!Ut)return;if(Ut.getAttribute(so.draggableId)!==Ot)return;ae.current=Ot},[]);ai(function(){return Le.current=!0,function(){Le.current=!1;var Ot=_e.current;Ot&&cancelAnimationFrame(Ot)}},[]);var Ft=d(function(){return{register:Ne,tryRecordFocus:Bt,tryRestoreFocusRecorded:St,tryShiftRecord:Ke}},[Ne,Bt,St,Ke]);return Ft}function fo(){var X={draggables:{},droppables:{}},Q=[];function ae(Dt){return Q.push(Dt),function(){var Ut=Q.indexOf(Dt);if(Ut===-1)return;Q.splice(Ut,1)}}function _e(Dt){Q.length&&Q.forEach(function(Ot){return Ot(Dt)})}function Le(Dt){return X.draggables[Dt]||null}function Ne(Dt){var Ot=Le(Dt);return Ot||q(!1),Ot}var He={register:function(Ot){X.draggables[Ot.descriptor.id]=Ot,_e({type:"ADDITION",value:Ot})},update:function(Ot,Ut){var pn=X.draggables[Ut.descriptor.id];if(!pn)return;if(pn.uniqueId!==Ot.uniqueId)return;delete X.draggables[Ut.descriptor.id],X.draggables[Ot.descriptor.id]=Ot},unregister:function(Ot){var Ut=Ot.descriptor.id,pn=Le(Ut);if(!pn)return;if(Ot.uniqueId!==pn.uniqueId)return;delete X.draggables[Ut],_e({type:"REMOVAL",value:Ot})},getById:Ne,findById:Le,exists:function(Ot){return Boolean(Le(Ot))},getAllByType:function(Ot){return Ge(X.draggables).filter(function(Ut){return Ut.descriptor.type===Ot})}};function Ke(Dt){return X.droppables[Dt]||null}function St(Dt){var Ot=Ke(Dt);return Ot||q(!1),Ot}var Bt={register:function(Ot){X.droppables[Ot.descriptor.id]=Ot},unregister:function(Ot){var Ut=Ke(Ot.descriptor.id);if(!Ut)return;if(Ot.uniqueId!==Ut.uniqueId)return;delete X.droppables[Ot.descriptor.id]},getById:St,findById:Ke,exists:function(Ot){return Boolean(Ke(Ot))},getAllByType:function(Ot){return Ge(X.droppables).filter(function(Ut){return Ut.descriptor.type===Ot})}};function Ft(){X.draggables={},X.droppables={},Q.length=0}return{draggable:He,droppable:Bt,subscribe:ae,clean:Ft}}function Wo(){var X=d(fo,[]);return Object(L.useEffect)(function(){return function(){requestAnimationFrame(X.clean)}},[X]),X}var lo=p.a.createContext(null),Ta=function(){var X=document.body;return X||q(!1),X},ba={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ka=function(Q){return"rbd-announcement-"+Q};function ui(X){var Q=d(function(){return Ka(X)},[X]),ae=Object(L.useRef)(null);Object(L.useEffect)(function(){var Ne=document.createElement("div");return ae.current=Ne,Ne.id=Q,Ne.setAttribute("aria-live","assertive"),Ne.setAttribute("aria-atomic","true"),Object(b.a)(Ne.style,ba),Ta().appendChild(Ne),function(){setTimeout(function(){var St=Ta();St.contains(Ne)&&St.removeChild(Ne),Ne===ae.current&&(ae.current=null)})}},[Q]);var _e=r(function(Le){var Ne=ae.current;if(Ne){Ne.textContent=Le;return}},[]);return _e}var eo=0,ki={separator:"::"};function ho(){eo=0}function wi(X,Q){return Q===void 0&&(Q=ki),d(function(){return""+X+Q.separator+eo++},[Q.separator,X])}function qa(X){var Q=X.contextId,ae=X.uniqueId;return"rbd-hidden-text-"+Q+"-"+ae}function po(X){var Q=X.contextId,ae=X.text,_e=wi("hidden-text",{separator:"-"}),Le=d(function(){return qa({contextId:Q,uniqueId:_e})},[_e,Q]);return Object(L.useEffect)(function(){var He=document.createElement("div");return He.id=Le,He.textContent=ae,He.style.display="none",Ta().appendChild(He),function(){var St=Ta();St.contains(He)&&St.removeChild(He)}},[Le,ae]),Le}var Hi=p.a.createContext(null),mo={react:"^16.8.5","react-dom":"^16.8.5"},hi=/(\d+)\.(\d+)\.(\d+)/,Da=function(Q){var ae=hi.exec(Q);ae!=null||q(!1);var _e=Number(ae[1]),Le=Number(ae[2]),Ne=Number(ae[3]);return{major:_e,minor:Le,patch:Ne,raw:Q}},ia=function(Q,ae){return ae.major>Q.major?!0:ae.major<Q.major?!1:ae.minor>Q.minor?!0:ae.minor<Q.minor?!1:ae.patch>=Q.patch},Sr=function(X,Q){var ae=Da(X),_e=Da(Q);if(ia(ae,_e))return},Qr=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,ma=function(X){var Q=X.doctype;if(!Q)return;Q.name.toLowerCase()!=="html",Q.publicId!==""};function Fa(X){}function Ei(X,Q){Fa(function(){Object(L.useEffect)(function(){try{X()}catch(ae){Ee(`
A setup problem was encountered.
> `+ae.message+`
`)}},Q)})}function Pi(){Ei(function(){Sr(mo.react,p.a.version),ma(document)},[])}function $a(X){var Q=Object(L.useRef)(X);return Object(L.useEffect)(function(){Q.current=X}),Q}function xi(){var X=null;function Q(){return Boolean(X)}function ae(He){return He===X}function _e(He){X&&q(!1);var Ke={abandon:He};return X=Ke,Ke}function Le(){X||q(!1),X=null}function Ne(){X&&(X.abandon(),Le())}return{isClaimed:Q,isActive:ae,claim:_e,release:Le,tryAbandon:Ne}}var Ki=9,go=13,Qa=27,As=32,Ys=33,Pl=34,hs=35,Ds=36,Js=37,Ml=38,Qs=39,Il=40,ps,ms=(ps={},ps[go]=!0,ps[Ki]=!0,ps),Rs=function(X){ms[X.keyCode]&&X.preventDefault()},gs=function(){var X="visibilitychange";if(typeof document=="undefined")return X;var Q=[X,"ms"+X,"webkit"+X,"moz"+X,"o"+X],ae=mt(Q,function(_e){return"on"+_e in document});return ae||X}(),Zs=0,Ps=5;function Ho(X,Q){return Math.abs(Q.x-X.x)>=Ps||Math.abs(Q.y-X.y)>=Ps}var vs={type:"IDLE"};function _s(X){var Q=X.cancel,ae=X.completed,_e=X.getPhase,Le=X.setPhase;return[{eventName:"mousemove",fn:function(He){var Ke=He.button,St=He.clientX,Bt=He.clientY;if(Ke!==Zs)return;var Ft={x:St,y:Bt},Dt=_e();if(Dt.type==="DRAGGING"){He.preventDefault(),Dt.actions.move(Ft);return}Dt.type==="PENDING"||q(!1);var Ot=Dt.point;if(!Ho(Ot,Ft))return;He.preventDefault();var Ut=Dt.actions.fluidLift(Ft);Le({type:"DRAGGING",actions:Ut})}},{eventName:"mouseup",fn:function(He){var Ke=_e();if(Ke.type!=="DRAGGING"){Q();return}He.preventDefault(),Ke.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"mousedown",fn:function(He){_e().type==="DRAGGING"&&He.preventDefault(),Q()}},{eventName:"keydown",fn:function(He){var Ke=_e();if(Ke.type==="PENDING"){Q();return}if(He.keyCode===Qa){He.preventDefault(),Q();return}Rs(He)}},{eventName:"resize",fn:Q},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){_e().type==="PENDING"&&Q()}},{eventName:"webkitmouseforcedown",fn:function(He){var Ke=_e();if(Ke.type!=="IDLE"||q(!1),Ke.actions.shouldRespectForcePress()){Q();return}He.preventDefault()}},{eventName:gs,fn:Q}]}function $s(X){var Q=Object(L.useRef)(vs),ae=Object(L.useRef)(we),_e=d(function(){return{eventName:"mousedown",fn:function(Dt){if(Dt.defaultPrevented)return;if(Dt.button!==Zs)return;if(Dt.ctrlKey||Dt.metaKey||Dt.shiftKey||Dt.altKey)return;var Ot=X.findClosestDraggableId(Dt);if(!Ot)return;var Ut=X.tryGetLock(Ot,He,{sourceEvent:Dt});if(!Ut)return;Dt.preventDefault();var pn={x:Dt.clientX,y:Dt.clientY};ae.current(),Bt(Ut,pn)}}},[X]),Le=d(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Dt){if(Dt.defaultPrevented)return;var Ot=X.findClosestDraggableId(Dt);if(!Ot)return;var Ut=X.findOptionsForDraggable(Ot);if(!Ut)return;if(Ut.shouldRespectForcePress)return;if(!X.canGetLock(Ot))return;Dt.preventDefault()}}},[X]),Ne=r(function(){var Dt={passive:!1,capture:!0};ae.current=be(window,[Le,_e],Dt)},[Le,_e]),He=r(function(){var Ft=Q.current;if(Ft.type==="IDLE")return;Q.current=vs,ae.current(),Ne()},[Ne]),Ke=r(function(){var Ft=Q.current;He(),Ft.type==="DRAGGING"&&Ft.actions.cancel({shouldBlockNextClick:!0}),Ft.type==="PENDING"&&Ft.actions.abort()},[He]),St=r(function(){var Dt={capture:!0,passive:!1},Ot=_s({cancel:Ke,completed:He,getPhase:function(){return Q.current},setPhase:function(pn){Q.current=pn}});ae.current=be(window,Ot,Dt)},[Ke,He]),Bt=r(function(Dt,Ot){Q.current.type==="IDLE"||q(!1),Q.current={type:"PENDING",point:Ot,actions:Dt},St()},[St]);ai(function(){return Ne(),function(){ae.current()}},[Ne])}var Ao;function el(){}var Ll=(Ao={},Ao[Pl]=!0,Ao[Ys]=!0,Ao[Ds]=!0,Ao[hs]=!0,Ao);function tl(X,Q){function ae(){Q(),X.cancel()}function _e(){Q(),X.drop()}return[{eventName:"keydown",fn:function(Ne){if(Ne.keyCode===Qa){Ne.preventDefault(),ae();return}if(Ne.keyCode===As){Ne.preventDefault(),_e();return}if(Ne.keyCode===Il){Ne.preventDefault(),X.moveDown();return}if(Ne.keyCode===Ml){Ne.preventDefault(),X.moveUp();return}if(Ne.keyCode===Qs){Ne.preventDefault(),X.moveRight();return}if(Ne.keyCode===Js){Ne.preventDefault(),X.moveLeft();return}if(Ll[Ne.keyCode]){Ne.preventDefault();return}Rs(Ne)}},{eventName:"mousedown",fn:ae},{eventName:"mouseup",fn:ae},{eventName:"click",fn:ae},{eventName:"touchstart",fn:ae},{eventName:"resize",fn:ae},{eventName:"wheel",fn:ae,options:{passive:!0}},{eventName:gs,fn:ae}]}function gi(X){var Q=Object(L.useRef)(el),ae=d(function(){return{eventName:"keydown",fn:function(Ne){if(Ne.defaultPrevented)return;if(Ne.keyCode!==As)return;var He=X.findClosestDraggableId(Ne);if(!He)return;var Ke=X.tryGetLock(He,Ft,{sourceEvent:Ne});if(!Ke)return;Ne.preventDefault();var St=!0,Bt=Ke.snapLift();Q.current();function Ft(){St||q(!1),St=!1,Q.current(),_e()}Q.current=be(window,tl(Bt,Ft),{capture:!0,passive:!1})}}},[X]),_e=r(function(){var Ne={passive:!1,capture:!0};Q.current=be(window,[ae],Ne)},[ae]);ai(function(){return _e(),function(){Q.current()}},[_e])}var Ko={type:"IDLE"},nl=120,rl=.15;function al(X){var Q=X.cancel,ae=X.getPhase;return[{eventName:"orientationchange",fn:Q},{eventName:"resize",fn:Q},{eventName:"contextmenu",fn:function(Le){Le.preventDefault()}},{eventName:"keydown",fn:function(Le){if(ae().type!=="DRAGGING"){Q();return}Le.keyCode===Qa&&Le.preventDefault(),Q()}},{eventName:gs,fn:Q}]}function Go(X){var Q=X.cancel,ae=X.completed,_e=X.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ne){var He=_e();if(He.type!=="DRAGGING"){Q();return}He.hasMoved=!0;var Ke=Ne.touches[0],St=Ke.clientX,Bt=Ke.clientY,Ft={x:St,y:Bt};Ne.preventDefault(),He.actions.move(Ft)}},{eventName:"touchend",fn:function(Ne){var He=_e();if(He.type!=="DRAGGING"){Q();return}Ne.preventDefault(),He.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"touchcancel",fn:function(Ne){if(_e().type!=="DRAGGING"){Q();return}Ne.preventDefault(),Q()}},{eventName:"touchforcechange",fn:function(Ne){var He=_e();He.type!=="IDLE"||q(!1);var Ke=Ne.touches[0];if(!Ke)return;var St=Ke.force>=rl;if(!St)return;var Bt=He.actions.shouldRespectForcePress();if(He.type==="PENDING"){Bt&&Q();return}if(Bt){if(He.hasMoved){Ne.preventDefault();return}Q();return}Ne.preventDefault()}},{eventName:gs,fn:Q}]}function bs(X){var Q=Object(L.useRef)(Ko),ae=Object(L.useRef)(we),_e=r(function(){return Q.current},[]),Le=r(function(Ut){Q.current=Ut},[]),Ne=d(function(){return{eventName:"touchstart",fn:function(Ut){if(Ut.defaultPrevented)return;var pn=X.findClosestDraggableId(Ut);if(!pn)return;var fr=X.tryGetLock(pn,Ke,{sourceEvent:Ut});if(!fr)return;var _r=Ut.touches[0],Nr=_r.clientX,Kr=_r.clientY,na={x:Nr,y:Kr};ae.current(),Dt(fr,na)}}},[X]),He=r(function(){var Ut={capture:!0,passive:!1};ae.current=be(window,[Ne],Ut)},[Ne]),Ke=r(function(){var Ot=Q.current;if(Ot.type==="IDLE")return;Ot.type==="PENDING"&&clearTimeout(Ot.longPressTimerId),Le(Ko),ae.current(),He()},[He,Le]),St=r(function(){var Ot=Q.current;Ke(),Ot.type==="DRAGGING"&&Ot.actions.cancel({shouldBlockNextClick:!0}),Ot.type==="PENDING"&&Ot.actions.abort()},[Ke]),Bt=r(function(){var Ut={capture:!0,passive:!1},pn={cancel:St,completed:Ke,getPhase:_e},fr=be(window,Go(pn),Ut),_r=be(window,al(pn),Ut);ae.current=function(){fr(),_r()}},[St,_e,Ke]),Ft=r(function(){var Ut=_e();Ut.type==="PENDING"||q(!1);var pn=Ut.actions.fluidLift(Ut.point);Le({type:"DRAGGING",actions:pn,hasMoved:!1})},[_e,Le]),Dt=r(function(Ut,pn){_e().type==="IDLE"||q(!1);var fr=setTimeout(Ft,nl);Le({type:"PENDING",point:pn,actions:Ut,longPressTimerId:fr}),Bt()},[Bt,_e,Le,Ft]);ai(function(){return He(),function(){ae.current();var pn=_e();pn.type==="PENDING"&&(clearTimeout(pn.longPressTimerId),Le(Ko))}},[_e,He,Le]),ai(function(){var Ut=be(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Ut},[])}function il(X){Fa(function(){var Q=$a(X);Ei(function(){Q.current.length===X.length||q(!1)})})}var ol={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(X,Q){if(Q==null)return!1;var ae=Boolean(ol[Q.tagName.toLowerCase()]);if(ae)return!0;var _e=Q.getAttribute("contenteditable");return _e==="true"||_e===""?!0:Q===X?!1:Ms(X,Q.parentElement)}function zo(X,Q){var ae=Q.target;return $i(ae)?Ms(X,ae):!1}var sl=function(X){return t(X.getBoundingClientRect()).center};function ys(X){return X instanceof Oo(X).Element}var ll=function(){var X="matches";if(typeof document=="undefined")return X;var Q=[X,"msMatchesSelector","webkitMatchesSelector"],ae=mt(Q,function(_e){return _e in Element.prototype});return ae||X}();function Vo(X,Q){return X==null?null:X[ll](Q)?X:Vo(X.parentElement,Q)}function Nl(X,Q){return X.closest?X.closest(Q):Vo(X,Q)}function Xo(X){return"["+so.contextId+'="'+X+'"]'}function ul(X,Q){var ae=Q.target;if(!ys(ae))return null;var _e=Xo(X),Le=Nl(ae,_e);return Le&&$i(Le)?Le:null}function cl(X,Q){var ae=ul(X,Q);return ae?ae.getAttribute(so.draggableId):null}function dl(X,Q){var ae="["+So.contextId+'="'+X+'"]',_e=Pt(document.querySelectorAll(ae)),Le=mt(_e,function(Ne){return Ne.getAttribute(So.id)===Q});return Le&&$i(Le)?Le:null}function ts(X){X.preventDefault()}function Do(X){var Q=X.expected,ae=X.phase,_e=X.isLockActive,Le=X.shouldWarn;return _e()?!(Q!==ae):!1}function Yo(X){var Q=X.lockAPI,ae=X.store,_e=X.registry,Le=X.draggableId;if(Q.isClaimed())return!1;var Ne=_e.draggable.findById(Le);return Ne&&Ne.options.isEnabled?!!to(ae.getState(),Le):!1}function ns(X){var Q=X.lockAPI,ae=X.contextId,_e=X.store,Le=X.registry,Ne=X.draggableId,He=X.forceSensorStop,Ke=X.sourceEvent,St=Yo({lockAPI:Q,store:_e,registry:Le,draggableId:Ne});if(!St)return null;var Bt=Le.draggable.getById(Ne),Ft=dl(ae,Bt.descriptor.id);if(!Ft)return null;if(Ke&&!Bt.options.canDragInteractiveElements&&zo(Ft,Ke))return null;var Dt=Q.claim(He||we),Ot="PRE_DRAG";function Ut(){return Bt.options.shouldRespectForcePress}function pn(){return Q.isActive(Dt)}function fr(Aa,Ga){Do({expected:Aa,phase:Ot,isLockActive:pn,shouldWarn:!0})&&_e.dispatch(Ga())}var _r=fr.bind(null,"DRAGGING");function Nr(Aa){function Ga(){Q.release(),Ot="COMPLETED"}Ot!=="PRE_DRAG"&&(Ga(),Ot==="PRE_DRAG"||q(!1)),_e.dispatch(Xn(Aa.liftActionArgs)),Ot="DRAGGING";function si(e,u){if(u===void 0&&(u={shouldBlockNextClick:!1}),Aa.cleanup(),u.shouldBlockNextClick){var j=be(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(j)}Ga(),_e.dispatch(ct({reason:e}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:Ot,isLockActive:pn,shouldWarn:!1})},shouldRespectForcePress:Ut,drop:function(u){return si("DROP",u)},cancel:function(u){return si("CANCEL",u)}},Aa.actions)}function Kr(Aa){var Ga=D(function(e){_r(function(){return dr({client:e})})}),si=Nr({liftActionArgs:{id:Ne,clientSelection:Aa,movementMode:"FLUID"},cleanup:function(){return Ga.cancel()},actions:{move:Ga}});return Object(b.a)({},si,{move:Ga})}function na(){var Aa={moveUp:function(){return _r(yr)},moveRight:function(){return _r(Hr)},moveDown:function(){return _r(wr)},moveLeft:function(){return _r(Yr)}};return Nr({liftActionArgs:{id:Ne,clientSelection:sl(Ft),movementMode:"SNAP"},cleanup:we,actions:Aa})}function Wr(){var Aa=Do({expected:"PRE_DRAG",phase:Ot,isLockActive:pn,shouldWarn:!0});Aa&&Q.release()}var Ma={isActive:function(){return Do({expected:"PRE_DRAG",phase:Ot,isLockActive:pn,shouldWarn:!1})},shouldRespectForcePress:Ut,fluidLift:Kr,snapLift:na,abort:Wr};return Ma}var fl=[$s,gi,bs];function kl(X){var Q=X.contextId,ae=X.store,_e=X.registry,Le=X.customSensors,Ne=X.enableDefaultSensors,He=[].concat(Ne?fl:[],Le||[]),Ke=Object(L.useState)(function(){return xi()})[0],St=r(function(Kr,na){Kr.isDragging&&!na.isDragging&&Ke.tryAbandon()},[Ke]);ai(function(){var Kr=ae.getState(),na=ae.subscribe(function(){var Wr=ae.getState();St(Kr,Wr),Kr=Wr});return na},[Ke,ae,St]),ai(function(){return Ke.tryAbandon},[Ke.tryAbandon]);var Bt=r(function(Nr){return Yo({lockAPI:Ke,registry:_e,store:ae,draggableId:Nr})},[Ke,_e,ae]),Ft=r(function(Nr,Kr,na){return ns({lockAPI:Ke,registry:_e,contextId:Q,store:ae,draggableId:Nr,forceSensorStop:Kr,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Q,Ke,_e,ae]),Dt=r(function(Nr){return cl(Q,Nr)},[Q]),Ot=r(function(Nr){var Kr=_e.draggable.findById(Nr);return Kr?Kr.options:null},[_e.draggable]),Ut=r(function(){if(!Ke.isClaimed())return;Ke.tryAbandon(),ae.getState().phase!=="IDLE"&&ae.dispatch(wa())},[Ke,ae]),pn=r(Ke.isClaimed,[Ke]),fr=d(function(){return{canGetLock:Bt,tryGetLock:Ft,findClosestDraggableId:Dt,findOptionsForDraggable:Ot,tryReleaseLock:Ut,isLockClaimed:pn}},[Bt,Ft,Dt,Ot,Ut,pn]);il(He);for(var _r=0;_r<He.length;_r++)He[_r](fr)}var hl=function(Q){return{onBeforeCapture:Q.onBeforeCapture,onBeforeDragStart:Q.onBeforeDragStart,onDragStart:Q.onDragStart,onDragEnd:Q.onDragEnd,onDragUpdate:Q.onDragUpdate}};function Gi(X){return X.current||q(!1),X.current}function Jo(X){var Q=X.contextId,ae=X.setCallbacks,_e=X.sensors,Le=X.nonce,Ne=X.dragHandleUsageInstructions,He=Object(L.useRef)(null);Pi();var Ke=$a(X),St=r(function(){return hl(Ke.current)},[Ke]),Bt=ui(Q),Ft=po({contextId:Q,text:Ne}),Dt=Bo(Q,Le),Ot=r(function(e){Gi(He).dispatch(e)},[]),Ut=d(function(){return Object(y.b)({publishWhileDragging:kn,updateDroppableScroll:hr,updateDroppableIsEnabled:cr,updateDroppableIsCombineEnabled:Zr,collectionStarting:lr},Ot)},[Ot]),pn=Wo(),fr=d(function(){return Za(pn,Ut)},[pn,Ut]),_r=d(function(){return ko(Object(b.a)({scrollWindow:Mo,scrollDroppable:fr.scrollDroppable},Object(y.b)({move:dr},Ot)))},[fr.scrollDroppable,Ot]),Nr=To(Q),Kr=d(function(){return Ba({announce:Bt,autoScroller:_r,dimensionMarshal:fr,focusMarshal:Nr,getResponders:St,styleMarshal:Dt})},[Bt,_r,fr,Nr,St,Dt]);He.current=Kr;var na=r(function(){var e=Gi(He),u=e.getState();u.phase!=="IDLE"&&e.dispatch(wa())},[]),Wr=r(function(){var e=Gi(He).getState();return e.isDragging||e.phase==="DROP_ANIMATING"},[]),Ma=d(function(){return{isDragging:Wr,tryAbort:na}},[Wr,na]);ae(Ma);var Aa=r(function(e){return to(Gi(He).getState(),e)},[]),Ga=r(function(){return en(Gi(He).getState())},[]),si=d(function(){return{marshal:fr,focus:Nr,contextId:Q,canLift:Aa,isMovementAllowed:Ga,dragHandleUsageInstructionsId:Ft,registry:pn}},[Q,fr,Ft,Nr,Aa,Ga,pn]);return kl({contextId:Q,store:Kr,registry:pn,customSensors:_e,enableDefaultSensors:X.enableDefaultSensors!==!1}),Object(L.useEffect)(function(){return na},[na]),p.a.createElement(Hi.Provider,{value:si},p.a.createElement(S.a,{context:lo,store:Kr},X.children))}var Qo=0;function Ul(){Qo=0}function pl(){return d(function(){return""+Qo++},[])}function iu(){Ul(),ho()}function jl(X){var Q=pl(),ae=X.dragHandleUsageInstructions||Se.dragHandleUsageInstructions;return p.a.createElement(me,null,function(_e){return p.a.createElement(Jo,{nonce:X.nonce,contextId:Q,setCallbacks:_e,dragHandleUsageInstructions:ae,enableDefaultSensors:X.enableDefaultSensors,sensors:X.sensors,onBeforeCapture:X.onBeforeCapture,onBeforeDragStart:X.onBeforeDragStart,onDragStart:X.onDragStart,onDragUpdate:X.onDragUpdate,onDragEnd:X.onDragEnd},X.children)})}var Is=function(Q){return function(ae){return Q===ae}},Oi=Is("scroll"),ml=Is("auto"),Bl=Is("visible"),gl=function(Q,ae){return ae(Q.overflowX)||ae(Q.overflowY)},Fl=function(Q,ae){return ae(Q.overflowX)&&ae(Q.overflowY)},Ls=function(Q){var ae=window.getComputedStyle(Q),_e={overflowX:ae.overflowX,overflowY:ae.overflowY};return gl(_e,Oi)||gl(_e,ml)},vl=function(){return!1;var Q,ae;if(!Ls(Q))return!1;var _e,Le;if(Fl(Le,Bl))return!1},Ns=function X(Q){return Q==null?null:Q===document.body?vl()?Q:null:Q===document.documentElement?null:Ls(Q)?Q:X(Q.parentElement)},ou=function(X){if(!X)return;var Q=Ns(X.parentElement);if(!Q)return},ks=function(X){return{x:X.scrollLeft,y:X.scrollTop}},Wl=function X(Q){if(!Q)return!1;var ae=window.getComputedStyle(Q);return ae.position==="fixed"?!0:X(Q.parentElement)},Ro=function(X){var Q=Ns(X),ae=Wl(X);return{closestScrollable:Q,isFixedOnPage:ae}},rs=function(X){var Q=X.descriptor,ae=X.isEnabled,_e=X.isCombineEnabled,Le=X.isFixedOnPage,Ne=X.direction,He=X.client,Ke=X.page,St=X.closest,Bt=function(){if(!St)return null;var Ut=St.scrollSize,pn=St.client,fr=Ai({scrollHeight:Ut.scrollHeight,scrollWidth:Ut.scrollWidth,height:pn.paddingBox.height,width:pn.paddingBox.width});return{pageMarginBox:St.page.marginBox,frameClient:pn,scrollSize:Ut,shouldClipSubject:St.shouldClipSubject,scroll:{initial:St.scroll,current:St.scroll,max:fr,diff:{value:ke,displacement:ke}}}}(),Ft=Ne==="vertical"?_n:vn,Dt=Te({page:Ke,withPlaceholder:null,axis:Ft,frame:Bt}),Ot={descriptor:Q,isCombineEnabled:_e,isFixedOnPage:Le,axis:Ft,isEnabled:ae,client:He,page:Ke,frame:Bt,subject:Dt};return Ot},Es=function(Q,ae){var _e=P(Q);if(!ae)return _e;if(Q!==ae)return _e;var Le=_e.paddingBox.top-ae.scrollTop,Ne=_e.paddingBox.left-ae.scrollLeft,He=Le+ae.scrollHeight,Ke=Ne+ae.scrollWidth,St={top:Le,right:Ke,bottom:He,left:Ne},Bt=a(St,_e.border),Ft=l({borderBox:Bt,margin:_e.margin,border:_e.border,padding:_e.padding});return Ft},as=function(X){var Q=X.ref,ae=X.descriptor,_e=X.env,Le=X.windowScroll,Ne=X.direction,He=X.isDropDisabled,Ke=X.isCombineEnabled,St=X.shouldClipSubject,Bt=_e.closestScrollable,Ft=Es(Q,Bt),Dt=C(Ft,Le),Ot=function(){if(!Bt)return null;var pn=P(Bt),fr={scrollHeight:Bt.scrollHeight,scrollWidth:Bt.scrollWidth};return{client:pn,page:C(pn,Le),scroll:ks(Bt),scrollSize:fr,shouldClipSubject:St}}(),Ut=rs({descriptor:ae,isEnabled:!He,isCombineEnabled:Ke,isFixedOnPage:_e.isFixedOnPage,direction:Ne,client:Ft,page:Dt,closest:Ot});return Ut},vo={passive:!1},Hl={passive:!0},_l=function(X){return X.shouldPublishImmediately?vo:Hl};function _o(X){var Q=Object(L.useContext)(X);return Q||q(!1),Q}var is=function(Q){return Q&&Q.env.closestScrollable||null};function bl(X){var Q=Object(L.useRef)(null),ae=_o(Hi),_e=wi("droppable"),Le=ae.registry,Ne=ae.marshal,He=$a(X),Ke=d(function(){return{id:X.droppableId,type:X.type,mode:X.mode}},[X.droppableId,X.mode,X.type]),St=Object(L.useRef)(Ke),Bt=d(function(){return O(function(Wr,Ma){Q.current||q(!1);var Aa={x:Wr,y:Ma};Ne.updateDroppableScroll(Ke.id,Aa)})},[Ke.id,Ne]),Ft=r(function(){var Wr=Q.current;return!Wr||!Wr.env.closestScrollable?ke:ks(Wr.env.closestScrollable)},[]),Dt=r(function(){var Wr=Ft();Bt(Wr.x,Wr.y)},[Ft,Bt]),Ot=d(function(){return D(Dt)},[Dt]),Ut=r(function(){var Wr=Q.current,Ma=is(Wr);Wr&&Ma||q(!1);var Aa=Wr.scrollOptions;if(Aa.shouldPublishImmediately){Dt();return}Ot()},[Ot,Dt]),pn=r(function(Wr,Ma){Q.current&&q(!1);var Aa=He.current,Ga=Aa.getDroppableRef();Ga||q(!1);var si=Ro(Ga),e={ref:Ga,descriptor:Ke,env:si,scrollOptions:Ma};Q.current=e;var u=as({ref:Ga,descriptor:Ke,env:si,windowScroll:Wr,direction:Aa.direction,isDropDisabled:Aa.isDropDisabled,isCombineEnabled:Aa.isCombineEnabled,shouldClipSubject:!Aa.ignoreContainerClipping}),j=si.closestScrollable;return j&&(j.setAttribute(jo.contextId,ae.contextId),j.addEventListener("scroll",Ut,_l(e.scrollOptions))),u},[ae.contextId,Ke,Ut,He]),fr=r(function(){var Wr=Q.current,Ma=is(Wr);return Wr&&Ma||q(!1),ks(Ma)},[]),_r=r(function(){var Wr=Q.current;Wr||q(!1);var Ma=is(Wr);if(Q.current=null,!Ma)return;Ot.cancel(),Ma.removeAttribute(jo.contextId),Ma.removeEventListener("scroll",Ut,_l(Wr.scrollOptions))},[Ut,Ot]),Nr=r(function(Wr){var Ma=Q.current;Ma||q(!1);var Aa=is(Ma);Aa||q(!1),Aa.scrollTop+=Wr.y,Aa.scrollLeft+=Wr.x},[]),Kr=d(function(){return{getDimensionAndWatchScroll:pn,getScrollWhileDragging:fr,dragStopped:_r,scroll:Nr}},[_r,pn,fr,Nr]),na=d(function(){return{uniqueId:_e,descriptor:Ke,callbacks:Kr}},[Kr,Ke,_e]);ai(function(){return St.current=na.descriptor,Le.droppable.register(na),function(){Q.current&&_r(),Le.droppable.unregister(na)}},[Kr,Ke,_r,na,Ne,Le.droppable]),ai(function(){if(!Q.current)return;Ne.updateDroppableIsEnabled(St.current.id,!X.isDropDisabled)},[X.isDropDisabled,Ne]),ai(function(){if(!Q.current)return;Ne.updateDroppableIsCombineEnabled(St.current.id,X.isCombineEnabled)},[X.isCombineEnabled,Ne])}function xs(){}var os={width:0,height:0,margin:_t},Zo=function(Q){var ae=Q.isAnimatingOpenOnMount,_e=Q.placeholder,Le=Q.animate;return ae||Le==="close"?os:{height:_e.client.borderBox.height,width:_e.client.borderBox.width,margin:_e.client.margin}},Us=function(Q){var ae=Q.isAnimatingOpenOnMount,_e=Q.placeholder,Le=Q.animate,Ne=Zo({isAnimatingOpenOnMount:ae,placeholder:_e,animate:Le});return{display:_e.display,boxSizing:"border-box",width:Ne.width,height:Ne.height,marginTop:Ne.margin.top,marginRight:Ne.margin.right,marginBottom:Ne.margin.bottom,marginLeft:Ne.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Le!=="none"?Vt.placeholder:null}};function js(X){var Q=Object(L.useRef)(null),ae=r(function(){if(!Q.current)return;clearTimeout(Q.current),Q.current=null},[]),_e=X.animate,Le=X.onTransitionEnd,Ne=X.onClose,He=X.contextId,Ke=Object(L.useState)(X.animate==="open"),St=Ke[0],Bt=Ke[1];Object(L.useEffect)(function(){return St?_e!=="open"?(ae(),Bt(!1),xs):Q.current?xs:(Q.current=setTimeout(function(){Q.current=null,Bt(!1)}),ae):xs},[_e,St,ae]);var Ft=r(function(Ot){if(Ot.propertyName!=="height")return;Le(),_e==="close"&&Ne()},[_e,Ne,Le]),Dt=Us({isAnimatingOpenOnMount:St,animate:X.animate,placeholder:X.placeholder});return p.a.createElement(X.placeholder.tagName,{style:Dt,"data-rbd-placeholder-context-id":He,onTransitionEnd:Ft,ref:X.innerRef})}var Bs=p.a.memo(js),Fs=p.a.createContext(null);function qo(X){X&&$i(X)||q(!1)}function Cs(X){return typeof X=="boolean"}function Ws(X,Q){Q.forEach(function(ae){return ae(X)})}var yl=[function(Q){var ae=Q.props;ae.droppableId||q(!1),typeof ae.droppableId=="string"||q(!1)},function(Q){var ae=Q.props;Cs(ae.isDropDisabled)||q(!1),Cs(ae.isCombineEnabled)||q(!1),Cs(ae.ignoreContainerClipping)||q(!1)},function(Q){var ae=Q.getDroppableRef;qo(ae())}],Ss=[function(Q){var ae=Q.props,_e=Q.getPlaceholderRef;if(!ae.placeholder)return;var Le=_e();if(Le)return}],Kl=[function(Q){var ae=Q.props;ae.renderClone||q(!1)},function(Q){var ae=Q.getPlaceholderRef;ae()&&q(!1)}];function Gl(X){Ei(function(){Ws(X,yl),X.props.mode==="standard"&&Ws(X,Ss),X.props.mode==="virtual"&&Ws(X,Kl)})}var ss=function(X){Object(A.a)(Q,X);function Q(){for(var _e,Le=arguments.length,Ne=new Array(Le),He=0;He<Le;He++)Ne[He]=arguments[He];return _e=X.call.apply(X,[this].concat(Ne))||this,_e.state={isVisible:Boolean(_e.props.on),data:_e.props.on,animate:_e.props.shouldAnimate&&_e.props.on?"open":"none"},_e.onClose=function(){if(_e.state.animate!=="close")return;_e.setState({isVisible:!1})},_e}Q.getDerivedStateFromProps=function(Le,Ne){return Le.shouldAnimate?Le.on?{isVisible:!0,data:Le.on,animate:"open"}:Ne.isVisible?{isVisible:!0,data:Ne.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(Le.on),data:Le.on,animate:"none"}};var ae=Q.prototype;return ae.render=function(){if(!this.state.isVisible)return null;var Le={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Le)},Q}(p.a.PureComponent),Hs={dragging:5e3,dropAnimating:4500},El=function(Q,ae){return ae?Vt.drop(ae.duration):Q?Vt.snap:Vt.fluid},zl=function(Q,ae){return Q?ae?pt.opacity.drop:pt.opacity.combining:null},Ks=function(Q){return Q.forceShouldAnimate!=null?Q.forceShouldAnimate:Q.mode==="SNAP"};function xl(X){var Q=X.dimension,ae=Q.client,_e=X.offset,Le=X.combineWith,Ne=X.dropping,He=Boolean(Le),Ke=Ks(X),St=Boolean(Ne),Bt=St?sn.drop(_e,He):sn.moveTo(_e),Ft={position:"fixed",top:ae.marginBox.top,left:ae.marginBox.left,boxSizing:"border-box",width:ae.borderBox.width,height:ae.borderBox.height,transition:El(Ke,Ne),transform:Bt,opacity:zl(He,St),zIndex:St?Hs.dropAnimating:Hs.dragging,pointerEvents:"none"};return Ft}function Vl(X){return{transform:sn.moveTo(X.offset),transition:X.shouldAnimateDisplacement?null:"none"}}function Cl(X){return X.type==="DRAGGING"?xl(X):Vl(X)}function Sl(X,Q,ae){ae===void 0&&(ae=ke);var _e=window.getComputedStyle(Q),Le=Q.getBoundingClientRect(),Ne=v(Le,_e),He=C(Ne,ae),Ke={client:Ne,tagName:Q.tagName.toLowerCase(),display:_e.display},St={x:Ne.marginBox.width,y:Ne.marginBox.height},Bt={descriptor:X,placeholder:Ke,displaceBy:St,client:Ne,page:He};return Bt}function Xl(X){var Q=wi("draggable"),ae=X.descriptor,_e=X.registry,Le=X.getDraggableRef,Ne=X.canDragInteractiveElements,He=X.shouldRespectForcePress,Ke=X.isEnabled,St=d(function(){return{canDragInteractiveElements:Ne,shouldRespectForcePress:He,isEnabled:Ke}},[Ne,Ke,He]),Bt=r(function(Ut){var pn=Le();return pn||q(!1),Sl(ae,pn,Ut)},[ae,Le]),Ft=d(function(){return{uniqueId:Q,descriptor:ae,options:St,getDimension:Bt}},[ae,Bt,St,Q]),Dt=Object(L.useRef)(Ft),Ot=Object(L.useRef)(!0);ai(function(){return _e.draggable.register(Dt.current),function(){return _e.draggable.unregister(Dt.current)}},[_e.draggable]),ai(function(){if(Ot.current){Ot.current=!1;return}var Ut=Dt.current;Dt.current=Ft,_e.draggable.update(Ft,Ut)},[Ft,_e.draggable])}function Gs(X,Q,ae){Ei(function(){function _e(Ne){return"Draggable[id: "+Ne+"]: "}var Le=X.draggableId;if(Le||q(!1),typeof Le=="string"||q(!1),Ve(X.index)||q(!1),X.mapped.type==="DRAGGING")return;qo(ae()),X.isEnabled&&(Wi(Q,Le)||q(!1))})}function ls(X){Fa(function(){var Q=Object(L.useRef)(X);Ei(function(){X===Q.current||q(!1)},[X])})}function us(X){X.preventDefault()}function Yl(X){var Q=Object(L.useRef)(null),ae=r(function(e){Q.current=e},[]),_e=r(function(){return Q.current},[]),Le=_o(Hi),Ne=Le.contextId,He=Le.dragHandleUsageInstructionsId,Ke=Le.registry,St=_o(Fs),Bt=St.type,Ft=St.droppableId,Dt=d(function(){return{id:X.draggableId,index:X.index,type:Bt,droppableId:Ft}},[X.draggableId,X.index,Bt,Ft]),Ot=X.children,Ut=X.draggableId,pn=X.isEnabled,fr=X.shouldRespectForcePress,_r=X.canDragInteractiveElements,Nr=X.isClone,Kr=X.mapped,na=X.dropAnimationFinished;if(Gs(X,Ne,_e),ls(Nr),!Nr){var Wr=d(function(){return{descriptor:Dt,registry:Ke,getDraggableRef:_e,canDragInteractiveElements:_r,shouldRespectForcePress:fr,isEnabled:pn}},[Dt,Ke,_e,_r,fr,pn]);Xl(Wr)}var Ma=d(function(){return pn?{tabIndex:0,role:"button","aria-describedby":He,"data-rbd-drag-handle-draggable-id":Ut,"data-rbd-drag-handle-context-id":Ne,draggable:!1,onDragStart:us}:null},[Ne,He,Ut,pn]),Aa=r(function(e){if(Kr.type!=="DRAGGING")return;if(!Kr.dropping)return;if(e.propertyName!=="transform")return;na()},[na,Kr]),Ga=d(function(){var e=Cl(Kr),u=Kr.type==="DRAGGING"&&Kr.dropping?Aa:null,j={innerRef:ae,draggableProps:{"data-rbd-draggable-context-id":Ne,"data-rbd-draggable-id":Ut,style:e,onTransitionEnd:u},dragHandleProps:Ma};return j},[Ne,Ma,Ut,Kr,Aa,ae]),si=d(function(){return{draggableId:Dt.id,type:Dt.type,source:{index:Dt.index,droppableId:Dt.droppableId}}},[Dt.droppableId,Dt.id,Dt.index,Dt.type]);return Ot(Ga,Kr.snapshot,si)}var zs=function(X,Q){return X===Q},wl=function(X){var Q=X.combine,ae=X.destination;return ae?ae.droppableId:Q?Q.droppableId:null},Jl=function(Q){return Q.combine?Q.combine.draggableId:null},Ql=function(Q){return Q.at&&Q.at.type==="COMBINE"?Q.at.combine.draggableId:null};function Zl(){var X=O(function(Le,Ne){return{x:Le,y:Ne}}),Q=O(function(Le,Ne,He,Ke,St){return{isDragging:!0,isClone:Ne,isDropAnimating:Boolean(St),dropAnimation:St,mode:Le,draggingOver:He,combineWith:Ke,combineTargetFor:null}}),ae=O(function(Le,Ne,He,Ke,St,Bt,Ft){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:St,combineWith:Bt,mode:Ne,offset:Le,dimension:He,forceShouldAnimate:Ft,snapshot:Q(Ne,Ke,St,Bt,null)}}}),_e=function(Ne,He){if(Ne.isDragging){if(Ne.critical.draggable.id!==He.draggableId)return null;var Ke=Ne.current.client.offset,St=Ne.dimensions.draggables[He.draggableId],Bt=Wt(Ne.impact),Ft=Ql(Ne.impact),Dt=Ne.forceShouldAnimate;return ae(X(Ke.x,Ke.y),Ne.movementMode,St,He.isClone,Bt,Ft,Dt)}if(Ne.phase==="DROP_ANIMATING"){var Ot=Ne.completed;if(Ot.result.draggableId!==He.draggableId)return null;var Ut=He.isClone,pn=Ne.dimensions.draggables[He.draggableId],fr=Ot.result,_r=fr.mode,Nr=wl(fr),Kr=Jl(fr),na=Ne.dropDuration,Wr={duration:na,curve:qe.drop,moveTo:Ne.newHomeClientOffset,opacity:Kr?pt.opacity.drop:null,scale:Kr?pt.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Ne.newHomeClientOffset,dimension:pn,dropping:Wr,draggingOver:Nr,combineWith:Kr,mode:_r,forceShouldAnimate:null,snapshot:Q(_r,Ut,Nr,Kr,Wr)}}}return null};return _e}function Vs(X){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:X,combineWith:null}}var ql={mapped:{type:"SECONDARY",offset:ke,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Vs(null)}};function $l(){var X=O(function(He,Ke){return{x:He,y:Ke}}),Q=O(Vs),ae=O(function(He,Ke,St){return Ke===void 0&&(Ke=null),{mapped:{type:"SECONDARY",offset:He,combineTargetFor:Ke,shouldAnimateDisplacement:St,snapshot:Q(Ke)}}}),_e=function(Ke){return Ke?ae(ke,Ke,!0):null},Le=function(Ke,St,Bt,Ft){var Dt=Bt.displaced.visible[Ke],Ot=Boolean(Ft.inVirtualList&&Ft.effected[Ke]),Ut=nt(Bt),pn=Ut&&Ut.draggableId===Ke?St:null;if(!Dt){if(!Ot)return _e(pn);if(Bt.displaced.invisible[Ke])return null;var fr=Et(Ft.displacedBy.point),_r=X(fr.x,fr.y);return ae(_r,pn,!0)}if(Ot)return _e(pn);var Nr=Bt.displacedBy.point,Kr=X(Nr.x,Nr.y);return ae(Kr,pn,Dt.shouldAnimate)},Ne=function(Ke,St){if(Ke.isDragging)return Ke.critical.draggable.id===St.draggableId?null:Le(St.draggableId,Ke.critical.draggable.id,Ke.impact,Ke.afterCritical);if(Ke.phase==="DROP_ANIMATING"){var Bt=Ke.completed;return Bt.result.draggableId===St.draggableId?null:Le(St.draggableId,Bt.result.draggableId,Bt.impact,Bt.afterCritical)}return null};return Ne}var Ol=function(){var Q=Zl(),ae=$l(),_e=function(Ne,He){return Q(Ne,He)||ae(Ne,He)||ql};return _e},Xs={dropAnimationFinished:at},Tl=Object(S.c)(Ol,Xs,null,{context:lo,pure:!0,areStatePropsEqual:zs})(Yl);function Al(X){var Q=_o(Fs),ae=Q.isUsingCloneFor;return ae===X.draggableId&&!X.isClone?null:p.a.createElement(Tl,X)}function Dl(X){var Q=typeof X.isDragDisabled=="boolean"?!X.isDragDisabled:!0,ae=Boolean(X.disableInteractiveElementBlocking),_e=Boolean(X.shouldRespectForcePress);return p.a.createElement(Al,Object(b.a)({},X,{isClone:!1,isEnabled:Q,canDragInteractiveElements:ae,shouldRespectForcePress:_e}))}function $o(X){var Q=Object(L.useContext)(Hi);Q||q(!1);var ae=Q.contextId,_e=Q.isMovementAllowed,Le=Object(L.useRef)(null),Ne=Object(L.useRef)(null),He=X.children,Ke=X.droppableId,St=X.type,Bt=X.mode,Ft=X.direction,Dt=X.ignoreContainerClipping,Ot=X.isDropDisabled,Ut=X.isCombineEnabled,pn=X.snapshot,fr=X.useClone,_r=X.updateViewportMaxScroll,Nr=X.getContainerForClone,Kr=r(function(){return Le.current},[]),na=r(function(U){Le.current=U},[]),Wr=r(function(){return Ne.current},[]),Ma=r(function(U){Ne.current=U},[]);Gl({props:X,getDroppableRef:Kr,getPlaceholderRef:Wr});var Aa=r(function(){_e()&&_r({maxScroll:bi()})},[_e,_r]);bl({droppableId:Ke,type:St,mode:Bt,direction:Ft,isDropDisabled:Ot,isCombineEnabled:Ut,ignoreContainerClipping:Dt,getDroppableRef:Kr});var Ga=p.a.createElement(ss,{on:X.placeholder,shouldAnimate:X.shouldAnimatePlaceholder},function(U){var H=U.onClose,ee=U.data,ge=U.animate;return p.a.createElement(Bs,{placeholder:ee,onClose:H,innerRef:Ma,animate:ge,contextId:ae,onTransitionEnd:Aa})}),si=d(function(){return{innerRef:na,placeholder:Ga,droppableProps:{"data-rbd-droppable-id":Ke,"data-rbd-droppable-context-id":ae}}},[ae,Ke,Ga,na]),e=fr?fr.dragging.draggableId:null,u=d(function(){return{droppableId:Ke,type:St,isUsingCloneFor:e}},[Ke,e,St]);function j(){if(!fr)return null;var U=fr.dragging,H=fr.render,ee=p.a.createElement(Al,{draggableId:U.draggableId,index:U.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ge,Ce){return H(ge,Ce,U)});return V.a.createPortal(ee,Nr())}return p.a.createElement(Fs.Provider,{value:u},He(si,pn),j())}var ws=function(Q,ae){return Q===ae.droppable.type},cs=function(Q,ae){return ae.draggables[Q.draggable.id]},eu=function(){var Q={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ae=Object(b.a)({},Q,{shouldAnimatePlaceholder:!1}),_e=O(function(He){return{draggableId:He.id,type:He.type,source:{index:He.index,droppableId:He.droppableId}}}),Le=O(function(He,Ke,St,Bt,Ft,Dt){var Ot=Ft.descriptor.id,Ut=Ft.descriptor.droppableId===He;if(Ut){var pn=Dt?{render:Dt,dragging:_e(Ft.descriptor)}:null,fr={isDraggingOver:St,draggingOverWith:St?Ot:null,draggingFromThisWith:Ot,isUsingPlaceholder:!0};return{placeholder:Ft.placeholder,shouldAnimatePlaceholder:!1,snapshot:fr,useClone:pn}}if(!Ke)return ae;if(!Bt)return Q;var _r={isDraggingOver:St,draggingOverWith:Ot,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Ft.placeholder,shouldAnimatePlaceholder:!0,snapshot:_r,useClone:null}}),Ne=function(Ke,St){var Bt=St.droppableId,Ft=St.type,Dt=!St.isDropDisabled,Ot=St.renderClone;if(Ke.isDragging){var Ut=Ke.critical;if(!ws(Ft,Ut))return ae;var pn=cs(Ut,Ke.dimensions),fr=Wt(Ke.impact)===Bt;return Le(Bt,Dt,fr,fr,pn,Ot)}if(Ke.phase==="DROP_ANIMATING"){var _r=Ke.completed;if(!ws(Ft,_r.critical))return ae;var Nr=cs(_r.critical,Ke.dimensions);return Le(Bt,Dt,wl(_r.result)===Bt,Wt(_r.impact)===Bt,Nr,Ot)}if(Ke.phase==="IDLE"&&Ke.completed&&!Ke.shouldFlush){var Kr=Ke.completed;if(!ws(Ft,Kr.critical))return ae;var na=Wt(Kr.impact)===Bt,Wr=Boolean(Kr.impact.at&&Kr.impact.at.type==="COMBINE"),Ma=Kr.critical.droppable.id===Bt;return na?Wr?Q:ae:Ma?Q:ae}return ae};return Ne},tu={updateViewportMaxScroll:Xr};function nu(){return document.body||q(!1),document.body}var Ya={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nu},Rl=Object(S.c)(eu,tu,null,{context:lo,pure:!0,areStatePropsEqual:zs})($o);Rl.defaultProps=Ya},nukY:function(M,Y){M.exports="data:image/png;base64,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"},oRuE:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return L.pad.Iso10126={pad:function(p,A){var b=A*4,y=b-p.sigBytes%b;p.concat(L.lib.WordArray.random(y-1)).concat(L.lib.WordArray.create([y<<24],1))},unpad:function(p){var A=p.words[p.sigBytes-1>>>2]&255;p.sigBytes-=A}},L.pad.Iso10126})},oaGz:function(M,Y,s){M.exports={bg:"bg___24uy8",wrap:"wrap___14NGB",modal:"modal___2LUSY",content:"content___uJSz1",head:"head___1b8cM",headCount:"headCount___8qSbD",button:"button___3uWW2",itemWrap:"itemWrap___30TsE",imgWrap:"imgWrap___2LXqq",img:"img___3JUpQ",manager:"manager___VrVN1",itemContent:"itemContent___gyTTk",nameWrap:"nameWrap___3WMS2",name:"name___2ym5i",actionGroup:"actionGroup___8xT17",deleteIcon:"deleteIcon___24yPS",schoolWrap:"schoolWrap___23Lyd",school:"school___1PzsI",countWrap:"countWrap___8XfQc",deletetitle:"deletetitle___2yGtk",yseTitle:"yseTitle___sqFvw"}},ogmK:function(M,Y,s){"use strict";s.d(Y,"a",function(){return fa});var L=s("1OyB"),p=s("vuIU"),A=s("Ji7U"),b=s("LK+K"),y=s("rePB"),S=s("VTBJ"),T=s("ODXe"),h=s("cDcd"),_=s("TSYQ"),d=s.n(_),r=s("Kwbf"),c=s("6cGi"),t=s("U8pU"),a=s("4IlW"),n=h.createContext({}),i=n,f={visibility:"hidden"};function l(ye){var st=ye.prefixCls,It=ye.prevIcon,At=It===void 0?"\u2039":It,Wt=ye.nextIcon,Nt=Wt===void 0?"\u203A":Wt,Xt=ye.superPrevIcon,en=Xt===void 0?"\xAB":Xt,yn=ye.superNextIcon,mn=yn===void 0?"\xBB":yn,jn=ye.onSuperPrev,Dn=ye.onSuperNext,nn=ye.onPrev,Mn=ye.onNext,bn=ye.children,Bn=h.useContext(i),Pn=Bn.hideNextBtn,er=Bn.hidePrevBtn;return h.createElement("div",{className:st},jn&&h.createElement("button",{type:"button",onClick:jn,tabIndex:-1,className:"".concat(st,"-super-prev-btn"),style:er?f:{}},en),nn&&h.createElement("button",{type:"button",onClick:nn,tabIndex:-1,className:"".concat(st,"-prev-btn"),style:er?f:{}},At),h.createElement("div",{className:"".concat(st,"-view")},bn),Mn&&h.createElement("button",{type:"button",onClick:Mn,tabIndex:-1,className:"".concat(st,"-next-btn"),style:Pn?f:{}},Nt),Dn&&h.createElement("button",{type:"button",onClick:Dn,tabIndex:-1,className:"".concat(st,"-super-next-btn"),style:Pn?f:{}},mn))}var o=l;function m(ye){var st=h.useContext(i),It=st.hideHeader;if(It)return null;var At=ye.prefixCls,Wt=ye.generateConfig,Nt=ye.locale,Xt=ye.value,en=ye.format,yn="".concat(At,"-header");return h.createElement(o,{prefixCls:yn},Xt?Wt.locale.format(Nt.locale,Xt,en):"\xA0")}var w=m,C=s("YrtM"),v=s("KQm4"),P=new Map;function R(ye,st,It){if(P.get(ye)&&cancelAnimationFrame(P.get(ye)),It<=0){P.set(ye,requestAnimationFrame(function(){ye.scrollTop=st}));return}var At=st-ye.scrollTop,Wt=At/It*10;P.set(ye,requestAnimationFrame(function(){ye.scrollTop+=Wt,ye.scrollTop!==st&&R(ye,st,It-10)}))}function E(ye,st){var It=st.onLeftRight,At=st.onCtrlLeftRight,Wt=st.onUpDown,Nt=st.onPageUpDown,Xt=st.onEnter,en=ye.which,yn=ye.ctrlKey,mn=ye.metaKey;switch(en){case a.a.LEFT:if(yn||mn){if(At)return At(-1),!0}else if(It)return It(-1),!0;break;case a.a.RIGHT:if(yn||mn){if(At)return At(1),!0}else if(It)return It(1),!0;break;case a.a.UP:if(Wt)return Wt(-1),!0;break;case a.a.DOWN:if(Wt)return Wt(1),!0;break;case a.a.PAGE_UP:if(Nt)return Nt(-1),!0;break;case a.a.PAGE_DOWN:if(Nt)return Nt(1),!0;break;case a.a.ENTER:if(Xt)return Xt(),!0;break}return!1}function x(ye,st,It,At){var Wt=ye;if(!Wt)switch(st){case"time":Wt=At?"hh:mm:ss a":"HH:mm:ss";break;case"week":Wt="gggg-wo";break;case"month":Wt="YYYY-MM";break;case"quarter":Wt="YYYY-[Q]Q";break;case"year":Wt="YYYY";break;default:Wt=It?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Wt}function g(ye,st){var It=ye==="time"?8:10;return Math.max(It,st.length)+2}var O=null,I=new Set;function D(ye){return!O&&typeof window!="undefined"&&window.addEventListener&&(O=function(It){Object(v.a)(I).forEach(function(At){At(It)})},window.addEventListener("mousedown",O)),I.add(ye),function(){I.delete(ye),I.size===0&&(window.removeEventListener("mousedown",O),O=null)}}var N=function(st){return st==="month"||st==="date"?"year":st},V=function(st){return st==="date"?"month":st},F=function(st){return st==="month"||st==="date"?"quarter":st},W=function(st){return st==="date"?"week":st},K={year:N,month:V,quarter:F,week:W,time:null,date:null};function B(ye,st){return ye.some(function(It){return It&&It.contains(st)})}function k(ye){var st=ye.prefixCls,It=ye.units,At=ye.onSelect,Wt=ye.value,Nt=ye.active,Xt=ye.hideDisabledOptions,en="".concat(st,"-cell"),yn=h.useContext(i),mn=yn.open,jn=h.useRef(null),Dn=h.useRef(new Map);return h.useLayoutEffect(function(){var nn=Dn.current.get(Wt);nn&&mn!==!1&&R(jn.current,nn.offsetTop,120)},[Wt]),h.useLayoutEffect(function(){if(mn){var nn=Dn.current.get(Wt);nn&&R(jn.current,nn.offsetTop,0)}},[mn]),h.createElement("ul",{className:d()("".concat(st,"-column"),Object(y.a)({},"".concat(st,"-column-active"),Nt)),ref:jn,style:{position:"relative"}},It.map(function(nn){var Mn;return Xt&&nn.disabled?null:h.createElement("li",{key:nn.value,ref:function(Bn){Dn.current.set(nn.value,Bn)},className:d()(en,(Mn={},Object(y.a)(Mn,"".concat(en,"-disabled"),nn.disabled),Object(y.a)(Mn,"".concat(en,"-selected"),Wt===nn.value),Mn)),onClick:function(){if(nn.disabled)return;At(nn.value)}},h.createElement("div",{className:"".concat(en,"-inner")},nn.label))}))}var G=k;function ne(ye,st){for(var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",At=String(ye);At.length<st;)At="".concat(It).concat(ye);return At}var fe=function(){for(var st=arguments.length,It=new Array(st),At=0;At<st;At++)It[At]=arguments[At];return It};function de(ye){return ye==null?[]:Array.isArray(ye)?ye:[ye]}function Ee(ye){var st={};return Object.keys(ye).forEach(function(It){(It.substr(0,5)==="data-"||It.substr(0,5)==="aria-"||It==="role"||It==="name")&&It.substr(0,7)!=="data-__"&&(st[It]=ye[It])}),st}function we(ye,st){return ye?ye[st]:null}function ce(ye,st,It){var At=[we(ye,0),we(ye,1)];return At[It]=typeof st=="function"?st(At[It]):st,!At[0]&&!At[1]?null:At}function be(ye,st,It,At,Wt){var Nt=ye.setHour(st,It);return Nt=ye.setMinute(Nt,At),Nt=ye.setSecond(Nt,Wt),Nt}function ve(ye,st,It,At,Wt,Nt){var Xt=Math.floor(ye/At)*At;if(Xt<ye)return[Xt,60-Wt,60-Nt];var en=Math.floor(st/Wt)*Wt;if(en<st)return[Xt,en,60-Nt];var yn=Math.floor(It/Nt)*Nt;return[Xt,en,yn]}function ue(ye,st){if(ye.length!==st.length)return!0;for(var It=0;It<ye.length;It+=1)if(ye[It].disabled!==st[It].disabled)return!0;return!1}function se(ye,st,It,At){for(var Wt=[],Nt=ye;Nt<=st;Nt+=It)Wt.push({label:ne(Nt,2),value:Nt,disabled:(At||[]).includes(Nt)});return Wt}function q(ye){var st=ye.generateConfig,It=ye.prefixCls,At=ye.operationRef,Wt=ye.activeColumnIndex,Nt=ye.value,Xt=ye.showHour,en=ye.showMinute,yn=ye.showSecond,mn=ye.use12Hours,jn=ye.hourStep,Dn=jn===void 0?1:jn,nn=ye.minuteStep,Mn=nn===void 0?1:nn,bn=ye.secondStep,Bn=bn===void 0?1:bn,Pn=ye.disabledHours,er=ye.disabledMinutes,vr=ye.disabledSeconds,Br=ye.hideDisabledOptions,Sn=ye.onSelect,Yt=[],cn="".concat(It,"-content"),Rn="".concat(It,"-time-panel"),qt,On=Nt?st.getHour(Nt):-1,gn=Nt?st.getMinute(Nt):-1,In=Nt?st.getSecond(Nt):-1,Fn=function(Qt,Jt,Xn,ir){var kn=Nt||st.getNow(),lr=Math.max(0,Jt),hr=Math.max(0,Xn),cr=Math.max(0,ir);return kn=be(st,kn,!mn||!Qt?lr:lr+12,hr,cr),kn},ur=se(0,23,Dn,Pn&&Pn()),ar=Object(C.a)(function(){return ur},ur,ue);mn&&(qt=On>=12,On%=12);var Rr=h.useMemo(function(){if(!mn)return[!1,!1];var Kt=[!0,!0];return ar.forEach(function(Qt){var Jt=Qt.disabled,Xn=Qt.value;if(Jt)return;Xn>=12?Kt[1]=!1:Kt[0]=!1}),Kt},[mn,ar]),Ir=Object(T.a)(Rr,2),tr=Ir[0],Dr=Ir[1],br=h.useMemo(function(){return mn?ar.filter(qt?function(Kt){return Kt.value>=12}:function(Kt){return Kt.value<12}).map(function(Kt){var Qt=Kt.value%12,Jt=Qt===0?"12":ne(Qt,2);return Object(S.a)(Object(S.a)({},Kt),{},{label:Jt,value:Qt})}):ar},[mn,ar]),Gr=se(0,59,Mn,er&&er(On)),Lr=se(0,59,Bn,vr&&vr(On,gn));At.current={onUpDown:function(Qt){var Jt=Yt[Wt];if(Jt)for(var Xn=Jt.units.findIndex(function(hr){return hr.value===Jt.value}),ir=Jt.units.length,kn=1;kn<ir;kn+=1){var lr=Jt.units[(Xn+Qt*kn+ir)%ir];if(lr.disabled!==!0){Jt.onSelect(lr.value);break}}}};function qr(Kt,Qt,Jt,Xn,ir){Kt!==!1&&Yt.push({node:h.cloneElement(Qt,{prefixCls:Rn,value:Jt,active:Wt===Yt.length,onSelect:ir,units:Xn,hideDisabledOptions:Br}),onSelect:ir,value:Jt,units:Xn})}qr(Xt,h.createElement(G,{key:"hour"}),On,br,function(Kt){Sn(Fn(qt,Kt,gn,In),"mouse")}),qr(en,h.createElement(G,{key:"minute"}),gn,Gr,function(Kt){Sn(Fn(qt,On,Kt,In),"mouse")}),qr(yn,h.createElement(G,{key:"second"}),In,Lr,function(Kt){Sn(Fn(qt,On,gn,Kt),"mouse")});var sr=-1;return typeof qt=="boolean"&&(sr=qt?1:0),qr(mn===!0,h.createElement(G,{key:"12hours"}),sr,[{label:"AM",value:0,disabled:tr},{label:"PM",value:1,disabled:Dr}],function(Kt){Sn(Fn(!!Kt,On,gn,In),"mouse")}),h.createElement("div",{className:cn},Yt.map(function(Kt){var Qt=Kt.node;return Qt}))}var me=q,re=function(st){return st.filter(function(It){return It!==!1}).length};function ie(ye){var st=ye.generateConfig,It=ye.format,At=It===void 0?"HH:mm:ss":It,Wt=ye.prefixCls,Nt=ye.active,Xt=ye.operationRef,en=ye.showHour,yn=ye.showMinute,mn=ye.showSecond,jn=ye.use12Hours,Dn=jn===void 0?!1:jn,nn=ye.onSelect,Mn=ye.value,bn="".concat(Wt,"-time-panel"),Bn=h.useRef(),Pn=h.useState(-1),er=Object(T.a)(Pn,2),vr=er[0],Br=er[1],Sn=re([en,yn,mn,Dn]);return Xt.current={onKeyDown:function(cn){return E(cn,{onLeftRight:function(qt){Br((vr+qt+Sn)%Sn)},onUpDown:function(qt){vr===-1?Br(0):Bn.current&&Bn.current.onUpDown(qt)},onEnter:function(){nn(Mn||st.getNow(),"key"),Br(-1)}})},onBlur:function(){Br(-1)}},h.createElement("div",{className:d()(bn,Object(y.a)({},"".concat(bn,"-active"),Nt))},h.createElement(w,Object.assign({},ye,{format:At,prefixCls:Wt})),h.createElement(me,Object.assign({},ye,{prefixCls:Wt,activeColumnIndex:vr,operationRef:Bn})))}var Oe=ie,le=7;function $(ye,st){return!ye&&!st?!0:!ye||!st?!1:void 0}function J(ye,st,It){var At=$(st,It);if(typeof At=="boolean")return At;var Wt=Math.floor(ye.getYear(st)/10),Nt=Math.floor(ye.getYear(It)/10);return Wt===Nt}function te(ye,st,It){var At=$(st,It);return typeof At=="boolean"?At:ye.getYear(st)===ye.getYear(It)}function Ae(ye,st){var It=Math.floor(ye.getMonth(st)/3);return It+1}function Se(ye,st,It){var At=$(st,It);return typeof At=="boolean"?At:te(ye,st,It)&&Ae(ye,st)===Ae(ye,It)}function ke(ye,st,It){var At=$(st,It);return typeof At=="boolean"?At:te(ye,st,It)&&ye.getMonth(st)===ye.getMonth(It)}function rt(ye,st,It){var At=$(st,It);return typeof At=="boolean"?At:ye.getYear(st)===ye.getYear(It)&&ye.getMonth(st)===ye.getMonth(It)&&ye.getDate(st)===ye.getDate(It)}function ot(ye,st,It){var At=$(st,It);return typeof At=="boolean"?At:ye.getHour(st)===ye.getHour(It)&&ye.getMinute(st)===ye.getMinute(It)&&ye.getSecond(st)===ye.getSecond(It)}function gt(ye,st,It,At){var Wt=$(It,At);return typeof Wt=="boolean"?Wt:ye.locale.getWeek(st,It)===ye.locale.getWeek(st,At)}function Et(ye,st,It){return rt(ye,st,It)&&ot(ye,st,It)}function Ct(ye,st,It,At){return!st||!It||!At?!1:!rt(ye,st,At)&&!rt(ye,It,At)&&ye.isAfter(At,st)&&ye.isAfter(It,At)}function wt(ye,st,It){var At=st.locale.getWeekFirstDay(ye),Wt=st.setDate(It,1),Nt=st.getWeekDay(Wt),Xt=st.addDate(Wt,At-Nt);return st.getMonth(Xt)===st.getMonth(It)&&st.getDate(Xt)>1&&(Xt=st.addDate(Xt,-7)),Xt}function Qe(ye,st,It){var At=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(st){case"year":return It.addYear(ye,At*10);case"quarter":case"month":return It.addYear(ye,At);default:return It.addMonth(ye,At)}}var Ue=h.createContext({}),ft=Ue;function jt(ye){var st=ye.cellPrefixCls,It=ye.generateConfig,At=ye.rangedValue,Wt=ye.hoverRangedValue,Nt=ye.isInView,Xt=ye.isSameCell,en=ye.offsetCell,yn=ye.today,mn=ye.value;function jn(Dn){var nn,Mn=en(Dn,-1),bn=en(Dn,1),Bn=we(At,0),Pn=we(At,1),er=we(Wt,0),vr=we(Wt,1),Br=Ct(It,er,vr,Dn);function Sn(gn){return Xt(Bn,gn)}function Yt(gn){return Xt(Pn,gn)}var cn=Xt(er,Dn),Rn=Xt(vr,Dn),qt=(Br||Rn)&&(!Nt(Mn)||Yt(Mn)),On=(Br||cn)&&(!Nt(bn)||Sn(bn));return nn={},Object(y.a)(nn,"".concat(st,"-in-view"),Nt(Dn)),Object(y.a)(nn,"".concat(st,"-in-range"),Ct(It,Bn,Pn,Dn)),Object(y.a)(nn,"".concat(st,"-range-start"),Sn(Dn)),Object(y.a)(nn,"".concat(st,"-range-end"),Yt(Dn)),Object(y.a)(nn,"".concat(st,"-range-start-single"),Sn(Dn)&&!Pn),Object(y.a)(nn,"".concat(st,"-range-end-single"),Yt(Dn)&&!Bn),Object(y.a)(nn,"".concat(st,"-range-start-near-hover"),Sn(Dn)&&(Xt(Mn,er)||Ct(It,er,vr,Mn))),Object(y.a)(nn,"".concat(st,"-range-end-near-hover"),Yt(Dn)&&(Xt(bn,vr)||Ct(It,er,vr,bn))),Object(y.a)(nn,"".concat(st,"-range-hover"),Br),Object(y.a)(nn,"".concat(st,"-range-hover-start"),cn),Object(y.a)(nn,"".concat(st,"-range-hover-end"),Rn),Object(y.a)(nn,"".concat(st,"-range-hover-edge-start"),qt),Object(y.a)(nn,"".concat(st,"-range-hover-edge-end"),On),Object(y.a)(nn,"".concat(st,"-range-hover-edge-start-near-range"),qt&&Xt(Mn,Pn)),Object(y.a)(nn,"".concat(st,"-range-hover-edge-end-near-range"),On&&Xt(bn,Bn)),Object(y.a)(nn,"".concat(st,"-today"),Xt(yn,Dn)),Object(y.a)(nn,"".concat(st,"-selected"),Xt(mn,Dn)),nn}return jn}function ht(ye){for(var st=ye.prefixCls,It=ye.disabledDate,At=ye.onSelect,Wt=ye.rowNum,Nt=ye.colNum,Xt=ye.prefixColumn,en=ye.rowClassName,yn=ye.baseDate,mn=ye.getCellClassName,jn=ye.getCellText,Dn=ye.getCellNode,nn=ye.getCellDate,Mn=ye.titleCell,bn=ye.headerCells,Bn=h.useContext(i),Pn=Bn.onDateMouseEnter,er=Bn.onDateMouseLeave,vr="".concat(st,"-cell"),Br=[],Sn=0;Sn<Wt;Sn+=1){for(var Yt=[],cn=void 0,Rn=function(gn){var In=Sn*Nt+gn,Fn=nn(yn,In),ur=It&&It(Fn);gn===0&&(cn=Fn,Xt&&Yt.push(Xt(cn))),Yt.push(h.createElement("td",{key:gn,title:Mn&&Mn(Fn),className:d()(vr,Object(S.a)(Object(y.a)({},"".concat(vr,"-disabled"),ur),mn(Fn))),onClick:function(){ur||At(Fn)},onMouseEnter:function(){!ur&&Pn&&Pn(Fn)},onMouseLeave:function(){!ur&&er&&er(Fn)}},Dn?Dn(Fn):h.createElement("div",{className:"".concat(vr,"-inner")},jn(Fn))))},qt=0;qt<Nt;qt+=1)Rn(qt);Br.push(h.createElement("tr",{key:Sn,className:en&&en(cn)},Yt))}return h.createElement("div",{className:"".concat(st,"-body")},h.createElement("table",{className:"".concat(st,"-content")},bn&&h.createElement("thead",null,h.createElement("tr",null,bn)),h.createElement("tbody",null,Br)))}function _t(ye){var st=ye.prefixCls,It=ye.generateConfig,At=ye.prefixColumn,Wt=ye.locale,Nt=ye.rowCount,Xt=ye.viewDate,en=ye.value,yn=ye.dateRender,mn=h.useContext(ft),jn=mn.rangedValue,Dn=mn.hoverRangedValue,nn=wt(Wt.locale,It,Xt),Mn="".concat(st,"-cell"),bn=It.locale.getWeekFirstDay(Wt.locale),Bn=It.getNow(),Pn=[],er=Wt.shortWeekDays||(It.locale.getShortWeekDays?It.locale.getShortWeekDays(Wt.locale):[]);At&&Pn.push(h.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var vr=0;vr<le;vr+=1)Pn.push(h.createElement("th",{key:vr},er[(vr+bn)%le]));var Br=jt({cellPrefixCls:Mn,today:Bn,value:en,generateConfig:It,rangedValue:At?null:jn,hoverRangedValue:At?null:Dn,isSameCell:function(cn,Rn){return rt(It,cn,Rn)},isInView:function(cn){return ke(It,cn,Xt)},offsetCell:function(cn,Rn){return It.addDate(cn,Rn)}}),Sn=yn?function(Yt){return yn(Yt,Bn)}:void 0;return h.createElement(ht,Object.assign({},ye,{rowNum:Nt,colNum:le,baseDate:nn,getCellNode:Sn,getCellText:It.getDate,getCellClassName:Br,getCellDate:It.addDate,titleCell:function(cn){return It.locale.format(Wt.locale,cn,"YYYY-MM-DD")},headerCells:Pn}))}var Ye=_t;function We(ye){var st=ye.prefixCls,It=ye.generateConfig,At=ye.locale,Wt=ye.viewDate,Nt=ye.onNextMonth,Xt=ye.onPrevMonth,en=ye.onNextYear,yn=ye.onPrevYear,mn=ye.onYearClick,jn=ye.onMonthClick,Dn=h.useContext(i),nn=Dn.hideHeader;if(nn)return null;var Mn="".concat(st,"-header"),bn=At.shortMonths||(It.locale.getShortMonths?It.locale.getShortMonths(At.locale):[]),Bn=It.getMonth(Wt),Pn=h.createElement("button",{type:"button",key:"year",onClick:mn,tabIndex:-1,className:"".concat(st,"-year-btn")},It.locale.format(At.locale,Wt,At.yearFormat)),er=h.createElement("button",{type:"button",key:"month",onClick:jn,tabIndex:-1,className:"".concat(st,"-month-btn")},At.monthFormat?It.locale.format(At.locale,Wt,At.monthFormat):bn[Bn]),vr=At.monthBeforeYear?[er,Pn]:[Pn,er];return h.createElement(o,Object.assign({},ye,{prefixCls:Mn,onSuperPrev:yn,onPrev:Xt,onNext:Nt,onSuperNext:en}),vr)}var Xe=We,Te=6;function Me(ye){var st=ye.prefixCls,It=ye.panelName,At=It===void 0?"date":It,Wt=ye.keyboardConfig,Nt=ye.active,Xt=ye.operationRef,en=ye.generateConfig,yn=ye.value,mn=ye.viewDate,jn=ye.onViewDateChange,Dn=ye.onPanelChange,nn=ye.onSelect,Mn="".concat(st,"-").concat(At,"-panel");Xt.current={onKeyDown:function(er){return E(er,Object(S.a)({onLeftRight:function(Br){nn(en.addDate(yn||mn,Br),"key")},onCtrlLeftRight:function(Br){nn(en.addYear(yn||mn,Br),"key")},onUpDown:function(Br){nn(en.addDate(yn||mn,Br*le),"key")},onPageUpDown:function(Br){nn(en.addMonth(yn||mn,Br),"key")}},Wt))}};var bn=function(er){var vr=en.addYear(mn,er);jn(vr),Dn(null,vr)},Bn=function(er){var vr=en.addMonth(mn,er);jn(vr),Dn(null,vr)};return h.createElement("div",{className:d()(Mn,Object(y.a)({},"".concat(Mn,"-active"),Nt))},h.createElement(Xe,Object.assign({},ye,{prefixCls:st,value:yn,viewDate:mn,onPrevYear:function(){bn(-1)},onNextYear:function(){bn(1)},onPrevMonth:function(){Bn(-1)},onNextMonth:function(){Bn(1)},onMonthClick:function(){Dn("month",mn)},onYearClick:function(){Dn("year",mn)}})),h.createElement(Ye,Object.assign({},ye,{onSelect:function(er){return nn(er,"mouse")},prefixCls:st,value:yn,viewDate:mn,rowCount:Te})))}var Ve=Me;function Ge(ye,st,It){if(!It)return st;var At=st;return At=ye.setHour(At,ye.getHour(It)),At=ye.setMinute(At,ye.getMinute(It)),At=ye.setSecond(At,ye.getSecond(It)),At}var Ze=fe("date","time");function mt(ye){var st=ye.prefixCls,It=ye.operationRef,At=ye.generateConfig,Wt=ye.value,Nt=ye.defaultValue,Xt=ye.disabledTime,en=ye.showTime,yn=ye.onSelect,mn="".concat(st,"-datetime-panel"),jn=h.useState(null),Dn=Object(T.a)(jn,2),nn=Dn[0],Mn=Dn[1],bn=h.useRef({}),Bn=h.useRef({}),Pn=Object(t.a)(en)==="object"?Object(S.a)({},en):{};function er(Yt){var cn=Ze.indexOf(nn)+Yt,Rn=Ze[cn]||null;return Rn}var vr=function(cn){Bn.current.onBlur&&Bn.current.onBlur(cn),Mn(null)};It.current={onKeyDown:function(cn){if(cn.which===a.a.TAB){var Rn=er(cn.shiftKey?-1:1);return Mn(Rn),Rn&&cn.preventDefault(),!0}if(nn){var qt=nn==="date"?bn:Bn;return qt.current&&qt.current.onKeyDown&&qt.current.onKeyDown(cn),!0}return[a.a.LEFT,a.a.RIGHT,a.a.UP,a.a.DOWN].includes(cn.which)?(Mn("date"),!0):!1},onBlur:vr,onClose:vr};var Br=function(cn,Rn){var qt=cn;Rn==="date"&&!Wt&&Pn.defaultValue?(qt=At.setHour(qt,At.getHour(Pn.defaultValue)),qt=At.setMinute(qt,At.getMinute(Pn.defaultValue)),qt=At.setSecond(qt,At.getSecond(Pn.defaultValue))):Rn==="time"&&!Wt&&Nt&&(qt=At.setYear(qt,At.getYear(Nt)),qt=At.setMonth(qt,At.getMonth(Nt)),qt=At.setDate(qt,At.getDate(Nt))),yn&&yn(qt,"mouse")},Sn=Xt?Xt(Wt||null):{};return h.createElement("div",{className:d()(mn,Object(y.a)({},"".concat(mn,"-active"),nn))},h.createElement(Ve,Object.assign({},ye,{operationRef:bn,active:nn==="date",onSelect:function(cn){Br(Ge(At,cn,en&&Object(t.a)(en)==="object"?en.defaultValue:null),"date")}})),h.createElement(Oe,Object.assign({},ye,{format:void 0},Pn,Sn,{defaultValue:void 0,operationRef:Bn,active:nn==="time",onSelect:function(cn){Br(cn,"time")}})))}var Pt=mt;function Gt(ye){var st=ye.prefixCls,It=ye.generateConfig,At=ye.locale,Wt=ye.value,Nt="".concat(st,"-cell"),Xt=function(jn){return h.createElement("td",{key:"week",className:d()(Nt,"".concat(Nt,"-week"))},It.locale.getWeek(At.locale,jn))},en="".concat(st,"-week-panel-row"),yn=function(jn){return d()(en,Object(y.a)({},"".concat(en,"-selected"),gt(It,At.locale,Wt,jn)))};return h.createElement(Ve,Object.assign({},ye,{panelName:"week",prefixColumn:Xt,rowClassName:yn,keyboardConfig:{onLeftRight:null}}))}var dn=Gt;function Tt(ye){var st=ye.prefixCls,It=ye.generateConfig,At=ye.locale,Wt=ye.viewDate,Nt=ye.onNextYear,Xt=ye.onPrevYear,en=ye.onYearClick,yn=h.useContext(i),mn=yn.hideHeader;if(mn)return null;var jn="".concat(st,"-header");return h.createElement(o,Object.assign({},ye,{prefixCls:jn,onSuperPrev:Xt,onSuperNext:Nt}),h.createElement("button",{type:"button",onClick:en,className:"".concat(st,"-year-btn")},It.locale.format(At.locale,Wt,At.yearFormat)))}var ut=Tt,je=3,tt=4;function nt(ye){var st=ye.prefixCls,It=ye.locale,At=ye.value,Wt=ye.viewDate,Nt=ye.generateConfig,Xt=ye.monthCellRender,en=h.useContext(ft),yn=en.rangedValue,mn=en.hoverRangedValue,jn="".concat(st,"-cell"),Dn=jt({cellPrefixCls:jn,value:At,generateConfig:Nt,rangedValue:yn,hoverRangedValue:mn,isSameCell:function(Pn,er){return ke(Nt,Pn,er)},isInView:function(){return!0},offsetCell:function(Pn,er){return Nt.addMonth(Pn,er)}}),nn=It.shortMonths||(Nt.locale.getShortMonths?Nt.locale.getShortMonths(It.locale):[]),Mn=Nt.setMonth(Wt,0),bn=Xt?function(Bn){return Xt(Bn,It)}:void 0;return h.createElement(ht,Object.assign({},ye,{rowNum:tt,colNum:je,baseDate:Mn,getCellNode:bn,getCellText:function(Pn){return It.monthFormat?Nt.locale.format(It.locale,Pn,It.monthFormat):nn[Nt.getMonth(Pn)]},getCellClassName:Dn,getCellDate:Nt.addMonth,titleCell:function(Pn){return Nt.locale.format(It.locale,Pn,"YYYY-MM")}}))}var De=nt;function Fe(ye){var st=ye.prefixCls,It=ye.operationRef,At=ye.onViewDateChange,Wt=ye.generateConfig,Nt=ye.value,Xt=ye.viewDate,en=ye.onPanelChange,yn=ye.onSelect,mn="".concat(st,"-month-panel");It.current={onKeyDown:function(nn){return E(nn,{onLeftRight:function(bn){yn(Wt.addMonth(Nt||Xt,bn),"key")},onCtrlLeftRight:function(bn){yn(Wt.addYear(Nt||Xt,bn),"key")},onUpDown:function(bn){yn(Wt.addMonth(Nt||Xt,bn*je),"key")},onEnter:function(){en("date",Nt||Xt)}})}};var jn=function(nn){var Mn=Wt.addYear(Xt,nn);At(Mn),en(null,Mn)};return h.createElement("div",{className:mn},h.createElement(ut,Object.assign({},ye,{prefixCls:st,onPrevYear:function(){jn(-1)},onNextYear:function(){jn(1)},onYearClick:function(){en("year",Xt)}})),h.createElement(De,Object.assign({},ye,{prefixCls:st,onSelect:function(nn){yn(nn,"mouse"),en("date",nn)}})))}var bt=Fe;function dt(ye){var st=ye.prefixCls,It=ye.generateConfig,At=ye.locale,Wt=ye.viewDate,Nt=ye.onNextYear,Xt=ye.onPrevYear,en=ye.onYearClick,yn=h.useContext(i),mn=yn.hideHeader;if(mn)return null;var jn="".concat(st,"-header");return h.createElement(o,Object.assign({},ye,{prefixCls:jn,onSuperPrev:Xt,onSuperNext:Nt}),h.createElement("button",{type:"button",onClick:en,className:"".concat(st,"-year-btn")},It.locale.format(At.locale,Wt,At.yearFormat)))}var xt=dt,kt=4,et=1;function Mt(ye){var st=ye.prefixCls,It=ye.locale,At=ye.value,Wt=ye.viewDate,Nt=ye.generateConfig,Xt=h.useContext(ft),en=Xt.rangedValue,yn=Xt.hoverRangedValue,mn="".concat(st,"-cell"),jn=jt({cellPrefixCls:mn,value:At,generateConfig:Nt,rangedValue:en,hoverRangedValue:yn,isSameCell:function(Mn,bn){return Se(Nt,Mn,bn)},isInView:function(){return!0},offsetCell:function(Mn,bn){return Nt.addMonth(Mn,bn*3)}}),Dn=Nt.setDate(Nt.setMonth(Wt,0),1);return h.createElement(ht,Object.assign({},ye,{rowNum:et,colNum:kt,baseDate:Dn,getCellText:function(Mn){return Nt.locale.format(It.locale,Mn,It.quarterFormat||"[Q]Q")},getCellClassName:jn,getCellDate:function(Mn,bn){return Nt.addMonth(Mn,bn*3)},titleCell:function(Mn){return Nt.locale.format(It.locale,Mn,"YYYY-[Q]Q")}}))}var Ht=Mt;function _n(ye){var st=ye.prefixCls,It=ye.operationRef,At=ye.onViewDateChange,Wt=ye.generateConfig,Nt=ye.value,Xt=ye.viewDate,en=ye.onPanelChange,yn=ye.onSelect,mn="".concat(st,"-quarter-panel");It.current={onKeyDown:function(nn){return E(nn,{onLeftRight:function(bn){yn(Wt.addMonth(Nt||Xt,bn*3),"key")},onCtrlLeftRight:function(bn){yn(Wt.addYear(Nt||Xt,bn),"key")},onUpDown:function(bn){yn(Wt.addYear(Nt||Xt,bn),"key")}})}};var jn=function(nn){var Mn=Wt.addYear(Xt,nn);At(Mn),en(null,Mn)};return h.createElement("div",{className:mn},h.createElement(xt,Object.assign({},ye,{prefixCls:st,onPrevYear:function(){jn(-1)},onNextYear:function(){jn(1)},onYearClick:function(){en("year",Xt)}})),h.createElement(Ht,Object.assign({},ye,{prefixCls:st,onSelect:function(nn){yn(nn,"mouse")}})))}var vn=_n;function fn(ye){var st=ye.prefixCls,It=ye.generateConfig,At=ye.viewDate,Wt=ye.onPrevDecade,Nt=ye.onNextDecade,Xt=ye.onDecadeClick,en=h.useContext(i),yn=en.hideHeader;if(yn)return null;var mn="".concat(st,"-header"),jn=It.getYear(At),Dn=Math.floor(jn/rr)*rr,nn=Dn+rr-1;return h.createElement(o,Object.assign({},ye,{prefixCls:mn,onSuperPrev:Wt,onSuperNext:Nt}),h.createElement("button",{type:"button",onClick:Xt,className:"".concat(st,"-decade-btn")},Dn,"-",nn))}var Gn=fn,wn=3,rn=4;function Qn(ye){var st=ye.prefixCls,It=ye.value,At=ye.viewDate,Wt=ye.locale,Nt=ye.generateConfig,Xt=h.useContext(ft),en=Xt.rangedValue,yn=Xt.hoverRangedValue,mn="".concat(st,"-cell"),jn=Nt.getYear(At),Dn=Math.floor(jn/rr)*rr,nn=Dn+rr-1,Mn=Nt.setYear(At,Dn-Math.ceil((wn*rn-rr)/2)),bn=function(er){var vr=Nt.getYear(er);return Dn<=vr&&vr<=nn},Bn=jt({cellPrefixCls:mn,value:It,generateConfig:Nt,rangedValue:en,hoverRangedValue:yn,isSameCell:function(er,vr){return te(Nt,er,vr)},isInView:bn,offsetCell:function(er,vr){return Nt.addYear(er,vr)}});return h.createElement(ht,Object.assign({},ye,{rowNum:rn,colNum:wn,baseDate:Mn,getCellText:Nt.getYear,getCellClassName:Bn,getCellDate:Nt.addYear,titleCell:function(er){return Nt.locale.format(Wt.locale,er,"YYYY")}}))}var Zn=Qn,rr=10;function $n(ye){var st=ye.prefixCls,It=ye.operationRef,At=ye.onViewDateChange,Wt=ye.generateConfig,Nt=ye.value,Xt=ye.viewDate,en=ye.sourceMode,yn=ye.onSelect,mn=ye.onPanelChange,jn="".concat(st,"-year-panel");It.current={onKeyDown:function(Mn){return E(Mn,{onLeftRight:function(Bn){yn(Wt.addYear(Nt||Xt,Bn),"key")},onCtrlLeftRight:function(Bn){yn(Wt.addYear(Nt||Xt,Bn*rr),"key")},onUpDown:function(Bn){yn(Wt.addYear(Nt||Xt,Bn*wn),"key")},onEnter:function(){mn(en==="date"?"date":"month",Nt||Xt)}})}};var Dn=function(Mn){var bn=Wt.addYear(Xt,Mn*10);At(bn),mn(null,bn)};return h.createElement("div",{className:jn},h.createElement(Gn,Object.assign({},ye,{prefixCls:st,onPrevDecade:function(){Dn(-1)},onNextDecade:function(){Dn(1)},onDecadeClick:function(){mn("decade",Xt)}})),h.createElement(Zn,Object.assign({},ye,{prefixCls:st,onSelect:function(Mn){mn(en==="date"?"date":"month",Mn),yn(Mn,"mouse")}})))}var Ar=$n;function pr(ye){var st=ye.prefixCls,It=ye.generateConfig,At=ye.viewDate,Wt=ye.onPrevDecades,Nt=ye.onNextDecades,Xt=h.useContext(i),en=Xt.hideHeader;if(en)return null;var yn="".concat(st,"-header"),mn=It.getYear(At),jn=Math.floor(mn/Un)*Un,Dn=jn+Un-1;return h.createElement(o,Object.assign({},ye,{prefixCls:yn,onSuperPrev:Wt,onSuperNext:Nt}),jn,"-",Dn)}var on=pr,Zt=3,An=4;function jr(ye){var st=qn-1,It=ye.prefixCls,At=ye.viewDate,Wt=ye.generateConfig,Nt=ye.disabledDate,Xt="".concat(It,"-cell"),en=Wt.getYear(At),yn=Math.floor(en/qn)*qn,mn=Math.floor(en/Un)*Un,jn=mn+Un-1,Dn=Wt.setYear(At,mn-Math.ceil((Zt*An*qn-Un)/2)),nn=function(bn){var Bn,Pn=Nt&&Nt(bn),er=Wt.getYear(bn),vr=er+st;return Bn={},Object(y.a)(Bn,"".concat(Xt,"-disabled"),Pn),Object(y.a)(Bn,"".concat(Xt,"-in-view"),mn<=er&&vr<=jn),Object(y.a)(Bn,"".concat(Xt,"-selected"),er===yn),Bn};return h.createElement(ht,Object.assign({},ye,{rowNum:An,colNum:Zt,baseDate:Dn,getCellText:function(bn){var Bn=Wt.getYear(bn);return"".concat(Bn,"-").concat(Bn+st)},getCellClassName:nn,getCellDate:function(bn,Bn){return Wt.addYear(bn,Bn*qn)}}))}var Ln=jr,qn=10,Un=qn*10;function pe(ye){var st=ye.prefixCls,It=ye.onViewDateChange,At=ye.generateConfig,Wt=ye.viewDate,Nt=ye.operationRef,Xt=ye.onSelect,en=ye.onPanelChange,yn="".concat(st,"-decade-panel");Nt.current={onKeyDown:function(nn){return E(nn,{onLeftRight:function(bn){Xt(At.addYear(Wt,bn*qn),"key")},onCtrlLeftRight:function(bn){Xt(At.addYear(Wt,bn*Un),"key")},onUpDown:function(bn){Xt(At.addYear(Wt,bn*qn*Zt),"key")},onEnter:function(){en("year",Wt)}})}};var mn=function(nn){var Mn=At.addYear(Wt,nn*Un);It(Mn),en(null,Mn)},jn=function(nn){Xt(nn,"mouse"),en("year",nn)};return h.createElement("div",{className:yn},h.createElement(on,Object.assign({},ye,{prefixCls:st,onPrevDecades:function(){mn(-1)},onNextDecades:function(){mn(1)}})),h.createElement(Ln,Object.assign({},ye,{prefixCls:st,onSelect:jn})))}var z=pe;function Z(ye,st,It){return It?h.createElement("div",{className:"".concat(ye,"-footer-extra")},It(st)):null}function oe(ye){var st=ye.prefixCls,It=ye.rangeList,At=It===void 0?[]:It,Wt=ye.components,Nt=Wt===void 0?{}:Wt,Xt=ye.needConfirmButton,en=ye.onNow,yn=ye.onOk,mn=ye.okDisabled,jn=ye.showNow,Dn=ye.locale,nn,Mn;if(At.length){var bn=Nt.rangeItem||"span";nn=h.createElement(h.Fragment,null,At.map(function(Pn){var er=Pn.label,vr=Pn.onClick,Br=Pn.onMouseEnter,Sn=Pn.onMouseLeave;return h.createElement("li",{key:er,className:"".concat(st,"-preset")},h.createElement(bn,{onClick:vr,onMouseEnter:Br,onMouseLeave:Sn},er))}))}if(Xt){var Bn=Nt.button||"button";en&&!nn&&jn!==!1&&(nn=h.createElement("li",{className:"".concat(st,"-now")},h.createElement("a",{className:"".concat(st,"-now-btn"),onClick:en},Dn.now))),Mn=Xt&&h.createElement("li",{className:"".concat(st,"-ok")},h.createElement(Bn,{disabled:mn,onClick:yn},Dn.ok))}return!nn&&!Mn?null:h.createElement("ul",{className:"".concat(st,"-ranges")},nn,Mn)}function xe(ye){var st,It=ye.prefixCls,At=It===void 0?"rc-picker":It,Wt=ye.className,Nt=ye.style,Xt=ye.locale,en=ye.generateConfig,yn=ye.value,mn=ye.defaultValue,jn=ye.pickerValue,Dn=ye.defaultPickerValue,nn=ye.disabledDate,Mn=ye.mode,bn=ye.picker,Bn=bn===void 0?"date":bn,Pn=ye.tabIndex,er=Pn===void 0?0:Pn,vr=ye.showNow,Br=ye.showTime,Sn=ye.showToday,Yt=ye.renderExtraFooter,cn=ye.hideHeader,Rn=ye.onSelect,qt=ye.onChange,On=ye.onPanelChange,gn=ye.onMouseDown,In=ye.onPickerValueChange,Fn=ye.onOk,ur=ye.components,ar=ye.direction,Rr=ye.hourStep,Ir=Rr===void 0?1:Rr,tr=ye.minuteStep,Dr=tr===void 0?1:tr,br=ye.secondStep,Gr=br===void 0?1:br,Lr=Bn==="date"&&!!Br||Bn==="time",qr=24%Ir===0,sr=60%Dr===0,Kt=60%Gr===0,Qt=h.useContext(i),Jt=Qt.operationRef,Xn=Qt.panelRef,ir=Qt.onSelect,kn=Qt.hideRanges,lr=Qt.defaultOpenValue,hr=h.useContext(ft),cr=hr.inRange,Zr=hr.panelPosition,dr=hr.rangedValue,la=hr.hoverRangedValue,Xr=h.useRef({}),yr=h.useRef(!0),wr=Object(c.a)(null,{value:yn,defaultValue:mn,postState:function(En){return!En&&lr&&Bn==="time"?lr:En}}),Hr=Object(T.a)(wr,2),Yr=Hr[0],wa=Hr[1],va=Object(c.a)(null,{value:jn,defaultValue:Dn||Yr,postState:function(En){return En||en.getNow()}}),Je=Object(T.a)(va,2),ct=Je[0],yt=Je[1],at=function(En){yt(En),In&&In(En)},Pe=function(En){var Wn=K[Bn];return Wn?Wn(En):En},ze=Object(c.a)(function(){return Bn==="time"?"time":Pe("date")},{value:Mn}),Ie=Object(T.a)(ze,2),$e=Ie[0],qe=Ie[1];h.useEffect(function(){qe(Bn)},[Bn]);var pt=h.useState(function(){return $e}),it=Object(T.a)(pt,2),Lt=it[0],Vt=it[1],hn=function(En,Wn){var zr=Pe(En||$e);Vt($e),qe(zr),On&&($e!==zr||Et(en,ct,ct))&&On(Wn,zr)},sn=function(En,Wn){var zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;($e===Bn||zr)&&(wa(En),Rn&&Rn(En),ir&&ir(En,Wn),qt&&!Et(en,En,Yr)&&qt(En))},un=function(En){return Xr.current&&Xr.current.onKeyDown?([a.a.LEFT,a.a.RIGHT,a.a.UP,a.a.DOWN,a.a.PAGE_UP,a.a.PAGE_DOWN,a.a.ENTER].includes(En.which)&&En.preventDefault(),Xr.current.onKeyDown(En)):(Object(r.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ln=function(En){Xr.current&&Xr.current.onBlur&&Xr.current.onBlur(En)};Jt&&Zr!=="right"&&(Jt.current={onKeyDown:un,onClose:function(){Xr.current&&Xr.current.onClose&&Xr.current.onClose()}}),h.useEffect(function(){yn&&!yr.current&&yt(yn)},[yn]),h.useEffect(function(){yr.current=!1},[]);var Kn,xn=Object(S.a)(Object(S.a)({},ye),{},{operationRef:Xr,prefixCls:At,viewDate:ct,value:Yr,onViewDateChange:at,sourceMode:Lt,onPanelChange:hn,disabledDate:$e!=="decade"?nn:void 0});delete xn.onChange,delete xn.onSelect;switch($e){case"decade":Kn=h.createElement(z,Object.assign({},xn,{onSelect:function(En,Wn){at(En),sn(En,Wn)}}));break;case"year":Kn=h.createElement(Ar,Object.assign({},xn,{onSelect:function(En,Wn){at(En),sn(En,Wn)}}));break;case"month":Kn=h.createElement(bt,Object.assign({},xn,{onSelect:function(En,Wn){at(En),sn(En,Wn)}}));break;case"quarter":Kn=h.createElement(vn,Object.assign({},xn,{onSelect:function(En,Wn){at(En),sn(En,Wn)}}));break;case"week":Kn=h.createElement(dn,Object.assign({},xn,{onSelect:function(En,Wn){at(En),sn(En,Wn)}}));break;case"time":delete xn.showTime,Kn=h.createElement(Oe,Object.assign({},xn,Object(t.a)(Br)==="object"?Br:null,{onSelect:function(En,Wn){at(En),sn(En,Wn)}}));break;default:Br?Kn=h.createElement(Pt,Object.assign({},xn,{onSelect:function(En,Wn){at(En),sn(En,Wn)}})):Kn=h.createElement(Ve,Object.assign({},xn,{onSelect:function(En,Wn){at(En),sn(En,Wn)}}))}var Ur,Pr,Jr=function(){var En=en.getNow(),Wn=ve(en.getHour(En),en.getMinute(En),en.getSecond(En),qr?Ir:1,sr?Dr:1,Kt?Gr:1),zr=be(en,En,Wn[0],Wn[1],Wn[2]);sn(zr,"submit")};kn||(Ur=Z(At,$e,Yt),Pr=oe({prefixCls:At,components:ur,needConfirmButton:Lr,okDisabled:!Yr||nn&&nn(Yr),locale:Xt,showNow:vr,onNow:Lr&&Jr,onOk:function(){Yr&&(sn(Yr,"submit",!0),Fn&&Fn(Yr))}}));var Fr;if(Sn&&$e==="date"&&Bn==="date"&&!Br){var ta=en.getNow(),zn="".concat(At,"-today-btn"),Or=nn&&nn(ta);Fr=h.createElement("a",{className:d()(zn,Or&&"".concat(zn,"-disabled")),"aria-disabled":Or,onClick:function(){Or||sn(ta,"mouse",!0)}},Xt.today)}return h.createElement(i.Provider,{value:Object(S.a)(Object(S.a)({},Qt),{},{hideHeader:"hideHeader"in ye?cn:Qt.hideHeader,hidePrevBtn:cr&&Zr==="right",hideNextBtn:cr&&Zr==="left"})},h.createElement("div",{tabIndex:er,className:d()("".concat(At,"-panel"),Wt,(st={},Object(y.a)(st,"".concat(At,"-panel-has-range"),dr&&dr[0]&&dr[1]),Object(y.a)(st,"".concat(At,"-panel-has-range-hover"),la&&la[0]&&la[1]),Object(y.a)(st,"".concat(At,"-panel-rtl"),ar==="rtl"),st)),style:Nt,onKeyDown:un,onBlur:ln,onMouseDown:gn,ref:Xn},Kn,Ur||Pr||Fr?h.createElement("div",{className:"".concat(At,"-footer")},Ur,Pr,Fr):null))}var he=xe,lt=s("uciX"),an={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Nn(ye){var st,It=ye.prefixCls,At=ye.popupElement,Wt=ye.popupStyle,Nt=ye.visible,Xt=ye.dropdownClassName,en=ye.dropdownAlign,yn=ye.transitionName,mn=ye.getPopupContainer,jn=ye.children,Dn=ye.range,nn=ye.popupPlacement,Mn=ye.direction,bn="".concat(It,"-dropdown"),Bn=function(){return nn!==void 0?nn:Mn==="rtl"?"bottomRight":"bottomLeft"};return h.createElement(lt.a,{showAction:[],hideAction:[],popupPlacement:Bn(),builtinPlacements:an,prefixCls:bn,popupTransitionName:yn,popup:At,popupAlign:en,popupVisible:Nt,popupClassName:d()(Xt,(st={},Object(y.a)(st,"".concat(bn,"-range"),Dn),Object(y.a)(st,"".concat(bn,"-rtl"),Mn==="rtl"),st)),popupStyle:Wt,getPopupContainer:mn},jn)}var Yn=Nn;function tn(ye){var st=ye.open,It=ye.value,At=ye.isClickOutside,Wt=ye.triggerOpen,Nt=ye.forwardKeyDown,Xt=ye.blurToCancel,en=ye.onSubmit,yn=ye.onCancel,mn=ye.onFocus,jn=ye.onBlur,Dn=Object(h.useState)(!1),nn=Object(T.a)(Dn,2),Mn=nn[0],bn=nn[1],Bn=Object(h.useState)(!1),Pn=Object(T.a)(Bn,2),er=Pn[0],vr=Pn[1],Br=Object(h.useRef)(!1),Sn=Object(h.useRef)(!1),Yt={onMouseDown:function(){bn(!0),Wt(!0)},onKeyDown:function(Rn){switch(Rn.which){case a.a.ENTER:{st?en()!==!1&&bn(!0):Wt(!0),Rn.preventDefault();return}case a.a.TAB:{Mn&&st&&!Rn.shiftKey?(bn(!1),Rn.preventDefault()):!Mn&&st&&(!Nt(Rn)&&Rn.shiftKey&&(bn(!0),Rn.preventDefault()));return}case a.a.ESC:{bn(!0),yn();return}}!st&&![a.a.SHIFT].includes(Rn.which)?Wt(!0):Mn||Nt(Rn)},onFocus:function(Rn){bn(!0),vr(!0),mn&&mn(Rn)},onBlur:function(Rn){if(Br.current||!At(document.activeElement)){Br.current=!1;return}Xt?setTimeout(function(){At(document.activeElement)&&yn()},0):st&&(Wt(!1),Sn.current&&en()),vr(!1),jn&&jn(Rn)}};return Object(h.useEffect)(function(){Sn.current=!1},[st]),Object(h.useEffect)(function(){Sn.current=!0},[It]),Object(h.useEffect)(function(){return D(function(cn){var Rn=cn.target;st&&(At(Rn)?er||Wt(!1):(Br.current=!0,requestAnimationFrame(function(){Br.current=!1})))})}),[Yt,{focused:er,typing:Mn}]}function Cn(ye){var st=ye.valueTexts,It=ye.onTextChange,At=h.useState(""),Wt=Object(T.a)(At,2),Nt=Wt[0],Xt=Wt[1],en=h.useRef([]);en.current=st;function yn(jn){Xt(jn),It(jn)}function mn(){Xt(en.current[0])}return h.useEffect(function(){st.every(function(jn){return jn!==Nt})&&mn()},[st.join("||")]),[Nt,yn,mn]}var Jn=s("Gytx"),$r=s.n(Jn);function ga(ye,st){var It=st.formatList,At=st.generateConfig,Wt=st.locale;return Object(C.a)(function(){if(!ye)return[[""],""];for(var Nt="",Xt=[],en=0;en<It.length;en+=1){var yn=It[en],mn=At.locale.format(Wt.locale,ye,yn);Xt.push(mn),en===0&&(Nt=mn)}return[Xt,Nt]},[ye,It],function(Nt,Xt){return Nt[0]!==Xt[0]||!$r()(Nt[1],Xt[1])})}function pa(ye,st){var It=st.formatList,At=st.generateConfig,Wt=st.locale,Nt=Object(h.useState)(null),Xt=Object(T.a)(Nt,2),en=Xt[0],yn=Xt[1],mn=Object(h.useRef)(null);function jn(Pn){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(mn.current),er){yn(Pn);return}mn.current=requestAnimationFrame(function(){yn(Pn)})}var Dn=ga(en,{formatList:It,generateConfig:At,locale:Wt}),nn=Object(T.a)(Dn,2),Mn=nn[1];function bn(Pn){jn(Pn)}function Bn(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;jn(null,Pn)}return Object(h.useEffect)(function(){Bn(!0)},[ye]),Object(h.useEffect)(function(){return function(){return cancelAnimationFrame(mn.current)}},[]),[Mn,bn,Bn]}function mr(ye){var st,It=ye.prefixCls,At=It===void 0?"rc-picker":It,Wt=ye.id,Nt=ye.tabIndex,Xt=ye.style,en=ye.className,yn=ye.dropdownClassName,mn=ye.dropdownAlign,jn=ye.popupStyle,Dn=ye.transitionName,nn=ye.generateConfig,Mn=ye.locale,bn=ye.inputReadOnly,Bn=ye.allowClear,Pn=ye.autoFocus,er=ye.showTime,vr=ye.picker,Br=vr===void 0?"date":vr,Sn=ye.format,Yt=ye.use12Hours,cn=ye.value,Rn=ye.defaultValue,qt=ye.open,On=ye.defaultOpen,gn=ye.defaultOpenValue,In=ye.suffixIcon,Fn=ye.clearIcon,ur=ye.disabled,ar=ye.disabledDate,Rr=ye.placeholder,Ir=ye.getPopupContainer,tr=ye.pickerRef,Dr=ye.panelRender,br=ye.onChange,Gr=ye.onOpenChange,Lr=ye.onFocus,qr=ye.onBlur,sr=ye.onMouseDown,Kt=ye.onMouseUp,Qt=ye.onMouseEnter,Jt=ye.onMouseLeave,Xn=ye.onContextMenu,ir=ye.onClick,kn=ye.direction,lr=ye.autoComplete,hr=lr===void 0?"off":lr,cr=h.useRef(null),Zr=Br==="date"&&!!er||Br==="time",dr=de(x(Sn,Br,er,Yt)),la=h.useRef(null),Xr=h.useRef(null),yr=Object(c.a)(null,{value:cn,defaultValue:Rn}),wr=Object(T.a)(yr,2),Hr=wr[0],Yr=wr[1],wa=h.useState(Hr),va=Object(T.a)(wa,2),Je=va[0],ct=va[1],yt=h.useRef(null),at=Object(c.a)(!1,{value:qt,defaultValue:On,postState:function(or){return ur?!1:or},onChange:function(or){Gr&&Gr(or),!or&&yt.current&&yt.current.onClose&&yt.current.onClose()}}),Pe=Object(T.a)(at,2),ze=Pe[0],Ie=Pe[1],$e=ga(Je,{formatList:dr,generateConfig:nn,locale:Mn}),qe=Object(T.a)($e,2),pt=qe[0],it=qe[1],Lt=Cn({valueTexts:pt,onTextChange:function(or){var da=nn.locale.parse(Mn.locale,or,dr);da&&(!ar||!ar(da))&&ct(da)}}),Vt=Object(T.a)(Lt,3),hn=Vt[0],sn=Vt[1],un=Vt[2],ln=function(or){ct(or),Yr(or),br&&!Et(nn,Hr,or)&&br(or,or?nn.locale.format(Mn.locale,or,dr[0]):"")},Kn=function(or){if(ur&&or)return;Ie(or)},xn=function(or){return ze&&yt.current&&yt.current.onKeyDown?yt.current.onKeyDown(or):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ur=function(){Kt&&Kt.apply(void 0,arguments),cr.current&&(cr.current.focus(),Kn(!0))},Pr=tn({blurToCancel:Zr,open:ze,value:hn,triggerOpen:Kn,forwardKeyDown:xn,isClickOutside:function(or){return!B([la.current,Xr.current],or)},onSubmit:function(){return ar&&ar(Je)?!1:(ln(Je),Kn(!1),un(),!0)},onCancel:function(){Kn(!1),ct(Hr),un()},onFocus:Lr,onBlur:qr}),Jr=Object(T.a)(Pr,2),Fr=Jr[0],ta=Jr[1],zn=ta.focused,Or=ta.typing;h.useEffect(function(){ze||(ct(Hr),!pt.length||pt[0]===""?sn(""):it!==hn&&un())},[ze,pt]),h.useEffect(function(){ze||un()},[Br]),h.useEffect(function(){ct(Hr)},[Hr]),tr&&(tr.current={focus:function(){cr.current&&cr.current.focus()},blur:function(){cr.current&&cr.current.blur()}});var Vn=Object(S.a)(Object(S.a)({},ye),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),En=h.createElement(he,Object.assign({},Vn,{generateConfig:nn,className:d()(Object(y.a)({},"".concat(At,"-panel-focused"),!Or)),value:Je,locale:Mn,tabIndex:-1,onChange:ct,direction:kn}));Dr&&(En=Dr(En));var Wn=h.createElement("div",{className:"".concat(At,"-panel-container"),onMouseDown:function(or){or.preventDefault()}},En),zr;In&&(zr=h.createElement("span",{className:"".concat(At,"-suffix")},In));var sa;Bn&&Hr&&!ur&&(sa=h.createElement("span",{onMouseDown:function(or){or.preventDefault(),or.stopPropagation()},onMouseUp:function(or){or.preventDefault(),or.stopPropagation(),ln(null),Kn(!1)},className:"".concat(At,"-clear")},Fn||h.createElement("span",{className:"".concat(At,"-clear-btn")})));var gr=function(or,da){(da==="submit"||da!=="key"&&!Zr)&&(ln(or),Kn(!1))},ra=kn==="rtl"?"bottomRight":"bottomLeft",Ea=pa(hn,{formatList:dr,generateConfig:nn,locale:Mn}),ca=Object(T.a)(Ea,3),xa=ca[0],Tr=ca[1],Er=ca[2];return h.createElement(i.Provider,{value:{operationRef:yt,hideHeader:Br==="time",panelRef:la,onSelect:gr,open:ze,defaultOpenValue:gn,onDateMouseEnter:Tr,onDateMouseLeave:Er}},h.createElement(Yn,{visible:ze,popupElement:Wn,popupStyle:jn,prefixCls:At,dropdownClassName:yn,dropdownAlign:mn,getPopupContainer:Ir,transitionName:Dn,popupPlacement:ra,direction:kn},h.createElement("div",{className:d()(At,en,(st={},Object(y.a)(st,"".concat(At,"-disabled"),ur),Object(y.a)(st,"".concat(At,"-focused"),zn),Object(y.a)(st,"".concat(At,"-rtl"),kn==="rtl"),st)),style:Xt,onMouseDown:sr,onMouseUp:Ur,onMouseEnter:Qt,onMouseLeave:Jt,onContextMenu:Xn,onClick:ir},h.createElement("div",{className:d()("".concat(At,"-input"),Object(y.a)({},"".concat(At,"-input-placeholder"),!!xa)),ref:Xr},h.createElement("input",Object.assign({id:Wt,tabIndex:Nt,disabled:ur,readOnly:bn||!Or,value:xa||hn,onChange:function(or){sn(or.target.value)},autoFocus:Pn,placeholder:Rr,ref:cr,title:hn},Fr,{size:g(Br,dr[0])},Ee(ye),{autoComplete:hr})),zr,sa))))}var za=function(ye){Object(A.a)(It,ye);var st=Object(b.a)(It);function It(){var At;return Object(L.a)(this,It),At=st.apply(this,arguments),At.pickerRef=h.createRef(),At.focus=function(){At.pickerRef.current&&At.pickerRef.current.focus()},At.blur=function(){At.pickerRef.current&&At.pickerRef.current.blur()},At}return Object(p.a)(It,[{key:"render",value:function(){return h.createElement(mr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),It}(h.Component),ja=za;function Ra(ye,st,It){var At=ye.picker,Wt=ye.locale,Nt=ye.selectedValue,Xt=ye.disabledDate,en=ye.disabled,yn=ye.generateConfig,mn=we(Nt,0),jn=we(Nt,1);function Dn(Pn){var er=yn.getYear(Pn),vr=yn.locale.getWeek(Wt.locale,Pn);return er*100+vr}function nn(Pn){var er=yn.getYear(Pn),vr=yn.getMonth(Pn);return er*100+vr}function Mn(Pn){var er=yn.getYear(Pn),vr=Ae(yn,Pn);return er*10+vr}var bn=h.useCallback(function(Pn){if(Xt&&Xt(Pn))return!0;if(en[1]&&jn)return!rt(yn,Pn,jn)&&yn.isAfter(Pn,jn);if(st&&jn)switch(At){case"quarter":return Mn(Pn)>Mn(jn);case"month":return nn(Pn)>nn(jn);case"week":return Dn(Pn)>Dn(jn);default:return!rt(yn,Pn,jn)&&yn.isAfter(Pn,jn)}return!1},[Xt,en[1],jn,st]),Bn=h.useCallback(function(Pn){if(Xt&&Xt(Pn))return!0;if(en[0]&&mn)return!rt(yn,Pn,jn)&&yn.isAfter(mn,Pn);if(It&&mn)switch(At){case"quarter":return Mn(Pn)<Mn(mn);case"month":return nn(Pn)<nn(mn);case"week":return Dn(Pn)<Dn(mn);default:return!rt(yn,Pn,mn)&&yn.isAfter(mn,Pn)}return!1},[Xt,en[0],mn,It]);return[bn,Bn]}function Ha(ye,st,It,At){var Wt=Qe(ye,It,At,1);function Nt(Xt){return Xt(ye,st)?"same":Xt(Wt,st)?"closing":"far"}switch(It){case"year":return Nt(function(Xt,en){return J(At,Xt,en)});case"quarter":case"month":return Nt(function(Xt,en){return te(At,Xt,en)});default:return Nt(function(Xt,en){return ke(At,Xt,en)})}}function Sa(ye,st,It,At){var Wt=we(ye,0),Nt=we(ye,1);if(st===0)return Wt;if(Wt&&Nt){var Xt=Ha(Wt,Nt,It,At);switch(Xt){case"same":return Wt;case"closing":return Wt;default:return Qe(Nt,It,At,-1)}}return Wt}function Ja(ye){var st=ye.values,It=ye.picker,At=ye.defaultDates,Wt=ye.generateConfig,Nt=h.useState(function(){return[we(At,0),we(At,1)]}),Xt=Object(T.a)(Nt,2),en=Xt[0],yn=Xt[1],mn=h.useState(null),jn=Object(T.a)(mn,2),Dn=jn[0],nn=jn[1],Mn=we(st,0),bn=we(st,1);function Bn(er){return en[er]?en[er]:we(Dn,er)||Sa(st,er,It,Wt)||Mn||bn||Wt.getNow()}function Pn(er,vr){if(er){var Br=ce(Dn,er,vr);yn(ce(en,null,vr)||[null,null]);var Sn=(vr+1)%2;we(st,Sn)||(Br=ce(Br,er,Sn)),nn(Br)}else(Mn||bn)&&nn(null)}return[Bn,Pn]}function ka(ye,st){return ye&&ye[0]&&ye[1]&&st.isAfter(ye[0],ye[1])?[ye[1],ye[0]]:ye}function li(ye,st,It,At){return ye||At&&At[st]?!0:!!It[(st+1)%2]}function oi(ye){var st,It,At,Wt=ye.prefixCls,Nt=Wt===void 0?"rc-picker":Wt,Xt=ye.id,en=ye.style,yn=ye.className,mn=ye.popupStyle,jn=ye.dropdownClassName,Dn=ye.transitionName,nn=ye.dropdownAlign,Mn=ye.getPopupContainer,bn=ye.generateConfig,Bn=ye.locale,Pn=ye.placeholder,er=ye.autoFocus,vr=ye.disabled,Br=ye.format,Sn=ye.picker,Yt=Sn===void 0?"date":Sn,cn=ye.showTime,Rn=ye.use12Hours,qt=ye.separator,On=qt===void 0?"~":qt,gn=ye.value,In=ye.defaultValue,Fn=ye.defaultPickerValue,ur=ye.open,ar=ye.defaultOpen,Rr=ye.disabledDate,Ir=ye.disabledTime,tr=ye.dateRender,Dr=ye.panelRender,br=ye.ranges,Gr=ye.allowEmpty,Lr=ye.allowClear,qr=ye.suffixIcon,sr=ye.clearIcon,Kt=ye.pickerRef,Qt=ye.inputReadOnly,Jt=ye.mode,Xn=ye.renderExtraFooter,ir=ye.onChange,kn=ye.onOpenChange,lr=ye.onPanelChange,hr=ye.onCalendarChange,cr=ye.onFocus,Zr=ye.onBlur,dr=ye.onOk,la=ye.components,Xr=ye.order,yr=ye.direction,wr=ye.activePickerIndex,Hr=ye.autoComplete,Yr=Hr===void 0?"off":Hr,wa=Yt==="date"&&!!cn||Yt==="time",va=Object(h.useRef)({}),Je=Object(h.useRef)(null),ct=Object(h.useRef)(null),yt=Object(h.useRef)(null),at=Object(h.useRef)(null),Pe=Object(h.useRef)(null),ze=Object(h.useRef)(null),Ie=Object(h.useRef)(null),$e=de(x(Br,Yt,cn,Rn)),qe=Object(c.a)(0,{value:wr}),pt=Object(T.a)(qe,2),it=pt[0],Lt=pt[1],Vt=Object(h.useRef)(null),hn=h.useMemo(function(){return Array.isArray(vr)?vr:[vr||!1,vr||!1]},[vr]),sn=Object(c.a)(null,{value:gn,defaultValue:In,postState:function(Sr){return Yt==="time"&&!Xr?Sr:ka(Sr,bn)}}),un=Object(T.a)(sn,2),ln=un[0],Kn=un[1],xn=Ja({values:ln,picker:Yt,defaultDates:Fn,generateConfig:bn}),Ur=Object(T.a)(xn,2),Pr=Ur[0],Jr=Ur[1],Fr=Object(c.a)(ln,{postState:function(Sr){var Qr=Sr;if(hn[0]&&hn[1])return Qr;for(var ma=0;ma<2;ma+=1)hn[ma]&&!we(Qr,ma)&&!we(Gr,ma)&&(Qr=ce(Qr,bn.getNow(),ma));return Qr}}),ta=Object(T.a)(Fr,2),zn=ta[0],Or=ta[1],Vn=Object(c.a)([Yt,Yt],{value:Jt}),En=Object(T.a)(Vn,2),Wn=En[0],zr=En[1];Object(h.useEffect)(function(){zr([Yt,Yt])},[Yt]);var sa=function(Sr,Qr){zr(Sr),lr&&lr(Qr,Sr)},gr=Ra({picker:Yt,selectedValue:zn,locale:Bn,disabled:hn,disabledDate:Rr,generateConfig:bn},va.current[1],va.current[0]),ra=Object(T.a)(gr,2),Ea=ra[0],ca=ra[1],xa=Object(c.a)(!1,{value:ur,defaultValue:ar,postState:function(Sr){return hn[it]?!1:Sr},onChange:function(Sr){kn&&kn(Sr),!Sr&&Vt.current&&Vt.current.onClose&&Vt.current.onClose()}}),Tr=Object(T.a)(xa,2),Er=Tr[0],Mr=Tr[1],or=Er&&it===0,da=Er&&it===1,ya=Object(h.useState)(0),_a=Object(T.a)(ya,2),Oa=_a[0],ha=_a[1];Object(h.useEffect)(function(){!Er&&Je.current&&ha(Je.current.offsetWidth)},[Er]);var La=h.useRef();function Na(ia,Sr){if(ia)clearTimeout(La.current),va.current[Sr]=!0,Lt(Sr),Mr(ia),Er||Jr(null,Sr);else if(it===Sr){Mr(ia);var Qr=va.current;La.current=setTimeout(function(){Qr===va.current&&(va.current={})})}}function Ba(ia){Na(!0,ia),setTimeout(function(){var Sr=[ze,Ie][ia];Sr.current&&Sr.current.focus()},0)}function ni(ia,Sr){var Qr=ia,ma=we(Qr,0),Fa=we(Qr,1);ma&&Fa&&bn.isAfter(ma,Fa)&&(Yt==="week"&&!gt(bn,Bn.locale,ma,Fa)||Yt==="quarter"&&!Se(bn,ma,Fa)||Yt!=="week"&&Yt!=="quarter"&&Yt!=="time"&&!rt(bn,ma,Fa)?(Sr===0?(Qr=[ma,null],Fa=null):(ma=null,Qr=[null,Fa]),va.current=Object(y.a)({},Sr,!0)):(Yt!=="time"||Xr!==!1)&&(Qr=ka(Qr,bn))),Or(Qr);var Ei=Qr&&Qr[0]?bn.locale.format(Bn.locale,Qr[0],$e[0]):"",Pi=Qr&&Qr[1]?bn.locale.format(Bn.locale,Qr[1],$e[0]):"";if(hr){var $a={range:Sr===0?"start":"end"};hr(Qr,[Ei,Pi],$a)}var xi=li(ma,0,hn,Gr),Ki=li(Fa,1,hn,Gr),go=Qr===null||xi&&Ki;go&&(Kn(Qr),ir&&(!Et(bn,we(ln,0),ma)||!Et(bn,we(ln,1),Fa))&&ir(Qr,[Ei,Pi]));var Qa=null;Sr===0&&!hn[1]?Qa=1:Sr===1&&!hn[0]&&(Qa=0),Qa!==null&&Qa!==it&&(!va.current[Qa]||!we(Qr,Qa))&&we(Qr,Sr)?Ba(Qa):Na(!1,Sr)}var Fi=function(Sr){return Er&&Vt.current&&Vt.current.onKeyDown?Vt.current.onKeyDown(Sr):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ai={formatList:$e,generateConfig:bn,locale:Bn},Ia=ga(we(zn,0),Ai),bi=Object(T.a)(Ia,2),Si=bi[0],Ua=bi[1],Pa=ga(we(zn,1),Ai),Za=Object(T.a)(Pa,2),to=Za[0],Mo=Za[1],Ii=function(Sr,Qr){var ma=bn.locale.parse(Bn.locale,Sr,$e),Fa=Qr===0?Ea:ca;ma&&!Fa(ma)&&(Or(ce(zn,ma,Qr)),Jr(ma,Qr))},no=Cn({valueTexts:Si,onTextChange:function(Sr){return Ii(Sr,0)}}),ro=Object(T.a)(no,3),mi=ro[0],uo=ro[1],Io=ro[2],Lo=Cn({valueTexts:to,onTextChange:function(Sr){return Ii(Sr,1)}}),bo=Object(T.a)(Lo,3),Vi=bo[0],co=bo[1],Xi=bo[2],Yi=Object(h.useState)(null),No=Object(T.a)(Yi,2),yo=No[0],ao=No[1],Ji=Object(h.useState)(null),Qi=Object(T.a)(Ji,2),ei=Qi[0],Li=Qi[1],Di=pa(mi,{formatList:$e,generateConfig:bn,locale:Bn}),Zi=Object(T.a)(Di,3),Ri=Zi[0],Eo=Zi[1],xo=Zi[2],Co=pa(Vi,{formatList:$e,generateConfig:bn,locale:Bn}),io=Object(T.a)(Co,3),Ni=io[0],qi=io[1],ko=io[2],oo=function(Sr){Li(ce(zn,Sr,it)),it===0?Eo(Sr):qi(Sr)},so=function(){Li(ce(zn,null,it)),it===0?xo():ko()},So=function(Sr,Qr){return{blurToCancel:wa,forwardKeyDown:Fi,onBlur:Zr,isClickOutside:function(Fa){return!B([ct.current,yt.current,at.current],Fa)},onFocus:function(Fa){Lt(Sr),cr&&cr(Fa)},triggerOpen:function(Fa){Na(Fa,Sr)},onSubmit:function(){ni(zn,Sr),Qr()},onCancel:function(){Na(!1,Sr),Or(ln),Qr()}}},Uo=tn(Object(S.a)(Object(S.a)({},So(0,Io)),{},{open:or,value:mi})),jo=Object(T.a)(Uo,2),fi=jo[0],Wa=jo[1],ri=Wa.focused,Xa=Wa.typing,ai=tn(Object(S.a)(Object(S.a)({},So(1,Xi)),{},{open:da,value:Vi})),wo=Object(T.a)(ai,2),yi=wo[0],Bo=wo[1],Oo=Bo.focused,$i=Bo.typing,Wi=function(Sr){!Er&&!ze.current.contains(Sr.target)&&!Ie.current.contains(Sr.target)&&(hn[0]?hn[1]||Ba(1):Ba(0))},To=function(Sr){Er&&(ri||Oo)&&!ze.current.contains(Sr.target)&&!Ie.current.contains(Sr.target)&&Sr.preventDefault()},fo=ln&&ln[0]?bn.locale.format(Bn.locale,ln[0],"YYYYMMDDHHmmss"):"",Wo=ln&&ln[1]?bn.locale.format(Bn.locale,ln[1],"YYYYMMDDHHmmss"):"";Object(h.useEffect)(function(){Er||(Or(ln),!Si.length||Si[0]===""?uo(""):Ua!==mi&&Io(),!to.length||to[0]===""?co(""):Mo!==Vi&&Xi())},[Er,Si,to]),Object(h.useEffect)(function(){Or(ln)},[fo,Wo]),Kt&&(Kt.current={focus:function(){ze.current&&ze.current.focus()},blur:function(){ze.current&&ze.current.blur(),Ie.current&&Ie.current.blur()}});var lo=Object.keys(br||{}),Ta=lo.map(function(ia){var Sr=br[ia],Qr=typeof Sr=="function"?Sr():Sr;return{label:ia,onClick:function(){ni(Qr,null),Na(!1,it)},onMouseEnter:function(){ao(Qr)},onMouseLeave:function(){ao(null)}}});function ba(){var ia=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qr=null;Er&&ei&&ei[0]&&ei[1]&&bn.isAfter(ei[1],ei[0])&&(Qr=ei);var ma=cn;if(cn&&Object(t.a)(cn)==="object"&&cn.defaultValue){var Fa=cn.defaultValue;ma=Object(S.a)(Object(S.a)({},cn),{},{defaultValue:we(Fa,it)||void 0})}var Ei=null;return tr&&(Ei=function($a,xi){return tr($a,xi,{range:it?"end":"start"})}),h.createElement(ft.Provider,{value:{inRange:!0,panelPosition:ia,rangedValue:yo||zn,hoverRangedValue:Qr}},h.createElement(he,Object.assign({},ye,Sr,{dateRender:Ei,showTime:ma,mode:Wn[it],generateConfig:bn,style:void 0,direction:yr,disabledDate:it===0?Ea:ca,disabledTime:function($a){return Ir?Ir($a,it===0?"start":"end"):!1},className:d()(Object(y.a)({},"".concat(Nt,"-panel-focused"),it===0?!Xa:!$i)),value:we(zn,it),locale:Bn,tabIndex:-1,onPanelChange:function($a,xi){sa(ce(Wn,xi,it),ce(zn,$a,it));var Ki=$a;ia==="right"&&Wn[it]===xi&&(Ki=Qe(Ki,xi,bn,-1)),Jr(Ki,it)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ka=0,ui=0;it&&yt.current&&Pe.current&&ct.current&&(Ka=yt.current.offsetWidth+Pe.current.offsetWidth,ct.current.offsetWidth&&Ka>ct.current.offsetWidth&&(ui=Ka));var eo=yr==="rtl"?{right:Ka}:{left:Ka};function ki(){var ia,Sr=Z(Nt,Wn[it],Xn),Qr=oe({prefixCls:Nt,components:la,needConfirmButton:wa,okDisabled:!we(zn,it)||Rr&&Rr(zn[it]),locale:Bn,rangeList:Ta,onOk:function(){we(zn,it)&&(ni(zn,it),dr&&dr(zn))}});if(Yt!=="time"&&!cn){var ma=Pr(it),Fa=Qe(ma,Yt,bn),Ei=Wn[it],Pi=Ei===Yt,$a=ba(Pi?"left":!1,{pickerValue:ma,onPickerValueChange:function(Qa){Jr(Qa,it)}}),xi=ba("right",{pickerValue:Fa,onPickerValueChange:function(Qa){Jr(Qe(Qa,Yt,bn,-1),it)}});yr==="rtl"?ia=h.createElement(h.Fragment,null,xi,Pi&&$a):ia=h.createElement(h.Fragment,null,$a,Pi&&xi)}else ia=ba();var Ki=h.createElement(h.Fragment,null,h.createElement("div",{className:"".concat(Nt,"-panels")},ia),(Sr||Qr)&&h.createElement("div",{className:"".concat(Nt,"-footer")},Sr,Qr));return Dr&&(Ki=Dr(Ki)),h.createElement("div",{className:"".concat(Nt,"-panel-container"),style:{marginLeft:ui},ref:ct,onMouseDown:function(Qa){Qa.preventDefault()}},Ki)}var ho=h.createElement("div",{className:d()("".concat(Nt,"-range-wrapper"),"".concat(Nt,"-").concat(Yt,"-range-wrapper")),style:{minWidth:Oa}},h.createElement("div",{className:"".concat(Nt,"-range-arrow"),style:eo}),ki()),wi;qr&&(wi=h.createElement("span",{className:"".concat(Nt,"-suffix")},qr));var qa;Lr&&(we(ln,0)&&!hn[0]||we(ln,1)&&!hn[1])&&(qa=h.createElement("span",{onMouseDown:function(Sr){Sr.preventDefault(),Sr.stopPropagation()},onMouseUp:function(Sr){Sr.preventDefault(),Sr.stopPropagation();var Qr=ln;hn[0]||(Qr=ce(Qr,null,0)),hn[1]||(Qr=ce(Qr,null,1)),ni(Qr,null),Na(!1,it)},className:"".concat(Nt,"-clear")},sr||h.createElement("span",{className:"".concat(Nt,"-clear-btn")})));var po={size:g(Yt,$e[0])},Hi=0,mo=0;yt.current&&at.current&&Pe.current&&(it===0?mo=yt.current.offsetWidth:(Hi=Ka,mo=at.current.offsetWidth));var hi=yr==="rtl"?{right:Hi}:{left:Hi},Da=function(Sr,Qr){var ma=ce(zn,Sr,it);Qr==="submit"||Qr!=="key"&&!wa?(ni(ma,it),it===0?xo():ko()):Or(ma)};return h.createElement(i.Provider,{value:{operationRef:Vt,hideHeader:Yt==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Da,open:Er}},h.createElement(Yn,{visible:Er,popupElement:ho,popupStyle:mn,prefixCls:Nt,dropdownClassName:jn,dropdownAlign:nn,getPopupContainer:Mn,transitionName:Dn,range:!0,direction:yr},h.createElement("div",Object.assign({ref:Je,className:d()(Nt,"".concat(Nt,"-range"),yn,(st={},Object(y.a)(st,"".concat(Nt,"-disabled"),hn[0]&&hn[1]),Object(y.a)(st,"".concat(Nt,"-focused"),it===0?ri:Oo),Object(y.a)(st,"".concat(Nt,"-rtl"),yr==="rtl"),st)),style:en,onClick:Wi,onMouseDown:To},Ee(ye)),h.createElement("div",{className:d()("".concat(Nt,"-input"),(It={},Object(y.a)(It,"".concat(Nt,"-input-active"),it===0),Object(y.a)(It,"".concat(Nt,"-input-placeholder"),!!Ri),It)),ref:yt},h.createElement("input",Object.assign({id:Xt,disabled:hn[0],readOnly:Qt||!Xa,value:Ri||mi,onChange:function(Sr){uo(Sr.target.value)},autoFocus:er,placeholder:we(Pn,0)||"",ref:ze},fi,po,{autoComplete:Yr}))),h.createElement("div",{className:"".concat(Nt,"-range-separator"),ref:Pe},On),h.createElement("div",{className:d()("".concat(Nt,"-input"),(At={},Object(y.a)(At,"".concat(Nt,"-input-active"),it===1),Object(y.a)(At,"".concat(Nt,"-input-placeholder"),!!Ni),At)),ref:at},h.createElement("input",Object.assign({disabled:hn[1],readOnly:Qt||!$i,value:Ni||Vi,onChange:function(Sr){co(Sr.target.value)},placeholder:we(Pn,1)||"",ref:Ie},yi,po,{autoComplete:Yr}))),h.createElement("div",{className:"".concat(Nt,"-active-bar"),style:Object(S.a)(Object(S.a)({},hi),{},{width:mo,position:"absolute"})}),wi,qa)))}var ua=function(ye){Object(A.a)(It,ye);var st=Object(b.a)(It);function It(){var At;return Object(L.a)(this,It),At=st.apply(this,arguments),At.pickerRef=h.createRef(),At.focus=function(){At.pickerRef.current&&At.pickerRef.current.focus()},At.blur=function(){At.pickerRef.current&&At.pickerRef.current.blur()},At}return Object(p.a)(It,[{key:"render",value:function(){return h.createElement(oi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),It}(h.Component),fa=ua,oa=Y.b=ja},onxn:function(M,Y){M.exports="data:image/png;base64,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"},osHv:function(M,Y,s){(function(L){L(s("VrN/"))})(function(L){"use strict";var p=L.Pos;function A(f,l){return f.line-l.line||f.ch-l.ch}var b="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",y=b+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",S=new RegExp("<(/?)(["+b+"]["+y+"]*)","g");function T(f,l,o,m){this.line=l,this.ch=o,this.cm=f,this.text=f.getLine(l),this.min=m?Math.max(m.from,f.firstLine()):f.firstLine(),this.max=m?Math.min(m.to-1,f.lastLine()):f.lastLine()}function h(f,l){var o=f.cm.getTokenTypeAt(p(f.line,l));return o&&/\btag\b/.test(o)}function _(f){return f.line>=f.max?void 0:(f.ch=0,f.text=f.cm.getLine(++f.line),!0)}function d(f){return f.line<=f.min?void 0:(f.text=f.cm.getLine(--f.line),f.ch=f.text.length,!0)}function r(f){for(;;){var l=f.text.indexOf(">",f.ch);if(l==-1){if(_(f))continue;return}if(!h(f,l+1)){f.ch=l+1;continue}var o=f.text.lastIndexOf("/",l),m=o>-1&&!/\S/.test(f.text.slice(o+1,l));return f.ch=l+1,m?"selfClose":"regular"}}function c(f){for(;;){var l=f.ch?f.text.lastIndexOf("<",f.ch-1):-1;if(l==-1){if(d(f))continue;return}if(!h(f,l+1)){f.ch=l;continue}S.lastIndex=l,f.ch=l;var o=S.exec(f.text);if(o&&o.index==l)return o}}function t(f){for(;;){S.lastIndex=f.ch;var l=S.exec(f.text);if(!l){if(_(f))continue;return}if(!h(f,l.index+1)){f.ch=l.index+1;continue}return f.ch=l.index+l[0].length,l}}function a(f){for(;;){var l=f.ch?f.text.lastIndexOf(">",f.ch-1):-1;if(l==-1){if(d(f))continue;return}if(!h(f,l+1)){f.ch=l;continue}var o=f.text.lastIndexOf("/",l),m=o>-1&&!/\S/.test(f.text.slice(o+1,l));return f.ch=l+1,m?"selfClose":"regular"}}function n(f,l){for(var o=[];;){var m=t(f),w,C=f.line,v=f.ch-(m?m[0].length:0);if(!m||!(w=r(f)))return;if(w=="selfClose")continue;if(m[1]){for(var P=o.length-1;P>=0;--P)if(o[P]==m[2]){o.length=P;break}if(P<0&&(!l||l==m[2]))return{tag:m[2],from:p(C,v),to:p(f.line,f.ch)}}else o.push(m[2])}}function i(f,l){for(var o=[];;){var m=a(f);if(!m)return;if(m=="selfClose"){c(f);continue}var w=f.line,C=f.ch,v=c(f);if(!v)return;if(v[1])o.push(v[2]);else{for(var P=o.length-1;P>=0;--P)if(o[P]==v[2]){o.length=P;break}if(P<0&&(!l||l==v[2]))return{tag:v[2],from:p(f.line,f.ch),to:p(w,C)}}}}L.registerHelper("fold","xml",function(f,l){for(var o=new T(f,l.line,0);;){var m=t(o);if(!m||o.line!=l.line)return;var w=r(o);if(!w)return;if(!m[1]&&w!="selfClose"){var C=p(o.line,o.ch),v=n(o,m[2]);return v&&A(v.from,C)>0?{from:C,to:v.from}:null}}}),L.findMatchingTag=function(f,l,o){var m=new T(f,l.line,l.ch,o);if(m.text.indexOf(">")==-1&&m.text.indexOf("<")==-1)return;var w=r(m),C=w&&p(m.line,m.ch),v=w&&c(m);if(!w||!v||A(m,l)>0)return;var P={from:p(m.line,m.ch),to:C,tag:v[2]};return w=="selfClose"?{open:P,close:null,at:"open"}:v[1]?{open:i(m,v[2]),close:P,at:"close"}:(m=new T(f,C.line,C.ch,o),{open:P,close:n(m,v[2]),at:"open"})},L.findEnclosingTag=function(f,l,o,m){for(var w=new T(f,l.line,l.ch,o);;){var C=i(w,m);if(!C)break;var v=new T(f,l.line,l.ch,o),P=n(v,C.tag);if(P)return{open:C,close:P}}},L.scanForClosingTag=function(f,l,o,m){var w=new T(f,l.line,l.ch,m?{from:0,to:m}:null);return n(w,o)}})},p5ED:function(M,Y,s){"use strict";var L=s("+L6B"),p=s("2/Rp"),A=s("5Dmo"),b=s("3S7+"),y=s("k1fw"),S=s("tJVT"),T=s("cDcd"),h=s.n(T),_=s("vHTk"),d=s.n(_),r=s("yEEn"),c=s("ZW9T"),t=s("1vsH");Y.a=function(a){var n=a.name,i=a.data,f=a.theme,l=a.type,o=a.filename,m=a.monacoEditor,w=a.className,C=a.style,v=a.close,P=a.onClose,R=a.hasMask,E=Object(T.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),x=Object(S.a)(E,2),g=x[0],O=x[1],I=Object(T.useState)(""),D=Object(S.a)(I,2),N=D[0],V=D[1],F,W=1024*1024,K=10*W,B=Object(T.useRef)();l==="office"&&(F=Object(t.V)(i).filesize,F>K&&(l="other")),o&&(m.filename=o),Object(T.useEffect)(function(){var ne,fe,de=(ne=document.cookie)===null||ne===void 0||((fe=ne.replace(/\s/g,""))===null||fe===void 0)?void 0:fe.split(";");de==null||de.map(function(Ee){var we=Ee.split("=");we[0]==="_educoder_session"&&V(we[1])})},[]);var k=function(){if(i.startsWith("http")||i.startsWith("/")){G();return}Object(t.z)(o||"educoder",i,o)},G=function(){Object(t.x)(o||n,i)};return console.log("data:",i,"fileanme:",o," name:",n),h.a.createElement("div",{style:Object(y.a)({},C||{}),className:"".concat(R&&d.a.bgBlack," ").concat(l?d.a.wrp:"hide")},v&&h.a.createElement("div",{className:d.a.close,ref:B},h.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return B.current}},h.a.createElement("span",{onClick:G},h.a.createElement("i",{className:"icon-quxiaozhiding"}))),h.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return B.current}},h.a.createElement("span",{className:"",onClick:P},h.a.createElement("i",{className:"icon-guanbi1"})))),h.a.createElement("div",{className:"".concat(d.a[w]," ").concat(w," ").concat(d.a.monaco," ").concat(l==="txt"?"show":"hide")},l==="txt"&&h.a.createElement(c.b,m)),l==="audio"&&h.a.createElement("audio",{src:"".concat(i!=null&&i.startsWith("/")||(i==null?void 0:i.indexOf("https://"))>-1?i:"data:audio/mp3;base64,").concat(i),autoPlay:!0}),l==="video"&&h.a.createElement(h.a.Fragment,null,i!=null&&i.startsWith("/")?h.a.createElement("video",{controls:!0,src:"".concat(i),autoPlay:!0}):h.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(i),autoPlay:!0})),l==="html"&&h.a.createElement("iframe",{src:i+"&disposition=inline"}),l==="pdf"&&h.a.createElement("embed",{className:d.a.embed,src:i}),l==="image"&&h.a.createElement(h.a.Fragment,null,h.a.createElement("img",{src:"".concat(i!=null&&i.startsWith("/")||(i==null?void 0:i.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(i)})),l==="other"&&h.a.createElement("div",null,h.a.createElement(p.a,{type:"primary",size:"large",onClick:k},h.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(l==="download"||l==="office")&&h.a.createElement(p.a,{type:"primary",size:"large",onClick:k},h.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(M,Y,s){},pA7S:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.WordArray,y=A.BlockCipher,S=p.algo,T=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],_=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],r=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],c=S.DES=y.extend({_doReset:function(){for(var i=this._key,f=i.words,l=[],o=0;o<56;o++){var m=T[o]-1;l[o]=f[m>>>5]>>>31-m%32&1}for(var w=this._subKeys=[],C=0;C<16;C++){for(var v=w[C]=[],P=_[C],o=0;o<24;o++)v[o/6|0]|=l[(h[o]-1+P)%28]<<31-o%6,v[4+(o/6|0)]|=l[28+(h[o+24]-1+P)%28]<<31-o%6;v[0]=v[0]<<1|v[0]>>>31;for(var o=1;o<7;o++)v[o]=v[o]>>>(o-1)*4+3;v[7]=v[7]<<5|v[7]>>>27}for(var R=this._invSubKeys=[],o=0;o<16;o++)R[o]=w[15-o]},encryptBlock:function(i,f){this._doCryptBlock(i,f,this._subKeys)},decryptBlock:function(i,f){this._doCryptBlock(i,f,this._invSubKeys)},_doCryptBlock:function(i,f,l){this._lBlock=i[f],this._rBlock=i[f+1],t.call(this,4,252645135),t.call(this,16,65535),a.call(this,2,858993459),a.call(this,8,16711935),t.call(this,1,1431655765);for(var o=0;o<16;o++){for(var m=l[o],w=this._lBlock,C=this._rBlock,v=0,P=0;P<8;P++)v|=d[P][((C^m[P])&r[P])>>>0];this._lBlock=C,this._rBlock=w^v}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,t.call(this,1,1431655765),a.call(this,8,16711935),a.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),i[f]=this._lBlock,i[f+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function t(i,f){var l=(this._lBlock>>>i^this._rBlock)&f;this._rBlock^=l,this._lBlock^=l<<i}function a(i,f){var l=(this._rBlock>>>i^this._lBlock)&f;this._lBlock^=l,this._rBlock^=l<<i}p.DES=y._createHelper(c);var n=S.TripleDES=y.extend({_doReset:function(){var i=this._key,f=i.words;if(f.length!==2&&f.length!==4&&f.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var l=f.slice(0,2),o=f.length<4?f.slice(0,2):f.slice(2,4),m=f.length<6?f.slice(0,2):f.slice(4,6);this._des1=c.createEncryptor(b.create(l)),this._des2=c.createEncryptor(b.create(o)),this._des3=c.createEncryptor(b.create(m))},encryptBlock:function(i,f){this._des1.encryptBlock(i,f),this._des2.decryptBlock(i,f),this._des3.encryptBlock(i,f)},decryptBlock:function(i,f){this._des3.decryptBlock(i,f),this._des2.encryptBlock(i,f),this._des1.decryptBlock(i,f)},keySize:192/32,ivSize:64/32,blockSize:64/32});p.TripleDES=y._createHelper(n)}(),L.TripleDES})},pUFm:function(M,Y,s){M.exports=s.p+"static/no-data.c803c40c.png"},psGv:function(M,Y,s){var L,p;(function(){var A;(function(){"use strict";var T=[,,function(r){function c(n){this.__parent=n,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}c.prototype.clone_empty=function(){var n=new c(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},c.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},c.prototype.has_match=function(n){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(n))return!0;return!1},c.prototype.set_indent=function(n,i){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},c.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)},c.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},c.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var n=this.__parent.current_line;return n.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),n.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),n.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,n.__items[0]===" "&&(n.__items.splice(0,1),n.__character_count-=1),!0}return!1},c.prototype.is_empty=function(){return this.__items.length===0},c.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},c.prototype.push=function(n){this.__items.push(n);var i=n.lastIndexOf(`
`);i!==-1?this.__character_count=n.length-i:this.__character_count+=n.length},c.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},c.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},c.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},c.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},c.prototype.toString=function(){var n="";return this.is_empty()?this.__parent.indent_empty_lines&&(n=this.__parent.get_indent_string(this.__indent_count)):(n=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),n+=this.__items.join("")),n};function t(n,i){this.__cache=[""],this.__indent_size=n.indent_size,this.__indent_string=n.indent_char,n.indent_with_tabs||(this.__indent_string=new Array(n.indent_size+1).join(n.indent_char)),i=i||"",n.indent_level>0&&(i=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}t.prototype.get_indent_size=function(n,i){var f=this.__base_string_length;return i=i||0,n<0&&(f=0),f+=n*this.__indent_size,f+=i,f},t.prototype.get_indent_string=function(n,i){var f=this.__base_string;return i=i||0,n<0&&(n=0,f=""),i+=n*this.__indent_size,this.__ensure_cache(i),f+=this.__cache[i],f},t.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var n=this.__cache.length,i=0,f="";this.__indent_size&&n>=this.__indent_size&&(i=Math.floor(n/this.__indent_size),n-=i*this.__indent_size,f=new Array(i+1).join(this.__indent_string)),n&&(f+=new Array(n+1).join(" ")),this.__cache.push(f)};function a(n,i){this.__indent_cache=new t(n,i),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new c(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(n,i){return this.__indent_cache.get_indent_string(n,i)},a.prototype.get_indent_size=function(n,i){return this.__indent_cache.get_indent_size(n,i)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(n){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var f=this.__lines.join(`
`);return n!==`
`&&(f=f.replace(/[\n]/g,n)),f},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(n,i){return n=n||0,i=i||0,this.next_line.set_indent(n,i),this.__lines.length>1?(this.current_line.set_indent(n,i),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(n){for(var i=0;i<n.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(n.whitespace_before),this.current_line.push(n.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},a.prototype.add_token=function(n){this.__add_space_before_token(),this.current_line.push(n),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},a.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},a.prototype.remove_indent=function(n){for(var i=this.__lines.length;n<i;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},a.prototype.trim=function(n){for(n=n===void 0?!1:n,this.current_line.trim();n&&this.__lines.length>1&&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},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(n,i){for(var f=this.__lines.length-2;f>=0;){var l=this.__lines[f];if(l.is_empty())break;if(l.item(0).indexOf(n)!==0&&l.item(-1)!==i){this.__lines.splice(f+1,0,new c(this)),this.previous_line=this.__lines[this.__lines.length-2];break}f--}},r.exports.Output=a},function(r){function c(t,a,n,i){this.type=t,this.text=a,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=c},,,function(r){function c(n,i){this.raw_options=t(n,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}c.prototype._get_array=function(n,i){var f=this.raw_options[n],l=i||[];return typeof f=="object"?f!==null&&typeof f.concat=="function"&&(l=f.concat()):typeof f=="string"&&(l=f.split(/[^a-zA-Z0-9_\/\-]+/)),l},c.prototype._get_boolean=function(n,i){var f=this.raw_options[n],l=f===void 0?!!i:!!f;return l},c.prototype._get_characters=function(n,i){var f=this.raw_options[n],l=i||"";return typeof f=="string"&&(l=f.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),l},c.prototype._get_number=function(n,i){var f=this.raw_options[n];i=parseInt(i,10),isNaN(i)&&(i=0);var l=parseInt(f,10);return isNaN(l)&&(l=i),l},c.prototype._get_selection=function(n,i,f){var l=this._get_selection_list(n,i,f);if(l.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
`+i+`
You passed in: '`+this.raw_options[n]+"'");return l[0]},c.prototype._get_selection_list=function(n,i,f){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(f=f||[i[0]],!this._is_valid_selection(f,i))throw new Error("Invalid Default Value!");var l=this._get_array(n,f);if(!this._is_valid_selection(l,i))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
`+i+`
You passed in: '`+this.raw_options[n]+"'");return l},c.prototype._is_valid_selection=function(n,i){return n.length&&i.length&&!n.some(function(f){return i.indexOf(f)===-1})};function t(n,i){var f={};n=a(n);var l;for(l in n)l!==i&&(f[l]=n[l]);if(i&&n[i])for(l in n[i])f[l]=n[i][l];return f}function a(n){var i={},f;for(f in n){var l=f.replace(/-/g,"_");i[l]=n[f]}return i}r.exports.Options=c,r.exports.normalizeOpts=a,r.exports.mergeOpts=t},,function(r){var c=RegExp.prototype.hasOwnProperty("sticky");function t(a){this.__input=a||"",this.__input_length=this.__input.length,this.__position=0}t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},t.prototype.peek=function(a){var n=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(n=this.__input.charAt(a)),n},t.prototype.__match=function(a,n){a.lastIndex=n;var i=a.exec(this.__input);return i&&!(c&&a.sticky)&&(i.index!==n&&(i=null)),i},t.prototype.test=function(a,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(a,n):!1},t.prototype.testChar=function(a,n){var i=this.peek(n);return a.lastIndex=0,i!==null&&a.test(i)},t.prototype.match=function(a){var n=this.__match(a,this.__position);return n?this.__position+=n[0].length:n=null,n},t.prototype.read=function(a,n,i){var f="",l;return a&&(l=this.match(a),l&&(f+=l[0])),n&&(l||!a)&&(f+=this.readUntil(n,i)),f},t.prototype.readUntil=function(a,n){var i="",f=this.__position;a.lastIndex=this.__position;var l=a.exec(this.__input);return l?(f=l.index,n&&(f+=l[0].length)):f=this.__input_length,i=this.__input.substring(this.__position,f),this.__position=f,i},t.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},t.prototype.get_regexp=function(a,n){var i=null,f="g";return n&&c&&(f="y"),typeof a=="string"&&a!==""?i=new RegExp(a,f):a&&(i=new RegExp(a.source,f)),i},t.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(a){var n=this.__position,i=this.readUntilAfter(a);return this.__position=n,i},t.prototype.lookBack=function(a){var n=this.__position-1;return n>=a.length&&this.__input.substring(n-a.length,n).toLowerCase()===a},r.exports.InputScanner=t},function(r,c,t){var a=t(8).InputScanner,n=t(3).Token,i=t(10).TokenStream,f=t(11).WhitespacePattern,l={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(m,w){this._input=new a(m),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new f(this._input)};o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var m,w=new n(l.START,""),C=null,v=[],P=new i;w.type!==l.EOF;){for(m=this._get_next_token(w,C);this._is_comment(m);)P.add(m),m=this._get_next_token(w,C);P.isEmpty()||(m.comments_before=P,P=new i),m.parent=C,this._is_opening(m)?(v.push(C),C=m):C&&this._is_closing(m,C)&&(m.opened=C,C.closed=m,C=v.pop(),m.parent=C),m.previous=w,w.next=m,this.__tokens.add(m),w=m}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(m,w){this._readWhitespace();var C=this._input.read(/.+/g);return C?this._create_token(l.RAW,C):this._create_token(l.EOF,"")},o.prototype._is_comment=function(m){return!1},o.prototype._is_opening=function(m){return!1},o.prototype._is_closing=function(m,w){return!1},o.prototype._create_token=function(m,w){var C=new n(m,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return C},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=o,r.exports.TOKEN=l},function(r){function c(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}c.prototype.restart=function(){this.__position=0},c.prototype.isEmpty=function(){return this.__tokens_length===0},c.prototype.hasNext=function(){return this.__position<this.__tokens_length},c.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},c.prototype.peek=function(t){var a=null;return t=t||0,t+=this.__position,t>=0&&t<this.__tokens_length&&(a=this.__tokens[t]),a},c.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},r.exports.TokenStream=c},function(r,c,t){var a=t(12).Pattern;function n(i,f){a.call(this,i,f),f?this._line_regexp=this._input.get_regexp(f._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new a,n.prototype.__set_whitespace_patterns=function(i,f){i+="\\t ",f+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+f+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+f+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var i=this._input.read(this._match_pattern);if(i===" ")this.whitespace_before_token=" ";else if(i){var f=this.__split(this._newline_regexp,i);this.newline_count=f.length-1,this.whitespace_before_token=f[this.newline_count]}return i},n.prototype.matching=function(i,f){var l=this._create();return l.__set_whitespace_patterns(i,f),l._update(),l},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(i,f){i.lastIndex=0;for(var l=0,o=[],m=i.exec(f);m;)o.push(f.substring(l,m.index)),l=m.index+m[0].length,m=i.exec(f);return l<f.length?o.push(f.substring(l,f.length)):o.push(""),o},r.exports.WhitespacePattern=n},function(r){function c(t,a){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,a&&(this._starting_pattern=this._input.get_regexp(a._starting_pattern,!0),this._match_pattern=this._input.get_regexp(a._match_pattern,!0),this._until_pattern=this._input.get_regexp(a._until_pattern),this._until_after=a._until_after)}c.prototype.read=function(){var t=this._input.read(this._starting_pattern);return(!this._starting_pattern||t)&&(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},c.prototype.read_match=function(){return this._input.match(this._match_pattern)},c.prototype.until_after=function(t){var a=this._create();return a._until_after=!0,a._until_pattern=this._input.get_regexp(t),a._update(),a},c.prototype.until=function(t){var a=this._create();return a._until_after=!1,a._until_pattern=this._input.get_regexp(t),a._update(),a},c.prototype.starting_with=function(t){var a=this._create();return a._starting_pattern=this._input.get_regexp(t,!0),a._update(),a},c.prototype.matching=function(t){var a=this._create();return a._match_pattern=this._input.get_regexp(t,!0),a._update(),a},c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){},r.exports.Pattern=c},function(r){function c(t,a){t=typeof t=="string"?t:t.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+a,"g")}c.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)a[n[1]]=n[2],n=this.__directive_pattern.exec(t);return a},c.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=c},function(r,c,t){var a=t(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(f,l){a.call(this,f,l),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),l&&(this.__template_pattern=this._input.get_regexp(l.__template_pattern),this._excluded=Object.assign(this._excluded,l._excluded),this._disabled=Object.assign(this._disabled,l._disabled));var o=new a(f);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new a,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(f){var l=this._create();return l._disabled[f]=!0,l._update(),l},i.prototype.read_options=function(f){var l=this._create();for(var o in n)l._disabled[o]=f.templating.indexOf(o)===-1;return l._update(),l},i.prototype.exclude=function(f){var l=this._create();return l._excluded[f]=!0,l._update(),l},i.prototype.read=function(){var f="";this._match_pattern?f=this._input.read(this._starting_pattern):f=this._input.read(this._starting_pattern,this.__template_pattern);for(var l=this._read_template();l;)this._match_pattern?l+=this._input.read(this._match_pattern):l+=this._input.readUntil(this.__template_pattern),f+=l,l=this._read_template();return this._until_after&&(f+=this._input.readUntilAfter(this._until_pattern)),f},i.prototype.__set_templated_pattern=function(){var f=[];this._disabled.php||f.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||f.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||f.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(f.push(this.__patterns.django._starting_pattern.source),f.push(this.__patterns.django_value._starting_pattern.source),f.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||f.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&f.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+f.join("|")+")")},i.prototype._read_template=function(){var f="",l=this._input.peek();if(l==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(f=f||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(f=f||this.__patterns.erb.read())}else l==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(f=f||this.__patterns.handlebars_comment.read(),f=f||this.__patterns.handlebars_unescaped.read(),f=f||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(f=f||this.__patterns.django_value.read()),this._excluded.django||(f=f||this.__patterns.django_comment.read(),f=f||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(f=f||this.__patterns.smarty_comment.read(),f=f||this.__patterns.smarty_literal.read(),f=f||this.__patterns.smarty.read()));return f},r.exports.TemplatablePattern=i},,,,function(r,c,t){var a=t(19).Beautifier,n=t(20).Options;function i(f,l,o,m){var w=new a(f,l,o,m);return w.beautify()}r.exports=i,r.exports.defaultOptions=function(){return new n}},function(r,c,t){var a=t(20).Options,n=t(2).Output,i=t(21).Tokenizer,f=t(21).TOKEN,l=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,m=function(I,D){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=I.max_preserve_newlines,this.preserve_newlines=I.preserve_newlines,this._output=new n(I,D)};m.prototype.current_line_has_match=function(I){return this._output.current_line.has_match(I)},m.prototype.set_space_before_token=function(I,D){this._output.space_before_token=I,this._output.non_breaking_space=D},m.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},m.prototype.add_raw_token=function(I){this._output.add_raw_token(I)},m.prototype.print_preserved_newlines=function(I){var D=0;I.type!==f.TEXT&&I.previous.type!==f.TEXT&&(D=I.newlines?1:0),this.preserve_newlines&&(D=I.newlines<this.max_preserve_newlines+1?I.newlines:this.max_preserve_newlines+1);for(var N=0;N<D;N++)this.print_newline(N>0);return D!==0},m.prototype.traverse_whitespace=function(I){return I.whitespace_before||I.newlines?(this.print_preserved_newlines(I)||(this._output.space_before_token=!0),!0):!1},m.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},m.prototype.print_newline=function(I){this._output.add_new_line(I)},m.prototype.print_token=function(I){I.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(I.text))},m.prototype.indent=function(){this.indent_level++},m.prototype.get_full_indent=function(I){return I=this.indent_level+(I||0),I<1?"":this._output.get_indent_string(I)};var w=function(I){for(var D=null,N=I.next;N.type!==f.EOF&&I.closed!==N;){if(N.type===f.ATTRIBUTE&&N.text==="type"){N.next&&N.next.type===f.EQUALS&&N.next.next&&N.next.next.type===f.VALUE&&(D=N.next.next.text);break}N=N.next}return D},C=function(I,D){var N=null,V=null;return D.closed?(I==="script"?N="text/javascript":I==="style"&&(N="text/css"),N=w(D)||N,N.search("text/css")>-1?V="css":N.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?V="javascript":N.search(/(text|application|dojo)\/(x-)?(html)/)>-1?V="html":N.search(/test\/null/)>-1&&(V="null"),V):null};function v(I,D){return D.indexOf(I)!==-1}function P(I,D,N){this.parent=I||null,this.tag=D?D.tag_name:"",this.indent_level=N||0,this.parser_token=D||null}function R(I){this._printer=I,this._current_frame=null}R.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},R.prototype.record_tag=function(I){var D=new P(this._current_frame,I,this._printer.indent_level);this._current_frame=D},R.prototype._try_pop_frame=function(I){var D=null;return I&&(D=I.parser_token,this._printer.indent_level=I.indent_level,this._current_frame=I.parent),D},R.prototype._get_frame=function(I,D){for(var N=this._current_frame;N&&!(I.indexOf(N.tag)!==-1);){if(D&&D.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},R.prototype.try_pop=function(I,D){var N=this._get_frame([I],D);return this._try_pop_frame(N)},R.prototype.indent_to_tag=function(I){var D=this._get_frame(I);D&&(this._printer.indent_level=D.indent_level)};function E(I,D,N,V){this._source_text=I||"",D=D||{},this._js_beautify=N,this._css_beautify=V,this._tag_stack=null;var F=new a(D,"html");this._options=F,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I=this._source_text,D=this._options.eol;this._options.eol==="auto"&&(D=`
`,I&&l.test(I)&&(D=I.match(l)[0])),I=I.replace(o,`
`);var N=I.match(/^[\t ]*/)[0],V={text:"",type:""},F=new x,W=new m(this._options,N),K=new i(I,this._options).tokenize();this._tag_stack=new R(W);for(var B=null,k=K.next();k.type!==f.EOF;)k.type===f.TAG_OPEN||k.type===f.COMMENT?(B=this._handle_tag_open(W,k,F,V),F=B):k.type===f.ATTRIBUTE||k.type===f.EQUALS||k.type===f.VALUE||k.type===f.TEXT&&!F.tag_complete?B=this._handle_inside_tag(W,k,F,K):k.type===f.TAG_CLOSE?B=this._handle_tag_close(W,k,F):k.type===f.TEXT?B=this._handle_text(W,k,F):W.add_raw_token(k),V=B,k=K.next();var G=W._output.get_code(D);return G},E.prototype._handle_tag_close=function(I,D,N){var V={text:D.text,type:D.type};return I.alignment_size=0,N.tag_complete=!0,I.set_space_before_token(D.newlines||D.whitespace_before!=="",!0),N.is_unformatted?I.add_raw_token(D):(N.tag_start_char==="<"&&(I.set_space_before_token(D.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&I.print_newline(!1)),I.print_token(D)),N.indent_content&&!(N.is_unformatted||N.is_content_unformatted)&&(I.indent(),N.indent_content=!1),!N.is_inline_element&&!(N.is_unformatted||N.is_content_unformatted)&&I.set_wrap_point(),V},E.prototype._handle_inside_tag=function(I,D,N,V){var F=N.has_wrapped_attrs,W={text:D.text,type:D.type};if(I.set_space_before_token(D.newlines||D.whitespace_before!=="",!0),N.is_unformatted)I.add_raw_token(D);else if(N.tag_start_char==="{"&&D.type===f.TEXT)I.print_preserved_newlines(D)?(D.newlines=0,I.add_raw_token(D)):I.print_token(D);else{if(D.type===f.ATTRIBUTE?(I.set_space_before_token(!0),N.attr_count+=1):(D.type===f.EQUALS||D.type===f.VALUE&&D.previous.type===f.EQUALS)&&I.set_space_before_token(!1),D.type===f.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(I.traverse_whitespace(D),F=F||D.newlines!==0),this._is_wrap_attributes_force)){var K=N.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&N.attr_count===1){var B=!0,k=0,G;do{if(G=V.peek(k),G.type===f.ATTRIBUTE){B=!1;break}k+=1}while(k<4&&G.type!==f.EOF&&G.type!==f.TAG_CLOSE);K=!B}K&&(I.print_newline(!1),F=!0)}I.print_token(D),F=F||I.previous_token_wrapped(),N.has_wrapped_attrs=F}return W},E.prototype._handle_text=function(I,D,N){var V={text:D.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(I,D,N):N.is_unformatted||N.is_content_unformatted?I.add_raw_token(D):(I.traverse_whitespace(D),I.print_token(D)),V},E.prototype._print_custom_beatifier_text=function(I,D,N){var V=this;if(D.text!==""){var F=D.text,W,K=1,B="",k="";N.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?W=this._js_beautify:N.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?W=this._css_beautify:N.custom_beautifier_name==="html"&&(W=function(we,ce){var be=new E(we,ce,V._js_beautify,V._css_beautify);return be.beautify()}),this._options.indent_scripts==="keep"?K=0:this._options.indent_scripts==="separate"&&(K=-I.indent_level);var G=I.get_full_indent(K);if(F=F.replace(/\n[ \t]*$/,""),N.custom_beautifier_name!=="html"&&F[0]==="<"&&F.match(/^(<!--|<!\[CDATA\[)/)){var ne=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(F);if(!ne){I.add_raw_token(D);return}B=G+ne[1]+`
`,F=ne[4],ne[5]&&(k=G+ne[5]),F=F.replace(/\n[ \t]*$/,""),(ne[2]||ne[3].indexOf(`
`)!==-1)&&(ne=ne[3].match(/[ \t]+$/),ne&&(D.whitespace_before=ne[0]))}if(F)if(W){var fe=function(){this.eol=`
`};fe.prototype=this._options.raw_options;var de=new fe;F=W(G+F,de)}else{var Ee=D.whitespace_before;Ee&&(F=F.replace(new RegExp(`
(`+Ee+")?","g"),`
`)),F=G+F.replace(/\n/g,`
`+G)}B&&(F?F=B+F+`
`+k:F=B+k),I.print_newline(!1),F&&(D.text=F,D.whitespace_before="",D.newlines=0,I.add_raw_token(D),I.print_newline(!0))}},E.prototype._handle_tag_open=function(I,D,N,V){var F=this._get_tag_open_token(D);return(N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&D.type===f.TAG_OPEN&&D.text.indexOf("</")===0?(I.add_raw_token(D),F.start_tag_token=this._tag_stack.try_pop(F.tag_name)):(I.traverse_whitespace(D),this._set_tag_position(I,D,F,N,V),F.is_inline_element||I.set_wrap_point(),I.print_token(D)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(F.alignment_size=D.text.length+1),!F.tag_complete&&!F.is_unformatted&&(I.alignment_size=F.alignment_size),F};var x=function(I,D){if(this.parent=I||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!D)this.tag_complete=!0;else{var N;this.tag_start_char=D.text[0],this.text=D.text,this.tag_start_char==="<"?(N=D.text.match(/^<([^\s>]*)/),this.tag_check=N?N[1]:""):(N=D.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=N?N[1]:"",(D.text.startsWith("{{#>")||D.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&D.next!==null?this.tag_check=D.next.text.split(" ")[0]:this.tag_check=D.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),D.type===f.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||D.closed&&D.closed.text==="/>";var V=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(V=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(V)))}};E.prototype._get_tag_open_token=function(I){var D=new x(this._tag_stack.get_parser_token(),I);return D.alignment_size=this._options.wrap_attributes_indent_size,D.is_end_tag=D.is_end_tag||v(D.tag_check,this._options.void_elements),D.is_empty_element=D.tag_complete||D.is_start_tag&&D.is_end_tag,D.is_unformatted=!D.tag_complete&&v(D.tag_check,this._options.unformatted),D.is_content_unformatted=!D.is_empty_element&&v(D.tag_check,this._options.content_unformatted),D.is_inline_element=v(D.tag_name,this._options.inline)||D.tag_name.includes("-")||D.tag_start_char==="{",D},E.prototype._set_tag_position=function(I,D,N,V,F){if(N.is_empty_element||(N.is_end_tag?N.start_tag_token=this._tag_stack.try_pop(N.tag_name):(this._do_optional_end_element(N)&&(N.is_inline_element||I.print_newline(!1)),this._tag_stack.record_tag(N),(N.tag_name==="script"||N.tag_name==="style")&&!(N.is_unformatted||N.is_content_unformatted)&&(N.custom_beautifier_name=C(N.tag_check,D)))),v(N.tag_check,this._options.extra_liners)&&(I.print_newline(!1),I._output.just_added_blankline()||I.print_newline(!0)),N.is_empty_element){if(N.tag_start_char==="{"&&N.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),N.indent_content=!0;var W=I.current_line_has_match(/{{#if/);W||I.print_newline(!1)}N.tag_name==="!--"&&F.type===f.TAG_CLOSE&&V.is_end_tag&&N.text.indexOf(`
`)===-1||(N.is_inline_element||N.is_unformatted||I.print_newline(!1),this._calcluate_parent_multiline(I,N))}else if(N.is_end_tag){var K=!1;K=N.start_tag_token&&N.start_tag_token.multiline_content,K=K||!N.is_inline_element&&!(V.is_inline_element||V.is_unformatted)&&!(F.type===f.TAG_CLOSE&&N.start_tag_token===V)&&F.type!=="TK_CONTENT",(N.is_content_unformatted||N.is_unformatted)&&(K=!1),K&&I.print_newline(!1)}else N.indent_content=!N.custom_beautifier_name,N.tag_start_char==="<"&&(N.tag_name==="html"?N.indent_content=this._options.indent_inner_html:N.tag_name==="head"?N.indent_content=this._options.indent_head_inner_html:N.tag_name==="body"&&(N.indent_content=this._options.indent_body_inner_html)),!(N.is_inline_element||N.is_unformatted)&&(F.type!=="TK_CONTENT"||N.is_content_unformatted)&&I.print_newline(!1),this._calcluate_parent_multiline(I,N)},E.prototype._calcluate_parent_multiline=function(I,D){D.parent&&I._output.just_added_newline()&&!((D.is_inline_element||D.is_unformatted)&&D.parent.is_inline_element)&&(D.parent.multiline_content=!0)};var g=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],O=["a","audio","del","ins","map","noscript","video"];E.prototype._do_optional_end_element=function(I){var D=null;if(I.is_empty_element||!I.is_start_tag||!I.parent)return;if(I.tag_name==="body")D=D||this._tag_stack.try_pop("head");else if(I.tag_name==="li")D=D||this._tag_stack.try_pop("li",["ol","ul"]);else if(I.tag_name==="dd"||I.tag_name==="dt")D=D||this._tag_stack.try_pop("dt",["dl"]),D=D||this._tag_stack.try_pop("dd",["dl"]);else if(I.parent.tag_name==="p"&&g.indexOf(I.tag_name)!==-1){var N=I.parent.parent;(!N||O.indexOf(N.tag_name)===-1)&&(D=D||this._tag_stack.try_pop("p"))}else I.tag_name==="rp"||I.tag_name==="rt"?(D=D||this._tag_stack.try_pop("rt",["ruby","rtc"]),D=D||this._tag_stack.try_pop("rp",["ruby","rtc"])):I.tag_name==="optgroup"?D=D||this._tag_stack.try_pop("optgroup",["select"]):I.tag_name==="option"?D=D||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):I.tag_name==="colgroup"?D=D||this._tag_stack.try_pop("caption",["table"]):I.tag_name==="thead"?(D=D||this._tag_stack.try_pop("caption",["table"]),D=D||this._tag_stack.try_pop("colgroup",["table"])):I.tag_name==="tbody"||I.tag_name==="tfoot"?(D=D||this._tag_stack.try_pop("caption",["table"]),D=D||this._tag_stack.try_pop("colgroup",["table"]),D=D||this._tag_stack.try_pop("thead",["table"]),D=D||this._tag_stack.try_pop("tbody",["table"])):I.tag_name==="tr"?(D=D||this._tag_stack.try_pop("caption",["table"]),D=D||this._tag_stack.try_pop("colgroup",["table"]),D=D||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(I.tag_name==="th"||I.tag_name==="td")&&(D=D||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),D=D||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return I.parent=this._tag_stack.get_parser_token(),D},r.exports.Beautifier=E},function(r,c,t){var a=t(6).Options;function n(i){a.call(this,i,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}n.prototype=new a,r.exports.Options=n},function(r,c,t){var a=t(9).Tokenizer,n=t(9).TOKEN,i=t(13).Directives,f=t(14).TemplatablePattern,l=t(12).Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},m=new i(/<\!--/,/-->/),w=function(C,v){a.call(this,C,v),this._current_tag_name="";var P=new f(this._input).read_options(this._options),R=new l(this._input);if(this.__patterns={word:P.until(/[\n\r\t <]/),single_quote:P.until_after(/'/),double_quote:P.until_after(/"/),attribute:P.until(/[\n\r\t =>]|\/>/),element_name:P.until(/[\n\r\t >\/]/),handlebars_comment:R.starting_with(/{{!--/).until_after(/--}}/),handlebars:R.starting_with(/{{/).until_after(/}}/),handlebars_open:R.until(/[\n\r\t }]/),handlebars_raw_close:R.until(/}}/),comment:R.starting_with(/<!--/).until_after(/-->/),cdata:R.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:R.starting_with(/<!\[/).until_after(/]>/),processing:R.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var E=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=R.matching(E).until_after(E)}};w.prototype=new a,w.prototype._is_comment=function(C){return!1},w.prototype._is_opening=function(C){return C.type===o.TAG_OPEN},w.prototype._is_closing=function(C,v){return C.type===o.TAG_CLOSE&&v&&((C.text===">"||C.text==="/>")&&v.text[0]==="<"||C.text==="}}"&&v.text[0]==="{"&&v.text[1]==="{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(C,v){var P=null;this._readWhitespace();var R=this._input.peek();return R===null?this._create_token(o.EOF,""):(P=P||this._read_open_handlebars(R,v),P=P||this._read_attribute(R,C,v),P=P||this._read_close(R,v),P=P||this._read_raw_content(R,C,v),P=P||this._read_content_word(R),P=P||this._read_comment_or_cdata(R),P=P||this._read_processing(R),P=P||this._read_open(R,v),P=P||this._create_token(o.UNKNOWN,this._input.next()),P)},w.prototype._read_comment_or_cdata=function(C){var v=null,P=null,R=null;if(C==="<"){var E=this._input.peek(1);E==="!"&&(P=this.__patterns.comment.read(),P?(R=m.get_directives(P),R&&R.ignore==="start"&&(P+=m.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(v=this._create_token(o.COMMENT,P),v.directives=R)}return v},w.prototype._read_processing=function(C){var v=null,P=null,R=null;if(C==="<"){var E=this._input.peek(1);(E==="!"||E==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(v=this._create_token(o.COMMENT,P),v.directives=R)}return v},w.prototype._read_open=function(C,v){var P=null,R=null;return v||C==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),R=this._create_token(o.TAG_OPEN,P)),R},w.prototype._read_open_handlebars=function(C,v){var P=null,R=null;return v||this._options.indent_handlebars&&C==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),R=this._create_token(o.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),R=this._create_token(o.TAG_OPEN,P))),R},w.prototype._read_close=function(C,v){var P=null,R=null;return v&&(v.text[0]==="<"&&(C===">"||C==="/"&&this._input.peek(1)===">")?(P=this._input.next(),C==="/"&&(P+=this._input.next()),R=this._create_token(o.TAG_CLOSE,P)):v.text[0]==="{"&&C==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),R=this._create_token(o.TAG_CLOSE,"}}"))),R},w.prototype._read_attribute=function(C,v,P){var R=null,E="";if(P&&P.text[0]==="<")if(C==="=")R=this._create_token(o.EQUALS,this._input.next());else if(C==='"'||C==="'"){var x=this._input.next();C==='"'?x+=this.__patterns.double_quote.read():x+=this.__patterns.single_quote.read(),R=this._create_token(o.VALUE,x)}else E=this.__patterns.attribute.read(),E&&(v.type===o.EQUALS?R=this._create_token(o.VALUE,E):R=this._create_token(o.ATTRIBUTE,E));return R},w.prototype._is_content_unformatted=function(C){return this._options.void_elements.indexOf(C)===-1&&(this._options.content_unformatted.indexOf(C)!==-1||this._options.unformatted.indexOf(C)!==-1)},w.prototype._read_raw_content=function(C,v,P){var R="";if(P&&P.text[0]==="{")R=this.__patterns.handlebars_raw_close.read();else if(v.type===o.TAG_CLOSE&&v.opened.text[0]==="<"&&v.text[0]!=="/"){var E=v.opened.text.substr(1).toLowerCase();if(E==="script"||E==="style"){var x=this._read_comment_or_cdata(C);if(x)return x.type=o.TEXT,x;R=this._input.readUntil(new RegExp("</"+E+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(E)&&(R=this._input.readUntil(new RegExp("</"+E+"[\\n\\r\\t ]*?>","ig")))}return R?this._create_token(o.TEXT,R):null},w.prototype._read_content_word=function(C){var v="";if(this._options.unformatted_content_delimiter&&(C===this._options.unformatted_content_delimiter[0]&&(v=this.__patterns.unformatted_content_delimiter.read())),v||(v=this.__patterns.word.read()),v)return this._create_token(o.TEXT,v)},r.exports.Tokenizer=w,r.exports.TOKEN=o}],h={};function _(r){var c=h[r];if(c!==void 0)return c.exports;var t=h[r]={exports:{}};return T[r](t,t.exports,_),t.exports}var d=_(18);A=d})();var b=A;if(!0)!(L=[s,s("6UM0"),s("TXwP")],p=function(T){var h=s("6UM0"),_=s("TXwP");return{html_beautify:function(d,r){return b(d,r,h.js_beautify,_.css_beautify)}}}.apply(Y,L),p!==void 0&&(M.exports=p));else var y,S})()},qB8g:function(M,Y,s){M.exports={flexRow:"flexRow___Aj71W",flexColumn:"flexColumn___2jvSr",formWrap:"formWrap___3OxLN",upload:"upload___2lUf4",color0152d9:"color0152d9___10ICR",colorCCC:"colorCCC___2mbRd",footerWrap:"footerWrap___1Ytvb",qrCode:"qrCode___2RFKG",a1:"a1___HdrHw",code:"code___17cwA",group:"group___DUj4t",groupNumber:"groupNumber___3_2zt",a2:"a2___2_e5C"}},qBft:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return L.pad.AnsiX923={pad:function(p,A){var b=p.sigBytes,y=A*4,S=y-b%y,T=b+S-1;p.clamp(),p.words[T>>>2]|=S<<24-T%4*8,p.sigBytes+=S},unpad:function(p){var A=p.words[p.sigBytes-1>>>2]&255;p.sigBytes-=A}},L.pad.Ansix923})},qM6L:function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.WordArray,y=p.enc,S=y.Utf16=y.Utf16BE={stringify:function(h){for(var _=h.words,d=h.sigBytes,r=[],c=0;c<d;c+=2){var t=_[c>>>2]>>>16-c%4*8&65535;r.push(String.fromCharCode(t))}return r.join("")},parse:function(h){for(var _=h.length,d=[],r=0;r<_;r++)d[r>>>1]|=h.charCodeAt(r)<<16-r%2*16;return b.create(d,_*2)}};y.Utf16LE={stringify:function(h){for(var _=h.words,d=h.sigBytes,r=[],c=0;c<d;c+=2){var t=T(_[c>>>2]>>>16-c%4*8&65535);r.push(String.fromCharCode(t))}return r.join("")},parse:function(h){for(var _=h.length,d=[],r=0;r<_;r++)d[r>>>1]|=T(h.charCodeAt(r)<<16-r%2*16);return b.create(d,_*2)}};function T(h){return h<<8&4278255360|h>>>8&16711935}}(),L.enc.Utf16})},qgvg:function(M,Y){M.exports="data:image/gif;base64,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"},qu8F:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return L.mode.CTRGladman=function(){var p=L.lib.BlockCipherMode.extend();function A(S){if((S>>24&255)===255){var T=S>>16&255,h=S>>8&255,_=S&255;T===255?(T=0,h===255?(h=0,_===255?_=0:++_):++h):++T,S=0,S+=T<<16,S+=h<<8,S+=_}else S+=1<<24;return S}function b(S){return(S[0]=A(S[0]))===0&&(S[1]=A(S[1])),S}var y=p.Encryptor=p.extend({processBlock:function(S,T){var h=this._cipher,_=h.blockSize,d=this._iv,r=this._counter;d&&(r=this._counter=d.slice(0),this._iv=void 0),b(r);var c=r.slice(0);h.encryptBlock(c,0);for(var t=0;t<_;t++)S[T+t]^=c[t]}});return p.Decryptor=y,p}(),L.mode.CTRGladman})},"rAM+":function(M,Y,s){"use strict";s.d(Y,"a",function(){return p});var L=s("Qw5x");function p(A,b){var y;if(typeof Symbol=="undefined"||A[Symbol.iterator]==null){if(Array.isArray(A)||(y=Object(L.a)(A))||b&&A&&typeof A.length=="number"){y&&(A=y);var S=0,T=function(){};return{s:T,n:function(){return S>=A.length?{done:!0}:{done:!1,value:A[S++]}},e:function(c){throw c},f:T}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h=!0,_=!1,d;return{s:function(){y=A[Symbol.iterator]()},n:function(){var c=y.next();return h=c.done,c},e:function(c){_=!0,d=c},f:function(){try{!h&&y.return!=null&&y.return()}finally{if(_)throw d}}}}},rHrb:function(M,Y,s){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.CopyToClipboard=void 0;var L=A(s("cDcd")),p=A(s("+QRC"));function A(o){return o&&o.__esModule?o:{default:o}}function b(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(w){return typeof w}:b=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},b(o)}function y(o,m){var w=Object.keys(o);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(o);m&&(C=C.filter(function(v){return Object.getOwnPropertyDescriptor(o,v).enumerable})),w.push.apply(w,C)}return w}function S(o){for(var m=1;m<arguments.length;m++){var w=arguments[m]!=null?arguments[m]:{};m%2?y(w,!0).forEach(function(C){f(o,C,w[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(w)):y(w).forEach(function(C){Object.defineProperty(o,C,Object.getOwnPropertyDescriptor(w,C))})}return o}function T(o,m){if(o==null)return{};var w=h(o,m),C,v;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(o);for(v=0;v<P.length;v++){if(C=P[v],m.indexOf(C)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(o,C))continue;w[C]=o[C]}}return w}function h(o,m){if(o==null)return{};var w={},C=Object.keys(o),v,P;for(P=0;P<C.length;P++){if(v=C[P],m.indexOf(v)>=0)continue;w[v]=o[v]}return w}function _(o,m){if(!(o instanceof m))throw new TypeError("Cannot call a class as a function")}function d(o,m){for(var w=0;w<m.length;w++){var C=m[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(o,C.key,C)}}function r(o,m,w){return m&&d(o.prototype,m),w&&d(o,w),o}function c(o,m){return m&&(b(m)==="object"||typeof m=="function")?m:a(o)}function t(o){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},t(o)}function a(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function n(o,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(m&&m.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),m&&i(o,m)}function i(o,m){return i=Object.setPrototypeOf||function(C,v){return C.__proto__=v,C},i(o,m)}function f(o,m,w){return m in o?Object.defineProperty(o,m,{value:w,enumerable:!0,configurable:!0,writable:!0}):o[m]=w,o}var l=function(o){n(m,o);function m(){var w,C;_(this,m);for(var v=arguments.length,P=new Array(v),R=0;R<v;R++)P[R]=arguments[R];return C=c(this,(w=t(m)).call.apply(w,[this].concat(P))),f(a(C),"onClick",function(E){var x=C.props,g=x.text,O=x.onCopy,I=x.children,D=x.options,N=L.default.Children.only(I),V=(0,p.default)(g,D);O&&O(g,V),N&&N.props&&typeof N.props.onClick=="function"&&N.props.onClick(E)}),C}return r(m,[{key:"render",value:function(){var C=this.props,v=C.text,P=C.onCopy,R=C.options,E=C.children,x=T(C,["text","onCopy","options","children"]),g=L.default.Children.only(E);return L.default.cloneElement(g,S({},x,{onClick:this.onClick}))}}]),m}(L.default.PureComponent);Y.CopyToClipboard=l,f(l,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(M,Y){const s=/[&<>"']/,L=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,A=/[<>"']|&(?!#?\w+;)/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},y=R=>b[R];function S(R,E){if(E){if(s.test(R))return R.replace(L,y)}else if(p.test(R))return R.replace(A,y);return R}const T=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function h(R){return R.replace(T,(E,x)=>(x=x.toLowerCase(),x==="colon"?":":x.charAt(0)==="#"?x.charAt(1)==="x"?String.fromCharCode(parseInt(x.substring(2),16)):String.fromCharCode(+x.substring(1)):""))}const _=/(^|[^\[])\^/g;function d(R,E){R=R.source||R,E=E||"";const x={replace:(g,O)=>(O=O.source||O,O=O.replace(_,"$1"),R=R.replace(g,O),x),getRegex:()=>new RegExp(R,E)};return x}const r=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function t(R,E,x){if(R){let g;try{g=decodeURIComponent(h(x)).replace(r,"").toLowerCase()}catch(O){return null}if(g.indexOf("javascript:")===0||g.indexOf("vbscript:")===0||g.indexOf("data:")===0)return null}E&&!c.test(x)&&(x=l(E,x));try{x=encodeURI(x).replace(/%25/g,"%")}catch(g){return null}return x}const a={},n=/^[^:]+:\/*[^/]*$/,i=/^([^:]+:)[\s\S]*$/,f=/^([^:]+:\/*[^/]*)[\s\S]*$/;function l(R,E){a[" "+R]||(n.test(R)?a[" "+R]=R+"/":a[" "+R]=C(R,"/",!0)),R=a[" "+R];const x=R.indexOf(":")===-1;return E.substring(0,2)==="//"?x?E:R.replace(i,"$1")+E:E.charAt(0)==="/"?x?E:R.replace(f,"$1")+E:R+E}const o={exec:function(){}};function m(R){let E=1,x,g;for(;E<arguments.length;E++){x=arguments[E];for(g in x)Object.prototype.hasOwnProperty.call(x,g)&&(R[g]=x[g])}return R}function w(R,E){const x=R.replace(/\|/g,(I,D,N)=>{let V=!1,F=D;for(;--F>=0&&N[F]==="\\";)V=!V;return V?"|":" |"}),g=x.split(/ \|/);let O=0;if(g.length>E)g.splice(E);else for(;g.length<E;)g.push("");for(;O<g.length;O++)g[O]=g[O].trim().replace(/\\\|/g,"|");return g}function C(R,E,x){const g=R.length;if(g===0)return"";let O=0;for(;O<g;){const I=R.charAt(g-O-1);if(I===E&&!x)O++;else if(I!==E&&x)O++;else break}return R.substr(0,g-O)}function v(R,E){if(R.indexOf(E[1])===-1)return-1;const x=R.length;let g=0,O=0;for(;O<x;O++)if(R[O]==="\\")O++;else if(R[O]===E[0])g++;else if(R[O]===E[1]&&(g--,g<0))return O;return-1}function P(R){R&&R.sanitize&&!R.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}M.exports={escape:S,unescape:h,edit:d,cleanUrl:t,resolveUrl:l,noopTest:o,merge:m,splitCells:w,rtrim:C,findClosingBracket:v,checkSanitizeDeprecation:P}},ruvs:function(M,Y,s){"use strict";s.d(Y,"b",function(){return Ue});var L=s("2qtc"),p=s("kLXV"),A=s("9og8"),b=s("rAM+"),y=s("tJVT"),S=s("PpiC"),T=s("k1fw"),h=s("5NDa"),_=s("5rEg"),d=s("B9cy"),r=s("Ol7k"),c=s("WmNS"),t=s.n(c),a=s("cDcd"),n=s.n(a),i=s("Ty5D"),f=s("55Ip"),l=s("9kvl"),o=s("lzim"),m=s("xrsn"),w=s.n(m),C=s("1Sn+"),v=s("qVdP"),P=s("jsC+"),R=s("14J3"),E=s("BMrR"),x=s("jCWc"),g=s("kPKH"),O=s("lUTK"),I=s("BvKs"),D=s("miYZ"),N=s("tsqr"),V=s("7Kak"),F=s("9yH6"),W=s("6CvP"),K=s("1vsH"),B;(function(_t){_t.Manager="manager",_t.Developer="developer",_t.Reporter="reporter"})(B||(B={}));var k=function(Ye){var We=Ye.visible,Xe=Ye.onCancel,Te=Xe===void 0?function(){}:Xe,Me=Object(a.useState)(),Ve=Object(y.a)(Me,2),Ge=Ve[0],Ze=Ve[1],mt=Object(a.useState)(),Pt=Object(y.a)(mt,2),Gt=Pt[0],dn=Pt[1],Tt=Object(a.useState)(!1),ut=Object(y.a)(Tt,2),je=ut[0],tt=ut[1],nt=function(){var Fe=Object(A.a)(t.a.mark(function bt(){var dt,xt;return t.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(Ge){et.next=3;break}return N.b.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),et.abrupt("return");case 3:if(!(Ge.length!==6)){et.next=6;break}return N.b.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),et.abrupt("return");case 6:if(Gt){et.next=9;break}return N.b.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01"),et.abrupt("return");case 9:return tt(!0),et.next=12,Object(W.e)({code:Ge,role:Gt});case 12:if(dt=et.sent,tt(!1),De(),xt={1:"\u60A8\u8F93\u5165\u7684\u9080\u8BF7\u7801\u9519\u8BEF",2:"\u60A8\u5DF2\u7ECF\u662F\u8BE5\u9879\u76EE\u6210\u5458",3:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u89D2\u8272",4:"\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279",5:"\u60A8\u5DF2\u7ECF\u7533\u8BF7\u52A0\u5165\u8BE5\u9879\u76EE\u4E86\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85",6:"\u60A8\u5DF2\u6210\u529F\u52A0\u5165\u9879\u76EE"},!xt[dt.status]){et.next=19;break}return N.b.info(xt[dt.status]),et.abrupt("return");case 19:if(!(dt.status===0)){et.next=22;break}return Gt==="reporter"?(N.b.success("\u60A8\u52A0\u5165\u9879\u76EE\u6210\u529F\uFF01"),Object(K.eb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u6210\u529F"]),l.d.push("/projects/".concat(dt==null?void 0:dt.project_id))):(Object(K.eb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u7B49\u5F85\u5BA1\u6279"]),N.b.success("\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279\uFF01")),et.abrupt("return");case 22:case"end":return et.stop()}},bt)}));return function(){return Fe.apply(this,arguments)}}(),De=function(){var Fe=Object(A.a)(t.a.mark(function bt(){return t.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:Te();case 1:case"end":return xt.stop()}},bt)}));return function(){return Fe.apply(this,arguments)}}();return n.a.createElement(n.a.Fragment,null,n.a.createElement(p.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u9879\u76EE",visible:We,confirmLoading:je,onOk:nt,onCancel:De},n.a.createElement("div",{className:"tc"},n.a.createElement("div",null,n.a.createElement("span",null,"\u9879\u76EE\u9080\u8BF7\u7801\uFF1A"),n.a.createElement(_.a,{placeholder:"\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",style:{width:270},value:Ge,onChange:function(bt){if(bt.target.value.length>=7){N.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}Ze(bt.target.value)}})),n.a.createElement("div",{className:"mt10 font14"},n.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),n.a.createElement(F.a.Group,{value:Gt,onChange:function(bt){return dn(bt.target.value)}},n.a.createElement(F.a,{value:B.Manager},"\u7BA1\u7406\u4EBA\u5458"),n.a.createElement(F.a,{value:B.Developer},"\u5F00\u53D1\u4EBA\u5458"),n.a.createElement(F.a,{value:B.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},G=k,ne=s("Jky8"),fe=s("6Fuo"),de=s.n(fe),Ee=s("NLgs"),we;(function(_t){_t.Projects="projects",_t.Shixuns="shixuns",_t.Classrooms="classrooms"})(we||(we={}));var ce;(function(_t){_t.Classrooms="classrooms",_t.Shixuns="shixuns",_t.Paths="paths",_t.Projects="projects",_t.Videos="videos",_t.Topics="topics"})(ce||(ce={}));var be=function(Ye){var We,Xe,Te,Me,Ve,Ge,Ze,mt=Ye.homePage,Pt=Ye.user,Gt=Ye.globalSetting,dn=Ye.loading,Tt=Ye.dispatch,ut=Ye.location,je=Object(S.a)(Ye,["homePage","user","globalSetting","loading","dispatch","location"]),tt=Object(a.useState)(),nt=Object(y.a)(tt,2),De=nt[0],Fe=nt[1],bt=Object(a.useState)(),dt=Object(y.a)(bt,2),xt=dt[0],kt=dt[1],et=function(rn){var Qn;if(!Object(Ee.e)(Tt))return;if(rn===we.Projects&&!((Qn=Pt.userInfo)!==null&&Qn!==void 0&&Qn.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}rn===we.Classrooms?Fe(!0):rn===we.Projects&&kt(!0)},Mt=function(rn,Qn){var Zn;if(!Object(Ee.e)(Tt))return;if(Qn===we.Projects&&!((Zn=Pt.userInfo)!==null&&Zn!==void 0&&Zn.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(Qn===we.Shixuns&&!Object(Ee.c)())return;rn&&(window.location.href=rn)},Ht=(We=(((Xe=Gt.setting)===null||Xe===void 0?void 0:Xe.navbar)||[]).find(function(wn){return wn.link==="/".concat(ce.Classrooms)}))===null||We===void 0?void 0:We.hidden,_n=(Te=(((Me=Gt.setting)===null||Me===void 0?void 0:Me.navbar)||[]).find(function(wn){return wn.link==="/".concat(ce.Shixuns)}))===null||Te===void 0?void 0:Te.hidden,vn=(Ve=(((Ge=Gt.setting)===null||Ge===void 0?void 0:Ge.navbar)||[]).find(function(wn){return wn.link==="/".concat(ce.Paths)}))===null||Ve===void 0?void 0:Ve.hidden;if(Gt!=null&&(Ze=Gt.setting)!==null&&Ze!==void 0&&Ze.is_local){var fn;Pt!=null&&(fn=Pt.userInfo)!==null&&fn!==void 0&&fn.is_shixun_marker||(_n=!0)}var Gn=function(rn){var Qn,Zn,rr,$n,Ar,pr,on,Zt,An,jr,Ln,qn,Un,pe;return n.a.createElement(n.a.Fragment,null,n.a.createElement(E.a,{justify:"space-around",className:"pt5 pb5"},n.a.createElement(g.a,{className:de.a.joinCol},((Qn=Pt.userInfo)===null||Qn===void 0?void 0:Qn.user_identity)!=="\u5B66\u751F"&&!Ht&&n.a.createElement(I.a.Item,rn,n.a.createElement("a",{onClick:function(){return Mt("/classrooms/new")}},(Zn=Pt.userInfo)!==null&&Zn!==void 0&&Zn.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!_n&&n.a.createElement(I.a.Item,rn,n.a.createElement("a",{onClick:function(){return Mt("/shixuns/new",we.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),(((rr=Pt.userInfo)===null||rr===void 0?void 0:rr.main_site)&&(($n=Pt.navigationInfo)===null||$n===void 0?void 0:$n.top)||!((Ar=Pt.userInfo)!==null&&Ar!==void 0&&Ar.main_site)&&((pr=Pt.navigationInfo)===null||pr===void 0?void 0:pr.top)&&!vn&&(((on=Pt.userInfo)===null||on===void 0?void 0:on.admin)||((Zt=Pt.userInfo)===null||Zt===void 0?void 0:Zt.is_teacher)||((An=Pt.userInfo)===null||An===void 0?void 0:An.business)))&&n.a.createElement(I.a.Item,rn,n.a.createElement("a",{onClick:function(){return Mt("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Gt!=null&&(jr=Gt.setting)!==null&&jr!==void 0&&jr.is_local)&&((Ln=Pt.userInfo)===null||Ln===void 0?void 0:Ln.main_site)&&n.a.createElement(I.a.Item,rn,n.a.createElement("a",{onClick:function(){var Z,oe;return Mt("".concat((Z=Pt.navigationInfo)===null||Z===void 0||((oe=Z.top)===null||oe===void 0)?void 0:oe.old_url,"/projects/deposit/new"),we.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),n.a.createElement(g.a,null,n.a.createElement("div",{className:de.a.joinBoard})),n.a.createElement(g.a,{className:de.a.joinCol},!Ht&&n.a.createElement(I.a.Item,rn,n.a.createElement("a",{onClick:function(){return et(we.Classrooms)}},(qn=Pt.userInfo)!==null&&qn!==void 0&&qn.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((Un=Pt.userInfo)===null||Un===void 0?void 0:Un.main_site)&&!(Gt!=null&&(pe=Gt.setting)!==null&&pe!==void 0&&pe.is_local)&&n.a.createElement(I.a.Item,rn,n.a.createElement("a",{onClick:function(){return et(we.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return n.a.createElement("section",null,n.a.createElement(P.a,{overlay:n.a.createElement(I.a,{className:"".concat(de.a.rightMenu," ").concat(de.a.joinMenu," mt10")},n.a.createElement(Gn,null)),placement:"bottomRight"},n.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),n.a.createElement(ne.a,{visible:De,onCancel:function(){return Fe(!1)}}),n.a.createElement(G,{visible:xt,onCancel:function(){return kt(!1)}}))},ve=Object(l.a)(function(_t){var Ye=_t.homePage,We=_t.loading,Xe=_t.user,Te=_t.globalSetting;return{homePage:Ye,user:Xe,globalSetting:Te,loading:We.models.index}})(be),ue=s("vToQ"),se=s.n(ue),q=s("xKgJ"),me=s("jb+D"),re=s("m3rI"),ie=function(Ye){var We,Xe=RegExp("(^| )"+Ye+"=([^;]+)(;|$)");return(We=document.cookie.match(Xe))?decodeURIComponent(We[2]):null},Oe=function(Ye){var We=new Date;We.setTime(We.getTime()-1);var Xe=ie(Ye);Xe!=null&&(document.cookie=Ye+"="+Xe+";expires="+We.toGMTString())},le;(function(_t){_t.Classrooms="classrooms",_t.Shixuns="shixuns",_t.Paths="paths",_t.Projects="projects",_t.Videos="videos",_t.Topics="topics"})(le||(le={}));var $=function(Ye){var We,Xe,Te,Me,Ve,Ge,Ze,mt,Pt,Gt,dn,Tt=Ye.homePage,ut=Ye.user,je=Ye.globalSetting,tt=Ye.loading,nt=Ye.dispatch,De=Ye.shixunHomeworks,Fe=Ye.location,bt=Ye.payload,dt=bt===void 0?{}:bt,xt=Object(S.a)(Ye,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),kt=(We=(((Xe=je.setting)===null||Xe===void 0?void 0:Xe.navbar)||[]).find(function(wn){return wn.link==="/".concat(le.Classrooms)}))===null||We===void 0?void 0:We.hidden,et=(Te=(((Me=je.setting)===null||Me===void 0?void 0:Me.navbar)||[]).find(function(wn){return wn.link==="/".concat(le.Shixuns)}))===null||Te===void 0?void 0:Te.hidden,Mt=(Ve=(((Ge=je.setting)===null||Ge===void 0?void 0:Ge.navbar)||[]).find(function(wn){return wn.link==="/".concat(le.Paths)}))===null||Ve===void 0?void 0:Ve.hidden,Ht=((Ze=ut.userInfo)===null||Ze===void 0?void 0:Ze.admin)||((mt=ut.userInfo)===null||mt===void 0?void 0:mt.business)||((Pt=ut.userInfo)===null||Pt===void 0?void 0:Pt.is_shixun_marker)||((Gt=ut.userInfo)===null||Gt===void 0?void 0:Gt.is_teacher)||((dn=ut.userInfo)===null||dn===void 0?void 0:dn.user_identity)!=="\u5B66\u751F",_n=function(){if(Object(K.r)())return n.a.createElement(I.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},n.a.createElement(I.a.Item,null,n.a.createElement(f.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var rn,Qn,Zn,rr,$n,Ar,pr,on,Zt,An,jr,Ln,qn,Un,pe,z,Z,oe,xe,he,lt,an;return n.a.createElement(I.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},n.a.createElement(I.a.Item,null,n.a.createElement(f.a,{to:"/users/".concat((rn=ut.userInfo)===null||rn===void 0?void 0:rn.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!kt&&n.a.createElement(I.a.Item,null,n.a.createElement(f.a,{to:"/users/".concat((Qn=ut.userInfo)===null||Qn===void 0?void 0:Qn.login,"/classrooms")},(Zn=ut.userInfo)!==null&&Zn!==void 0&&Zn.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!et&&n.a.createElement(I.a.Item,null,n.a.createElement(f.a,{to:"/users/".concat((rr=ut.userInfo)===null||rr===void 0?void 0:rr.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!Mt&&n.a.createElement(I.a.Item,null,n.a.createElement(f.a,{to:"/users/".concat(($n=ut.userInfo)===null||$n===void 0?void 0:$n.login,"/paths")},(Ar=ut.userInfo)!==null&&Ar!==void 0&&Ar.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((pr=ut.userInfo)===null||pr===void 0?void 0:pr.main_site)&&!((on=je.setting)!==null&&on!==void 0&&on.is_local)&&n.a.createElement(I.a.Item,null,n.a.createElement(f.a,{to:"/users/".concat((Zt=ut.userInfo)===null||Zt===void 0?void 0:Zt.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),n.a.createElement(I.a.Item,null,n.a.createElement(f.a,{to:"/users/".concat((An=ut.userInfo)===null||An===void 0?void 0:An.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),n.a.createElement(I.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(Ee.e)(nt))return;l.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),Ht&&n.a.createElement(I.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(Ee.e)(nt))return;l.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((jr=ut.navigationInfo)===null||jr===void 0||((Ln=jr.top)===null||Ln===void 0)?void 0:Ln.customer_management_url)&&n.a.createElement(I.a.Item,null,n.a.createElement("a",{href:(qn=ut.navigationInfo)===null||qn===void 0||((Un=qn.top)===null||Un===void 0)?void 0:Un.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((pe=ut.navigationInfo)===null||pe===void 0||((z=pe.top)===null||z===void 0)?void 0:z.college_identifier)&&n.a.createElement(I.a.Item,null,n.a.createElement(f.a,{to:"/colleges/".concat((Z=ut.navigationInfo)===null||Z===void 0||((oe=Z.top)===null||oe===void 0)?void 0:oe.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((xe=ut.navigationInfo)===null||xe===void 0||((he=xe.top)===null||he===void 0)?void 0:he.laboratory_admin_url)&&n.a.createElement(I.a.Item,null,n.a.createElement("a",{href:(lt=ut.navigationInfo)===null||lt===void 0||((an=lt.top)===null||an===void 0)?void 0:an.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),n.a.createElement(I.a.Item,null,n.a.createElement(f.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||nt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:n.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),n.a.createElement(I.a.Item,{className:se.a.exit},n.a.createElement("a",{onClick:Object(A.a)(t.a.mark(function Nn(){var Yn;return t.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(me.c)({});case 2:Yn=Cn.sent,(Yn==null?void 0:Yn.status)===1&&(nt({type:"user/getUserInfo",payload:Object(T.a)({},dt)}),nt({type:"user/getNavigationInfo",payload:Object(T.a)({},dt)}),Oe("autologin_trustie"),Oe("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),N.b.success(Yn==null?void 0:Yn.message),l.d.replace("/"));case 4:case"end":return Cn.stop()}},Nn)}))},"\u9000\u51FA")))};if(Object(q.p)()){var vn,fn;return n.a.createElement(P.a,{className:"".concat(se.a.height67),overlay:_n,placement:"bottomRight"},n.a.createElement("section",null,n.a.createElement("aside",null,n.a.createElement("div",{className:De.actionTabs.type===1?se.a.classromediv:""},n.a.createElement("img",{className:"".concat(se.a.userPic," current ml15"),src:"".concat(re.a===null||re.a===void 0?void 0:re.a.IMG_SERVER,"/images/").concat((vn=ut.userInfo)===null||vn===void 0?void 0:vn.image_url),alt:"",onClick:function(){var rn;return l.d.push(Object(K.r)()?"/account/profile":"/users/".concat((rn=ut.userInfo)===null||rn===void 0?void 0:rn.login,"/classrooms"))}}),Object(K.r)()&&n.a.createElement("span",{className:"ml10 font16"},(fn=ut.userInfo)===null||fn===void 0?void 0:fn.username)))))}else{var Gn;return n.a.createElement("div",{className:"font15 ".concat(je.isIlearning?se.a.login:"")},n.a.createElement("span",{className:"ml10 mr5 current c-white",onClick:function(){nt({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((Gn=je.setting)!==null&&Gn!==void 0&&Gn.close_register)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("span",{className:"ml5 mr5"},"|"),n.a.createElement(f.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},J=Object(l.a)(function(_t){var Ye=_t.homePage,We=_t.loading,Xe=_t.user,Te=_t.globalSetting,Me=_t.shixunHomeworks;return{homePage:Ye,user:Xe,globalSetting:Te,shixunHomeworks:Me,loading:We.models.index}})($),te=s("+L6B"),Ae=s("2/Rp"),Se=s("Cs+z"),ke=s.n(Se),rt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],ot=function(Ye){var We=Ye.homePage,Xe=Ye.user,Te=Ye.globalSetting,Me=Ye.loading,Ve=Ye.dispatch,Ge=Ye.location,Ze=Ye.text,mt=Ye.shixunHomeworks,Pt=Ye.payload,Gt=Pt===void 0?{}:Pt,dn=Object(S.a)(Ye,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Tt=Object(a.useState)("none"),ut=Object(y.a)(Tt,2),je=ut[0],tt=ut[1];return Object(a.useEffect)(function(){mt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&tt("flex")},[mt.actionTabs.key]),Object(a.useEffect)(function(){mt.actionTabs.key==="\u9690\u85CF"&&(tt("none"),localStorage.setItem("Noviceguide","0"))},[mt.actionTabs.key]),n.a.createElement("div",{style:{display:je,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},n.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},n.a.createElement("img",{src:ke.a,style:{position:"absolute",top:"-32px"}}),n.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},mt.actionTabs.text),mt.actionTabs.type===9?n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(Ae.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),tt("none"),Ve({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(Ae.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Ve({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),tt("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},gt=Object(l.a)(function(_t){var Ye=_t.homePage,We=_t.loading,Xe=_t.user,Te=_t.globalSetting,Me=_t.shixunHomeworks;return{homePage:Ye,user:Xe,globalSetting:Te,loading:We.models.index,shixunHomeworks:Me}})(ot),Et=s("498V"),Ct=s.n(Et),wt=r.a.Header,Qe=_.a.Search;function Ue(){var _t,Ye,We=window.location.pathname,Xe=We.split("/"),Te={};return Xe[1]=="classrooms"&&Xe.length>3&&!((_t=Xe[4])!==null&&_t!==void 0&&_t.includes("newgold"))&&!((Ye=Xe[5])!==null&&Ye!==void 0&&Ye.includes("newgold"))&&Xe[2]!=="coursesId"&&(Te.course_id=Xe[2]),Xe[1]==="shixuns"&&Xe.length>3&&(Te.objective_type="shixun",Te.objective_id=Xe[2]),Xe[1]==="paths"&&Xe.length>3&&(Te.objective_type="path",Te.objective_id=Xe[2]),Object(T.a)(Object(T.a)({},Te),{school:1})}var ft=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],jt=function(Ye){var We,Xe=Ye.homePage,Te=Ye.user,Me=Ye.globalSetting,Ve=Ye.loading,Ge=Ye.dispatch,Ze=Ye.location,mt=Ye.isLogin,Pt=mt===void 0?!1:mt,Gt=Ye.shixunHomeworks,dn=Object(S.a)(Ye,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),Tt=Object(i.g)(),ut=Object(a.useState)(!1),je=Object(y.a)(ut,2),tt=je[0],nt=je[1],De=Object(a.useState)(""),Fe=Object(y.a)(De,2),bt=Fe[0],dt=Fe[1],xt=Object(a.useState)(!1),kt=Object(y.a)(xt,2),et=kt[0],Mt=kt[1],Ht=Ue();Object(a.useEffect)(function(){Ge({type:"user/getNavigationInfo",payload:Object(T.a)({},Ht)})},[Me.name]),Object(a.useEffect)(function(){Gt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(ft!=null&&ft.includes(Ze==null?void 0:Ze.pathname)||(Ze==null?void 0:Ze.pathname.indexOf("/classrooms"))===0||Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ze.pathname]),Object(a.useEffect)(function(){Gt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Gt.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Gt.actionTabs.key]),Object(a.useEffect)(function(){if(Me!=null&&Me.setting){var Ln,qn,Un=Me==null||((Ln=Me.setting)===null||Ln===void 0||((qn=Ln.navbar)===null||qn===void 0))?void 0:qn.filter(function(xe){return!(xe!=null&&xe.hidden)&&!(Object(q.m)()&&xe.link==="/paperlibrary")}),pe=Object(b.a)(Un),z;try{for(pe.s();!(z=pe.n()).done;){var Z=z.value;Z.subitem&&(Z.subitem=Z.subitem.filter(function(xe){return!(xe!=null&&xe.hidden)&&!(Object(q.m)()&&xe.link==="/paperlibrary")}))}}catch(xe){pe.e(xe)}finally{pe.f()}var oe=!1;Un==null||Un.map(function(xe,he){var lt,an,Nn,Yn="/"+((lt=Ze.pathname)===null||lt===void 0||((an=lt.split("/"))===null||an===void 0)?void 0:an[1]);if(xe.link===Yn&&(dt(xe==null?void 0:xe.link),Object(K.Z)(xe==null?void 0:xe.name),Qn(rr(he,{name:xe==null?void 0:xe.name,link:xe==null?void 0:xe.link},Un)),oe=!0),xe!=null&&(Nn=xe.subitem)!==null&&Nn!==void 0&&Nn.length){var tn;xe==null||((tn=xe.subitem)===null||tn===void 0)||tn.map(function(Cn){Cn.link===Yn&&(dt(Cn==null?void 0:Cn.link),Object(K.Z)(Cn==null?void 0:Cn.name),Qn(rr(he,{name:Cn==null?void 0:Cn.name,link:Cn==null?void 0:Cn.link},Un)),oe=!0)})}}),oe||Qn(Un)}},[Me==null?void 0:Me.setting,Te]);var _n=Object(a.useMemo)(function(){var Ln;if(Me!=null&&(Ln=Me.setting)!==null&&Ln!==void 0&&Ln.nav_logo_url){var qn;return"".concat(re.a.IMG_SERVER,"/").concat(Me==null||((qn=Me.setting)===null||qn===void 0)?void 0:qn.nav_logo_url)}else return"".concat(re.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[Me==null||((We=Me.setting)===null||We===void 0)?void 0:We.nav_logo_url]);function vn(Ln){Tt.push("/search?value="+Ln)}var fn=function(){return tt?n.a.createElement("div",{onBlur:function(){setTimeout(function(){nt(!1)},300)}},n.a.createElement(Qe,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:vn,autoFocus:!0})):n.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){Tt.push("/search?value=")}})},Gn=Object(a.useState)([]),wn=Object(y.a)(Gn,2),rn=wn[0],Qn=wn[1],Zn=function(){var Ln=Object(A.a)(t.a.mark(function qn(Un,pe){var z,Z,oe,xe,he,lt,an;return t.a.wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(!((Un==null?void 0:Un.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Yn.next=6;break}return Yn.next=3,Object(me.j)();case 3:return oe=Yn.sent,oe!=null&&(Z=oe.data)!==null&&Z!==void 0&&Z.engineer_url?oe!=null&&(xe=oe.data)!==null&&xe!==void 0&&(he=xe.engineer_url)!==null&&he!==void 0&&he.includes("http")?Object(K.U)(oe==null||((lt=oe.data)===null||lt===void 0)?void 0:lt.engineer_url):Tt.push(oe==null||((an=oe.data)===null||an===void 0)?void 0:an.engineer_url):(oe==null?void 0:oe.status)!=401&&Mt(!0),Yn.abrupt("return");case 6:Un!=null&&(z=Un.link)!==null&&z!==void 0&&z.includes("http")?Object(K.U)(Un==null?void 0:Un.link):Tt.push(Un==null?void 0:Un.link),(Un==null?void 0:Un.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:n.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}});case 8:case"end":return Yn.stop()}},qn)}));return function(Un,pe){return Ln.apply(this,arguments)}}(),rr=function(qn,Un,pe){var z=pe.slice();return z[qn]&&(z[qn].name=Un.name,z[qn].link=Un.link),z||[]};if(Me.showHeader&&Me.showHeaderFooter){var $n,Ar,pr,on,Zt,An,jr;return n.a.createElement(r.a,{className:"".concat(Me.isIlearning?w.a["header-iearning"]:w.a.header," ").concat(Me.showHeaderFixed?w.a.headerFixed:"")},n.a.createElement(wt,{className:"header"},n.a.createElement("section",{className:w.a["edu-menu"]},(!!Me.isIlearning||!(Me!=null&&($n=Me.setting)!==null&&$n!==void 0&&$n.main_site)&&!!(Me!=null&&(Ar=Me.setting)!==null&&Ar!==void 0&&Ar.navbar))&&n.a.createElement(f.a,{style:{display:"flex",alignItems:"center"},onClick:function(){Ge({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},n.a.createElement("img",{className:w.a.logo,title:(pr=Me.setting)===null||pr===void 0?void 0:pr.name,src:_n||Ct.a})),n.a.createElement("ul",{className:"".concat(w.a.menu," ").concat(Object(K.r)()&&"ml0")},Object(K.r)()&&n.a.createElement("li",null,n.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(K.r)()&&Me.setting&&rn.map(function(Ln,qn){var Un,pe,z,Z,oe;return n.a.createElement("li",{key:qn,className:!(Ln!=null&&(Un=Ln.subitem)!==null&&Un!==void 0&&Un.length)&&bt===(Ln==null?void 0:Ln.link)||Ln!=null&&(pe=Ln.subitem)!==null&&pe!==void 0&&pe.some(function(xe){return bt===(xe==null?void 0:xe.link)})?w.a.actived:""},n.a.createElement("div",{onClick:function(){return Zn(Ln,qn)},className:Gt.actionTabs.type===4?"".concat(w.a.name," ").concat(w.a.classromediv):w.a.name},n.a.createElement("span",null,function(){var xe=Ln==null?void 0:Ln.name;{var he;Ln==null||((he=Ln.subitem)===null||he===void 0)||he.map(function(lt,an){return lt.link===Ze.pathname&&(xe=lt.name),lt})}return xe}()),(Ln==null||((z=Ln.subitem)===null||z===void 0)?void 0:z.length)>0&&n.a.createElement("i",{className:"iconfont icon-zhankai4"})),(Ln==null||((Z=Ln.subitem)===null||Z===void 0)?void 0:Z.length)>0&&n.a.createElement("div",{className:w.a.dropDown},Ln==null||((oe=Ln.subitem)===null||oe===void 0)?void 0:oe.map(function(xe,he){return n.a.createElement("div",{className:w.a.subName,onClick:function(){return Zn(xe,qn)},key:qn+"-"+he},!!he&&n.a.createElement("div",{className:w.a.line}),n.a.createElement("aside",{className:"font16 c-black"},xe.name),n.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},xe.content))})))})),n.a.createElement("div",{className:"search-bar",style:{flex:Me.isIlearning?"initial":"1 0 auto"}},!Object(K.r)()&&!(Me!=null&&Me.isIlearning)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(fn,null),!Pt&&n.a.createElement(ve,null),!Pt&&!!(Te!=null&&(on=Te.userInfo)!==null&&on!==void 0&&on.login)&&n.a.createElement(f.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(Te==null||((Zt=Te.userInfo)===null||Zt===void 0)?void 0:Zt.login,"/user_tidings")},(Te==null||((An=Te.navigationInfo)===null||An===void 0||((jr=An.top)===null||jr===void 0))?void 0:jr.new_message)&&n.a.createElement("span",{className:w.a.newslight}))),!Pt&&n.a.createElement(J,{payload:Ht}))),n.a.createElement(p.a,{centered:!0,destroyOnClose:!0,visible:et,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(K.U)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return Mt(!1)}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},n.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),n.a.createElement("img",{src:o.z,width:200,height:200}),n.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))),n.a.createElement(gt,null))}else return n.a.createElement(n.a.Fragment,null)},ht=Y.a=Object(l.a)(function(_t){var Ye=_t.homePage,We=_t.loading,Xe=_t.user,Te=_t.globalSetting,Me=_t.shixunHomeworks;return{homePage:Ye,user:Xe,globalSetting:Te,loading:We.models.index,shixunHomeworks:Me}})(jt)},sLOW:function(M,Y,s){"use strict";var L=s("iQDF"),p=s("+eQT"),A=s("Awhp"),b=s("KrTs"),y=s("O3gP"),S=s("lrIw"),T=s("7Kak"),h=s("9yH6"),_=s("sRBo"),d=s("kaz8"),r=s("+L6B"),c=s("2/Rp"),t=s("oBTY"),a=s("miYZ"),n=s("tsqr"),i=s("2qtc"),f=s("kLXV"),l=s("9og8"),o=s("tJVT"),m=s("PpiC"),w=s("WmNS"),C=s.n(w),v=s("cDcd"),P=s.n(v),R=s("9kvl"),E=s("Z0Lh"),x=s.n(E),g=s("9ZNV"),O=s("NLgs"),I=s("wd/R"),D=s.n(I),N=s("L+Ii"),V=s.n(N),F=function(k){if(!k)return k;var G=k.split(":");if(G[1]=="00"||G[1]=="30")return k;var ne=parseInt(G[1]);if(ne<30||ne==60)return[G[0],"30"].join(":");if(ne<60){var fe=[G[0],"00"].join(":"),de="YYYY-MM-DD HH:mm",Ee=D()(fe,de);return Ee.add(1,"hours"),Ee.format(de)}return k},W="YYYY-MM-DD HH:mm",K=function(k){var G,ne,fe,de,Ee,we,ce,be,ve=k.shixunsDetail,ue=k.globalSetting,se=k.loading,q=k.user,me=k.dispatch,re=Object(m.a)(k,["shixunsDetail","globalSetting","loading","user","dispatch"]),ie=Object(v.useRef)(),Oe=Object(v.useState)(),le=Object(o.a)(Oe,2),$=le[0],J=le[1],te=Object(v.useState)(),Ae=Object(o.a)(te,2),Se=Ae[0],ke=Ae[1],rt=Object(v.useState)([]),ot=Object(o.a)(rt,2),gt=ot[0],Et=ot[1],Ct=Object(v.useState)([]),wt=Object(o.a)(Ct,2),Qe=wt[0],Ue=wt[1],ft=Object(v.useState)(""),jt=Object(o.a)(ft,2),ht=jt[0],_t=jt[1],Ye=Object(v.useState)(),We=Object(o.a)(Ye,2),Xe=We[0],Te=We[1],Me=Object(v.useState)(),Ve=Object(o.a)(Me,2),Ge=Ve[0],Ze=Ve[1],mt=(G=q.userInfo)===null||G===void 0||((ne=G.shixun)===null||ne===void 0)?void 0:ne.editable;Object(v.useEffect)(function(){var je,tt;ie.current=(je=location.pathname)===null||je===void 0||((tt=je.split("/"))===null||tt===void 0)?void 0:tt[2],Pt()},[]),Object(v.useEffect)(function(){var je,tt,nt,De,Fe,bt,dt,xt,kt,et;if(!ve.setting)return;J((je=ve.setting)===null||je===void 0||((tt=je.shixun)===null||tt===void 0)?void 0:tt.can_copy),ke((nt=ve.setting)===null||nt===void 0||((De=nt.shixun)===null||De===void 0)?void 0:De.use_scope),Te(!!((Fe=ve.setting)!==null&&Fe!==void 0&&(bt=Fe.shixun)!==null&&bt!==void 0&&bt.opening_time)),Ze((dt=ve.setting)===null||dt===void 0||((xt=dt.shixun)===null||xt===void 0)?void 0:xt.opening_time),Et((kt=ve.setting)===null||kt===void 0||((et=kt.shixun)===null||et===void 0)?void 0:et.scope_partment)},[ve.setting]);var Pt=function(){var je=Object(l.a)(C.a.mark(function tt(nt){var De;return C.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:nt}});case 2:De=bt.sent,De&&Ue(De.shools_name||[]);case 4:case"end":return bt.stop()}},tt)}));return function(nt){return je.apply(this,arguments)}}(),Gt=function(){var je=Object(l.a)(C.a.mark(function tt(){var nt,De,Fe,bt,dt,xt,kt;return C.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ie.current}});case 2:if(Mt.t0=Mt.sent,Mt.t0){Mt.next=5;break}Mt.t0={};case 5:kt=Mt.t0,f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:P.a.createElement("div",{className:"tc font14 ".concat(V.a.modal)},!!((nt=kt.subjects)!==null&&nt!==void 0&&nt.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230 ",(De=kt.subjects)===null||De===void 0||((Fe=De.splice(0,2))===null||Fe===void 0)?void 0:Fe.map(function(Ht){return"\u300A".concat(Ht,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},kt==null?void 0:kt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),P.a.createElement("br",null)),!!((bt=kt.courses)!==null&&bt!==void 0&&bt.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(dt=kt.courses)===null||dt===void 0||((xt=dt.splice(0,2))===null||xt===void 0)?void 0:xt.map(function(Ht){return"\u300A".concat(Ht,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},kt==null?void 0:kt.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),P.a.createElement("br",null)),P.a.createElement("span",{className:"".concat(V.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 Ht=Object(l.a)(C.a.mark(function vn(){var fn;return C.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ie.current}});case 2:fn=wn.sent,fn.status===1&&(n.b.success("\u64CD\u4F5C\u6210\u529F"),R.d.push("/shixuns"));case 4:case"end":return wn.stop()}},vn)}));function _n(){return Ht.apply(this,arguments)}return _n}()});case 7:case"end":return Mt.stop()}},tt)}));return function(){return je.apply(this,arguments)}}(),dn=function(){if(Object(O.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},Tt=function(tt){if(gt.includes(tt)){n.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}_t(null),Et([].concat(Object(t.a)(gt),[tt]))},ut=function(){var je=Object(l.a)(C.a.mark(function tt(){var nt;return C.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(!(Xe&&!Ge)){Fe.next=3;break}return n.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Fe.abrupt("return");case 3:if(!(Se===1&&!gt.length)){Fe.next=6;break}return n.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Fe.abrupt("return");case 6:return Fe.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ie.current,scope_partment:Se===0?null:gt,shixun:{can_copy:$,use_scope:Se,opening_time:Ge}}});case 8:nt=Fe.sent,nt.status!==-1&&(n.b.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),me({type:"shixunsDetail/getSettingsData",payload:{id:ie.current}}),me({type:"shixunsDetail/getShixunsDetail",payload:{id:ie.current}}));case 10:case"end":return Fe.stop()}},tt)}));return function(){return je.apply(this,arguments)}}();return P.a.createElement("section",{className:V.a.wrap},P.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(ve==null||((fe=ve.detail)===null||fe===void 0)?void 0:fe.shixun_status)!==2?P.a.createElement(c.a,{danger:!0,onClick:Gt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):P.a.createElement(c.a,{danger:!0,onClick:dn},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u590D\u5236:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement("div",null,P.a.createElement(d.a,{checked:$,onChange:function(tt){return J(tt.target.checked)},disabled:!mt}),P.a.createElement("span",{className:"".concat(V.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((de=ve.detail)===null||de===void 0?void 0:de.shixun_status)>1||((Ee=ve.detail)===null||Ee===void 0?void 0:Ee.public)===2)&&((we=ve.setting)===null||we===void 0||((ce=we.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((be=ve.detail)===null||be===void 0?void 0:be.identity)>2)&&P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u516C\u5F00\u7A0B\u5EA6:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement(h.a.Group,{value:Se,onChange:function(tt){return ke(tt.target.value)},disabled:!mt},P.a.createElement(h.a,{className:V.a.radio,value:0},P.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement(h.a,{className:V.a.radio,value:1},P.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),Se===1&&P.a.createElement(P.a.Fragment,null,P.a.createElement("div",{className:"mt10"},P.a.createElement(S.a,{showSearch:!0,className:V.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:ht,onChange:function(tt){_t(tt),Pt(tt)},disabled:!mt,onSelect:Tt,options:Qe==null?void 0:Qe.map(function(je){return{value:je}})}),P.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement("div",{className:"mt10"},gt==null?void 0:gt.map(function(je){return mt?P.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return Et(gt.filter(function(nt){return nt!==je}))}},P.a.createElement(c.a,{type:"primary",ghost:!0},je)):P.a.createElement(c.a,{type:"primary",ghost:!0,className:"mr20"},je)}))))),P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u5F00\u542F\u65F6\u95F4:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement("div",null,P.a.createElement(d.a,{checked:Xe,onChange:function(tt){return Te(tt.target.checked)},disabled:!mt}),P.a.createElement("span",{className:"".concat(V.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\uFF0C\u624D\u80FD\u5F00\u542F\u5B66\u4E60\uFF1B\u4E0D\u9009\u4E2D\u5219\u5B66\u5458\u5728\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u80FD\u7ACB\u5373\u5F00\u542F\u5B66\u4E60\uFF09")),Xe&&P.a.createElement(p.a,{className:"".concat(V.a.dataPicker," mt10"),format:W,locale:x.a,disabled:!mt,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(tt){return tt&&tt<D()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:Ge&&D()(Ge,W),onChange:function(tt,nt){return Ze(F(nt))}}))),P.a.createElement(g.a,{okText:"\u4FDD\u5B58",hasOkBtn:mt,loading:se.effects["shixunsDetail/updatePermissionSetting"],onCancel:function(){return R.d.push("/shixuns/".concat(ie.current,"/challenges"))},onOk:ut}))};Y.a=Object(R.a)(function(B){var k=B.shixunsDetail,G=B.loading,ne=B.globalSetting,fe=B.user;return{shixunsDetail:k,globalSetting:ne,user:fe,loading:G}})(K)},sR1s:function(M,Y,s){"use strict";s.d(Y,"b",function(){return b}),s.d(Y,"a",function(){return y}),s.d(Y,"c",function(){return S}),s.d(Y,"d",function(){return T});var L=s("U8pU"),p="RC_TABLE_KEY";function A(h){return h==null?[]:Array.isArray(h)?h:[h]}function b(h,_){if(!_&&typeof _!="number")return h;for(var d=A(_),r=h,c=0;c<d.length;c+=1){if(!r)return null;var t=d[c];r=r[t]}return r}function y(h){var _=[],d={};return h.forEach(function(r){for(var c=r||{},t=c.key,a=c.dataIndex,n=t||A(a).join("-")||p;d[n];)n="".concat(n,"_next");d[n]=!0,_.push(n)}),_}function S(){var h={};function _(t,a){a&&Object.keys(a).forEach(function(n){var i=a[n];i&&Object(L.a)(i)==="object"?(t[n]=t[n]||{},_(t[n],i)):t[n]=i})}for(var d=arguments.length,r=new Array(d),c=0;c<d;c++)r[c]=arguments[c];return r.forEach(function(t){_(h,t)}),h}function T(h){return h!=null}},sboe:function(M,Y,s){"use strict";s.d(Y,"a",function(){return A});var L=s("cDcd"),p=s.n(L),A=L.createContext(null)},sckv:function(M,Y,s){M.exports={wrap:"wrap___3kep6",colorBlue:"colorBlue___3r5Hq",repeatedName:"repeatedName___vESvE"}},siWv:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___3IH6S",flex_space_between:"flex_space_between___3AU-S",flex_box_vertical_center:"flex_box_vertical_center___1ykIO",flex_box_center_end:"flex_box_center_end___1aIQB",flex_box_column:"flex_box_column___2A_ra",btn:"btn___23gjd"}},t23M:function(M,Y,s){"use strict";var L=s("VTBJ"),p=s("1OyB"),A=s("vuIU"),b=s("Ji7U"),y=s("LK+K"),S=s("cDcd"),T=s.n(S),h=s("m+aA"),_=s("Zm9Q"),d=s("Kwbf"),r=s("c+Xe"),c=s("bdgK"),t="rc-observer-key",a=function(n){Object(b.a)(f,n);var i=Object(y.a)(f);function f(){var l;return Object(p.a)(this,f),l=i.apply(this,arguments),l.resizeObserver=null,l.childNode=null,l.currentElement=null,l.state={width:0,height:0,offsetHeight:0,offsetWidth:0},l.onResize=function(o){var m=l.props.onResize,w=o[0].target,C=w.getBoundingClientRect(),v=C.width,P=C.height,R=w.offsetWidth,E=w.offsetHeight,x=Math.floor(v),g=Math.floor(P);if(l.state.width!==x||l.state.height!==g||l.state.offsetWidth!==R||l.state.offsetHeight!==E){var O={width:x,height:g,offsetWidth:R,offsetHeight:E};l.setState(O),m&&Promise.resolve().then(function(){m(Object(L.a)(Object(L.a)({},O),{},{offsetWidth:R,offsetHeight:E}))})}},l.setChildNode=function(o){l.childNode=o},l}return Object(A.a)(f,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var o=this.props.disabled;if(o){this.destroyObserver();return}var m=Object(h.a)(this.childNode||this),w=m!==this.currentElement;w&&(this.destroyObserver(),this.currentElement=m),!this.resizeObserver&&m&&(this.resizeObserver=new c.default(this.onResize),this.resizeObserver.observe(m))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var o=this.props.children,m=Object(_.a)(o);if(m.length>1)Object(d.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(m.length===0)return Object(d.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=m[0];if(S.isValidElement(w)&&Object(r.c)(w)){var C=w.ref;m[0]=S.cloneElement(w,{ref:Object(r.a)(C,this.setChildNode)})}return m.length===1?m[0]:m.map(function(v,P){return!S.isValidElement(v)||"key"in v&&v.key!==null?v:S.cloneElement(v,{key:"".concat(t,"-").concat(P)})})}}]),f}(S.Component);a.displayName="ResizeObserver",Y.a=a},tWlo:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},uGsb:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("MlIO"),s("1uat"))})(this,function(L){return function(){var p=L,A=p.x64,b=A.Word,y=A.WordArray,S=p.algo,T=S.SHA512,h=S.SHA384=T.extend({_doReset:function(){this._hash=new y.init([new b.init(3418070365,3238371032),new b.init(1654270250,914150663),new b.init(2438529370,812702999),new b.init(355462360,4144912697),new b.init(1731405415,4290775857),new b.init(2394180231,1750603025),new b.init(3675008525,1694076839),new b.init(1203062813,3204075428)])},_doFinalize:function(){var _=T._doFinalize.call(this);return _.sigBytes-=16,_}});p.SHA384=T._createHelper(h),p.HmacSHA384=T._createHmacHelper(h)}(),L.SHA384})},uGxW:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("OLod"))})(this,function(L){return L.pad.NoPadding={pad:function(){},unpad:function(){}},L.pad.NoPadding})},uK0f:function(M,Y,s){(function(L,p){M.exports=p()})(this,function(){"use strict";function L(p,A,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=p||[],S=[],T=0;do{var h=y.filter(function(_){return A(_,T)})[0];if(!h)break;S.push(h),y=h[b.childrenKeyName]||[],T+=1}while(y.length>0);return S}return L})},ulZh:function(M,Y,s){typeof window!="undefined"&&function(p,A){M.exports=A()}(this,function(){return function(L){var p={};function A(b){if(p[b])return p[b].exports;var y=p[b]={i:b,l:!1,exports:{}};return L[b].call(y.exports,y,y.exports,A),y.l=!0,y.exports}return A.m=L,A.c=p,A.d=function(b,y,S){A.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:S})},A.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},A.t=function(b,y){if(y&1&&(b=A(b)),y&8)return b;if(y&4&&typeof b=="object"&&b&&b.__esModule)return b;var S=Object.create(null);if(A.r(S),Object.defineProperty(S,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var T in b)A.d(S,T,function(h){return b[h]}.bind(null,T));return S},A.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return A.d(y,"a",y),y},A.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},A.p="/dist/",A(A.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(L,p,A){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function S(){}Object.create&&(S.prototype=Object.create(null),new S().__proto__||(y=!1));function T(r,c,t){this.fn=r,this.context=c,this.once=t||!1}function h(r,c,t,a,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new T(t,a||r,n),f=y?y+c:c;return r._events[f]?r._events[f].fn?r._events[f]=[r._events[f],i]:r._events[f].push(i):(r._events[f]=i,r._eventsCount++),r}function _(r,c){--r._eventsCount===0?r._events=new S:delete r._events[c]}function d(){this._events=new S,this._eventsCount=0}d.prototype.eventNames=function(){var c=[],t,a;if(this._eventsCount===0)return c;for(a in t=this._events)b.call(t,a)&&c.push(y?a.slice(1):a);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(t)):c},d.prototype.listeners=function(c){var t=y?y+c:c,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var n=0,i=a.length,f=new Array(i);n<i;n++)f[n]=a[n].fn;return f},d.prototype.listenerCount=function(c){var t=y?y+c:c,a=this._events[t];return a?a.fn?1:a.length:0},d.prototype.emit=function(c,t,a,n,i,f){var l=y?y+c:c;if(!this._events[l])return!1;var o=this._events[l],m=arguments.length,w,C;if(o.fn){o.once&&this.removeListener(c,o.fn,void 0,!0);switch(m){case 1:return o.fn.call(o.context),!0;case 2:return o.fn.call(o.context,t),!0;case 3:return o.fn.call(o.context,t,a),!0;case 4:return o.fn.call(o.context,t,a,n),!0;case 5:return o.fn.call(o.context,t,a,n,i),!0;case 6:return o.fn.call(o.context,t,a,n,i,f),!0}for(C=1,w=new Array(m-1);C<m;C++)w[C-1]=arguments[C];o.fn.apply(o.context,w)}else{var v=o.length,P;for(C=0;C<v;C++){o[C].once&&this.removeListener(c,o[C].fn,void 0,!0);switch(m){case 1:o[C].fn.call(o[C].context);break;case 2:o[C].fn.call(o[C].context,t);break;case 3:o[C].fn.call(o[C].context,t,a);break;case 4:o[C].fn.call(o[C].context,t,a,n);break;default:if(!w)for(P=1,w=new Array(m-1);P<m;P++)w[P-1]=arguments[P];o[C].fn.apply(o[C].context,w)}}}return!0},d.prototype.on=function(c,t,a){return h(this,c,t,a,!1)},d.prototype.once=function(c,t,a){return h(this,c,t,a,!0)},d.prototype.removeListener=function(c,t,a,n){var i=y?y+c:c;if(!this._events[i])return this;if(!t)return _(this,i),this;var f=this._events[i];if(f.fn)f.fn===t&&(!n||f.once)&&(!a||f.context===a)&&_(this,i);else{for(var l=0,o=[],m=f.length;l<m;l++)(f[l].fn!==t||n&&!f[l].once||a&&f[l].context!==a)&&o.push(f[l]);o.length?this._events[i]=o.length===1?o[0]:o:_(this,i)}return this},d.prototype.removeAllListeners=function(c){var t;return c?(t=y?y+c:c,this._events[t]&&_(this,t)):(this._events=new S,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=y,d.EventEmitter=d,L.exports=d},"./node_modules/url-toolkit/src/url-toolkit.js":function(L,p,A){(function(b){var y=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,S=/^([^\/?#]*)([^]*)$/,T=/(?:\/|^)\.(?=\/)/g,h=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,_={buildAbsoluteURL:function(d,r,c){if(c=c||{},d=d.trim(),r=r.trim(),!r){if(!c.alwaysNormalize)return d;var t=_.parseURL(d);if(!t)throw new Error("Error trying to parse base URL.");return t.path=_.normalizePath(t.path),_.buildURLFromParts(t)}var a=_.parseURL(r);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return c.alwaysNormalize?(a.path=_.normalizePath(a.path),_.buildURLFromParts(a)):r;var n=_.parseURL(d);if(!n)throw new Error("Error trying to parse base URL.");if(!n.netLoc&&n.path&&n.path[0]!=="/"){var i=S.exec(n.path);n.netLoc=i[1],n.path=i[2]}n.netLoc&&!n.path&&(n.path="/");var f={scheme:n.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(f.netLoc=n.netLoc,a.path[0]!=="/"))if(!a.path)f.path=n.path,a.params||(f.params=n.params,a.query||(f.query=n.query));else{var l=n.path,o=l.substring(0,l.lastIndexOf("/")+1)+a.path;f.path=_.normalizePath(o)}return f.path===null&&(f.path=c.alwaysNormalize?_.normalizePath(a.path):a.path),_.buildURLFromParts(f)},parseURL:function(d){var r=y.exec(d);return r?{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}:null},normalizePath:function(d){for(d=d.split("").reverse().join("").replace(T,"");d.length!==(d=d.replace(h,"")).length;);return d.split("").reverse().join("")},buildURLFromParts:function(d){return d.scheme+d.netLoc+d.path+d.params+d.query+d.fragment}};L.exports=_})(this)},"./node_modules/webworkify-webpack/index.js":function(L,p,A){function b(c){var t={};function a(i){if(t[i])return t[i].exports;var f=t[i]={i,l:!1,exports:{}};return c[i].call(f.exports,f,f.exports,a),f.l=!0,f.exports}a.m=c,a.c=t,a.i=function(i){return i},a.d=function(i,f,l){a.o(i,f)||Object.defineProperty(i,f,{configurable:!1,enumerable:!0,get:l})},a.r=function(i){Object.defineProperty(i,"__esModule",{value:!0})},a.n=function(i){var f=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(f,"a",f),f},a.o=function(i,f){return Object.prototype.hasOwnProperty.call(i,f)},a.p="/",a.oe=function(i){throw console.error(i),i};var n=a(a.s=ENTRY_MODULE);return n.default||n}var y="[\\.|\\-|\\+|\\w|/|@]+",S="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+y+").*?\\)";function T(c){return(c+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function h(c){return!isNaN(1*c)}function _(c,t,a){var n={};n[a]=[];var i=t.toString(),f=i.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!f)return n;for(var l=f[1],o=new RegExp("(\\\\n|\\W)"+T(l)+S,"g"),m;m=o.exec(i);){if(m[3]==="dll-reference")continue;n[a].push(m[3])}for(o=new RegExp("\\("+T(l)+'\\("(dll-reference\\s('+y+'))"\\)\\)'+S,"g");m=o.exec(i);)c[m[2]]||(n[a].push(m[1]),c[m[2]]=A(m[1]).m),n[m[2]]=n[m[2]]||[],n[m[2]].push(m[4]);for(var w=Object.keys(n),C=0;C<w.length;C++)for(var v=0;v<n[w[C]].length;v++)h(n[w[C]][v])&&(n[w[C]][v]=1*n[w[C]][v]);return n}function d(c){var t=Object.keys(c);return t.reduce(function(a,n){return a||c[n].length>0},!1)}function r(c,t){for(var a={main:[t]},n={main:[]},i={main:{}};d(a);)for(var f=Object.keys(a),l=0;l<f.length;l++){var o=f[l],m=a[o],w=m.pop();if(i[o]=i[o]||{},i[o][w]||!c[o][w])continue;i[o][w]=!0,n[o]=n[o]||[],n[o].push(w);for(var C=_(c,c[o][w],o),v=Object.keys(C),P=0;P<v.length;P++)a[v[P]]=a[v[P]]||[],a[v[P]]=a[v[P]].concat(C[v[P]])}return n}L.exports=function(c,t){t=t||{};var a={main:A.m},n=t.all?{main:Object.keys(a.main)}:r(a,c),i="";Object.keys(n).filter(function(w){return w!=="main"}).forEach(function(w){for(var C=0;n[w][C];)C++;n[w].push(C),a[w][C]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",i=i+"var "+w+" = ("+b.toString().replace("ENTRY_MODULE",JSON.stringify(C))+")({"+n[w].map(function(v){return""+JSON.stringify(v)+": "+a[w][v].toString()}).join(",")+`});
`}),i=i+"new (("+b.toString().replace("ENTRY_MODULE",JSON.stringify(c))+")({"+n.main.map(function(w){return""+JSON.stringify(w)+": "+a.main[w].toString()}).join(",")+"}))(self);";var f=new window.Blob([i],{type:"text/javascript"});if(t.bare)return f;var l=window.URL||window.webkitURL||window.mozURL||window.msURL,o=l.createObjectURL(f),m=new window.Worker(o);return m.objectURL=o,m}},"./src/config.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"hlsDefaultConfig",function(){return P}),A.d(p,"mergeConfig",function(){return E}),A.d(p,"enableStreamingMode",function(){return x});var b=A("./src/controller/abr-controller.ts"),y=A("./src/controller/audio-stream-controller.ts"),S=A("./src/controller/audio-track-controller.ts"),T=A("./src/controller/subtitle-stream-controller.ts"),h=A("./src/controller/subtitle-track-controller.ts"),_=A("./src/controller/buffer-controller.ts"),d=A("./src/controller/timeline-controller.ts"),r=A("./src/controller/cap-level-controller.ts"),c=A("./src/controller/fps-controller.ts"),t=A("./src/controller/eme-controller.ts"),a=A("./src/controller/cmcd-controller.ts"),n=A("./src/utils/xhr-loader.ts"),i=A("./src/utils/fetch-loader.ts"),f=A("./src/utils/cues.ts"),l=A("./src/utils/mediakeys-helper.ts"),o=A("./src/utils/logger.ts");function m(){return m=Object.assign||function(g){for(var O=1;O<arguments.length;O++){var I=arguments[O];for(var D in I)Object.prototype.hasOwnProperty.call(I,D)&&(g[D]=I[D])}return g},m.apply(this,arguments)}function w(g,O){var I=Object.keys(g);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(g);O&&(D=D.filter(function(N){return Object.getOwnPropertyDescriptor(g,N).enumerable})),I.push.apply(I,D)}return I}function C(g){for(var O=1;O<arguments.length;O++){var I=arguments[O]!=null?arguments[O]:{};O%2?w(Object(I),!0).forEach(function(D){v(g,D,I[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(I)):w(Object(I)).forEach(function(D){Object.defineProperty(g,D,Object.getOwnPropertyDescriptor(I,D))})}return g}function v(g,O,I){return O in g?Object.defineProperty(g,O,{value:I,enumerable:!0,configurable:!0,writable:!0}):g[O]=I,g}var P=C(C({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:n.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:b.default,bufferController:_.default,capLevelController:r.default,fpsController:c.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:l.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},R()),{},{subtitleStreamController:T.SubtitleStreamController,subtitleTrackController:h.default,timelineController:d.TimelineController,audioStreamController:y.default,audioTrackController:S.default,emeController:t.default,cmcdController:a.default});function R(){return{cueHandler:f.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function E(g,O){if((O.liveSyncDurationCount||O.liveMaxLatencyDurationCount)&&(O.liveSyncDuration||O.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(O.liveMaxLatencyDurationCount!==void 0&&(O.liveSyncDurationCount===void 0||O.liveMaxLatencyDurationCount<=O.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(O.liveMaxLatencyDuration!==void 0&&(O.liveSyncDuration===void 0||O.liveMaxLatencyDuration<=O.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return m({},g,O)}function x(g){var O=g.loader;if(O!==i.default&&O!==n.default)o.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),g.progressive=!1;else{var I=Object(i.fetchSupported)();I&&(g.loader=i.default,g.progressive=!0,g.enableSoftwareAES=!0,o.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/polyfills/number.ts"),y=A("./src/utils/ewma-bandwidth-estimator.ts"),S=A("./src/events.ts"),T=A("./src/utils/buffer-helper.ts"),h=A("./src/errors.ts"),_=A("./src/types/loader.ts"),d=A("./src/utils/logger.ts");function r(a,n){for(var i=0;i<n.length;i++){var f=n[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}function c(a,n,i){return n&&r(a.prototype,n),i&&r(a,i),a}var t=function(){function a(i){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=i;var f=i.config;this.bwEstimator=new y.default(f.abrEwmaSlowVoD,f.abrEwmaFastVoD,f.abrEwmaDefaultEstimate),this.registerListeners()}var n=a.prototype;return n.registerListeners=function(){var f=this.hls;f.on(S.Events.FRAG_LOADING,this.onFragLoading,this),f.on(S.Events.FRAG_LOADED,this.onFragLoaded,this),f.on(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),f.on(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),f.on(S.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){var f=this.hls;f.off(S.Events.FRAG_LOADING,this.onFragLoading,this),f.off(S.Events.FRAG_LOADED,this.onFragLoaded,this),f.off(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),f.off(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),f.off(S.Events.ERROR,this.onError,this)},n.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},n.onFragLoading=function(f,l){var o=l.frag;if(o.type===_.PlaylistLevelType.MAIN&&!this.timer){var m;this.fragCurrent=o,this.partCurrent=(m=l.part)!=null?m:null,this.timer=self.setInterval(this.onCheck,100)}},n.onLevelLoaded=function(f,l){var o=this.hls.config;l.details.live?this.bwEstimator.update(o.abrEwmaSlowLive,o.abrEwmaFastLive):this.bwEstimator.update(o.abrEwmaSlowVoD,o.abrEwmaFastVoD)},n._abandonRulesCheck=function(){var f=this.fragCurrent,l=this.partCurrent,o=this.hls,m=o.autoLevelEnabled,w=o.config,C=o.media;if(!f||!C)return;var v=l?l.stats:f.stats,P=l?l.duration:f.duration;if(v.aborted){d.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!m||C.paused||!C.playbackRate||!C.readyState)return;var R=performance.now()-v.loading.start,E=Math.abs(C.playbackRate);if(R<=500*P/E)return;var x=o.levels,g=o.minAutoLevel,O=x[f.level],I=v.total||Math.max(v.loaded,Math.round(P*O.maxBitrate/8)),D=Math.max(1,v.bwEstimate?v.bwEstimate/8:v.loaded*1e3/R),N=(I-v.loaded)/D,V=C.currentTime,F=(T.BufferHelper.bufferInfo(C,V,w.maxBufferHole).end-V)/E;if(F>=2*P/E||N<=F)return;var W=Number.POSITIVE_INFINITY,K;for(K=f.level-1;K>g;K--){var B=x[K].maxBitrate;if(W=P*B/(8*.8*D),W<F)break}if(W>=N)return;var k=this.bwEstimator.getEstimate();d.logger.warn("Fragment "+f.sn+(l?" part "+l.index:"")+" of level "+f.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+K+`
Current BW estimate: `+(Object(b.isFiniteNumber)(k)?(k/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+N.toFixed(3)+` s
Estimated load time for the next fragment: `+W.toFixed(3)+` s
Time to underbuffer: `+F.toFixed(3)+" s"),o.nextLoadLevel=K,this.bwEstimator.sample(R,v.loaded),this.clearTimer(),f.loader&&(this.fragCurrent=this.partCurrent=null,f.loader.abort()),o.trigger(S.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:f,part:l,stats:v})},n.onFragLoaded=function(f,l){var o=l.frag,m=l.part;if(o.type===_.PlaylistLevelType.MAIN&&Object(b.isFiniteNumber)(o.sn)){var w=m?m.stats:o.stats,C=m?m.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var v=this.hls.levels[o.level],P=(v.loaded?v.loaded.bytes:0)+w.loaded,R=(v.loaded?v.loaded.duration:0)+C;v.loaded={bytes:P,duration:R},v.realBitrate=Math.round(8*P/R)}if(o.bitrateTest){var E={stats:w,frag:o,part:m,id:o.type};this.onFragBuffered(S.Events.FRAG_BUFFERED,E),o.bitrateTest=!1}}},n.onFragBuffered=function(f,l){var o=l.frag,m=l.part,w=m?m.stats:o.stats;if(w.aborted)return;if(o.type!==_.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var C=w.parsing.end-w.loading.start;this.bwEstimator.sample(C,w.loaded),w.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=C/1e3:this.bitrateTestDelay=0},n.onError=function(f,l){switch(l.details){case h.ErrorDetails.FRAG_LOAD_ERROR:case h.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},n.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},n.getNextABRAutoLevel=function(){var f=this.fragCurrent,l=this.partCurrent,o=this.hls,m=o.maxAutoLevel,w=o.config,C=o.minAutoLevel,v=o.media,P=l?l.duration:f?f.duration:0,R=v?v.currentTime:0,E=v&&v.playbackRate!==0?Math.abs(v.playbackRate):1,x=this.bwEstimator?this.bwEstimator.getEstimate():w.abrEwmaDefaultEstimate,g=(T.BufferHelper.bufferInfo(v,R,w.maxBufferHole).end-R)/E,O=this.findBestLevel(x,C,m,g,w.abrBandWidthFactor,w.abrBandWidthUpFactor);if(O>=0)return O;d.logger.trace((g?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var I=P?Math.min(P,w.maxStarvationDelay):w.maxStarvationDelay,D=w.abrBandWidthFactor,N=w.abrBandWidthUpFactor;if(!g){var V=this.bitrateTestDelay;if(V){var F=P?Math.min(P,w.maxLoadingDelay):w.maxLoadingDelay;I=F-V,d.logger.trace("bitrate test took "+Math.round(1e3*V)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*I)+" ms"),D=N=1}}return O=this.findBestLevel(x,C,m,g+I,D,N),Math.max(O,0)},n.findBestLevel=function(f,l,o,m,w,C){for(var v,P=this.fragCurrent,R=this.partCurrent,E=this.lastLoadedFragLevel,x=this.hls.levels,g=x[E],O=!!(g!=null&&(v=g.details)!==null&&v!==void 0&&v.live),I=g==null?void 0:g.codecSet,D=R?R.duration:P?P.duration:0,N=o;N>=l;N--){var V=x[N];if(!V||I&&V.codecSet!==I)continue;var F=V.details,W=(R?F==null?void 0:F.partTarget:F==null?void 0:F.averagetargetduration)||D,K=void 0;N<=E?K=w*f:K=C*f;var B=x[N].maxBitrate,k=B*W/K;if(d.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+N+"/"+Math.round(K)+"/"+B+"/"+W+"/"+m+"/"+k),K>B&&(!k||O&&!this.bitrateTestDelay||k<m))return N}return-1},c(a,[{key:"nextAutoLevel",get:function(){var f=this._nextAutoLevel,l=this.bwEstimator;if(f!==-1&&(!l||!l.canEstimate()))return f;var o=this.getNextABRAutoLevel();return f!==-1&&(o=Math.min(f,o)),o},set:function(f){this._nextAutoLevel=f}}]),a}();p.default=t},"./src/controller/audio-stream-controller.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/polyfills/number.ts"),y=A("./src/controller/base-stream-controller.ts"),S=A("./src/events.ts"),T=A("./src/utils/buffer-helper.ts"),h=A("./src/controller/fragment-tracker.ts"),_=A("./src/types/level.ts"),d=A("./src/types/loader.ts"),r=A("./src/loader/fragment.ts"),c=A("./src/demux/chunk-cache.ts"),t=A("./src/demux/transmuxer-interface.ts"),a=A("./src/types/transmuxer.ts"),n=A("./src/controller/fragment-finders.ts"),i=A("./src/utils/discontinuities.ts"),f=A("./src/errors.ts"),l=A("./src/utils/logger.ts");function o(){return o=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var E=arguments[R];for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(P[x]=E[x])}return P},o.apply(this,arguments)}function m(P,R){P.prototype=Object.create(R.prototype),P.prototype.constructor=P,w(P,R)}function w(P,R){return w=Object.setPrototypeOf||function(x,g){return x.__proto__=g,x},w(P,R)}var C=100,v=function(P){m(R,P);function R(x,g){var O;return O=P.call(this,x,g,"[audio-stream-controller]")||this,O.videoBuffer=null,O.videoTrackCC=-1,O.waitingVideoCC=-1,O.audioSwitch=!1,O.trackId=-1,O.waitingData=null,O.mainDetails=null,O.bufferFlushed=!1,O._registerListeners(),O}var E=R.prototype;return E.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},E._registerListeners=function(){var g=this.hls;g.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),g.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),g.on(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),g.on(S.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),g.on(S.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),g.on(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),g.on(S.Events.ERROR,this.onError,this),g.on(S.Events.BUFFER_RESET,this.onBufferReset,this),g.on(S.Events.BUFFER_CREATED,this.onBufferCreated,this),g.on(S.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),g.on(S.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),g.on(S.Events.FRAG_BUFFERED,this.onFragBuffered,this)},E._unregisterListeners=function(){var g=this.hls;g.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),g.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),g.off(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),g.off(S.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),g.off(S.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),g.off(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),g.off(S.Events.ERROR,this.onError,this),g.off(S.Events.BUFFER_RESET,this.onBufferReset,this),g.off(S.Events.BUFFER_CREATED,this.onBufferCreated,this),g.off(S.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),g.off(S.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),g.off(S.Events.FRAG_BUFFERED,this.onFragBuffered,this)},E.onInitPtsFound=function(g,O){var I=O.frag,D=O.id,N=O.initPTS;if(D==="main"){var V=I.cc;this.initPTS[I.cc]=N,this.log("InitPTS for cc: "+V+" found from main: "+N),this.videoTrackCC=V,this.state===y.State.WAITING_INIT_PTS&&this.tick()}},E.startLoad=function(g){if(!this.levels){this.startPosition=g,this.state=y.State.STOPPED;return}var O=this.lastCurrentTime;this.stopLoad(),this.setInterval(C),this.fragLoadError=0,O>0&&g===-1?(this.log("Override startPosition with lastCurrentTime @"+O.toFixed(3)),this.state=y.State.IDLE):(this.loadedmetadata=!1,this.state=y.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=g,this.tick()},E.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_TRACK:{var g,O=this.levels,I=this.trackId,D=O==null||((g=O[I])===null||g===void 0)?void 0:g.details;if(D){if(this.waitForCdnTuneIn(D))break;this.state=y.State.WAITING_INIT_PTS}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var N,V=performance.now(),F=this.retryDate;(!F||V>=F||(N=this.media)!==null&&N!==void 0&&N.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=y.State.IDLE);break}case y.State.WAITING_INIT_PTS:{var W=this.waitingData;if(W){var K=W.frag,B=W.part,k=W.cache,G=W.complete;if(this.initPTS[K.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.FRAG_LOADING;var ne=k.flush(),fe={frag:K,part:B,payload:ne,networkDetails:null};this._handleFragmentLoadProgress(fe),G&&P.prototype._handleFragmentLoadComplete.call(this,fe)}else if(this.videoTrackCC!==this.waitingVideoCC)l.logger.log("Waiting fragment cc ("+K.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var de=this.getLoadPosition(),Ee=T.BufferHelper.bufferInfo(this.mediaBuffer,de,this.config.maxBufferHole),we=Object(n.fragmentWithinToleranceTest)(Ee.end,this.config.maxFragLookUpTolerance,K);we<0&&(l.logger.log("Waiting fragment cc ("+K.cc+") @ "+K.start+" cancelled because another fragment at "+Ee.end+" is needed"),this.clearWaitingFragment())}}else this.state=y.State.IDLE}}this.onTickEnd()},E.clearWaitingFragment=function(){var g=this.waitingData;g&&(this.fragmentTracker.removeFragment(g.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.IDLE)},E.onTickEnd=function(){var g=this.media;if(!g||!g.readyState)return;var O=this.mediaBuffer?this.mediaBuffer:g,I=O.buffered;!this.loadedmetadata&&I.length&&(this.loadedmetadata=!0),this.lastCurrentTime=g.currentTime},E.doTickIdle=function(){var g,O,I=this.hls,D=this.levels,N=this.media,V=this.trackId,F=I.config;if(!D||!D[V])return;if(!N&&(this.startFragRequested||!F.startFragPrefetch))return;var W=D[V],K=W.details;if(!K||K.live&&this.levelLastLoaded!==V||this.waitForCdnTuneIn(K)){this.state=y.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,r.ElementaryStreamTypes.AUDIO,d.PlaylistLevelType.AUDIO));var B=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,d.PlaylistLevelType.AUDIO);if(B===null)return;var k=B.len,G=this.getMaxBufferLength(),ne=this.audioSwitch;if(k>=G&&!ne)return;if(!ne&&this._streamEnded(B,K)){I.trigger(S.Events.BUFFER_EOS,{type:"audio"}),this.state=y.State.ENDED;return}var fe=K.fragments,de=fe[0].start,Ee=B.end;if(ne){var we=this.getLoadPosition();Ee=we,K.PTSKnown&&we<de&&((B.end>de||B.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),N.currentTime=de+.05))}var ce=this.getNextFragment(Ee,K);if(!ce){this.bufferFlushed=!0;return}((g=ce.decryptdata)===null||g===void 0?void 0:g.keyFormat)==="identity"&&!((O=ce.decryptdata)!==null&&O!==void 0&&O.key)?this.loadKey(ce,K):this.loadFragment(ce,K,Ee)},E.getMaxBufferLength=function(){var g=P.prototype.getMaxBufferLength.call(this),O=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,d.PlaylistLevelType.MAIN);return O===null?g:Math.max(g,O.len)},E.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},E.onAudioTracksUpdated=function(g,O){var I=O.audioTracks;this.resetTransmuxer(),this.levels=I.map(function(D){return new _.Level(D)})},E.onAudioTrackSwitching=function(g,O){var I=!!O.url;this.trackId=O.id;var D=this.fragCurrent;D!=null&&D.loader&&D.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),I?this.setInterval(C):this.resetTransmuxer(),I?(this.audioSwitch=!0,this.state=y.State.IDLE):this.state=y.State.STOPPED,this.tick()},E.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},E.onLevelLoaded=function(g,O){this.mainDetails=O.details},E.onAudioTrackLoaded=function(g,O){var I,D=this.levels,N=O.details,V=O.id;if(!D){this.warn("Audio tracks were reset while loading level "+V);return}this.log("Track "+V+" loaded ["+N.startSN+","+N.endSN+"],duration:"+N.totalduration);var F=D[V],W=0;if(N.live||(I=F.details)!==null&&I!==void 0&&I.live){var K=this.mainDetails;if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed||!K)return;!F.details&&N.hasProgramDateTime&&K.hasProgramDateTime?(Object(i.alignMediaPlaylistByPDT)(N,K),W=N.fragments[0].start):W=this.alignPlaylists(N,F.details)}F.details=N,this.levelLastLoaded=V,!this.startFragRequested&&(this.mainDetails||!N.live)&&this.setStartPosition(F.details,W),this.state===y.State.WAITING_TRACK&&!this.waitForCdnTuneIn(N)&&(this.state=y.State.IDLE),this.tick()},E._handleFragmentLoadProgress=function(g){var O,I=g.frag,D=g.part,N=g.payload,V=this.config,F=this.trackId,W=this.levels;if(!W){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+I.sn+" of level "+I.level+" will not be buffered");return}var K=W[F];console.assert(K,"Audio track is defined on fragment load progress");var B=K.details;console.assert(B,"Audio track details are defined on fragment load progress");var k=V.defaultAudioCodec||K.audioCodec||"mp4a.40.2",G=this.transmuxer;G||(G=this.transmuxer=new t.default(this.hls,d.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ne=this.initPTS[I.cc],fe=(O=I.initSegment)===null||O===void 0?void 0:O.data;if(ne!==void 0){var de=!1,Ee=D?D.index:-1,we=Ee!==-1,ce=new a.ChunkMetadata(I.level,I.sn,I.stats.chunkCount,N.byteLength,Ee,we);G.push(N,fe,k,"",I,D,B.totalduration,de,ce,ne)}else{l.logger.log("Unknown video PTS for cc "+I.cc+", waiting for video PTS before demuxing audio frag "+I.sn+" of ["+B.startSN+" ,"+B.endSN+"],track "+F);var be=this.waitingData=this.waitingData||{frag:I,part:D,cache:new c.default,complete:!1},ve=be.cache;ve.push(new Uint8Array(N)),this.waitingVideoCC=this.videoTrackCC,this.state=y.State.WAITING_INIT_PTS}},E._handleFragmentLoadComplete=function(g){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,g)},E.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},E.onBufferCreated=function(g,O){var I=O.tracks.audio;I&&(this.mediaBuffer=I.buffer),O.tracks.video&&(this.videoBuffer=O.tracks.video.buffer)},E.onFragBuffered=function(g,O){var I=O.frag,D=O.part;if(I.type!==d.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(I)){this.warn("Fragment "+I.sn+(D?" p: "+D.index:"")+" of level "+I.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}I.sn!=="initSegment"&&(this.fragPrevious=I,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(S.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(I,D)},E.onError=function(g,O){switch(O.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(d.PlaylistLevelType.AUDIO,O);break;case f.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case f.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==y.State.ERROR&&this.state!==y.State.STOPPED&&(this.state=O.fatal?y.State.ERROR:y.State.IDLE,this.warn(O.details+" while loading frag, switching to "+this.state+" state"));break;case f.ErrorDetails.BUFFER_FULL_ERROR:if(O.parent==="audio"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var I=!0,D=this.getFwdBufferInfo(this.mediaBuffer,d.PlaylistLevelType.AUDIO);D&&D.len>.5&&(I=!this.reduceMaxBufferLength(D.len)),I&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},E.onBufferFlushed=function(g,O){var I=O.type;I===r.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},E._handleTransmuxComplete=function(g){var O,I="audio",D=this.hls,N=g.remuxResult,V=g.chunkMeta,F=this.getCurrentContext(V);if(!F){this.warn("The loading context changed while buffering fragment "+V.sn+" of level "+V.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(V.level);return}var W=F.frag,K=F.part,B=N.audio,k=N.text,G=N.id3,ne=N.initSegment;if(this.fragContextChanged(W))return;if(this.state=y.State.PARSING,this.audioSwitch&&B&&this.completeAudioSwitch(),ne!=null&&ne.tracks&&(this._bufferInitSegment(ne.tracks,W,V),D.trigger(S.Events.FRAG_PARSING_INIT_SEGMENT,{frag:W,id:I,tracks:ne.tracks})),B){var fe=B.startPTS,de=B.endPTS,Ee=B.startDTS,we=B.endDTS;K&&(K.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:fe,endPTS:de,startDTS:Ee,endDTS:we}),W.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,fe,de,Ee,we),this.bufferFragmentData(B,W,K,V)}if(G!=null&&(O=G.samples)!==null&&O!==void 0&&O.length){var ce=o({frag:W,id:I},G);D.trigger(S.Events.FRAG_PARSING_METADATA,ce)}if(k){var be=o({frag:W,id:I},k);D.trigger(S.Events.FRAG_PARSING_USERDATA,be)}},E._bufferInitSegment=function(g,O,I){if(this.state!==y.State.PARSING)return;g.video&&delete g.video;var D=g.audio;if(!D)return;D.levelCodec=D.codec,D.id="audio",this.log("Init audio buffer, container:"+D.container+", codecs[parsed]=["+D.codec+"]"),this.hls.trigger(S.Events.BUFFER_CODECS,g);var N=D.initSegment;if(N!=null&&N.byteLength){var V={type:"audio",frag:O,part:null,chunkMeta:I,parent:O.type,data:N};this.hls.trigger(S.Events.BUFFER_APPENDING,V)}this.tick()},E.loadFragment=function(g,O,I){var D=this.fragmentTracker.getState(g);this.fragCurrent=g,(this.audioSwitch||D===h.FragmentState.NOT_LOADED||D===h.FragmentState.PARTIAL)&&(g.sn==="initSegment"?this._loadInitSegment(g):O.live&&!Object(b.isFiniteNumber)(this.initPTS[g.cc])?(this.log("Waiting for video PTS in continuity counter "+g.cc+" of live stream before loading audio fragment "+g.sn+" of level "+this.trackId),this.state=y.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,g,O,I)))},E.completeAudioSwitch=function(){var g=this.hls,O=this.media,I=this.trackId;O&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,g.trigger(S.Events.AUDIO_TRACK_SWITCHED,{id:I})},R}(y.default);p.default=v},"./src/controller/audio-track-controller.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/events.ts"),y=A("./src/errors.ts"),S=A("./src/controller/base-playlist-controller.ts"),T=A("./src/types/loader.ts");function h(t,a){for(var n=0;n<a.length;n++){var i=a[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _(t,a,n){return a&&h(t.prototype,a),n&&h(t,n),t}function d(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,r(t,a)}function r(t,a){return r=Object.setPrototypeOf||function(i,f){return i.__proto__=f,i},r(t,a)}var c=function(t){d(a,t);function a(i){var f;return f=t.call(this,i,"[audio-track-controller]")||this,f.tracks=[],f.groupId=null,f.tracksInGroup=[],f.trackId=-1,f.trackName="",f.selectDefaultTrack=!0,f.registerListeners(),f}var n=a.prototype;return n.registerListeners=function(){var f=this.hls;f.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),f.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.on(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),f.on(b.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){var f=this.hls;f.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),f.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.off(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),f.off(b.Events.ERROR,this.onError,this)},n.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,t.prototype.destroy.call(this)},n.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},n.onManifestParsed=function(f,l){this.tracks=l.audioTracks||[]},n.onAudioTrackLoaded=function(f,l){var o=l.id,m=l.details,w=this.tracksInGroup[o];if(!w){this.warn("Invalid audio track id "+o);return}var C=w.details;w.details=l.details,this.log("audioTrack "+o+" loaded ["+m.startSN+"-"+m.endSN+"]"),o===this.trackId&&(this.retryCount=0,this.playlistLoaded(o,l,C))},n.onLevelLoading=function(f,l){this.switchLevel(l.level)},n.onLevelSwitching=function(f,l){this.switchLevel(l.level)},n.switchLevel=function(f){var l=this.hls.levels[f];if(!(l!=null&&l.audioGroupIds))return;var o=l.audioGroupIds[l.urlId];if(this.groupId!==o){this.groupId=o;var m=this.tracks.filter(function(C){return!o||C.groupId===o});this.selectDefaultTrack&&!m.some(function(C){return C.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=m;var w={audioTracks:m};this.log("Updating audio tracks, "+m.length+' track(s) found in "'+o+'" group-id'),this.hls.trigger(b.Events.AUDIO_TRACKS_UPDATED,w),this.selectInitialTrack()}},n.onError=function(f,l){if(t.prototype.onError.call(this,f,l),l.fatal||!l.context)return;l.context.type===T.PlaylistContextType.AUDIO_TRACK&&l.context.id===this.trackId&&l.context.groupId===this.groupId&&this.retryLoadingOrFail(l)},n.setAudioTrack=function(f){var l=this.tracksInGroup;if(f<0||f>=l.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=l[this.trackId];this.log("Now switching to audio-track index "+f);var m=l[f],w=m.id,C=m.groupId,v=C===void 0?"":C,P=m.name,R=m.type,E=m.url;if(this.trackId=f,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(b.Events.AUDIO_TRACK_SWITCHING,{id:w,groupId:v,name:P,type:R,url:E}),m.details&&!m.details.live)return;var x=this.switchParams(m.url,o==null?void 0:o.details);this.loadPlaylist(x)},n.selectInitialTrack=function(){var f=this.tracksInGroup;console.assert(f.length,"Initial audio track should be selected when tracks are known");var l=this.trackName,o=this.findTrackId(l)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},n.findTrackId=function(f){for(var l=this.tracksInGroup,o=0;o<l.length;o++){var m=l[o];if((!this.selectDefaultTrack||m.default)&&(!f||f===m.name))return m.id}return-1},n.loadPlaylist=function(f){var l=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(l)){var o=l.id,m=l.groupId,w=l.url;if(f)try{w=f.addDirectives(w)}catch(C){this.warn("Could not construct new URL with HLS Delivery Directives: "+C)}this.log("loading audio-track playlist for id: "+o),this.clearTimer(),this.hls.trigger(b.Events.AUDIO_TRACK_LOADING,{url:w,id:o,groupId:m,deliveryDirectives:f||null})}},_(a,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(f){this.selectDefaultTrack=!1,this.setAudioTrack(f)}}]),a}(S.default);p.default=c},"./src/controller/base-playlist-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return _});var b=A("./src/polyfills/number.ts"),y=A("./src/types/level.ts"),S=A("./src/controller/level-helper.ts"),T=A("./src/utils/logger.ts"),h=A("./src/errors.ts"),_=function(){function d(c,t){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=T.logger.log.bind(T.logger,t+":"),this.warn=T.logger.warn.bind(T.logger,t+":"),this.hls=c}var r=d.prototype;return r.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},r.onError=function(t,a){a.fatal&&a.type===h.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},r.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},r.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},r.stopLoad=function(){this.canLoad=!1,this.clearTimer()},r.switchParams=function(t,a){var n=a==null?void 0:a.renditionReports;if(n)for(var i=0;i<n.length;i++){var f=n[i],l=""+f.URI;if(l===t.substr(-l.length)){var o=parseInt(f["LAST-MSN"]),m=parseInt(f["LAST-PART"]);if(a&&this.hls.config.lowLatencyMode){var w=Math.min(a.age-a.partTarget,a.targetduration);m!==void 0&&w>a.partTarget&&(m+=1)}if(Object(b.isFiniteNumber)(o))return new y.HlsUrlParameters(o,Object(b.isFiniteNumber)(m)?m:void 0,y.HlsSkip.No)}}},r.loadPlaylist=function(t){},r.shouldLoadTrack=function(t){return this.canLoad&&t&&!!t.url&&(!t.details||t.details.live)},r.playlistLoaded=function(t,a,n){var i=this,f=a.details,l=a.stats,o=l.loading.end?Math.max(0,self.performance.now()-l.loading.end):0;if(f.advancedDateTime=Date.now()-o,f.live||n!=null&&n.live){if(f.reloaded(n),n&&this.log("live playlist "+t+" "+(f.advanced?"REFRESHED "+f.lastPartSn+"-"+f.lastPartIndex:"MISSED")),n&&f.fragments.length>0&&Object(S.mergeDetails)(n,f),!this.canLoad||!f.live)return;var m,w=void 0,C=void 0;if(f.canBlockReload&&f.endSN&&f.advanced){var v=this.hls.config.lowLatencyMode,P=f.lastPartSn,R=f.endSN,E=f.lastPartIndex,x=E!==-1,g=P===R,O=v?0:E;x?(w=g?R+1:P,C=g?O:E+1):w=R+1;var I=f.age,D=I+f.ageHeader,N=Math.min(D-f.partTarget,f.targetduration*1.5);if(N>0){if(n&&N>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+n.tuneInGoal+" to: "+N+" with playlist age: "+f.age),N=0;else{var V=Math.floor(N/f.targetduration);if(w+=V,C!==void 0){var F=Math.round(N%f.targetduration/f.partTarget);C+=F}this.log("CDN Tune-in age: "+f.ageHeader+"s last advanced "+I.toFixed(2)+"s goal: "+N+" skip sn "+V+" to part "+C)}f.tuneInGoal=N}if(m=this.getDeliveryDirectives(f,a.deliveryDirectives,w,C),v||!g){this.loadPlaylist(m);return}}else m=this.getDeliveryDirectives(f,a.deliveryDirectives,w,C);var W=Object(S.computeReloadInterval)(f,l);w!==void 0&&f.canBlockReload&&(W-=f.partTarget||1),this.log("reload live playlist "+t+" in "+Math.round(W)+" ms"),this.timer=self.setTimeout(function(){return i.loadPlaylist(m)},W)}else this.clearTimer()},r.getDeliveryDirectives=function(t,a,n,i){var f=Object(y.getSkipValue)(t,n);return a!=null&&a.skip&&t.deltaUpdateFailed&&(n=a.msn,i=a.part,f=y.HlsSkip.No),new y.HlsUrlParameters(n,i,f)},r.retryLoadingOrFail=function(t){var a=this,n=this.hls.config,i=this.retryCount<n.levelLoadingMaxRetry;if(i){var f;if(this.retryCount++,t.details.indexOf("LoadTimeOut")>-1&&(f=t.context)!==null&&f!==void 0&&f.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+t.details+'"'),this.loadPlaylist();else{var l=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return a.loadPlaylist()},l),this.warn("retry playlist loading #"+this.retryCount+" in "+l+' ms after "'+t.details+'"')}}else this.warn('cannot recover from error "'+t.details+'"'),this.clearTimer(),t.fatal=!0;return i},d}()},"./src/controller/base-stream-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"State",function(){return R}),A.d(p,"default",function(){return E});var b=A("./src/polyfills/number.ts"),y=A("./src/task-loop.ts"),S=A("./src/controller/fragment-tracker.ts"),T=A("./src/utils/buffer-helper.ts"),h=A("./src/utils/logger.ts"),_=A("./src/events.ts"),d=A("./src/errors.ts"),r=A("./src/types/transmuxer.ts"),c=A("./src/utils/mp4-tools.ts"),t=A("./src/utils/discontinuities.ts"),a=A("./src/controller/fragment-finders.ts"),n=A("./src/controller/level-helper.ts"),i=A("./src/loader/fragment-loader.ts"),f=A("./src/crypt/decrypter.ts"),l=A("./src/utils/time-ranges.ts"),o=A("./src/types/loader.ts");function m(x,g){for(var O=0;O<g.length;O++){var I=g[O];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(x,I.key,I)}}function w(x,g,O){return g&&m(x.prototype,g),O&&m(x,O),x}function C(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function v(x,g){x.prototype=Object.create(g.prototype),x.prototype.constructor=x,P(x,g)}function P(x,g){return P=Object.setPrototypeOf||function(I,D){return I.__proto__=D,I},P(x,g)}var R={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},E=function(x){v(g,x);function g(I,D,N){var V;return V=x.call(this)||this,V.hls=void 0,V.fragPrevious=null,V.fragCurrent=null,V.fragmentTracker=void 0,V.transmuxer=null,V._state=R.STOPPED,V.media=void 0,V.mediaBuffer=void 0,V.config=void 0,V.bitrateTest=!1,V.lastCurrentTime=0,V.nextLoadPosition=0,V.startPosition=0,V.loadedmetadata=!1,V.fragLoadError=0,V.retryDate=0,V.levels=null,V.fragmentLoader=void 0,V.levelLastLoaded=null,V.startFragRequested=!1,V.decrypter=void 0,V.initPTS=[],V.onvseeking=null,V.onvended=null,V.logPrefix="",V.log=void 0,V.warn=void 0,V.logPrefix=N,V.log=h.logger.log.bind(h.logger,N+":"),V.warn=h.logger.warn.bind(h.logger,N+":"),V.hls=I,V.fragmentLoader=new i.default(I.config),V.fragmentTracker=D,V.config=I.config,V.decrypter=new f.default(I,I.config),I.on(_.Events.KEY_LOADED,V.onKeyLoaded,C(V)),V}var O=g.prototype;return O.doTick=function(){this.onTickEnd()},O.onTickEnd=function(){},O.startLoad=function(D){},O.stopLoad=function(){this.fragmentLoader.abort();var D=this.fragCurrent;D&&this.fragmentTracker.removeFragment(D),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=R.STOPPED},O._streamEnded=function(D,N){var V=this.fragCurrent,F=this.fragmentTracker;if(!N.live&&V&&V.sn===N.endSN&&!D.nextStart){var W=F.getState(V);return W===S.FragmentState.PARTIAL||W===S.FragmentState.OK}return!1},O.onMediaAttached=function(D,N){var V=this.media=this.mediaBuffer=N.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),V.addEventListener("seeking",this.onvseeking),V.addEventListener("ended",this.onvended);var F=this.config;this.levels&&F.autoStartLoad&&this.state===R.STOPPED&&this.startLoad(F.startPosition)},O.onMediaDetaching=function(){var D=this.media;D!=null&&D.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),D&&(D.removeEventListener("seeking",this.onvseeking),D.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},O.onMediaSeeking=function(){var D=this.config,N=this.fragCurrent,V=this.media,F=this.mediaBuffer,W=this.state,K=V?V.currentTime:0,B=T.BufferHelper.bufferInfo(F||V,K,D.maxBufferHole);if(this.log("media seeking to "+(Object(b.isFiniteNumber)(K)?K.toFixed(3):K)+", state: "+W),W===R.ENDED)this.resetLoadingState();else if(N&&!B.len){var k=D.maxFragLookUpTolerance,G=N.start-k,ne=N.start+N.duration+k,fe=K>ne;(K<G||fe)&&(fe&&N.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),N.loader.abort()),this.resetLoadingState())}V&&(this.lastCurrentTime=K),!this.loadedmetadata&&!B.len&&(this.nextLoadPosition=this.startPosition=K),this.tickImmediate()},O.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},O.onKeyLoaded=function(D,N){if(this.state!==R.KEY_LOADING||N.frag!==this.fragCurrent||!this.levels)return;this.state=R.IDLE;var V=this.levels[N.frag.level].details;V&&this.loadFragment(N.frag,V,N.frag.start)},O.onHandlerDestroying=function(){this.stopLoad(),x.prototype.onHandlerDestroying.call(this)},O.onHandlerDestroyed=function(){this.state=R.STOPPED,this.hls.off(_.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,x.prototype.onHandlerDestroyed.call(this)},O.loadKey=function(D,N){this.log("Loading key for "+D.sn+" of ["+N.startSN+"-"+N.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+D.level),this.state=R.KEY_LOADING,this.fragCurrent=D,this.hls.trigger(_.Events.KEY_LOADING,{frag:D})},O.loadFragment=function(D,N,V){this._loadFragForPlayback(D,N,V)},O._loadFragForPlayback=function(D,N,V){var F=this,W=function(B){if(F.fragContextChanged(D)){F.warn("Fragment "+D.sn+(B.part?" p: "+B.part.index:"")+" of level "+D.level+" was dropped during download."),F.fragmentTracker.removeFragment(D);return}D.stats.chunkCount++,F._handleFragmentLoadProgress(B)};this._doFragLoad(D,N,V,W).then(function(K){if(!K)return;F.fragLoadError=0;var B=F.state;if(F.fragContextChanged(D)){(B===R.FRAG_LOADING||B===R.BACKTRACKING||!F.fragCurrent&&B===R.PARSING)&&(F.fragmentTracker.removeFragment(D),F.state=R.IDLE);return}if("payload"in K&&(F.log("Loaded fragment "+D.sn+" of level "+D.level),F.hls.trigger(_.Events.FRAG_LOADED,K),F.state===R.BACKTRACKING)){F.fragmentTracker.backtrack(D,K),F.resetFragmentLoading(D);return}F._handleFragmentLoadComplete(K)}).catch(function(K){F.warn(K),F.resetFragmentLoading(D)})},O.flushMainBuffer=function(D,N,V){if(V===void 0&&(V=null),!(D-N))return;var F={startOffset:D,endOffset:N,type:V};this.fragLoadError=0,this.hls.trigger(_.Events.BUFFER_FLUSHING,F)},O._loadInitSegment=function(D){var N=this;this._doFragLoad(D).then(function(V){if(!V||N.fragContextChanged(D)||!N.levels)throw new Error("init load aborted");return V}).then(function(V){var F=N.hls,W=V.payload,K=D.decryptdata;if(W&&W.byteLength>0&&K&&K.key&&K.iv&&K.method==="AES-128"){var B=self.performance.now();return N.decrypter.webCryptoDecrypt(new Uint8Array(W),K.key.buffer,K.iv.buffer).then(function(k){var G=self.performance.now();return F.trigger(_.Events.FRAG_DECRYPTED,{frag:D,payload:k,stats:{tstart:B,tdecrypt:G}}),V.payload=k,V})}return V}).then(function(V){var F=N.fragCurrent,W=N.hls,K=N.levels;if(!K)throw new Error("init load aborted, missing levels");var B=K[D.level].details;console.assert(B,"Level details are defined when init segment is loaded");var k=D.stats;N.state=R.IDLE,N.fragLoadError=0,D.data=new Uint8Array(V.payload),k.parsing.start=k.buffering.start=self.performance.now(),k.parsing.end=k.buffering.end=self.performance.now(),V.frag===F&&W.trigger(_.Events.FRAG_BUFFERED,{stats:k,frag:F,part:null,id:D.type}),N.tick()}).catch(function(V){N.warn(V),N.resetFragmentLoading(D)})},O.fragContextChanged=function(D){var N=this.fragCurrent;return!D||!N||D.level!==N.level||D.sn!==N.sn||D.urlId!==N.urlId},O.fragBufferedComplete=function(D,N){var V=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+D.type+" sn: "+D.sn+(N?" part: "+N.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+D.level+" "+l.default.toString(T.BufferHelper.getBuffered(V))),this.state=R.IDLE,this.tick()},O._handleFragmentLoadComplete=function(D){var N=this.transmuxer;if(!N)return;var V=D.frag,F=D.part,W=D.partsLoaded,K=!W||W.length===0||W.some(function(k){return!k}),B=new r.ChunkMetadata(V.level,V.sn,V.stats.chunkCount+1,0,F?F.index:-1,!K);N.flush(B)},O._handleFragmentLoadProgress=function(D){},O._doFragLoad=function(D,N,V,F){var W=this;if(V===void 0&&(V=null),!this.levels)throw new Error("frag load aborted, missing levels");if(V=Math.max(D.start,V||0),this.config.lowLatencyMode&&N){var K=N.partList;if(K&&F){V>D.end&&N.fragmentHint&&(D=N.fragmentHint);var B=this.getNextPart(K,D,V);if(B>-1){var k=K[B];return this.log("Loading part sn: "+D.sn+" p: "+k.index+" cc: "+D.cc+" of playlist ["+N.startSN+"-"+N.endSN+"] parts [0-"+B+"-"+(K.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+D.level+", target: "+parseFloat(V.toFixed(3))),this.nextLoadPosition=k.start+k.duration,this.state=R.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:D,part:K[B],targetBufferTime:V}),this.doFragPartsLoad(D,K,B,F).catch(function(G){return W.handleFragLoadError(G)})}else if(!D.url||this.loadedEndOfParts(K,V))return Promise.resolve(null)}}return this.log("Loading fragment "+D.sn+" cc: "+D.cc+" "+(N?"of ["+N.startSN+"-"+N.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+D.level+", target: "+parseFloat(V.toFixed(3))),Object(b.isFiniteNumber)(D.sn)&&!this.bitrateTest&&(this.nextLoadPosition=D.start+D.duration),this.state=R.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:D,targetBufferTime:V}),this.fragmentLoader.load(D,F).catch(function(G){return W.handleFragLoadError(G)})},O.doFragPartsLoad=function(D,N,V,F){var W=this;return new Promise(function(K,B){var k=[],G=function ne(fe){var de=N[fe];W.fragmentLoader.loadPart(D,de,F).then(function(Ee){k[de.index]=Ee;var we=Ee.part;W.hls.trigger(_.Events.FRAG_LOADED,Ee);var ce=N[fe+1];if(ce&&ce.fragment===D)ne(fe+1);else return K({frag:D,part:we,partsLoaded:k})}).catch(B)};G(V)})},O.handleFragLoadError=function(D){var N=D.data;return N&&N.details===d.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(N.frag,N.part):this.hls.trigger(_.Events.ERROR,N),null},O._handleTransmuxerFlush=function(D){var N=this.getCurrentContext(D);if(!N||this.state!==R.PARSING){this.fragCurrent||(this.state=R.IDLE);return}var V=N.frag,F=N.part,W=N.level,K=self.performance.now();V.stats.parsing.end=K,F&&(F.stats.parsing.end=K),this.updateLevelTiming(V,F,W,D.partial)},O.getCurrentContext=function(D){var N=this.levels,V=D.level,F=D.sn,W=D.part;if(!N||!N[V])return this.warn("Levels object was unset while buffering fragment "+F+" of level "+V+". The current chunk will not be buffered."),null;var K=N[V],B=W>-1?Object(n.getPartWith)(K,F,W):null,k=B?B.fragment:Object(n.getFragmentWithSN)(K,F,this.fragCurrent);return k?{frag:k,part:B,level:K}:null},O.bufferFragmentData=function(D,N,V,F){if(!D||this.state!==R.PARSING)return;var W=D.data1,K=D.data2,B=W;if(W&&K&&(B=Object(c.appendUint8Array)(W,K)),!B||!B.length)return;var k={type:D.type,frag:N,part:V,chunkMeta:F,parent:N.type,data:B};this.hls.trigger(_.Events.BUFFER_APPENDING,k),D.dropped&&D.independent&&!V&&this.flushBufferGap(N)},O.flushBufferGap=function(D){var N=this.media;if(!N)return;if(!T.BufferHelper.isBuffered(N,N.currentTime)){this.flushMainBuffer(0,D.start);return}var V=N.currentTime,F=T.BufferHelper.bufferInfo(N,V,0),W=D.duration,K=Math.min(this.config.maxFragLookUpTolerance*2,W*.25),B=Math.max(Math.min(D.start-K,F.end-K),V+K);D.start-B>K&&this.flushMainBuffer(B,D.start)},O.getFwdBufferInfo=function(D,N){var V=this.config,F=this.getLoadPosition();if(!Object(b.isFiniteNumber)(F))return null;var W=T.BufferHelper.bufferInfo(D,F,V.maxBufferHole);if(W.len===0&&W.nextStart!==void 0){var K=this.fragmentTracker.getBufferedFrag(F,N);if(K&&W.nextStart<K.end)return T.BufferHelper.bufferInfo(D,F,Math.max(W.nextStart,V.maxBufferHole))}return W},O.getMaxBufferLength=function(D){var N=this.config,V;return D?V=Math.max(8*N.maxBufferSize/D,N.maxBufferLength):V=N.maxBufferLength,Math.min(V,N.maxMaxBufferLength)},O.reduceMaxBufferLength=function(D){var N=this.config,V=D||N.maxBufferLength;return N.maxMaxBufferLength>=V?(N.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+N.maxMaxBufferLength+"s"),!0):!1},O.getNextFragment=function(D,N){var V,F,W=N.fragments,K=W.length;if(!K)return null;var B=this.config,k=W[0].start,G;if(N.live){var ne=B.initialLiveManifestSize;if(K<ne)return this.warn("Not enough fragments to start playback (have: "+K+", need: "+ne+")"),null;!N.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(G=this.getInitialLiveFragment(N,W),this.startPosition=G?this.hls.liveSyncPosition||G.start:D)}else D<=k&&(G=W[0]);if(!G){var fe=B.lowLatencyMode?N.partEnd:N.fragmentEnd;G=this.getFragmentAtPosition(D,fe,N)}return(V=G)!==null&&V!==void 0&&V.initSegment&&!((F=G)!==null&&F!==void 0&&F.initSegment.data)&&!this.bitrateTest&&(G=G.initSegment),G},O.getNextPart=function(D,N,V){for(var F=-1,W=!1,K=!0,B=0,k=D.length;B<k;B++){var G=D[B];if(K=K&&!G.independent,F>-1&&V<G.start)break;var ne=G.loaded;!ne&&(W||G.independent||K)&&G.fragment===N&&(F=B),W=ne}return F},O.loadedEndOfParts=function(D,N){var V=D[D.length-1];return V&&N>V.start&&V.loaded},O.getInitialLiveFragment=function(D,N){var V=this.fragPrevious,F=null;if(V){if(D.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+V.programDateTime),F=Object(a.findFragmentByPDT)(N,V.endProgramDateTime,this.config.maxFragLookUpTolerance)),!F){var W=V.sn+1;if(W>=D.startSN&&W<=D.endSN){var K=N[W-D.startSN];V.cc===K.cc&&(F=K,this.log("Live playlist, switching playlist, load frag with next SN: "+F.sn))}F||(F=Object(a.findFragWithCC)(N,V.cc),F&&this.log("Live playlist, switching playlist, load frag with same CC: "+F.sn))}}else{var B=this.hls.liveSyncPosition;B!==null&&(F=this.getFragmentAtPosition(B,this.bitrateTest?D.fragmentEnd:D.edge,D))}return F},O.getFragmentAtPosition=function(D,N,V){var F=this.config,W=this.fragPrevious,K=V.fragments,B=V.endSN,k=V.fragmentHint,G=F.maxFragLookUpTolerance,ne=!!(F.lowLatencyMode&&V.partList&&k);ne&&k&&!this.bitrateTest&&(K=K.concat(k),B=k.sn);var fe;if(D<N){var de=D>N-G?0:G;fe=Object(a.findFragmentByPTS)(W,K,D,de)}else fe=K[K.length-1];if(fe){var Ee=fe.sn-V.startSN,we=W&&fe.level===W.level,ce=K[Ee+1],be=this.fragmentTracker.getState(fe);if(be===S.FragmentState.BACKTRACKED){fe=null;for(var ve=Ee;K[ve]&&this.fragmentTracker.getState(K[ve])===S.FragmentState.BACKTRACKED;)W?fe=K[ve--]:fe=K[--ve];fe||(fe=ce)}else W&&fe.sn===W.sn&&!ne&&(we&&(fe.sn<B&&this.fragmentTracker.getState(ce)!==S.FragmentState.OK?(this.log("SN "+fe.sn+" just loaded, load next one: "+ce.sn),fe=ce):fe=null))}return fe},O.synchronizeToLiveEdge=function(D){var N=this.config,V=this.media;if(!V)return;var F=this.hls.liveSyncPosition,W=V.currentTime,K=D.fragments[0].start,B=D.edge,k=W>=K-N.maxFragLookUpTolerance&&W<=B;if(F!==null&&V.duration>F&&(W<F||!k)){var G=N.liveMaxLatencyDuration!==void 0?N.liveMaxLatencyDuration:N.liveMaxLatencyDurationCount*D.targetduration;(!k&&V.readyState<4||W<B-G)&&(this.loadedmetadata||(this.nextLoadPosition=F),V.readyState&&(this.warn("Playback: "+W.toFixed(3)+" is located too far from the end of live sliding playlist: "+B+", reset currentTime to : "+F.toFixed(3)),V.currentTime=F))}},O.alignPlaylists=function(D,N){var V=this.levels,F=this.levelLastLoaded,W=this.fragPrevious,K=F!==null?V[F]:null,B=D.fragments.length;if(!B)return this.warn("No fragments in live playlist"),0;var k=D.fragments[0].start,G=!N,ne=D.alignedSliding&&Object(b.isFiniteNumber)(k);if(G||!ne&&!k){Object(t.alignStream)(W,K,D);var fe=D.fragments[0].start;return this.log("Live playlist sliding: "+fe.toFixed(2)+" start-sn: "+(N?N.startSN:"na")+"->"+D.startSN+" prev-sn: "+(W?W.sn:"na")+" fragments: "+B),fe}return k},O.waitForCdnTuneIn=function(D){var N=3;return D.live&&D.canBlockReload&&D.tuneInGoal>Math.max(D.partHoldBack,D.partTarget*N)},O.setStartPosition=function(D,N){var V=this.startPosition;if(V<N&&(V=-1),V===-1||this.lastCurrentTime===-1){var F=D.startTimeOffset;Object(b.isFiniteNumber)(F)?(V=N+F,F<0&&(V+=D.totalduration),V=Math.min(Math.max(N,V),N+D.totalduration),this.log("Start time offset "+F+" found in playlist, adjust startPosition to "+V),this.startPosition=V):D.live?V=this.hls.liveSyncPosition||N:this.startPosition=V=0,this.lastCurrentTime=V}this.nextLoadPosition=V},O.getLoadPosition=function(){var D=this.media,N=0;return this.loadedmetadata&&D?N=D.currentTime:this.nextLoadPosition&&(N=this.nextLoadPosition),N},O.handleFragLoadAborted=function(D,N){this.transmuxer&&D.sn!=="initSegment"&&D.stats.aborted&&(this.warn("Fragment "+D.sn+(N?" part"+N.index:"")+" of level "+D.level+" was aborted"),this.resetFragmentLoading(D))},O.resetFragmentLoading=function(D){(!this.fragCurrent||!this.fragContextChanged(D))&&(this.state=R.IDLE)},O.onFragmentOrKeyLoadError=function(D,N){if(N.fatal)return;var V=N.frag;if(!V||V.type!==D)return;var F=this.fragCurrent;console.assert(F&&V.sn===F.sn&&V.level===F.level&&V.urlId===F.urlId,"Frag load error must match current frag to retry");var W=this.config;if(this.fragLoadError+1<=W.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(V.level))return;var K=Math.min(Math.pow(2,this.fragLoadError)*W.fragLoadingRetryDelay,W.fragLoadingMaxRetryTimeout);this.warn("Fragment "+V.sn+" of "+D+" "+V.level+" failed to load, retrying in "+K+"ms"),this.retryDate=self.performance.now()+K,this.fragLoadError++,this.state=R.FRAG_LOADING_WAITING_RETRY}else N.levelRetry?(D===o.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=R.IDLE):(h.logger.error(N.details+" reaches max retry, redispatch as fatal ..."),N.fatal=!0,this.hls.stopLoad(),this.state=R.ERROR)},O.afterBufferFlushed=function(D,N,V){if(!D)return;var F=T.BufferHelper.getBuffered(D);this.fragmentTracker.detectEvictedFragments(N,F,V),this.state===R.ENDED&&this.resetLoadingState()},O.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=R.IDLE},O.resetLiveStartWhenNotLoaded=function(D){if(!this.loadedmetadata){this.startFragRequested=!1;var N=this.levels?this.levels[D].details:null;if(N!=null&&N.live)return this.startPosition=-1,this.setStartPosition(N,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},O.updateLevelTiming=function(D,N,V,F){var W=this,K=V.details;console.assert(!!K,"level.details must be defined");var B=Object.keys(D.elementaryStreams).reduce(function(k,G){var ne=D.elementaryStreams[G];if(ne){var fe=ne.endPTS-ne.startPTS;if(fe<=0)return W.warn("Could not parse fragment "+D.sn+" "+G+" duration reliably ("+fe+") resetting transmuxer to fallback to playlist timing"),W.resetTransmuxer(),k||!1;var de=F?0:Object(n.updateFragPTSDTS)(K,D,ne.startPTS,ne.endPTS,ne.startDTS,ne.endDTS);return W.hls.trigger(_.Events.LEVEL_PTS_UPDATED,{details:K,level:V,drift:de,type:G,frag:D,start:ne.startPTS,end:ne.endPTS}),!0}return k},!1);B?(this.state=R.PARSED,this.hls.trigger(_.Events.FRAG_PARSED,{frag:D,part:N})):this.resetLoadingState()},O.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},w(g,[{key:"state",get:function(){return this._state},set:function(D){var N=this._state;N!==D&&(this._state=D,this.log(N+"->"+D))}}]),g}(y.default)},"./src/controller/buffer-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return a});var b=A("./src/polyfills/number.ts"),y=A("./src/events.ts"),S=A("./src/utils/logger.ts"),T=A("./src/errors.ts"),h=A("./src/utils/buffer-helper.ts"),_=A("./src/utils/mediasource-helper.ts"),d=A("./src/loader/fragment.ts"),r=A("./src/controller/buffer-operation-queue.ts"),c=Object(_.getMediaSource)(),t=/([ha]vc.)(?:\.[^.,]+)+/,a=function(){function n(f){var l=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var o=l.hls,m=l.media,w=l.mediaSource;S.logger.log("[buffer-controller]: Media source opened"),m&&(l.updateMediaElementDuration(),o.trigger(y.Events.MEDIA_ATTACHED,{media:m})),w&&w.removeEventListener("sourceopen",l._onMediaSourceOpen),l.checkPendingTracks()},this._onMediaSourceClose=function(){S.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){S.logger.log("[buffer-controller]: Media source ended")},this.hls=f,this._initSourceBuffer(),this.registerListeners()}var i=n.prototype;return i.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},i.destroy=function(){this.unregisterListeners(),this.details=null},i.registerListeners=function(){var l=this.hls;l.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),l.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.on(y.Events.BUFFER_RESET,this.onBufferReset,this),l.on(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),l.on(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),l.on(y.Events.BUFFER_EOS,this.onBufferEos,this),l.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),l.on(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),l.on(y.Events.FRAG_PARSED,this.onFragParsed,this),l.on(y.Events.FRAG_CHANGED,this.onFragChanged,this)},i.unregisterListeners=function(){var l=this.hls;l.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),l.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.off(y.Events.BUFFER_RESET,this.onBufferReset,this),l.off(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),l.off(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),l.off(y.Events.BUFFER_EOS,this.onBufferEos,this),l.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),l.off(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),l.off(y.Events.FRAG_PARSED,this.onFragParsed,this),l.off(y.Events.FRAG_CHANGED,this.onFragChanged,this)},i._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new r.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},i.onManifestParsed=function(l,o){var m=2;(o.audio&&!o.video||!o.altAudio)&&(m=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=m,this.details=null,S.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},i.onMediaAttaching=function(l,o){var m=this.media=o.media;if(m&&c){var w=this.mediaSource=new c;w.addEventListener("sourceopen",this._onMediaSourceOpen),w.addEventListener("sourceended",this._onMediaSourceEnded),w.addEventListener("sourceclose",this._onMediaSourceClose),m.src=self.URL.createObjectURL(w),this._objectUrl=m.src}},i.onMediaDetaching=function(){var l=this.media,o=this.mediaSource,m=this._objectUrl;if(o){if(S.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(w){S.logger.warn("[buffer-controller]: onMediaDetaching: "+w.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),l&&(m&&self.URL.revokeObjectURL(m),l.src===m?(l.removeAttribute("src"),l.load()):S.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(y.Events.MEDIA_DETACHED,void 0)},i.onBufferReset=function(){var l=this;this.getSourceBufferTypes().forEach(function(o){var m=l.sourceBuffer[o];try{m&&(l.removeBufferListeners(o),l.mediaSource&&l.mediaSource.removeSourceBuffer(m),l.sourceBuffer[o]=void 0)}catch(w){S.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",w)}}),this._initSourceBuffer()},i.onBufferCodecs=function(l,o){var m=this,w=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(C){if(w){var v=m.tracks[C];if(v&&typeof v.buffer.changeType=="function"){var P=o[C],R=P.codec,E=P.levelCodec,x=P.container,g=(v.levelCodec||v.codec).replace(t,"$1"),O=(E||R).replace(t,"$1");if(g!==O){var I=x+";codecs="+(E||R);m.appendChangeType(C,I)}}}else m.pendingTracks[C]=o[C]}),w)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},i.appendChangeType=function(l,o){var m=this,w=this.operationQueue,C={execute:function(){var P=m.sourceBuffer[l];P&&(S.logger.log("[buffer-controller]: changing "+l+" sourceBuffer type to "+o),P.changeType(o)),w.shiftAndExecuteNext(l)},onStart:function(){},onComplete:function(){},onError:function(P){S.logger.warn("[buffer-controller]: Failed to change "+l+" SourceBuffer type",P)}};w.append(C,l)},i.onBufferAppending=function(l,o){var m=this,w=this.hls,C=this.operationQueue,v=this.tracks,P=o.data,R=o.type,E=o.frag,x=o.part,g=o.chunkMeta,O=g.buffering[R],I=self.performance.now();O.start=I;var D=E.stats.buffering,N=x?x.stats.buffering:null;D.start===0&&(D.start=I),N&&N.start===0&&(N.start=I);var V=v.audio,F=R==="audio"&&g.id===1&&(V==null?void 0:V.container)==="audio/mpeg",W={execute:function(){if(O.executeStart=self.performance.now(),F){var B=m.sourceBuffer[R];if(B){var k=E.start-B.timestampOffset;Math.abs(k)>=.1&&(S.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+E.start+" (delta: "+k+") sn: "+E.sn+")"),B.timestampOffset=E.start)}}m.appendExecutor(P,R)},onStart:function(){},onComplete:function(){var B=self.performance.now();O.executeEnd=O.end=B,D.first===0&&(D.first=B),N&&N.first===0&&(N.first=B);var k=m.sourceBuffer,G={};for(var ne in k)G[ne]=h.BufferHelper.getBuffered(k[ne]);m.appendError=0,m.hls.trigger(y.Events.BUFFER_APPENDED,{type:R,frag:E,part:x,chunkMeta:g,parent:E.type,timeRanges:G})},onError:function(B){S.logger.error("[buffer-controller]: Error encountered while trying to append to the "+R+" SourceBuffer",B);var k={type:T.ErrorTypes.MEDIA_ERROR,parent:E.type,details:T.ErrorDetails.BUFFER_APPEND_ERROR,err:B,fatal:!1};B.code===DOMException.QUOTA_EXCEEDED_ERR?k.details=T.ErrorDetails.BUFFER_FULL_ERROR:(m.appendError++,k.details=T.ErrorDetails.BUFFER_APPEND_ERROR,m.appendError>w.config.appendErrorMaxRetry&&(S.logger.error("[buffer-controller]: Failed "+w.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),k.fatal=!0)),w.trigger(y.Events.ERROR,k)}};C.append(W,R)},i.onBufferFlushing=function(l,o){var m=this,w=this.operationQueue,C=function(P){return{execute:m.removeExecutor.bind(m,P,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){m.hls.trigger(y.Events.BUFFER_FLUSHED,{type:P})},onError:function(E){S.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",E)}}};o.type?w.append(C(o.type),o.type):this.getSourceBufferTypes().forEach(function(v){w.append(C(v),v)})},i.onFragParsed=function(l,o){var m=this,w=o.frag,C=o.part,v=[],P=C?C.elementaryStreams:w.elementaryStreams;P[d.ElementaryStreamTypes.AUDIOVIDEO]?v.push("audiovideo"):(P[d.ElementaryStreamTypes.AUDIO]&&v.push("audio"),P[d.ElementaryStreamTypes.VIDEO]&&v.push("video"));var R=function(){var x=self.performance.now();w.stats.buffering.end=x,C&&(C.stats.buffering.end=x);var g=C?C.stats:w.stats;m.hls.trigger(y.Events.FRAG_BUFFERED,{frag:w,part:C,stats:g,id:w.type})};v.length===0&&S.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+w.type+" level: "+w.level+" sn: "+w.sn),this.blockBuffers(R,v)},i.onFragChanged=function(l,o){this.flushBackBuffer()},i.onBufferEos=function(l,o){var m=this,w=this.getSourceBufferTypes().reduce(function(C,v){var P=m.sourceBuffer[v];return(!o.type||o.type===v)&&(P&&!P.ended&&(P.ended=!0,S.logger.log("[buffer-controller]: "+v+" sourceBuffer now EOS"))),C&&!!(!P||P.ended)},!0);w&&this.blockBuffers(function(){var C=m.mediaSource;if(!C||C.readyState!=="open")return;C.endOfStream()})},i.onLevelUpdated=function(l,o){var m=o.details;if(!m.fragments.length)return;this.details=m,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},i.flushBackBuffer=function(){var l=this.hls,o=this.details,m=this.media,w=this.sourceBuffer;if(!m||o===null)return;var C=this.getSourceBufferTypes();if(!C.length)return;var v=o.live&&l.config.liveBackBufferLength!==null?l.config.liveBackBufferLength:l.config.backBufferLength;if(!Object(b.isFiniteNumber)(v)||v<0)return;var P=m.currentTime,R=o.levelTargetDuration,E=Math.max(v,R),x=Math.floor(P/R)*R-E;C.forEach(function(g){var O=w[g];if(O){var I=h.BufferHelper.getBuffered(O);I.length>0&&x>I.start(0)&&(l.trigger(y.Events.BACK_BUFFER_REACHED,{bufferEnd:x}),o.live&&l.trigger(y.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:x}),l.trigger(y.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:x,type:g}))}})},i.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var l=this.details,o=this.hls,m=this.media,w=this.mediaSource,C=l.fragments[0].start+l.totalduration,v=m.duration,P=Object(b.isFiniteNumber)(w.duration)?w.duration:0;l.live&&o.config.liveDurationInfinity?(S.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),w.duration=Infinity,this.updateSeekableRange(l)):(C>P&&C>v||!Object(b.isFiniteNumber)(v))&&(S.logger.log("[buffer-controller]: Updating Media Source duration to "+C.toFixed(3)),w.duration=C)},i.updateSeekableRange=function(l){var o=this.mediaSource,m=l.fragments,w=m.length;if(w&&l.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var C=Math.max(0,m[0].start),v=Math.max(C,C+l.totalduration);o.setLiveSeekableRange(C,v)}},i.checkPendingTracks=function(){var l=this.bufferCodecEventsExpected,o=this.operationQueue,m=this.pendingTracks,w=Object.keys(m).length;if(w&&!l||w===2){this.createSourceBuffers(m),this.pendingTracks={};var C=this.getSourceBufferTypes();if(C.length===0){this.hls.trigger(y.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}C.forEach(function(v){o.executeNext(v)})}},i.createSourceBuffers=function(l){var o=this.sourceBuffer,m=this.mediaSource;if(!m)throw Error("createSourceBuffers called when mediaSource was null");var w=0;for(var C in l)if(!o[C]){var v=l[C];if(!v)throw Error("source buffer exists for track "+C+", however track does not");var P=v.levelCodec||v.codec,R=v.container+";codecs="+P;S.logger.log("[buffer-controller]: creating sourceBuffer("+R+")");try{var E=o[C]=m.addSourceBuffer(R),x=C;this.addBufferListener(x,"updatestart",this._onSBUpdateStart),this.addBufferListener(x,"updateend",this._onSBUpdateEnd),this.addBufferListener(x,"error",this._onSBUpdateError),this.tracks[C]={buffer:E,codec:P,container:v.container,levelCodec:v.levelCodec,id:v.id},w++}catch(g){S.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+g.message),this.hls.trigger(y.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:g,mimeType:R})}}w&&this.hls.trigger(y.Events.BUFFER_CREATED,{tracks:this.tracks})},i._onSBUpdateStart=function(l){var o=this.operationQueue,m=o.current(l);m.onStart()},i._onSBUpdateEnd=function(l){var o=this.operationQueue,m=o.current(l);m.onComplete(),o.shiftAndExecuteNext(l)},i._onSBUpdateError=function(l,o){S.logger.error("[buffer-controller]: "+l+" SourceBuffer error",o),this.hls.trigger(y.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var m=this.operationQueue.current(l);m&&m.onError(o)},i.removeExecutor=function(l,o,m){var w=this.media,C=this.mediaSource,v=this.operationQueue,P=this.sourceBuffer,R=P[l];if(!w||!C||!R){S.logger.warn("[buffer-controller]: Attempting to remove from the "+l+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(l);return}var E=Object(b.isFiniteNumber)(w.duration)?w.duration:Infinity,x=Object(b.isFiniteNumber)(C.duration)?C.duration:Infinity,g=Math.max(0,o),O=Math.min(m,E,x);O>g?(S.logger.log("[buffer-controller]: Removing ["+g+","+O+"] from the "+l+" SourceBuffer"),console.assert(!R.updating,l+" sourceBuffer must not be updating"),R.remove(g,O)):v.shiftAndExecuteNext(l)},i.appendExecutor=function(l,o){var m=this.operationQueue,w=this.sourceBuffer,C=w[o];if(!C){S.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),m.shiftAndExecuteNext(o);return}C.ended=!1,console.assert(!C.updating,o+" sourceBuffer must not be updating"),C.appendBuffer(l)},i.blockBuffers=function(l,o){var m=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){S.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(l);return}var w=this.operationQueue,C=o.map(function(v){return w.appendBlocker(v)});Promise.all(C).then(function(){l(),o.forEach(function(v){var P=m.sourceBuffer[v];(!P||!P.updating)&&w.shiftAndExecuteNext(v)})})},i.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},i.addBufferListener=function(l,o,m){var w=this.sourceBuffer[l];if(!w)return;var C=m.bind(this,l);this.listeners[l].push({event:o,listener:C}),w.addEventListener(o,C)},i.removeBufferListeners=function(l){var o=this.sourceBuffer[l];if(!o)return;this.listeners[l].forEach(function(m){o.removeEventListener(m.event,m.listener)})},n}()},"./src/controller/buffer-operation-queue.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return y});var b=A("./src/utils/logger.ts"),y=function(){function S(h){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=h}var T=S.prototype;return T.append=function(_,d){var r=this.queues[d];r.push(_),r.length===1&&this.buffers[d]&&this.executeNext(d)},T.insertAbort=function(_,d){var r=this.queues[d];r.unshift(_),this.executeNext(d)},T.appendBlocker=function(_){var d,r=new Promise(function(t){d=t}),c={execute:d,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(c,_),r},T.executeNext=function(_){var d=this.buffers,r=this.queues,c=d[_],t=r[_];if(t.length){var a=t[0];try{a.execute()}catch(n){b.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),a.onError(n),(!c||!c.updating)&&(t.shift(),this.executeNext(_))}}},T.shiftAndExecuteNext=function(_){this.queues[_].shift(),this.executeNext(_)},T.current=function(_){return this.queues[_][0]},S}()},"./src/controller/cap-level-controller.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/events.ts");function y(h,_){for(var d=0;d<_.length;d++){var r=_[d];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}function S(h,_,d){return _&&y(h.prototype,_),d&&y(h,d),h}var T=function(){function h(d){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=d,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var _=h.prototype;return _.setStreamController=function(r){this.streamController=r},_.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},_.registerListeners=function(){var r=this.hls;r.on(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.unregisterListener=function(){var r=this.hls;r.off(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.onFpsDropLevelCapping=function(r,c){h.isLevelAllowed(c.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(c.droppedLevel)},_.onMediaAttaching=function(r,c){this.media=c.media instanceof HTMLVideoElement?c.media:null},_.onManifestParsed=function(r,c){var t=this.hls;this.restrictedLevels=[],this.firstLevel=c.firstLevel,t.config.capLevelToPlayerSize&&c.video&&this.startCapping()},_.onBufferCodecs=function(r,c){var t=this.hls;t.config.capLevelToPlayerSize&&c.video&&this.startCapping()},_.onMediaDetaching=function(){this.stopCapping()},_.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var r=this.hls.levels;if(r.length){var c=this.hls;c.autoLevelCapping=this.getMaxLevel(r.length-1),c.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=c.autoLevelCapping}}},_.getMaxLevel=function(r){var c=this,t=this.hls.levels;if(!t.length)return-1;var a=t.filter(function(n,i){return h.isLevelAllowed(i,c.restrictedLevels)&&i<=r});return this.clientRect=null,h.getMaxLevelByMediaSize(a,this.mediaWidth,this.mediaHeight)},_.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},_.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},_.getDimensions=function(){if(this.clientRect)return this.clientRect;var r=this.media,c={width:0,height:0};if(r){var t=r.getBoundingClientRect();c.width=t.width,c.height=t.height,!c.width&&!c.height&&(c.width=t.right-t.left||r.width||0,c.height=t.bottom-t.top||r.height||0)}return this.clientRect=c,c},h.isLevelAllowed=function(r,c){return c===void 0&&(c=[]),c.indexOf(r)===-1},h.getMaxLevelByMediaSize=function(r,c,t){if(!r||!r.length)return-1;for(var a=function(o,m){return m?o.width!==m.width||o.height!==m.height:!0},n=r.length-1,i=0;i<r.length;i+=1){var f=r[i];if((f.width>=c||f.height>=t)&&a(f,r[i+1])){n=i;break}}return n},S(h,[{key:"mediaWidth",get:function(){return this.getDimensions().width*h.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*h.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var r=1;try{r=self.devicePixelRatio}catch(c){}return r}}]),h}();p.default=T},"./src/controller/cmcd-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return a});var b=A("./src/events.ts"),y=A("./src/types/cmcd.ts"),S=A("./src/utils/buffer-helper.ts"),T=A("./src/utils/logger.ts");function h(n,i){for(var f=0;f<i.length;f++){var l=i[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}function _(n,i,f){return i&&h(n.prototype,i),f&&h(n,f),n}function d(n,i){var f=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(f)return(f=f.call(n)).next.bind(f);if(Array.isArray(n)||(f=r(n))||i&&n&&typeof n.length=="number"){f&&(n=f);var l=0;return function(){return l>=n.length?{done:!0}:{done:!1,value:n[l++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r(n,i){if(!n)return;if(typeof n=="string")return c(n,i);var f=Object.prototype.toString.call(n).slice(8,-1);if(f==="Object"&&n.constructor&&(f=n.constructor.name),f==="Map"||f==="Set")return Array.from(n);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return c(n,i)}function c(n,i){(i==null||i>n.length)&&(i=n.length);for(var f=0,l=new Array(i);f<i;f++)l[f]=n[f];return l}function t(){return t=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var f=arguments[i];for(var l in f)Object.prototype.hasOwnProperty.call(f,l)&&(n[l]=f[l])}return n},t.apply(this,arguments)}var a=function(){function n(f){var l=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){l.initialized&&(l.starved=!0),l.buffering=!0},this.onPlaying=function(){l.initialized||(l.initialized=!0),l.buffering=!1},this.applyPlaylistData=function(w){try{l.apply(w,{ot:y.CMCDObjectType.MANIFEST,su:!l.initialized})}catch(C){T.logger.warn("Could not generate manifest CMCD data.",C)}},this.applyFragmentData=function(w){try{var C=w.frag,v=l.hls.levels[C.level],P=l.getObjectType(C),R={d:C.duration*1e3,ot:P};(P===y.CMCDObjectType.VIDEO||P===y.CMCDObjectType.AUDIO||P==y.CMCDObjectType.MUXED)&&(R.br=v.bitrate/1e3,R.tb=l.getTopBandwidth(P),R.bl=l.getBufferLength(P)),l.apply(w,R)}catch(E){T.logger.warn("Could not generate segment CMCD data.",E)}},this.hls=f;var o=this.config=f.config,m=o.cmcd;m!=null&&(o.pLoader=this.createPlaylistLoader(),o.fLoader=this.createFragmentLoader(),this.sid=m.sessionId||n.uuid(),this.cid=m.contentId,this.useHeaders=m.useHeaders===!0,this.registerListeners())}var i=n.prototype;return i.registerListeners=function(){var l=this.hls;l.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),l.on(b.Events.BUFFER_CREATED,this.onBufferCreated,this)},i.unregisterListeners=function(){var l=this.hls;l.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),l.off(b.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},i.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},i.onMediaAttached=function(l,o){this.media=o.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},i.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},i.onBufferCreated=function(l,o){var m,w;this.audioBuffer=(m=o.tracks.audio)===null||m===void 0?void 0:m.buffer,this.videoBuffer=(w=o.tracks.video)===null||w===void 0?void 0:w.buffer},i.createData=function(){var l;return{v:y.CMCDVersion,sf:y.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(l=this.media)===null||l===void 0?void 0:l.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},i.apply=function(l,o){o===void 0&&(o={}),t(o,this.createData());var m=o.ot===y.CMCDObjectType.INIT||o.ot===y.CMCDObjectType.VIDEO||o.ot===y.CMCDObjectType.MUXED;if(this.starved&&m&&(o.bs=!0,o.su=!0,this.starved=!1),o.su==null&&(o.su=this.buffering),this.useHeaders){var w=n.toHeaders(o);if(!Object.keys(w).length)return;l.headers||(l.headers={}),t(l.headers,w)}else{var C=n.toQuery(o);if(!C)return;l.url=n.appendQueryToUri(l.url,C)}},i.getObjectType=function(l){var o=l.type;return o==="subtitle"?y.CMCDObjectType.TIMED_TEXT:l.sn==="initSegment"?y.CMCDObjectType.INIT:o==="audio"?y.CMCDObjectType.AUDIO:o==="main"?this.hls.audioTracks.length?y.CMCDObjectType.VIDEO:y.CMCDObjectType.MUXED:void 0},i.getTopBandwidth=function(l){for(var o=0,m=l===y.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,w=d(m),C;!(C=w()).done;){var v=C.value;v.bitrate>o&&(o=v.bitrate)}return o>0?o:NaN},i.getBufferLength=function(l){var o=this.hls.media,m=l===y.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!m||!o)return NaN;var w=S.BufferHelper.bufferInfo(m,o.currentTime,this.config.maxBufferHole);return w.len*1e3},i.createPlaylistLoader=function(){var l=this.config.pLoader,o=this.applyPlaylistData,m=l||this.config.loader;return function(){function w(v){this.loader=void 0,this.loader=new m(v)}var C=w.prototype;return C.destroy=function(){this.loader.destroy()},C.abort=function(){this.loader.abort()},C.load=function(P,R,E){o(P),this.loader.load(P,R,E)},_(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},i.createFragmentLoader=function(){var l=this.config.fLoader,o=this.applyFragmentData,m=l||this.config.loader;return function(){function w(v){this.loader=void 0,this.loader=new m(v)}var C=w.prototype;return C.destroy=function(){this.loader.destroy()},C.abort=function(){this.loader.abort()},C.load=function(P,R,E){o(P),this.loader.load(P,R,E)},_(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},n.uuid=function(){var l=URL.createObjectURL(new Blob),o=l.toString();return URL.revokeObjectURL(l),o.substr(o.lastIndexOf("/")+1)},n.serialize=function(l){for(var o=[],m=function(F){return!Number.isNaN(F)&&F!=null&&F!==""&&F!==!1},w=function(F){return Math.round(F)},C=function(F){return w(F/100)*100},v=function(F){return encodeURIComponent(F)},P={br:w,d:w,bl:C,dl:C,mtp:C,nor:v,rtp:C,tb:w},R=Object.keys(l||{}).sort(),E=d(R),x;!(x=E()).done;){var g=x.value,O=l[g];if(!m(O))continue;if(g==="v"&&O===1)continue;if(g=="pr"&&O===1)continue;var I=P[g];I&&(O=I(O));var D=typeof O,N=void 0;g==="ot"||g==="sf"||g==="st"?N=g+"="+O:D==="boolean"?N=g:D==="number"?N=g+"="+O:N=g+"="+JSON.stringify(O),o.push(N)}return o.join(",")},n.toHeaders=function(l){for(var o=Object.keys(l),m={},w=["Object","Request","Session","Status"],C=[{},{},{},{}],v={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},P=0,R=o;P<R.length;P++){var E=R[P],x=v[E]!=null?v[E]:1;C[x][E]=l[E]}for(var g=0;g<C.length;g++){var O=n.serialize(C[g]);O&&(m["CMCD-"+w[g]]=O)}return m},n.toQuery=function(l){return"CMCD="+encodeURIComponent(n.serialize(l))},n.appendQueryToUri=function(l,o){if(!o)return l;var m=l.includes("?")?"&":"?";return""+l+m+o},n}()},"./src/controller/eme-controller.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/events.ts"),y=A("./src/errors.ts"),S=A("./src/utils/logger.ts"),T=A("./src/utils/mediakeys-helper.ts");function h(a,n){for(var i=0;i<n.length;i++){var f=n[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}function _(a,n,i){return n&&h(a.prototype,n),i&&h(a,i),a}var d=3,r=function(n,i,f){var l={audioCapabilities:[],videoCapabilities:[]};return n.forEach(function(o){l.audioCapabilities.push({contentType:'audio/mp4; codecs="'+o+'"',robustness:f.audioRobustness||""})}),i.forEach(function(o){l.videoCapabilities.push({contentType:'video/mp4; codecs="'+o+'"',robustness:f.videoRobustness||""})}),[l]},c=function(n,i,f,l){switch(n){case T.KeySystems.WIDEVINE:return r(i,f,l);default:throw new Error("Unknown key-system: "+n)}},t=function(){function a(i){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=i,this._config=i.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var n=a.prototype;return n.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},n._registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this)},n._unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this)},n.getLicenseServerUrl=function(f){switch(f){case T.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+f+'"')},n._attemptKeySystemAccess=function(f,l,o){var m=this,w=c(f,l,o,this._drmSystemOptions);S.logger.log("Requesting encrypted media key-system access");var C=this.requestMediaKeySystemAccess(f,w);this.mediaKeysPromise=C.then(function(v){return m._onMediaKeySystemAccessObtained(f,v)}),C.catch(function(v){S.logger.error('Failed to obtain key-system "'+f+'" access:',v)})},n._onMediaKeySystemAccessObtained=function(f,l){var o=this;S.logger.log('Access for key-system "'+f+'" obtained');var m={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:l,mediaKeySystemDomain:f};this._mediaKeysList.push(m);var w=Promise.resolve().then(function(){return l.createMediaKeys()}).then(function(C){return m.mediaKeys=C,S.logger.log('Media-keys created for key-system "'+f+'"'),o._onMediaKeysCreated(),C});return w.catch(function(C){S.logger.error("Failed to create media-keys:",C)}),w},n._onMediaKeysCreated=function(){var f=this;this._mediaKeysList.forEach(function(l){l.mediaKeysSession||(l.mediaKeysSession=l.mediaKeys.createSession(),f._onNewMediaKeySession(l.mediaKeysSession))})},n._onNewMediaKeySession=function(f){var l=this;S.logger.log("New key-system session "+f.sessionId),f.addEventListener("message",function(o){l._onKeySessionMessage(f,o.message)},!1)},n._onKeySessionMessage=function(f,l){S.logger.log("Got EME message event, creating license request"),this._requestLicense(l,function(o){S.logger.log("Received license data (length: "+(o&&o.byteLength)+"), updating key-session"),f.update(o)})},n.onMediaEncrypted=function(f){var l=this;if(S.logger.log('Media is encrypted using "'+f.initDataType+'" init data type'),!this.mediaKeysPromise){S.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var o=function(w){if(!l._media)return;l._attemptSetMediaKeys(w),l._generateRequestWithPreferredKeySession(f.initDataType,f.initData)};this.mediaKeysPromise.then(o).catch(o)},n._attemptSetMediaKeys=function(f){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var l=this._mediaKeysList[0];if(!l||!l.mediaKeys){S.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}S.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(l.mediaKeys),this._hasSetMediaKeys=!0}},n._generateRequestWithPreferredKeySession=function(f,l){var o=this,m=this._mediaKeysList[0];if(!m){S.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(m.mediaKeysSessionInitialized){S.logger.warn("Key-Session already initialized but requested again");return}var w=m.mediaKeysSession;if(!w){S.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!l){S.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}S.logger.log('Generating key-session request for "'+f+'" init data type'),m.mediaKeysSessionInitialized=!0,w.generateRequest(f,l).then(function(){S.logger.debug("Key-session generation succeeded")}).catch(function(C){S.logger.error("Error generating key-session request:",C),o.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},n._createLicenseXhr=function(f,l,o){var m=new XMLHttpRequest;m.responseType="arraybuffer",m.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,m,f,l,o);var w=this._licenseXhrSetup;if(w)try{w.call(this.hls,m,f),w=void 0}catch(C){S.logger.error(C)}try{m.readyState||m.open("POST",f,!0),w&&w.call(this.hls,m,f)}catch(C){throw new Error("issue setting up KeySystem license XHR "+C)}return m},n._onLicenseRequestReadyStageChange=function(f,l,o,m){switch(f.readyState){case 4:if(f.status===200){this._requestLicenseFailureCount=0,S.logger.log("License request succeeded");var w=f.response,C=this._licenseResponseCallback;if(C)try{w=C.call(this.hls,f,l)}catch(P){S.logger.error(P)}m(w)}else{if(S.logger.error("License Request XHR failed ("+l+"). Status: "+f.status+" ("+f.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>d){this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var v=d-this._requestLicenseFailureCount+1;S.logger.warn("Retrying license request, "+v+" attempts left"),this._requestLicense(o,m)}break}},n._generateLicenseRequestChallenge=function(f,l){switch(f.mediaKeySystemDomain){case T.KeySystems.WIDEVINE:return l}throw new Error("unsupported key-system: "+f.mediaKeySystemDomain)},n._requestLicense=function(f,l){S.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){S.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var m=this.getLicenseServerUrl(o.mediaKeySystemDomain),w=this._createLicenseXhr(m,f,l);S.logger.log("Sending license request to URL: "+m);var C=this._generateLicenseRequestChallenge(o,f);w.send(C)}catch(v){S.logger.error("Failure requesting DRM license: "+v),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},n.onMediaAttached=function(f,l){if(!this._emeEnabled)return;var o=l.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},n.onMediaDetached=function(){var f=this._media,l=this._mediaKeysList;if(!f)return;f.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(l.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return f.setMediaKeys(null)}).catch(function(){})},n.onManifestParsed=function(f,l){if(!this._emeEnabled)return;var o=l.levels.map(function(w){return w.audioCodec}).filter(function(w){return!!w}),m=l.levels.map(function(w){return w.videoCodec}).filter(function(w){return!!w});this._attemptKeySystemAccess(T.KeySystems.WIDEVINE,o,m)},_(a,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),a}();p.default=t},"./src/controller/fps-controller.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/events.ts"),y=A("./src/utils/logger.ts"),S=function(){function T(_){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=_,this.registerListeners()}var h=T.prototype;return h.setStreamController=function(d){this.streamController=d},h.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},h.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching)},h.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},h.onMediaAttaching=function(d,r){var c=this.hls.config;if(c.capLevelOnFPSDrop){var t=r.media instanceof self.HTMLVideoElement?r.media:null;this.media=t,t&&typeof t.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),c.fpsDroppedMonitoringPeriod)}},h.checkFPS=function(d,r,c){var t=performance.now();if(r){if(this.lastTime){var a=t-this.lastTime,n=c-this.lastDroppedFrames,i=r-this.lastDecodedFrames,f=1e3*n/a,l=this.hls;if(l.trigger(b.Events.FPS_DROP,{currentDropped:n,currentDecoded:i,totalDroppedFrames:c}),f>0&&n>l.config.fpsDroppedMonitoringThreshold*i){var o=l.currentLevel;y.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(l.autoLevelCapping===-1||l.autoLevelCapping>=o)&&(o=o-1,l.trigger(b.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:l.currentLevel}),l.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=t,this.lastDroppedFrames=c,this.lastDecodedFrames=r}},h.checkFPSInterval=function(){var d=this.media;if(d)if(this.isVideoPlaybackQualityAvailable){var r=d.getVideoPlaybackQuality();this.checkFPS(d,r.totalVideoFrames,r.droppedVideoFrames)}else this.checkFPS(d,d.webkitDecodedFrameCount,d.webkitDroppedFrameCount)},T}();p.default=S},"./src/controller/fragment-finders.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"findFragmentByPDT",function(){return S}),A.d(p,"findFragmentByPTS",function(){return T}),A.d(p,"fragmentWithinToleranceTest",function(){return h}),A.d(p,"pdtWithinToleranceTest",function(){return _}),A.d(p,"findFragWithCC",function(){return d});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/binary-search.ts");function S(r,c,t){if(c===null||!Array.isArray(r)||!r.length||!Object(b.isFiniteNumber)(c))return null;var a=r[0].programDateTime;if(c<(a||0))return null;var n=r[r.length-1].endProgramDateTime;if(c>=(n||0))return null;t=t||0;for(var i=0;i<r.length;++i){var f=r[i];if(_(c,t,f))return f}return null}function T(r,c,t,a){t===void 0&&(t=0),a===void 0&&(a=0);var n=null;if(r?n=c[r.sn-c[0].sn+1]||null:t===0&&c[0].start===0&&(n=c[0]),n&&h(t,a,n)===0)return n;var i=y.default.search(c,h.bind(null,t,a));return i||n}function h(r,c,t){r===void 0&&(r=0),c===void 0&&(c=0);var a=Math.min(c,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-a<=r?1:t.start-a>r&&t.start?-1:0}function _(r,c,t){var a=Math.min(c,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3,n=t.endProgramDateTime||0;return n-a>r}function d(r,c){return y.default.search(r,function(t){return t.cc<c?1:t.cc>c?-1:0})}},"./src/controller/fragment-tracker.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"FragmentState",function(){return S}),A.d(p,"FragmentTracker",function(){return T});var b=A("./src/events.ts"),y=A("./src/types/loader.ts"),S;(function(d){d.NOT_LOADED="NOT_LOADED",d.BACKTRACKED="BACKTRACKED",d.APPENDING="APPENDING",d.PARTIAL="PARTIAL",d.OK="OK"})(S||(S={}));var T=function(){function d(c){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=c,this._registerListeners()}var r=d.prototype;return r._registerListeners=function(){var t=this.hls;t.on(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),t.on(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),t.on(b.Events.FRAG_LOADED,this.onFragLoaded,this)},r._unregisterListeners=function(){var t=this.hls;t.off(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),t.off(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),t.off(b.Events.FRAG_LOADED,this.onFragLoaded,this)},r.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},r.getAppendedFrag=function(t,a){if(a===y.PlaylistLevelType.MAIN){var n=this.activeFragment,i=this.activeParts;if(!n)return null;if(i)for(var f=i.length;f--;){var l=i[f],o=l?l.end:n.appendedPTS;if(l.start<=t&&o!==void 0&&t<=o)return f>9&&(this.activeParts=i.slice(f-9)),l}else if(n.start<=t&&n.appendedPTS!==void 0&&t<=n.appendedPTS)return n}return this.getBufferedFrag(t,a)},r.getBufferedFrag=function(t,a){for(var n=this.fragments,i=Object.keys(n),f=i.length;f--;){var l=n[i[f]];if((l==null?void 0:l.body.type)===a&&l.buffered){var o=l.body;if(o.start<=t&&t<=o.end)return o}}return null},r.detectEvictedFragments=function(t,a,n){var i=this;Object.keys(this.fragments).forEach(function(f){var l=i.fragments[f];if(!l)return;if(!l.buffered){l.body.type===n&&i.removeFragment(l.body);return}var o=l.range[t];if(!o)return;o.time.some(function(m){var w=!i.isTimeBuffered(m.startPTS,m.endPTS,a);return w&&i.removeFragment(l.body),w})})},r.detectPartialFragments=function(t){var a=this,n=this.timeRanges,i=t.frag,f=t.part;if(!n||i.sn==="initSegment")return;var l=_(i),o=this.fragments[l];if(!o)return;Object.keys(n).forEach(function(m){var w=i.elementaryStreams[m];if(!w)return;var C=n[m],v=f!==null||w.partial===!0;o.range[m]=a.getBufferedTimes(i,f,v,C)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},r.fragBuffered=function(t){var a=_(t),n=this.fragments[a];n&&(n.backtrack=n.loaded=null,n.buffered=!0)},r.getBufferedTimes=function(t,a,n,i){for(var f={time:[],partial:n},l=a?a.start:t.start,o=a?a.end:t.end,m=t.minEndPTS||o,w=t.maxStartPTS||l,C=0;C<i.length;C++){var v=i.start(C)-this.bufferPadding,P=i.end(C)+this.bufferPadding;if(w>=v&&m<=P){f.time.push({startPTS:Math.max(l,i.start(C)),endPTS:Math.min(o,i.end(C))});break}else if(l<P&&o>v)f.partial=!0,f.time.push({startPTS:Math.max(l,i.start(C)),endPTS:Math.min(o,i.end(C))});else if(o<=v)break}return f},r.getPartialFragment=function(t){var a=null,n,i,f,l=0,o=this.bufferPadding,m=this.fragments;return Object.keys(m).forEach(function(w){var C=m[w];if(!C)return;h(C)&&(i=C.body.start-o,f=C.body.end+o,t>=i&&t<=f&&(n=Math.min(t-i,f-t),l<=n&&(a=C.body,l=n)))}),a},r.getState=function(t){var a=_(t),n=this.fragments[a];return n?n.buffered?h(n)?S.PARTIAL:S.OK:n.backtrack?S.BACKTRACKED:S.APPENDING:S.NOT_LOADED},r.backtrack=function(t,a){var n=_(t),i=this.fragments[n];if(!i||i.backtrack)return null;var f=i.backtrack=a||i.loaded;return i.loaded=null,f},r.getBacktrackData=function(t){var a=_(t),n=this.fragments[a];if(n){var i,f=n.backtrack;if(f!=null&&(i=f.payload)!==null&&i!==void 0&&i.byteLength)return f;this.removeFragment(t)}return null},r.isTimeBuffered=function(t,a,n){for(var i,f,l=0;l<n.length;l++){if(i=n.start(l)-this.bufferPadding,f=n.end(l)+this.bufferPadding,t>=i&&a<=f)return!0;if(a<=i)return!1}return!1},r.onFragLoaded=function(t,a){var n=a.frag,i=a.part;if(n.sn==="initSegment"||n.bitrateTest||i)return;var f=_(n);this.fragments[f]={body:n,loaded:a,backtrack:null,buffered:!1,range:Object.create(null)}},r.onBufferAppended=function(t,a){var n=this,i=a.frag,f=a.part,l=a.timeRanges;if(i.type===y.PlaylistLevelType.MAIN)if(this.activeFragment=i,f){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(f)}else this.activeParts=null;this.timeRanges=l,Object.keys(l).forEach(function(m){var w=l[m];if(n.detectEvictedFragments(m,w),!f)for(var C=0;C<w.length;C++)i.appendedPTS=Math.max(w.end(C),i.appendedPTS||0)})},r.onFragBuffered=function(t,a){this.detectPartialFragments(a)},r.hasFragment=function(t){var a=_(t);return!!this.fragments[a]},r.removeFragmentsInRange=function(t,a,n){var i=this;Object.keys(this.fragments).forEach(function(f){var l=i.fragments[f];if(!l)return;if(l.buffered){var o=l.body;o.type===n&&o.start<a&&o.end>t&&i.removeFragment(o)}})},r.removeFragment=function(t){var a=_(t);t.stats.loaded=0,t.clearElementaryStreamInfo(),delete this.fragments[a]},r.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},d}();function h(d){var r,c;return d.buffered&&(((r=d.range.video)===null||r===void 0?void 0:r.partial)||((c=d.range.audio)===null||c===void 0?void 0:c.partial))}function _(d){return d.type+"_"+d.level+"_"+d.urlId+"_"+d.sn}},"./src/controller/gap-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"STALL_MINIMUM_DURATION_MS",function(){return h}),A.d(p,"MAX_START_GAP_JUMP",function(){return _}),A.d(p,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return d}),A.d(p,"SKIP_BUFFER_RANGE_START",function(){return r}),A.d(p,"default",function(){return c});var b=A("./src/utils/buffer-helper.ts"),y=A("./src/errors.ts"),S=A("./src/events.ts"),T=A("./src/utils/logger.ts"),h=250,_=2,d=.1,r=.05,c=function(){function t(n,i,f,l){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=n,this.media=i,this.fragmentTracker=f,this.hls=l}var a=t.prototype;return a.destroy=function(){this.hls=this.fragmentTracker=this.media=null},a.poll=function(i){var f=this.config,l=this.media,o=this.stalled,m=l.currentTime,w=l.seeking,C=this.seeking&&!w,v=!this.seeking&&w;if(this.seeking=w,m!==i){if(this.moved=!0,o!==null){if(this.stallReported){var P=self.performance.now()-o;T.logger.warn("playback not stuck anymore @"+m+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((v||C)&&(this.stalled=null),l.paused||l.ended||l.playbackRate===0||!b.BufferHelper.getBuffered(l).length)return;var R=b.BufferHelper.bufferInfo(l,m,0),E=R.len>0,x=R.nextStart||0;if(!E&&!x)return;if(w){var g=R.len>_,O=!x||x-m>_&&!this.fragmentTracker.getPartialFragment(m);if(g||O)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var I,D=Math.max(x,R.start||0)-m,N=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,V=N==null||((I=N.details)===null||I===void 0)?void 0:I.live,F=V?N.details.targetduration*2:_;if(D>0&&D<=F){this._trySkipBufferHole(null);return}}var W=self.performance.now();if(o===null){this.stalled=W;return}var K=W-o;!w&&K>=h&&this._reportStall(R.len);var B=b.BufferHelper.bufferInfo(l,m,f.maxBufferHole);this._tryFixBufferStall(B,K)},a._tryFixBufferStall=function(i,f){var l=this.config,o=this.fragmentTracker,m=this.media,w=m.currentTime,C=o.getPartialFragment(w);if(C){var v=this._trySkipBufferHole(C);if(v)return}i.len>l.maxBufferHole&&f>l.highBufferWatchdogPeriod*1e3&&(T.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},a._reportStall=function(i){var f=this.hls,l=this.media,o=this.stallReported;o||(this.stallReported=!0,T.logger.warn("Playback stalling at @"+l.currentTime+" due to low buffer (buffer="+i+")"),f.trigger(S.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:i}))},a._trySkipBufferHole=function(i){for(var f=this.config,l=this.hls,o=this.media,m=o.currentTime,w=0,C=b.BufferHelper.getBuffered(o),v=0;v<C.length;v++){var P=C.start(v);if(m+f.maxBufferHole>=w&&m<P){var R=Math.max(P+r,o.currentTime+d);return T.logger.warn("skipping hole, adjusting currentTime from "+m+" to "+R),this.moved=!0,this.stalled=null,o.currentTime=R,i&&l.trigger(S.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+m+" to "+R,frag:i}),R}w=C.end(v)}return 0},a._tryNudgeBuffer=function(){var i=this.config,f=this.hls,l=this.media,o=l.currentTime,m=(this.nudgeRetry||0)+1;if(this.nudgeRetry=m,m<i.nudgeMaxRetry){var w=o+m*i.nudgeOffset;T.logger.warn("Nudging 'currentTime' from "+o+" to "+w),l.currentTime=w,f.trigger(S.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else T.logger.error("Playhead still not moving while enough data buffered @"+o+" after "+i.nudgeMaxRetry+" nudges"),f.trigger(S.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},t}()},"./src/controller/id3-track-controller.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/events.ts"),y=A("./src/utils/texttrack-utils.ts"),S=A("./src/demux/id3.ts"),T=.25,h=function(){function _(r){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=r,this._registerListeners()}var d=_.prototype;return d.destroy=function(){this._unregisterListeners()},d._registerListeners=function(){var c=this.hls;c.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),c.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.on(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),c.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},d._unregisterListeners=function(){var c=this.hls;c.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),c.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.off(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),c.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},d.onMediaAttached=function(c,t){this.media=t.media},d.onMediaDetaching=function(){if(!this.id3Track)return;Object(y.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},d.getID3Track=function(c){if(!this.media)return;for(var t=0;t<c.length;t++){var a=c[t];if(a.kind==="metadata"&&a.label==="id3")return Object(y.sendAddTrackEvent)(a,this.media),a}return this.media.addTextTrack("metadata","id3")},d.onFragParsingMetadata=function(c,t){if(!this.media)return;var a=t.frag,n=t.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var i=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,f=0;f<n.length;f++){var l=S.getID3Frames(n[f].data);if(l){var o=n[f].pts,m=f<n.length-1?n[f+1].pts:a.end,w=m-o;w<=0&&(m=o+T);for(var C=0;C<l.length;C++){var v=l[C];if(!S.isTimeStampFrame(v)){var P=new i(o,m,"");P.value=v,this.id3Track.addCue(P)}}}}},d.onBufferFlushing=function(c,t){var a=t.startOffset,n=t.endOffset,i=t.type;if(!i||i==="audio"){var f=this.id3Track;f&&Object(y.removeCuesInRange)(f,a,n)}},_}();p.default=h},"./src/controller/latency-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return _});var b=A("./src/errors.ts"),y=A("./src/events.ts"),S=A("./src/utils/logger.ts");function T(d,r){for(var c=0;c<r.length;c++){var t=r[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(d,t.key,t)}}function h(d,r,c){return r&&T(d.prototype,r),c&&T(d,c),d}var _=function(){function d(c){var t=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return t.timeupdate()},this.hls=c,this.config=c.config,this.registerListeners()}var r=d.prototype;return r.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},r.registerListeners=function(){this.hls.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(y.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){this.hls.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(y.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(y.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(y.Events.ERROR,this.onError)},r.onMediaAttached=function(t,a){this.media=a.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},r.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},r.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},r.onLevelUpdated=function(t,a){var n=a.details;this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},r.onError=function(t,a){if(a.details!==b.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,S.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},r.timeupdate=function(){var t=this.media,a=this.levelDetails;if(!t||!a)return;this.currentTime=t.currentTime;var n=this.computeLatency();if(n===null)return;this._latency=n;var i=this.config,f=i.lowLatencyMode,l=i.maxLiveSyncPlaybackRate;if(!f||l===1)return;var o=this.targetLatency;if(o===null)return;var m=n-o,w=Math.min(this.maxLatency,o+a.targetduration),C=m<w;if(a.live&&C&&m>.05&&this.forwardBufferLength>1){var v=Math.min(2,Math.max(1,l)),P=Math.round(2/(1+Math.exp(-.75*m-this.edgeStalled))*20)/20;t.playbackRate=Math.min(v,Math.max(1,P))}else t.playbackRate!==1&&t.playbackRate!==0&&(t.playbackRate=1)},r.estimateLiveEdge=function(){var t=this.levelDetails;return t===null?null:t.edge+t.age},r.computeLatency=function(){var t=this.estimateLiveEdge();return t===null?null:t-this.currentTime},h(d,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var t=this.config,a=this.levelDetails;return t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:a?t.liveMaxLatencyDurationCount*a.targetduration:0}},{key:"targetLatency",get:function(){var t=this.levelDetails;if(t===null)return null;var a=t.holdBack,n=t.partHoldBack,i=t.targetduration,f=this.config,l=f.liveSyncDuration,o=f.liveSyncDurationCount,m=f.lowLatencyMode,w=this.hls.userConfig,C=m&&n||a;(w.liveSyncDuration||w.liveSyncDurationCount||C===0)&&(C=l!==void 0?l:o*i);var v=i,P=1;return C+Math.min(this.stallCount*P,v)}},{key:"liveSyncPosition",get:function(){var t=this.estimateLiveEdge(),a=this.targetLatency,n=this.levelDetails;if(t===null||a===null||n===null)return null;var i=n.edge,f=t-a-this.edgeStalled,l=i-n.totalduration,o=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(l,f),o)}},{key:"drift",get:function(){var t=this.levelDetails;return t===null?1:t.drift}},{key:"edgeStalled",get:function(){var t=this.levelDetails;if(t===null)return 0;var a=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-a,0)}},{key:"forwardBufferLength",get:function(){var t=this.media,a=this.levelDetails;if(!t||!a)return 0;var n=t.buffered.length;return n?t.buffered.end(n-1):a.edge-this.currentTime}}]),d}()},"./src/controller/level-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return f});var b=A("./src/types/level.ts"),y=A("./src/events.ts"),S=A("./src/errors.ts"),T=A("./src/utils/codecs.ts"),h=A("./src/controller/level-helper.ts"),_=A("./src/controller/base-playlist-controller.ts"),d=A("./src/types/loader.ts");function r(){return r=Object.assign||function(l){for(var o=1;o<arguments.length;o++){var m=arguments[o];for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(l[w]=m[w])}return l},r.apply(this,arguments)}function c(l,o){for(var m=0;m<o.length;m++){var w=o[m];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}function t(l,o,m){return o&&c(l.prototype,o),m&&c(l,m),l}function a(l,o){l.prototype=Object.create(o.prototype),l.prototype.constructor=l,n(l,o)}function n(l,o){return n=Object.setPrototypeOf||function(w,C){return w.__proto__=C,w},n(l,o)}var i=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),f=function(l){a(o,l);function o(w){var C;return C=l.call(this,w,"[level-controller]")||this,C._levels=[],C._firstLevel=-1,C._startLevel=void 0,C.currentLevelIndex=-1,C.manualLevelIndex=-1,C.onParsedComplete=void 0,C._registerListeners(),C}var m=o.prototype;return m._registerListeners=function(){var C=this.hls;C.on(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),C.on(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.on(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),C.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),C.on(y.Events.ERROR,this.onError,this)},m._unregisterListeners=function(){var C=this.hls;C.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),C.off(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.off(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),C.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),C.off(y.Events.ERROR,this.onError,this)},m.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,l.prototype.destroy.call(this)},m.startLoad=function(){var C=this._levels;C.forEach(function(v){v.loadError=0}),l.prototype.startLoad.call(this)},m.onManifestLoaded=function(C,v){var P=[],R=[],E=[],x,g={},O,I=!1,D=!1,N=!1;if(v.levels.forEach(function(K){var B=K.attrs;I=I||!!(K.width&&K.height),D=D||!!K.videoCodec,N=N||!!K.audioCodec,i&&K.audioCodec&&K.audioCodec.indexOf("mp4a.40.34")!==-1&&(K.audioCodec=void 0);var k=K.bitrate+"-"+K.attrs.RESOLUTION+"-"+K.attrs.CODECS;O=g[k],O?O.url.push(K.url):(O=new b.Level(K),g[k]=O,P.push(O)),B&&(B.AUDIO&&Object(h.addGroupId)(O,"audio",B.AUDIO),B.SUBTITLES&&Object(h.addGroupId)(O,"text",B.SUBTITLES))}),(I||D)&&N&&(P=P.filter(function(K){var B=K.videoCodec,k=K.width,G=K.height;return!!B||!!(k&&G)})),P=P.filter(function(K){var B=K.audioCodec,k=K.videoCodec;return(!B||Object(T.isCodecSupportedInMp4)(B,"audio"))&&(!k||Object(T.isCodecSupportedInMp4)(k,"video"))}),v.audioTracks&&(R=v.audioTracks.filter(function(K){return!K.audioCodec||Object(T.isCodecSupportedInMp4)(K.audioCodec,"audio")}),Object(h.assignTrackIdsByGroup)(R)),v.subtitles&&(E=v.subtitles,Object(h.assignTrackIdsByGroup)(E)),P.length>0){x=P[0].bitrate,P.sort(function(K,B){return K.bitrate-B.bitrate}),this._levels=P;for(var V=0;V<P.length;V++)if(P[V].bitrate===x){this._firstLevel=V,this.log("manifest loaded, "+P.length+" level(s) found, first bitrate: "+x);break}var F=N&&!D,W={levels:P,audioTracks:R,subtitleTracks:E,firstLevel:this._firstLevel,stats:v.stats,audio:N,video:D,altAudio:!F&&R.some(function(K){return!!K.url})};this.hls.trigger(y.Events.MANIFEST_PARSED,W),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(y.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:v.url,reason:"no level with compatible codecs found in manifest"})},m.onError=function(C,v){if(l.prototype.onError.call(this,C,v),v.fatal)return;var P=v.context,R=this._levels[this.currentLevelIndex];if(P&&(P.type===d.PlaylistContextType.AUDIO_TRACK&&R.audioGroupIds&&P.groupId===R.audioGroupIds[R.urlId]||P.type===d.PlaylistContextType.SUBTITLE_TRACK&&R.textGroupIds&&P.groupId===R.textGroupIds[R.urlId])){this.redundantFailover(this.currentLevelIndex);return}var E=!1,x=!0,g;switch(v.details){case S.ErrorDetails.FRAG_LOAD_ERROR:case S.ErrorDetails.FRAG_LOAD_TIMEOUT:case S.ErrorDetails.KEY_LOAD_ERROR:case S.ErrorDetails.KEY_LOAD_TIMEOUT:if(v.frag){var O=this._levels[v.frag.level];O?(O.fragmentError++,O.fragmentError>this.hls.config.fragLoadingMaxRetry&&(g=v.frag.level)):g=v.frag.level}break;case S.ErrorDetails.LEVEL_LOAD_ERROR:case S.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(x=!1),g=P.level),E=!0;break;case S.ErrorDetails.REMUX_ALLOC_ERROR:g=v.level,E=!0;break}g!==void 0&&this.recoverLevel(v,g,E,x)},m.recoverLevel=function(C,v,P,R){var E=C.details,x=this._levels[v];if(x.loadError++,P){var g=this.retryLoadingOrFail(C);if(g)C.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var O=x.url.length;if(O>1&&x.loadError<O)C.levelRetry=!0,this.redundantFailover(v);else if(this.manualLevelIndex===-1){var I=v===0?this._levels.length-1:v-1;this.currentLevelIndex!==I&&this._levels[I].loadError===0&&(this.warn(E+": switch to "+I),C.levelRetry=!0,this.hls.nextAutoLevel=I)}}},m.redundantFailover=function(C){var v=this._levels[C],P=v.url.length;if(P>1){var R=(v.urlId+1)%P;this.warn("Switching to redundant URL-id "+R),this._levels.forEach(function(E){E.urlId=R}),this.level=C}},m.onFragLoaded=function(C,v){var P=v.frag;if(P!==void 0&&P.type===d.PlaylistLevelType.MAIN){var R=this._levels[P.level];R!==void 0&&(R.fragmentError=0,R.loadError=0)}},m.onLevelLoaded=function(C,v){var P,R=v.level,E=v.details,x=this._levels[R];if(!x){var g;this.warn("Invalid level index "+R),(g=v.deliveryDirectives)!==null&&g!==void 0&&g.skip&&(E.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(x.fragmentError===0&&(x.loadError=0,this.retryCount=0),this.playlistLoaded(R,v,x.details)):(P=v.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(E.deltaUpdateFailed=!0)},m.onAudioTrackSwitched=function(C,v){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var R=-1,E=this.hls.audioTracks[v.id].groupId,x=0;x<P.audioGroupIds.length;x++)if(P.audioGroupIds[x]===E){R=x;break}R!==P.urlId&&(P.urlId=R,this.startLoad())}},m.loadPlaylist=function(C){var v=this.currentLevelIndex,P=this._levels[v];if(this.canLoad&&P&&P.url.length>0){var R=P.urlId,E=P.url[R];if(C)try{E=C.addDirectives(E)}catch(x){this.warn("Could not construct new URL with HLS Delivery Directives: "+x)}this.log("Attempt loading level index "+v+(C?" at sn "+C.msn+" part "+C.part:"")+" with URL-id "+R+" "+E),this.clearTimer(),this.hls.trigger(y.Events.LEVEL_LOADING,{url:E,level:v,id:R,deliveryDirectives:C||null})}},m.removeLevel=function(C,v){var P=function(x,g){return g!==v},R=this._levels.filter(function(E,x){return x!==C?!0:E.url.length>1&&v!==void 0?(E.url=E.url.filter(P),E.audioGroupIds&&(E.audioGroupIds=E.audioGroupIds.filter(P)),E.textGroupIds&&(E.textGroupIds=E.textGroupIds.filter(P)),E.urlId=0,!0):!1}).map(function(E,x){var g=E.details;return g!=null&&g.fragments&&g.fragments.forEach(function(O){O.level=x}),E});this._levels=R,this.hls.trigger(y.Events.LEVELS_UPDATED,{levels:R})},t(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(C){var v,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===C&&(v=P[C])!==null&&v!==void 0&&v.details)return;if(C<0||C>=P.length){var R=C<0;if(this.hls.trigger(y.Events.ERROR,{type:S.ErrorTypes.OTHER_ERROR,details:S.ErrorDetails.LEVEL_SWITCH_ERROR,level:C,fatal:R,reason:"invalid level idx"}),R)return;C=Math.min(C,P.length-1)}this.clearTimer();var E=this.currentLevelIndex,x=P[E],g=P[C];this.log("switching to level "+C+" from "+E),this.currentLevelIndex=C;var O=r({},g,{level:C,maxBitrate:g.maxBitrate,uri:g.uri,urlId:g.urlId});delete O._urlId,this.hls.trigger(y.Events.LEVEL_SWITCHING,O);var I=g.details;if(!I||I.live){var D=this.switchParams(g.uri,x==null?void 0:x.details);this.loadPlaylist(D)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(C){this.manualLevelIndex=C,this._startLevel===void 0&&(this._startLevel=C),C!==-1&&(this.level=C)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(C){this._firstLevel=C}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var C=this.hls.config.startLevel;return C!==void 0?C:this._firstLevel}else return this._startLevel},set:function(C){this._startLevel=C}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(C){this.level=C,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=C)}}]),o}(_.default)},"./src/controller/level-helper.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"addGroupId",function(){return S}),A.d(p,"assignTrackIdsByGroup",function(){return T}),A.d(p,"updatePTS",function(){return h}),A.d(p,"updateFragPTSDTS",function(){return d}),A.d(p,"mergeDetails",function(){return r}),A.d(p,"mapPartIntersection",function(){return c}),A.d(p,"mapFragmentIntersection",function(){return t}),A.d(p,"adjustSliding",function(){return a}),A.d(p,"addSliding",function(){return n}),A.d(p,"computeReloadInterval",function(){return i}),A.d(p,"getFragmentWithSN",function(){return f}),A.d(p,"getPartWith",function(){return l});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/logger.ts");function S(o,m,w){switch(m){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(w);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(w);break}}function T(o){var m={};o.forEach(function(w){var C=w.groupId||"";w.id=m[C]=m[C]||0,m[C]++})}function h(o,m,w){var C=o[m],v=o[w];_(C,v)}function _(o,m){var w=m.startPTS;if(Object(b.isFiniteNumber)(w)){var C=0,v;m.sn>o.sn?(C=w-o.start,v=o):(C=o.start-w,v=m),v.duration!==C&&(v.duration=C)}else if(m.sn>o.sn){var P=o.cc===m.cc;P&&o.minEndPTS?m.start=o.start+(o.minEndPTS-o.start):m.start=o.start+o.duration}else m.start=Math.max(o.start-m.duration,0)}function d(o,m,w,C,v,P){var R=C-w;R<=0&&(y.logger.warn("Fragment should have a positive duration",m),C=w+m.duration,P=v+m.duration);var E=w,x=C,g=m.startPTS,O=m.endPTS;if(Object(b.isFiniteNumber)(g)){var I=Math.abs(g-w);Object(b.isFiniteNumber)(m.deltaPTS)?m.deltaPTS=Math.max(I,m.deltaPTS):m.deltaPTS=I,E=Math.max(w,g),w=Math.min(w,g),v=Math.min(v,m.startDTS),x=Math.min(C,O),C=Math.max(C,O),P=Math.max(P,m.endDTS)}m.duration=C-w;var D=w-m.start;m.appendedPTS=C,m.start=m.startPTS=w,m.maxStartPTS=E,m.startDTS=v,m.endPTS=C,m.minEndPTS=x,m.endDTS=P;var N=m.sn;if(!o||N<o.startSN||N>o.endSN)return 0;var V,F=N-o.startSN,W=o.fragments;for(W[F]=m,V=F;V>0;V--)_(W[V],W[V-1]);for(V=F;V<W.length-1;V++)_(W[V],W[V+1]);return o.fragmentHint&&_(W[W.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,D}function r(o,m){for(var w=null,C=o.fragments,v=C.length-1;v>=0;v--){var P=C[v].initSegment;if(P){w=P;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var R=0,E;if(t(o,m,function(V,F){V.relurl&&(R=V.cc-F.cc),Object(b.isFiniteNumber)(V.startPTS)&&Object(b.isFiniteNumber)(V.endPTS)&&(F.start=F.startPTS=V.startPTS,F.startDTS=V.startDTS,F.appendedPTS=V.appendedPTS,F.maxStartPTS=V.maxStartPTS,F.endPTS=V.endPTS,F.endDTS=V.endDTS,F.minEndPTS=V.minEndPTS,F.duration=V.endPTS-V.startPTS,F.duration&&(E=F),m.PTSKnown=m.alignedSliding=!0),F.elementaryStreams=V.elementaryStreams,F.loader=V.loader,F.stats=V.stats,F.urlId=V.urlId,V.initSegment&&(F.initSegment=V.initSegment,w=V.initSegment)}),w){var x=m.fragmentHint?m.fragments.concat(m.fragmentHint):m.fragments;x.forEach(function(V){var F;(!V.initSegment||V.initSegment.relurl===((F=w)===null||F===void 0?void 0:F.relurl))&&(V.initSegment=w)})}if(m.skippedSegments&&(m.deltaUpdateFailed=m.fragments.some(function(V){return!V}),m.deltaUpdateFailed)){y.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var g=m.skippedSegments;g--;)m.fragments.shift();m.startSN=m.fragments[0].sn,m.startCC=m.fragments[0].cc}var O=m.fragments;if(R){y.logger.warn("discontinuity sliding from playlist, take drift into account");for(var I=0;I<O.length;I++)O[I].cc+=R}m.skippedSegments&&(m.startCC=m.fragments[0].cc),c(o.partList,m.partList,function(V,F){F.elementaryStreams=V.elementaryStreams,F.stats=V.stats}),E?d(m,E,E.startPTS,E.endPTS,E.startDTS,E.endDTS):a(o,m),O.length&&(m.totalduration=m.edge-O[0].start),m.driftStartTime=o.driftStartTime,m.driftStart=o.driftStart;var D=m.advancedDateTime;if(m.advanced&&D){var N=m.edge;m.driftStart||(m.driftStartTime=D,m.driftStart=N),m.driftEndTime=D,m.driftEnd=N}else m.driftEndTime=o.driftEndTime,m.driftEnd=o.driftEnd,m.advancedDateTime=o.advancedDateTime}function c(o,m,w){if(o&&m)for(var C=0,v=0,P=o.length;v<=P;v++){var R=o[v],E=m[v+C];R&&E&&R.index===E.index&&R.fragment.sn===E.fragment.sn?w(R,E):C--}}function t(o,m,w){for(var C=m.skippedSegments,v=Math.max(o.startSN,m.startSN)-m.startSN,P=(o.fragmentHint?1:0)+(C?m.endSN:Math.min(o.endSN,m.endSN))-m.startSN,R=m.startSN-o.startSN,E=m.fragmentHint?m.fragments.concat(m.fragmentHint):m.fragments,x=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments,g=v;g<=P;g++){var O=x[R+g],I=E[g];C&&!I&&g<C&&(I=m.fragments[g]=O),O&&I&&w(O,I)}}function a(o,m){var w=m.startSN+m.skippedSegments-o.startSN,C=o.fragments;if(w<0||w>=C.length)return;n(m,C[w].start)}function n(o,m){if(m){for(var w=o.fragments,C=o.skippedSegments;C<w.length;C++)w[C].start+=m;o.fragmentHint&&(o.fragmentHint.start+=m)}}function i(o,m){var w=1e3*o.levelTargetDuration,C=w/2,v=o.age,P=v>0&&v<w*3,R=m.loading.end-m.loading.start,E,x=o.availabilityDelay;if(o.updated===!1)if(P){var g=333*o.misses;E=Math.max(Math.min(C,R*2),g),o.availabilityDelay=(o.availabilityDelay||0)+E}else E=C;else P?(x=Math.min(x||w/2,v),o.availabilityDelay=x,E=x+w-v):E=w-R;return Math.round(E)}function f(o,m,w){if(!o||!o.details)return null;var C=o.details,v=C.fragments[m-C.startSN];return v||(v=C.fragmentHint,v&&v.sn===m?v:m<C.startSN&&w&&w.sn===m?w:null)}function l(o,m,w){if(!o||!o.details)return null;var C=o.details.partList;if(C)for(var v=C.length;v--;){var P=C[v];if(P.index===w&&P.fragment.sn===m)return P}return null}},"./src/controller/stream-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return C});var b=A("./src/polyfills/number.ts"),y=A("./src/controller/base-stream-controller.ts"),S=A("./src/is-supported.ts"),T=A("./src/events.ts"),h=A("./src/utils/buffer-helper.ts"),_=A("./src/controller/fragment-tracker.ts"),d=A("./src/types/loader.ts"),r=A("./src/loader/fragment.ts"),c=A("./src/demux/transmuxer-interface.ts"),t=A("./src/types/transmuxer.ts"),a=A("./src/controller/gap-controller.ts"),n=A("./src/errors.ts"),i=A("./src/utils/logger.ts");function f(v,P){for(var R=0;R<P.length;R++){var E=P[R];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}function l(v,P,R){return P&&f(v.prototype,P),R&&f(v,R),v}function o(v,P){v.prototype=Object.create(P.prototype),v.prototype.constructor=v,m(v,P)}function m(v,P){return m=Object.setPrototypeOf||function(E,x){return E.__proto__=x,E},m(v,P)}var w=100,C=function(v){o(P,v);function P(E,x){var g;return g=v.call(this,E,x,"[stream-controller]")||this,g.audioCodecSwap=!1,g.gapController=null,g.level=-1,g._forceStartLoad=!1,g.altAudio=!1,g.audioOnly=!1,g.fragPlaying=null,g.onvplaying=null,g.onvseeked=null,g.fragLastKbps=0,g.stalled=!1,g.couldBacktrack=!1,g.audioCodecSwitch=!1,g.videoBuffer=null,g._registerListeners(),g}var R=P.prototype;return R._registerListeners=function(){var x=this.hls;x.on(T.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.on(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.on(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),x.on(T.Events.LEVEL_LOADING,this.onLevelLoading,this),x.on(T.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.on(T.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),x.on(T.Events.ERROR,this.onError,this),x.on(T.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),x.on(T.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),x.on(T.Events.BUFFER_CREATED,this.onBufferCreated,this),x.on(T.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),x.on(T.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),x.on(T.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R._unregisterListeners=function(){var x=this.hls;x.off(T.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.off(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.off(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.off(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),x.off(T.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.off(T.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),x.off(T.Events.ERROR,this.onError,this),x.off(T.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),x.off(T.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),x.off(T.Events.BUFFER_CREATED,this.onBufferCreated,this),x.off(T.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),x.off(T.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),x.off(T.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},R.startLoad=function(x){if(this.levels){var g=this.lastCurrentTime,O=this.hls;if(this.stopLoad(),this.setInterval(w),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var I=O.startLevel;I===-1&&(O.config.testBandwidth?(I=0,this.bitrateTest=!0):I=O.nextAutoLevel),this.level=O.nextLoadLevel=I,this.loadedmetadata=!1}g>0&&x===-1&&(this.log("Override startPosition with lastCurrentTime @"+g.toFixed(3)),x=g),this.state=y.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=x,this.tick()}else this._forceStartLoad=!0,this.state=y.State.STOPPED},R.stopLoad=function(){this._forceStartLoad=!1,v.prototype.stopLoad.call(this)},R.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_LEVEL:{var x,g=this.levels,O=this.level,I=g==null||((x=g[O])===null||x===void 0)?void 0:x.details;if(I&&(!I.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(I))break;this.state=y.State.IDLE;break}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var D,N=self.performance.now(),V=this.retryDate;(!V||N>=V||(D=this.media)!==null&&D!==void 0&&D.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=y.State.IDLE)}break;default:break}this.onTickEnd()},R.onTickEnd=function(){v.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},R.doTickIdle=function(){var x,g,O=this.hls,I=this.levelLastLoaded,D=this.levels,N=this.media,V=O.config,F=O.nextLoadLevel;if(I===null||!N&&(this.startFragRequested||!V.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!D||!D[F])return;var W=D[F];this.level=O.nextLoadLevel=F;var K=W.details;if(!K||this.state===y.State.WAITING_LEVEL||K.live&&this.levelLastLoaded!==F){this.state=y.State.WAITING_LEVEL;return}var B=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:N,d.PlaylistLevelType.MAIN);if(B===null)return;var k=B.len,G=this.getMaxBufferLength(W.maxBitrate);if(k>=G)return;if(this._streamEnded(B,K)){var ne={};this.altAudio&&(ne.type="video"),this.hls.trigger(T.Events.BUFFER_EOS,ne),this.state=y.State.ENDED;return}var fe=B.end,de=this.getNextFragment(fe,K);if(this.couldBacktrack&&!this.fragPrevious&&de&&de.sn!=="initSegment"){var Ee=de.sn-K.startSN;Ee>1&&(de=K.fragments[Ee-1],this.fragmentTracker.removeFragment(de))}if(de&&this.fragmentTracker.getState(de)===_.FragmentState.OK&&this.nextLoadPosition>fe){var we=this.audioOnly&&!this.altAudio?r.ElementaryStreamTypes.AUDIO:r.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(N,we,d.PlaylistLevelType.MAIN),de=this.getNextFragment(this.nextLoadPosition,K)}if(!de)return;de.initSegment&&!de.initSegment.data&&!this.bitrateTest&&(de=de.initSegment),((x=de.decryptdata)===null||x===void 0?void 0:x.keyFormat)==="identity"&&!((g=de.decryptdata)!==null&&g!==void 0&&g.key)?this.loadKey(de,K):this.loadFragment(de,K,fe)},R.loadFragment=function(x,g,O){var I,D=this.fragmentTracker.getState(x);if(this.fragCurrent=x,D===_.FragmentState.BACKTRACKED){var N=this.fragmentTracker.getBacktrackData(x);if(N){this._handleFragmentLoadProgress(N),this._handleFragmentLoadComplete(N);return}else D=_.FragmentState.NOT_LOADED}D===_.FragmentState.NOT_LOADED||D===_.FragmentState.PARTIAL?x.sn==="initSegment"?this._loadInitSegment(x):this.bitrateTest?(x.bitrateTest=!0,this.log("Fragment "+x.sn+" of level "+x.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(x)):(this.startFragRequested=!0,v.prototype.loadFragment.call(this,x,g,O)):D===_.FragmentState.APPENDING?this.reduceMaxBufferLength(x.duration)&&this.fragmentTracker.removeFragment(x):((I=this.media)===null||I===void 0?void 0:I.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(x){var g=this.fragmentTracker.getAppendedFrag(x,d.PlaylistLevelType.MAIN);return g&&"fragment"in g?g.fragment:g},R.getBufferedFrag=function(x){return this.fragmentTracker.getBufferedFrag(x,d.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(x){return x?this.getBufferedFrag(x.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var x=this.levels,g=this.media;if(g!=null&&g.readyState){var O,I=this.getAppendedFrag(g.currentTime);if(I&&I.start>1&&this.flushMainBuffer(0,I.start-1),!g.paused&&x){var D=this.hls.nextLoadLevel,N=x[D],V=this.fragLastKbps;V&&this.fragCurrent?O=this.fragCurrent.duration*N.maxBitrate/(1e3*V)+1:O=0}else O=0;var F=this.getBufferedFrag(g.currentTime+O);if(F){var W=this.followingBufferedFrag(F);if(W){this.abortCurrentFrag();var K=W.maxStartPTS?W.maxStartPTS:W.start,B=W.duration,k=Math.max(F.end,K+Math.min(Math.max(B-this.config.maxFragLookUpTolerance,B*.5),B*.75));this.flushMainBuffer(k,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var x=this.fragCurrent;this.fragCurrent=null,x!=null&&x.loader&&x.loader.abort(),this.state===y.State.KEY_LOADING&&(this.state=y.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(x,g){v.prototype.flushMainBuffer.call(this,x,g,this.altAudio?"video":null)},R.onMediaAttached=function(x,g){v.prototype.onMediaAttached.call(this,x,g);var O=g.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),O.addEventListener("playing",this.onvplaying),O.addEventListener("seeked",this.onvseeked),this.gapController=new a.default(this.config,O,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var x=this.media;x&&(x.removeEventListener("playing",this.onvplaying),x.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),v.prototype.onMediaDetaching.call(this)},R.onMediaPlaying=function(){this.tick()},R.onMediaSeeked=function(){var x=this.media,g=x?x.currentTime:null;Object(b.isFiniteNumber)(g)&&this.log("Media seeked to "+g.toFixed(3)),this.tick()},R.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(T.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(x,g){var O=!1,I=!1,D;g.levels.forEach(function(N){D=N.audioCodec,D&&(D.indexOf("mp4a.40.2")!==-1&&(O=!0),D.indexOf("mp4a.40.5")!==-1&&(I=!0))}),this.audioCodecSwitch=O&&I&&!Object(S.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=g.levels,this.startFragRequested=!1},R.onLevelLoading=function(x,g){var O=this.levels;if(!O||this.state!==y.State.IDLE)return;var I=O[g.level];(!I.details||I.details.live&&this.levelLastLoaded!==g.level||this.waitForCdnTuneIn(I.details))&&(this.state=y.State.WAITING_LEVEL)},R.onLevelLoaded=function(x,g){var O,I=this.levels,D=g.level,N=g.details,V=N.totalduration;if(!I){this.warn("Levels were reset while loading level "+D);return}this.log("Level "+D+" loaded ["+N.startSN+","+N.endSN+"], cc ["+N.startCC+", "+N.endCC+"] duration:"+V);var F=this.fragCurrent;F&&(this.state===y.State.FRAG_LOADING||this.state===y.State.FRAG_LOADING_WAITING_RETRY)&&(F.level!==g.level&&F.loader&&(this.state=y.State.IDLE,F.loader.abort()));var W=I[D],K=0;if(N.live||(O=W.details)!==null&&O!==void 0&&O.live){if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed)return;K=this.alignPlaylists(N,W.details)}if(W.details=N,this.levelLastLoaded=D,this.hls.trigger(T.Events.LEVEL_UPDATED,{details:N,level:D}),this.state===y.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(N))return;this.state=y.State.IDLE}this.startFragRequested?N.live&&this.synchronizeToLiveEdge(N):this.setStartPosition(N,K),this.tick()},R._handleFragmentLoadProgress=function(x){var g,O=x.frag,I=x.part,D=x.payload,N=this.levels;if(!N){this.warn("Levels were reset while fragment load was in progress. Fragment "+O.sn+" of level "+O.level+" will not be buffered");return}var V=N[O.level],F=V.details;if(!F){this.warn("Dropping fragment "+O.sn+" of level "+O.level+" after level details were reset");return}var W=V.videoCodec,K=F.PTSKnown||!F.live,B=(g=O.initSegment)===null||g===void 0?void 0:g.data,k=this._getAudioCodec(V),G=this.transmuxer=this.transmuxer||new c.default(this.hls,d.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ne=I?I.index:-1,fe=ne!==-1,de=new t.ChunkMetadata(O.level,O.sn,O.stats.chunkCount,D.byteLength,ne,fe),Ee=this.initPTS[O.cc];G.push(D,B,k,W,O,I,F.totalduration,K,de,Ee)},R.onAudioTrackSwitching=function(x,g){var O=this.altAudio,I=!!g.url,D=g.id;if(!I){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var N=this.fragCurrent;N!=null&&N.loader&&(this.log("Switching to main audio track, cancel main fragment load"),N.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var V=this.hls;O&&V.trigger(T.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),V.trigger(T.Events.AUDIO_TRACK_SWITCHED,{id:D})}},R.onAudioTrackSwitched=function(x,g){var O=g.id,I=!!this.hls.audioTracks[O].url;if(I){var D=this.videoBuffer;D&&this.mediaBuffer!==D&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=D)}this.altAudio=I,this.tick()},R.onBufferCreated=function(x,g){var O=g.tracks,I,D,N=!1;for(var V in O){var F=O[V];if(F.id==="main"){if(D=V,I=F,V==="video"){var W=O[V];W&&(this.videoBuffer=W.buffer)}}else N=!0}N&&I?(this.log("Alternate track found, use "+D+".buffered to schedule main fragment loading"),this.mediaBuffer=I.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(x,g){var O=g.frag,I=g.part;if(O&&O.type!==d.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(O)){this.warn("Fragment "+O.sn+(I?" p: "+I.index:"")+" of level "+O.level+" finished buffering, but was aborted. state: "+this.state),this.state===y.State.PARSED&&(this.state=y.State.IDLE);return}var D=I?I.stats:O.stats;this.fragLastKbps=Math.round(8*D.total/(D.buffering.end-D.loading.first)),O.sn!=="initSegment"&&(this.fragPrevious=O),this.fragBufferedComplete(O,I)},R.onError=function(x,g){switch(g.details){case n.ErrorDetails.FRAG_LOAD_ERROR:case n.ErrorDetails.FRAG_LOAD_TIMEOUT:case n.ErrorDetails.KEY_LOAD_ERROR:case n.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(d.PlaylistLevelType.MAIN,g);break;case n.ErrorDetails.LEVEL_LOAD_ERROR:case n.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==y.State.ERROR&&(g.fatal?(this.warn(""+g.details),this.state=y.State.ERROR):!g.levelRetry&&this.state===y.State.WAITING_LEVEL&&(this.state=y.State.IDLE));break;case n.ErrorDetails.BUFFER_FULL_ERROR:if(g.parent==="main"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var O=!0,I=this.getFwdBufferInfo(this.media,d.PlaylistLevelType.MAIN);I&&I.len>.5&&(O=!this.reduceMaxBufferLength(I.len)),O&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var x=this.media,g=this.gapController;if(!x||!g||!x.readyState)return;var O=h.BufferHelper.getBuffered(x);!this.loadedmetadata&&O.length?(this.loadedmetadata=!0,this.seekToStartPos()):g.poll(this.lastCurrentTime),this.lastCurrentTime=x.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=y.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(x,g){var O=g.type;if(O!==r.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var I=(O===r.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(I,O,d.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(x,g){this.levels=g.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var x=this.media,g=x.currentTime,O=this.startPosition;if(O>=0&&g<O){if(x.seeking){i.logger.log("could not seek to "+O+", already seeking at "+g);return}var I=h.BufferHelper.getBuffered(x),D=I.length?I.start(0):0,N=D-O;N>0&&(N<this.config.maxBufferHole||N<this.config.maxFragLookUpTolerance)&&(i.logger.log("adjusting start position by "+N+" to match buffer start"),O+=N,this.startPosition=O),this.log("seek to target start position "+O+" from current time "+g),x.currentTime=O}},R._getAudioCodec=function(x){var g=this.config.defaultAudioCodec||x.audioCodec;return this.audioCodecSwap&&g&&(this.log("Swapping audio codec"),g.indexOf("mp4a.40.5")!==-1?g="mp4a.40.2":g="mp4a.40.5"),g},R._loadBitrateTestFrag=function(x){var g=this;this._doFragLoad(x).then(function(O){var I=g.hls;if(!O||I.nextLoadLevel||g.fragContextChanged(x))return;g.fragLoadError=0,g.state=y.State.IDLE,g.startFragRequested=!1,g.bitrateTest=!1;var D=x.stats;D.parsing.start=D.parsing.end=D.buffering.start=D.buffering.end=self.performance.now(),I.trigger(T.Events.FRAG_LOADED,O)})},R._handleTransmuxComplete=function(x){var g,O="main",I=this.hls,D=x.remuxResult,N=x.chunkMeta,V=this.getCurrentContext(N);if(!V){this.warn("The loading context changed while buffering fragment "+N.sn+" of level "+N.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(N.level);return}var F=V.frag,W=V.part,K=V.level,B=D.video,k=D.text,G=D.id3,ne=D.initSegment,fe=this.altAudio?void 0:D.audio;if(this.fragContextChanged(F))return;if(this.state=y.State.PARSING,ne){ne.tracks&&(this._bufferInitSegment(K,ne.tracks,F,N),I.trigger(T.Events.FRAG_PARSING_INIT_SEGMENT,{frag:F,id:O,tracks:ne.tracks}));var de=ne.initPTS,Ee=ne.timescale;Object(b.isFiniteNumber)(de)&&(this.initPTS[F.cc]=de,I.trigger(T.Events.INIT_PTS_FOUND,{frag:F,id:O,initPTS:de,timescale:Ee}))}if(B&&D.independent!==!1){if(K.details){var we=B.startPTS,ce=B.endPTS,be=B.startDTS,ve=B.endDTS;if(W)W.elementaryStreams[B.type]={startPTS:we,endPTS:ce,startDTS:be,endDTS:ve};else if(B.firstKeyFrame&&B.independent&&(this.couldBacktrack=!0),B.dropped&&B.independent){var ue=this.getLoadPosition()+this.config.maxBufferHole;if(ue<we){this.backtrack(F);return}F.setElementaryStreamInfo(B.type,F.start,ce,F.start,ve,!0)}F.setElementaryStreamInfo(B.type,we,ce,be,ve),this.bufferFragmentData(B,F,W,N)}}else if(D.independent===!1){this.backtrack(F);return}if(fe){var se=fe.startPTS,q=fe.endPTS,me=fe.startDTS,re=fe.endDTS;W&&(W.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:se,endPTS:q,startDTS:me,endDTS:re}),F.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,se,q,me,re),this.bufferFragmentData(fe,F,W,N)}if(G!=null&&(g=G.samples)!==null&&g!==void 0&&g.length){var ie={frag:F,id:O,samples:G.samples};I.trigger(T.Events.FRAG_PARSING_METADATA,ie)}if(k){var Oe={frag:F,id:O,samples:k.samples};I.trigger(T.Events.FRAG_PARSING_USERDATA,Oe)}},R._bufferInitSegment=function(x,g,O,I){var D=this;if(this.state!==y.State.PARSING)return;this.audioOnly=!!g.audio&&!g.video,this.altAudio&&!this.audioOnly&&delete g.audio;var N=g.audio,V=g.video,F=g.audiovideo;if(N){var W=x.audioCodec,K=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(W&&(W.indexOf("mp4a.40.5")!==-1?W="mp4a.40.2":W="mp4a.40.5"),N.metadata.channelCount!==1&&K.indexOf("firefox")===-1&&(W="mp4a.40.5")),K.indexOf("android")!==-1&&N.container!=="audio/mpeg"&&(W="mp4a.40.2",this.log("Android: force audio codec to "+W)),x.audioCodec&&x.audioCodec!==W&&this.log('Swapping manifest audio codec "'+x.audioCodec+'" for "'+W+'"'),N.levelCodec=W,N.id="main",this.log("Init audio buffer, container:"+N.container+", codecs[selected/level/parsed]=["+(W||"")+"/"+(x.audioCodec||"")+"/"+N.codec+"]")}V&&(V.levelCodec=x.videoCodec,V.id="main",this.log("Init video buffer, container:"+V.container+", codecs[level/parsed]=["+(x.videoCodec||"")+"/"+V.codec+"]")),F&&this.log("Init audiovideo buffer, container:"+F.container+", codecs[level/parsed]=["+(x.attrs.CODECS||"")+"/"+F.codec+"]"),this.hls.trigger(T.Events.BUFFER_CODECS,g),Object.keys(g).forEach(function(B){var k=g[B],G=k.initSegment;G!=null&&G.byteLength&&D.hls.trigger(T.Events.BUFFER_APPENDING,{type:B,data:G,frag:O,part:null,chunkMeta:I,parent:O.type})}),this.tick()},R.backtrack=function(x){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(x);var g=this.fragmentTracker.backtrack(x);this.fragPrevious=null,this.nextLoadPosition=x.start,g?this.resetFragmentLoading(x):this.state=y.State.BACKTRACKING},R.checkFragmentChanged=function(){var x=this.media,g=null;if(x&&x.readyState>1&&x.seeking===!1){var O=x.currentTime;if(h.BufferHelper.isBuffered(x,O)?g=this.getAppendedFrag(O):h.BufferHelper.isBuffered(x,O+.1)&&(g=this.getAppendedFrag(O+.1)),g){var I=this.fragPlaying,D=g.level;(!I||g.sn!==I.sn||I.level!==D||g.urlId!==I.urlId)&&(this.hls.trigger(T.Events.FRAG_CHANGED,{frag:g}),(!I||I.level!==D)&&this.hls.trigger(T.Events.LEVEL_SWITCHED,{level:D}),this.fragPlaying=g)}}},l(P,[{key:"nextLevel",get:function(){var x=this.nextBufferedFrag;return x?x.level:-1}},{key:"currentLevel",get:function(){var x=this.media;if(x){var g=this.getAppendedFrag(x.currentTime);if(g)return g.level}return-1}},{key:"nextBufferedFrag",get:function(){var x=this.media;if(x){var g=this.getAppendedFrag(x.currentTime);return this.followingBufferedFrag(g)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(y.default)},"./src/controller/subtitle-stream-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"SubtitleStreamController",function(){return o});var b=A("./src/events.ts"),y=A("./src/utils/logger.ts"),S=A("./src/utils/buffer-helper.ts"),T=A("./src/controller/fragment-finders.ts"),h=A("./src/utils/discontinuities.ts"),_=A("./src/controller/level-helper.ts"),d=A("./src/controller/fragment-tracker.ts"),r=A("./src/controller/base-stream-controller.ts"),c=A("./src/types/loader.ts"),t=A("./src/types/level.ts");function a(m,w){for(var C=0;C<w.length;C++){var v=w[C];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}function n(m,w,C){return w&&a(m.prototype,w),C&&a(m,C),m}function i(m,w){m.prototype=Object.create(w.prototype),m.prototype.constructor=m,f(m,w)}function f(m,w){return f=Object.setPrototypeOf||function(v,P){return v.__proto__=P,v},f(m,w)}var l=500,o=function(m){i(w,m);function w(v,P){var R;return R=m.call(this,v,P,"[subtitle-stream-controller]")||this,R.levels=[],R.currentTrackId=-1,R.tracksBuffered=[],R.mainDetails=null,R._registerListeners(),R}var C=w.prototype;return C.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},C._registerListeners=function(){var P=this.hls;P.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.on(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.on(b.Events.ERROR,this.onError,this),P.on(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.on(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.on(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},C._unregisterListeners=function(){var P=this.hls;P.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.off(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.off(b.Events.ERROR,this.onError,this),P.off(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.off(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.off(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},C.startLoad=function(){this.stopLoad(),this.state=r.State.IDLE,this.setInterval(l),this.tick()},C.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},C.onLevelLoaded=function(P,R){this.mainDetails=R.details},C.onSubtitleFragProcessed=function(P,R){var E=R.frag,x=R.success;if(this.fragPrevious=E,this.state=r.State.IDLE,!x)return;var g=this.tracksBuffered[this.currentTrackId];if(!g)return;for(var O,I=E.start,D=0;D<g.length;D++)if(I>=g[D].start&&I<=g[D].end){O=g[D];break}var N=E.start+E.duration;O?O.end=N:(O={start:I,end:N},g.push(O)),this.fragmentTracker.fragBuffered(E)},C.onBufferFlushing=function(P,R){var E=R.startOffset,x=R.endOffset;if(E===0&&x!==Number.POSITIVE_INFINITY){var g=this.currentTrackId,O=this.levels;if(!O.length||!O[g]||!O[g].details)return;var I=O[g].details,D=I.targetduration,N=x-D;if(N<=0)return;R.endOffsetSubtitles=Math.max(0,N),this.tracksBuffered.forEach(function(V){for(var F=0;F<V.length;){if(V[F].end<=N){V.shift();continue}else if(V[F].start<N)V[F].start=N;else break;F++}}),this.fragmentTracker.removeFragmentsInRange(E,N,c.PlaylistLevelType.SUBTITLE)}},C.onError=function(P,R){var E,x=R.frag;if(!x||x.type!==c.PlaylistLevelType.SUBTITLE)return;(E=this.fragCurrent)!==null&&E!==void 0&&E.loader&&this.fragCurrent.loader.abort(),this.state=r.State.IDLE},C.onSubtitleTracksUpdated=function(P,R){var E=this,x=R.subtitleTracks;this.tracksBuffered=[],this.levels=x.map(function(g){return new t.Level(g)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(g){E.tracksBuffered[g.id]=[]}),this.mediaBuffer=null},C.onSubtitleTrackSwitch=function(P,R){if(this.currentTrackId=R.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var E=this.levels[this.currentTrackId];E!=null&&E.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,E&&this.setInterval(l)},C.onSubtitleTrackLoaded=function(P,R){var E,x=R.details,g=R.id,O=this.currentTrackId,I=this.levels;if(!I.length)return;var D=I[O];if(g>=I.length||g!==O||!D)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,x.live||(E=D.details)!==null&&E!==void 0&&E.live){var N=this.mainDetails;if(x.deltaUpdateFailed||!N)return;var V=N.fragments[0];if(!D.details)x.hasProgramDateTime&&N.hasProgramDateTime?Object(h.alignMediaPlaylistByPDT)(x,N):V&&Object(_.addSliding)(x,V.start);else{var F=this.alignPlaylists(x,D.details);F===0&&V&&Object(_.addSliding)(x,V.start)}}if(D.details=x,this.levelLastLoaded=g,this.tick(),x.live&&!this.fragCurrent&&this.media&&this.state===r.State.IDLE){var W=Object(T.findFragmentByPTS)(null,x.fragments,this.media.currentTime,0);W||(this.warn("Subtitle playlist not aligned with playback"),D.details=void 0)}},C._handleFragmentLoadComplete=function(P){var R=P.frag,E=P.payload,x=R.decryptdata,g=this.hls;if(this.fragContextChanged(R))return;if(E&&E.byteLength>0&&x&&x.key&&x.iv&&x.method==="AES-128"){var O=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(E),x.key.buffer,x.iv.buffer).then(function(I){var D=performance.now();g.trigger(b.Events.FRAG_DECRYPTED,{frag:R,payload:I,stats:{tstart:O,tdecrypt:D}})})}},C.doTick=function(){if(!this.media){this.state=r.State.IDLE;return}if(this.state===r.State.IDLE){var P,R=this.currentTrackId,E=this.levels;if(!E.length||!E[R]||!E[R].details)return;var x=E[R].details,g=x.targetduration,O=this.config,I=this.media,D=S.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,I.currentTime-g,O.maxBufferHole),N=D.end,V=D.len,F=this.getMaxBufferLength()+g;if(V>F)return;console.assert(x,"Subtitle track details are defined on idle subtitle stream controller tick");var W=x.fragments,K=W.length,B=x.edge,k,G=this.fragPrevious;if(N<B){var ne=O.maxFragLookUpTolerance;G&&x.hasProgramDateTime&&(k=Object(T.findFragmentByPDT)(W,G.endProgramDateTime,ne)),k||(k=Object(T.findFragmentByPTS)(G,W,N,ne),!k&&G&&G.start<W[0].start&&(k=W[0]))}else k=W[K-1];(P=k)!==null&&P!==void 0&&P.encrypted?(y.logger.log("Loading key for "+k.sn),this.state=r.State.KEY_LOADING,this.hls.trigger(b.Events.KEY_LOADING,{frag:k})):k&&this.fragmentTracker.getState(k)===d.FragmentState.NOT_LOADED&&this.loadFragment(k,x,N)}},C.loadFragment=function(P,R,E){this.fragCurrent=P,m.prototype.loadFragment.call(this,P,R,E)},n(w,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),w}(r.default)},"./src/controller/subtitle-track-controller.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/events.ts"),y=A("./src/utils/texttrack-utils.ts"),S=A("./src/controller/base-playlist-controller.ts"),T=A("./src/types/loader.ts");function h(a,n){for(var i=0;i<n.length;i++){var f=n[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}function _(a,n,i){return n&&h(a.prototype,n),i&&h(a,i),a}function d(a,n){a.prototype=Object.create(n.prototype),a.prototype.constructor=a,r(a,n)}function r(a,n){return r=Object.setPrototypeOf||function(f,l){return f.__proto__=l,f},r(a,n)}var c=function(a){d(n,a);function n(f){var l;return l=a.call(this,f,"[subtitle-track-controller]")||this,l.media=null,l.tracks=[],l.groupId=null,l.tracksInGroup=[],l.trackId=-1,l.selectDefaultTrack=!0,l.queuedDefaultTrack=-1,l.trackChangeListener=function(){return l.onTextTracksChanged()},l.asyncPollTrackChange=function(){return l.pollTrackChange(0)},l.useTextTrackPolling=!1,l.subtitlePollingInterval=-1,l.subtitleDisplay=!0,l.registerListeners(),l}var i=n.prototype;return i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,a.prototype.destroy.call(this)},i.registerListeners=function(){var l=this.hls;l.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),l.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),l.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),l.on(b.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var l=this.hls;l.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),l.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),l.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),l.off(b.Events.ERROR,this.onError,this)},i.onMediaAttached=function(l,o){if(this.media=o.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},i.pollTrackChange=function(l){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,l)},i.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var l=t(this.media.textTracks);l.forEach(function(o){Object(y.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},i.onManifestParsed=function(l,o){this.tracks=o.subtitleTracks},i.onSubtitleTrackLoaded=function(l,o){var m=o.id,w=o.details,C=this.trackId,v=this.tracksInGroup[C];if(!v){this.warn("Invalid subtitle track id "+m);return}var P=v.details;v.details=o.details,this.log("subtitle track "+m+" loaded ["+w.startSN+"-"+w.endSN+"]"),m===this.trackId&&(this.retryCount=0,this.playlistLoaded(m,o,P))},i.onLevelLoading=function(l,o){this.switchLevel(o.level)},i.onLevelSwitching=function(l,o){this.switchLevel(o.level)},i.switchLevel=function(l){var o=this.hls.levels[l];if(!(o!=null&&o.textGroupIds))return;var m=o.textGroupIds[o.urlId];if(this.groupId!==m){var w=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,C=this.tracks.filter(function(R){return!m||R.groupId===m});this.tracksInGroup=C;var v=this.findTrackId(w==null?void 0:w.name)||this.findTrackId();this.groupId=m;var P={subtitleTracks:C};this.log("Updating subtitle tracks, "+C.length+' track(s) found in "'+m+'" group-id'),this.hls.trigger(b.Events.SUBTITLE_TRACKS_UPDATED,P),v!==-1&&this.setSubtitleTrack(v,w)}},i.findTrackId=function(l){for(var o=this.tracksInGroup,m=0;m<o.length;m++){var w=o[m];if((!this.selectDefaultTrack||w.default)&&(!l||l===w.name))return w.id}return-1},i.onError=function(l,o){if(a.prototype.onError.call(this,l,o),o.fatal||!o.context)return;o.context.type===T.PlaylistContextType.SUBTITLE_TRACK&&o.context.id===this.trackId&&o.context.groupId===this.groupId&&this.retryLoadingOrFail(o)},i.loadPlaylist=function(l){var o=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(o)){var m=o.id,w=o.groupId,C=o.url;if(l)try{C=l.addDirectives(C)}catch(v){this.warn("Could not construct new URL with HLS Delivery Directives: "+v)}this.log("Loading subtitle playlist for id "+m),this.hls.trigger(b.Events.SUBTITLE_TRACK_LOADING,{url:C,id:m,groupId:w,deliveryDirectives:l||null})}},i.toggleTrackModes=function(l){var o=this,m=this.media,w=this.subtitleDisplay,C=this.trackId;if(!m)return;var v=t(m.textTracks),P=v.filter(function(x){return x.groupId===o.groupId});if(l===-1)[].slice.call(v).forEach(function(x){x.mode="disabled"});else{var R=P[C];R&&(R.mode="disabled")}var E=P[l];E&&(E.mode=w?"showing":"hidden")},i.setSubtitleTrack=function(l,o){var m,w=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=l;return}if(this.trackId!==l&&this.toggleTrackModes(l),this.trackId===l&&(l===-1||(m=w[l])!==null&&m!==void 0&&m.details)||l<-1||l>=w.length)return;this.clearTimer();var C=w[l];if(this.log("Switching to subtitle track "+l),this.trackId=l,C){var v=C.id,P=C.groupId,R=P===void 0?"":P,E=C.name,x=C.type,g=C.url;this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:v,groupId:R,name:E,type:x,url:g});var O=this.switchParams(C.url,o==null?void 0:o.details);this.loadPlaylist(O)}else this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:l})},i.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var l=-1,o=t(this.media.textTracks),m=0;m<o.length;m++)if(o[m].mode==="hidden")l=m;else if(o[m].mode==="showing"){l=m;break}this.subtitleTrack!==l&&(this.subtitleTrack=l)},_(n,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(l){this.selectDefaultTrack=!1;var o=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(l,o)}}]),n}(S.default);function t(a){for(var n=[],i=0;i<a.length;i++){var f=a[i];f.kind==="subtitles"&&f.label&&n.push(a[i])}return n}p.default=c},"./src/controller/timeline-controller.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"TimelineController",function(){return t});var b=A("./src/polyfills/number.ts"),y=A("./src/events.ts"),S=A("./src/utils/cea-608-parser.ts"),T=A("./src/utils/output-filter.ts"),h=A("./src/utils/webvtt-parser.ts"),_=A("./src/utils/texttrack-utils.ts"),d=A("./src/utils/imsc1-ttml-parser.ts"),r=A("./src/types/loader.ts"),c=A("./src/utils/logger.ts"),t=function(){function f(o){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=i(),this.captionsProperties=void 0,this.hls=o,this.config=o.config,this.Cues=o.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var m=new T.default(this,"textTrack1"),w=new T.default(this,"textTrack2"),C=new T.default(this,"textTrack3"),v=new T.default(this,"textTrack4");this.cea608Parser1=new S.default(1,m,w),this.cea608Parser2=new S.default(3,C,v)}o.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),o.on(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),o.on(y.Events.FRAG_LOADING,this.onFragLoading,this),o.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),o.on(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),o.on(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),o.on(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),o.on(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),o.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var l=f.prototype;return l.destroy=function(){var m=this.hls;m.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),m.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),m.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),m.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),m.off(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),m.off(y.Events.FRAG_LOADING,this.onFragLoading,this),m.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),m.off(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),m.off(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),m.off(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),m.off(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),m.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},l.addCues=function(m,w,C,v,P){for(var R=!1,E=P.length;E--;){var x=P[E],g=n(x[0],x[1],w,C);if(g>=0&&(x[0]=Math.min(x[0],w),x[1]=Math.max(x[1],C),R=!0,g/(C-w)>.5))return}if(R||P.push([w,C]),this.config.renderTextTracksNatively){var O=this.captionsTracks[m];this.Cues.newCue(O,w,C,v)}else{var I=this.Cues.newCue(null,w,C,v);this.hls.trigger(y.Events.CUES_PARSED,{type:"captions",cues:I,track:m})}},l.onInitPtsFound=function(m,w){var C=this,v=w.frag,P=w.id,R=w.initPTS,E=w.timescale,x=this.unparsedVttFrags;P==="main"&&(this.initPTS[v.cc]=R,this.timescale[v.cc]=E),x.length&&(this.unparsedVttFrags=[],x.forEach(function(g){C.onFragLoaded(y.Events.FRAG_LOADED,g)}))},l.getExistingTrack=function(m){var w=this.media;if(w)for(var C=0;C<w.textTracks.length;C++){var v=w.textTracks[C];if(v[m])return v}return null},l.createCaptionsTrack=function(m){this.config.renderTextTracksNatively?this.createNativeTrack(m):this.createNonNativeTrack(m)},l.createNativeTrack=function(m){if(this.captionsTracks[m])return;var w=this.captionsProperties,C=this.captionsTracks,v=this.media,P=w[m],R=P.label,E=P.languageCode,x=this.getExistingTrack(m);if(x)C[m]=x,Object(_.clearCurrentCues)(C[m]),Object(_.sendAddTrackEvent)(C[m],v);else{var g=this.createTextTrack("captions",R,E);g&&(g[m]=!0,C[m]=g)}},l.createNonNativeTrack=function(m){if(this.nonNativeCaptionsTracks[m])return;var w=this.captionsProperties[m];if(!w)return;var C=w.label,v={_id:m,label:C,kind:"captions",default:w.media?!!w.media.default:!1,closedCaptions:w.media};this.nonNativeCaptionsTracks[m]=v,this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[v]})},l.createTextTrack=function(m,w,C){var v=this.media;return v?v.addTextTrack(m,w,C):void 0},l.onMediaAttaching=function(m,w){this.media=w.media,this._cleanTracks()},l.onMediaDetaching=function(){var m=this.captionsTracks;Object.keys(m).forEach(function(w){Object(_.clearCurrentCues)(m[w]),delete m[w]}),this.nonNativeCaptionsTracks={}},l.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=i(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},l._cleanTracks=function(){var m=this.media;if(!m)return;var w=m.textTracks;if(w)for(var C=0;C<w.length;C++)Object(_.clearCurrentCues)(w[C])},l.onSubtitleTracksUpdated=function(m,w){var C=this;this.textTracks=[];var v=w.subtitleTracks||[],P=v.some(function(g){return g.textCodec===d.IMSC1_CODEC});if(this.config.enableWebVTT||P&&this.config.enableIMSC1){var R=this.tracks&&v&&this.tracks.length===v.length;if(this.tracks=v||[],this.config.renderTextTracksNatively){var E=this.media?this.media.textTracks:[];this.tracks.forEach(function(g,O){var I;if(O<E.length){for(var D=null,N=0;N<E.length;N++)if(a(E[N],g)){D=E[N];break}D&&(I=D)}I?Object(_.clearCurrentCues)(I):(I=C.createTextTrack("subtitles",g.name,g.lang),I&&(I.mode="disabled")),I&&(I.groupId=g.groupId,C.textTracks.push(I))})}else if(!R&&this.tracks&&this.tracks.length){var x=this.tracks.map(function(g){return{label:g.name,kind:g.type.toLowerCase(),default:g.default,subtitleTrack:g}});this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:x})}}},l.onManifestLoaded=function(m,w){var C=this;this.config.enableCEA708Captions&&w.captions&&w.captions.forEach(function(v){var P=/(?:CC|SERVICE)([1-4])/.exec(v.instreamId);if(!P)return;var R="textTrack"+P[1],E=C.captionsProperties[R];if(!E)return;E.label=v.name,v.lang&&(E.languageCode=v.lang),E.media=v})},l.onFragLoading=function(m,w){var C=this.cea608Parser1,v=this.cea608Parser2,P=this.lastSn,R=this.lastPartIndex;if(!this.enabled||!(C&&v))return;if(w.frag.type===r.PlaylistLevelType.MAIN){var E,x,g=w.frag.sn,O=(E=w==null||((x=w.part)===null||x===void 0)?void 0:x.index)!=null?E:-1;g===P+1||g===P&&O===R+1||(C.reset(),v.reset()),this.lastSn=g,this.lastPartIndex=O}},l.onFragLoaded=function(m,w){var C=w.frag,v=w.payload,P=this.initPTS,R=this.unparsedVttFrags;if(C.type===r.PlaylistLevelType.SUBTITLE)if(v.byteLength){if(!Object(b.isFiniteNumber)(P[C.cc])){R.push(w),P.length&&this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:C,error:new Error("Missing initial subtitle PTS")});return}var E=C.decryptdata;if(E==null||E.key==null||E.method!=="AES-128"){var x=this.tracks[C.level],g=this.vttCCs;g[C.cc]||(g[C.cc]={start:C.start,prevCC:this.prevCC,new:!0},this.prevCC=C.cc),x&&x.textCodec===d.IMSC1_CODEC?this._parseIMSC1(C,v):this._parseVTTs(C,v,g)}}else this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:C,error:new Error("Empty subtitle payload")})},l._parseIMSC1=function(m,w){var C=this,v=this.hls;Object(d.parseIMSC1)(w,this.initPTS[m.cc],this.timescale[m.cc],function(P){C._appendCues(P,m.level),v.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:m})},function(P){c.logger.log("Failed to parse IMSC1: "+P),v.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:m,error:P})})},l._parseVTTs=function(m,w,C){var v=this,P=this.hls;Object(h.parseWebVTT)(w,this.initPTS[m.cc],this.timescale[m.cc],C,m.cc,m.start,function(R){v._appendCues(R,m.level),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:m})},function(R){v._fallbackToIMSC1(m,w),c.logger.log("Failed to parse VTT cue: "+R),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:m,error:R})})},l._fallbackToIMSC1=function(m,w){var C=this,v=this.tracks[m.level];v.textCodec||Object(d.parseIMSC1)(w,this.initPTS[m.cc],this.timescale[m.cc],function(){v.textCodec=d.IMSC1_CODEC,C._parseIMSC1(m,w)},function(){v.textCodec="wvtt"})},l._appendCues=function(m,w){var C=this.hls;if(this.config.renderTextTracksNatively){var v=this.textTracks[w];if(v.mode==="disabled")return;m.forEach(function(E){return Object(_.addCueToTrack)(v,E)})}else{var P=this.tracks[w],R=P.default?"default":"subtitles"+w;C.trigger(y.Events.CUES_PARSED,{type:"subtitles",cues:m,track:R})}},l.onFragDecrypted=function(m,w){var C=w.frag;if(C.type===r.PlaylistLevelType.SUBTITLE){if(!Object(b.isFiniteNumber)(this.initPTS[C.cc])){this.unparsedVttFrags.push(w);return}this.onFragLoaded(y.Events.FRAG_LOADED,w)}},l.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},l.onFragParsingUserdata=function(m,w){var C=this.cea608Parser1,v=this.cea608Parser2;if(!this.enabled||!(C&&v))return;for(var P=0;P<w.samples.length;P++){var R=w.samples[P].bytes;if(R){var E=this.extractCea608Data(R);C.addData(w.samples[P].pts,E[0]),v.addData(w.samples[P].pts,E[1])}}},l.onBufferFlushing=function(m,w){var C=w.startOffset,v=w.endOffset,P=w.endOffsetSubtitles,R=w.type,E=this.media;if(!E||E.currentTime<v)return;if(!R||R==="video"){var x=this.captionsTracks;Object.keys(x).forEach(function(O){return Object(_.removeCuesInRange)(x[O],C,v)})}if(this.config.renderTextTracksNatively&&(C===0&&P!==void 0)){var g=this.textTracks;Object.keys(g).forEach(function(O){return Object(_.removeCuesInRange)(g[O],C,P)})}},l.extractCea608Data=function(m){for(var w=m[0]&31,C=2,v=[[],[]],P=0;P<w;P++){var R=m[C++],E=127&m[C++],x=127&m[C++],g=(4&R)!==0,O=3&R;if(E===0&&x===0)continue;g&&((O===0||O===1)&&(v[O].push(E),v[O].push(x)))}return v},f}();function a(f,l){return f&&f.label===l.name&&!(f.textTrack1||f.textTrack2)}function n(f,l,o,m){return Math.min(l,m)-Math.max(f,o)}function i(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return b});var b=function(){function y(T,h){this.subtle=void 0,this.aesIV=void 0,this.subtle=T,this.aesIV=h}var S=y.prototype;return S.decrypt=function(h,_){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},_,h)},y}()},"./src/crypt/aes-decryptor.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"removePadding",function(){return y}),A.d(p,"default",function(){return S});var b=A("./src/utils/typed-array.ts");function y(T){var h=T.byteLength,_=h&&new DataView(T.buffer).getUint8(h-1);return _?Object(b.sliceUint8)(T,0,h-_):T}var S=function(){function T(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var h=T.prototype;return h.uint8ArrayToUint32Array_=function(d){for(var r=new DataView(d),c=new Uint32Array(4),t=0;t<4;t++)c[t]=r.getUint32(t*4);return c},h.initTable=function(){var d=this.sBox,r=this.invSBox,c=this.subMix,t=c[0],a=c[1],n=c[2],i=c[3],f=this.invSubMix,l=f[0],o=f[1],m=f[2],w=f[3],C=new Uint32Array(256),v=0,P=0,R=0;for(R=0;R<256;R++)R<128?C[R]=R<<1:C[R]=R<<1^283;for(R=0;R<256;R++){var E=P^P<<1^P<<2^P<<3^P<<4;E=E>>>8^E&255^99,d[v]=E,r[E]=v;var x=C[v],g=C[x],O=C[g],I=C[E]*257^E*16843008;t[v]=I<<24|I>>>8,a[v]=I<<16|I>>>16,n[v]=I<<8|I>>>24,i[v]=I,I=O*16843009^g*65537^x*257^v*16843008,l[E]=I<<24|I>>>8,o[E]=I<<16|I>>>16,m[E]=I<<8|I>>>24,w[E]=I,v?(v=x^C[C[C[O^x]]],P^=C[C[P]]):v=P=1}},h.expandKey=function(d){for(var r=this.uint8ArrayToUint32Array_(d),c=!0,t=0;t<r.length&&c;)c=r[t]===this.key[t],t++;if(c)return;this.key=r;var a=this.keySize=r.length;if(a!==4&&a!==6&&a!==8)throw new Error("Invalid aes key size="+a);var n=this.ksRows=(a+6+1)*4,i,f,l=this.keySchedule=new Uint32Array(n),o=this.invKeySchedule=new Uint32Array(n),m=this.sBox,w=this.rcon,C=this.invSubMix,v=C[0],P=C[1],R=C[2],E=C[3],x,g;for(i=0;i<n;i++){if(i<a){x=l[i]=r[i];continue}g=x,i%a===0?(g=g<<8|g>>>24,g=m[g>>>24]<<24|m[g>>>16&255]<<16|m[g>>>8&255]<<8|m[g&255],g^=w[i/a|0]<<24):a>6&&i%a===4&&(g=m[g>>>24]<<24|m[g>>>16&255]<<16|m[g>>>8&255]<<8|m[g&255]),l[i]=x=(l[i-a]^g)>>>0}for(f=0;f<n;f++)i=n-f,f&3?g=l[i]:g=l[i-4],f<4||i<=4?o[f]=g:o[f]=v[m[g>>>24]]^P[m[g>>>16&255]]^R[m[g>>>8&255]]^E[m[g&255]],o[f]=o[f]>>>0},h.networkToHostOrderSwap=function(d){return d<<24|(d&65280)<<8|(d&16711680)>>8|d>>>24},h.decrypt=function(d,r,c){for(var t=this.keySize+6,a=this.invKeySchedule,n=this.invSBox,i=this.invSubMix,f=i[0],l=i[1],o=i[2],m=i[3],w=this.uint8ArrayToUint32Array_(c),C=w[0],v=w[1],P=w[2],R=w[3],E=new Int32Array(d),x=new Int32Array(E.length),g,O,I,D,N,V,F,W,K,B,k,G,ne,fe,de=this.networkToHostOrderSwap;r<E.length;){for(K=de(E[r]),B=de(E[r+1]),k=de(E[r+2]),G=de(E[r+3]),N=K^a[0],V=G^a[1],F=k^a[2],W=B^a[3],ne=4,fe=1;fe<t;fe++)g=f[N>>>24]^l[V>>16&255]^o[F>>8&255]^m[W&255]^a[ne],O=f[V>>>24]^l[F>>16&255]^o[W>>8&255]^m[N&255]^a[ne+1],I=f[F>>>24]^l[W>>16&255]^o[N>>8&255]^m[V&255]^a[ne+2],D=f[W>>>24]^l[N>>16&255]^o[V>>8&255]^m[F&255]^a[ne+3],N=g,V=O,F=I,W=D,ne=ne+4;g=n[N>>>24]<<24^n[V>>16&255]<<16^n[F>>8&255]<<8^n[W&255]^a[ne],O=n[V>>>24]<<24^n[F>>16&255]<<16^n[W>>8&255]<<8^n[N&255]^a[ne+1],I=n[F>>>24]<<24^n[W>>16&255]<<16^n[N>>8&255]<<8^n[V&255]^a[ne+2],D=n[W>>>24]<<24^n[N>>16&255]<<16^n[V>>8&255]<<8^n[F&255]^a[ne+3],x[r]=de(g^C),x[r+1]=de(D^v),x[r+2]=de(I^P),x[r+3]=de(O^R),C=K,v=B,P=k,R=G,r=r+4}return x.buffer},T}()},"./src/crypt/decrypter.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return r});var b=A("./src/crypt/aes-crypto.ts"),y=A("./src/crypt/fast-aes-key.ts"),S=A("./src/crypt/aes-decryptor.ts"),T=A("./src/utils/logger.ts"),h=A("./src/utils/mp4-tools.ts"),_=A("./src/utils/typed-array.ts"),d=16,r=function(){function c(a,n,i){var f=i===void 0?{}:i,l=f.removePKCS7Padding,o=l===void 0?!0:l;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=a,this.config=n,this.removePKCS7Padding=o,o)try{var m=self.crypto;m&&(this.subtle=m.subtle||m.webkitSubtle)}catch(w){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var t=c.prototype;return t.destroy=function(){this.observer=null},t.isSync=function(){return this.config.enableSoftwareAES},t.flush=function(){var n=this.currentResult;if(!n){this.reset();return}var i=new Uint8Array(n);return this.reset(),this.removePKCS7Padding?Object(S.removePadding)(i):i},t.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},t.decrypt=function(n,i,f,l){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(n),i,f);var o=this.flush();o&&l(o.buffer)}else this.webCryptoDecrypt(new Uint8Array(n),i,f).then(l)},t.softwareDecrypt=function(n,i,f){var l=this.currentIV,o=this.currentResult,m=this.remainderData;this.logOnce("JS AES decrypt"),m&&(n=Object(h.appendUint8Array)(m,n),this.remainderData=null);var w=this.getValidChunk(n);if(!w.length)return null;l&&(f=l);var C=this.softwareDecrypter;C||(C=this.softwareDecrypter=new S.default),C.expandKey(i);var v=o;return this.currentResult=C.decrypt(w.buffer,0,f),this.currentIV=Object(_.sliceUint8)(w,-16).buffer,v||null},t.webCryptoDecrypt=function(n,i,f){var l=this,o=this.subtle;return(this.key!==i||!this.fastAesKey)&&(this.key=i,this.fastAesKey=new y.default(o,i)),this.fastAesKey.expandKey().then(function(m){if(!o)return Promise.reject(new Error("web crypto not initialized"));var w=new b.default(o,f);return w.decrypt(n.buffer,m)}).catch(function(m){return l.onWebCryptoError(m,n,i,f)})},t.onWebCryptoError=function(n,i,f,l){return T.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",n),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(i,f,l)},t.getValidChunk=function(n){var i=n,f=n.length-n.length%d;return f!==n.length&&(i=Object(_.sliceUint8)(n,0,f),this.remainderData=Object(_.sliceUint8)(n,f)),i},t.logOnce=function(n){if(!this.logEnabled)return;T.logger.log("[decrypter.ts]: "+n),this.logEnabled=!1},c}()},"./src/crypt/fast-aes-key.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return b});var b=function(){function y(T,h){this.subtle=void 0,this.key=void 0,this.subtle=T,this.key=h}var S=y.prototype;return S.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},y}()},"./src/demux/aacdemuxer.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/demux/base-audio-demuxer.ts"),y=A("./src/demux/adts.ts"),S=A("./src/utils/logger.ts"),T=A("./src/demux/id3.ts");function h(r,c){r.prototype=Object.create(c.prototype),r.prototype.constructor=r,_(r,c)}function _(r,c){return _=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},_(r,c)}var d=function(r){h(c,r);function c(a,n){var i;return i=r.call(this)||this,i.observer=void 0,i.config=void 0,i.observer=a,i.config=n,i}var t=c.prototype;return t.resetInitSegment=function(n,i,f){r.prototype.resetInitSegment.call(this,n,i,f),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:n,duration:f,inputTimeScale:9e4,dropped:0}},c.probe=function(n){if(!n)return!1;for(var i=T.getID3Data(n,0)||[],f=i.length,l=n.length;f<l;f++)if(y.probe(n,f))return S.logger.log("ADTS sync word found !"),!0;return!1},t.canParse=function(n,i){return y.canParse(n,i)},t.appendFrame=function(n,i,f){y.initTrackConfig(n,this.observer,i,f,n.manifestCodec);var l=y.appendFrame(n,i,f,this.initPTS,this.frameIndex);if(l&&l.missing===0)return l},c}(b.default);d.minProbeByteLength=9,p.default=d},"./src/demux/adts.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"getAudioConfig",function(){return T}),A.d(p,"isHeaderPattern",function(){return h}),A.d(p,"getHeaderLength",function(){return _}),A.d(p,"getFullFrameLength",function(){return d}),A.d(p,"canGetFrameLength",function(){return r}),A.d(p,"isHeader",function(){return c}),A.d(p,"canParse",function(){return t}),A.d(p,"probe",function(){return a}),A.d(p,"initTrackConfig",function(){return n}),A.d(p,"getFrameDuration",function(){return i}),A.d(p,"parseFrameHeader",function(){return f}),A.d(p,"appendFrame",function(){return l});var b=A("./src/utils/logger.ts"),y=A("./src/errors.ts"),S=A("./src/events.ts");function T(o,m,w,C){var v,P,R,E,x=navigator.userAgent.toLowerCase(),g=C,O=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];v=((m[w+2]&192)>>>6)+1;var I=(m[w+2]&60)>>>2;if(I>O.length-1){o.trigger(S.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+I});return}return R=(m[w+2]&1)<<2,R|=(m[w+3]&192)>>>6,b.logger.log("manifest codec:"+C+", ADTS type:"+v+", samplingIndex:"+I),/firefox/i.test(x)?I>=6?(v=5,E=new Array(4),P=I-3):(v=2,E=new Array(2),P=I):x.indexOf("android")!==-1?(v=2,E=new Array(2),P=I):(v=5,E=new Array(4),C&&(C.indexOf("mp4a.40.29")!==-1||C.indexOf("mp4a.40.5")!==-1)||!C&&I>=6?P=I-3:((C&&C.indexOf("mp4a.40.2")!==-1&&(I>=6&&R===1||/vivaldi/i.test(x))||!C&&R===1)&&(v=2,E=new Array(2)),P=I)),E[0]=v<<3,E[0]|=(I&14)>>1,E[1]|=(I&1)<<7,E[1]|=R<<3,v===5&&(E[1]|=(P&14)>>1,E[2]=(P&1)<<7,E[2]|=2<<2,E[3]=0),{config:E,samplerate:O[I],channelCount:R,codec:"mp4a.40."+v,manifestCodec:g}}function h(o,m){return o[m]===255&&(o[m+1]&246)===240}function _(o,m){return o[m+1]&1?7:9}function d(o,m){return(o[m+3]&3)<<11|o[m+4]<<3|(o[m+5]&224)>>>5}function r(o,m){return m+5<o.length}function c(o,m){return m+1<o.length&&h(o,m)}function t(o,m){return r(o,m)&&h(o,m)&&d(o,m)<=o.length-m}function a(o,m){if(c(o,m)){var w=_(o,m);if(m+w>=o.length)return!1;var C=d(o,m);if(C<=w)return!1;var v=m+C;return v===o.length||c(o,v)}return!1}function n(o,m,w,C,v){if(!o.samplerate){var P=T(m,w,C,v);if(!P)return;o.config=P.config,o.samplerate=P.samplerate,o.channelCount=P.channelCount,o.codec=P.codec,o.manifestCodec=P.manifestCodec,b.logger.log("parsed codec:"+o.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function i(o){return 1024*9e4/o}function f(o,m,w,C,v){var P=_(o,m),R=d(o,m);if(R-=P,R>0){var E=w+C*v;return{headerLength:P,frameLength:R,stamp:E}}}function l(o,m,w,C,v){var P=i(o.samplerate),R=f(m,w,C,v,P);if(R){var E=R.frameLength,x=R.headerLength,g=R.stamp,O=x+E,I=Math.max(0,w+O-m.length),D;I?(D=new Uint8Array(O-x),D.set(m.subarray(w+x,m.length),0)):D=m.subarray(w+x,w+O);var N={unit:D,pts:g};return I||o.samples.push(N),{sample:N,length:O,missing:I}}}},"./src/demux/base-audio-demuxer.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"initPTSFn",function(){return d});var b=A("./src/polyfills/number.ts"),y=A("./src/demux/id3.ts"),S=A("./src/demux/dummy-demuxed-track.ts"),T=A("./src/utils/mp4-tools.ts"),h=A("./src/utils/typed-array.ts"),_=function(){function r(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var c=r.prototype;return c.resetInitSegment=function(a,n,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},c.resetTimeStamp=function(){},c.resetContiguity=function(){},c.canParse=function(a,n){return!1},c.appendFrame=function(a,n,i){},c.demux=function(a,n){this.cachedData&&(a=Object(T.appendUint8Array)(this.cachedData,a),this.cachedData=null);var i=y.getID3Data(a,0),f=i?i.length:0,l,o,m=this._audioTrack,w=this._id3Track,C=i?y.getTimeStamp(i):void 0,v=a.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=d(C,n)),i&&i.length>0&&w.samples.push({pts:this.initPTS,dts:this.initPTS,data:i}),o=this.initPTS;f<v;){if(this.canParse(a,f)){var P=this.appendFrame(m,a,f);P?(this.frameIndex++,o=P.sample.pts,f+=P.length,l=f):f=v}else y.canParse(a,f)?(i=y.getID3Data(a,f),w.samples.push({pts:o,dts:o,data:i}),f+=i.length,l=f):f++;if(f===v&&l!==v){var R=Object(h.sliceUint8)(a,l);this.cachedData?this.cachedData=Object(T.appendUint8Array)(this.cachedData,R):this.cachedData=R}}return{audioTrack:m,avcTrack:Object(S.dummyTrack)(),id3Track:w,textTrack:Object(S.dummyTrack)()}},c.demuxSampleAes=function(a,n,i){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},c.flush=function(a){var n=this.cachedData;return n&&(this.cachedData=null,this.demux(n,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(S.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(S.dummyTrack)()}},c.destroy=function(){},r}(),d=function(c,t){return Object(b.isFiniteNumber)(c)?c*90:t*9e4};p.default=_},"./src/demux/chunk-cache.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return b});var b=function(){function S(){this.chunks=[],this.dataLength=0}var T=S.prototype;return T.push=function(_){this.chunks.push(_),this.dataLength+=_.length},T.flush=function(){var _=this.chunks,d=this.dataLength,r;if(_.length)_.length===1?r=_[0]:r=y(_,d);else return new Uint8Array(0);return this.reset(),r},T.reset=function(){this.chunks.length=0,this.dataLength=0},S}();function y(S,T){for(var h=new Uint8Array(T),_=0,d=0;d<S.length;d++){var r=S[d];h.set(r,_),_+=r.length}return h}},"./src/demux/dummy-demuxed-track.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"dummyTrack",function(){return b});function b(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/utils/logger.ts"),y=function(){function S(h){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=h,this.bytesAvailable=h.byteLength,this.word=0,this.bitsAvailable=0}var T=S.prototype;return T.loadWord=function(){var _=this.data,d=this.bytesAvailable,r=_.byteLength-d,c=new Uint8Array(4),t=Math.min(4,d);if(t===0)throw new Error("no bytes available");c.set(_.subarray(r,r+t)),this.word=new DataView(c.buffer).getUint32(0),this.bitsAvailable=t*8,this.bytesAvailable-=t},T.skipBits=function(_){var d;this.bitsAvailable>_?(this.word<<=_,this.bitsAvailable-=_):(_-=this.bitsAvailable,d=_>>3,_-=d>>3,this.bytesAvailable-=d,this.loadWord(),this.word<<=_,this.bitsAvailable-=_)},T.readBits=function(_){var d=Math.min(this.bitsAvailable,_),r=this.word>>>32-d;return _>32&&b.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=d,this.bitsAvailable>0?this.word<<=d:this.bytesAvailable>0&&this.loadWord(),d=_-d,d>0&&this.bitsAvailable?r<<d|this.readBits(d):r},T.skipLZ=function(){var _;for(_=0;_<this.bitsAvailable;++_)if((this.word&2147483648>>>_)!==0)return this.word<<=_,this.bitsAvailable-=_,_;return this.loadWord(),_+this.skipLZ()},T.skipUEG=function(){this.skipBits(1+this.skipLZ())},T.skipEG=function(){this.skipBits(1+this.skipLZ())},T.readUEG=function(){var _=this.skipLZ();return this.readBits(_+1)-1},T.readEG=function(){var _=this.readUEG();return 1&_?1+_>>>1:-1*(_>>>1)},T.readBoolean=function(){return this.readBits(1)===1},T.readUByte=function(){return this.readBits(8)},T.readUShort=function(){return this.readBits(16)},T.readUInt=function(){return this.readBits(32)},T.skipScalingList=function(_){for(var d=8,r=8,c,t=0;t<_;t++)r!==0&&(c=this.readEG(),r=(d+c+256)%256),d=r===0?d:r},T.readSPS=function(){var _=0,d=0,r=0,c=0,t,a,n,i=this.readUByte.bind(this),f=this.readBits.bind(this),l=this.readUEG.bind(this),o=this.readBoolean.bind(this),m=this.skipBits.bind(this),w=this.skipEG.bind(this),C=this.skipUEG.bind(this),v=this.skipScalingList.bind(this);i();var P=i();if(f(5),m(3),i(),C(),P===100||P===110||P===122||P===244||P===44||P===83||P===86||P===118||P===128){var R=l();if(R===3&&m(1),C(),C(),m(1),o())for(a=R!==3?8:12,n=0;n<a;n++)o()&&(n<6?v(16):v(64))}C();var E=l();if(E===0)l();else if(E===1)for(m(1),w(),w(),t=l(),n=0;n<t;n++)w();C(),m(1);var x=l(),g=l(),O=f(1);O===0&&m(1),m(1),o()&&(_=l(),d=l(),r=l(),c=l());var I=[1,1];if(o()&&o()){var D=i();switch(D){case 1:I=[1,1];break;case 2:I=[12,11];break;case 3:I=[10,11];break;case 4:I=[16,11];break;case 5:I=[40,33];break;case 6:I=[24,11];break;case 7:I=[20,11];break;case 8:I=[32,11];break;case 9:I=[80,33];break;case 10:I=[18,11];break;case 11:I=[15,11];break;case 12:I=[64,33];break;case 13:I=[160,99];break;case 14:I=[4,3];break;case 15:I=[3,2];break;case 16:I=[2,1];break;case 255:{I=[i()<<8|i(),i()<<8|i()];break}}}return{width:Math.ceil((x+1)*16-_*2-d*2),height:(2-O)*(g+1)*16-(O?2:4)*(r+c),pixelRatio:I}},T.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},S}();p.default=y},"./src/demux/id3.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"isHeader",function(){return b}),A.d(p,"isFooter",function(){return y}),A.d(p,"getID3Data",function(){return S}),A.d(p,"canParse",function(){return h}),A.d(p,"getTimeStamp",function(){return _}),A.d(p,"isTimeStampFrame",function(){return d}),A.d(p,"getID3Frames",function(){return c}),A.d(p,"decodeFrame",function(){return t}),A.d(p,"utf8ArrayToStr",function(){return l}),A.d(p,"testables",function(){return o});var b=function(v,P){return P+10<=v.length&&(v[P]===73&&v[P+1]===68&&v[P+2]===51&&(v[P+3]<255&&v[P+4]<255&&(v[P+6]<128&&v[P+7]<128&&v[P+8]<128&&v[P+9]<128)))},y=function(v,P){return P+10<=v.length&&(v[P]===51&&v[P+1]===68&&v[P+2]===73&&(v[P+3]<255&&v[P+4]<255&&(v[P+6]<128&&v[P+7]<128&&v[P+8]<128&&v[P+9]<128)))},S=function(v,P){for(var R=P,E=0;b(v,P);){E+=10;var x=T(v,P+6);E+=x,y(v,P+10)&&(E+=10),P+=E}return E>0?v.subarray(R,R+E):void 0},T=function(v,P){var R=0;return R=(v[P]&127)<<21,R|=(v[P+1]&127)<<14,R|=(v[P+2]&127)<<7,R|=v[P+3]&127,R},h=function(v,P){return b(v,P)&&T(v,P+6)+10<=v.length-P},_=function(v){for(var P=c(v),R=0;R<P.length;R++){var E=P[R];if(d(E))return f(E)}return},d=function(v){return v&&v.key==="PRIV"&&v.info==="com.apple.streaming.transportStreamTimestamp"},r=function(v){var P=String.fromCharCode(v[0],v[1],v[2],v[3]),R=T(v,4),E=10;return{type:P,size:R,data:v.subarray(E,E+R)}},c=function(v){for(var P=0,R=[];b(v,P);){var E=T(v,P+6);P+=10;for(var x=P+E;P+8<x;){var g=r(v.subarray(P)),O=t(g);O&&R.push(O),P+=g.size+10}y(v,P)&&(P+=10)}return R},t=function(v){return v.type==="PRIV"?a(v):v.type[0]==="W"?i(v):n(v)},a=function(v){if(v.size<2)return;var P=l(v.data,!0),R=new Uint8Array(v.data.subarray(P.length+1));return{key:v.type,info:P,data:R.buffer}},n=function(v){if(v.size<2)return;if(v.type==="TXXX"){var P=1,R=l(v.data.subarray(P),!0);P+=R.length+1;var E=l(v.data.subarray(P));return{key:v.type,info:R,data:E}}var x=l(v.data.subarray(1));return{key:v.type,data:x}},i=function(v){if(v.type==="WXXX"){if(v.size<2)return;var P=1,R=l(v.data.subarray(P),!0);P+=R.length+1;var E=l(v.data.subarray(P));return{key:v.type,info:R,data:E}}var x=l(v.data);return{key:v.type,data:x}},f=function(v){if(v.data.byteLength===8){var P=new Uint8Array(v.data),R=P[3]&1,E=(P[4]<<23)+(P[5]<<15)+(P[6]<<7)+P[7];return E/=45,R&&(E+=4772185884e-2),Math.round(E)}return},l=function(v,P){P===void 0&&(P=!1);var R=w();if(R){var E=R.decode(v);if(P){var x=E.indexOf("\0");return x!==-1?E.substring(0,x):E}return E.replace(/\0/g,"")}for(var g=v.length,O,I,D,N="",V=0;V<g;){if(O=v[V++],O===0&&P)return N;if(O===0||O===3)continue;switch(O>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:N+=String.fromCharCode(O);break;case 12:case 13:I=v[V++],N+=String.fromCharCode((O&31)<<6|I&63);break;case 14:I=v[V++],D=v[V++],N+=String.fromCharCode((O&15)<<12|(I&63)<<6|(D&63)<<0);break;default:}}return N},o={decodeTextFrame:n},m;function w(){return!m&&typeof self.TextDecoder!="undefined"&&(m=new self.TextDecoder("utf-8")),m}},"./src/demux/mp3demuxer.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/demux/base-audio-demuxer.ts"),y=A("./src/demux/id3.ts"),S=A("./src/utils/logger.ts"),T=A("./src/demux/mpegaudio.ts");function h(r,c){r.prototype=Object.create(c.prototype),r.prototype.constructor=r,_(r,c)}function _(r,c){return _=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},_(r,c)}var d=function(r){h(c,r);function c(){return r.apply(this,arguments)||this}var t=c.prototype;return t.resetInitSegment=function(n,i,f){r.prototype.resetInitSegment.call(this,n,i,f),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:n,duration:f,inputTimeScale:9e4,dropped:0}},c.probe=function(n){if(!n)return!1;for(var i=y.getID3Data(n,0)||[],f=i.length,l=n.length;f<l;f++)if(T.probe(n,f))return S.logger.log("MPEG Audio sync word found !"),!0;return!1},t.canParse=function(n,i){return T.canParse(n,i)},t.appendFrame=function(n,i,f){return this.initPTS===null?void 0:T.appendFrame(n,i,f,this.initPTS,this.frameIndex)},c}(b.default);d.minProbeByteLength=4,p.default=d},"./src/demux/mp4demuxer.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/utils/mp4-tools.ts"),y=A("./src/demux/dummy-demuxed-track.ts"),S=function(){function T(_,d){this.remainderData=null,this.config=void 0,this.config=d}var h=T.prototype;return h.resetTimeStamp=function(){},h.resetInitSegment=function(){},h.resetContiguity=function(){},T.probe=function(d){return Object(b.findBox)({data:d,start:0,end:Math.min(d.length,16384)},["moof"]).length>0},h.demux=function(d){var r=d,c=Object(y.dummyTrack)();if(this.config.progressive){this.remainderData&&(r=Object(b.appendUint8Array)(this.remainderData,d));var t=Object(b.segmentValidRange)(r);this.remainderData=t.remainder,c.samples=t.valid||new Uint8Array}else c.samples=r;return{audioTrack:Object(y.dummyTrack)(),avcTrack:c,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},h.flush=function(){var d=Object(y.dummyTrack)();return d.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(y.dummyTrack)(),avcTrack:d,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},h.demuxSampleAes=function(d,r,c){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},h.destroy=function(){},T}();S.minProbeByteLength=1024,p.default=S},"./src/demux/mpegaudio.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"appendFrame",function(){return _}),A.d(p,"parseHeader",function(){return d}),A.d(p,"isHeaderPattern",function(){return r}),A.d(p,"isHeader",function(){return c}),A.d(p,"canParse",function(){return t}),A.d(p,"probe",function(){return a});var b=null,y=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],S=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],T=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],h=[0,1,1,4];function _(n,i,f,l,o){if(f+24>i.length)return;var m=d(i,f);if(m&&f+m.frameLength<=i.length){var w=m.samplesPerFrame*9e4/m.sampleRate,C=l+o*w,v={unit:i.subarray(f,f+m.frameLength),pts:C,dts:C};return n.config=[],n.channelCount=m.channelCount,n.samplerate=m.sampleRate,n.samples.push(v),{sample:v,length:m.frameLength,missing:0}}}function d(n,i){var f=n[i+1]>>3&3,l=n[i+1]>>1&3,o=n[i+2]>>4&15,m=n[i+2]>>2&3;if(f!==1&&o!==0&&o!==15&&m!==3){var w=n[i+2]>>1&1,C=n[i+3]>>6,v=f===3?3-l:l===3?3:4,P=y[v*14+o-1]*1e3,R=f===3?0:f===2?1:2,E=S[R*3+m],x=C===3?1:2,g=T[f][l],O=h[l],I=g*8*O,D=Math.floor(g*P/E+w)*O;if(b===null){var N=navigator.userAgent||"",V=N.match(/Chrome\/(\d+)/i);b=V?parseInt(V[1]):0}var F=!!b&&b<=87;return F&&l===2&&P>=224e3&&C===0&&(n[i+3]=n[i+3]|128),{sampleRate:E,channelCount:x,frameLength:D,samplesPerFrame:I}}}function r(n,i){return n[i]===255&&(n[i+1]&224)===224&&(n[i+1]&6)!==0}function c(n,i){return i+1<n.length&&r(n,i)}function t(n,i){var f=4;return r(n,i)&&f<=n.length-i}function a(n,i){if(i+1<n.length&&r(n,i)){var f=4,l=d(n,i),o=f;l!=null&&l.frameLength&&(o=l.frameLength);var m=i+o;return m===n.length||c(n,m)}return!1}},"./src/demux/sample-aes.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/crypt/decrypter.ts"),y=A("./src/demux/tsdemuxer.ts"),S=function(){function T(_,d,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new b.default(_,d,{removePKCS7Padding:!1})}var h=T.prototype;return h.decryptBuffer=function(d,r){this.decrypter.decrypt(d,this.keyData.key.buffer,this.keyData.iv.buffer,r)},h.decryptAacSample=function(d,r,c,t){var a=d[r].unit,n=a.subarray(16,a.length-a.length%16),i=n.buffer.slice(n.byteOffset,n.byteOffset+n.length),f=this;this.decryptBuffer(i,function(l){var o=new Uint8Array(l);a.set(o,16),t||f.decryptAacSamples(d,r+1,c)})},h.decryptAacSamples=function(d,r,c){for(;;r++){if(r>=d.length){c();return}if(d[r].unit.length<32)continue;var t=this.decrypter.isSync();if(this.decryptAacSample(d,r,c,t),!t)return}},h.getAvcEncryptedData=function(d){for(var r=Math.floor((d.length-48)/160)*16+16,c=new Int8Array(r),t=0,a=32;a<=d.length-16;a+=160,t+=16)c.set(d.subarray(a,a+16),t);return c},h.getAvcDecryptedUnit=function(d,r){for(var c=new Uint8Array(r),t=0,a=32;a<=d.length-16;a+=160,t+=16)d.set(c.subarray(t,t+16),a);return d},h.decryptAvcSample=function(d,r,c,t,a,n){var i=Object(y.discardEPB)(a.data),f=this.getAvcEncryptedData(i),l=this;this.decryptBuffer(f.buffer,function(o){a.data=l.getAvcDecryptedUnit(i,o),n||l.decryptAvcSamples(d,r,c+1,t)})},h.decryptAvcSamples=function(d,r,c,t){if(d instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;r++,c=0){if(r>=d.length){t();return}for(var a=d[r].units;!(c>=a.length);c++){var n=a[c];if(n.data.length<=48||n.type!==1&&n.type!==5)continue;var i=this.decrypter.isSync();if(this.decryptAvcSample(d,r,c,t,n,i),!i)return}}},T}();p.default=S},"./src/demux/transmuxer-interface.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return a});var b=A("./node_modules/webworkify-webpack/index.js"),y=A.n(b),S=A("./src/events.ts"),T=A("./src/demux/transmuxer.ts"),h=A("./src/utils/logger.ts"),_=A("./src/errors.ts"),d=A("./src/utils/mediasource-helper.ts"),r=A("./node_modules/eventemitter3/index.js"),c=A.n(r),t=Object(d.getMediaSource)()||{isTypeSupported:function(){return!1}},a=function(){function n(f,l,o,m){var w=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=f,this.id=l,this.onTransmuxComplete=o,this.onFlush=m;var C=f.config,v=function(g,O){O=O||{},O.frag=w.frag,O.id=w.id,f.trigger(g,O)};this.observer=new r.EventEmitter,this.observer.on(S.Events.FRAG_DECRYPTED,v),this.observer.on(S.Events.ERROR,v);var P={mp4:t.isTypeSupported("video/mp4"),mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"')},R=navigator.vendor;if(C.enableWorker&&typeof Worker!="undefined"){h.logger.log("demuxing in webworker");var E;try{E=this.worker=b("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),E.addEventListener("message",this.onwmsg),E.onerror=function(x){f.trigger(S.Events.ERROR,{type:_.ErrorTypes.OTHER_ERROR,details:_.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(x.message+" ("+x.filename+":"+x.lineno+")")})},E.postMessage({cmd:"init",typeSupported:P,vendor:R,id:l,config:JSON.stringify(C)})}catch(x){h.logger.warn("Error in worker:",x),h.logger.error("Error while initializing DemuxerWorker, fallback to inline"),E&&self.URL.revokeObjectURL(E.objectURL),this.transmuxer=new T.default(this.observer,P,C,R,l),this.worker=null}}else this.transmuxer=new T.default(this.observer,P,C,R,l)}var i=n.prototype;return i.destroy=function(){var l=this.worker;if(l)l.removeEventListener("message",this.onwmsg),l.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var m=this.observer;m&&m.removeAllListeners(),this.observer=null},i.push=function(l,o,m,w,C,v,P,R,E,x){var g=this;E.transmuxing.start=self.performance.now();var O=this.transmuxer,I=this.worker,D=v?v.start:C.start,N=C.decryptdata,V=this.frag,F=!(V&&C.cc===V.cc),W=!(V&&E.level===V.level),K=V?E.sn-V.sn:-1,B=this.part?E.part-this.part.index:1,k=!W&&(K===1||K===0&&B===1),G=self.performance.now();(W||K||C.stats.parsing.start===0)&&(C.stats.parsing.start=G),v&&(B||!k)&&(v.stats.parsing.start=G);var ne=new T.TransmuxState(F,k,R,W,D);if(!k||F){h.logger.log("[transmuxer-interface, "+C.type+"]: Starting new transmux session for sn: "+E.sn+" p: "+E.part+" level: "+E.level+" id: "+E.id+`
discontinuity: `+F+`
trackSwitch: `+W+`
contiguous: `+k+`
accurateTimeOffset: `+R+`
timeOffset: `+D);var fe=new T.TransmuxConfig(m,w,o,P,x);this.configureTransmuxer(fe)}if(this.frag=C,this.part=v,I)I.postMessage({cmd:"demux",data:l,decryptdata:N,chunkMeta:E,state:ne},l instanceof ArrayBuffer?[l]:[]);else if(O){var de=O.push(l,N,E,ne);Object(T.isPromise)(de)?de.then(function(Ee){g.handleTransmuxComplete(Ee)}):this.handleTransmuxComplete(de)}},i.flush=function(l){var o=this;l.transmuxing.start=self.performance.now();var m=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:l});else if(m){var C=m.flush(l);Object(T.isPromise)(C)?C.then(function(v){o.handleFlushResult(v,l)}):this.handleFlushResult(C,l)}},i.handleFlushResult=function(l,o){var m=this;l.forEach(function(w){m.handleTransmuxComplete(w)}),this.onFlush(o)},i.onWorkerMessage=function(l){var o=l.data,m=this.hls;switch(o.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(o.data);break}case"flush":{this.onFlush(o.data);break}default:{o.data=o.data||{},o.data.frag=this.frag,o.data.id=this.id,m.trigger(o.event,o.data);break}}},i.configureTransmuxer=function(l){var o=this.worker,m=this.transmuxer;o?o.postMessage({cmd:"configure",config:l}):m&&m.configure(l)},i.handleTransmuxComplete=function(l){l.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(l)},n}()},"./src/demux/transmuxer-worker.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return _});var b=A("./src/demux/transmuxer.ts"),y=A("./src/events.ts"),S=A("./src/utils/logger.ts"),T=A("./node_modules/eventemitter3/index.js"),h=A.n(T);function _(a){var n=new T.EventEmitter,i=function(l,o){a.postMessage({event:l,data:o})};n.on(y.Events.FRAG_DECRYPTED,i),n.on(y.Events.ERROR,i),a.addEventListener("message",function(f){var l=f.data;switch(l.cmd){case"init":{var o=JSON.parse(l.config);a.transmuxer=new b.default(n,l.typeSupported,o,l.vendor,l.id),Object(S.enableLogs)(o.debug),i("init",null);break}case"configure":{a.transmuxer.configure(l.config);break}case"demux":{var m=a.transmuxer.push(l.data,l.decryptdata,l.chunkMeta,l.state);Object(b.isPromise)(m)?m.then(function(v){d(a,v)}):d(a,m);break}case"flush":{var w=l.chunkMeta,C=a.transmuxer.flush(w);Object(b.isPromise)(C)?C.then(function(v){c(a,v,w)}):c(a,C,w);break}default:break}})}function d(a,n){if(t(n.remuxResult))return;var i=[],f=n.remuxResult,l=f.audio,o=f.video;l&&r(i,l),o&&r(i,o),a.postMessage({event:"transmuxComplete",data:n},i)}function r(a,n){n.data1&&a.push(n.data1.buffer),n.data2&&a.push(n.data2.buffer)}function c(a,n,i){n.forEach(function(f){d(a,f)}),a.postMessage({event:"flush",data:i})}function t(a){return!a.audio&&!a.video&&!a.text&&!a.id3&&!a.initSegment}},"./src/demux/transmuxer.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return o}),A.d(p,"isPromise",function(){return C}),A.d(p,"TransmuxConfig",function(){return v}),A.d(p,"TransmuxState",function(){return P});var b=A("./src/events.ts"),y=A("./src/errors.ts"),S=A("./src/crypt/decrypter.ts"),T=A("./src/demux/aacdemuxer.ts"),h=A("./src/demux/mp4demuxer.ts"),_=A("./src/demux/tsdemuxer.ts"),d=A("./src/demux/mp3demuxer.ts"),r=A("./src/remux/mp4-remuxer.ts"),c=A("./src/remux/passthrough-remuxer.ts"),t=A("./src/demux/chunk-cache.ts"),a=A("./src/utils/mp4-tools.ts"),n=A("./src/utils/logger.ts"),i;try{i=self.performance.now.bind(self.performance)}catch(R){n.logger.debug("Unable to use Performance API on this environment"),i=self.Date.now}var f=[{demux:_.default,remux:r.default},{demux:h.default,remux:c.default},{demux:T.default,remux:r.default},{demux:d.default,remux:r.default}],l=1024;f.forEach(function(R){var E=R.demux;l=Math.max(l,E.minProbeByteLength)});var o=function(){function R(x,g,O,I,D){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new t.default,this.observer=x,this.typeSupported=g,this.config=O,this.vendor=I,this.id=D}var E=R.prototype;return E.configure=function(g){this.transmuxConfig=g,this.decrypter&&this.decrypter.reset()},E.push=function(g,O,I,D){var N=this,V=I.transmuxing;V.executeStart=i();var F=new Uint8Array(g),W=this.cache,K=this.config,B=this.currentTransmuxState,k=this.transmuxConfig;D&&(this.currentTransmuxState=D);var G=m(F,O);if(G&&G.method==="AES-128"){var ne=this.getDecrypter();if(K.enableSoftwareAES){var fe=ne.softwareDecrypt(F,G.key.buffer,G.iv.buffer);if(!fe)return V.executeEnd=i(),w(I);F=new Uint8Array(fe)}else return this.decryptionPromise=ne.webCryptoDecrypt(F,G.key.buffer,G.iv.buffer).then(function($){var J=N.push($,null,I);return N.decryptionPromise=null,J}),this.decryptionPromise}var de=D||B,Ee=de.contiguous,we=de.discontinuity,ce=de.trackSwitch,be=de.accurateTimeOffset,ve=de.timeOffset,ue=k.audioCodec,se=k.videoCodec,q=k.defaultInitPts,me=k.duration,re=k.initSegmentData;if((we||ce)&&this.resetInitSegment(re,ue,se,me),we&&this.resetInitialTimestamp(q),Ee||this.resetContiguity(),this.needsProbing(F,we,ce)){if(W.dataLength){var ie=W.flush();F=Object(a.appendUint8Array)(ie,F)}this.configureTransmuxer(F,k)}var Oe=this.transmux(F,G,ve,be,I),le=this.currentTransmuxState;return le.contiguous=!0,le.discontinuity=!1,le.trackSwitch=!1,V.executeEnd=i(),Oe},E.flush=function(g){var O=this,I=g.transmuxing;I.executeStart=i();var D=this.decrypter,N=this.cache,V=this.currentTransmuxState,F=this.decryptionPromise;if(F)return F.then(function(){return O.flush(g)});var W=[],K=V.timeOffset;if(D){var B=D.flush();B&&W.push(this.push(B,null,g))}var k=N.dataLength;N.reset();var G=this.demuxer,ne=this.remuxer;if(!G||!ne)return k>=l&&this.observer.emit(b.Events.ERROR,b.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),I.executeEnd=i(),[w(g)];var fe=G.flush(K);return C(fe)?fe.then(function(de){return O.flushRemux(W,de,g),W}):(this.flushRemux(W,fe,g),W)},E.flushRemux=function(g,O,I){var D=O.audioTrack,N=O.avcTrack,V=O.id3Track,F=O.textTrack,W=this.currentTransmuxState,K=W.accurateTimeOffset,B=W.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+I.sn+(I.part>-1?" p: "+I.part:"")+" of level "+I.level);var k=this.remuxer.remux(D,N,V,F,B,K,!0,this.id);g.push({remuxResult:k,chunkMeta:I}),I.transmuxing.executeEnd=i()},E.resetInitialTimestamp=function(g){var O=this.demuxer,I=this.remuxer;if(!O||!I)return;O.resetTimeStamp(g),I.resetTimeStamp(g)},E.resetContiguity=function(){var g=this.demuxer,O=this.remuxer;if(!g||!O)return;g.resetContiguity(),O.resetNextTimestamp()},E.resetInitSegment=function(g,O,I,D){var N=this.demuxer,V=this.remuxer;if(!N||!V)return;N.resetInitSegment(O,I,D),V.resetInitSegment(g,O,I)},E.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},E.transmux=function(g,O,I,D,N){var V;return O&&O.method==="SAMPLE-AES"?V=this.transmuxSampleAes(g,O,I,D,N):V=this.transmuxUnencrypted(g,I,D,N),V},E.transmuxUnencrypted=function(g,O,I,D){var N=this.demuxer.demux(g,O,!1,!this.config.progressive),V=N.audioTrack,F=N.avcTrack,W=N.id3Track,K=N.textTrack,B=this.remuxer.remux(V,F,W,K,O,I,!1,this.id);return{remuxResult:B,chunkMeta:D}},E.transmuxSampleAes=function(g,O,I,D,N){var V=this;return this.demuxer.demuxSampleAes(g,O,I).then(function(F){var W=V.remuxer.remux(F.audioTrack,F.avcTrack,F.id3Track,F.textTrack,I,D,!1,V.id);return{remuxResult:W,chunkMeta:N}})},E.configureTransmuxer=function(g,O){for(var I=this.config,D=this.observer,N=this.typeSupported,V=this.vendor,F=O.audioCodec,W=O.defaultInitPts,K=O.duration,B=O.initSegmentData,k=O.videoCodec,G,ne=0,fe=f.length;ne<fe;ne++)if(f[ne].demux.probe(g)){G=f[ne];break}G||(n.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),G={demux:h.default,remux:c.default});var de=this.demuxer,Ee=this.remuxer,we=G.remux,ce=G.demux;(!Ee||!(Ee instanceof we))&&(this.remuxer=new we(D,I,N,V)),(!de||!(de instanceof ce))&&(this.demuxer=new ce(D,I,N),this.probe=ce.probe),this.resetInitSegment(B,F,k,K),this.resetInitialTimestamp(W)},E.needsProbing=function(g,O,I){return!this.demuxer||!this.remuxer||O||I},E.getDecrypter=function(){var g=this.decrypter;return g||(g=this.decrypter=new S.default(this.observer,this.config)),g},R}();function m(R,E){var x=null;return R.byteLength>0&&E!=null&&E.key!=null&&E.iv!==null&&E.method!=null&&(x=E),x}var w=function(E){return{remuxResult:{},chunkMeta:E}};function C(R){return"then"in R&&R.then instanceof Function}var v=function(E,x,g,O,I){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=E,this.videoCodec=x,this.initSegmentData=g,this.duration=O,this.defaultInitPts=I},P=function(E,x,g,O,I){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=E,this.contiguous=x,this.accurateTimeOffset=g,this.trackSwitch=O,this.timeOffset=I}},"./src/demux/tsdemuxer.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"discardEPB",function(){return w});var b=A("./src/demux/adts.ts"),y=A("./src/demux/mpegaudio.ts"),S=A("./src/demux/exp-golomb.ts"),T=A("./src/demux/id3.ts"),h=A("./src/demux/sample-aes.ts"),_=A("./src/events.ts"),d=A("./src/utils/mp4-tools.ts"),r=A("./src/utils/logger.ts"),c=A("./src/errors.ts"),t={video:1,audio:2,id3:3,text:4},a=function(){function C(P,R,E){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=P,this.config=R,this.typeSupported=E}C.probe=function(R){var E=C.syncOffset(R);return E<0?!1:(E&&r.logger.warn("MPEG2-TS detected but first sync word found @ offset "+E+", junk ahead ?"),!0)},C.syncOffset=function(R){for(var E=Math.min(1e3,R.length-3*188),x=0;x<E;){if(R[x]===71&&R[x+188]===71&&R[x+2*188]===71)return x;x++}return-1},C.createTrack=function(R,E){return{container:R==="video"||R==="audio"?"video/mp2t":void 0,type:R,id:t[R],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:R==="audio"?E:void 0}};var v=C.prototype;return v.resetInitSegment=function(R,E,x){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=C.createTrack("video",x),this._audioTrack=C.createTrack("audio",x),this._id3Track=C.createTrack("id3",x),this._txtTrack=C.createTrack("text",x),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=R,this.videoCodec=E,this._duration=x},v.resetTimeStamp=function(){},v.resetContiguity=function(){var R=this._audioTrack,E=this._avcTrack,x=this._id3Track;R&&(R.pesData=null),E&&(E.pesData=null),x&&(x.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},v.demux=function(R,E,x,g){x===void 0&&(x=!1),g===void 0&&(g=!1),x||(this.sampleAes=null);var O,I=this._avcTrack,D=this._audioTrack,N=this._id3Track,V=I.pid,F=I.pesData,W=D.pid,K=N.pid,B=D.pesData,k=N.pesData,G=!1,ne=this.pmtParsed,fe=this._pmtId,de=R.length;if(this.remainderData&&(R=Object(d.appendUint8Array)(this.remainderData,R),de=R.length,this.remainderData=null),de<188&&!g)return this.remainderData=R,{audioTrack:D,avcTrack:I,id3Track:N,textTrack:this._txtTrack};var Ee=Math.max(0,C.syncOffset(R));de-=(de+Ee)%188,de<R.byteLength&&!g&&(this.remainderData=new Uint8Array(R.buffer,de,R.buffer.byteLength-de));for(var we=Ee;we<de;we+=188)if(R[we]===71){var ce=!!(R[we+1]&64),be=((R[we+1]&31)<<8)+R[we+2],ve=(R[we+3]&48)>>4,ue=void 0;if(ve>1){if(ue=we+5+R[we+4],ue===we+188)continue}else ue=we+4;switch(be){case V:ce&&(F&&(O=l(F))&&this.parseAVCPES(O,!1),F={data:[],size:0}),F&&(F.data.push(R.subarray(ue,we+188)),F.size+=we+188-ue);break;case W:ce&&(B&&(O=l(B))&&(D.isAAC?this.parseAACPES(O):this.parseMPEGPES(O)),B={data:[],size:0}),B&&(B.data.push(R.subarray(ue,we+188)),B.size+=we+188-ue);break;case K:ce&&(k&&(O=l(k))&&this.parseID3PES(O),k={data:[],size:0}),k&&(k.data.push(R.subarray(ue,we+188)),k.size+=we+188-ue);break;case 0:ce&&(ue+=R[ue]+1),fe=this._pmtId=i(R,ue);break;case fe:{ce&&(ue+=R[ue]+1);var se=f(R,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,x);V=se.avc,V>0&&(I.pid=V),W=se.audio,W>0&&(D.pid=W,D.isAAC=se.isAAC),K=se.id3,K>0&&(N.pid=K),G&&!ne&&(r.logger.log("reparse from beginning"),G=!1,we=Ee-188),ne=this.pmtParsed=!0;break}case 17:case 8191:break;default:G=!0;break}}else this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});I.pesData=F,D.pesData=B,N.pesData=k;var q={audioTrack:D,avcTrack:I,id3Track:N,textTrack:this._txtTrack};return g&&this.extractRemainingSamples(q),q},v.flush=function(){var R=this.remainderData;this.remainderData=null;var E;return R?E=this.demux(R,-1,!1,!0):E={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(E),this.sampleAes?this.decrypt(E,this.sampleAes):E},v.extractRemainingSamples=function(R){var E=R.audioTrack,x=R.avcTrack,g=R.id3Track,O=x.pesData,I=E.pesData,D=g.pesData,N;O&&(N=l(O))?(this.parseAVCPES(N,!0),x.pesData=null):x.pesData=O,I&&(N=l(I))?(E.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),E.pesData=null):(I!=null&&I.size&&r.logger.log("last AAC PES packet truncated,might overlap between fragments"),E.pesData=I),D&&(N=l(D))?(this.parseID3PES(N),g.pesData=null):g.pesData=D},v.demuxSampleAes=function(R,E,x){var g=this.demux(R,x,!0,!this.config.progressive),O=this.sampleAes=new h.default(this.observer,this.config,E);return this.decrypt(g,O)},v.decrypt=function(R,E){return new Promise(function(x){var g=R.audioTrack,O=R.avcTrack;g.samples&&g.isAAC?E.decryptAacSamples(g.samples,0,function(){O.samples?E.decryptAvcSamples(O.samples,0,0,function(){x(R)}):x(R)}):O.samples&&E.decryptAvcSamples(O.samples,0,0,function(){x(R)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(R,E){var x=this,g=this._avcTrack,O=this.parseAVCNALu(R.data),I=!1,D=this.avcSample,N,V=!1;R.data=null,D&&O.length&&!g.audFound&&(o(D,g),D=this.avcSample=n(!1,R.pts,R.dts,"")),O.forEach(function(F){switch(F.type){case 1:{N=!0,D||(D=x.avcSample=n(!0,R.pts,R.dts,"")),I&&(D.debug+="NDR "),D.frame=!0;var W=F.data;if(V&&W.length>4){var K=new S.default(W).readSliceType();(K===2||K===4||K===7||K===9)&&(D.key=!0)}break}case 5:N=!0,D||(D=x.avcSample=n(!0,R.pts,R.dts,"")),I&&(D.debug+="IDR "),D.key=!0,D.frame=!0;break;case 6:{N=!0,I&&D&&(D.debug+="SEI ");var B=new S.default(w(F.data));B.readUByte();for(var k=0,G=0,ne=!1,fe=0;!ne&&B.bytesAvailable>1;){k=0;do fe=B.readUByte(),k+=fe;while(fe===255);G=0;do fe=B.readUByte(),G+=fe;while(fe===255);if(k===4&&B.bytesAvailable!==0){ne=!0;var de=B.readUByte();if(de===181){var Ee=B.readUShort();if(Ee===49){var we=B.readUInt();if(we===1195456820){var ce=B.readUByte();if(ce===3){for(var be=B.readUByte(),ve=B.readUByte(),ue=31&be,se=[be,ve],q=0;q<ue;q++)se.push(B.readUByte()),se.push(B.readUByte()),se.push(B.readUByte());m(x._txtTrack.samples,{type:3,pts:R.pts,bytes:se})}}}}}else if(k===5&&B.bytesAvailable!==0){if(ne=!0,G>16){for(var me=[],re=0;re<16;re++)me.push(B.readUByte().toString(16)),(re===3||re===5||re===7||re===9)&&me.push("-");for(var ie=G-16,Oe=new Uint8Array(ie),le=0;le<ie;le++)Oe[le]=B.readUByte();m(x._txtTrack.samples,{pts:R.pts,payloadType:k,uuid:me.join(""),userData:Object(T.utf8ArrayToStr)(Oe),userDataBytes:Oe})}}else if(G<B.bytesAvailable)for(var $=0;$<G;$++)B.readUByte()}break}case 7:if(N=!0,V=!0,I&&D&&(D.debug+="SPS "),!g.sps){var J=new S.default(F.data),te=J.readSPS();g.width=te.width,g.height=te.height,g.pixelRatio=te.pixelRatio,g.sps=[F.data],g.duration=x._duration;for(var Ae=F.data.subarray(1,4),Se="avc1.",ke=0;ke<3;ke++){var rt=Ae[ke].toString(16);rt.length<2&&(rt="0"+rt),Se+=rt}g.codec=Se}break;case 8:N=!0,I&&D&&(D.debug+="PPS "),g.pps||(g.pps=[F.data]);break;case 9:N=!1,g.audFound=!0,D&&o(D,g),D=x.avcSample=n(!1,R.pts,R.dts,I?"AUD ":"");break;case 12:N=!1;break;default:N=!1,D&&(D.debug+="unknown NAL "+F.type+" ");break}if(D&&N){var ot=D.units;ot.push(F)}}),E&&D&&(o(D,g),this.avcSample=null)},v.getLastNalUnit=function(){var R,E=this.avcSample,x;if(!E||E.units.length===0){var g=this._avcTrack.samples;E=g[g.length-1]}if((R=E)!==null&&R!==void 0&&R.units){var O=E.units;x=O[O.length-1]}return x},v.parseAVCNALu=function(R){var E=R.byteLength,x=this._avcTrack,g=x.naluState||0,O=g,I=[],D=0,N,V,F,W=-1,K=0;for(g===-1&&(W=0,K=R[0]&31,g=0,D=1);D<E;){if(N=R[D++],!g){g=N?0:1;continue}if(g===1){g=N?0:2;continue}if(!N)g=3;else if(N===1){if(W>=0){var B={data:R.subarray(W,D-g-1),type:K};I.push(B)}else{var k=this.getLastNalUnit();if(k&&(O&&D<=4-O&&(k.state&&(k.data=k.data.subarray(0,k.data.byteLength-O))),V=D-g-1,V>0)){var G=new Uint8Array(k.data.byteLength+V);G.set(k.data,0),G.set(R.subarray(0,V),k.data.byteLength),k.data=G,k.state=0}}D<E?(F=R[D]&31,W=D,K=F,g=0):g=-1}else g=0}if(W>=0&&g>=0){var ne={data:R.subarray(W,E),type:K,state:g};I.push(ne)}if(I.length===0){var fe=this.getLastNalUnit();if(fe){var de=new Uint8Array(fe.data.byteLength+R.byteLength);de.set(fe.data,0),de.set(R,fe.data.byteLength),fe.data=de}}return x.naluState=g,I},v.parseAACPES=function(R){var E=0,x=this._audioTrack,g=this.aacOverFlow,O=R.data;if(g){this.aacOverFlow=null;var I=g.sample.unit.byteLength,D=Math.min(g.missing,I),N=I-D;g.sample.unit.set(O.subarray(0,D),N),x.samples.push(g.sample),E=g.missing}var V,F;for(V=E,F=O.length;V<F-1&&!b.isHeader(O,V);V++);if(V!==E){var W,K;if(V<F-1?(W="AAC PES did not start with ADTS header,offset:"+V,K=!1):(W="no ADTS header found in AAC PES",K=!0),r.logger.warn("parsing error:"+W),this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:K,reason:W}),K)return}b.initTrackConfig(x,this.observer,O,V,this.audioCodec);var B;if(R.pts!==void 0)B=R.pts;else if(g){var k=b.getFrameDuration(x.samplerate);B=g.sample.pts+k}else{r.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var G=0;V<F;)if(b.isHeader(O,V)){if(V+5<F){var ne=b.appendFrame(x,O,V,B,G);if(ne)if(ne.missing)this.aacOverFlow=ne;else{V+=ne.length,G++;continue}}break}else V++},v.parseMPEGPES=function(R){var E=R.data,x=E.length,g=0,O=0,I=R.pts;if(I===void 0){r.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;O<x;)if(y.isHeader(E,O)){var D=y.appendFrame(this._audioTrack,E,O,I,g);if(D)O+=D.length,g++;else break}else O++},v.parseID3PES=function(R){if(R.pts===void 0){r.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(R)},C}();a.minProbeByteLength=188;function n(C,v,P,R){return{key:C,frame:!1,pts:v,dts:P,units:[],debug:R,length:0}}function i(C,v){return(C[v+10]&31)<<8|C[v+11]}function f(C,v,P,R){var E={audio:-1,avc:-1,id3:-1,isAAC:!0},x=(C[v+1]&15)<<8|C[v+2],g=v+3+x-4,O=(C[v+10]&15)<<8|C[v+11];for(v+=12+O;v<g;){var I=(C[v+1]&31)<<8|C[v+2];switch(C[v]){case 207:if(!R){r.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:E.audio===-1&&(E.audio=I);break;case 21:E.id3===-1&&(E.id3=I);break;case 219:if(!R){r.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:E.avc===-1&&(E.avc=I);break;case 3:case 4:P?E.audio===-1&&(E.audio=I,E.isAAC=!1):r.logger.log("MPEG audio found, not supported in this browser");break;case 36:r.logger.warn("Unsupported HEVC stream type found");break;default:break}v+=((C[v+3]&15)<<8|C[v+4])+5}return E}function l(C){var v=0,P,R,E,x,g,O=C.data;if(!C||C.size===0)return null;for(;O[0].length<19&&O.length>1;){var I=new Uint8Array(O[0].length+O[1].length);I.set(O[0]),I.set(O[1],O[0].length),O[0]=I,O.splice(1,1)}P=O[0];var D=(P[0]<<16)+(P[1]<<8)+P[2];if(D===1){if(R=(P[4]<<8)+P[5],R&&R>C.size-6)return null;var N=P[7];N&192&&(x=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,N&64?(g=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,x-g>60*9e4&&(r.logger.warn(Math.round((x-g)/9e4)+"s delta between PTS and DTS, align them"),x=g)):g=x),E=P[8];var V=E+9;if(C.size<=V)return null;C.size-=V;for(var F=new Uint8Array(C.size),W=0,K=O.length;W<K;W++){P=O[W];var B=P.byteLength;if(V)if(V>B){V-=B;continue}else P=P.subarray(V),B-=V,V=0;F.set(P,v),v+=B}return R&&(R-=E+3),{data:F,pts:x,dts:g,len:R}}return null}function o(C,v){if(C.units.length&&C.frame){if(C.pts===void 0){var P=v.samples,R=P.length;if(R){var E=P[R-1];C.pts=E.pts,C.dts=E.dts}else{v.dropped++;return}}v.samples.push(C)}C.debug.length&&r.logger.log(C.pts+"/"+C.dts+":"+C.debug)}function m(C,v){var P=C.length;if(P>0){if(v.pts>=C[P-1].pts)C.push(v);else for(var R=P-1;R>=0;R--)if(v.pts<C[R].pts){C.splice(R,0,v);break}}else C.push(v)}function w(C){for(var v=C.byteLength,P=[],R=1;R<v-2;)C[R]===0&&C[R+1]===0&&C[R+2]===3?(P.push(R+2),R+=2):R++;if(P.length===0)return C;var E=v-P.length,x=new Uint8Array(E),g=0;for(R=0;R<E;g++,R++)g===P[0]&&(g++,P.shift()),x[R]=C[g];return x}p.default=a},"./src/errors.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"ErrorTypes",function(){return b}),A.d(p,"ErrorDetails",function(){return y});var b;(function(S){S.NETWORK_ERROR="networkError",S.MEDIA_ERROR="mediaError",S.KEY_SYSTEM_ERROR="keySystemError",S.MUX_ERROR="muxError",S.OTHER_ERROR="otherError"})(b||(b={}));var y;(function(S){S.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",S.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",S.KEY_SYSTEM_NO_SESSION="keySystemNoSession",S.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",S.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",S.MANIFEST_LOAD_ERROR="manifestLoadError",S.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",S.MANIFEST_PARSING_ERROR="manifestParsingError",S.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",S.LEVEL_EMPTY_ERROR="levelEmptyError",S.LEVEL_LOAD_ERROR="levelLoadError",S.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",S.LEVEL_SWITCH_ERROR="levelSwitchError",S.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",S.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",S.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",S.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",S.FRAG_LOAD_ERROR="fragLoadError",S.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",S.FRAG_DECRYPT_ERROR="fragDecryptError",S.FRAG_PARSING_ERROR="fragParsingError",S.REMUX_ALLOC_ERROR="remuxAllocError",S.KEY_LOAD_ERROR="keyLoadError",S.KEY_LOAD_TIMEOUT="keyLoadTimeOut",S.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",S.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",S.BUFFER_APPEND_ERROR="bufferAppendError",S.BUFFER_APPENDING_ERROR="bufferAppendingError",S.BUFFER_STALLED_ERROR="bufferStalledError",S.BUFFER_FULL_ERROR="bufferFullError",S.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",S.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",S.INTERNAL_EXCEPTION="internalException",S.INTERNAL_ABORTED="aborted",S.UNKNOWN="unknown"})(y||(y={}))},"./src/events.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"Events",function(){return b});var b;(function(y){y.MEDIA_ATTACHING="hlsMediaAttaching",y.MEDIA_ATTACHED="hlsMediaAttached",y.MEDIA_DETACHING="hlsMediaDetaching",y.MEDIA_DETACHED="hlsMediaDetached",y.BUFFER_RESET="hlsBufferReset",y.BUFFER_CODECS="hlsBufferCodecs",y.BUFFER_CREATED="hlsBufferCreated",y.BUFFER_APPENDING="hlsBufferAppending",y.BUFFER_APPENDED="hlsBufferAppended",y.BUFFER_EOS="hlsBufferEos",y.BUFFER_FLUSHING="hlsBufferFlushing",y.BUFFER_FLUSHED="hlsBufferFlushed",y.MANIFEST_LOADING="hlsManifestLoading",y.MANIFEST_LOADED="hlsManifestLoaded",y.MANIFEST_PARSED="hlsManifestParsed",y.LEVEL_SWITCHING="hlsLevelSwitching",y.LEVEL_SWITCHED="hlsLevelSwitched",y.LEVEL_LOADING="hlsLevelLoading",y.LEVEL_LOADED="hlsLevelLoaded",y.LEVEL_UPDATED="hlsLevelUpdated",y.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",y.LEVELS_UPDATED="hlsLevelsUpdated",y.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",y.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",y.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",y.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",y.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",y.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",y.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",y.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",y.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",y.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",y.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",y.CUES_PARSED="hlsCuesParsed",y.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",y.INIT_PTS_FOUND="hlsInitPtsFound",y.FRAG_LOADING="hlsFragLoading",y.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",y.FRAG_LOADED="hlsFragLoaded",y.FRAG_DECRYPTED="hlsFragDecrypted",y.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",y.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",y.FRAG_PARSING_METADATA="hlsFragParsingMetadata",y.FRAG_PARSED="hlsFragParsed",y.FRAG_BUFFERED="hlsFragBuffered",y.FRAG_CHANGED="hlsFragChanged",y.FPS_DROP="hlsFpsDrop",y.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",y.ERROR="hlsError",y.DESTROYING="hlsDestroying",y.KEY_LOADING="hlsKeyLoading",y.KEY_LOADED="hlsKeyLoaded",y.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",y.BACK_BUFFER_REACHED="hlsBackBufferReached"})(b||(b={}))},"./src/hls.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return C});var b=A("./node_modules/url-toolkit/src/url-toolkit.js"),y=A.n(b),S=A("./src/loader/playlist-loader.ts"),T=A("./src/loader/key-loader.ts"),h=A("./src/controller/id3-track-controller.ts"),_=A("./src/controller/latency-controller.ts"),d=A("./src/controller/level-controller.ts"),r=A("./src/controller/fragment-tracker.ts"),c=A("./src/controller/stream-controller.ts"),t=A("./src/is-supported.ts"),a=A("./src/utils/logger.ts"),n=A("./src/config.ts"),i=A("./node_modules/eventemitter3/index.js"),f=A.n(i),l=A("./src/events.ts"),o=A("./src/errors.ts");function m(v,P){for(var R=0;R<P.length;R++){var E=P[R];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}function w(v,P,R){return P&&m(v.prototype,P),R&&m(v,R),v}var C=function(){v.isSupported=function(){return Object(t.isSupported)()};function v(R){R===void 0&&(R={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new i.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var E=this.config=Object(n.mergeConfig)(v.DefaultConfig,R);this.userConfig=R,Object(a.enableLogs)(E.debug),this._autoLevelCapping=-1,E.progressive&&Object(n.enableStreamingMode)(E);var x=E.abrController,g=E.bufferController,O=E.capLevelController,I=E.fpsController,D=this.abrController=new x(this),N=this.bufferController=new g(this),V=this.capLevelController=new O(this),F=new I(this),W=new S.default(this),K=new T.default(this),B=new h.default(this),k=this.levelController=new d.default(this),G=new r.FragmentTracker(this),ne=this.streamController=new c.default(this,G);V.setStreamController(ne),F.setStreamController(ne);var fe=[k,ne];this.networkControllers=fe;var de=[W,K,D,N,V,F,B,G];this.audioTrackController=this.createController(E.audioTrackController,null,fe),this.createController(E.audioStreamController,G,fe),this.subtitleTrackController=this.createController(E.subtitleTrackController,null,fe),this.createController(E.subtitleStreamController,G,fe),this.createController(E.timelineController,null,de),this.emeController=this.createController(E.emeController,null,de),this.cmcdController=this.createController(E.cmcdController,null,de),this.latencyController=this.createController(_.default,null,de),this.coreComponents=de}var P=v.prototype;return P.createController=function(E,x,g){if(E){var O=x?new E(this,x):new E(this);return g&&g.push(O),O}return null},P.on=function(E,x,g){g===void 0&&(g=this),this._emitter.on(E,x,g)},P.once=function(E,x,g){g===void 0&&(g=this),this._emitter.once(E,x,g)},P.removeAllListeners=function(E){this._emitter.removeAllListeners(E)},P.off=function(E,x,g,O){g===void 0&&(g=this),this._emitter.off(E,x,g,O)},P.listeners=function(E){return this._emitter.listeners(E)},P.emit=function(E,x,g){return this._emitter.emit(E,x,g)},P.trigger=function(E,x){if(this.config.debug)return this.emit(E,E,x);try{return this.emit(E,E,x)}catch(g){a.logger.error("An internal error happened while handling event "+E+'. Error message: "'+g.message+'". Here is a stacktrace:',g),this.trigger(l.Events.ERROR,{type:o.ErrorTypes.OTHER_ERROR,details:o.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:E,error:g})}return!1},P.listenerCount=function(E){return this._emitter.listenerCount(E)},P.destroy=function(){a.logger.log("destroy"),this.trigger(l.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(E){return E.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(E){return E.destroy()}),this.coreComponents.length=0},P.attachMedia=function(E){a.logger.log("attachMedia"),this._media=E,this.trigger(l.Events.MEDIA_ATTACHING,{media:E})},P.detachMedia=function(){a.logger.log("detachMedia"),this.trigger(l.Events.MEDIA_DETACHING,void 0),this._media=null},P.loadSource=function(E){this.stopLoad();var x=this.media,g=this.url,O=this.url=b.buildAbsoluteURL(self.location.href,E,{alwaysNormalize:!0});a.logger.log("loadSource:"+O),x&&g&&g!==O&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(x)),this.trigger(l.Events.MANIFEST_LOADING,{url:E})},P.startLoad=function(E){E===void 0&&(E=-1),a.logger.log("startLoad("+E+")"),this.networkControllers.forEach(function(x){x.startLoad(E)})},P.stopLoad=function(){a.logger.log("stopLoad"),this.networkControllers.forEach(function(E){E.stopLoad()})},P.swapAudioCodec=function(){a.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},P.recoverMediaError=function(){a.logger.log("recoverMediaError");var E=this._media;this.detachMedia(),E&&this.attachMedia(E)},P.removeLevel=function(E,x){x===void 0&&(x=0),this.levelController.removeLevel(E,x)},w(v,[{key:"levels",get:function(){var E=this.levelController.levels;return E||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(E){a.logger.log("set currentLevel:"+E),this.loadLevel=E,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(E){a.logger.log("set nextLevel:"+E),this.levelController.manualLevel=E,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(E){a.logger.log("set loadLevel:"+E),this.levelController.manualLevel=E}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(E){this.levelController.nextLoadLevel=E}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(E){a.logger.log("set firstLevel:"+E),this.levelController.firstLevel=E}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(E){a.logger.log("set startLevel:"+E),E!==-1&&(E=Math.max(E,this.minAutoLevel)),this.levelController.startLevel=E}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(E){var x=!!E;x!==this.config.capLevelToPlayerSize&&(x?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=x)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(E){this._autoLevelCapping!==E&&(a.logger.log("set autoLevelCapping:"+E),this._autoLevelCapping=E)}},{key:"bandwidthEstimate",get:function(){var E=this.abrController.bwEstimator;return E?E.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var E=this.levels,x=this.config.minAutoBitrate;if(!E)return 0;for(var g=E.length,O=0;O<g;O++)if(E[O].maxBitrate>x)return O;return 0}},{key:"maxAutoLevel",get:function(){var E=this.levels,x=this.autoLevelCapping,g;return x===-1&&E&&E.length?g=E.length-1:g=x,g}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(E){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,E)}},{key:"audioTracks",get:function(){var E=this.audioTrackController;return E?E.audioTracks:[]}},{key:"audioTrack",get:function(){var E=this.audioTrackController;return E?E.audioTrack:-1},set:function(E){var x=this.audioTrackController;x&&(x.audioTrack=E)}},{key:"subtitleTracks",get:function(){var E=this.subtitleTrackController;return E?E.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var E=this.subtitleTrackController;return E?E.subtitleTrack:-1},set:function(E){var x=this.subtitleTrackController;x&&(x.subtitleTrack=E)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var E=this.subtitleTrackController;return E?E.subtitleDisplay:!1},set:function(E){var x=this.subtitleTrackController;x&&(x.subtitleDisplay=E)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(E){this.config.lowLatencyMode=E}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return l.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:n.hlsDefaultConfig},set:function(E){v.defaultConfig=E}}]),v}();C.defaultConfig=void 0},"./src/is-supported.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"isSupported",function(){return S}),A.d(p,"changeTypeSupported",function(){return T});var b=A("./src/utils/mediasource-helper.ts");function y(){return self.SourceBuffer||self.WebKitSourceBuffer}function S(){var h=Object(b.getMediaSource)();if(!h)return!1;var _=y(),d=h&&typeof h.isTypeSupported=="function"&&h.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!_||_.prototype&&typeof _.prototype.appendBuffer=="function"&&typeof _.prototype.remove=="function";return!!d&&!!r}function T(){var h,_=y();return typeof(_==null||((h=_.prototype)===null||h===void 0)?void 0:h.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return a}),A.d(p,"LoadError",function(){return i});var b=A("./src/polyfills/number.ts"),y=A("./src/errors.ts");function S(f,l){f.prototype=Object.create(l.prototype),f.prototype.constructor=f,r(f,l)}function T(f){var l=typeof Map=="function"?new Map:void 0;return T=function(m){if(m===null||!d(m))return m;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(typeof l!="undefined"){if(l.has(m))return l.get(m);l.set(m,w)}function w(){return h(m,arguments,c(this).constructor)}return w.prototype=Object.create(m.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),r(w,m)},T(f)}function h(f,l,o){return _()?h=Reflect.construct:h=function(w,C,v){var P=[null];P.push.apply(P,C);var R=Function.bind.apply(w,P),E=new R;return v&&r(E,v.prototype),E},h.apply(null,arguments)}function _(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}function d(f){return Function.toString.call(f).indexOf("[native code]")!==-1}function r(f,l){return r=Object.setPrototypeOf||function(m,w){return m.__proto__=w,m},r(f,l)}function c(f){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},c(f)}var t=Math.pow(2,17),a=function(){function f(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var l=f.prototype;return l.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},l.abort=function(){this.loader&&this.loader.abort()},l.load=function(m,w){var C=this,v=m.url;if(!v)return Promise.reject(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:m,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var P=this.config,R=P.fLoader,E=P.loader;return new Promise(function(x,g){C.loader&&C.loader.destroy();var O=C.loader=m.loader=R?new R(P):new E(P),I=n(m),D={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:t};m.stats=O.stats,O.load(I,D,{onSuccess:function(V,F,W,K){C.resetLoader(m,O),x({frag:m,part:null,payload:V.data,networkDetails:K})},onError:function(V,F,W){C.resetLoader(m,O),g(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:m,response:V,networkDetails:W}))},onAbort:function(V,F,W){C.resetLoader(m,O),g(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:m,networkDetails:W}))},onTimeout:function(V,F,W){C.resetLoader(m,O),g(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:m,networkDetails:W}))},onProgress:function(V,F,W,K){w&&w({frag:m,part:null,payload:W,networkDetails:K})}})})},l.loadPart=function(m,w,C){var v=this;this.abort();var P=this.config,R=P.fLoader,E=P.loader;return new Promise(function(x,g){v.loader&&v.loader.destroy();var O=v.loader=m.loader=R?new R(P):new E(P),I=n(m,w),D={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:t};w.stats=O.stats,O.load(I,D,{onSuccess:function(V,F,W,K){v.resetLoader(m,O),v.updateStatsFromPart(m,w);var B={frag:m,part:w,payload:V.data,networkDetails:K};C(B),x(B)},onError:function(V,F,W){v.resetLoader(m,O),g(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:m,part:w,response:V,networkDetails:W}))},onAbort:function(V,F,W){m.stats.aborted=w.stats.aborted,v.resetLoader(m,O),g(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:m,part:w,networkDetails:W}))},onTimeout:function(V,F,W){v.resetLoader(m,O),g(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:m,part:w,networkDetails:W}))}})})},l.updateStatsFromPart=function(m,w){var C=m.stats,v=w.stats,P=v.total;if(C.loaded+=v.loaded,P){var R=Math.round(m.duration/w.duration),E=Math.min(Math.round(C.loaded/P),R),x=R-E,g=x*Math.round(C.loaded/E);C.total=C.loaded+g}else C.total=Math.max(C.loaded,C.total);var O=C.loading,I=v.loading;O.start?O.first+=I.first-I.start:(O.start=I.start,O.first=I.first),O.end=I.end},l.resetLoader=function(m,w){m.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},f}();function n(f,l){l===void 0&&(l=null);var o=l||f,m={frag:f,part:l,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},w=o.byteRangeStartOffset,C=o.byteRangeEndOffset;return Object(b.isFiniteNumber)(w)&&Object(b.isFiniteNumber)(C)&&(m.rangeStart=w,m.rangeEnd=C),m}var i=function(f){S(l,f);function l(o){for(var m,w=arguments.length,C=new Array(w>1?w-1:0),v=1;v<w;v++)C[v-1]=arguments[v];return m=f.call.apply(f,[this].concat(C))||this,m.data=void 0,m.data=o,m}return l}(T(Error))},"./src/loader/fragment.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"ElementaryStreamTypes",function(){return a}),A.d(p,"BaseSegment",function(){return n}),A.d(p,"Fragment",function(){return i}),A.d(p,"Part",function(){return f});var b=A("./src/polyfills/number.ts"),y=A("./node_modules/url-toolkit/src/url-toolkit.js"),S=A.n(y),T=A("./src/utils/logger.ts"),h=A("./src/loader/level-key.ts"),_=A("./src/loader/load-stats.ts");function d(l,o){l.prototype=Object.create(o.prototype),l.prototype.constructor=l,r(l,o)}function r(l,o){return r=Object.setPrototypeOf||function(w,C){return w.__proto__=C,w},r(l,o)}function c(l,o){for(var m=0;m<o.length;m++){var w=o[m];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}function t(l,o,m){return o&&c(l.prototype,o),m&&c(l,m),l}var a;(function(l){l.AUDIO="audio",l.VIDEO="video",l.AUDIOVIDEO="audiovideo"})(a||(a={}));var n=function(){function l(m){var w;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(w={},w[a.AUDIO]=null,w[a.VIDEO]=null,w[a.AUDIOVIDEO]=null,w),this.baseurl=m}var o=l.prototype;return o.setByteRange=function(w,C){var v=w.split("@",2),P=[];v.length===1?P[0]=C?C.byteRangeEndOffset:0:P[0]=parseInt(v[1]),P[1]=parseInt(v[0])+P[0],this._byteRange=P},t(l,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(y.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(w){this._url=w}}]),l}(),i=function(l){d(o,l);function o(w,C){var v;return v=l.call(this,C)||this,v._decryptdata=null,v.rawProgramDateTime=null,v.programDateTime=null,v.tagList=[],v.duration=0,v.sn=0,v.levelkey=void 0,v.type=void 0,v.loader=null,v.level=-1,v.cc=0,v.startPTS=void 0,v.endPTS=void 0,v.appendedPTS=void 0,v.startDTS=void 0,v.endDTS=void 0,v.start=0,v.deltaPTS=void 0,v.maxStartPTS=void 0,v.minEndPTS=void 0,v.stats=new _.LoadStats,v.urlId=0,v.data=void 0,v.bitrateTest=!1,v.title=null,v.initSegment=null,v.type=w,v}var m=o.prototype;return m.createInitializationVector=function(C){for(var v=new Uint8Array(16),P=12;P<16;P++)v[P]=C>>8*(15-P)&255;return v},m.setDecryptDataFromLevelKey=function(C,v){var P=C;return(C==null?void 0:C.method)==="AES-128"&&C.uri&&!C.iv&&(P=h.LevelKey.fromURI(C.uri),P.method=C.method,P.iv=this.createInitializationVector(v),P.keyFormat="identity"),P},m.setElementaryStreamInfo=function(C,v,P,R,E,x){x===void 0&&(x=!1);var g=this.elementaryStreams,O=g[C];if(!O){g[C]={startPTS:v,endPTS:P,startDTS:R,endDTS:E,partial:x};return}O.startPTS=Math.min(O.startPTS,v),O.endPTS=Math.max(O.endPTS,P),O.startDTS=Math.min(O.startDTS,R),O.endDTS=Math.max(O.endDTS,E)},m.clearElementaryStreamInfo=function(){var C=this.elementaryStreams;C[a.AUDIO]=null,C[a.VIDEO]=null,C[a.AUDIOVIDEO]=null},t(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var C=this.sn;typeof C!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&T.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),C=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,C)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(b.isFiniteNumber)(this.programDateTime))return null;var C=Object(b.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+C*1e3}},{key:"encrypted",get:function(){var C;return!!((C=this.decryptdata)!==null&&C!==void 0&&C.keyFormat&&this.decryptdata.uri)}}]),o}(n),f=function(l){d(o,l);function o(m,w,C,v,P){var R;R=l.call(this,C)||this,R.fragOffset=0,R.duration=0,R.gap=!1,R.independent=!1,R.relurl=void 0,R.fragment=void 0,R.index=void 0,R.stats=new _.LoadStats,R.duration=m.decimalFloatingPoint("DURATION"),R.gap=m.bool("GAP"),R.independent=m.bool("INDEPENDENT"),R.relurl=m.enumeratedString("URI"),R.fragment=w,R.index=v;var E=m.enumeratedString("BYTERANGE");return E&&R.setByteRange(E,P),P&&(R.fragOffset=P.fragOffset+P.duration),R}return t(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),o}(n)},"./src/loader/key-loader.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return T});var b=A("./src/events.ts"),y=A("./src/errors.ts"),S=A("./src/utils/logger.ts"),T=function(){function h(d){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=d,this._registerListeners()}var _=h.prototype;return _._registerListeners=function(){this.hls.on(b.Events.KEY_LOADING,this.onKeyLoading,this)},_._unregisterListeners=function(){this.hls.off(b.Events.KEY_LOADING,this.onKeyLoading)},_.destroy=function(){this._unregisterListeners();for(var r in this.loaders){var c=this.loaders[r];c&&c.destroy()}this.loaders={}},_.onKeyLoading=function(r,c){var t=c.frag,a=t.type,n=this.loaders[a];if(!t.decryptdata){S.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var i=t.decryptdata.uri;if(i!==this.decrypturl||this.decryptkey===null){var f=this.hls.config;if(n&&(S.logger.warn("abort previous key loader for type:"+a),n.abort()),!i){S.logger.warn("key uri is falsy");return}var l=f.loader,o=t.loader=this.loaders[a]=new l(f);this.decrypturl=i,this.decryptkey=null;var m={url:i,frag:t,responseType:"arraybuffer"},w={timeout:f.fragLoadingTimeOut,maxRetry:0,retryDelay:f.fragLoadingRetryDelay,maxRetryDelay:f.fragLoadingMaxRetryTimeout,highWaterMark:0},C={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(m,w,C)}else this.decryptkey&&(t.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:t}))},_.loadsuccess=function(r,c,t){var a=t.frag;if(!a.decryptdata){S.logger.error("after key load, decryptdata unset");return}this.decryptkey=a.decryptdata.key=new Uint8Array(r.data),a.loader=null,delete this.loaders[a.type],this.hls.trigger(b.Events.KEY_LOADED,{frag:a})},_.loaderror=function(r,c){var t=c.frag,a=t.loader;a&&a.abort(),delete this.loaders[t.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:t,response:r})},_.loadtimeout=function(r,c){var t=c.frag,a=t.loader;a&&a.abort(),delete this.loaders[t.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:t})},h}()},"./src/loader/level-details.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"LevelDetails",function(){return h});var b=A("./src/polyfills/number.ts");function y(_,d){for(var r=0;r<d.length;r++){var c=d[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(_,c.key,c)}}function S(_,d,r){return d&&y(_.prototype,d),r&&y(_,r),_}var T=10,h=function(){function _(r){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=r}var d=_.prototype;return d.reloaded=function(c){if(!c){this.advanced=!0,this.updated=!0;return}var t=this.lastPartSn-c.lastPartSn,a=this.lastPartIndex-c.lastPartIndex;this.updated=this.endSN!==c.endSN||!!a||!!t,this.advanced=this.endSN>c.endSN||t>0||t===0&&a>0,this.updated||this.advanced?this.misses=Math.floor(c.misses*.6):this.misses=c.misses+1,this.availabilityDelay=c.availabilityDelay},S(_,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(b.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||T}},{key:"drift",get:function(){var c=this.driftEndTime-this.driftStartTime;if(c>0){var t=this.driftEnd-this.driftStart;return t*1e3/c}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var c;return(c=this.fragments)!==null&&c!==void 0&&c.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),_}()},"./src/loader/level-key.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"LevelKey",function(){return h});var b=A("./node_modules/url-toolkit/src/url-toolkit.js"),y=A.n(b);function S(_,d){for(var r=0;r<d.length;r++){var c=d[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(_,c.key,c)}}function T(_,d,r){return d&&S(_.prototype,d),r&&S(_,r),_}var h=function(){_.fromURL=function(r,c){return new _(r,c)},_.fromURI=function(r){return new _(r)};function _(d,r){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,r?this._uri=Object(b.buildAbsoluteURL)(d,r,{alwaysNormalize:!0}):this._uri=d}return T(_,[{key:"uri",get:function(){return this._uri}}]),_}()},"./src/loader/load-stats.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"LoadStats",function(){return b});var b=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return o});var b=A("./src/polyfills/number.ts"),y=A("./node_modules/url-toolkit/src/url-toolkit.js"),S=A.n(y),T=A("./src/loader/fragment.ts"),h=A("./src/loader/level-details.ts"),_=A("./src/loader/level-key.ts"),d=A("./src/utils/attr-list.ts"),r=A("./src/utils/logger.ts"),c=A("./src/utils/codecs.ts"),t=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,a=/#EXT-X-MEDIA:(.*)/g,n=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),i=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),f=/\.(mp4|m4s|m4v|m4a)$/i;function l(P){var R,E;return f.test((R=(E=y.parseURL(P))===null||E===void 0?void 0:E.path)!=null?R:"")}var o=function(){function P(){}return P.findGroup=function(E,x){for(var g=0;g<E.length;g++){var O=E[g];if(O.id===x)return O}},P.convertAVC1ToAVCOTI=function(E){var x=E.split(".");if(x.length>2){var g=x.shift()+".";return g+=parseInt(x.shift()).toString(16),g+=("000"+parseInt(x.shift()).toString(16)).substr(-4),g}return E},P.resolve=function(E,x){return y.buildAbsoluteURL(x,E,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(E,x){var g=[],O={},I=!1;t.lastIndex=0;for(var D;(D=t.exec(E))!=null;)if(D[1]){var N=new d.AttrList(D[1]),V={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:P.resolve(D[2],x)},F=N.decimalResolution("RESOLUTION");F&&(V.width=F.width,V.height=F.height),m((N.CODECS||"").split(/[ ,]+/).filter(function(K){return K}),V),V.videoCodec&&V.videoCodec.indexOf("avc1")!==-1&&(V.videoCodec=P.convertAVC1ToAVCOTI(V.videoCodec)),g.push(V)}else if(D[3]){var W=new d.AttrList(D[3]);W["DATA-ID"]&&(I=!0,O[W["DATA-ID"]]=W)}return{levels:g,sessionData:I?O:null}},P.parseMasterPlaylistMedia=function(E,x,g,O){O===void 0&&(O=[]);var I,D=[],N=0;for(a.lastIndex=0;(I=a.exec(E))!==null;){var V=new d.AttrList(I[1]);if(V.TYPE===g){var F={attrs:V,bitrate:0,id:N++,groupId:V["GROUP-ID"],instreamId:V["INSTREAM-ID"],name:V.NAME||V.LANGUAGE||"",type:g,default:V.bool("DEFAULT"),autoselect:V.bool("AUTOSELECT"),forced:V.bool("FORCED"),lang:V.LANGUAGE,url:V.URI?P.resolve(V.URI,x):""};if(O.length){var W=P.findGroup(O,F.groupId)||O[0];w(F,W,"audioCodec"),w(F,W,"textCodec")}D.push(F)}}return D},P.parseLevelPlaylist=function(E,x,g,O,I){var D=new h.LevelDetails(x),N=D.fragments,V=null,F=0,W=0,K=0,B=0,k=null,G=new T.Fragment(O,x),ne,fe,de,Ee=-1,we=!1;for(n.lastIndex=0,D.m3u8=E;(ne=n.exec(E))!==null;){we&&(we=!1,G=new T.Fragment(O,x),G.start=K,G.sn=F,G.cc=B,G.level=g,V&&(G.initSegment=V,G.rawProgramDateTime=V.rawProgramDateTime));var ce=ne[1];if(ce){G.duration=parseFloat(ce);var be=(" "+ne[2]).slice(1);G.title=be||null,G.tagList.push(be?["INF",ce,be]:["INF",ce])}else if(ne[3])Object(b.isFiniteNumber)(G.duration)&&(G.start=K,de&&(G.levelkey=de),G.sn=F,G.level=g,G.cc=B,G.urlId=I,N.push(G),G.relurl=(" "+ne[3]).slice(1),v(G,k),k=G,K+=G.duration,F++,W=0,we=!0);else if(ne[4]){var ve=(" "+ne[4]).slice(1);k?G.setByteRange(ve,k):G.setByteRange(ve)}else if(ne[5])G.rawProgramDateTime=(" "+ne[5]).slice(1),G.tagList.push(["PROGRAM-DATE-TIME",G.rawProgramDateTime]),Ee===-1&&(Ee=N.length);else{if(ne=ne[0].match(i),!ne){r.logger.warn("No matches on slow regex match for level playlist!");continue}for(fe=1;fe<ne.length&&!(typeof ne[fe]!="undefined");fe++);var ue=(" "+ne[fe]).slice(1),se=(" "+ne[fe+1]).slice(1),q=ne[fe+2]?(" "+ne[fe+2]).slice(1):"";switch(ue){case"PLAYLIST-TYPE":D.type=se.toUpperCase();break;case"MEDIA-SEQUENCE":F=D.startSN=parseInt(se);break;case"SKIP":{var me=new d.AttrList(se),re=me.decimalInteger("SKIPPED-SEGMENTS");if(Object(b.isFiniteNumber)(re)){D.skippedSegments=re;for(var ie=re;ie--;)N.unshift(null);F+=re}var Oe=me.enumeratedString("RECENTLY-REMOVED-DATERANGES");Oe&&(D.recentlyRemovedDateranges=Oe.split(" "));break}case"TARGETDURATION":D.targetduration=parseFloat(se);break;case"VERSION":D.version=parseInt(se);break;case"EXTM3U":break;case"ENDLIST":D.live=!1;break;case"#":(se||q)&&G.tagList.push(q?[se,q]:[se]);break;case"DIS":B++;case"GAP":G.tagList.push([ue]);break;case"BITRATE":G.tagList.push([ue,se]);break;case"DISCONTINUITY-SEQ":B=parseInt(se);break;case"KEY":{var le,$=new d.AttrList(se),J=$.enumeratedString("METHOD"),te=$.URI,Ae=$.hexadecimalInteger("IV"),Se=$.enumeratedString("KEYFORMATVERSIONS"),ke=$.enumeratedString("KEYID"),rt=(le=$.enumeratedString("KEYFORMAT"))!=null?le:"identity",ot=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(ot.indexOf(rt)>-1){r.logger.warn("Keyformat "+rt+" is not supported from the manifest");continue}else if(rt!=="identity")continue;J&&(de=_.LevelKey.fromURL(x,te),te&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(J)>=0&&(de.method=J,de.keyFormat=rt,ke&&(de.keyID=ke),Se&&(de.keyFormatVersions=Se),de.iv=Ae));break}case"START":{var gt=new d.AttrList(se),Et=gt.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(Et)&&(D.startTimeOffset=Et);break}case"MAP":{var Ct=new d.AttrList(se);G.relurl=Ct.URI,Ct.BYTERANGE&&G.setByteRange(Ct.BYTERANGE),G.level=g,G.sn="initSegment",de&&(G.levelkey=de),G.initSegment=null,V=G,we=!0;break}case"SERVER-CONTROL":{var wt=new d.AttrList(se);D.canBlockReload=wt.bool("CAN-BLOCK-RELOAD"),D.canSkipUntil=wt.optionalFloat("CAN-SKIP-UNTIL",0),D.canSkipDateRanges=D.canSkipUntil>0&&wt.bool("CAN-SKIP-DATERANGES"),D.partHoldBack=wt.optionalFloat("PART-HOLD-BACK",0),D.holdBack=wt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Qe=new d.AttrList(se);D.partTarget=Qe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=D.partList;Ue||(Ue=D.partList=[]);var ft=W>0?Ue[Ue.length-1]:void 0,jt=W++,ht=new T.Part(new d.AttrList(se),G,x,jt,ft);Ue.push(ht),G.duration+=ht.duration;break}case"PRELOAD-HINT":{var _t=new d.AttrList(se);D.preloadHint=_t;break}case"RENDITION-REPORT":{var Ye=new d.AttrList(se);D.renditionReports=D.renditionReports||[],D.renditionReports.push(Ye);break}default:r.logger.warn("line parsed but not handled: "+ne);break}}}k&&!k.relurl?(N.pop(),K-=k.duration,D.partList&&(D.fragmentHint=k)):D.partList&&(v(G,k),G.cc=B,D.fragmentHint=G);var We=N.length,Xe=N[0],Te=N[We-1];if(K+=D.skippedSegments*D.targetduration,K>0&&We&&Te){D.averagetargetduration=K/We;var Me=Te.sn;D.endSN=Me!=="initSegment"?Me:0,Xe&&(D.startCC=Xe.cc,Xe.initSegment||D.fragments.every(function(Ve){return Ve.relurl&&l(Ve.relurl)})&&(r.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),G=new T.Fragment(O,x),G.relurl=Te.relurl,G.level=g,G.sn="initSegment",Xe.initSegment=G,D.needSidxRanges=!0))}else D.endSN=0,D.startCC=0;return D.fragmentHint&&(K+=D.fragmentHint.duration),D.totalduration=K,D.endCC=B,Ee>0&&C(N,Ee),D},P}();function m(P,R){["video","audio","text"].forEach(function(E){var x=P.filter(function(O){return Object(c.isCodecType)(O,E)});if(x.length){var g=x.filter(function(O){return O.lastIndexOf("avc1",0)===0||O.lastIndexOf("mp4a",0)===0});R[E+"Codec"]=g.length>0?g[0]:x[0],P=P.filter(function(O){return x.indexOf(O)===-1})}}),R.unknownCodecs=P}function w(P,R,E){var x=R[E];x&&(P[E]=x)}function C(P,R){for(var E=P[R],x=R;x--;){var g=P[x];if(!g)return;g.programDateTime=E.programDateTime-g.duration*1e3,E=g}}function v(P,R){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):R!=null&&R.programDateTime&&(P.programDateTime=R.endProgramDateTime),Object(b.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/polyfills/number.ts"),y=A("./src/events.ts"),S=A("./src/errors.ts"),T=A("./src/utils/logger.ts"),h=A("./src/utils/mp4-tools.ts"),_=A("./src/loader/m3u8-parser.ts"),d=A("./src/types/loader.ts"),r=A("./src/utils/attr-list.ts");function c(n){var i=n.type;switch(i){case d.PlaylistContextType.AUDIO_TRACK:return d.PlaylistLevelType.AUDIO;case d.PlaylistContextType.SUBTITLE_TRACK:return d.PlaylistLevelType.SUBTITLE;default:return d.PlaylistLevelType.MAIN}}function t(n,i){var f=n.url;return(f===void 0||f.indexOf("data:")===0)&&(f=i.url),f}var a=function(){function n(f){this.hls=void 0,this.loaders=Object.create(null),this.hls=f,this.registerListeners()}var i=n.prototype;return i.registerListeners=function(){var l=this.hls;l.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(y.Events.LEVEL_LOADING,this.onLevelLoading,this),l.on(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),l.on(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},i.unregisterListeners=function(){var l=this.hls;l.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(y.Events.LEVEL_LOADING,this.onLevelLoading,this),l.off(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),l.off(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},i.createInternalLoader=function(l){var o=this.hls.config,m=o.pLoader,w=o.loader,C=m||w,v=new C(o);return l.loader=v,this.loaders[l.type]=v,v},i.getInternalLoader=function(l){return this.loaders[l.type]},i.resetInternalLoader=function(l){this.loaders[l]&&delete this.loaders[l]},i.destroyInternalLoaders=function(){for(var l in this.loaders){var o=this.loaders[l];o&&o.destroy(),this.resetInternalLoader(l)}},i.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},i.onManifestLoading=function(l,o){var m=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:d.PlaylistContextType.MANIFEST,url:m,deliveryDirectives:null})},i.onLevelLoading=function(l,o){var m=o.id,w=o.level,C=o.url,v=o.deliveryDirectives;this.load({id:m,groupId:null,level:w,responseType:"text",type:d.PlaylistContextType.LEVEL,url:C,deliveryDirectives:v})},i.onAudioTrackLoading=function(l,o){var m=o.id,w=o.groupId,C=o.url,v=o.deliveryDirectives;this.load({id:m,groupId:w,level:null,responseType:"text",type:d.PlaylistContextType.AUDIO_TRACK,url:C,deliveryDirectives:v})},i.onSubtitleTrackLoading=function(l,o){var m=o.id,w=o.groupId,C=o.url,v=o.deliveryDirectives;this.load({id:m,groupId:w,level:null,responseType:"text",type:d.PlaylistContextType.SUBTITLE_TRACK,url:C,deliveryDirectives:v})},i.load=function(l){var o,m=this.hls.config,w=this.getInternalLoader(l);if(w){var C=w.context;if(C&&C.url===l.url){T.logger.trace("[playlist-loader]: playlist request ongoing");return}T.logger.log("[playlist-loader]: aborting previous loader for type: "+l.type),w.abort()}var v,P,R,E;switch(l.type){case d.PlaylistContextType.MANIFEST:v=m.manifestLoadingMaxRetry,P=m.manifestLoadingTimeOut,R=m.manifestLoadingRetryDelay,E=m.manifestLoadingMaxRetryTimeout;break;case d.PlaylistContextType.LEVEL:case d.PlaylistContextType.AUDIO_TRACK:case d.PlaylistContextType.SUBTITLE_TRACK:v=0,P=m.levelLoadingTimeOut;break;default:v=m.levelLoadingMaxRetry,P=m.levelLoadingTimeOut,R=m.levelLoadingRetryDelay,E=m.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(l),(o=l.deliveryDirectives)!==null&&o!==void 0&&o.part){var x;if(l.type===d.PlaylistContextType.LEVEL&&l.level!==null?x=this.hls.levels[l.level].details:l.type===d.PlaylistContextType.AUDIO_TRACK&&l.id!==null?x=this.hls.audioTracks[l.id].details:l.type===d.PlaylistContextType.SUBTITLE_TRACK&&l.id!==null&&(x=this.hls.subtitleTracks[l.id].details),x){var g=x.partTarget,O=x.targetduration;g&&O&&(P=Math.min(Math.max(g*3,O*.8)*1e3,P))}}var I={timeout:P,maxRetry:v,retryDelay:R,maxRetryDelay:E,highWaterMark:0},D={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(l,I,D)},i.loadsuccess=function(l,o,m,w){if(w===void 0&&(w=null),m.isSidxRequest){this.handleSidxRequest(l,m),this.handlePlaylistLoaded(l,o,m,w);return}this.resetInternalLoader(m.type);var C=l.data;if(C.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(l,m,"no EXTM3U delimiter",w);return}o.parsing.start=performance.now(),C.indexOf("#EXTINF:")>0||C.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(l,o,m,w):this.handleMasterPlaylist(l,o,m,w)},i.loaderror=function(l,o,m){m===void 0&&(m=null),this.handleNetworkError(o,m,!1,l)},i.loadtimeout=function(l,o,m){m===void 0&&(m=null),this.handleNetworkError(o,m,!0)},i.handleMasterPlaylist=function(l,o,m,w){var C=this.hls,v=l.data,P=t(l,m),R=_.default.parseMasterPlaylist(v,P),E=R.levels,x=R.sessionData;if(!E.length){this.handleManifestParsingError(l,m,"no level found in manifest",w);return}var g=E.map(function(F){return{id:F.attrs.AUDIO,audioCodec:F.audioCodec}}),O=E.map(function(F){return{id:F.attrs.SUBTITLES,textCodec:F.textCodec}}),I=_.default.parseMasterPlaylistMedia(v,P,"AUDIO",g),D=_.default.parseMasterPlaylistMedia(v,P,"SUBTITLES",O),N=_.default.parseMasterPlaylistMedia(v,P,"CLOSED-CAPTIONS");if(I.length){var V=I.some(function(F){return!F.url});!V&&E[0].audioCodec&&!E[0].attrs.AUDIO&&(T.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),I.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new r.AttrList({}),bitrate:0,url:""}))}C.trigger(y.Events.MANIFEST_LOADED,{levels:E,audioTracks:I,subtitles:D,captions:N,url:P,stats:o,networkDetails:w,sessionData:x})},i.handleTrackOrLevelPlaylist=function(l,o,m,w){var C=this.hls,v=m.id,P=m.level,R=m.type,E=t(l,m),x=Object(b.isFiniteNumber)(v)?v:0,g=Object(b.isFiniteNumber)(P)?P:x,O=c(m),I=_.default.parseLevelPlaylist(l.data,E,g,O,x);if(!I.fragments.length){C.trigger(y.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:E,reason:"no fragments found in level",level:typeof m.level=="number"?m.level:void 0});return}if(R===d.PlaylistContextType.MANIFEST){var D={attrs:new r.AttrList({}),bitrate:0,details:I,name:"",url:E};C.trigger(y.Events.MANIFEST_LOADED,{levels:[D],audioTracks:[],url:E,stats:o,networkDetails:w,sessionData:null})}if(o.parsing.end=performance.now(),I.needSidxRanges){var N,V=(N=I.fragments[0].initSegment)===null||N===void 0?void 0:N.url;this.load({url:V,isSidxRequest:!0,type:R,level:P,levelDetails:I,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}m.levelDetails=I,this.handlePlaylistLoaded(l,o,m,w)},i.handleSidxRequest=function(l,o){var m=Object(h.parseSegmentIndex)(new Uint8Array(l.data));if(!m)return;var w=m.references,C=o.levelDetails;w.forEach(function(v,P){var R=v.info,E=C.fragments[P];E.byteRange.length===0&&E.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),E.initSegment&&E.initSegment.setByteRange(String(m.moovEndOffset)+"@0")})},i.handleManifestParsingError=function(l,o,m,w){this.hls.trigger(y.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===d.PlaylistContextType.MANIFEST,url:l.url,reason:m,response:l,context:o,networkDetails:w})},i.handleNetworkError=function(l,o,m,w){m===void 0&&(m=!1),T.logger.warn("[playlist-loader]: A network "+(m?"timeout":"error")+" occurred while loading "+l.type+" level: "+l.level+" id: "+l.id+' group-id: "'+l.groupId+'"');var C=S.ErrorDetails.UNKNOWN,v=!1,P=this.getInternalLoader(l);switch(l.type){case d.PlaylistContextType.MANIFEST:C=m?S.ErrorDetails.MANIFEST_LOAD_TIMEOUT:S.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case d.PlaylistContextType.LEVEL:C=m?S.ErrorDetails.LEVEL_LOAD_TIMEOUT:S.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case d.PlaylistContextType.AUDIO_TRACK:C=m?S.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:S.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case d.PlaylistContextType.SUBTITLE_TRACK:C=m?S.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:S.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}P&&this.resetInternalLoader(l.type);var R={type:S.ErrorTypes.NETWORK_ERROR,details:C,fatal:v,url:l.url,loader:P,context:l,networkDetails:o};w&&(R.response=w),this.hls.trigger(y.Events.ERROR,R)},i.handlePlaylistLoaded=function(l,o,m,w){var C=m.type,v=m.level,P=m.id,R=m.groupId,E=m.loader,x=m.levelDetails,g=m.deliveryDirectives;if(!(x!=null&&x.targetduration)){this.handleManifestParsingError(l,m,"invalid target duration",w);return}if(!E)return;x.live&&(E.getCacheAge&&(x.ageHeader=E.getCacheAge()||0),(!E.getCacheAge||isNaN(x.ageHeader))&&(x.ageHeader=0));switch(C){case d.PlaylistContextType.MANIFEST:case d.PlaylistContextType.LEVEL:this.hls.trigger(y.Events.LEVEL_LOADED,{details:x,level:v||0,id:P||0,stats:o,networkDetails:w,deliveryDirectives:g});break;case d.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(y.Events.AUDIO_TRACK_LOADED,{details:x,id:P||0,groupId:R||"",stats:o,networkDetails:w,deliveryDirectives:g});break;case d.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(y.Events.SUBTITLE_TRACK_LOADED,{details:x,id:P||0,groupId:R||"",stats:o,networkDetails:w,deliveryDirectives:g});break}},n}();p.default=a},"./src/polyfills/number.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"isFiniteNumber",function(){return b}),A.d(p,"MAX_SAFE_INTEGER",function(){return y});var b=Number.isFinite||function(S){return typeof S=="number"&&isFinite(S)},y=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(L,p,A){"use strict";A.r(p);var b=function(){function y(){}return y.getSilentFrame=function(T,h){switch(T){case"mp4a.40.2":if(h===1)return new Uint8Array([0,200,0,128,35,128]);if(h===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(h===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(h===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(h===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(h===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(h===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(h===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(h===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},y}();p.default=b},"./src/remux/mp4-generator.ts":function(L,p,A){"use strict";A.r(p);var b=Math.pow(2,32)-1,y=function(){function S(){}return S.init=function(){S.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var h;for(h in S.types)S.types.hasOwnProperty(h)&&(S.types[h]=[h.charCodeAt(0),h.charCodeAt(1),h.charCodeAt(2),h.charCodeAt(3)]);var _=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),d=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);S.HDLR_TYPES={video:_,audio:d};var r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),c=new Uint8Array([0,0,0,0,0,0,0,0]);S.STTS=S.STSC=S.STCO=c,S.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),S.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),S.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),S.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var t=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);S.FTYP=S.box(S.types.ftyp,t,n,t,a),S.DINF=S.box(S.types.dinf,S.box(S.types.dref,r))},S.box=function(h){for(var _=8,d=arguments.length,r=new Array(d>1?d-1:0),c=1;c<d;c++)r[c-1]=arguments[c];for(var t=r.length,a=t;t--;)_+=r[t].byteLength;var n=new Uint8Array(_);for(n[0]=_>>24&255,n[1]=_>>16&255,n[2]=_>>8&255,n[3]=_&255,n.set(h,4),t=0,_=8;t<a;t++)n.set(r[t],_),_+=r[t].byteLength;return n},S.hdlr=function(h){return S.box(S.types.hdlr,S.HDLR_TYPES[h])},S.mdat=function(h){return S.box(S.types.mdat,h)},S.mdhd=function(h,_){_*=h;var d=Math.floor(_/(b+1)),r=Math.floor(_%(b+1));return S.box(S.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,h>>24&255,h>>16&255,h>>8&255,h&255,d>>24,d>>16&255,d>>8&255,d&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))},S.mdia=function(h){return S.box(S.types.mdia,S.mdhd(h.timescale,h.duration),S.hdlr(h.type),S.minf(h))},S.mfhd=function(h){return S.box(S.types.mfhd,new Uint8Array([0,0,0,0,h>>24,h>>16&255,h>>8&255,h&255]))},S.minf=function(h){return h.type==="audio"?S.box(S.types.minf,S.box(S.types.smhd,S.SMHD),S.DINF,S.stbl(h)):S.box(S.types.minf,S.box(S.types.vmhd,S.VMHD),S.DINF,S.stbl(h))},S.moof=function(h,_,d){return S.box(S.types.moof,S.mfhd(h),S.traf(d,_))},S.moov=function(h){for(var _=h.length,d=[];_--;)d[_]=S.trak(h[_]);return S.box.apply(null,[S.types.moov,S.mvhd(h[0].timescale,h[0].duration)].concat(d).concat(S.mvex(h)))},S.mvex=function(h){for(var _=h.length,d=[];_--;)d[_]=S.trex(h[_]);return S.box.apply(null,[S.types.mvex].concat(d))},S.mvhd=function(h,_){_*=h;var d=Math.floor(_/(b+1)),r=Math.floor(_%(b+1)),c=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,h>>24&255,h>>16&255,h>>8&255,h&255,d>>24,d>>16&255,d>>8&255,d&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return S.box(S.types.mvhd,c)},S.sdtp=function(h){var _=h.samples||[],d=new Uint8Array(4+_.length),r,c;for(r=0;r<_.length;r++)c=_[r].flags,d[r+4]=c.dependsOn<<4|c.isDependedOn<<2|c.hasRedundancy;return S.box(S.types.sdtp,d)},S.stbl=function(h){return S.box(S.types.stbl,S.stsd(h),S.box(S.types.stts,S.STTS),S.box(S.types.stsc,S.STSC),S.box(S.types.stsz,S.STSZ),S.box(S.types.stco,S.STCO))},S.avc1=function(h){var _=[],d=[],r,c,t;for(r=0;r<h.sps.length;r++)c=h.sps[r],t=c.byteLength,_.push(t>>>8&255),_.push(t&255),_=_.concat(Array.prototype.slice.call(c));for(r=0;r<h.pps.length;r++)c=h.pps[r],t=c.byteLength,d.push(t>>>8&255),d.push(t&255),d=d.concat(Array.prototype.slice.call(c));var a=S.box(S.types.avcC,new Uint8Array([1,_[3],_[4],_[5],252|3,224|h.sps.length].concat(_).concat([h.pps.length]).concat(d))),n=h.width,i=h.height,f=h.pixelRatio[0],l=h.pixelRatio[1];return S.box(S.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>8&255,n&255,i>>8&255,i&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,S.box(S.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),S.box(S.types.pasp,new Uint8Array([f>>24,f>>16&255,f>>8&255,f&255,l>>24,l>>16&255,l>>8&255,l&255])))},S.esds=function(h){var _=h.config.length;return new Uint8Array([0,0,0,0,3,23+_,0,1,0,4,15+_,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([_]).concat(h.config).concat([6,1,2]))},S.mp4a=function(h){var _=h.samplerate;return S.box(S.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,h.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]),S.box(S.types.esds,S.esds(h)))},S.mp3=function(h){var _=h.samplerate;return S.box(S.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,h.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]))},S.stsd=function(h){return h.type==="audio"?!h.isAAC&&h.codec==="mp3"?S.box(S.types.stsd,S.STSD,S.mp3(h)):S.box(S.types.stsd,S.STSD,S.mp4a(h)):S.box(S.types.stsd,S.STSD,S.avc1(h))},S.tkhd=function(h){var _=h.id,d=h.duration*h.timescale,r=h.width,c=h.height,t=Math.floor(d/(b+1)),a=Math.floor(d%(b+1));return S.box(S.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,_>>24&255,_>>16&255,_>>8&255,_&255,0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,a>>24,a>>16&255,a>>8&255,a&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,c>>8&255,c&255,0,0]))},S.traf=function(h,_){var d=S.sdtp(h),r=h.id,c=Math.floor(_/(b+1)),t=Math.floor(_%(b+1));return S.box(S.types.traf,S.box(S.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),S.box(S.types.tfdt,new Uint8Array([1,0,0,0,c>>24,c>>16&255,c>>8&255,c&255,t>>24,t>>16&255,t>>8&255,t&255])),S.trun(h,d.length+16+20+8+16+8+8),d)},S.trak=function(h){return h.duration=h.duration||4294967295,S.box(S.types.trak,S.tkhd(h),S.mdia(h))},S.trex=function(h){var _=h.id;return S.box(S.types.trex,new Uint8Array([0,0,0,0,_>>24,_>>16&255,_>>8&255,_&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},S.trun=function(h,_){var d=h.samples||[],r=d.length,c=12+16*r,t=new Uint8Array(c),a,n,i,f,l,o;for(_+=8+c,t.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255],0),a=0;a<r;a++)n=d[a],i=n.duration,f=n.size,l=n.flags,o=n.cts,t.set([i>>>24&255,i>>>16&255,i>>>8&255,i&255,f>>>24&255,f>>>16&255,f>>>8&255,f&255,l.isLeading<<2|l.dependsOn,l.isDependedOn<<6|l.hasRedundancy<<4|l.paddingValue<<1|l.isNonSync,l.degradPrio&240<<8,l.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*a);return S.box(S.types.trun,t)},S.initSegment=function(h){S.types||S.init();var _=S.moov(h),d=new Uint8Array(S.FTYP.byteLength+_.byteLength);return d.set(S.FTYP),d.set(_,S.FTYP.byteLength),d},S}();y.types=void 0,y.HDLR_TYPES=void 0,y.STTS=void 0,y.STSC=void 0,y.STCO=void 0,y.STSZ=void 0,y.VMHD=void 0,y.SMHD=void 0,y.STSD=void 0,y.FTYP=void 0,y.DINF=void 0,p.default=y},"./src/remux/mp4-remuxer.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return o}),A.d(p,"normalizePts",function(){return m});var b=A("./src/polyfills/number.ts"),y=A("./src/remux/aac-helper.ts"),S=A("./src/remux/mp4-generator.ts"),T=A("./src/events.ts"),h=A("./src/errors.ts"),_=A("./src/utils/logger.ts"),d=A("./src/types/loader.ts"),r=A("./src/utils/timescale-conversion.ts");function c(){return c=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var E=arguments[R];for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(P[x]=E[x])}return P},c.apply(this,arguments)}var t=10*1e3,a=1024,n=1152,i=null,f=null,l=!1,o=function(){function P(E,x,g,O){if(O===void 0&&(O=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=E,this.config=x,this.typeSupported=g,this.ISGenerated=!1,i===null){var I=navigator.userAgent||"",D=I.match(/Chrome\/(\d+)/i);i=D?parseInt(D[1]):0}if(f===null){var N=navigator.userAgent.match(/Safari\/(\d+)/i);f=N?parseInt(N[1]):0}l=!!i&&i<75||!!f&&f<600}var R=P.prototype;return R.destroy=function(){},R.resetTimeStamp=function(x){_.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=x},R.resetNextTimestamp=function(){_.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},R.resetInitSegment=function(){_.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},R.getVideoStartPts=function(x){var g=!1,O=x.reduce(function(I,D){var N=D.pts-I;return N<-4294967296?(g=!0,m(I,D.pts)):N>0?I:D.pts},x[0].pts);return g&&_.logger.debug("PTS rollover detected"),O},R.remux=function(x,g,O,I,D,N,V,F){var W,K,B,k,G,ne,fe=D,de=D,Ee=x.pid>-1,we=g.pid>-1,ce=g.samples.length,be=x.samples.length>0,ve=ce>1,ue=(!Ee||be)&&(!we||ve)||this.ISGenerated||V;if(ue){this.ISGenerated||(B=this.generateIS(x,g,D));var se=this.isVideoContiguous,q=-1;if(ve&&(q=w(g.samples),!se&&this.config.forceKeyFrameOnDiscontinuity))if(ne=!0,q>0){_.logger.warn("[mp4-remuxer]: Dropped "+q+" out of "+ce+" video samples due to a missing keyframe");var me=this.getVideoStartPts(g.samples);g.samples=g.samples.slice(q),g.dropped+=q,de+=(g.samples[0].pts-me)/(g.timescale||9e4)}else q===-1&&(_.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),ne=!1);if(this.ISGenerated){if(be&&ve){var re=this.getVideoStartPts(g.samples),ie=m(x.samples[0].pts,re)-re,Oe=ie/g.inputTimeScale;fe+=Math.max(0,Oe),de+=Math.max(0,-Oe)}if(be){if(x.samplerate||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),B=this.generateIS(x,g,D)),K=this.remuxAudio(x,fe,this.isAudioContiguous,N,we||ve||F===d.PlaylistLevelType.AUDIO?de:void 0),ve){var le=K?K.endPTS-K.startPTS:0;g.inputTimeScale||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),B=this.generateIS(x,g,D)),W=this.remuxVideo(g,de,se,le)}}else ve&&(W=this.remuxVideo(g,de,se,0));W&&(W.firstKeyFrame=q,W.independent=q!==-1)}}return this.ISGenerated&&(O.samples.length&&(G=this.remuxID3(O,D)),I.samples.length&&(k=this.remuxText(I,D))),{audio:K,video:W,initSegment:B,independent:ne,text:k,id3:G}},R.generateIS=function(x,g,O){var I=x.samples,D=g.samples,N=this.typeSupported,V={},F=!Object(b.isFiniteNumber)(this._initPTS),W="audio/mp4",K,B,k;if(F&&(K=B=Infinity),x.config&&I.length&&(x.timescale=x.samplerate,x.isAAC||(N.mpeg?(W="audio/mpeg",x.codec=""):N.mp3&&(x.codec="mp3")),V.audio={id:"audio",container:W,codec:x.codec,initSegment:!x.isAAC&&N.mpeg?new Uint8Array(0):S.default.initSegment([x]),metadata:{channelCount:x.channelCount}},F&&(k=x.inputTimeScale,K=B=I[0].pts-Math.round(k*O))),g.sps&&g.pps&&D.length&&(g.timescale=g.inputTimeScale,V.video={id:"main",container:"video/mp4",codec:g.codec,initSegment:S.default.initSegment([g]),metadata:{width:g.width,height:g.height}},F)){k=g.inputTimeScale;var G=this.getVideoStartPts(D),ne=Math.round(k*O);B=Math.min(B,m(D[0].dts,G)-ne),K=Math.min(K,G-ne)}if(Object.keys(V).length)return this.ISGenerated=!0,F&&(this._initPTS=K,this._initDTS=B),{tracks:V,initPTS:K,timescale:k}},R.remuxVideo=function(x,g,O,I){var D=x.inputTimeScale,N=x.samples,V=[],F=N.length,W=this._initPTS,K=this.nextAvcDts,B=8,k,G,ne,fe=Number.POSITIVE_INFINITY,de=Number.NEGATIVE_INFINITY,Ee=0,we=!1;if(!O||K===null){var ce=g*D,be=N[0].pts-m(N[0].dts,N[0].pts);K=ce-be}for(var ve=0;ve<F;ve++){var ue=N[ve];if(ue.pts=m(ue.pts-W,K),ue.dts=m(ue.dts-W,K),ue.dts>ue.pts){var se=9e4*.2;Ee=Math.max(Math.min(Ee,ue.pts-ue.dts),-1*se)}ue.dts<N[ve>0?ve-1:ve].dts&&(we=!0)}we&&N.sort(function(ut,je){var tt=ut.dts-je.dts,nt=ut.pts-je.pts;return tt||nt}),G=N[0].dts,ne=N[N.length-1].dts;var q=Math.round((ne-G)/(F-1));if(Ee<0){if(Ee<q*-2){_.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(r.toMsFromMpegTsClock)(-q,!0)+" ms");for(var me=Ee,re=0;re<F;re++)N[re].dts=me=Math.max(me,N[re].pts-q),N[re].pts=Math.max(me,N[re].pts)}else{_.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(r.toMsFromMpegTsClock)(Ee,!0)+" ms to overcome this issue");for(var ie=0;ie<F;ie++)N[ie].dts=N[ie].dts+Ee}G=N[0].dts}if(O){var Oe=G-K,le=Oe>q,$=Oe<-1;if(le||$){le?_.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(Oe,!0)+" ms ("+Oe+"dts) hole between fragments detected, filling it"):_.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(-Oe,!0)+" ms ("+Oe+"dts) overlapping between fragments detected"),G=K;var J=N[0].pts-Oe;N[0].dts=G,N[0].pts=J,_.logger.log("Video: First PTS/DTS adjusted: "+Object(r.toMsFromMpegTsClock)(J,!0)+"/"+Object(r.toMsFromMpegTsClock)(G,!0)+", delta: "+Object(r.toMsFromMpegTsClock)(Oe,!0)+" ms")}}l&&(G=Math.max(0,G));for(var te=0,Ae=0,Se=0;Se<F;Se++){for(var ke=N[Se],rt=ke.units,ot=rt.length,gt=0,Et=0;Et<ot;Et++)gt+=rt[Et].data.length;Ae+=gt,te+=ot,ke.length=gt,ke.dts=Math.max(ke.dts,G),ke.pts=Math.max(ke.pts,ke.dts,0),fe=Math.min(ke.pts,fe),de=Math.max(ke.pts,de)}ne=N[F-1].dts;var Ct=Ae+4*te+8,wt;try{wt=new Uint8Array(Ct)}catch(ut){this.observer.emit(T.Events.ERROR,T.Events.ERROR,{type:h.ErrorTypes.MUX_ERROR,details:h.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ct,reason:"fail allocating video mdat "+Ct});return}var Qe=new DataView(wt.buffer);Qe.setUint32(0,Ct),wt.set(S.default.types.mdat,4);for(var Ue=0;Ue<F;Ue++){for(var ft=N[Ue],jt=ft.units,ht=0,_t=0,Ye=jt.length;_t<Ye;_t++){var We=jt[_t],Xe=We.data,Te=We.data.byteLength;Qe.setUint32(B,Te),B+=4,wt.set(Xe,B),B+=Te,ht+=4+Te}if(Ue<F-1)k=N[Ue+1].dts-ft.dts;else{var Me=this.config,Ve=ft.dts-N[Ue>0?Ue-1:Ue].dts;if(Me.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ge=Math.floor(Me.maxBufferHole*D),Ze=(I?fe+I*D:this.nextAudioPts)-ft.pts;Ze>Ge?(k=Ze-Ve,k<0&&(k=Ve),_.logger.log("[mp4-remuxer]: It is approximately "+Ze/90+" ms to the next segment; using duration "+k/90+" ms for the last video frame.")):k=Ve}else k=Ve}var mt=Math.round(ft.pts-ft.dts);V.push(new C(ft.key,k,ht,mt))}if(V.length&&i&&i<70){var Pt=V[0].flags;Pt.dependsOn=2,Pt.isNonSync=0}console.assert(k!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=K=ne+k,this.isVideoContiguous=!0;var Gt=S.default.moof(x.sequenceNumber++,G,c({},x,{samples:V})),dn="video",Tt={data1:Gt,data2:wt,startPTS:fe/D,endPTS:(de+k)/D,startDTS:G/D,endDTS:K/D,type:dn,hasAudio:!1,hasVideo:!0,nb:V.length,dropped:x.dropped};return x.samples=[],x.dropped=0,console.assert(wt.length,"MDAT length must not be zero"),Tt},R.remuxAudio=function(x,g,O,I,D){var N=x.inputTimeScale,V=x.samplerate?x.samplerate:N,F=N/V,W=x.isAAC?a:n,K=W*F,B=this._initPTS,k=!x.isAAC&&this.typeSupported.mpeg,G=[],ne=x.samples,fe=k?0:8,de=this.nextAudioPts||-1,Ee=g*N;if(this.isAudioContiguous=O=O||ne.length&&de>0&&(I&&Math.abs(Ee-de)<9e3||Math.abs(m(ne[0].pts-B,Ee)-de)<20*K),ne.forEach(function(Xe){Xe.pts=m(Xe.pts-B,Ee)}),!O||de<0){if(ne=ne.filter(function(Xe){return Xe.pts>=0}),!ne.length)return;D===0?de=0:I?de=Math.max(0,Ee):de=ne[0].pts}if(x.isAAC)for(var we=D!==void 0,ce=this.config.maxAudioFramesDrift,be=0,ve=de;be<ne.length;be++){var ue=ne[be],se=ue.pts,q=se-ve,me=Math.abs(1e3*q/N);if(q<=-ce*K&&we)be===0&&(_.logger.warn("Audio frame @ "+(se/N).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*q/N)+" ms."),this.nextAudioPts=de=ve=se);else if(q>=ce*K&&me<t&&we){var re=Math.round(q/K);ve=se-re*K,ve<0&&(re--,ve+=K),be===0&&(this.nextAudioPts=de=ve),_.logger.warn("[mp4-remuxer]: Injecting "+re+" audio frame @ "+(ve/N).toFixed(3)+"s due to "+Math.round(1e3*q/N)+" ms gap.");for(var ie=0;ie<re;ie++){var Oe=Math.max(ve,0),le=y.default.getSilentFrame(x.manifestCodec||x.codec,x.channelCount);le||(_.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),le=ue.unit.subarray()),ne.splice(be,0,{unit:le,pts:Oe}),ve+=K,be++}}ue.pts=ve,ve+=K}for(var $=null,J=null,te,Ae=0,Se=ne.length;Se--;)Ae+=ne[Se].unit.byteLength;for(var ke=0,rt=ne.length;ke<rt;ke++){var ot=ne[ke],gt=ot.unit,Et=ot.pts;if(J!==null){var Ct=G[ke-1];Ct.duration=Math.round((Et-J)/F)}else if(O&&x.isAAC&&(Et=de),$=Et,Ae>0){Ae+=fe;try{te=new Uint8Array(Ae)}catch(Xe){this.observer.emit(T.Events.ERROR,T.Events.ERROR,{type:h.ErrorTypes.MUX_ERROR,details:h.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ae,reason:"fail allocating audio mdat "+Ae});return}if(!k){var wt=new DataView(te.buffer);wt.setUint32(0,Ae),te.set(S.default.types.mdat,4)}}else return;te.set(gt,fe);var Qe=gt.byteLength;fe+=Qe,G.push(new C(!0,W,Qe,0)),J=Et}var Ue=G.length;if(!Ue)return;var ft=G[G.length-1];this.nextAudioPts=de=J+F*ft.duration;var jt=k?new Uint8Array(0):S.default.moof(x.sequenceNumber++,$/F,c({},x,{samples:G}));x.samples=[];var ht=$/N,_t=de/N,Ye="audio",We={data1:jt,data2:te,startPTS:ht,endPTS:_t,startDTS:ht,endDTS:_t,type:Ye,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(te.length,"MDAT length must not be zero"),We},R.remuxEmptyAudio=function(x,g,O,I){var D=x.inputTimeScale,N=x.samplerate?x.samplerate:D,V=D/N,F=this.nextAudioPts,W=(F!==null?F:I.startDTS*D)+this._initDTS,K=I.endDTS*D+this._initDTS,B=V*a,k=Math.ceil((K-W)/B),G=y.default.getSilentFrame(x.manifestCodec||x.codec,x.channelCount);if(_.logger.warn("[mp4-remuxer]: remux empty Audio"),!G){_.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ne=[],fe=0;fe<k;fe++){var de=W+fe*B;ne.push({unit:G,pts:de,dts:de})}return x.samples=ne,this.remuxAudio(x,g,O,!1)},R.remuxID3=function(x,g){var O=x.samples.length;if(!O)return;for(var I=x.inputTimeScale,D=this._initPTS,N=this._initDTS,V=0;V<O;V++){var F=x.samples[V];F.pts=m(F.pts-D,g*I)/I,F.dts=m(F.dts-N,g*I)/I}var W=x.samples;return x.samples=[],{samples:W}},R.remuxText=function(x,g){var O=x.samples.length;if(!O)return;for(var I=x.inputTimeScale,D=this._initPTS,N=0;N<O;N++){var V=x.samples[N];V.pts=m(V.pts-D,g*I)/I}x.samples.sort(function(W,K){return W.pts-K.pts});var F=x.samples;return x.samples=[],{samples:F}},P}();function m(P,R){var E;if(R===null)return P;for(R<P?E=-8589934592:E=8589934592;Math.abs(P-R)>4294967296;)P+=E;return P}function w(P){for(var R=0;R<P.length;R++)if(P[R].key)return R;return-1}var C=function(R,E,x,g){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=E,this.size=x,this.cts=g,this.flags=new v(R)},v=function(R){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=R?2:1,this.isNonSync=R?0:1}},"./src/remux/passthrough-remuxer.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/polyfills/number.ts"),y=A("./src/utils/mp4-tools.ts"),S=A("./src/loader/fragment.ts"),T=A("./src/utils/logger.ts"),h=function(){function r(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var c=r.prototype;return c.destroy=function(){},c.resetTimeStamp=function(a){this.initPTS=a,this.lastEndDTS=null},c.resetNextTimestamp=function(){this.lastEndDTS=null},c.resetInitSegment=function(a,n,i){this.audioCodec=n,this.videoCodec=i,this.generateInitSegment(a),this.emitInitSegment=!0},c.generateInitSegment=function(a){var n=this.audioCodec,i=this.videoCodec;if(!a||!a.byteLength){this.initTracks=void 0,this.initData=void 0;return}var f=this.initData=Object(y.parseInitSegment)(a);n||(n=d(f.audio,S.ElementaryStreamTypes.AUDIO)),i||(i=d(f.video,S.ElementaryStreamTypes.VIDEO));var l={};f.audio&&f.video?l.audiovideo={container:"video/mp4",codec:n+","+i,initSegment:a,id:"main"}:f.audio?l.audio={container:"audio/mp4",codec:n,initSegment:a,id:"audio"}:f.video?l.video={container:"video/mp4",codec:i,initSegment:a,id:"main"}:T.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=l},c.remux=function(a,n,i,f,l){var o=this.initPTS,m=this.lastEndDTS,w={audio:void 0,video:void 0,text:f,id3:i,initSegment:void 0};Object(b.isFiniteNumber)(m)||(m=this.lastEndDTS=l||0);var C=n.samples;if(!C||!C.length)return w;var v={initPTS:void 0,timescale:1},P=this.initData;if((!P||!P.length)&&(this.generateInitSegment(C),P=this.initData),!P||!P.length)return T.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),w;this.emitInitSegment&&(v.tracks=this.initTracks,this.emitInitSegment=!1),Object(b.isFiniteNumber)(o)||(this.initPTS=v.initPTS=o=_(P,C,m));var R=Object(y.getDuration)(C,P),E=m,x=R+E;Object(y.offsetStartDTS)(P,C,o),R>0?this.lastEndDTS=x:(T.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var g=!!P.audio,O=!!P.video,I="";g&&(I+="audio"),O&&(I+="video");var D={data1:C,startPTS:E,startDTS:E,endPTS:x,endDTS:x,type:I,hasAudio:g,hasVideo:O,nb:1,dropped:0};return w.audio=D.type==="audio"?D:void 0,w.video=D.type!=="audio"?D:void 0,w.text=f,w.id3=i,w.initSegment=v,w},r}(),_=function(c,t,a){return Object(y.getStartDTS)(c,t)-a};function d(r,c){var t=r==null?void 0:r.codec;return t&&t.length>4?t:t==="hvc1"?"hvc1.1.c.L120.90":t==="av01"?"av01.0.04M.08":t==="avc1"||c===S.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}p.default=h},"./src/task-loop.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return b});var b=function(){function y(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var S=y.prototype;return S.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},S.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},S.onHandlerDestroyed=function(){},S.hasInterval=function(){return!!this._tickInterval},S.hasNextTick=function(){return!!this._tickTimer},S.setInterval=function(h){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,h),!0)},S.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},S.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},S.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},S.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},S.doTick=function(){},y}()},"./src/types/cmcd.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"CMCDVersion",function(){return b}),A.d(p,"CMCDObjectType",function(){return y}),A.d(p,"CMCDStreamingFormat",function(){return S}),A.d(p,"CMCDStreamType",function(){return T});var b=1,y;(function(h){h.MANIFEST="m",h.AUDIO="a",h.VIDEO="v",h.MUXED="av",h.INIT="i",h.CAPTION="c",h.TIMED_TEXT="tt",h.KEY="k",h.OTHER="o"})(y||(y={}));var S;(function(h){h.DASH="d",h.HLS="h",h.SMOOTH="s",h.OTHER="o"})(S||(S={}));var T;(function(h){h.VOD="v",h.LIVE="l"})(T||(T={}))},"./src/types/level.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"HlsSkip",function(){return S}),A.d(p,"getSkipValue",function(){return T}),A.d(p,"HlsUrlParameters",function(){return h}),A.d(p,"Level",function(){return _});function b(d,r){for(var c=0;c<r.length;c++){var t=r[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(d,t.key,t)}}function y(d,r,c){return r&&b(d.prototype,r),c&&b(d,c),d}var S;(function(d){d.No="",d.Yes="YES",d.v2="v2"})(S||(S={}));function T(d,r){var c=d.canSkipUntil,t=d.canSkipDateRanges,a=d.endSN,n=r!==void 0?r-a:0;return c&&n<c?t?S.v2:S.Yes:S.No}var h=function(){function d(c,t,a){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=c,this.part=t,this.skip=a}var r=d.prototype;return r.addDirectives=function(t){var a=new self.URL(t);return this.msn!==void 0&&a.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&a.searchParams.set("_HLS_part",this.part.toString()),this.skip&&a.searchParams.set("_HLS_skip",this.skip),a.toString()},d}(),_=function(){function d(r){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[r.url],this.attrs=r.attrs,this.bitrate=r.bitrate,r.details&&(this.details=r.details),this.id=r.id||0,this.name=r.name,this.width=r.width||0,this.height=r.height||0,this.audioCodec=r.audioCodec,this.videoCodec=r.videoCodec,this.unknownCodecs=r.unknownCodecs,this.codecSet=[r.videoCodec,r.audioCodec].filter(function(c){return c}).join(",").replace(/\.[^.,]+/g,"")}return y(d,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(c){var t=c%this.url.length;this._urlId!==t&&(this.details=void 0,this._urlId=t)}}]),d}()},"./src/types/loader.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"PlaylistContextType",function(){return b}),A.d(p,"PlaylistLevelType",function(){return y});var b;(function(S){S.MANIFEST="manifest",S.LEVEL="level",S.AUDIO_TRACK="audioTrack",S.SUBTITLE_TRACK="subtitleTrack"})(b||(b={}));var y;(function(S){S.MAIN="main",S.AUDIO="audio",S.SUBTITLE="subtitle"})(y||(y={}))},"./src/types/transmuxer.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"ChunkMetadata",function(){return b});var b=function(T,h,_,d,r,c){d===void 0&&(d=0),r===void 0&&(r=-1),c===void 0&&(c=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=y(),this.buffering={audio:y(),video:y(),audiovideo:y()},this.level=T,this.sn=h,this.id=_,this.size=d,this.part=r,this.partial=c};function y(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"AttrList",function(){return S});var b=/^(\d+)x(\d+)$/,y=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,S=function(){function T(_){typeof _=="string"&&(_=T.parseAttrList(_));for(var d in _)_.hasOwnProperty(d)&&(this[d]=_[d])}var h=T.prototype;return h.decimalInteger=function(d){var r=parseInt(this[d],10);return r>Number.MAX_SAFE_INTEGER?Infinity:r},h.hexadecimalInteger=function(d){if(this[d]){var r=(this[d]||"0x").slice(2);r=(r.length&1?"0":"")+r;for(var c=new Uint8Array(r.length/2),t=0;t<r.length/2;t++)c[t]=parseInt(r.slice(t*2,t*2+2),16);return c}else return null},h.hexadecimalIntegerAsNumber=function(d){var r=parseInt(this[d],16);return r>Number.MAX_SAFE_INTEGER?Infinity:r},h.decimalFloatingPoint=function(d){return parseFloat(this[d])},h.optionalFloat=function(d,r){var c=this[d];return c?parseFloat(c):r},h.enumeratedString=function(d){return this[d]},h.bool=function(d){return this[d]==="YES"},h.decimalResolution=function(d){var r=b.exec(this[d]);return r===null?void 0:{width:parseInt(r[1],10),height:parseInt(r[2],10)}},T.parseAttrList=function(d){var r,c={},t='"';for(y.lastIndex=0;(r=y.exec(d))!==null;){var a=r[2];a.indexOf(t)===0&&a.lastIndexOf(t)===a.length-1&&(a=a.slice(1,-1)),c[r[1]]=a}return c},T}()},"./src/utils/binary-search.ts":function(L,p,A){"use strict";A.r(p);var b={search:function(S,T){for(var h=0,_=S.length-1,d=null,r=null;h<=_;){d=(h+_)/2|0,r=S[d];var c=T(r);if(c>0)h=d+1;else if(c<0)_=d-1;else return r}return null}};p.default=b},"./src/utils/buffer-helper.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"BufferHelper",function(){return S});var b=A("./src/utils/logger.ts"),y={length:0,start:function(){return 0},end:function(){return 0}},S=function(){function T(){}return T.isBuffered=function(_,d){try{if(_){for(var r=T.getBuffered(_),c=0;c<r.length;c++)if(d>=r.start(c)&&d<=r.end(c))return!0}}catch(t){}return!1},T.bufferInfo=function(_,d,r){try{if(_){var c=T.getBuffered(_),t=[],a;for(a=0;a<c.length;a++)t.push({start:c.start(a),end:c.end(a)});return this.bufferedInfo(t,d,r)}}catch(n){}return{len:0,start:d,end:d,nextStart:void 0}},T.bufferedInfo=function(_,d,r){d=Math.max(0,d),_.sort(function(v,P){var R=v.start-P.start;return R||P.end-v.end});var c=[];if(r)for(var t=0;t<_.length;t++){var a=c.length;if(a){var n=c[a-1].end;_[t].start-n<r?_[t].end>n&&(c[a-1].end=_[t].end):c.push(_[t])}else c.push(_[t])}else c=_;for(var i=0,f,l=d,o=d,m=0;m<c.length;m++){var w=c[m].start,C=c[m].end;if(d+r>=w&&d<C)l=w,o=C,i=o-d;else if(d+r<w){f=w;break}}return{len:i,start:l||0,end:o||0,nextStart:f}},T.getBuffered=function(_){try{return _.buffered}catch(d){return b.logger.log("failed to get media.buffered",d),y}},T}()},"./src/utils/cea-608-parser.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"Row",function(){return o}),A.d(p,"CaptionScreen",function(){return m});var b=A("./src/utils/logger.ts"),y={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},S=function(x){var g=x;return y.hasOwnProperty(x)&&(g=y[x]),String.fromCharCode(g)},T=15,h=100,_={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},d={17:2,18:4,21:6,22:8,23:10,19:13,20:15},r={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},c={25:2,26:4,29:6,30:8,31:10,27:13,28:15},t=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],a;(function(E){E[E.ERROR=0]="ERROR",E[E.TEXT=1]="TEXT",E[E.WARNING=2]="WARNING",E[E.INFO=2]="INFO",E[E.DEBUG=3]="DEBUG",E[E.DATA=3]="DATA"})(a||(a={}));var n=function(){function E(){this.time=null,this.verboseLevel=a.ERROR}var x=E.prototype;return x.log=function(O,I){this.verboseLevel>=O&&b.logger.log(this.time+" ["+O+"] "+I)},E}(),i=function(x){for(var g=[],O=0;O<x.length;O++)g.push(x[O].toString(16));return g},f=function(){function E(g,O,I,D,N){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=g||"white",this.underline=O||!1,this.italics=I||!1,this.background=D||"black",this.flash=N||!1}var x=E.prototype;return x.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},x.setStyles=function(O){for(var I=["foreground","underline","italics","background","flash"],D=0;D<I.length;D++){var N=I[D];O.hasOwnProperty(N)&&(this[N]=O[N])}},x.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},x.equals=function(O){return this.foreground===O.foreground&&this.underline===O.underline&&this.italics===O.italics&&this.background===O.background&&this.flash===O.flash},x.copy=function(O){this.foreground=O.foreground,this.underline=O.underline,this.italics=O.italics,this.background=O.background,this.flash=O.flash},x.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},E}(),l=function(){function E(g,O,I,D,N,V){this.uchar=void 0,this.penState=void 0,this.uchar=g||" ",this.penState=new f(O,I,D,N,V)}var x=E.prototype;return x.reset=function(){this.uchar=" ",this.penState.reset()},x.setChar=function(O,I){this.uchar=O,this.penState.copy(I)},x.setPenState=function(O){this.penState.copy(O)},x.equals=function(O){return this.uchar===O.uchar&&this.penState.equals(O.penState)},x.copy=function(O){this.uchar=O.uchar,this.penState.copy(O.penState)},x.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},E}(),o=function(){function E(g){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var O=0;O<h;O++)this.chars.push(new l);this.logger=g,this.pos=0,this.currPenState=new f}var x=E.prototype;return x.equals=function(O){for(var I=!0,D=0;D<h;D++)if(!this.chars[D].equals(O.chars[D])){I=!1;break}return I},x.copy=function(O){for(var I=0;I<h;I++)this.chars[I].copy(O.chars[I])},x.isEmpty=function(){for(var O=!0,I=0;I<h;I++)if(!this.chars[I].isEmpty()){O=!1;break}return O},x.setCursor=function(O){this.pos!==O&&(this.pos=O),this.pos<0?(this.logger.log(a.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>h&&(this.logger.log(a.DEBUG,"Too large cursor position "+this.pos),this.pos=h)},x.moveCursor=function(O){var I=this.pos+O;if(O>1)for(var D=this.pos+1;D<I+1;D++)this.chars[D].setPenState(this.currPenState);this.setCursor(I)},x.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},x.insertChar=function(O){O>=144&&this.backSpace();var I=S(O);if(this.pos>=h){this.logger.log(a.ERROR,"Cannot insert "+O.toString(16)+" ("+I+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(I,this.currPenState),this.moveCursor(1)},x.clearFromPos=function(O){var I;for(I=O;I<h;I++)this.chars[I].reset()},x.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},x.clearToEndOfRow=function(){this.clearFromPos(this.pos)},x.getTextString=function(){for(var O=[],I=!0,D=0;D<h;D++){var N=this.chars[D].uchar;N!==" "&&(I=!1),O.push(N)}return I?"":O.join("")},x.setPenStyles=function(O){this.currPenState.setStyles(O);var I=this.chars[this.pos];I.setPenState(this.currPenState)},E}(),m=function(){function E(g){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var O=0;O<T;O++)this.rows.push(new o(g));this.logger=g,this.currRow=T-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var x=E.prototype;return x.reset=function(){for(var O=0;O<T;O++)this.rows[O].clear();this.currRow=T-1},x.equals=function(O){for(var I=!0,D=0;D<T;D++)if(!this.rows[D].equals(O.rows[D])){I=!1;break}return I},x.copy=function(O){for(var I=0;I<T;I++)this.rows[I].copy(O.rows[I])},x.isEmpty=function(){for(var O=!0,I=0;I<T;I++)if(!this.rows[I].isEmpty()){O=!1;break}return O},x.backSpace=function(){var O=this.rows[this.currRow];O.backSpace()},x.clearToEndOfRow=function(){var O=this.rows[this.currRow];O.clearToEndOfRow()},x.insertChar=function(O){var I=this.rows[this.currRow];I.insertChar(O)},x.setPen=function(O){var I=this.rows[this.currRow];I.setPenStyles(O)},x.moveCursor=function(O){var I=this.rows[this.currRow];I.moveCursor(O)},x.setCursor=function(O){this.logger.log(a.INFO,"setCursor: "+O);var I=this.rows[this.currRow];I.setCursor(O)},x.setPAC=function(O){this.logger.log(a.INFO,"pacData = "+JSON.stringify(O));var I=O.row-1;if(this.nrRollUpRows&&I<this.nrRollUpRows-1&&(I=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==I){for(var D=0;D<T;D++)this.rows[D].clear();var N=this.currRow+1-this.nrRollUpRows,V=this.lastOutputScreen;if(V){var F=V.rows[N].cueStartTime,W=this.logger.time;if(F&&W!==null&&F<W)for(var K=0;K<this.nrRollUpRows;K++)this.rows[I-this.nrRollUpRows+K+1].copy(V.rows[N+K])}}this.currRow=I;var B=this.rows[this.currRow];if(O.indent!==null){var k=O.indent,G=Math.max(k-1,0);B.setCursor(O.indent),O.color=B.chars[G].penState.foreground}var ne={foreground:O.color,underline:O.underline,italics:O.italics,background:"black",flash:!1};this.setPen(ne)},x.setBkgData=function(O){this.logger.log(a.INFO,"bkgData = "+JSON.stringify(O)),this.backSpace(),this.setPen(O),this.insertChar(32)},x.setRollUpRows=function(O){this.nrRollUpRows=O},x.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(a.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(a.TEXT,this.getDisplayText());var O=this.currRow+1-this.nrRollUpRows,I=this.rows.splice(O,1)[0];I.clear(),this.rows.splice(this.currRow,0,I),this.logger.log(a.INFO,"Rolling up")},x.getDisplayText=function(O){O=O||!1;for(var I=[],D="",N=-1,V=0;V<T;V++){var F=this.rows[V].getTextString();F&&(N=V+1,O?I.push("Row "+N+": '"+F+"'"):I.push(F.trim()))}return I.length>0&&(O?D="["+I.join(" | ")+"]":D=I.join(`
`)),D},x.getTextAndFormat=function(){return this.rows},E}(),w=function(){function E(g,O,I){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=g,this.outputFilter=O,this.mode=null,this.verbose=0,this.displayedMemory=new m(I),this.nonDisplayedMemory=new m(I),this.lastOutputScreen=new m(I),this.currRollUpRow=this.displayedMemory.rows[T-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=I}var x=E.prototype;return x.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[T-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},x.getHandler=function(){return this.outputFilter},x.setHandler=function(O){this.outputFilter=O},x.setPAC=function(O){this.writeScreen.setPAC(O)},x.setBkgData=function(O){this.writeScreen.setBkgData(O)},x.setMode=function(O){if(O===this.mode)return;this.mode=O,this.logger.log(a.INFO,"MODE="+O),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=O},x.insertChars=function(O){for(var I=0;I<O.length;I++)this.writeScreen.insertChar(O[I]);var D=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(a.INFO,D+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(a.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},x.ccRCL=function(){this.logger.log(a.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},x.ccBS=function(){if(this.logger.log(a.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},x.ccAOF=function(){},x.ccAON=function(){},x.ccDER=function(){this.logger.log(a.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},x.ccRU=function(O){this.logger.log(a.INFO,"RU("+O+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(O)},x.ccFON=function(){this.logger.log(a.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},x.ccRDC=function(){this.logger.log(a.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},x.ccTR=function(){this.logger.log(a.INFO,"TR"),this.setMode("MODE_TEXT")},x.ccRTD=function(){this.logger.log(a.INFO,"RTD"),this.setMode("MODE_TEXT")},x.ccEDM=function(){this.logger.log(a.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},x.ccCR=function(){this.logger.log(a.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},x.ccENM=function(){this.logger.log(a.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},x.ccEOC=function(){if(this.logger.log(a.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var O=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=O,this.writeScreen=this.nonDisplayedMemory,this.logger.log(a.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},x.ccTO=function(O){this.logger.log(a.INFO,"TO("+O+") - Tab Offset"),this.writeScreen.moveCursor(O)},x.ccMIDROW=function(O){var I={flash:!1};if(I.underline=O%2===1,I.italics=O>=46,I.italics)I.foreground="white";else{var D=Math.floor(O/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];I.foreground=N[D]}this.logger.log(a.INFO,"MIDROW: "+JSON.stringify(I)),this.writeScreen.setPen(I)},x.outputDataUpdate=function(O){O===void 0&&(O=!1);var I=this.logger.time;if(I===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=I:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,I,this.lastOutputScreen),O&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:I),this.lastOutputScreen.copy(this.displayedMemory))},x.cueSplitAtTime=function(O){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,O,this.displayedMemory),this.cueStartTime=O))},E}(),C=function(){function E(g,O,I){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var D=new n;this.channels=[null,new w(g,O,D),new w(g+1,I,D)],this.cmdHistory=R(),this.logger=D}var x=E.prototype;return x.getHandler=function(O){return this.channels[O].getHandler()},x.setHandler=function(O,I){this.channels[O].setHandler(I)},x.addData=function(O,I){var D,N,V,F=!1;this.logger.time=O;for(var W=0;W<I.length;W+=2){if(N=I[W]&127,V=I[W+1]&127,N===0&&V===0)continue;if(this.logger.log(a.DATA,"["+i([I[W],I[W+1]])+"] -> ("+i([N,V])+")"),D=this.parseCmd(N,V),D||(D=this.parseMidrow(N,V)),D||(D=this.parsePAC(N,V)),D||(D=this.parseBackgroundAttributes(N,V)),!D&&(F=this.parseChars(N,V),F)){var K=this.currentChannel;if(K&&K>0){var B=this.channels[K];B.insertChars(F)}else this.logger.log(a.WARNING,"No channel found yet. TEXT-MODE?")}!D&&!F&&this.logger.log(a.WARNING,"Couldn't parse cleaned data "+i([N,V])+" orig: "+i([I[W],I[W+1]]))}},x.parseCmd=function(O,I){var D=this.cmdHistory,N=(O===20||O===28||O===21||O===29)&&I>=32&&I<=47,V=(O===23||O===31)&&I>=33&&I<=35;if(!(N||V))return!1;if(P(O,I,D))return v(null,null,D),this.logger.log(a.DEBUG,"Repeated command ("+i([O,I])+") is dropped"),!0;var F=O===20||O===21||O===23?1:2,W=this.channels[F];return O===20||O===21||O===28||O===29?I===32?W.ccRCL():I===33?W.ccBS():I===34?W.ccAOF():I===35?W.ccAON():I===36?W.ccDER():I===37?W.ccRU(2):I===38?W.ccRU(3):I===39?W.ccRU(4):I===40?W.ccFON():I===41?W.ccRDC():I===42?W.ccTR():I===43?W.ccRTD():I===44?W.ccEDM():I===45?W.ccCR():I===46?W.ccENM():I===47&&W.ccEOC():W.ccTO(I-32),v(O,I,D),this.currentChannel=F,!0},x.parseMidrow=function(O,I){var D=0;if((O===17||O===25)&&I>=32&&I<=47){if(O===17?D=1:D=2,D!==this.currentChannel)return this.logger.log(a.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[D];return N?(N.ccMIDROW(I),this.logger.log(a.DEBUG,"MIDROW ("+i([O,I])+")"),!0):!1}return!1},x.parsePAC=function(O,I){var D,N=this.cmdHistory,V=(O>=17&&O<=23||O>=25&&O<=31)&&I>=64&&I<=127,F=(O===16||O===24)&&I>=64&&I<=95;if(!(V||F))return!1;if(P(O,I,N))return v(null,null,N),!0;var W=O<=23?1:2;I>=64&&I<=95?D=W===1?_[O]:r[O]:D=W===1?d[O]:c[O];var K=this.channels[W];return K?(K.setPAC(this.interpretPAC(D,I)),v(O,I,N),this.currentChannel=W,!0):!1},x.interpretPAC=function(O,I){var D,N={color:null,italics:!1,indent:null,underline:!1,row:O};return I>95?D=I-96:D=I-64,N.underline=(D&1)===1,D<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(D/2)]:D<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((D-16)/2)*4,N},x.parseChars=function(O,I){var D,N=null,V=null;if(O>=25?(D=2,V=O-8):(D=1,V=O),V>=17&&V<=19){var F;V===17?F=I+80:V===18?F=I+112:F=I+144,this.logger.log(a.INFO,"Special char '"+S(F)+"' in channel "+D),N=[F]}else O>=32&&O<=127&&(N=I===0?[O]:[O,I]);if(N){var W=i(N);this.logger.log(a.DEBUG,"Char codes = "+W.join(",")),v(O,I,this.cmdHistory)}return N},x.parseBackgroundAttributes=function(O,I){var D=(O===16||O===24)&&I>=32&&I<=47,N=(O===23||O===31)&&I>=45&&I<=47;if(!(D||N))return!1;var V,F={};O===16||O===24?(V=Math.floor((I-32)/2),F.background=t[V],I%2===1&&(F.background=F.background+"_semi")):I===45?F.background="transparent":(F.foreground="black",I===47&&(F.underline=!0));var W=O<=23?1:2,K=this.channels[W];return K.setBkgData(F),v(O,I,this.cmdHistory),!0},x.reset=function(){for(var O=0;O<Object.keys(this.channels).length;O++){var I=this.channels[O];I&&I.reset()}this.cmdHistory=R()},x.cueSplitAtTime=function(O){for(var I=0;I<this.channels.length;I++){var D=this.channels[I];D&&D.cueSplitAtTime(O)}},E}();function v(E,x,g){g.a=E,g.b=x}function P(E,x,g){return g.a===E&&g.b===x}function R(){return{a:null,b:null}}p.default=C},"./src/utils/codecs.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"isCodecType",function(){return y}),A.d(p,"isCodecSupportedInMp4",function(){return S});var b={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function y(T,h){var _=b[h];return!!_&&_[T.slice(0,4)]===!0}function S(T,h){return MediaSource.isTypeSupported((h||"video")+'/mp4;codecs="'+T+'"')}},"./src/utils/cues.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/utils/vttparser.ts"),y=A("./src/utils/webvtt-parser.ts"),S=A("./src/utils/texttrack-utils.ts"),T=/\s/,h={newCue:function(d,r,c,t){for(var a=[],n,i,f,l,o,m=self.VTTCue||self.TextTrackCue,w=0;w<t.rows.length;w++)if(n=t.rows[w],f=!0,l=0,o="",!n.isEmpty()){for(var C=0;C<n.chars.length;C++)T.test(n.chars[C].uchar)&&f?l++:(o+=n.chars[C].uchar,f=!1);n.cueStartTime=r,r===c&&(c+=1e-4),l>=16?l--:l++;var v=Object(b.fixLineBreaks)(o.trim()),P=Object(y.generateCueId)(r,c,v);(!d||!d.cues||!d.cues.getCueById(P))&&(i=new m(r,c,v),i.id=P,i.line=w+1,i.align="left",i.position=10+Math.min(80,Math.floor(l*8/32)*10),a.push(i))}return d&&a.length&&(a.sort(function(R,E){return R.line==="auto"||E.line==="auto"?0:R.line>8&&E.line>8?E.line-R.line:R.line-E.line}),a.forEach(function(R){return Object(S.addCueToTrack)(d,R)})),a}};p.default=h},"./src/utils/discontinuities.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"findFirstFragWithCC",function(){return T}),A.d(p,"shouldAlignOnDiscontinuities",function(){return h}),A.d(p,"findDiscontinuousReferenceFrag",function(){return _}),A.d(p,"adjustSlidingStart",function(){return r}),A.d(p,"alignStream",function(){return c}),A.d(p,"alignPDT",function(){return a}),A.d(p,"alignFragmentByPDTDelta",function(){return n}),A.d(p,"alignMediaPlaylistByPDT",function(){return i});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/logger.ts"),S=A("./src/controller/level-helper.ts");function T(f,l){for(var o=null,m=0,w=f.length;m<w;m++){var C=f[m];if(C&&C.cc===l){o=C;break}}return o}function h(f,l,o){return!!(l.details&&(o.endCC>o.startCC||f&&f.cc<o.startCC))}function _(f,l){var o=f.fragments,m=l.fragments;if(!m.length||!o.length){y.logger.log("No fragments to align");return}var w=T(o,m[0].cc);if(!w||w&&!w.startPTS){y.logger.log("No frag in previous level to align on");return}return w}function d(f,l){if(f){var o=f.start+l;f.start=f.startPTS=o,f.endPTS=o+f.duration}}function r(f,l){for(var o=l.fragments,m=0,w=o.length;m<w;m++)d(o[m],f);l.fragmentHint&&d(l.fragmentHint,f),l.alignedSliding=!0}function c(f,l,o){if(!l)return;t(f,o,l),!o.alignedSliding&&l.details&&a(o,l.details),!o.alignedSliding&&l.details&&!o.skippedSegments&&Object(S.adjustSliding)(l.details,o)}function t(f,l,o){if(h(f,o,l)){var m=_(o.details,l);m&&Object(b.isFiniteNumber)(m.start)&&(y.logger.log("Adjusting PTS using last level due to CC increase within current level "+l.url),r(m.start,l))}}function a(f,l){if(!l.fragments.length||!f.hasProgramDateTime||!l.hasProgramDateTime)return;var o=l.fragments[0].programDateTime,m=f.fragments[0].programDateTime,w=(m-o)/1e3+l.fragments[0].start;w&&Object(b.isFiniteNumber)(w)&&(y.logger.log("Adjusting PTS using programDateTime delta "+(m-o)+"ms, sliding:"+w.toFixed(3)+" "+f.url+" "),r(w,f))}function n(f,l){var o=f.programDateTime;if(!o)return;var m=(o-l)/1e3;f.start=f.startPTS=m,f.endPTS=m+f.duration}function i(f,l){if(!l.fragments.length||!f.hasProgramDateTime||!l.hasProgramDateTime)return;var o=l.fragments[0].programDateTime,m=l.fragments[0].start,w=o-m*1e3;f.fragments.forEach(function(C){n(C,w)}),f.fragmentHint&&n(f.fragmentHint,w),f.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/utils/ewma.ts"),y=function(){function S(h,_,d){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=d,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new b.default(h),this.fast_=new b.default(_)}var T=S.prototype;return T.update=function(_,d){var r=this.slow_,c=this.fast_;this.slow_.halfLife!==_&&(this.slow_=new b.default(_,r.getEstimate(),r.getTotalWeight())),this.fast_.halfLife!==d&&(this.fast_=new b.default(d,c.getEstimate(),c.getTotalWeight()))},T.sample=function(_,d){_=Math.max(_,this.minDelayMs_);var r=8*d,c=_/1e3,t=r/c;this.fast_.sample(c,t),this.slow_.sample(c,t)},T.canEstimate=function(){var _=this.fast_;return _&&_.getTotalWeight()>=this.minWeight_},T.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},T.destroy=function(){},S}();p.default=y},"./src/utils/ewma.ts":function(L,p,A){"use strict";A.r(p);var b=function(){function y(T,h,_){h===void 0&&(h=0),_===void 0&&(_=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=T,this.alpha_=T?Math.exp(Math.log(.5)/T):0,this.estimate_=h,this.totalWeight_=_}var S=y.prototype;return S.sample=function(h,_){var d=Math.pow(this.alpha_,h);this.estimate_=_*(1-d)+d*this.estimate_,this.totalWeight_+=h},S.getTotalWeight=function(){return this.totalWeight_},S.getEstimate=function(){if(this.alpha_){var h=1-Math.pow(this.alpha_,this.totalWeight_);if(h)return this.estimate_/h}return this.estimate_},y}();p.default=b},"./src/utils/fetch-loader.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"fetchSupported",function(){return n});var b=A("./src/polyfills/number.ts"),y=A("./src/loader/load-stats.ts"),S=A("./src/demux/chunk-cache.ts");function T(m,w){m.prototype=Object.create(w.prototype),m.prototype.constructor=m,c(m,w)}function h(m){var w=typeof Map=="function"?new Map:void 0;return h=function(v){if(v===null||!r(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w!="undefined"){if(w.has(v))return w.get(v);w.set(v,P)}function P(){return _(v,arguments,t(this).constructor)}return P.prototype=Object.create(v.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),c(P,v)},h(m)}function _(m,w,C){return d()?_=Reflect.construct:_=function(P,R,E){var x=[null];x.push.apply(x,R);var g=Function.bind.apply(P,x),O=new g;return E&&c(O,E.prototype),O},_.apply(null,arguments)}function d(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(m){return!1}}function r(m){return Function.toString.call(m).indexOf("[native code]")!==-1}function c(m,w){return c=Object.setPrototypeOf||function(v,P){return v.__proto__=P,v},c(m,w)}function t(m){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},t(m)}function a(){return a=Object.assign||function(m){for(var w=1;w<arguments.length;w++){var C=arguments[w];for(var v in C)Object.prototype.hasOwnProperty.call(C,v)&&(m[v]=C[v])}return m},a.apply(this,arguments)}function n(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(m){}return!1}var i=function(){function m(C){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=C.fetchSetup||l,this.controller=new self.AbortController,this.stats=new y.LoadStats}var w=m.prototype;return w.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},w.abortInternal=function(){var v=this.response;(!v||!v.ok)&&(this.stats.aborted=!0,this.controller.abort())},w.abort=function(){var v;this.abortInternal(),(v=this.callbacks)!==null&&v!==void 0&&v.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},w.load=function(v,P,R){var E=this,x=this.stats;if(x.loading.start)throw new Error("Loader can only be used once.");x.loading.start=self.performance.now();var g=f(v,this.controller.signal),O=R.onProgress,I=v.responseType==="arraybuffer",D=I?"byteLength":"length";this.context=v,this.config=P,this.callbacks=R,this.request=this.fetchSetup(v,g),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){E.abortInternal(),R.onTimeout(x,v,E.response)},P.timeout),self.fetch(this.request).then(function(N){if(E.response=E.loader=N,!N.ok){var V=N.status,F=N.statusText;throw new o(F||"fetch, bad network response",V,N)}return x.loading.first=Math.max(self.performance.now(),x.loading.start),x.total=parseInt(N.headers.get("Content-Length")||"0"),O&&Object(b.isFiniteNumber)(P.highWaterMark)?E.loadProgressively(N,x,v,P.highWaterMark,O):I?N.arrayBuffer():N.text()}).then(function(N){var V=E.response;self.clearTimeout(E.requestTimeout),x.loading.end=Math.max(self.performance.now(),x.loading.first),x.loaded=x.total=N[D];var F={url:V.url,data:N};O&&!Object(b.isFiniteNumber)(P.highWaterMark)&&O(x,v,N,V),R.onSuccess(F,x,v,V)}).catch(function(N){if(self.clearTimeout(E.requestTimeout),x.aborted)return;var V=N.code||0;R.onError({code:V,text:N.message},v,N.details)})},w.getCacheAge=function(){var v=null;if(this.response){var P=this.response.headers.get("age");v=P?parseFloat(P):null}return v},w.loadProgressively=function(v,P,R,E,x){E===void 0&&(E=0);var g=new S.default,O=v.body.getReader(),I=function D(){return O.read().then(function(N){if(N.done)return g.dataLength&&x(P,R,g.flush(),v),Promise.resolve(new ArrayBuffer(0));var V=N.value,F=V.length;return P.loaded+=F,F<E||g.dataLength?(g.push(V),g.dataLength>=E&&x(P,R,g.flush(),v)):x(P,R,V,v),D()}).catch(function(){return Promise.reject()})};return I()},m}();function f(m,w){var C={method:"GET",mode:"cors",credentials:"same-origin",signal:w,headers:new self.Headers(a({},m.headers))};return m.rangeEnd&&C.headers.set("Range","bytes="+m.rangeStart+"-"+String(m.rangeEnd-1)),C}function l(m,w){return new self.Request(m.url,w)}var o=function(m){T(w,m);function w(C,v,P){var R;return R=m.call(this,C)||this,R.code=void 0,R.details=void 0,R.code=v,R.details=P,R}return w}(h(Error));p.default=i},"./src/utils/imsc1-ttml-parser.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"IMSC1_CODEC",function(){return r}),A.d(p,"parseIMSC1",function(){return n});var b=A("./src/utils/mp4-tools.ts"),y=A("./src/utils/vttparser.ts"),S=A("./src/utils/vttcue.ts"),T=A("./src/demux/id3.ts"),h=A("./src/utils/timescale-conversion.ts"),_=A("./src/utils/webvtt-parser.ts");function d(){return d=Object.assign||function(E){for(var x=1;x<arguments.length;x++){var g=arguments[x];for(var O in g)Object.prototype.hasOwnProperty.call(g,O)&&(E[O]=g[O])}return E},d.apply(this,arguments)}var r="stpp.ttml.im1t",c=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,t=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,a={left:"start",center:"center",right:"end",start:"start",end:"end"};function n(E,x,g,O,I){var D=Object(b.findBox)(new Uint8Array(E),["mdat"]);if(D.length===0){I(new Error("Could not parse IMSC1 mdat"));return}var N=D[0],V=Object(T.utf8ArrayToStr)(new Uint8Array(E,N.start,N.end-N.start)),F=Object(h.toTimescaleFromScale)(x,1,g);try{O(i(V,F))}catch(W){I(W)}}function i(E,x){var g=new DOMParser,O=g.parseFromString(E,"text/xml"),I=O.getElementsByTagName("tt")[0];if(!I)throw new Error("Invalid ttml");var D={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},N=Object.keys(D).reduce(function(B,k){return B[k]=I.getAttribute("ttp:"+k)||D[k],B},{}),V=I.getAttribute("xml:space")!=="preserve",F=l(f(I,"styling","style")),W=l(f(I,"layout","region")),K=f(I,"body","[begin]");return[].map.call(K,function(B){var k=o(B,V);if(!k||!B.hasAttribute("begin"))return null;var G=v(B.getAttribute("begin"),N),ne=v(B.getAttribute("dur"),N),fe=v(B.getAttribute("end"),N);if(G===null)throw C(B);if(fe===null){if(ne===null)throw C(B);fe=G+ne}var de=new S.default(G-x,fe-x,k);de.id=Object(_.generateCueId)(de.startTime,de.endTime,de.text);var Ee=W[B.getAttribute("region")],we=F[B.getAttribute("style")];de.position=10,de.size=80;var ce=m(Ee,we),be=ce.textAlign;if(be){var ve=a[be];ve&&(de.lineAlign=ve),de.align=be}return d(de,ce),de}).filter(function(B){return B!==null})}function f(E,x,g){var O=E.getElementsByTagName(x)[0];return O?[].slice.call(O.querySelectorAll(g)):[]}function l(E){return E.reduce(function(x,g){var O=g.getAttribute("xml:id");return O&&(x[O]=g),x},{})}function o(E,x){return[].slice.call(E.childNodes).reduce(function(g,O,I){var D;return O.nodeName==="br"&&I?g+`
`:(D=O.childNodes)!==null&&D!==void 0&&D.length?o(O,x):x?g+O.textContent.trim().replace(/\s+/g," "):g+O.textContent},"")}function m(E,x){var g="http://www.w3.org/ns/ttml#styling",O=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return O.reduce(function(I,D){var N=w(x,g,D)||w(E,g,D);return N&&(I[D]=N),I},{})}function w(E,x,g){return E.hasAttributeNS(x,g)?E.getAttributeNS(x,g):null}function C(E){return new Error("Could not parse ttml timestamp "+E)}function v(E,x){if(!E)return null;var g=Object(y.parseTimeStamp)(E);return g===null&&(c.test(E)?g=P(E,x):t.test(E)&&(g=R(E,x))),g}function P(E,x){var g=c.exec(E),O=(g[4]|0)+(g[5]|0)/x.subFrameRate;return(g[1]|0)*3600+(g[2]|0)*60+(g[3]|0)+O/x.frameRate}function R(E,x){var g=t.exec(E),O=Number(g[1]),I=g[2];switch(I){case"h":return O*3600;case"m":return O*60;case"ms":return O*1e3;case"f":return O/x.frameRate;case"t":return O/x.tickRate}return O}},"./src/utils/logger.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"enableLogs",function(){return _}),A.d(p,"logger",function(){return d});var b=function(){},y={trace:b,debug:b,log:b,warn:b,info:b,error:b},S=y;function T(r){var c=self.console[r];return c?c.bind(self.console,"["+r+"] >"):b}function h(r){for(var c=arguments.length,t=new Array(c>1?c-1:0),a=1;a<c;a++)t[a-1]=arguments[a];t.forEach(function(n){S[n]=r[n]?r[n].bind(r):T(n)})}function _(r){if(self.console&&r===!0||typeof r=="object"){h(r,"debug","log","info","warn","error");try{S.log()}catch(c){S=y}}else S=y}var d=S},"./src/utils/mediakeys-helper.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"KeySystems",function(){return b}),A.d(p,"requestMediaKeySystemAccess",function(){return y});var b;(function(S){S.WIDEVINE="com.widevine.alpha",S.PLAYREADY="com.microsoft.playready"})(b||(b={}));var y=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"getMediaSource",function(){return b});function b(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"bin2str",function(){return h}),A.d(p,"readUint16",function(){return _}),A.d(p,"readUint32",function(){return d}),A.d(p,"writeUint32",function(){return r}),A.d(p,"findBox",function(){return c}),A.d(p,"parseSegmentIndex",function(){return t}),A.d(p,"parseInitSegment",function(){return a}),A.d(p,"getStartDTS",function(){return n}),A.d(p,"getDuration",function(){return i}),A.d(p,"computeRawDurationFromSamples",function(){return f}),A.d(p,"offsetStartDTS",function(){return l}),A.d(p,"segmentValidRange",function(){return o}),A.d(p,"appendUint8Array",function(){return m});var b=A("./src/utils/typed-array.ts"),y=A("./src/loader/fragment.ts"),S=Math.pow(2,32)-1,T=[].push;function h(w){return String.fromCharCode.apply(null,w)}function _(w,C){"data"in w&&(C+=w.start,w=w.data);var v=w[C]<<8|w[C+1];return v<0?65536+v:v}function d(w,C){"data"in w&&(C+=w.start,w=w.data);var v=w[C]<<24|w[C+1]<<16|w[C+2]<<8|w[C+3];return v<0?4294967296+v:v}function r(w,C,v){"data"in w&&(C+=w.start,w=w.data),w[C]=v>>24,w[C+1]=v>>16&255,w[C+2]=v>>8&255,w[C+3]=v&255}function c(w,C){var v=[];if(!C.length)return v;var P,R,E;"data"in w?(P=w.data,R=w.start,E=w.end):(P=w,R=0,E=P.byteLength);for(var x=R;x<E;){var g=d(P,x),O=h(P.subarray(x+4,x+8)),I=g>1?x+g:E;if(O===C[0])if(C.length===1)v.push({data:P,start:x+8,end:I});else{var D=c({data:P,start:x+8,end:I},C.slice(1));D.length&&T.apply(v,D)}x=I}return v}function t(w){var C=c(w,["moov"]),v=C[0],P=v?v.end:null,R=c(w,["sidx"]);if(!R||!R[0])return null;var E=[],x=R[0],g=x.data[0],O=g===0?8:16,I=d(x,O);O+=4;var D=0,N=0;g===0?O+=8:O+=16,O+=2;var V=x.end+N,F=_(x,O);O+=2;for(var W=0;W<F;W++){var K=O,B=d(x,K);K+=4;var k=B&2147483647,G=(B&2147483648)>>>31;if(G===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ne=d(x,K);K+=4,E.push({referenceSize:k,subsegmentDuration:ne,info:{duration:ne/I,start:V,end:V+k-1}}),V+=k,K+=4,O=K}return{earliestPresentationTime:D,timescale:I,version:g,referencesCount:F,references:E,moovEndOffset:P}}function a(w){for(var C=[],v=c(w,["moov","trak"]),P=0;P<v.length;P++){var R=v[P],E=c(R,["tkhd"])[0];if(E){var x=E.data[E.start],g=x===0?12:20,O=d(E,g),I=c(R,["mdia","mdhd"])[0];if(I){x=I.data[I.start],g=x===0?12:20;var D=d(I,g),N=c(R,["mdia","hdlr"])[0];if(N){var V=h(N.data.subarray(N.start+8,N.start+12)),F={soun:y.ElementaryStreamTypes.AUDIO,vide:y.ElementaryStreamTypes.VIDEO}[V];if(F){var W=c(R,["mdia","minf","stbl","stsd"])[0],K=void 0;W&&(K=h(W.data.subarray(W.start+12,W.start+16))),C[O]={timescale:D,type:F},C[F]={timescale:D,id:O,codec:K}}}}}}var B=c(w,["moov","mvex","trex"]);return B.forEach(function(k){var G=d(k,4),ne=C[G];ne&&(ne.default={duration:d(k,12),flags:d(k,20)})}),C}function n(w,C){return c(C,["moof","traf"]).reduce(function(v,P){var R=c(P,["tfdt"])[0],E=R.data[R.start],x=c(P,["tfhd"]).reduce(function(g,O){var I=d(O,4),D=w[I];if(D){var N=d(R,4);E===1&&(N*=Math.pow(2,32),N+=d(R,8));var V=D.timescale||9e4,F=N/V;if(isFinite(F)&&(g===null||F<g))return F}return g},null);return x!==null&&isFinite(x)&&(v===null||x<v)?x:v},null)||0}function i(w,C){for(var v=0,P=0,R=0,E=c(w,["moof","traf"]),x=0;x<E.length;x++){var g=E[x],O=c(g,["tfhd"])[0],I=d(O,4),D=C[I];if(!D)continue;var N=D.default,V=d(O,0)|(N==null?void 0:N.flags),F=N==null?void 0:N.duration;V&8&&(V&2?F=d(O,12):F=d(O,8));for(var W=D.timescale||9e4,K=c(g,["trun"]),B=0;B<K.length;B++){if(F){var k=d(K[B],4);v=F*k}else v=f(K[B]);D.type===y.ElementaryStreamTypes.VIDEO?P+=v/W:D.type===y.ElementaryStreamTypes.AUDIO&&(R+=v/W)}}if(P===0&&R===0){var G=t(w);if(G!=null&&G.references)return G.references.reduce(function(ne,fe){return ne+fe.info.duration||0},0)}return P||R}function f(w){var C=d(w,0),v=8;C&1&&(v+=4),C&4&&(v+=4);for(var P=0,R=d(w,4),E=0;E<R;E++){if(C&256){var x=d(w,v);P+=x,v+=4}C&512&&(v+=4),C&1024&&(v+=4),C&2048&&(v+=4)}return P}function l(w,C,v){c(C,["moof","traf"]).forEach(function(P){c(P,["tfhd"]).forEach(function(R){var E=d(R,4),x=w[E];if(!x)return;var g=x.timescale||9e4;c(P,["tfdt"]).forEach(function(O){var I=O.data[O.start],D=d(O,4);if(I===0)r(O,4,D-v*g);else{D*=Math.pow(2,32),D+=d(O,8),D-=v*g,D=Math.max(D,0);var N=Math.floor(D/(S+1)),V=Math.floor(D%(S+1));r(O,4,N),r(O,8,V)}})})})}function o(w){var C={valid:null,remainder:null},v=c(w,["moof"]);if(v){if(v.length<2)return C.remainder=w,C}else return C;var P=v[v.length-1];return C.valid=Object(b.sliceUint8)(w,0,P.start-8),C.remainder=Object(b.sliceUint8)(w,P.start-8),C}function m(w,C){var v=new Uint8Array(w.length+C.length);return v.set(w),v.set(C,w.length),v}},"./src/utils/output-filter.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"default",function(){return b});var b=function(){function y(T,h){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=T,this.trackName=h}var S=y.prototype;return S.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},S.newCue=function(h,_,d){(this.startTime===null||this.startTime>h)&&(this.startTime=h),this.endTime=_,this.screen=d,this.timelineController.createCaptionsTrack(this.trackName)},S.reset=function(){this.cueRanges=[]},y}()},"./src/utils/texttrack-utils.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"sendAddTrackEvent",function(){return y}),A.d(p,"addCueToTrack",function(){return S}),A.d(p,"clearCurrentCues",function(){return T}),A.d(p,"removeCuesInRange",function(){return h}),A.d(p,"getCuesInRange",function(){return d});var b=A("./src/utils/logger.ts");function y(r,c){var t;try{t=new Event("addtrack")}catch(a){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=r,c.dispatchEvent(t)}function S(r,c){var t=r.mode;if(t==="disabled"&&(r.mode="hidden"),r.cues&&!r.cues.getCueById(c.id))try{if(r.addCue(c),!r.cues.getCueById(c.id))throw new Error("addCue is failed for: "+c)}catch(n){b.logger.debug("[texttrack-utils]: "+n);var a=new self.TextTrackCue(c.startTime,c.endTime,c.text);a.id=c.id,r.addCue(a)}t==="disabled"&&(r.mode=t)}function T(r){var c=r.mode;if(c==="disabled"&&(r.mode="hidden"),r.cues)for(var t=r.cues.length;t--;)r.removeCue(r.cues[t]);c==="disabled"&&(r.mode=c)}function h(r,c,t){var a=r.mode;if(a==="disabled"&&(r.mode="hidden"),r.cues&&r.cues.length>0)for(var n=d(r.cues,c,t),i=0;i<n.length;i++)r.removeCue(n[i]);a==="disabled"&&(r.mode=a)}function _(r,c){if(c<r[0].startTime)return 0;var t=r.length-1;if(c>r[t].endTime)return-1;for(var a=0,n=t;a<=n;){var i=Math.floor((n+a)/2);if(c<r[i].startTime)n=i-1;else if(c>r[i].startTime&&a<t)a=i+1;else return i}return r[a].startTime-c<c-r[n].startTime?a:n}function d(r,c,t){var a=[],n=_(r,c);if(n>-1)for(var i=n,f=r.length;i<f;i++){var l=r[i];if(l.startTime>=c&&l.endTime<=t)a.push(l);else if(l.startTime>t)return a}return a}},"./src/utils/time-ranges.ts":function(L,p,A){"use strict";A.r(p);var b={toString:function(S){for(var T="",h=S.length,_=0;_<h;_++)T+="["+S.start(_).toFixed(3)+","+S.end(_).toFixed(3)+"]";return T}};p.default=b},"./src/utils/timescale-conversion.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"toTimescaleFromBase",function(){return y}),A.d(p,"toTimescaleFromScale",function(){return S}),A.d(p,"toMsFromMpegTsClock",function(){return T}),A.d(p,"toMpegTsClockFromTimescale",function(){return h});var b=9e4;function y(_,d,r,c){r===void 0&&(r=1),c===void 0&&(c=!1);var t=_*d*r;return c?Math.round(t):t}function S(_,d,r,c){return r===void 0&&(r=1),c===void 0&&(c=!1),y(_,d,1/r,c)}function T(_,d){return d===void 0&&(d=!1),y(_,1e3,1/b,d)}function h(_,d){return d===void 0&&(d=1),y(_,b,1/d)}},"./src/utils/typed-array.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"sliceUint8",function(){return b});function b(y,S,T){return Uint8Array.prototype.slice?y.slice(S,T):new Uint8Array(Array.prototype.slice.call(y,S,T))}},"./src/utils/vttcue.ts":function(L,p,A){"use strict";A.r(p),p.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var b=["","lr","rl"],y=["start","middle","end","left","right"];function S(r,c){if(typeof c!="string")return!1;if(!Array.isArray(r))return!1;var t=c.toLowerCase();return~r.indexOf(t)?t:!1}function T(r){return S(b,r)}function h(r){return S(y,r)}function _(r){for(var c=arguments.length,t=new Array(c>1?c-1:0),a=1;a<c;a++)t[a-1]=arguments[a];for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var f in i)r[f]=i[f]}return r}function d(r,c,t){var a=this,n={enumerable:!0};a.hasBeenReset=!1;var i="",f=!1,l=r,o=c,m=t,w=null,C="",v=!0,P="auto",R="start",E=50,x="middle",g=50,O="middle";Object.defineProperty(a,"id",_({},n,{get:function(){return i},set:function(D){i=""+D}})),Object.defineProperty(a,"pauseOnExit",_({},n,{get:function(){return f},set:function(D){f=!!D}})),Object.defineProperty(a,"startTime",_({},n,{get:function(){return l},set:function(D){if(typeof D!="number")throw new TypeError("Start time must be set to a number.");l=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",_({},n,{get:function(){return o},set:function(D){if(typeof D!="number")throw new TypeError("End time must be set to a number.");o=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",_({},n,{get:function(){return m},set:function(D){m=""+D,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",_({},n,{get:function(){return w},set:function(D){w=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",_({},n,{get:function(){return C},set:function(D){var N=T(D);if(N===!1)throw new SyntaxError("An invalid or illegal string was specified.");C=N,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",_({},n,{get:function(){return v},set:function(D){v=!!D,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",_({},n,{get:function(){return P},set:function(D){if(typeof D!="number"&&D!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");P=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",_({},n,{get:function(){return R},set:function(D){var N=h(D);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");R=N,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",_({},n,{get:function(){return E},set:function(D){if(D<0||D>100)throw new Error("Position must be between 0 and 100.");E=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",_({},n,{get:function(){return x},set:function(D){var N=h(D);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");x=N,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",_({},n,{get:function(){return g},set:function(D){if(D<0||D>100)throw new Error("Size must be between 0 and 100.");g=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",_({},n,{get:function(){return O},set:function(D){var N=h(D);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");O=N,this.hasBeenReset=!0}})),a.displayState=void 0}return d.prototype.getCueAsHTML=function(){var r=self.WebVTT;return r.convertCueToDOMTree(self,this.text)},d}()},"./src/utils/vttparser.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"parseTimeStamp",function(){return S}),A.d(p,"fixLineBreaks",function(){return c}),A.d(p,"VTTParser",function(){return t});var b=A("./src/utils/vttcue.ts"),y=function(){function a(){}var n=a.prototype;return n.decode=function(f,l){if(!f)return"";if(typeof f!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(f))},a}();function S(a){function n(f,l,o,m){return(f|0)*3600+(l|0)*60+(o|0)+parseFloat(m||0)}var i=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return i?parseFloat(i[2])>59?n(i[2],i[3],0,i[4]):n(i[1],i[2],i[3],i[4]):null}var T=function(){function a(){this.values=Object.create(null)}var n=a.prototype;return n.set=function(f,l){!this.get(f)&&l!==""&&(this.values[f]=l)},n.get=function(f,l,o){return o?this.has(f)?this.values[f]:l[o]:this.has(f)?this.values[f]:l},n.has=function(f){return f in this.values},n.alt=function(f,l,o){for(var m=0;m<o.length;++m)if(l===o[m]){this.set(f,l);break}},n.integer=function(f,l){/^-?\d+$/.test(l)&&this.set(f,parseInt(l,10))},n.percent=function(f,l){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(l)){var o=parseFloat(l);if(o>=0&&o<=100)return this.set(f,o),!0}return!1},a}();function h(a,n,i,f){var l=f?a.split(f):[a];for(var o in l){if(typeof l[o]!="string")continue;var m=l[o].split(i);if(m.length!==2)continue;var w=m[0],C=m[1];n(w,C)}}var _=new b.default(0,0,""),d=_.align==="middle"?"middle":"center";function r(a,n,i){var f=a;function l(){var w=S(a);if(w===null)throw new Error("Malformed timestamp: "+f);return a=a.replace(/^[^\sa-zA-Z-]+/,""),w}function o(w,C){var v=new T;h(w,function(E,x){var g;switch(E){case"region":for(var O=i.length-1;O>=0;O--)if(i[O].id===x){v.set(E,i[O].region);break}break;case"vertical":v.alt(E,x,["rl","lr"]);break;case"line":g=x.split(","),v.integer(E,g[0]),v.percent(E,g[0])&&v.set("snapToLines",!1),v.alt(E,g[0],["auto"]),g.length===2&&v.alt("lineAlign",g[1],["start",d,"end"]);break;case"position":g=x.split(","),v.percent(E,g[0]),g.length===2&&v.alt("positionAlign",g[1],["start",d,"end","line-left","line-right","auto"]);break;case"size":v.percent(E,x);break;case"align":v.alt(E,x,["start",d,"end","left","right"]);break}},/:/,/\s/),C.region=v.get("region",null),C.vertical=v.get("vertical","");var P=v.get("line","auto");P==="auto"&&_.line===-1&&(P=-1),C.line=P,C.lineAlign=v.get("lineAlign","start"),C.snapToLines=v.get("snapToLines",!0),C.size=v.get("size",100),C.align=v.get("align",d);var R=v.get("position","auto");R==="auto"&&_.position===50&&(R=C.align==="start"||C.align==="left"?0:C.align==="end"||C.align==="right"?100:50),C.position=R}function m(){a=a.replace(/^\s+/,"")}if(m(),n.startTime=l(),m(),a.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+f);a=a.substr(3),m(),n.endTime=l(),m(),o(a,n)}function c(a){return a.replace(/<br(?: \/)?>/gi,`
`)}var t=function(){function a(){this.state="INITIAL",this.buffer="",this.decoder=new y,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var n=a.prototype;return n.parse=function(f){var l=this;f&&(l.buffer+=l.decoder.decode(f,{stream:!0}));function o(){var R=l.buffer,E=0;for(R=c(R);E<R.length&&R[E]!=="\r"&&R[E]!==`
`;)++E;var x=R.substr(0,E);return R[E]==="\r"&&++E,R[E]===`
`&&++E,l.buffer=R.substr(E),x}function m(R){h(R,function(E,x){},/:/)}try{var w="";if(l.state==="INITIAL"){if(!/\r\n|\n/.test(l.buffer))return this;w=o();var C=w.match(/^()?WEBVTT([ \t].*)?$/);if(!C||!C[0])throw new Error("Malformed WebVTT signature.");l.state="HEADER"}for(var v=!1;l.buffer;){if(!/\r\n|\n/.test(l.buffer))return this;v?v=!1:w=o();switch(l.state){case"HEADER":/:/.test(w)?m(w):w||(l.state="ID");continue;case"NOTE":w||(l.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(w)){l.state="NOTE";break}if(!w)continue;if(l.cue=new b.default(0,0,""),l.state="CUE",w.indexOf("-->")===-1){l.cue.id=w;continue}case"CUE":if(!l.cue){l.state="BADCUE";continue}try{r(w,l.cue,l.regionList)}catch(R){l.cue=null,l.state="BADCUE";continue}l.state="CUETEXT";continue;case"CUETEXT":{var P=w.indexOf("-->")!==-1;if(!w||P&&(v=!0)){l.oncue&&l.cue&&l.oncue(l.cue),l.cue=null,l.state="ID";continue}if(l.cue===null)continue;l.cue.text&&(l.cue.text+=`
`),l.cue.text+=w}continue;case"BADCUE":w||(l.state="ID")}}}catch(R){l.state==="CUETEXT"&&l.cue&&l.oncue&&l.oncue(l.cue),l.cue=null,l.state=l.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},n.flush=function(){var f=this;try{if((f.cue||f.state==="HEADER")&&(f.buffer+=`
`,f.parse()),f.state==="INITIAL"||f.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(l){f.onparsingerror&&f.onparsingerror(l)}return f.onflush&&f.onflush(),this},a}()},"./src/utils/webvtt-parser.ts":function(L,p,A){"use strict";A.r(p),A.d(p,"generateCueId",function(){return t}),A.d(p,"parseWebVTT",function(){return n});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/vttparser.ts"),S=A("./src/demux/id3.ts"),T=A("./src/utils/timescale-conversion.ts"),h=A("./src/remux/mp4-remuxer.ts"),_=/\r\n|\n\r|\n|\r/g,d=function(f,l,o){return o===void 0&&(o=0),f.substr(o,l.length)===l},r=function(f){var l=parseInt(f.substr(-3)),o=parseInt(f.substr(-6,2)),m=parseInt(f.substr(-9,2)),w=f.length>9?parseInt(f.substr(0,f.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(l)||!Object(b.isFiniteNumber)(o)||!Object(b.isFiniteNumber)(m)||!Object(b.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+f);return l+=1e3*o,l+=60*1e3*m,l+=60*60*1e3*w,l},c=function(f){for(var l=5381,o=f.length;o;)l=l*33^f.charCodeAt(--o);return(l>>>0).toString()};function t(i,f,l){return c(i.toString())+c(f.toString())+c(l)}var a=function(f,l,o){var m=f[l],w=f[m.prevCC];if(!w||!w.new&&m.new){f.ccOffset=f.presentationOffset=m.start,m.new=!1;return}for(;(C=w)!==null&&C!==void 0&&C.new;){var C;f.ccOffset+=m.start-w.start,m.new=!1,m=w,w=f[m.prevCC]}f.presentationOffset=o};function n(i,f,l,o,m,w,C,v){var P=new y.VTTParser,R=Object(S.utf8ArrayToStr)(new Uint8Array(i)).trim().replace(_,`
`).split(`
`),E=[],x=Object(T.toMpegTsClockFromTimescale)(f,l),g="00:00.000",O=0,I=0,D,N=!0,V=!1;P.oncue=function(F){var W=o[m],K=o.ccOffset,B=(O-x)/9e4;if(W!=null&&W.new&&(I!==void 0?K=o.ccOffset=W.start:a(o,m,B)),B&&(K=B-o.presentationOffset),V){var k=F.endTime-F.startTime,G=Object(h.normalizePts)((F.startTime+K-I)*9e4,w*9e4)/9e4;F.startTime=G,F.endTime=G+k}var ne=F.text.trim();F.text=decodeURIComponent(encodeURIComponent(ne)),F.id||(F.id=t(F.startTime,F.endTime,ne)),F.endTime>0&&E.push(F)},P.onparsingerror=function(F){D=F},P.onflush=function(){if(D){v(D);return}C(E)},R.forEach(function(F){if(N)if(d(F,"X-TIMESTAMP-MAP=")){N=!1,V=!0,F.substr(16).split(",").forEach(function(W){d(W,"LOCAL:")?g=W.substr(6):d(W,"MPEGTS:")&&(O=parseInt(W.substr(7)))});try{I=r(g)/1e3}catch(W){V=!1,D=W}return}else F===""&&(N=!1);P.parse(F+`
`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(L,p,A){"use strict";A.r(p);var b=A("./src/utils/logger.ts"),y=A("./src/loader/load-stats.ts"),S=/^age:\s*[\d.]+\s*$/m,T=function(){function h(d){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=d?d.xhrSetup:null,this.stats=new y.LoadStats,this.retryDelay=0}var _=h.prototype;return _.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},_.abortInternal=function(){var r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))},_.abort=function(){var r;this.abortInternal(),(r=this.callbacks)!==null&&r!==void 0&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},_.load=function(r,c,t){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=c,this.callbacks=t,this.retryDelay=c.retryDelay,this.loadInternal()},_.loadInternal=function(){var r=this.config,c=this.context;if(!r)return;var t=this.loader=new self.XMLHttpRequest,a=this.stats;a.loading.first=0,a.loaded=0;var n=this.xhrSetup;try{if(n)try{n(t,c.url)}catch(l){t.open("GET",c.url,!0),n(t,c.url)}t.readyState||t.open("GET",c.url,!0);var i=this.context.headers;if(i)for(var f in i)t.setRequestHeader(f,i[f])}catch(l){this.callbacks.onError({code:t.status,text:l.message},c,t);return}c.rangeEnd&&t.setRequestHeader("Range","bytes="+c.rangeStart+"-"+(c.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=c.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()},_.readystatechange=function(){var r=this.context,c=this.loader,t=this.stats;if(!r||!c)return;var a=c.readyState,n=this.config;if(t.aborted)return;if(a>=2)if(self.clearTimeout(this.requestTimeout),t.loading.first===0&&(t.loading.first=Math.max(self.performance.now(),t.loading.start)),a===4){c.onreadystatechange=null,c.onprogress=null;var i=c.status;if(i>=200&&i<300){t.loading.end=Math.max(self.performance.now(),t.loading.first);var f,l;if(r.responseType==="arraybuffer"?(f=c.response,l=f.byteLength):(f=c.responseText,l=f.length),t.loaded=t.total=l,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(t,r,f,c),!this.callbacks)return;var m={url:c.responseURL,data:f};this.callbacks.onSuccess(m,t,r,c)}else t.retry>=n.maxRetry||i>=400&&i<499?(b.logger.error(i+" while loading "+r.url),this.callbacks.onError({code:i,text:c.statusText},r,c)):(b.logger.warn(i+" while loading "+r.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,n.maxRetryDelay),t.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},_.loadtimeout=function(){b.logger.warn("timeout while loading "+this.context.url);var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))},_.loadprogress=function(r){var c=this.stats;c.loaded=r.loaded,r.lengthComputable&&(c.total=r.total)},_.getCacheAge=function(){var r=null;if(this.loader&&S.test(this.loader.getAllResponseHeaders())){var c=this.loader.getResponseHeader("age");r=c?parseFloat(c):null}return r},h}();p.default=T}}).default})},vHTk:function(M,Y,s){M.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},w7YG:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.StreamCipher,y=p.algo,S=y.RC4=b.extend({_doReset:function(){for(var _=this._key,d=_.words,r=_.sigBytes,c=this._S=[],t=0;t<256;t++)c[t]=t;for(var t=0,a=0;t<256;t++){var n=t%r,i=d[n>>>2]>>>24-n%4*8&255;a=(a+c[t]+i)%256;var f=c[t];c[t]=c[a],c[a]=f}this._i=this._j=0},_doProcessBlock:function(_,d){_[d]^=T.call(this)},keySize:256/32,ivSize:0});function T(){for(var _=this._S,d=this._i,r=this._j,c=0,t=0;t<4;t++){d=(d+1)%256,r=(r+_[d])%256;var a=_[d];_[d]=_[r],_[r]=a,c|=_[(_[d]+_[r])%256]<<24-t*8}return this._i=d,this._j=r,c}p.RC4=b._createHelper(S);var h=y.RC4Drop=S.extend({cfg:S.cfg.extend({drop:192}),_doReset:function(){S._doReset.call(this);for(var _=this.cfg.drop;_>0;_--)T.call(this)}});p.RC4Drop=b._createHelper(h)}(),L.RC4})},wCXF:function(M,Y,s){"use strict";s.d(Y,"a",function(){return gt});var L=s("rePB"),p=s("VTBJ"),A=s("KQm4"),b=s("U8pU"),y=s("ODXe"),S=s("cDcd"),T=s("TSYQ"),h=s.n(T),_=s("Gytx"),d=s.n(_),r=s("Kwbf"),c=s("t23M"),t=s("qx4F"),a=s("6eGT"),n=s("IBYe"),i=s("Ff2n"),f=s("c+Xe"),l=s("fyJ8"),o=s("biw7");function m(Qe,Ue,ft,jt,ht){var _t=ft[Qe]||{},Ye=ft[Ue]||{},We,Xe;_t.fixed==="left"?We=jt.left[Qe]:Ye.fixed==="right"&&(Xe=jt.right[Ue]);var Te=!1,Me=!1,Ve=!1,Ge=!1,Ze=ft[Ue+1],mt=ft[Qe-1];if(ht==="rtl"){if(We!==void 0){var Pt=mt&&mt.fixed==="left";Ge=!Pt}else if(Xe!==void 0){var Gt=Ze&&Ze.fixed==="right";Ve=!Gt}}else if(We!==void 0){var dn=Ze&&Ze.fixed==="left";Te=!dn}else if(Xe!==void 0){var Tt=mt&&mt.fixed==="right";Me=!Tt}return{fixLeft:We,fixRight:Xe,lastFixLeft:Te,firstFixRight:Me,lastFixRight:Ve,firstFixLeft:Ge,isSticky:jt.isSticky}}var w=s("sR1s");function C(Qe){var Ue=Qe.cells,ft=Qe.stickyOffsets,jt=Qe.flattenColumns,ht=Qe.rowComponent,_t=Qe.cellComponent,Ye=Qe.onHeaderRow,We=Qe.index,Xe=S.useContext(o.a),Te=Xe.prefixCls,Me=Xe.direction,Ve;Ye&&(Ve=Ye(Ue.map(function(Ze){return Ze.column}),We));var Ge=Object(w.a)(Ue.map(function(Ze){return Ze.column}));return S.createElement(ht,Object.assign({},Ve),Ue.map(function(Ze,mt){var Pt=Ze.column,Gt=m(Ze.colStart,Ze.colEnd,jt,ft,Me),dn;return Pt&&Pt.onHeaderCell&&(dn=Ze.column.onHeaderCell(Pt)),S.createElement(l.a,Object.assign({},Ze,{ellipsis:Pt.ellipsis,align:Pt.align,component:_t,prefixCls:Te,key:Ge[mt]},Gt,{additionalProps:dn,rowType:"header"}))}))}C.displayName="HeaderRow";var v=C;function P(Qe){var Ue=[];function ft(Ye,We){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ue[Xe]=Ue[Xe]||[];var Te=We,Me=Ye.filter(Boolean).map(function(Ve){var Ge={key:Ve.key,className:Ve.className||"",children:Ve.title,column:Ve,colStart:Te},Ze=1,mt=Ve.children;return mt&&mt.length>0&&(Ze=ft(mt,Te,Xe+1).reduce(function(Pt,Gt){return Pt+Gt},0),Ge.hasSubColumns=!0),"colSpan"in Ve&&(Ze=Ve.colSpan),"rowSpan"in Ve&&(Ge.rowSpan=Ve.rowSpan),Ge.colSpan=Ze,Ge.colEnd=Ge.colStart+Ze-1,Ue[Xe].push(Ge),Te+=Ze,Ze});return Me}ft(Qe,0);for(var jt=Ue.length,ht=function(We){Ue[We].forEach(function(Xe){!("rowSpan"in Xe)&&!Xe.hasSubColumns&&(Xe.rowSpan=jt-We)})},_t=0;_t<jt;_t+=1)ht(_t);return Ue}function R(Qe){var Ue=Qe.stickyOffsets,ft=Qe.columns,jt=Qe.flattenColumns,ht=Qe.onHeaderRow,_t=S.useContext(o.a),Ye=_t.prefixCls,We=_t.getComponent,Xe=S.useMemo(function(){return P(ft)},[ft]),Te=We(["header","wrapper"],"thead"),Me=We(["header","row"],"tr"),Ve=We(["header","cell"],"th");return S.createElement(Te,{className:"".concat(Ye,"-thead")},Xe.map(function(Ge,Ze){var mt=S.createElement(v,{key:Ze,flattenColumns:jt,cells:Ge,stickyOffsets:Ue,rowComponent:Me,cellComponent:Ve,onHeaderRow:ht,index:Ze});return mt}))}var E=R,x=s("hW8S");function g(Qe){for(var Ue=Qe.colWidths,ft=Qe.columns,jt=Qe.columCount,ht=[],_t=jt||ft.length,Ye=!1,We=_t-1;We>=0;We-=1){var Xe=Ue[We],Te=ft&&ft[We],Me=Te&&Te[x.a];(Xe||Me||Ye)&&(ht.unshift(S.createElement("col",Object.assign({key:We,style:{width:Xe,minWidth:Xe}},Me))),Ye=!0)}return S.createElement("colgroup",null,ht)}var O=g;function I(Qe,Ue){return Object(S.useMemo)(function(){for(var ft=[],jt=0;jt<Ue;jt+=1){var ht=Qe[jt];if(ht!==void 0)ft[jt]=ht;else return null}return ft},[Qe.join("_"),Ue])}var D=S.forwardRef(function(Qe,Ue){var ft=Qe.noData,jt=Qe.columns,ht=Qe.flattenColumns,_t=Qe.colWidths,Ye=Qe.columCount,We=Qe.stickyOffsets,Xe=Qe.direction,Te=Qe.fixHeader,Me=Qe.offsetHeader,Ve=Qe.stickyClassName,Ge=Qe.onScroll,Ze=Object(i.a)(Qe,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),mt=S.useContext(o.a),Pt=mt.prefixCls,Gt=mt.scrollbarSize,dn=mt.isSticky,Tt=dn&&!Te?0:Gt,ut=S.useRef(null),je=S.useCallback(function(xt){Object(f.b)(Ue,xt),Object(f.b)(ut,xt)},[]);S.useEffect(function(){var xt;function kt(et){var Mt=et.currentTarget,Ht=et.deltaX;Ht&&(Ge({currentTarget:Mt,scrollLeft:Mt.scrollLeft+Ht}),et.preventDefault())}return(xt=ut.current)===null||xt===void 0||xt.addEventListener("wheel",kt),function(){var et;(et=ut.current)===null||et===void 0||et.removeEventListener("wheel",kt)}},[]);var tt=ht[ht.length-1],nt={fixed:tt?tt.fixed:null,onHeaderCell:function(){return{className:"".concat(Pt,"-cell-scrollbar")}}},De=Object(S.useMemo)(function(){return Tt?[].concat(Object(A.a)(jt),[nt]):jt},[Tt,jt]),Fe=Object(S.useMemo)(function(){return Tt?[].concat(Object(A.a)(ht),[nt]):ht},[Tt,ht]),bt=Object(S.useMemo)(function(){var xt=We.right,kt=We.left;return Object(p.a)(Object(p.a)({},We),{},{left:Xe==="rtl"?[].concat(Object(A.a)(kt.map(function(et){return et+Tt})),[0]):kt,right:Xe==="rtl"?xt:[].concat(Object(A.a)(xt.map(function(et){return et+Tt})),[0]),isSticky:dn})},[Tt,We,dn]),dt=I(_t,Ye);return S.createElement("div",{style:Object(p.a)({overflow:"hidden"},dn?{top:Me}:{}),ref:je,className:h()("".concat(Pt,"-header"),Object(L.a)({},Ve,!!Ve))},S.createElement("table",{style:{tableLayout:"fixed",visibility:ft||dt?null:"hidden"}},S.createElement(O,{colWidths:dt?[].concat(Object(A.a)(dt),[Tt]):[],columCount:Ye+1,columns:Fe}),S.createElement(E,Object.assign({},Ze,{stickyOffsets:bt,columns:De,flattenColumns:Fe}))))});D.displayName="FixedHeader";var N=D,V=S.createContext(null),F=V;function W(Qe){var Ue=Qe.prefixCls,ft=Qe.children,jt=Qe.component,ht=Qe.cellComponent,_t=Qe.fixHeader,Ye=Qe.fixColumn,We=Qe.horizonScroll,Xe=Qe.className,Te=Qe.expanded,Me=Qe.componentWidth,Ve=Qe.colSpan,Ge=S.useContext(o.a),Ze=Ge.scrollbarSize;return S.useMemo(function(){var mt=ft;return Ye&&(mt=S.createElement("div",{style:{width:Me-(_t?Ze:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ue,"-expanded-row-fixed")},mt)),S.createElement(jt,{className:Xe,style:{display:Te?null:"none"}},S.createElement(l.a,{component:ht,prefixCls:Ue,colSpan:Ve},mt))},[ft,jt,_t,We,Xe,Te,Me,Ve,Ze])}var K=W;function B(Qe){var Ue=Qe.className,ft=Qe.style,jt=Qe.record,ht=Qe.index,_t=Qe.rowKey,Ye=Qe.getRowKey,We=Qe.rowExpandable,Xe=Qe.expandedKeys,Te=Qe.onRow,Me=Qe.indent,Ve=Me===void 0?0:Me,Ge=Qe.rowComponent,Ze=Qe.cellComponent,mt=Qe.childrenColumnName,Pt=S.useContext(o.a),Gt=Pt.prefixCls,dn=Pt.fixedInfoList,Tt=S.useContext(F),ut=Tt.fixHeader,je=Tt.fixColumn,tt=Tt.horizonScroll,nt=Tt.componentWidth,De=Tt.flattenColumns,Fe=Tt.expandableType,bt=Tt.expandRowByClick,dt=Tt.onTriggerExpand,xt=Tt.rowClassName,kt=Tt.expandedRowClassName,et=Tt.indentSize,Mt=Tt.expandIcon,Ht=Tt.expandedRowRender,_n=Tt.expandIconColumnIndex,vn=S.useState(!1),fn=Object(y.a)(vn,2),Gn=fn[0],wn=fn[1],rn=Xe&&Xe.has(Qe.recordKey);S.useEffect(function(){rn&&wn(!0)},[rn]);var Qn=Fe==="row"&&(!We||We(jt)),Zn=Fe==="nest",rr=mt&&jt&&jt[mt],$n=Qn||Zn,Ar;Te&&(Ar=Te(jt,ht));var pr=function(z){if(bt&&$n&&dt(jt,z),Ar&&Ar.onClick){for(var Z,oe=arguments.length,xe=new Array(oe>1?oe-1:0),he=1;he<oe;he++)xe[he-1]=arguments[he];(Z=Ar).onClick.apply(Z,[z].concat(xe))}},on;typeof xt=="string"?on=xt:typeof xt=="function"&&(on=xt(jt,ht,Ve));var Zt=Object(w.a)(De),An=S.createElement(Ge,Object.assign({},Ar,{"data-row-key":_t,className:h()(Ue,"".concat(Gt,"-row"),"".concat(Gt,"-row-level-").concat(Ve),on,Ar&&Ar.className),style:Object(p.a)(Object(p.a)({},ft),Ar?Ar.style:null),onClick:pr}),De.map(function(pe,z){var Z=pe.render,oe=pe.dataIndex,xe=pe.className,he=Zt[z],lt=dn[z],an;z===(_n||0)&&Zn&&(an=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(et*Ve,"px")},className:"".concat(Gt,"-row-indent indent-level-").concat(Ve)}),Mt({prefixCls:Gt,expanded:rn,expandable:rr,record:jt,onExpand:dt})));var Nn;return pe.onCell&&(Nn=pe.onCell(jt,ht)),S.createElement(l.a,Object.assign({className:xe,ellipsis:pe.ellipsis,align:pe.align,component:Ze,prefixCls:Gt,key:he,record:jt,index:ht,dataIndex:oe,render:Z,shouldCellUpdate:pe.shouldCellUpdate},lt,{appendNode:an,additionalProps:Nn}))})),jr;if(Qn&&(Gn||rn)){var Ln=Ht(jt,ht,Ve+1,rn),qn=kt&&kt(jt,ht,Ve);jr=S.createElement(K,{expanded:rn,className:h()("".concat(Gt,"-expanded-row"),"".concat(Gt,"-expanded-row-level-").concat(Ve+1),qn),prefixCls:Gt,fixHeader:ut,fixColumn:je,horizonScroll:tt,component:Ge,componentWidth:nt,cellComponent:Ze,colSpan:De.length},Ln)}var Un;return rr&&rn&&(Un=(jt[mt]||[]).map(function(pe,z){var Z=Ye(pe,z);return S.createElement(B,Object.assign({},Qe,{key:Z,rowKey:Z,record:pe,recordKey:Z,index:z,indent:Ve+1}))})),S.createElement(S.Fragment,null,An,jr,Un)}B.displayName="BodyRow";var k=B,G=S.createContext(null),ne=G;function fe(Qe){var Ue=Qe.columnKey,ft=Qe.onColumnResize,jt=S.useRef();return S.useEffect(function(){jt.current&&ft(Ue,jt.current.offsetWidth)},[]),S.createElement(c.a,{onResize:function(_t){var Ye=_t.offsetWidth;ft(Ue,Ye)}},S.createElement("td",{ref:jt,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function de(Qe){var Ue=Qe.data,ft=Qe.getRowKey,jt=Qe.measureColumnWidth,ht=Qe.expandedKeys,_t=Qe.onRow,Ye=Qe.rowExpandable,We=Qe.emptyNode,Xe=Qe.childrenColumnName,Te=S.useContext(ne),Me=Te.onColumnResize,Ve=S.useContext(o.a),Ge=Ve.prefixCls,Ze=Ve.getComponent,mt=S.useContext(F),Pt=mt.fixHeader,Gt=mt.horizonScroll,dn=mt.flattenColumns,Tt=mt.componentWidth;return S.useMemo(function(){var ut=Ze(["body","wrapper"],"tbody"),je=Ze(["body","row"],"tr"),tt=Ze(["body","cell"],"td"),nt;Ue.length?nt=Ue.map(function(Fe,bt){var dt=ft(Fe,bt);return S.createElement(k,{key:dt,rowKey:dt,record:Fe,recordKey:dt,index:bt,rowComponent:je,cellComponent:tt,expandedKeys:ht,onRow:_t,getRowKey:ft,rowExpandable:Ye,childrenColumnName:Xe})}):nt=S.createElement(K,{expanded:!0,className:"".concat(Ge,"-placeholder"),prefixCls:Ge,fixHeader:Pt,fixColumn:Gt,horizonScroll:Gt,component:je,componentWidth:Tt,cellComponent:tt,colSpan:dn.length},We);var De=Object(w.a)(dn);return S.createElement(ut,{className:"".concat(Ge,"-tbody")},jt&&S.createElement("tr",{"aria-hidden":"true",className:"".concat(Ge,"-measure-row"),style:{height:0}},De.map(function(Fe){return S.createElement(fe,{key:Fe,columnKey:Fe,onColumnResize:Me})})),nt)},[Ue,Ge,_t,jt,ht,ft,Ze,Tt,We,dn])}var Ee=S.memo(de);Ee.displayName="Body";var we=Ee,ce=s("wRmb"),be=s("xEkU"),ve=s.n(be);function ue(Qe){var Ue=Object(S.useRef)(Qe),ft=Object(S.useState)({}),jt=Object(y.a)(ft,2),ht=jt[1],_t=Object(S.useRef)(null),Ye=Object(S.useRef)([]);function We(Xe){_t.current===null&&(Ye.current=[],_t.current=ve()(function(){Ye.current.forEach(function(Te){Ue.current=Te(Ue.current)}),_t.current=null,ht({})})),Ye.current.push(Xe)}return Object(S.useEffect)(function(){return function(){ve.a.cancel(_t.current)}},[]),[Ue.current,We]}function se(Qe){var Ue=Object(S.useRef)(Qe),ft=Object(S.useRef)(null);function jt(){window.clearTimeout(ft.current)}function ht(Ye){Ue.current=Ye,jt(),ft.current=window.setTimeout(function(){Ue.current=null,ft.current=null},100)}function _t(){return Ue.current}return Object(S.useEffect)(function(){return jt},[]),[ht,_t]}function q(Qe,Ue,ft){var jt=Object(S.useMemo)(function(){for(var ht=[],_t=[],Ye=0,We=0,Xe=0;Xe<Ue;Xe+=1)if(ft==="rtl"){_t[Xe]=We,We+=Qe[Xe]||0;var Te=Ue-Xe-1;ht[Te]=Ye,Ye+=Qe[Te]||0}else{ht[Xe]=Ye,Ye+=Qe[Xe]||0;var Me=Ue-Xe-1;_t[Me]=We,We+=Qe[Me]||0}return{left:ht,right:_t}},[Qe,Ue,ft]);return jt}var me=q;function re(Qe){var Ue=Qe.className,ft=Qe.children;return S.createElement("div",{className:Ue},ft)}var ie=re,Oe=s("n6Qo");function le(Qe){var Ue,ft=Qe.prefixCls,jt=Qe.record,ht=Qe.onExpand,_t=Qe.expanded,Ye=Qe.expandable,We="".concat(ft,"-row-expand-icon");if(!Ye)return S.createElement("span",{className:h()(We,"".concat(ft,"-row-spaced"))});var Xe=function(Me){ht(jt,Me),Me.stopPropagation()};return S.createElement("span",{className:h()(We,(Ue={},Object(L.a)(Ue,"".concat(ft,"-row-expanded"),_t),Object(L.a)(Ue,"".concat(ft,"-row-collapsed"),!_t),Ue)),onClick:Xe})}function $(Qe,Ue,ft){var jt=[];function ht(_t){(_t||[]).forEach(function(Ye,We){jt.push(Ue(Ye,We)),ht(Ye[ft])})}return ht(Qe),jt}var J=s("zT1h"),te=s("y0+3"),Ae=function(Ue,ft){var jt,ht,_t=Ue.scrollBodyRef,Ye=Ue.onScroll,We=Ue.offsetScroll,Xe=S.useContext(o.a),Te=Xe.prefixCls,Me=((jt=_t.current)===null||jt===void 0?void 0:jt.scrollWidth)||0,Ve=((ht=_t.current)===null||ht===void 0?void 0:ht.clientWidth)||0,Ge=Me&&Ve*(Ve/Me),Ze=S.useRef(),mt=ue({scrollLeft:0,isHiddenScrollBar:!1}),Pt=Object(y.a)(mt,2),Gt=Pt[0],dn=Pt[1],Tt=S.useRef({delta:0,x:0}),ut=S.useState(!1),je=Object(y.a)(ut,2),tt=je[0],nt=je[1],De=function(){nt(!1)},Fe=function(et){et.persist(),Tt.current.delta=et.pageX-Gt.scrollLeft,Tt.current.x=0,nt(!0),et.preventDefault()},bt=function(et){var Mt,Ht=et||((Mt=window)===null||Mt===void 0?void 0:Mt.event),_n=Ht.buttons;if(!tt||_n===0){tt&&nt(!1);return}var vn=Tt.current.x+et.pageX-Tt.current.x-Tt.current.delta;vn<=0&&(vn=0),vn+Ge>=Ve&&(vn=Ve-Ge),Ye({scrollLeft:vn/Ve*(Me+2)}),Tt.current.x=et.pageX},dt=function(){var et=Object(te.b)(_t.current).top,Mt=et+_t.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;Mt-Object(t.a)()<=Ht||et>=Ht-We?dn(function(_n){return Object(p.a)(Object(p.a)({},_n),{},{isHiddenScrollBar:!0})}):dn(function(_n){return Object(p.a)(Object(p.a)({},_n),{},{isHiddenScrollBar:!1})})},xt=function(et){dn(function(Mt){return Object(p.a)(Object(p.a)({},Mt),{},{scrollLeft:et/Me*Ve||0})})};return S.useImperativeHandle(ft,function(){return{setScrollLeft:xt}}),S.useEffect(function(){var kt=Object(J.a)(document.body,"mouseup",De,!1),et=Object(J.a)(document.body,"mousemove",bt,!1);return dt(),function(){kt.remove(),et.remove()}},[Ge,tt]),S.useEffect(function(){var kt=Object(J.a)(window,"scroll",dt,!1),et=Object(J.a)(window,"resize",dt,!1);return function(){kt.remove(),et.remove()}},[]),S.useEffect(function(){Gt.isHiddenScrollBar||dn(function(kt){var et,Mt;return Object(p.a)(Object(p.a)({},kt),{},{scrollLeft:_t.current.scrollLeft/((et=_t.current)===null||et===void 0?void 0:et.scrollWidth)*((Mt=_t.current)===null||Mt===void 0?void 0:Mt.clientWidth)})})},[Gt.isHiddenScrollBar]),Me<=Ve||!Ge||Gt.isHiddenScrollBar?null:S.createElement("div",{style:{height:Object(t.a)(),width:Ve,bottom:We},className:"".concat(Te,"-sticky-scroll")},S.createElement("div",{onMouseDown:Fe,ref:Ze,className:h()("".concat(Te,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Te,"-sticky-scroll-bar-active"),tt)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(Gt.scrollLeft,"px, 0, 0)")}}))},Se=S.forwardRef(Ae);function ke(Qe,Ue){return S.useMemo(function(){var ft=!!Qe;return{isSticky:ft,stickyClassName:ft?"".concat(Ue,"-sticky-header"):"",offsetHeader:Object(b.a)(Qe)==="object"&&Qe.offsetHeader||0,offsetScroll:Object(b.a)(Qe)==="object"&&Qe.offsetScroll||0}},[Qe,Ue])}var rt=[],ot={},gt="rc-table-internal-hook",Et=S.memo(function(Qe){var Ue=Qe.children;return Ue},function(Qe,Ue){return d()(Qe.props,Ue.props)?Qe.pingLeft!==Ue.pingLeft||Qe.pingRight!==Ue.pingRight:!1});function Ct(Qe){var Ue,ft=Qe.prefixCls,jt=Qe.className,ht=Qe.rowClassName,_t=Qe.style,Ye=Qe.data,We=Qe.rowKey,Xe=Qe.scroll,Te=Qe.tableLayout,Me=Qe.direction,Ve=Qe.title,Ge=Qe.footer,Ze=Qe.summary,mt=Qe.id,Pt=Qe.showHeader,Gt=Qe.components,dn=Qe.emptyText,Tt=Qe.onRow,ut=Qe.onHeaderRow,je=Qe.internalHooks,tt=Qe.transformColumns,nt=Qe.internalRefs,De=Qe.sticky,Fe=Ye||rt,bt=!!Fe.length,dt=S.useState(0),xt=Object(y.a)(dt,2),kt=xt[0],et=xt[1];S.useEffect(function(){et(Object(t.a)())});var Mt=S.useMemo(function(){return Object(w.c)(Gt,{})},[Gt]),Ht=S.useCallback(function(Kt,Qt){return Object(w.b)(Mt,Kt)||Qt},[Mt]),_n=S.useMemo(function(){return typeof We=="function"?We:function(Kt){var Qt=Kt&&Kt[We];return Qt}},[We]),vn=Object(x.c)(Qe),fn=vn.expandIcon,Gn=vn.expandedRowKeys,wn=vn.defaultExpandedRowKeys,rn=vn.defaultExpandAllRows,Qn=vn.expandedRowRender,Zn=vn.onExpand,rr=vn.onExpandedRowsChange,$n=vn.expandRowByClick,Ar=vn.rowExpandable,pr=vn.expandIconColumnIndex,on=vn.expandedRowClassName,Zt=vn.childrenColumnName,An=vn.indentSize,jr=fn||le,Ln=Zt||"children",qn=S.useMemo(function(){return Qn?"row":Qe.expandable&&je===gt&&Qe.expandable.__PARENT_RENDER_ICON__||Fe.some(function(Kt){return Kt&&Object(b.a)(Kt)==="object"&&Kt[Ln]})?"nest":!1},[!!Qn,Fe]),Un=S.useState(function(){return wn||(rn?$(Fe,_n,Ln):[])}),pe=Object(y.a)(Un,2),z=pe[0],Z=pe[1],oe=S.useMemo(function(){return new Set(Gn||z||[])},[Gn,z]),xe=S.useCallback(function(Kt){var Qt=_n(Kt,Fe.indexOf(Kt)),Jt,Xn=oe.has(Qt);Xn?(oe.delete(Qt),Jt=Object(A.a)(oe)):Jt=[].concat(Object(A.a)(oe),[Qt]),Z(Jt),Zn&&Zn(!Xn,Kt),rr&&rr(Jt)},[_n,oe,Fe,Zn,rr]),he=S.useState(0),lt=Object(y.a)(he,2),an=lt[0],Nn=lt[1],Yn=Object(ce.b)(Object(p.a)(Object(p.a)(Object(p.a)({},Qe),vn),{},{expandable:!!Qn,expandedKeys:oe,getRowKey:_n,onTriggerExpand:xe,expandIcon:jr,expandIconColumnIndex:pr,direction:Me}),je===gt?tt:null),tn=Object(y.a)(Yn,2),Cn=tn[0],Jn=tn[1],$r=S.useMemo(function(){return{columns:Cn,flattenColumns:Jn}},[Cn,Jn]),ga=S.useRef(),pa=S.useRef(),mr=S.useRef(),za=S.useState(!1),ja=Object(y.a)(za,2),Ra=ja[0],Ha=ja[1],Sa=S.useState(!1),Ja=Object(y.a)(Sa,2),ka=Ja[0],li=Ja[1],oi=ue(new Map),ua=Object(y.a)(oi,2),fa=ua[0],oa=ua[1],ye=Object(w.a)(Jn),st=ye.map(function(Kt){return fa.get(Kt)}),It=S.useMemo(function(){return st},[st.join("_")]),At=me(It,Jn.length,Me),Wt=Xe&&Object(w.d)(Xe.y),Nt=Xe&&Object(w.d)(Xe.x),Xt=Nt&&Jn.some(function(Kt){var Qt=Kt.fixed;return Qt}),en=S.useRef(),yn=ke(De,ft),mn=yn.isSticky,jn=yn.offsetHeader,Dn=yn.offsetScroll,nn=yn.stickyClassName,Mn,bn,Bn;Wt&&(bn={overflowY:"scroll",maxHeight:Xe.y}),Nt&&(Mn={overflowX:"auto"},Wt||(bn={overflowY:"hidden"}),Bn={width:Xe.x===!0?"auto":Xe.x,minWidth:"100%"});var Pn=S.useCallback(function(Kt,Qt){oa(function(Jt){var Xn=new Map(Jt);return Xn.set(Kt,Qt),Xn})},[]),er=se(null),vr=Object(y.a)(er,2),Br=vr[0],Sn=vr[1];function Yt(Kt,Qt){if(!Qt)return;typeof Qt=="function"?Qt(Kt):Qt.scrollLeft!==Kt&&(Qt.scrollLeft=Kt)}var cn=function(Qt){var Jt=Qt.currentTarget,Xn=Qt.scrollLeft,ir=typeof Xn=="number"?Xn:Jt.scrollLeft,kn=Jt||ot;if(!Sn()||Sn()===kn){var lr;Br(kn),Yt(ir,pa.current),Yt(ir,mr.current),Yt(ir,(lr=en.current)===null||lr===void 0?void 0:lr.setScrollLeft)}if(Jt){var hr=Jt.scrollWidth,cr=Jt.clientWidth;Ha(ir>0),li(ir<hr-cr)}},Rn=function(){mr.current&&cn({currentTarget:mr.current})},qt=function(Qt){var Jt=Qt.width;Rn(),Nn(ga.current?ga.current.offsetWidth:Jt)};S.useEffect(function(){return Rn},[]),S.useEffect(function(){Nt&&Rn()},[Nt]),S.useEffect(function(){je===gt&&nt&&(nt.body.current=mr.current)});var On=Ht(["table"],"table"),gn=S.useMemo(function(){return Te||(Xt?Xe.x==="max-content"?"auto":"fixed":Wt||Jn.some(function(Kt){var Qt=Kt.ellipsis;return Qt})?"fixed":"auto")},[Wt,Xt,Jn,Te]),In,Fn={colWidths:It,columCount:Jn.length,stickyOffsets:At,onHeaderRow:ut,fixHeader:Wt},ur=S.useMemo(function(){return bt?null:typeof dn=="function"?dn():dn},[bt,dn]),ar=S.createElement(we,{data:Fe,measureColumnWidth:Wt||Nt||mn,expandedKeys:oe,rowExpandable:Ar,getRowKey:_n,onRow:Tt,emptyNode:ur,childrenColumnName:Ln}),Rr=S.createElement(O,{colWidths:Jn.map(function(Kt){var Qt=Kt.width;return Qt}),columns:Jn}),Ir=Ze&&S.createElement(Oe.b,null,Ze(Fe)),tr=Ht(["body"]);if(Wt||mn){var Dr;typeof tr=="function"?(Dr=tr(Fe,{scrollbarSize:kt,ref:mr,onScroll:cn}),Fn.colWidths=Jn.map(function(Kt,Qt){var Jt=Kt.width,Xn=Qt===Cn.length-1?Jt-kt:Jt;return typeof Xn=="number"&&!Number.isNaN(Xn)?Xn:(Object(r.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Dr=S.createElement("div",{style:Object(p.a)(Object(p.a)({},Mn),bn),onScroll:cn,ref:mr,className:h()("".concat(ft,"-body"))},S.createElement(On,{style:Object(p.a)(Object(p.a)({},Bn),{},{tableLayout:gn})},Rr,ar,Ir),mn&&S.createElement(Se,{ref:en,offsetScroll:Dn,scrollBodyRef:mr,onScroll:cn})),In=S.createElement(S.Fragment,null,Pt!==!1&&S.createElement(N,Object.assign({noData:!Fe.length},Fn,$r,{direction:Me,offsetHeader:jn,stickyClassName:nn,ref:pa,onScroll:cn})),Dr)}else In=S.createElement("div",{style:Object(p.a)(Object(p.a)({},Mn),bn),className:h()("".concat(ft,"-content")),onScroll:cn,ref:mr},S.createElement(On,{style:Object(p.a)(Object(p.a)({},Bn),{},{tableLayout:gn})},Rr,Pt!==!1&&S.createElement(E,Object.assign({},Fn,$r)),ar,Ir));var br=Object(x.b)(Qe),Gr=S.createElement("div",Object.assign({className:h()(ft,jt,(Ue={},Object(L.a)(Ue,"".concat(ft,"-rtl"),Me==="rtl"),Object(L.a)(Ue,"".concat(ft,"-ping-left"),Ra),Object(L.a)(Ue,"".concat(ft,"-ping-right"),ka),Object(L.a)(Ue,"".concat(ft,"-layout-fixed"),Te==="fixed"),Object(L.a)(Ue,"".concat(ft,"-fixed-header"),Wt),Object(L.a)(Ue,"".concat(ft,"-fixed-column"),Xt),Object(L.a)(Ue,"".concat(ft,"-scroll-horizontal"),Nt),Object(L.a)(Ue,"".concat(ft,"-has-fix-left"),Jn[0]&&Jn[0].fixed),Object(L.a)(Ue,"".concat(ft,"-has-fix-right"),Jn[Jn.length-1]&&Jn[Jn.length-1].fixed==="right"),Ue)),style:_t,id:mt,ref:ga},br),S.createElement(Et,{pingLeft:Ra,pingRight:ka,props:Object(p.a)(Object(p.a)({},Qe),{},{stickyOffsets:At,mergedExpandedKeys:oe})},Ve&&S.createElement(ie,{className:"".concat(ft,"-title")},Ve(Fe)),S.createElement("div",{className:"".concat(ft,"-container")},In),Ge&&S.createElement(ie,{className:"".concat(ft,"-footer")},Ge(Fe))));Nt&&(Gr=S.createElement(c.a,{onResize:qt},Gr));var Lr=S.useMemo(function(){return{prefixCls:ft,getComponent:Ht,scrollbarSize:kt,direction:Me,fixedInfoList:Jn.map(function(Kt,Qt){return m(Qt,Qt,Jn,At,Me)}),isSticky:mn}},[ft,Ht,kt,Me,Jn,At,Me,mn]),qr=S.useMemo(function(){return Object(p.a)(Object(p.a)({},$r),{},{tableLayout:gn,rowClassName:ht,expandedRowClassName:on,componentWidth:an,fixHeader:Wt,fixColumn:Xt,horizonScroll:Nt,expandIcon:jr,expandableType:qn,expandRowByClick:$n,expandedRowRender:Qn,onTriggerExpand:xe,expandIconColumnIndex:pr,indentSize:An})},[$r,gn,ht,on,an,Wt,Xt,Nt,jr,qn,$n,Qn,xe,pr,An]),sr=S.useMemo(function(){return{onColumnResize:Pn}},[Pn]);return S.createElement(o.a.Provider,{value:Lr},S.createElement(F.Provider,{value:qr},S.createElement(ne.Provider,{value:sr},Gr)))}Ct.Column=n.a,Ct.ColumnGroup=a.a,Ct.Summary=Oe.a,Ct.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var wt=Y.b=Ct},wRmb:function(M,Y,s){"use strict";s.d(Y,"a",function(){return d});var L=s("rePB"),p=s("KQm4"),A=s("VTBJ"),b=s("Ff2n"),y=s("cDcd"),S=s.n(y),T=s("Kwbf"),h=s("Zm9Q"),_=s("hW8S");function d(n){return Object(h.a)(n).filter(function(i){return y.isValidElement(i)}).map(function(i){var f=i.key,l=i.props,o=l.children,m=Object(b.a)(l,["children"]),w=Object(A.a)({key:f},m);return o&&(w.children=d(o)),w})}function r(n){return n.reduce(function(i,f){var l=f.fixed,o=l===!0?"left":l,m=f.children;return m&&m.length>0?[].concat(Object(p.a)(i),Object(p.a)(r(m).map(function(w){return Object(A.a)({fixed:o},w)}))):[].concat(Object(p.a)(i),[Object(A.a)(Object(A.a)({},f),{},{fixed:o})])},[])}function c(n){for(var i=!0,f=0;f<n.length;f+=1){var l=n[f];if(i&&l.fixed!=="left")i=!1;else if(!i&&l.fixed==="left"){Object(T.a)(!1,"Index ".concat(f-1," of `columns` missing `fixed='left'` prop."));break}}for(var o=!0,m=n.length-1;m>=0;m-=1){var w=n[m];if(o&&w.fixed!=="right")o=!1;else if(!o&&w.fixed==="right"){Object(T.a)(!1,"Index ".concat(m+1," of `columns` missing `fixed='right'` prop."));break}}}function t(n){return n.map(function(i){var f=i.fixed,l=Object(b.a)(i,["fixed"]),o=f;return f==="left"?o="right":f==="right"&&(o="left"),Object(A.a)({fixed:o},l)})}function a(n,i){var f=n.prefixCls,l=n.columns,o=n.children,m=n.expandable,w=n.expandedKeys,C=n.getRowKey,v=n.onTriggerExpand,P=n.expandIcon,R=n.rowExpandable,E=n.expandIconColumnIndex,x=n.direction,g=n.expandRowByClick,O=y.useMemo(function(){return l||d(o)},[l,o]),I=y.useMemo(function(){if(m){var V,F=E||0,W=O[F],K=(V={},Object(L.a)(V,_.a,{className:"".concat(f,"-expand-icon-col")}),Object(L.a)(V,"title",""),Object(L.a)(V,"fixed",W?W.fixed:null),Object(L.a)(V,"className","".concat(f,"-row-expand-icon-cell")),Object(L.a)(V,"render",function(G,ne,fe){var de=C(ne,fe),Ee=w.has(de),we=R?R(ne):!0,ce=P({prefixCls:f,expanded:Ee,expandable:we,record:ne,onExpand:v});return g?y.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},ce):ce}),V),B=O.slice();return F>=0&&B.splice(F,0,K),B}return O},[m,O,C,w,P,x]),D=y.useMemo(function(){var V=I;return i&&(V=i(V)),V.length||(V=[{render:function(){return null}}]),V},[i,I,x]),N=y.useMemo(function(){return x==="rtl"?t(r(D)):r(D)},[D,x]);return[D,N]}Y.b=a},wZgz:function(M,Y,s){(function(L,p,A){M.exports=Y=p(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.BlockCipher,y=p.algo,S=[],T=[],h=[],_=[],d=[],r=[],c=[],t=[],a=[],n=[];(function(){for(var l=[],o=0;o<256;o++)o<128?l[o]=o<<1:l[o]=o<<1^283;for(var m=0,w=0,o=0;o<256;o++){var C=w^w<<1^w<<2^w<<3^w<<4;C=C>>>8^C&255^99,S[m]=C,T[C]=m;var v=l[m],P=l[v],R=l[P],E=l[C]*257^C*16843008;h[m]=E<<24|E>>>8,_[m]=E<<16|E>>>16,d[m]=E<<8|E>>>24,r[m]=E;var E=R*16843009^P*65537^v*257^m*16843008;c[C]=E<<24|E>>>8,t[C]=E<<16|E>>>16,a[C]=E<<8|E>>>24,n[C]=E,m?(m=v^l[l[l[R^v]]],w^=l[l[w]]):m=w=1}})();var i=[0,1,2,4,8,16,32,64,128,27,54],f=y.AES=b.extend({_doReset:function(){var l;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var o=this._keyPriorReset=this._key,m=o.words,w=o.sigBytes/4,C=this._nRounds=w+6,v=(C+1)*4,P=this._keySchedule=[],R=0;R<v;R++)R<w?P[R]=m[R]:(l=P[R-1],R%w?w>6&&R%w==4&&(l=S[l>>>24]<<24|S[l>>>16&255]<<16|S[l>>>8&255]<<8|S[l&255]):(l=l<<8|l>>>24,l=S[l>>>24]<<24|S[l>>>16&255]<<16|S[l>>>8&255]<<8|S[l&255],l^=i[R/w|0]<<24),P[R]=P[R-w]^l);for(var E=this._invKeySchedule=[],x=0;x<v;x++){var R=v-x;if(x%4)var l=P[R];else var l=P[R-4];x<4||R<=4?E[x]=l:E[x]=c[S[l>>>24]]^t[S[l>>>16&255]]^a[S[l>>>8&255]]^n[S[l&255]]}},encryptBlock:function(l,o){this._doCryptBlock(l,o,this._keySchedule,h,_,d,r,S)},decryptBlock:function(l,o){var m=l[o+1];l[o+1]=l[o+3],l[o+3]=m,this._doCryptBlock(l,o,this._invKeySchedule,c,t,a,n,T);var m=l[o+1];l[o+1]=l[o+3],l[o+3]=m},_doCryptBlock:function(l,o,m,w,C,v,P,R){for(var E=this._nRounds,x=l[o]^m[0],g=l[o+1]^m[1],O=l[o+2]^m[2],I=l[o+3]^m[3],D=4,N=1;N<E;N++){var V=w[x>>>24]^C[g>>>16&255]^v[O>>>8&255]^P[I&255]^m[D++],F=w[g>>>24]^C[O>>>16&255]^v[I>>>8&255]^P[x&255]^m[D++],W=w[O>>>24]^C[I>>>16&255]^v[x>>>8&255]^P[g&255]^m[D++],K=w[I>>>24]^C[x>>>16&255]^v[g>>>8&255]^P[O&255]^m[D++];x=V,g=F,O=W,I=K}var V=(R[x>>>24]<<24|R[g>>>16&255]<<16|R[O>>>8&255]<<8|R[I&255])^m[D++],F=(R[g>>>24]<<24|R[O>>>16&255]<<16|R[I>>>8&255]<<8|R[x&255])^m[D++],W=(R[O>>>24]<<24|R[I>>>16&255]<<16|R[x>>>8&255]<<8|R[g&255])^m[D++],K=(R[I>>>24]<<24|R[x>>>16&255]<<16|R[g>>>8&255]<<8|R[O&255])^m[D++];l[o]=V,l[o+1]=F,l[o+2]=W,l[o+3]=K},keySize:256/32});p.AES=b._createHelper(f)}(),L.AES})},wbyO:function(M,Y,s){(function(L,p){M.exports=Y=p(s("Ib8C"))})(this,function(L){return function(){var p=L,A=p.lib,b=A.WordArray,y=p.enc,S=y.Base64url={stringify:function(h,_=!0){var d=h.words,r=h.sigBytes,c=_?this._safe_map:this._map;h.clamp();for(var t=[],a=0;a<r;a+=3)for(var n=d[a>>>2]>>>24-a%4*8&255,i=d[a+1>>>2]>>>24-(a+1)%4*8&255,f=d[a+2>>>2]>>>24-(a+2)%4*8&255,l=n<<16|i<<8|f,o=0;o<4&&a+o*.75<r;o++)t.push(c.charAt(l>>>6*(3-o)&63));var m=c.charAt(64);if(m)for(;t.length%4;)t.push(m);return t.join("")},parse:function(h,_=!0){var d=h.length,r=_?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var t=0;t<r.length;t++)c[r.charCodeAt(t)]=t}var a=r.charAt(64);if(a){var n=h.indexOf(a);n!==-1&&(d=n)}return T(h,d,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function T(h,_,d){for(var r=[],c=0,t=0;t<_;t++)if(t%4){var a=d[h.charCodeAt(t-1)]<<t%4*2,n=d[h.charCodeAt(t)]>>>6-t%4*2,i=a|n;r[c>>>2]|=i<<24-c%4*8,c++}return b.create(r,c)}}(),L.enc.Base64url})},xiVL:function(M,Y){M.exports="data:image/png;base64,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"},xrsn:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",dropDown:"dropDown___3Phxo",line:"line___3lQ2g",subName:"subName___3sqtP",name:"name___1Odvx",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":function(M,Y,s){"use strict";s.d(Y,"a",function(){return r}),s.d(Y,"b",function(){return t});var L=/margin|padding|width|height|max|min|offset/,p={left:!0,top:!0},A={cssFloat:1,styleFloat:1,float:1};function b(a){return a.nodeType===1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}}function y(a,n,i){if(n=n.toLowerCase(),i==="auto"){if(n==="height")return a.offsetHeight;if(n==="width")return a.offsetWidth}return n in p||(p[n]=L.test(n)),p[n]?parseFloat(i)||0:i}function S(a,n){var i=arguments.length,f=b(a);return n=A[n]?"cssFloat"in a.style?"cssFloat":"styleFloat":n,i===1?f:y(a,n,f[n]||a.style[n])}function T(a,n,i){var f=arguments.length;if(n=A[n]?"cssFloat"in a.style?"cssFloat":"styleFloat":n,f===3)return typeof i=="number"&&L.test(n)&&(i="".concat(i,"px")),a.style[n]=i,i;for(var l in n)n.hasOwnProperty(l)&&T(a,l,n[l]);return b(a)}function h(a){return a===document.body?document.documentElement.clientWidth:a.offsetWidth}function _(a){return a===document.body?window.innerHeight||document.documentElement.clientHeight:a.offsetHeight}function d(){var a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:a,height:n}}function r(){var a=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:a,height:n}}function c(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function t(a){var n=a.getBoundingClientRect(),i=document.documentElement;return{left:n.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||document.body.clientTop||0)}}},yDYP:function(M,Y,s){M.exports={flex_box_center:"flex_box_center___1ns9C",flex_space_between:"flex_space_between___CtYWo",flex_box_vertical_center:"flex_box_vertical_center___1BY1r",flex_box_center_end:"flex_box_center_end___1f_qK",flex_box_column:"flex_box_column___vKDYT",commitWrap:"commitWrap___3D8wo",wrap:"wrap___3FqEy",colorGray:"colorGray___cRpZO",content:"content___3lBLc",itemTime:"itemTime___Tgw2b",imageUrl:"imageUrl___2Lb2n",blueLight:"blueLight___1hcIr",divider:"divider___3FYHo",empty:"empty___oYMsw"}},"yTi+":function(M,Y,s){M.exports=s.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(M,Y){M.exports="data:image/png;base64,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"},yslc:function(M,Y){M.exports="data:image/png;base64,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"},z4EP:function(M,Y){M.exports="data:image/png;base64,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"}}]);