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.e25d1127.a...

597 lines
2.5 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([[245,3,5,6,7,8,9,10,13,14,21,252],{"+GGh":function(k,z){k.exports="data:image/png;base64,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"},"+NIl":function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";M.defineMode("stex",function(g,A){"use strict";function b(i,r){i.cmdState.push(r)}function y(i){return i.cmdState.length>0?i.cmdState[i.cmdState.length-1]:null}function C(i){var r=i.cmdState.pop();r&&r.closeBracket()}function O(i){for(var r=i.cmdState,c=r.length-1;c>=0;c--){var h=r[c];if(h.name=="DEFAULT")continue;return h}return{styleIdentifier:function(){return null}}}function m(i,r,c){return function(){this.name=i,this.bracketNo=0,this.style=r,this.styles=c,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var e={};e.importmodule=m("importmodule","tag",["string","builtin"]),e.documentclass=m("documentclass","tag",["","atom"]),e.usepackage=m("usepackage","tag",["atom"]),e.begin=m("begin","tag",["atom"]),e.end=m("end","tag",["atom"]),e.label=m("label","tag",["atom"]),e.ref=m("ref","tag",["atom"]),e.eqref=m("eqref","tag",["atom"]),e.cite=m("cite","tag",["atom"]),e.bibitem=m("bibitem","tag",["atom"]),e.Bibitem=m("Bibitem","tag",["atom"]),e.RBibitem=m("RBibitem","tag",["atom"]),e.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function f(i,r){i.f=r}function a(i,r){var c;if(i.match(/^\\[a-zA-Z@]+/)){var h=i.current().slice(1);return c=e.hasOwnProperty(h)?e[h]:e.DEFAULT,c=new c,b(r,c),f(r,n),c.style}if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/\\]/))return"tag";if(i.match("\\["))return f(r,function(s,l){return u(s,l,"\\]")}),"keyword";if(i.match("\\("))return f(r,function(s,l){return u(s,l,"\\)")}),"keyword";if(i.match("$$"))return f(r,function(s,l){return u(s,l,"$$")}),"keyword";if(i.match("$"))return f(r,function(s,l){return u(s,l,"$")}),"keyword";var d=i.next();if(d=="%")return i.skipToEnd(),"comment";if(d=="}"||d=="]"){if(c=y(r),c)c.closeBracket(d),f(r,n);else return"error";return"bracket"}else return d=="{"||d=="["?(c=e.DEFAULT,c=new c,b(r,c),"bracket"):/\d/.test(d)?(i.eatWhile(/[\w.%]/),"atom"):(i.eatWhile(/[\w\-_]/),c=O(r),c.name=="begin"&&(c.argument=i.current()),c.styleIdentifier())}function u(i,r,c){if(i.eatSpace())return null;if(c&&i.match(c))return f(r,a),"keyword";if(i.match(/^\\[a-zA-Z@]+/))return"tag";if(i.match(/^[a-zA-Z]+/))return"variable-2";if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/]/))return"tag";if(i.match(/^[\^_&]/))return"tag";if(i.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(i.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var h=i.next();return h=="{"||h=="}"||h=="["||h=="]"||h=="("||h==")"?"bracket":h=="%"?(i.skipToEnd(),"comment"):"error"}function n(i,r){var c=i.peek(),h;return c=="{"||c=="["?(h=y(r),h.openBracket(c),i.eat(c),f(r,a),"bracket"):/[ \t\r]/.test(c)?(i.eat(c),null):(f(r,a),C(r),a(i,r))}return{startState:function(){var i=A.inMathMode?function(r,c){return u(r,c)}:a;return{cmdState:[],f:i}},copyState:function(i){return{cmdState:i.cmdState.slice(),f:i.f}},token:function(i,r){return r.f(i,r)},blankLine:function(i){i.f=a,i.cmdState.length=0},lineComment:"%"}}),M.defineMIME("text/x-stex","stex"),M.defineMIME("text/x-latex","stex")})},"+QRC":function(k,z,o){"use strict";var M=o("E9nw"),g={"text/plain":"Text","text/html":"Url",default:"Text"},A="Copy to clipboard: #{key}, Enter";function b(C){var O=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return C.replace(/#{\s*key\s*}/g,O)}function y(C,O){var m,e,f,a,u,n,i=!1;O||(O={}),m=O.debug||!1;try{f=M(),a=document.createRange(),u=document.getSelection(),n=document.createElement("span"),n.textContent=C,n.style.all="unset",n.style.position="fixed",n.style.top=0,n.style.clip="rect(0, 0, 0, 0)",n.style.whiteSpace="pre",n.style.webkitUserSelect="text",n.style.MozUserSelect="text",n.style.msUserSelect="text",n.style.userSelect="text",n.addEventListener("copy",function(c){if(c.stopPropagation(),O.format)if(c.preventDefault(),typeof c.clipboardData=="undefined"){m&&console.warn("unable to use e.clipboardData"),m&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=g[O.format]||g.default;window.clipboardData.setData(h,C)}else c.clipboardData.clearData(),c.clipboardData.setData(O.format,C);O.onCopy&&(c.preventDefault(),O.onCopy(c.clipboardData))}),document.body.appendChild(n),a.selectNodeContents(n),u.addRange(a);var r=document.execCommand("copy");if(!r)throw new Error("copy command was unsuccessful");i=!0}catch(c){m&&console.error("unable to copy using execCommand: ",c),m&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(O.format||"text",C),O.onCopy&&O.onCopy(window.clipboardData),i=!0}catch(h){m&&console.error("unable to copy using clipboardData: ",h),m&&console.error("falling back to prompt"),e=b("message"in O?O.message:A),window.prompt(e,C)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(a):u.removeAllRanges()),n&&document.body.removeChild(n),f()}return i}k.exports=y},"+Xk9":function(k,z,o){k.exports={btn:"btn___2veY9",s1:"s1___ZVDC_",s2:"s2___2Da-A"}},"+ua5":function(k,z,o){},"/GNS":function(k,z,o){k.exports=o.p+"static/search1.c4136dd4.png"},"/cxE":function(k,z,o){"use strict";o.d(z,"f",function(){return A}),o.d(z,"g",function(){return b}),o.d(z,"h",function(){return y}),o.d(z,"e",function(){return O}),o.d(z,"b",function(){return m}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return a});class M{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(u){setTimeout(()=>{throw u.stack?new Error(u.message+`
`+u.stack):u},0)}}emit(u){this.listeners.forEach(n=>{n(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const g=new M;function A(u){O(u)||g.onUnexpectedError(u);return}function b(u){O(u)||g.onUnexpectedExternalError(u);return}function y(u){if(u instanceof Error){let{name:n,message:i}=u;const r=u.stacktrace||u.stack;return{$isError:!0,name:n,message:i,stack:r}}return u}const C="Canceled";function O(u){return u instanceof Error&&u.name===C&&u.message===C}function m(){const u=new Error(C);return u.name=u.message,u}function e(u){return u?new Error(`Illegal argument: ${u}`):new Error("Illegal argument")}function f(u){return u?new Error(`Illegal state: ${u}`):new Error("Illegal state")}class a extends Error{constructor(u){super("NotSupported");u&&(this.message=u)}}},"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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("WmNS"),_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__),react__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("q1tI"),react__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_38__),umi__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("Ty5D"),umi__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("9kvl"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("1nVM"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_41__),moment__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("wd/R"),moment__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_42__),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("Z0Lh"),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("w5pM"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("wlus"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("y3Kf"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("8Skl"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("RCxd"),_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("ZW9T"),_utils_authority__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("xKgJ"),_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("FrRK"),_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("QNag"),_utils_fetch__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("ErOA"),_components_Permission__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("sLOW"),_utils_env__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("m3rI"),_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("NLgs"),timeFormat="YYYY-MM-DD HH:mm",Option=antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,handleDateString=function(z){if(!z)return z;var o=z.split(":");if(o[1]=="00"||o[1]=="30")return z;var M=parseInt(o[1]);if(M<30||M==60)return[o[0],"30"].join(":");if(M<60){var g=[o[0],"00"].join(":"),A="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(g,A);return b.add(1,"hours"),b.format(A)}return z},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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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_test3_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 k=Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var M;return _root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,dispatch({type:"shixunsDetail/getDepartments",payload:{q:o}});case 2:M=A.sent,M&&setDepartmentList(M.shools_name||[]);case 4:case"end":return A.stop()}},z)}));return function(o){return k.apply(this,arguments)}}();Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;(k=shixunsDetail.setting)!==null&&k!==void 0&&(z=k.shixun)!==null&&z!==void 0&&z.main_type&&handleInitState()},[shixunsDetail.setting]),Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;dispatch({type:"shixunsDetail/getSettingsData",payload:params}),shixunId.current=(k=location.pathname)===null||k===void 0||((z=k.split("/"))===null||z===void 0)?void 0:z[2]},[]);var handleSelectDepartment=function(z){if(selectDepartmentList.includes(z)){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_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(selectDepartmentList),[z]))};function getRequiredStatus(){return _getRequiredStatus.apply(this,arguments)}function _getRequiredStatus(){return _getRequiredStatus=Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z;return _root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_53__.a)("/api/shixuns/".concat(shixunId.current,"/required_status"),{method:"get",params:{}});case 2:z=M.sent,z&&setCreateTitle(z==null?void 0:z.data);case 4:case"end":return M.stop()}},k)})),_getRequiredStatus.apply(this,arguments)}var handleChangeSeviceConfig=function(z,o,M){var g=serviceConfigList.map(function(A,b){return b===M?Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)(Object(_root_workspace_ppte5yg23_local_v8_test3_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_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__.a)({},o,z)):A});setServiceConfigList(g)},handleInitState=function(){var z,o,M,g,A,b,y,C,O,m,e,f,a,u,n,i,r,c,h,d,s,l,w,E,_,P,R,x,S,v,T,U,L,N,V,H,D,W,F,I,K,ee,he,de,Se,Te,ce,be,ye,ue,se,$,me,re,ae,Oe,le,te,Q,J,ve,_e,Ae,Je,tt,ut,ht,vt=(shixunsDetail==null||((z=shixunsDetail.setting)===null||z===void 0)?void 0:z.shixun)||{},_t=vt.choice_main_type,Ve=vt.main_type,Ue=vt.small_type,pt=vt.choice_small_type,Ut=vt.is_secret_repository,Et=vt.standard_scripts,jt=vt.evaluate_script,Ze=vt.shixun_service_configs;if(setEvaluateScript(jt),setServiceConfigList(Ze),setStandardScripts(Et||[]),setWindowVNCTemplate((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.windows_start_template),setWebsshCloud((g=shixunsDetail.setting)===null||g===void 0||((A=g.shixun)===null||A===void 0)?void 0:A.webssh_cloud),setWindowVNC((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.windows_vnc),setVirtualMachine((C=shixunsDetail.setting)===null||C===void 0||((O=C.shixun)===null||O===void 0)?void 0:O.virtual_machine),setLinuxVNC((m=shixunsDetail.setting)===null||m===void 0||((e=m.shixun)===null||e===void 0)?void 0:e.linux_vnc),setWindowsConnectionMode(((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.windows_connection_mode)||"vnc"),setVNC((u=shixunsDetail.setting)===null||u===void 0||((n=u.shixun)===null||n===void 0)?void 0:n.vnc),setWebsshShow(!!((i=shixunsDetail.setting)!==null&&i!==void 0&&(r=i.shixun)!==null&&r!==void 0&&r.webssh)),setSshRadioValue((c=shixunsDetail.setting)===null||c===void 0||((h=c.shixun)===null||h===void 0)?void 0:h.webssh),setMultiWebssh((d=shixunsDetail.setting)===null||d===void 0||((s=d.shixun)===null||s===void 0)?void 0:s.multi_webssh),setHideCode((l=shixunsDetail.setting)===null||l===void 0||((w=l.shixun)===null||w===void 0)?void 0:w.hide_code),setCodeEditPermission((E=shixunsDetail.setting)===null||E===void 0||((_=E.shixun)===null||_===void 0)?void 0:_.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((x=shixunsDetail.setting)===null||x===void 0||((S=x.shixun)===null||S===void 0)?void 0:S.forbid_copy),setTaskPass((v=shixunsDetail.setting)===null||v===void 0||((T=v.shixun)===null||T===void 0)?void 0:T.task_pass),setTestSetPermission((U=shixunsDetail.setting)===null||U===void 0||((L=U.shixun)===null||L===void 0)?void 0:L.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||((H=V.shixun)===null||H===void 0)?void 0:H.can_copy),setOpenValue((D=shixunsDetail.setting)===null||D===void 0||((W=D.shixun)===null||W===void 0)?void 0:W.use_scope),setIsOpenTime(!!((F=shixunsDetail.setting)!==null&&F!==void 0&&(I=F.shixun)!==null&&I!==void 0&&I.opening_time)),setOpenTime((K=shixunsDetail.setting)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.opening_time),setSelectDepartmentList((he=shixunsDetail.setting)===null||he===void 0||((de=he.shixun)===null||de===void 0)?void 0:de.scope_partment),setevaluationScript((Se=shixunsDetail.setting)===null||Se===void 0||((Te=Se.shixun)===null||Te===void 0)?void 0:Te.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((ye=shixunsDetail.setting)===null||ye===void 0||((ue=ye.shixun)===null||ue===void 0)?void 0:ue.terminal_count),setSurvivalTime((se=shixunsDetail.setting)===null||se===void 0||(($=se.shixun)===null||$===void 0)?void 0:$.survival_time),(shixunsDetail==null||((me=shixunsDetail.setting)===null||me===void 0||((re=me.shixun)===null||re===void 0||((ae=re.shixun_virtual_templates)===null||ae===void 0)))?void 0:ae.length)>0){var Be,Ye;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((Be=shixunsDetail.setting)===null||Be===void 0||((Ye=Be.shixun)===null||Ye===void 0))?void 0:Ye.shixun_virtual_templates))}setport((Oe=shixunsDetail.setting)===null||Oe===void 0||((le=Oe.shixun)===null||le===void 0)?void 0:le.port_mapping),(te=shixunsDetail.setting)!==null&&te!==void 0&&(Q=te.shixun)!==null&&Q!==void 0&&Q.windows_vnc||(J=shixunsDetail.setting)!==null&&J!==void 0&&(ve=J.shixun)!==null&&ve!==void 0&&ve.linux_vnc||(_e=shixunsDetail.setting)!==null&&_e!==void 0&&(Ae=_e.shixun)!==null&&Ae!==void 0&&Ae.vnc||(Je=shixunsDetail.setting)!==null&&Je!==void 0&&(tt=Je.shixun)!==null&&tt!==void 0&&tt.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(ut=shixunsDetail.setting)!==null&&ut!==void 0&&(ht=ut.shixun)!==null&&ht!==void 0&&ht.webssh&&(setRemote(!0),setIsRadiuValue(3))};Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var _Object$keys$filter,_shixunsDetail$settin73,_shixunsDetail$settin74,_shixunsDetail$settin75,_shixunsDetail$settin76,_shixunsDetail$settin77,_shixunsDetail$settin78,_shixunsDetail$settin79,_shixunsDetail$settin82,_shixunsDetail$settin83,_shixunsDetail$settin84,confirmLeave=!1;(_Object$keys$filter=Object.keys(diffObj).filter(function(item){var _shixunsDetail$settin72;return((_shixunsDetail$settin72=shixunsDetail.setting)===null||_shixunsDetail$settin72===void 0?void 0:_shixunsDetail$settin72.shixun[item])!=eval(diffObj[item])}))!==null&&_Object$keys$filter!==void 0&&_Object$keys$filter.length&&(confirmLeave=!0),isOpenTime!=!!((_shixunsDetail$settin73=shixunsDetail.setting)!==null&&_shixunsDetail$settin73!==void 0&&(_shixunsDetail$settin74=_shixunsDetail$settin73.shixun)!==null&&_shixunsDetail$settin74!==void 0&&_shixunsDetail$settin74.opening_time)&&(confirmLeave=!0),disableDiscuss!=!!((_shixunsDetail$settin75=shixunsDetail.setting)!==null&&_shixunsDetail$settin75!==void 0&&(_shixunsDetail$settin76=_shixunsDetail$settin75.shixun)!==null&&_shixunsDetail$settin76!==void 0&&_shixunsDetail$settin76.is_disable_discuss)&&(confirmLeave=!0),selectDepartmentList.length!=((_shixunsDetail$settin77=shixunsDetail.setting)===null||_shixunsDetail$settin77===void 0||((_shixunsDetail$settin78=_shixunsDetail$settin77.shixun)===null||_shixunsDetail$settin78===void 0||((_shixunsDetail$settin79=_shixunsDetail$settin78.scope_partment)===null||_shixunsDetail$settin79===void 0))?void 0:_shixunsDetail$settin79.length)&&(confirmLeave=!0),selectDepartmentList==null||selectDepartmentList.map(function(k,z){var o,M;k!=((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.scope_partment[z])&&(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(k,z){var o,M,g,A,b,y,C,O,m,e,f,a;(k==null?void 0:k.cpu_limit)!=((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0||((g=M.shixun_service_configs[z])===null||g===void 0))?void 0:g.cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.lower_cpu_limit)!=((A=shixunsDetail.setting)===null||A===void 0||((b=A.shixun)===null||b===void 0||((y=b.shixun_service_configs[z])===null||y===void 0))?void 0:y.lower_cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.memory_limit)!=((C=shixunsDetail.setting)===null||C===void 0||((O=C.shixun)===null||O===void 0||((m=O.shixun_service_configs[z])===null||m===void 0))?void 0:m.memory_limit)&&(confirmLeave=!0),(k==null?void 0:k.request_limit)!=((e=shixunsDetail.setting)===null||e===void 0||((f=e.shixun)===null||f===void 0||((a=f.shixun_service_configs[z])===null||a===void 0))?void 0:a.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_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z,o,M,g;return _root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(isOpenTime&&!openTime)){b.next=3;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),b.abrupt("return");case 3:if(!(hideCode===1&&Remote===!1)){b.next=6;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u81F3\u5C11\u52FE\u9009\u4E00\u79CD\u7F16\u7A0B\u9875\u9762\uFF01"),b.abrupt("return");case 6:if(!(openValue===1&&!selectDepartmentList.length)){b.next=9;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),b.abrupt("return");case 9:if(o=(z=shixunsDetail.detail)===null||z===void 0?void 0:z.is_jupyter,M=!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"),M=!0;return}})),!M){b.next=14;break}return b.abrupt("return");case 14:return b.next=16,dispatch({type:"shixunsDetail/updateSetting",payload:{id:shixunId.current,scope_partment:openValue===0?null:selectDepartmentList,shixun:{show_code_dir:codeHidden,forbid_copy:forbidCopy,hide_code:hideCode,multi_webssh:multiWebssh,task_pass:taskPass,test_set_permission:testSetPermission,display_git_address,vnc,windows_vnc,virtual_machine,linux_vnc,windows_start_template,webssh_cloud,webssh:websshShow?sshRadioValue:0,code_edit_permission:codeEditPermission,can_copy:isCopy,use_scope:openValue,opening_time:openTime,mirror_script_id:o?null:evaluationScript,is_disable_discuss:disableDiscuss,terminal_count,port_mapping:port,survival_time,shixun_virtual_templates,windows_connection_mode:windows_vnc?windows_connection_mode:null},shixun_info:{evaluate_script:o?null:evaluateScript},shixun_service_configs:serviceConfigList.map(function(y){return{mirror_repository_id:y.mirror_repository_id,cpu_limit:y.cpu_limit,lower_cpu_limit:y.lower_cpu_limit,memory_limit:y.memory_limit,request_limit:y.request_limit}})}});case 16:g=b.sent,(g==null?void 0:g.status)===0&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u4FEE\u6539\u6210\u529F"),dispatch({type:"shixunsDetail/getSettingsData",payload:params}),dispatch({type:"shixunsDetail/getShixunsDetail",payload:params}));case 18:case"end":return b.stop()}},k)})),_handSubmeit.apply(this,arguments)}var handleChangeEvaluationScript=function(z){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var o=Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function g(){return _root_workspace_ppte5yg23_local_v8_test3_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(z);case 2:antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return b.stop()}},g)}));function M(){return o.apply(this,arguments)}return M}()})},handleGetScriptContent=function(){var k=Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var M;return _root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,dispatch({type:"shixunsDetail/getScriptContent",payload:{id:shixunId.current,script_id:o}});case 2:M=A.sent,M&&setEvaluateScript(M.content);case 4:case"end":return A.stop()}},z)}));return function(o){return k.apply(this,arguments)}}(),handleDeleteShixun=function(){var k=Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(){var o,M,g,A,b,y,C;return _root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(m.t0=m.sent,m.t0){m.next=5;break}m.t0={};case 5:C=m.t0,antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font14 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.modal)},!!((o=C.subjects)!==null&&o!==void 0&&o.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(M=C.subjects)===null||M===void 0||((g=M.splice(0,2))===null||g===void 0)?void 0:g.map(function(e){return"\u300A".concat(e,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},C==null?void 0:C.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),!!((A=C.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=C.courses)===null||b===void 0||((y=b.splice(0,2))===null||y===void 0)?void 0:y.map(function(e){return"\u300A".concat(e,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},C==null?void 0:C.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 e=Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function a(){var u;return _root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,dispatch({type:"shixunsDetail/deleteShixun",payload:{id:shixunId.current}});case 2:u=i.sent,u.status===1&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.success("\u64CD\u4F5C\u6210\u529F"),umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns"));case 4:case"end":return i.stop()}},a)}));function f(){return e.apply(this,arguments)}return f}()});case 7:case"end":return m.stop()}},z)}));return function(){return k.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(k){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(k),parseInt(k)===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(z){var o;if(practiceSetting!=null&&(o=practiceSetting.sideBar)!==null&&o!==void 0&&o.confirmLeave){showExitmodel(z.key);return}setMenuSelectKey(z.key),parseInt(z.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(z){return setTaskPass(z.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(z){return setTestSetPermission(z.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(z){return setIsCopy(z.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(z){return setOpenValue(z.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(z){setDepartmentValue(z),handleGetDepartments(z)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map(function(k){return{value:k}})})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map(function(k){return editable?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_badge__WEBPACK_IMPORTED_MODULE_15__.a,{count:"x",className:"mr20 current",onClick:function(){return setSelectDepartmentList(selectDepartmentList.filter(function(o){return o!==k}))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0},k)):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0,className:"mr20"},k)}))))),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(z){setIsOpenTime(z.target.checked),z.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(z){return z&&z<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(z,o){return setOpenTime(handleDateString(o))}})))),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(z){var o=z.target.checked;setHideCode(hideCode===1?0:1),o?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(z){setHideCode(z.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(z){return setport(z.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(z){var o=z.target.checked;setRemote(o),o?(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(z){var o,M,g,A,b,y,C,O,m,e;if(setIsRadiuValue(z.target.value),setSshRadioValue(1),setport(!1),z.target.value===3&&((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.webssh)===2&&!((g=shixunsDetail.setting)!==null&&g!==void 0&&(A=g.shixun)!==null&&A!==void 0&&A.vnc)){var f,a;setport((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.port_mapping)}if(z.target.value===5&&!((b=shixunsDetail.setting)!==null&&b!==void 0&&(y=b.shixun)!==null&&y!==void 0&&y.linux_vnc)&&!((C=shixunsDetail.setting)!==null&&C!==void 0&&(O=C.shixun)!==null&&O!==void 0&&O.windows_vnc)&&(m=shixunsDetail.setting)!==null&&m!==void 0&&(e=m.shixun)!==null&&e!==void 0&&e.vnc){var u,n;setport((u=shixunsDetail.setting)===null||u===void 0||((n=u.shixun)===null||n===void 0)?void 0:n.port_mapping)}z.target.value===1?(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1)):z.target.value===2?(setWindowVNC(!1),setLinuxVNC(!1),setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0)):z.target.value===3?(setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2),setshixun_virtual_templates([]),setVirtualMachine(!1)):z.target.value===4?(setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1)):z.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(z){var o,M,g,A,b,y,C=z.target.value;if(setport(!1),C===1&&((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.webssh)===1){var O,m;setport((O=shixunsDetail.setting)===null||O===void 0||((m=O.shixun)===null||m===void 0)?void 0:m.port_mapping)}else if(C===2&&((g=shixunsDetail.setting)===null||g===void 0||((A=g.shixun)===null||A===void 0)?void 0:A.webssh)===2){var e,f;setport((e=shixunsDetail.setting)===null||e===void 0||((f=e.shixun)===null||f===void 0)?void 0:f.port_mapping)}if(setSshRadioValue(C),C!==1&&setMultiWebssh(!1),setWindowVNCTemplate(""),setWebsshCloud(1),C===3&&((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.webssh)===3){var a,u,n,i;setWebsshCloud((a=shixunsDetail.setting)===null||a===void 0||((u=a.shixun)===null||u===void 0)?void 0:u.webssh_cloud),setWindowVNCTemplate((n=shixunsDetail.setting)===null||n===void 0||((i=n.shixun)===null||i===void 0)?void 0:i.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(z){return setMultiWebssh(z.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(z){return setport(z.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(z){return setport(z.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(z){return setWindowVNCTemplate(z.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(z){setterminal_count(z)},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(z){var o,M,g,A,b,y,C,O,m,e=z.target.value;if(setWindowVNCTemplate(""),setport(!1),e==="linux_vnc"&&(o=shixunsDetail.setting)!==null&&o!==void 0&&(M=o.shixun)!==null&&M!==void 0&&M.linux_vnc){var f,a;setWindowVNCTemplate((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.windows_start_template)}else if(e==="windows_vnc"&&(g=shixunsDetail.setting)!==null&&g!==void 0&&(A=g.shixun)!==null&&A!==void 0&&A.windows_vnc){var u,n;setWindowVNCTemplate((u=shixunsDetail.setting)===null||u===void 0||((n=u.shixun)===null||n===void 0)?void 0:n.windows_start_template)}else if(e==="virtual_machine"&&(b=shixunsDetail.setting)!==null&&b!==void 0&&(y=b.shixun)!==null&&y!==void 0&&y.virtual_machine){var i,r;setWindowVNCTemplate((i=shixunsDetail.setting)===null||i===void 0||((r=i.shixun)===null||r===void 0)?void 0:r.windows_start_template)}else{var c,h,d,s,l,w;e==="linux"&&!((c=shixunsDetail.setting)!==null&&c!==void 0&&(h=c.shixun)!==null&&h!==void 0&&h.linux_vnc)&&!((d=shixunsDetail.setting)!==null&&d!==void 0&&(s=d.shixun)!==null&&s!==void 0&&s.windows_vnc)&&setport((l=shixunsDetail.setting)===null||l===void 0||((w=l.shixun)===null||w===void 0)?void 0:w.port_mapping)}switch(e){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||((C=shixunsDetail.setting)===null||C===void 0||((O=C.shixun)===null||O===void 0||((m=O.shixun_virtual_templates)===null||m===void 0)))?void 0:m.length)>0){var E,_;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((E=shixunsDetail.setting)===null||E===void 0||((_=E.shixun)===null||_===void 0))?void 0:_.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(z){return setport(z.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(z){return setWindowVNCTemplate(z.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(z){return setWindowVNCTemplate(z.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(z){return setWindowsConnectionMode(z)}},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(k,z){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:k==null?void 0:k.template_name,onChange:function(M){k.template_name=M.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test3_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:k==null?void 0:k.template_identity,onChange:function(M){k.template_identity=M.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test3_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 M={};M.template_name="",M.template_identity="",shixun_virtual_templates.push(M),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test3_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),z!=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(z,1),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test3_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(z){return set_display_git_address(z.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(z){return setCodeHidden(z.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(z){return setCodeEditPermission(z.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(z){return setForbidCopy(z.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(z){return setSurvivalTime(z)}}),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(z){handleChangeEvaluationScript(z),setevaluationScript(z)}},(standardScriptList||[]).map(function(k,z){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(Option,{value:parseInt(k.id),name:k.scptname,key:z},k.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(z){return setEvaluateScript(z)}})),((_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(k,z){var o,M,g,A,b,y,C,O;return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{key:z},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"font16"},k.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:k.cpu_limit,disabled:((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"cpu_limit",z)}})),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:k.lower_cpu_limit,disabled:((g=shixunsDetail.setting)===null||g===void 0||((A=g.shixun)===null||A===void 0)?void 0:A.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"lower_cpu_limit",z)}})),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:k.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(e){return handleChangeSeviceConfig(e.target.value,"memory_limit",z)}})),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:k.request_limit,disabled:((C=shixunsDetail.setting)===null||C===void 0||((O=C.shixun)===null||O===void 0)?void 0:O.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"request_limit",z)}}),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(z){return setDisableDiscuss(!z)}}),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(z){return setEvaluateScript(z)}}))}__webpack_exports__.a=Object(umi__WEBPACK_IMPORTED_MODULE_40__.a)(function(k){var z=k.user,o=k.shixunsDetail,M=k.practiceSetting;return{user:z,shixunsDetail:o,practiceSetting:M}})(Setting)},"19Vz":function(k,z,o){(function(M){M(o("VrN/"))})(function(M){M.defineOption("placeholder","",function(m,e,f){var a=f&&f!=M.Init;if(e&&!a)m.on("blur",y),m.on("change",C),m.on("swapDoc",C),M.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){b(m)}),C(m);else if(!e&&a){m.off("blur",y),m.off("change",C),m.off("swapDoc",C),M.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),g(m);var u=m.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}e&&!m.hasFocus()&&y(m)});function g(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function A(m){g(m);var e=m.state.placeholder=document.createElement("pre");e.style.cssText="height: 0; overflow: visible",e.style.direction=m.getOption("direction"),e.className="CodeMirror-placeholder CodeMirror-line-like";var f=m.getOption("placeholder");typeof f=="string"&&(f=document.createTextNode(f)),e.appendChild(f),m.display.lineSpace.insertBefore(e,m.display.lineSpace.firstChild)}function b(m){setTimeout(function(){var e=!1,f=m.getInputField();f.nodeName=="TEXTAREA"?e=!f.value:m.lineCount()==1&&(e=!/[^\u200b]/.test(f.querySelector(".CodeMirror-line").textContent)),e?A(m):g(m)},20)}function y(m){O(m)&&A(m)}function C(m){var e=m.getWrapperElement(),f=O(m);e.className=e.className.replace(" CodeMirror-empty","")+(f?" CodeMirror-empty":""),f?A(m):g(m)}function O(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Sn+":function(k,z,o){},"1XHU":function(k,z,o){"use strict";var M=o("2qtc"),g=o("kLXV"),A=o("q1tI"),b=o.n(A),y=o("9kvl"),C=o("3wET"),O=o.n(C),m=o("bUJZ"),e=o.n(m),f=o("Ct/S"),a=o.n(f),u=function(i){var r=i.visible,c=i.occupationValue,h=i.onCancel,d=h===void 0?function(){}:h,s=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:e.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},l=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:O.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},w=function(){return c===3?b.a.createElement(b.a.Fragment,null,l(),s()):c===2?s():l()};return b.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:r,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(){d(),y.d.push("/account/certification")},onCancel:function(){d()}},b.a.createElement("div",{className:a.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),b.a.createElement("div",{className:a.a.flexRow},w()))};z.a=Object(y.a)(function(n){var i=n.paperlibrary,r=n.loading,c=n.globalSetting;return{paperlibrary:i,globalSetting:c,loading:r.effects}})(u)},"1eCo":function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";var g={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},A={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};M.defineMode("xml",function(b,y){var C=b.indentUnit,O={},m=y.htmlMode?g:A;for(var e in m)O[e]=m[e];for(var e in y)O[e]=y[e];var f,a;function u(T,U){function L(H){return U.tokenize=H,H(T,U)}var N=T.next();if(N=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?L(r("atom","]]>")):null:T.match("--")?L(r("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),L(c(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),U.tokenize=r("meta","?>"),"meta"):(f=T.eat("/")?"closeTag":"openTag",U.tokenize=n,"tag bracket");if(N=="&"){var V;return T.eat("#")?T.eat("x")?V=T.eatWhile(/[a-fA-F\d]/)&&T.eat(";"):V=T.eatWhile(/[\d]/)&&T.eat(";"):V=T.eatWhile(/[\w\.\-:]/)&&T.eat(";"),V?"atom":"error"}else return T.eatWhile(/[^&<]/),null}u.isInText=!0;function n(T,U){var L=T.next();if(L==">"||L=="/"&&T.eat(">"))return U.tokenize=u,f=L==">"?"endTag":"selfcloseTag","tag bracket";if(L=="=")return f="equals",null;if(L=="<"){U.tokenize=u,U.state=l,U.tagName=U.tagStart=null;var N=U.tokenize(T,U);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(L)?(U.tokenize=i(L),U.stringStartCol=T.column(),U.tokenize(T,U)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function i(T){var U=function(L,N){for(;!L.eol();)if(L.next()==T){N.tokenize=n;break}return"string"};return U.isInAttribute=!0,U}function r(T,U){return function(L,N){for(;!L.eol();){if(L.match(U)){N.tokenize=u;break}L.next()}return T}}function c(T){return function(U,L){for(var N;(N=U.next())!=null;){if(N=="<")return L.tokenize=c(T+1),L.tokenize(U,L);if(N==">")if(T==1){L.tokenize=u;break}else return L.tokenize=c(T-1),L.tokenize(U,L)}return"meta"}}function h(T,U,L){this.prev=T.context,this.tagName=U,this.indent=T.indented,this.startOfLine=L,(O.doNotIndent.hasOwnProperty(U)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function d(T){T.context&&(T.context=T.context.prev)}function s(T,U){for(var L;;){if(!T.context)return;if(L=T.context.tagName,!O.contextGrabbers.hasOwnProperty(L)||!O.contextGrabbers[L].hasOwnProperty(U))return;d(T)}}function l(T,U,L){return T=="openTag"?(L.tagStart=U.column(),w):T=="closeTag"?E:l}function w(T,U,L){return T=="word"?(L.tagName=U.current(),a="tag",R):O.allowMissingTagName&&T=="endTag"?(a="tag bracket",R(T,U,L)):(a="error",w)}function E(T,U,L){if(T=="word"){var N=U.current();return L.context&&L.context.tagName!=N&&O.implicitlyClosed.hasOwnProperty(L.context.tagName)&&d(L),L.context&&L.context.tagName==N||O.matchClosing===!1?(a="tag",_):(a="tag error",P)}else return O.allowMissingTagName&&T=="endTag"?(a="tag bracket",_(T,U,L)):(a="error",P)}function _(T,U,L){return T!="endTag"?(a="error",_):(d(L),l)}function P(T,U,L){return a="error",_(T,U,L)}function R(T,U,L){if(T=="word")return a="attribute",x;if(T=="endTag"||T=="selfcloseTag"){var N=L.tagName,V=L.tagStart;return L.tagName=L.tagStart=null,T=="selfcloseTag"||O.autoSelfClosers.hasOwnProperty(N)?s(L,N):(s(L,N),L.context=new h(L,N,V==L.indented)),l}return a="error",R}function x(T,U,L){return T=="equals"?S:(O.allowMissing||(a="error"),R(T,U,L))}function S(T,U,L){return T=="string"?v:T=="word"&&O.allowUnquoted?(a="string",R):(a="error",R(T,U,L))}function v(T,U,L){return T=="string"?v:R(T,U,L)}return{startState:function(T){var U={tokenize:u,state:l,indented:T||0,tagName:null,tagStart:null,context:null};return T!=null&&(U.baseIndent=T),U},token:function(T,U){if(!U.tagName&&T.sol()&&(U.indented=T.indentation()),T.eatSpace())return null;f=null;var L=U.tokenize(T,U);return(L||f)&&L!="comment"&&(a=null,U.state=U.state(f||L,T,U),a&&(L=a=="error"?L+" error":a)),L},indent:function(T,U,L){var N=T.context;if(T.tokenize.isInAttribute)return T.tagStart==T.indented?T.stringStartCol+1:T.indented+C;if(N&&N.noIndent)return M.Pass;if(T.tokenize!=n&&T.tokenize!=u)return L?L.match(/^(\s*)/)[0].length:0;if(T.tagName)return O.multilineTagIndentPastTag!==!1?T.tagStart+T.tagName.length+2:T.tagStart+C*(O.multilineTagIndentFactor||1);if(O.alignCDATA&&/<!\[CDATA\[/.test(U))return 0;var V=U&&/^<(\/)?([\w_:\.-]*)/.exec(U);if(V&&V[1])for(;N;)if(N.tagName==V[2]){N=N.prev;break}else if(O.implicitlyClosed.hasOwnProperty(N.tagName))N=N.prev;else break;else if(V)for(;N;){var H=O.contextGrabbers[N.tagName];if(H&&H.hasOwnProperty(V[2]))N=N.prev;else break}for(;N&&N.prev&&!N.startOfLine;)N=N.prev;return N?N.indent+C:T.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:O.htmlMode?"html":"xml",helperType:O.htmlMode?"html":"xml",skipAttribute:function(T){T.state==S&&(T.state=R)},xmlCurrentTag:function(T){return T.tagName?{name:T.tagName,close:T.type=="closeTag"}:null},xmlCurrentContext:function(T){for(var U=[],L=T.context;L;L=L.prev)L.tagName&&U.push(L.tagName);return U.reverse()}}}),M.defineMIME("text/xml","xml"),M.defineMIME("application/xml","xml"),M.mimeModes.hasOwnProperty("text/html")||M.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(k,z,o){"use strict";o.d(z,"d",function(){return Je}),o.d(z,"b",function(){return Ke}),o.d(z,"c",function(){return Ct}),o.d(z,"a",function(){return Jt});var M=o("VTBJ"),g=o("1OyB"),A=o("vuIU"),b=o("JX7q"),y=o("Ji7U"),C=o("LK+K"),O=o("q1tI"),m=o("I8Z2"),e=o("BGR+"),f=o("wx14"),a=o("rePB"),u=o("4IlW"),n=o("2GS6"),i=o("Gytx"),r=o.n(i),c=o("TSYQ"),h=o.n(c),d=o("U8pU"),s=o("ODXe"),l=/iPhone/i,w=/iPod/i,E=/iPad/i,_=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,R=/\bAndroid(?:.+)SD4930UR\b/i,x=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,S=/Windows Phone/i,v=/\bWindows(?:.+)ARM\b/i,T=/BlackBerry/i,U=/BB10/i,L=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,V=/Mobile(?:.+)Firefox\b/i;function H(Ot,Fe){return Ot.test(Fe)}function D(Ot){var Fe=Ot||(typeof navigator!="undefined"?navigator.userAgent:""),at=Fe.split("[FBAN");if(typeof at[1]!="undefined"){var ot=at,Pe=Object(s.a)(ot,1);Fe=Pe[0]}if(at=Fe.split("Twitter"),typeof at[1]!="undefined"){var Qe=at,ft=Object(s.a)(Qe,1);Fe=ft[0]}var bt={apple:{phone:H(l,Fe)&&!H(S,Fe),ipod:H(w,Fe),tablet:!H(l,Fe)&&H(E,Fe)&&!H(S,Fe),device:(H(l,Fe)||H(w,Fe)||H(E,Fe))&&!H(S,Fe)},amazon:{phone:H(R,Fe),tablet:!H(R,Fe)&&H(x,Fe),device:H(R,Fe)||H(x,Fe)},android:{phone:!H(S,Fe)&&H(R,Fe)||!H(S,Fe)&&H(_,Fe),tablet:!H(S,Fe)&&!H(R,Fe)&&!H(_,Fe)&&(H(x,Fe)||H(P,Fe)),device:!H(S,Fe)&&(H(R,Fe)||H(x,Fe)||H(_,Fe)||H(P,Fe))||H(/\bokhttp\b/i,Fe)},windows:{phone:H(S,Fe),tablet:H(v,Fe),device:H(S,Fe)||H(v,Fe)},other:{blackberry:H(T,Fe),blackberry10:H(U,Fe),opera:H(L,Fe),firefox:H(V,Fe),chrome:H(N,Fe),device:H(T,Fe)||H(U,Fe)||H(L,Fe)||H(V,Fe)||H(N,Fe)},any:null,phone:null,tablet:null};return bt.any=bt.apple.device||bt.android.device||bt.windows.device||bt.other.device,bt.phone=bt.apple.phone||bt.android.phone||bt.windows.phone,bt.tablet=bt.apple.tablet||bt.android.tablet||bt.windows.tablet,bt}var W=Object(M.a)(Object(M.a)({},D()),{},{isMobile:D}),F=W;function I(){}function K(Ot,Fe,at){var ot=Fe||"";return Ot.key||"".concat(ot,"item_").concat(at)}function ee(Ot){return"".concat(Ot,"-menu-")}function he(Ot,Fe){var at=-1;O.Children.forEach(Ot,function(ot){at+=1,ot&&ot.type&&ot.type.isMenuItemGroup?O.Children.forEach(ot.props.children,function(Pe){at+=1,Fe(Pe,at)}):Fe(ot,at)})}function de(Ot,Fe,at){if(!Ot||at.find)return;O.Children.forEach(Ot,function(ot){if(ot){var Pe=ot.type;if(!Pe||!(Pe.isSubMenu||Pe.isMenuItem||Pe.isMenuItemGroup))return;Fe.indexOf(ot.key)!==-1?at.find=!0:ot.props.children&&de(ot.props.children,Fe,at)}})}var Se=["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"],Te=function(Fe){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=Fe&&typeof Fe.getBoundingClientRect=="function"&&Fe.getBoundingClientRect().width;if(ot){if(at){var Pe=getComputedStyle(Fe),Qe=Pe.marginLeft,ft=Pe.marginRight;ot+=+Qe.replace("px","")+ +ft.replace("px","")}ot=+ot.toFixed(6)}return ot||0},ce=function(Fe,at,ot){Fe&&Object(d.a)(Fe.style)==="object"&&(Fe.style[at]=ot)},be=function(){return F.any},ye=o("KQm4"),ue=o("Ff2n"),se=o("i8i4"),$=o("bdgK"),me=o("uciX"),re=o("8XRh"),ae={adjustX:1,adjustY:1},Oe={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},le={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},te=Oe,Q=0,J={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ve=function(Fe,at,ot){var Pe=ee(at),Qe=Fe.getState();Fe.setState({defaultActiveFirst:Object(M.a)(Object(M.a)({},Qe.defaultActiveFirst),{},Object(a.a)({},Pe,ot))})},_e=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(ot){var Pe;Object(g.a)(this,at),Pe=Fe.call(this,ot),Pe.onDestroy=function(ct){Pe.props.onDestroy(ct)},Pe.onKeyDown=function(ct){var Lt=ct.keyCode,Zt=Pe.menuInstance,An=Pe.props,on=An.isOpen,Tn=An.store;if(Lt===u.a.ENTER)return Pe.onTitleClick(ct),ve(Tn,Pe.props.eventKey,!0),!0;if(Lt===u.a.RIGHT)return on?Zt.onKeyDown(ct):(Pe.triggerOpenChange(!0),ve(Tn,Pe.props.eventKey,!0)),!0;if(Lt===u.a.LEFT){var Ln;if(on)Ln=Zt.onKeyDown(ct);else return;return Ln||(Pe.triggerOpenChange(!1),Ln=!0),Ln}return on&&(Lt===u.a.UP||Lt===u.a.DOWN)?Zt.onKeyDown(ct):void 0},Pe.onOpenChange=function(ct){Pe.props.onOpenChange(ct)},Pe.onPopupVisibleChange=function(ct){Pe.triggerOpenChange(ct,ct?"mouseenter":"mouseleave")},Pe.onMouseEnter=function(ct){var Lt=Pe.props,Zt=Lt.eventKey,An=Lt.onMouseEnter,on=Lt.store;ve(on,Pe.props.eventKey,!1),An({key:Zt,domEvent:ct})},Pe.onMouseLeave=function(ct){var Lt=Pe.props,Zt=Lt.parentMenu,An=Lt.eventKey,on=Lt.onMouseLeave;Zt.subMenuInstance=Object(b.a)(Pe),on({key:An,domEvent:ct})},Pe.onTitleMouseEnter=function(ct){var Lt=Pe.props,Zt=Lt.eventKey,An=Lt.onItemHover,on=Lt.onTitleMouseEnter;An({key:Zt,hover:!0}),on({key:Zt,domEvent:ct})},Pe.onTitleMouseLeave=function(ct){var Lt=Pe.props,Zt=Lt.parentMenu,An=Lt.eventKey,on=Lt.onItemHover,Tn=Lt.onTitleMouseLeave;Zt.subMenuInstance=Object(b.a)(Pe),on({key:An,hover:!1}),Tn({key:An,domEvent:ct})},Pe.onTitleClick=function(ct){var Lt=Object(b.a)(Pe),Zt=Lt.props;if(Zt.onTitleClick({key:Zt.eventKey,domEvent:ct}),Zt.triggerSubMenuAction==="hover")return;Pe.triggerOpenChange(!Zt.isOpen,"click"),ve(Zt.store,Pe.props.eventKey,!1)},Pe.onSubMenuClick=function(ct){typeof Pe.props.onClick=="function"&&Pe.props.onClick(Pe.addKeyPath(ct))},Pe.onSelect=function(ct){Pe.props.onSelect(ct)},Pe.onDeselect=function(ct){Pe.props.onDeselect(ct)},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.saveMenuInstance=function(ct){Pe.menuInstance=ct},Pe.addKeyPath=function(ct){return Object(M.a)(Object(M.a)({},ct),{},{keyPath:(ct.keyPath||[]).concat(Pe.props.eventKey)})},Pe.triggerOpenChange=function(ct,Lt){var Zt=Pe.props.eventKey,An=function(){Pe.onOpenChange({key:Zt,item:Object(b.a)(Pe),trigger:Lt,open:ct})};Lt==="mouseenter"?Pe.mouseenterTimeout=setTimeout(function(){An()},0):An()},Pe.isChildrenSelected=function(){var ct={find:!1};return de(Pe.props.children,Pe.props.selectedKeys,ct),ct.find},Pe.isOpen=function(){return Pe.props.openKeys.indexOf(Pe.props.eventKey)!==-1},Pe.adjustWidth=function(){if(!Pe.subMenuTitle||!Pe.menuInstance)return;var ct=se.findDOMNode(Pe.menuInstance);if(ct.offsetWidth>=Pe.subMenuTitle.offsetWidth)return;ct.style.minWidth="".concat(Pe.subMenuTitle.offsetWidth,"px")},Pe.saveSubMenuTitle=function(ct){Pe.subMenuTitle=ct},Pe.getBaseProps=function(){var ct=Object(b.a)(Pe),Lt=ct.props;return{mode:Lt.mode==="horizontal"?"vertical":Lt.mode,visible:Pe.props.isOpen,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(b.a)(Pe),subMenuCloseDelay:Lt.subMenuCloseDelay,forceSubMenuRender:Lt.forceSubMenuRender,triggerSubMenuAction:Lt.triggerSubMenuAction,builtinPlacements:Lt.builtinPlacements,defaultActiveFirst:Lt.store.getState().defaultActiveFirst[ee(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(ct,Lt){var Zt=Object(b.a)(Pe),An=Zt.haveRendered,on=Pe.props,Tn=on.motion,Ln=on.rootPrefixCls,Nn=Object(M.a)(Object(M.a)({},Tn),{},{leavedClassName:"".concat(Ln,"-hidden"),removeOnLeave:!1,motionAppear:An||!Lt||ct!=="inline"});return Nn};var Qe=ot.store,ft=ot.eventKey,bt=Qe.getState(),Dt=bt.defaultActiveFirst;Pe.isRootMenu=!1;var Mt=!1;return Dt&&(Mt=Dt[ft]),ve(Qe,ft,Mt),Pe}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this,Qe=this.props,ft=Qe.mode,bt=Qe.parentMenu,Dt=Qe.manualRef;if(Dt&&Dt(this),ft!=="horizontal"||!bt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Pe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Pe=this.props,Qe=Pe.onDestroy,ft=Pe.eventKey;Qe&&Qe(ft),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Pe){var Qe=this,ft=this.getBaseProps(),bt=this.getMotion(ft.mode,ft.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ft.visible||ft.forceSubMenuRender,!this.haveOpened)return O.createElement("div",null);var Dt=ft.direction;return O.createElement(re.default,Object.assign({visible:ft.visible},bt),function(Mt){var ct=Mt.className,Lt=Mt.style,Zt=h()("".concat(ft.prefixCls,"-sub"),ct,Object(a.a)({},"".concat(ft.prefixCls,"-rtl"),Dt==="rtl"));return O.createElement(Ze,Object.assign({},ft,{id:Qe.internalMenuId,className:Zt,style:Lt}),Pe)})}},{key:"render",value:function(){var Pe,Qe=Object(M.a)({},this.props),ft=Qe.isOpen,bt=this.getPrefixCls(),Dt=Qe.mode==="inline",Mt=h()(bt,"".concat(bt,"-").concat(Qe.mode),(Pe={},Object(a.a)(Pe,Qe.className,!!Qe.className),Object(a.a)(Pe,this.getOpenClassName(),ft),Object(a.a)(Pe,this.getActiveClassName(),Qe.active||ft&&!Dt),Object(a.a)(Pe,this.getDisabledClassName(),Qe.disabled),Object(a.a)(Pe,this.getSelectedClassName(),this.isChildrenSelected()),Pe));this.internalMenuId||(Qe.eventKey?this.internalMenuId="".concat(Qe.eventKey,"$Menu"):(Q+=1,this.internalMenuId="$__$".concat(Q,"$Menu")));var ct={},Lt={},Zt={};Qe.disabled||(ct={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Lt={onClick:this.onTitleClick},Zt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var An={},on=Qe.direction;Dt&&(on==="rtl"?An.paddingRight=Qe.inlineIndent*Qe.level:An.paddingLeft=Qe.inlineIndent*Qe.level);var Tn={};this.props.isOpen&&(Tn={"aria-owns":this.internalMenuId});var Ln=null;Qe.mode!=="horizontal"&&(Ln=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ln=O.createElement(this.props.expandIcon,Object(M.a)({},this.props))));var Nn=O.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:An,className:"".concat(bt,"-title"),role:"button"},Zt,Lt,{"aria-expanded":ft},Tn,{"aria-haspopup":"true",title:typeof Qe.title=="string"?Qe.title:void 0}),Qe.title,Ln||O.createElement("i",{className:"".concat(bt,"-arrow")})),ln=this.renderChildren(Qe.children),ar=Qe.parentMenu.isRootMenu?Qe.parentMenu.props.getPopupContainer:function(yr){return yr.parentNode},xr=J[Qe.mode],Cr=Qe.popupOffset?{offset:Qe.popupOffset}:{},Yn=Qe.mode==="inline"?"":Qe.popupClassName;Yn+=on==="rtl"?" ".concat(bt,"-rtl"):"";var Or=Qe.disabled,cr=Qe.triggerSubMenuAction,sn=Qe.subMenuOpenDelay,qt=Qe.forceSubMenuRender,On=Qe.subMenuCloseDelay,Ir=Qe.builtinPlacements;Se.forEach(function(yr){return delete Qe[yr]}),delete Qe.onClick;var Ar=on==="rtl"?Object.assign({},le,Ir):Object.assign({},Oe,Ir);return delete Qe.direction,O.createElement("li",Object.assign({},Qe,ct,{className:Mt,role:"menuitem"}),Dt&&Nn,Dt&&ln,!Dt&&O.createElement(me.a,{prefixCls:bt,popupClassName:h()("".concat(bt,"-popup"),Yn),getPopupContainer:ar,builtinPlacements:Ar,popupPlacement:xr,popupVisible:ft,popupAlign:Cr,popup:ln,action:Or?[]:[cr],mouseEnterDelay:sn,mouseLeaveDelay:On,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:qt},Nn))}}]),at}(O.Component);_e.defaultProps={onMouseEnter:I,onMouseLeave:I,onTitleMouseEnter:I,onTitleMouseLeave:I,onTitleClick:I,manualRef:I,mode:"vertical",title:""};var Ae=Object(m.b)(function(Ot,Fe){var at=Ot.openKeys,ot=Ot.activeKey,Pe=Ot.selectedKeys,Qe=Fe.eventKey,ft=Fe.subMenuKey;return{isOpen:at.indexOf(Qe)>-1,active:ot[ft]===Qe,selectedKeys:Pe}})(_e);Ae.isSubMenu=!0;var Je=Ae,tt="menuitem-overflowed",ut=.5,ht=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(){var ot;return Object(g.a)(this,at),ot=Fe.apply(this,arguments),ot.resizeObserver=null,ot.mutationObserver=null,ot.originalTotalWidth=0,ot.overflowedItems=[],ot.menuItemSizes=[],ot.cancelFrameId=null,ot.state={lastVisibleIndex:void 0},ot.getMenuItemNodes=function(){var Pe=ot.props.prefixCls,Qe=se.findDOMNode(Object(b.a)(ot));return Qe?[].slice.call(Qe.children).filter(function(ft){return ft.className.split(" ").indexOf("".concat(Pe,"-overflowed-submenu"))<0}):[]},ot.getOverflowedSubMenuItem=function(Pe,Qe,ft){var bt=ot.props,Dt=bt.overflowedIndicator,Mt=bt.level,ct=bt.mode,Lt=bt.prefixCls,Zt=bt.theme;if(Mt!==1||ct!=="horizontal")return null;var An=ot.props.children[0],on=An.props,Tn=on.children,Ln=on.title,Nn=on.style,ln=Object(ue.a)(on,["children","title","style"]),ar=Object(M.a)({},Nn),xr="".concat(Pe,"-overflowed-indicator"),Cr="".concat(Pe,"-overflowed-indicator");Qe.length===0&&ft!==!0?ar=Object(M.a)(Object(M.a)({},ar),{},{display:"none"}):ft&&(ar=Object(M.a)(Object(M.a)({},ar),{},{visibility:"hidden",position:"absolute"}),xr="".concat(xr,"-placeholder"),Cr="".concat(Cr,"-placeholder"));var Yn=Zt?"".concat(Lt,"-").concat(Zt):"",Or={};return Se.forEach(function(cr){ln[cr]!==void 0&&(Or[cr]=ln[cr])}),O.createElement(Je,Object.assign({title:Dt,className:"".concat(Lt,"-overflowed-submenu"),popupClassName:Yn},Or,{key:xr,eventKey:Cr,disabled:!1,style:ar}),Qe)},ot.setChildrenWidthAndResize=function(){if(ot.props.mode!=="horizontal")return;var Pe=se.findDOMNode(Object(b.a)(ot));if(!Pe)return;var Qe=Pe.children;if(!Qe||Qe.length===0)return;var ft=Pe.children[Qe.length-1];ce(ft,"display","inline-block");var bt=ot.getMenuItemNodes(),Dt=bt.filter(function(Mt){return Mt.className.split(" ").indexOf(tt)>=0});Dt.forEach(function(Mt){ce(Mt,"display","inline-block")}),ot.menuItemSizes=bt.map(function(Mt){return Te(Mt,!0)}),Dt.forEach(function(Mt){ce(Mt,"display","none")}),ot.overflowedIndicatorWidth=Te(Pe.children[Pe.children.length-1],!0),ot.originalTotalWidth=ot.menuItemSizes.reduce(function(Mt,ct){return Mt+ct},0),ot.handleResize(),ce(ft,"display","none")},ot.handleResize=function(){if(ot.props.mode!=="horizontal")return;var Pe=se.findDOMNode(Object(b.a)(ot));if(!Pe)return;var Qe=Te(Pe);ot.overflowedItems=[];var ft=0,bt;ot.originalTotalWidth>Qe+ut&&(bt=-1,ot.menuItemSizes.forEach(function(Dt){ft+=Dt,ft+ot.overflowedIndicatorWidth<=Qe&&(bt+=1)})),ot.setState({lastVisibleIndex:bt})},ot}return Object(A.a)(at,[{key:"componentDidMount",value:function(){var Pe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Qe=se.findDOMNode(this);if(!Qe)return;this.resizeObserver=new $.default(function(ft){ft.forEach(function(){var bt=Pe.cancelFrameId;cancelAnimationFrame(bt),Pe.cancelFrameId=requestAnimationFrame(Pe.setChildrenWidthAndResize)})}),[].slice.call(Qe.children).concat(Qe).forEach(function(ft){Pe.resizeObserver.observe(ft)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pe.resizeObserver.disconnect(),[].slice.call(Qe.children).concat(Qe).forEach(function(ft){Pe.resizeObserver.observe(ft)}),Pe.setChildrenWidthAndResize()}),this.mutationObserver.observe(Qe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Pe){var Qe=this,ft=this.state.lastVisibleIndex;return(Pe||[]).reduce(function(bt,Dt,Mt){var ct=Dt;if(Qe.props.mode==="horizontal"){var Lt=Qe.getOverflowedSubMenuItem(Dt.props.eventKey,[]);ft!==void 0&&Qe.props.className.indexOf("".concat(Qe.props.prefixCls,"-root"))!==-1&&(Mt>ft&&(ct=O.cloneElement(Dt,{style:{display:"none"},eventKey:"".concat(Dt.props.eventKey,"-hidden"),className:"".concat(tt)})),Mt===ft+1&&(Qe.overflowedItems=Pe.slice(ft+1).map(function(An){return O.cloneElement(An,{key:An.props.eventKey,mode:"vertical-left"})}),Lt=Qe.getOverflowedSubMenuItem(Dt.props.eventKey,Qe.overflowedItems)));var Zt=[].concat(Object(ye.a)(bt),[Lt,ct]);return Mt===Pe.length-1&&Zt.push(Qe.getOverflowedSubMenuItem(Dt.props.eventKey,[],!0)),Zt}return[].concat(Object(ye.a)(bt),[ct])},[])}},{key:"render",value:function(){var Pe=this.props,Qe=Pe.visible,ft=Pe.prefixCls,bt=Pe.overflowedIndicator,Dt=Pe.mode,Mt=Pe.level,ct=Pe.tag,Lt=Pe.children,Zt=Pe.theme,An=Object(ue.a)(Pe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),on=ct;return O.createElement(on,Object.assign({},An),this.renderChildren(Lt))}}]),at}(O.Component);ht.defaultProps={tag:"div",className:""};var vt=ht;function _t(Ot){return Ot.length?Ot.every(function(Fe){return!!Fe.props.disabled}):!0}function Ve(Ot,Fe,at){var ot=Ot.getState();Ot.setState({activeKey:Object(M.a)(Object(M.a)({},ot.activeKey),{},Object(a.a)({},Fe,at))})}function Ue(Ot){return Ot.eventKey||"0-menu-"}function pt(Ot,Fe){var at=Fe,ot=Ot.children,Pe=Ot.eventKey;if(at){var Qe;if(he(ot,function(ft,bt){ft&&ft.props&&!ft.props.disabled&&at===K(ft,Pe,bt)&&(Qe=!0)}),Qe)return at}return at=null,Ot.defaultActiveFirst&&he(ot,function(ft,bt){!at&&ft&&!ft.props.disabled&&(at=K(ft,Pe,bt))}),at}function Ut(Ot){if(Ot){var Fe=this.instanceArray.indexOf(Ot);Fe!==-1?this.instanceArray[Fe]=Ot:this.instanceArray.push(Ot)}}var Et=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(ot){var Pe;return Object(g.a)(this,at),Pe=Fe.call(this,ot),Pe.onKeyDown=function(Qe,ft){var bt=Qe.keyCode,Dt;if(Pe.getFlatInstanceArray().forEach(function(ct){ct&&ct.props.active&&ct.onKeyDown&&(Dt=ct.onKeyDown(Qe))}),Dt)return 1;var Mt=null;return(bt===u.a.UP||bt===u.a.DOWN)&&(Mt=Pe.step(bt===u.a.UP?-1:1)),Mt?(Qe.preventDefault(),Ve(Pe.props.store,Ue(Pe.props),Mt.props.eventKey),typeof ft=="function"&&ft(Mt),1):void 0},Pe.onItemHover=function(Qe){var ft=Qe.key,bt=Qe.hover;Ve(Pe.props.store,Ue(Pe.props),bt?ft:null)},Pe.onDeselect=function(Qe){Pe.props.onDeselect(Qe)},Pe.onSelect=function(Qe){Pe.props.onSelect(Qe)},Pe.onClick=function(Qe){Pe.props.onClick(Qe)},Pe.onOpenChange=function(Qe){Pe.props.onOpenChange(Qe)},Pe.onDestroy=function(Qe){Pe.props.onDestroy(Qe)},Pe.getFlatInstanceArray=function(){return Pe.instanceArray},Pe.step=function(Qe){var ft=Pe.getFlatInstanceArray(),bt=Pe.props.store.getState().activeKey[Ue(Pe.props)],Dt=ft.length;if(!Dt)return null;Qe<0&&(ft=ft.concat().reverse());var Mt=-1;if(ft.every(function(An,on){return An&&An.props.eventKey===bt?(Mt=on,!1):!0}),!Pe.props.defaultActiveFirst&&Mt!==-1&&_t(ft.slice(Mt,Dt-1)))return;var ct=(Mt+1)%Dt,Lt=ct;do{var Zt=ft[Lt];if(!Zt||Zt.props.disabled)Lt=(Lt+1)%Dt;else return Zt}while(Lt!==ct);return null},Pe.renderCommonMenuItem=function(Qe,ft,bt){var Dt=Pe.props.store.getState(),Mt=Object(b.a)(Pe),ct=Mt.props,Lt=K(Qe,ct.eventKey,ft),Zt=Qe.props;if(!Zt||typeof Qe.type=="string")return Qe;var An=Lt===Dt.activeKey,on=Object(M.a)(Object(M.a)({mode:Zt.mode||ct.mode,level:ct.level,inlineIndent:ct.inlineIndent,renderMenuItem:Pe.renderMenuItem,rootPrefixCls:ct.prefixCls,index:ft,parentMenu:ct.parentMenu,manualRef:Zt.disabled?void 0:Object(n.a)(Qe.ref,Ut.bind(Object(b.a)(Pe))),eventKey:Lt,active:!Zt.disabled&&An,multiple:ct.multiple,onClick:function(Ln){(Zt.onClick||I)(Ln),Pe.onClick(Ln)},onItemHover:Pe.onItemHover,motion:ct.motion,subMenuOpenDelay:ct.subMenuOpenDelay,subMenuCloseDelay:ct.subMenuCloseDelay,forceSubMenuRender:ct.forceSubMenuRender,onOpenChange:Pe.onOpenChange,onDeselect:Pe.onDeselect,onSelect:Pe.onSelect,builtinPlacements:ct.builtinPlacements,itemIcon:Zt.itemIcon||Pe.props.itemIcon,expandIcon:Zt.expandIcon||Pe.props.expandIcon},bt),{},{direction:ct.direction});return(ct.mode==="inline"||be())&&(on.triggerSubMenuAction="click"),O.cloneElement(Qe,on)},Pe.renderMenuItem=function(Qe,ft,bt){if(!Qe)return null;var Dt=Pe.props.store.getState(),Mt={openKeys:Dt.openKeys,selectedKeys:Dt.selectedKeys,triggerSubMenuAction:Pe.props.triggerSubMenuAction,subMenuKey:bt};return Pe.renderCommonMenuItem(Qe,ft,Mt)},ot.store.setState({activeKey:Object(M.a)(Object(M.a)({},ot.store.getState().activeKey),{},Object(a.a)({},ot.eventKey,pt(ot,ot.activeKey)))}),Pe.instanceArray=[],Pe}return Object(A.a)(at,[{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||!r()(this.props.style,Pe.style)}},{key:"componentDidUpdate",value:function(Pe){var Qe=this.props,ft="activeKey"in Qe?Qe.activeKey:Qe.store.getState().activeKey[Ue(Qe)],bt=pt(Qe,ft);if(bt!==ft)Ve(Qe.store,Ue(Qe),bt);else if("activeKey"in Pe){var Dt=pt(Pe,Pe.activeKey);bt!==Dt&&Ve(Qe.store,Ue(Qe),bt)}}},{key:"render",value:function(){var Pe=this,Qe=Object(f.a)({},this.props);this.instanceArray=[];var ft=h()(Qe.prefixCls,Qe.className,"".concat(Qe.prefixCls,"-").concat(Qe.mode)),bt={className:ft,role:Qe.role||"menu"};Qe.id&&(bt.id=Qe.id),Qe.focusable&&(bt.tabIndex=0,bt.onKeyDown=this.onKeyDown);var Dt=Qe.prefixCls,Mt=Qe.eventKey,ct=Qe.visible,Lt=Qe.level,Zt=Qe.mode,An=Qe.overflowedIndicator,on=Qe.theme;return Se.forEach(function(Tn){return delete Qe[Tn]}),delete Qe.onClick,O.createElement(vt,Object.assign({},Qe,{prefixCls:Dt,mode:Zt,tag:"ul",level:Lt,theme:on,visible:ct,overflowedIndicator:An},bt),O.Children.map(Qe.children,function(Tn,Ln){return Pe.renderMenuItem(Tn,Ln,Mt||"0-menu-")}))}}]),at}(O.Component);Et.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:I};var jt=Object(m.b)()(Et),Ze=jt,Be=o("Kwbf");function Ye(Ot,Fe,at){var ot=Ot.prefixCls,Pe=Ot.motion,Qe=Ot.defaultMotions,ft=Qe===void 0?{}:Qe,bt=Ot.openAnimation,Dt=Ot.openTransitionName,Mt=Fe.switchingModeFromInline;if(Pe)return Pe;if(Object(d.a)(bt)==="object"&&bt)Object(Be.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof bt=="string")return{motionName:"".concat(ot,"-open-").concat(bt)};if(Dt)return{motionName:Dt};var ct=ft[at];return ct||(Mt?null:ft.other)}var Ce=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(ot){var Pe;Object(g.a)(this,at),Pe=Fe.call(this,ot),Pe.inlineOpenKeys=[],Pe.onSelect=function(bt){var Dt=Object(b.a)(Pe),Mt=Dt.props;if(Mt.selectable){var ct=Pe.store.getState(),Lt=ct.selectedKeys,Zt=bt.key;Mt.multiple?Lt=Lt.concat([Zt]):Lt=[Zt],"selectedKeys"in Mt||Pe.store.setState({selectedKeys:Lt}),Mt.onSelect(Object(M.a)(Object(M.a)({},bt),{},{selectedKeys:Lt}))}},Pe.onClick=function(bt){var Dt=Pe.getRealMenuMode(),Mt=Object(b.a)(Pe),ct=Mt.store,Lt=Mt.props.onOpenChange;Dt!=="inline"&&!("openKeys"in Pe.props)&&(ct.setState({openKeys:[]}),Lt([])),Pe.props.onClick(bt)},Pe.onKeyDown=function(bt,Dt){Pe.innerMenu.getWrappedInstance().onKeyDown(bt,Dt)},Pe.onOpenChange=function(bt){var Dt=Object(b.a)(Pe),Mt=Dt.props,ct=Pe.store.getState().openKeys.concat(),Lt=!1,Zt=function(on){var Tn=!1;if(on.open)Tn=ct.indexOf(on.key)===-1,Tn&&ct.push(on.key);else{var Ln=ct.indexOf(on.key);Tn=Ln!==-1,Tn&&ct.splice(Ln,1)}Lt=Lt||Tn};Array.isArray(bt)?bt.forEach(Zt):Zt(bt),Lt&&("openKeys"in Pe.props||Pe.store.setState({openKeys:ct}),Mt.onOpenChange(ct))},Pe.onDeselect=function(bt){var Dt=Object(b.a)(Pe),Mt=Dt.props;if(Mt.selectable){var ct=Pe.store.getState().selectedKeys.concat(),Lt=bt.key,Zt=ct.indexOf(Lt);Zt!==-1&&ct.splice(Zt,1),"selectedKeys"in Mt||Pe.store.setState({selectedKeys:ct}),Mt.onDeselect(Object(M.a)(Object(M.a)({},bt),{},{selectedKeys:ct}))}},Pe.onMouseEnter=function(bt){Pe.restoreModeVerticalFromInline();var Dt=Pe.props.onMouseEnter;Dt&&Dt(bt)},Pe.onTransitionEnd=function(bt){var Dt=bt.propertyName==="width"&&bt.target===bt.currentTarget,Mt=bt.target.className,ct=Object.prototype.toString.call(Mt)==="[object SVGAnimatedString]"?Mt.animVal:Mt,Lt=bt.propertyName==="font-size"&&ct.indexOf("anticon")>=0;(Dt||Lt)&&Pe.restoreModeVerticalFromInline()},Pe.setInnerMenu=function(bt){Pe.innerMenu=bt},Pe.isRootMenu=!0;var Qe=ot.defaultSelectedKeys,ft=ot.defaultOpenKeys;return"selectedKeys"in ot&&(Qe=ot.selectedKeys||[]),"openKeys"in ot&&(ft=ot.openKeys||[]),Pe.store=Object(m.c)({selectedKeys:Qe,openKeys:ft,activeKey:{"0-menu-":pt(ot,ot.activeKey)}}),Pe.state={switchingModeFromInline:!1},Pe}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pe){this.updateOpentKeysWhenSwitchMode(Pe),this.updateMiniStore();var Qe=this.props,ft=Qe.siderCollapsed,bt=Qe.inlineCollapsed,Dt=Qe.onOpenChange;(!Pe.inlineCollapsed&&bt||!Pe.siderCollapsed&&ft)&&Dt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Pe){var Qe=this.props,ft=this.store,bt=this.inlineOpenKeys,Dt=ft.getState(),Mt={};Pe.mode==="inline"&&Qe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Qe||((Qe.inlineCollapsed&&!Pe.inlineCollapsed||Qe.siderCollapsed&&!Pe.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Dt.openKeys.concat(),Mt.openKeys=[]),(!Qe.inlineCollapsed&&Pe.inlineCollapsed||!Qe.siderCollapsed&&Pe.siderCollapsed)&&(Mt.openKeys=bt,this.inlineOpenKeys=[])),Object.keys(Mt).length&&ft.setState(Mt)}},{key:"updateMenuDisplay",value:function(){var Pe=this.props.collapsedWidth,Qe=this.store,ft=this.prevOpenKeys,bt=this.getInlineCollapsed()&&(Pe===0||Pe==="0"||Pe==="0px");bt?(this.prevOpenKeys=Qe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ft&&(this.store.setState({openKeys:ft}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pe=this.props.mode,Qe=this.state.switchingModeFromInline,ft=this.getInlineCollapsed();return Qe&&ft?"inline":ft?"vertical":Pe}},{key:"getInlineCollapsed",value:function(){var Pe=this.props,Qe=Pe.inlineCollapsed,ft=Pe.siderCollapsed;return ft!==void 0?ft:Qe}},{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(M.a)({},Object(e.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Qe=this.getRealMenuMode();return Pe.className+=" ".concat(Pe.prefixCls,"-root"),Pe.direction==="rtl"&&(Pe.className+=" ".concat(Pe.prefixCls,"-rtl")),Pe=Object(M.a)(Object(M.a)({},Pe),{},{mode:Qe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ye(this.props,this.state,Qe)}),delete Pe.openAnimation,delete Pe.openTransitionName,O.createElement(m.a,{store:this.store},O.createElement(Ze,Object.assign({},Pe,{ref:this.setInnerMenu}),this.props.children))}}]),at}(O.Component);Ce.defaultProps={selectable:!0,onClick:I,onSelect:I,onOpenChange:I,onDeselect:I,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var Le=Ce,He=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(){var ot;return Object(g.a)(this,at),ot=Fe.apply(this,arguments),ot.onKeyDown=function(Pe){var Qe=Pe.keyCode;return Qe===u.a.ENTER?(ot.onClick(Pe),!0):void 0},ot.onMouseLeave=function(Pe){var Qe=ot.props,ft=Qe.eventKey,bt=Qe.onItemHover,Dt=Qe.onMouseLeave;bt({key:ft,hover:!1}),Dt({key:ft,domEvent:Pe})},ot.onMouseEnter=function(Pe){var Qe=ot.props,ft=Qe.eventKey,bt=Qe.onItemHover,Dt=Qe.onMouseEnter;bt({key:ft,hover:!0}),Dt({key:ft,domEvent:Pe})},ot.onClick=function(Pe){var Qe=ot.props,ft=Qe.eventKey,bt=Qe.multiple,Dt=Qe.onClick,Mt=Qe.onSelect,ct=Qe.onDeselect,Lt=Qe.isSelected,Zt={key:ft,keyPath:[ft],item:Object(b.a)(ot),domEvent:Pe};Dt(Zt),bt?Lt?ct(Zt):Mt(Zt):Lt||Mt(Zt)},ot.saveNode=function(Pe){ot.node=Pe},ot}return Object(A.a)(at,[{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,Qe=Object(M.a)({},this.props),ft=h()(this.getPrefixCls(),Qe.className,(Pe={},Object(a.a)(Pe,this.getActiveClassName(),!Qe.disabled&&Qe.active),Object(a.a)(Pe,this.getSelectedClassName(),Qe.isSelected),Object(a.a)(Pe,this.getDisabledClassName(),Qe.disabled),Pe)),bt=Object(M.a)(Object(M.a)({},Qe.attribute),{},{title:typeof Qe.title=="string"?Qe.title:void 0,className:ft,role:Qe.role||"menuitem","aria-disabled":Qe.disabled});Qe.role==="option"?bt=Object(M.a)(Object(M.a)({},bt),{},{role:"option","aria-selected":Qe.isSelected}):(Qe.role===null||Qe.role==="none")&&(bt.role="none");var Dt={onClick:Qe.disabled?null:this.onClick,onMouseLeave:Qe.disabled?null:this.onMouseLeave,onMouseEnter:Qe.disabled?null:this.onMouseEnter},Mt=Object(M.a)({},Qe.style);Qe.mode==="inline"&&(Qe.direction==="rtl"?Mt.paddingRight=Qe.inlineIndent*Qe.level:Mt.paddingLeft=Qe.inlineIndent*Qe.level),Se.forEach(function(Lt){return delete Qe[Lt]}),delete Qe.direction;var ct=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ct=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object.assign({},Object(e.default)(Qe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),bt,Dt,{style:Mt,ref:this.saveNode}),Qe.children,ct)}}]),at}(O.Component);He.isMenuItem=!0,He.defaultProps={onSelect:I,onMouseEnter:I,onMouseLeave:I,manualRef:I};var je=Object(m.b)(function(Ot,Fe){var at=Ot.activeKey,ot=Ot.selectedKeys,Pe=Fe.eventKey,Qe=Fe.subMenuKey;return{active:at[Qe]===Pe,isSelected:ot.indexOf(Pe)!==-1}})(He),Ke=je,it=function(Ot){Object(y.a)(at,Ot);var Fe=Object(C.a)(at);function at(){var ot;return Object(g.a)(this,at),ot=Fe.apply(this,arguments),ot.renderInnerMenuItem=function(Pe){var Qe=ot.props,ft=Qe.renderMenuItem,bt=Qe.index;return ft(Pe,bt,ot.props.subMenuKey)},ot}return Object(A.a)(at,[{key:"render",value:function(){var Pe=Object(f.a)({},this.props),Qe=Pe.className,ft=Qe===void 0?"":Qe,bt=Pe.rootPrefixCls,Dt="".concat(bt,"-item-group-title"),Mt="".concat(bt,"-item-group-list"),ct=Pe.title,Lt=Pe.children;return Se.forEach(function(Zt){return delete Pe[Zt]}),delete Pe.onClick,delete Pe.direction,O.createElement("li",Object.assign({},Pe,{className:"".concat(ft," ").concat(bt,"-item-group")}),O.createElement("div",{className:Dt,title:typeof ct=="string"?ct:void 0},ct),O.createElement("ul",{className:Mt},O.Children.map(Lt,this.renderInnerMenuItem)))}}]),at}(O.Component);it.isMenuItemGroup=!0,it.defaultProps={disabled:!0};var Ct=it,Ft=function(Fe){var at=Fe.className,ot=Fe.rootPrefixCls,Pe=Fe.style;return O.createElement("li",{className:"".concat(at," ").concat(ot,"-item-divider"),style:Pe})};Ft.defaultProps={disabled:!0,className:"",style:{}};var Jt=Ft,Ht=z.e=Le},"1nVM":function(k,z,o){k.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(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("MlIO"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.Hasher,y=g.x64,C=y.Word,O=y.WordArray,m=g.algo;function e(){return C.create.apply(C,arguments)}var f=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],a=[];(function(){for(var n=0;n<80;n++)a[n]=e()})();var u=m.SHA512=b.extend({_doReset:function(){this._hash=new O.init([new C.init(1779033703,4089235720),new C.init(3144134277,2227873595),new C.init(1013904242,4271175723),new C.init(2773480762,1595750129),new C.init(1359893119,2917565137),new C.init(2600822924,725511199),new C.init(528734635,4215389547),new C.init(1541459225,327033209)])},_doProcessBlock:function(n,i){for(var r=this._hash.words,c=r[0],h=r[1],d=r[2],s=r[3],l=r[4],w=r[5],E=r[6],_=r[7],P=c.high,R=c.low,x=h.high,S=h.low,v=d.high,T=d.low,U=s.high,L=s.low,N=l.high,V=l.low,H=w.high,D=w.low,W=E.high,F=E.low,I=_.high,K=_.low,ee=P,he=R,de=x,Se=S,Te=v,ce=T,be=U,ye=L,ue=N,se=V,$=H,me=D,re=W,ae=F,Oe=I,le=K,te=0;te<80;te++){var Q,J,ve=a[te];if(te<16)J=ve.high=n[i+te*2]|0,Q=ve.low=n[i+te*2+1]|0;else{var _e=a[te-15],Ae=_e.high,Je=_e.low,tt=(Ae>>>1|Je<<31)^(Ae>>>8|Je<<24)^Ae>>>7,ut=(Je>>>1|Ae<<31)^(Je>>>8|Ae<<24)^(Je>>>7|Ae<<25),ht=a[te-2],vt=ht.high,_t=ht.low,Ve=(vt>>>19|_t<<13)^(vt<<3|_t>>>29)^vt>>>6,Ue=(_t>>>19|vt<<13)^(_t<<3|vt>>>29)^(_t>>>6|vt<<26),pt=a[te-7],Ut=pt.high,Et=pt.low,jt=a[te-16],Ze=jt.high,Be=jt.low;Q=ut+Et,J=tt+Ut+(Q>>>0<ut>>>0?1:0),Q=Q+Ue,J=J+Ve+(Q>>>0<Ue>>>0?1:0),Q=Q+Be,J=J+Ze+(Q>>>0<Be>>>0?1:0),ve.high=J,ve.low=Q}var Ye=ue&$^~ue&re,Ce=se&me^~se&ae,Le=ee&de^ee&Te^de&Te,He=he&Se^he&ce^Se&ce,je=(ee>>>28|he<<4)^(ee<<30|he>>>2)^(ee<<25|he>>>7),Ke=(he>>>28|ee<<4)^(he<<30|ee>>>2)^(he<<25|ee>>>7),it=(ue>>>14|se<<18)^(ue>>>18|se<<14)^(ue<<23|se>>>9),Ct=(se>>>14|ue<<18)^(se>>>18|ue<<14)^(se<<23|ue>>>9),Ft=f[te],Jt=Ft.high,Ht=Ft.low,Ot=le+Ct,Fe=Oe+it+(Ot>>>0<le>>>0?1:0),Ot=Ot+Ce,Fe=Fe+Ye+(Ot>>>0<Ce>>>0?1:0),Ot=Ot+Ht,Fe=Fe+Jt+(Ot>>>0<Ht>>>0?1:0),Ot=Ot+Q,Fe=Fe+J+(Ot>>>0<Q>>>0?1:0),at=Ke+He,ot=je+Le+(at>>>0<Ke>>>0?1:0);Oe=re,le=ae,re=$,ae=me,$=ue,me=se,se=ye+Ot|0,ue=be+Fe+(se>>>0<ye>>>0?1:0)|0,be=Te,ye=ce,Te=de,ce=Se,de=ee,Se=he,he=Ot+at|0,ee=Fe+ot+(he>>>0<Ot>>>0?1:0)|0}R=c.low=R+he,c.high=P+ee+(R>>>0<he>>>0?1:0),S=h.low=S+Se,h.high=x+de+(S>>>0<Se>>>0?1:0),T=d.low=T+ce,d.high=v+Te+(T>>>0<ce>>>0?1:0),L=s.low=L+ye,s.high=U+be+(L>>>0<ye>>>0?1:0),V=l.low=V+se,l.high=N+ue+(V>>>0<se>>>0?1:0),D=w.low=D+me,w.high=H+$+(D>>>0<me>>>0?1:0),F=E.low=F+ae,E.high=W+re+(F>>>0<ae>>>0?1:0),K=_.low=K+le,_.high=I+Oe+(K>>>0<le>>>0?1:0)},_doFinalize:function(){var n=this._data,i=n.words,r=this._nDataBytes*8,c=n.sigBytes*8;i[c>>>5]|=128<<24-c%32,i[(c+128>>>10<<5)+30]=Math.floor(r/4294967296),i[(c+128>>>10<<5)+31]=r,n.sigBytes=i.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var n=b.clone.call(this);return n._hash=this._hash.clone(),n},blockSize:1024/32});g.SHA512=b._createHelper(u),g.HmacSHA512=b._createHmacHelper(u)}(),M.SHA512})},"24hK":function(k,z,o){"use strict";o.d(z,"a",function(){return g});class M{constructor(A){this.element=A,this.next=M.Undefined,this.prev=M.Undefined}}M.Undefined=new M(void 0);class g{constructor(){this._first=M.Undefined,this._last=M.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===M.Undefined}clear(){let A=this._first;for(;A!==M.Undefined;){const b=A.next;A.prev=M.Undefined,A.next=M.Undefined,A=b}this._first=M.Undefined,this._last=M.Undefined,this._size=0}unshift(A){return this._insert(A,!1)}push(A){return this._insert(A,!0)}_insert(A,b){const y=new M(A);if(this._first===M.Undefined)this._first=y,this._last=y;else if(b){const O=this._last;this._last=y,y.prev=O,O.next=y}else{const O=this._first;this._first=y,y.next=O,O.prev=y}this._size+=1;let C=!1;return()=>{C||(C=!0,this._remove(y))}}shift(){if(this._first===M.Undefined)return;{const A=this._first.element;return this._remove(this._first),A}}pop(){if(this._last===M.Undefined)return;{const A=this._last.element;return this._remove(this._last),A}}_remove(A){if(A.prev!==M.Undefined&&A.next!==M.Undefined){const b=A.prev;b.next=A.next,A.next.prev=b}else A.prev===M.Undefined&&A.next===M.Undefined?(this._first=M.Undefined,this._last=M.Undefined):A.next===M.Undefined?(this._last=this._last.prev,this._last.next=M.Undefined):A.prev===M.Undefined&&(this._first=this._first.next,this._first.prev=M.Undefined);this._size-=1}*[Symbol.iterator](){let A=this._first;for(;A!==M.Undefined;)yield A.element,A=A.next}}},"3/fG":function(k,z,o){"use strict";o.d(z,"a",function(){return g});function M(A,b){let y;return b.length===0?y=A:y=A.replace(/\{(\d+)\}/g,function(C,O){const m=O[0];return typeof b[m]!="undefined"?b[m]:C}),y}function g(A,b,...y){return M(b,y)}},"3d99":function(k,z,o){k.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(k,z){k.exports="data:image/png;base64,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"},"3y9D":function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.WordArray,y=A.Hasher,C=g.algo,O=[],m=C.SHA1=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,f){for(var a=this._hash.words,u=a[0],n=a[1],i=a[2],r=a[3],c=a[4],h=0;h<80;h++){if(h<16)O[h]=e[f+h]|0;else{var d=O[h-3]^O[h-8]^O[h-14]^O[h-16];O[h]=d<<1|d>>>31}var s=(u<<5|u>>>27)+c+O[h];h<20?s+=(n&i|~n&r)+1518500249:h<40?s+=(n^i^r)+1859775393:h<60?s+=(n&i|n&r|i&r)-1894007588:s+=(n^i^r)-899497514,c=r,r=i,i=n<<30|n>>>2,n=u,u=s}a[0]=a[0]+u|0,a[1]=a[1]+n|0,a[2]=a[2]+i|0,a[3]=a[3]+r|0,a[4]=a[4]+c|0},_doFinalize:function(){var e=this._data,f=e.words,a=this._nDataBytes*8,u=e.sigBytes*8;return f[u>>>5]|=128<<24-u%32,f[(u+64>>>9<<4)+14]=Math.floor(a/4294967296),f[(u+64>>>9<<4)+15]=a,e.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var e=y.clone.call(this);return e._hash=this._hash.clone(),e}});g.SHA1=y._createHelper(m),g.HmacSHA1=y._createHmacHelper(m)}(),M.SHA1})},4:function(k,z){},"498V":function(k,z,o){k.exports=o.p+"static/logo.22b9a281.svg"},"4SAo":function(k,z,o){k.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(k,z){k.exports="data:image/png;base64,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"},"55Ip":function(k,z,o){"use strict";o.d(z,"a",function(){return s});var M=o("Ty5D"),g=o("dI71"),A=o("q1tI"),b=o.n(A),y=o("YS25"),C=o("17x9"),O=o.n(C),m=o("wx14"),e=o("zLVn"),f=o("9R94"),a=function(S){Object(g.a)(v,S);function v(){for(var U,L=arguments.length,N=new Array(L),V=0;V<L;V++)N[V]=arguments[V];return U=S.call.apply(S,[this].concat(N))||this,U.history=Object(y.a)(U.props),U}var T=v.prototype;return T.render=function(){return b.a.createElement(M.c,{history:this.history,children:this.props.children})},v}(b.a.Component),u=function(S){Object(g.a)(v,S);function v(){for(var U,L=arguments.length,N=new Array(L),V=0;V<L;V++)N[V]=arguments[V];return U=S.call.apply(S,[this].concat(N))||this,U.history=Object(y.b)(U.props),U}var T=v.prototype;return T.render=function(){return b.a.createElement(M.c,{history:this.history,children:this.props.children})},v}(b.a.Component),n=function(v,T){return typeof v=="function"?v(T):v},i=function(v,T){return typeof v=="string"?Object(y.c)(v,null,null,T):v},r=function(v){return v},c=b.a.forwardRef;typeof c=="undefined"&&(c=r);function h(S){return!!(S.metaKey||S.altKey||S.ctrlKey||S.shiftKey)}var d=c(function(S,v){var T=S.innerRef,U=S.navigate,L=S.onClick,N=Object(e.a)(S,["innerRef","navigate","onClick"]),V=N.target,H=Object(m.a)({},N,{onClick:function(W){try{L&&L(W)}catch(F){throw W.preventDefault(),F}!W.defaultPrevented&&W.button===0&&(!V||V==="_self")&&!h(W)&&(W.preventDefault(),U())}});return r!==c?H.ref=v||T:H.ref=T,b.a.createElement("a",H)}),s=c(function(S,v){var T=S.component,U=T===void 0?d:T,L=S.replace,N=S.to,V=S.innerRef,H=Object(e.a)(S,["component","replace","to","innerRef"]);return b.a.createElement(M.e.Consumer,null,function(D){D||Object(f.a)(!1);var W=D.history,F=i(n(N,D.location),D.location),I=F?W.createHref(F):"",K=Object(m.a)({},H,{href:I,navigate:function(){var he=n(N,D.location),de=L?W.replace:W.push;de(he)}});return r!==c?K.ref=v||V:K.innerRef=V,b.a.createElement(U,K)})});if(!1)var l,w;var E=function(v){return v},_=b.a.forwardRef;typeof _=="undefined"&&(_=E);function P(){for(var S=arguments.length,v=new Array(S),T=0;T<S;T++)v[T]=arguments[T];return v.filter(function(U){return U}).join(" ")}var R=_(function(S,v){var T=S["aria-current"],U=T===void 0?"page":T,L=S.activeClassName,N=L===void 0?"active":L,V=S.activeStyle,H=S.className,D=S.exact,W=S.isActive,F=S.location,I=S.sensitive,K=S.strict,ee=S.style,he=S.to,de=S.innerRef,Se=Object(e.a)(S,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return b.a.createElement(M.e.Consumer,null,function(Te){Te||Object(f.a)(!1);var ce=F||Te.location,be=i(n(he,ce),ce),ye=be.pathname,ue=ye&&ye.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),se=ue?Object(M.f)(ce.pathname,{path:ue,exact:D,sensitive:I,strict:K}):null,$=!!(W?W(se,ce):se),me=$?P(H,N):H,re=$?Object(m.a)({},ee,{},V):ee,ae=Object(m.a)({"aria-current":$&&U||null,className:me,style:re,to:be},Se);return E!==_?ae.ref=v||de:ae.innerRef=de,b.a.createElement(s,ae)})});if(!1)var x},"5D2P":function(k,z){k.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(k,z,o){"use strict";var M,g;function A(b,y,C){var O=function(m,e){return b.js_beautify(m,e)};return O.js=b.js_beautify,O.css=y.css_beautify,O.html=C.html_beautify,O.js_beautify=b.js_beautify,O.css_beautify=y.css_beautify,O.html_beautify=C.html_beautify,O}!(M=[o("6UM0"),o("TXwP"),o("psGv")],g=function(b,y,C){return A(b,y,C)}.apply(z,M),g!==void 0&&(k.exports=g))},"5Y4S":function(k,z,o){"use strict";o.d(z,"a",function(){return A});var M=o("MNsG");const g=M.b.performance&&typeof M.b.performance.now=="function";class A{constructor(b){this._highResolution=g&&b,this._startTime=this._now(),this._stopTime=-1}static create(b=!0){return new A(b)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?M.b.performance.now():Date.now()}}},"5hvy":function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("MlIO"))})(this,function(M){return function(g){var A=M,b=A.lib,y=b.WordArray,C=b.Hasher,O=A.x64,m=O.Word,e=A.algo,f=[],a=[],u=[];(function(){for(var r=1,c=0,h=0;h<24;h++){f[r+5*c]=(h+1)*(h+2)/2%64;var d=c%5,s=(2*r+3*c)%5;r=d,c=s}for(var r=0;r<5;r++)for(var c=0;c<5;c++)a[r+5*c]=c+(2*r+3*c)%5*5;for(var l=1,w=0;w<24;w++){for(var E=0,_=0,P=0;P<7;P++){if(l&1){var R=(1<<P)-1;R<32?_^=1<<R:E^=1<<R-32}l&128?l=l<<1^113:l<<=1}u[w]=m.create(E,_)}})();var n=[];(function(){for(var r=0;r<25;r++)n[r]=m.create()})();var i=e.SHA3=C.extend({cfg:C.cfg.extend({outputLength:512}),_doReset:function(){for(var r=this._state=[],c=0;c<25;c++)r[c]=new m.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(r,c){for(var h=this._state,d=this.blockSize/2,s=0;s<d;s++){var l=r[c+2*s],w=r[c+2*s+1];l=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var E=h[s];E.high^=w,E.low^=l}for(var _=0;_<24;_++){for(var P=0;P<5;P++){for(var R=0,x=0,S=0;S<5;S++){var E=h[P+5*S];R^=E.high,x^=E.low}var v=n[P];v.high=R,v.low=x}for(var P=0;P<5;P++)for(var T=n[(P+4)%5],U=n[(P+1)%5],L=U.high,N=U.low,R=T.high^(L<<1|N>>>31),x=T.low^(N<<1|L>>>31),S=0;S<5;S++){var E=h[P+5*S];E.high^=R,E.low^=x}for(var V=1;V<25;V++){var R,x,E=h[V],H=E.high,D=E.low,W=f[V];W<32?(R=H<<W|D>>>32-W,x=D<<W|H>>>32-W):(R=D<<W-32|H>>>64-W,x=H<<W-32|D>>>64-W);var F=n[a[V]];F.high=R,F.low=x}var I=n[0],K=h[0];I.high=K.high,I.low=K.low;for(var P=0;P<5;P++)for(var S=0;S<5;S++){var V=P+5*S,E=h[V],ee=n[V],he=n[(P+1)%5+5*S],de=n[(P+2)%5+5*S];E.high=ee.high^~he.high&de.high,E.low=ee.low^~he.low&de.low}var E=h[0],Se=u[_];E.high^=Se.high,E.low^=Se.low}},_doFinalize:function(){var r=this._data,c=r.words,h=this._nDataBytes*8,d=r.sigBytes*8,s=this.blockSize*32;c[d>>>5]|=1<<24-d%32,c[(g.ceil((d+1)/s)*s>>>5)-1]|=128,r.sigBytes=c.length*4,this._process();for(var l=this._state,w=this.cfg.outputLength/8,E=w/8,_=[],P=0;P<E;P++){var R=l[P],x=R.high,S=R.low;x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,_.push(S),_.push(x)}return new y.init(_,w)},clone:function(){for(var r=C.clone.call(this),c=r._state=this._state.slice(0),h=0;h<25;h++)c[h]=c[h].clone();return r}});A.SHA3=C._createHelper(i),A.HmacSHA3=C._createHmacHelper(i)}(Math),M.SHA3})},"6+eU":function(k,z,o){"use strict";o.d(z,"a",function(){return _});var M=o("wx14"),g=o("rePB"),A=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),C=o("Ji7U"),O=o("LK+K"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),u=function(R){var x,S="".concat(R.rootPrefixCls,"-item"),v=a()(S,"".concat(S,"-").concat(R.page),(x={},Object(g.a)(x,"".concat(S,"-active"),R.active),Object(g.a)(x,R.className,!!R.className),Object(g.a)(x,"".concat(S,"-disabled"),!R.page),x)),T=function(){R.onClick(R.page)},U=function(N){R.onKeyPress(N,R.onClick,R.page)};return e.a.createElement("li",{title:R.showTitle?R.page:null,className:v,onClick:T,onKeyPress:U,tabIndex:"0"},R.itemRender(R.page,"page",e.a.createElement("a",{rel:"nofollow"},R.page)))},n=u,i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},r=function(P){Object(C.a)(x,P);var R=Object(O.a)(x);function x(){var S;Object(b.a)(this,x);for(var v=arguments.length,T=new Array(v),U=0;U<v;U++)T[U]=arguments[U];return S=R.call.apply(R,[this].concat(T)),S.state={goInputText:""},S.buildOptionText=function(L){return"".concat(L," ").concat(S.props.locale.items_per_page)},S.changeSize=function(L){S.props.changeSize(Number(L))},S.handleChange=function(L){S.setState({goInputText:L.target.value})},S.handleBlur=function(L){var N=S.props,V=N.goButton,H=N.quickGo,D=N.rootPrefixCls,W=S.state.goInputText;if(V||W==="")return;if(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(D,"-prev"))>=0||L.relatedTarget.className.indexOf("".concat(D,"-next"))>=0))return;S.setState({goInputText:""}),H(S.getValidValue())},S.go=function(L){var N=S.state.goInputText;if(N==="")return;(L.keyCode===i.ENTER||L.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(y.a)(x,[{key:"getValidValue",value:function(){var v=this.state,T=v.goInputText,U=v.current;return!T||isNaN(T)?U:Number(T)}},{key:"getPageSizeOptions",value:function(){var v=this.props,T=v.pageSize,U=v.pageSizeOptions;return U.some(function(L){return L.toString()===T.toString()})?U:U.concat([T.toString()]).sort(function(L,N){var V=isNaN(Number(L))?0:Number(L),H=isNaN(Number(N))?0:Number(N);return V-H})}},{key:"render",value:function(){var v=this,T=this.props,U=T.pageSize,L=T.locale,N=T.rootPrefixCls,V=T.changeSize,H=T.quickGo,D=T.goButton,W=T.selectComponentClass,F=T.buildOptionText,I=T.selectPrefixCls,K=T.disabled,ee=this.state.goInputText,he="".concat(N,"-options"),de=W,Se=null,Te=null,ce=null;if(!V&&!H)return null;var be=this.getPageSizeOptions();if(V&&de){var ye=be.map(function(ue,se){return e.a.createElement(de.Option,{key:se,value:ue.toString()},(F||v.buildOptionText)(ue))});Se=e.a.createElement(de,{disabled:K,prefixCls:I,showSearch:!1,className:"".concat(he,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(U||be[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},ye)}return H&&(D&&(ce=typeof D=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(he,"-quick-jumper-button")},L.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},D)),Te=e.a.createElement("div",{className:"".concat(he,"-quick-jumper")},L.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),L.page,ce)),e.a.createElement("li",{className:"".concat(he)},Se,Te)}}]),x}(e.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=r,h=o("N2Kk");function d(){}function s(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function l(P,R,x){return x}function w(P,R,x){var S=typeof P=="undefined"?R.pageSize:P;return Math.floor((x.total-1)/S)+1}var E=function(P){Object(C.a)(x,P);var R=Object(O.a)(x);function x(S){var v;Object(b.a)(this,x),v=R.call(this,S),v.getJumpPrevPage=function(){return Math.max(1,v.state.current-(v.props.showLessItems?3:5))},v.getJumpNextPage=function(){return Math.min(w(void 0,v.state,v.props),v.state.current+(v.props.showLessItems?3:5))},v.getItemIcon=function(V,H){var D=v.props.prefixCls,W=V||e.a.createElement("button",{type:"button","aria-label":H,className:"".concat(D,"-item-link")});return typeof V=="function"&&(W=e.a.createElement(V,Object(A.a)({},v.props))),W},v.savePaginationNode=function(V){v.paginationNode=V},v.isValid=function(V){return s(V)&&V!==v.state.current},v.shouldDisplayQuickJumper=function(){var V=v.props,H=V.showQuickJumper,D=V.pageSize,W=V.total;return W<=D?!1:H},v.handleKeyDown=function(V){(V.keyCode===i.ARROW_UP||V.keyCode===i.ARROW_DOWN)&&V.preventDefault()},v.handleKeyUp=function(V){var H=v.getValidValue(V),D=v.state.currentInputValue;H!==D&&v.setState({currentInputValue:H}),V.keyCode===i.ENTER?v.handleChange(H):V.keyCode===i.ARROW_UP?v.handleChange(H-1):V.keyCode===i.ARROW_DOWN&&v.handleChange(H+1)},v.changePageSize=function(V){var H=v.state.current,D=w(V,v.state,v.props);H=H>D?D:H,D===0&&(H=v.state.current),typeof V=="number"&&("pageSize"in v.props||v.setState({pageSize:V}),"current"in v.props||v.setState({current:H,currentInputValue:H})),v.props.onShowSizeChange(H,V),"onChange"in v.props&&v.props.onChange&&v.props.onChange(H,V)},v.handleChange=function(V){var H=v.props.disabled,D=V;if(v.isValid(D)&&!H){var W=w(void 0,v.state,v.props);D>W?D=W:D<1&&(D=1),"current"in v.props||v.setState({current:D,currentInputValue:D});var F=v.state.pageSize;return v.props.onChange(D,F),D}return v.state.current},v.prev=function(){v.hasPrev()&&v.handleChange(v.state.current-1)},v.next=function(){v.hasNext()&&v.handleChange(v.state.current+1)},v.jumpPrev=function(){v.handleChange(v.getJumpPrevPage())},v.jumpNext=function(){v.handleChange(v.getJumpNextPage())},v.hasPrev=function(){return v.state.current>1},v.hasNext=function(){return v.state.current<w(void 0,v.state,v.props)},v.runIfEnter=function(V,H){if(V.key==="Enter"||V.charCode===13){for(var D=arguments.length,W=new Array(D>2?D-2:0),F=2;F<D;F++)W[F-2]=arguments[F];H.apply(void 0,W)}},v.runIfEnterPrev=function(V){v.runIfEnter(V,v.prev)},v.runIfEnterNext=function(V){v.runIfEnter(V,v.next)},v.runIfEnterJumpPrev=function(V){v.runIfEnter(V,v.jumpPrev)},v.runIfEnterJumpNext=function(V){v.runIfEnter(V,v.jumpNext)},v.handleGoTO=function(V){(V.keyCode===i.ENTER||V.type==="click")&&v.handleChange(v.state.currentInputValue)};var T=S.onChange!==d,U="current"in S;U&&!T&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var L=S.defaultCurrent;"current"in S&&(L=S.current);var N=S.defaultPageSize;return"pageSize"in S&&(N=S.pageSize),L=Math.min(L,w(N,void 0,S)),v.state={current:L,currentInputValue:L,pageSize:N},v}return Object(y.a)(x,[{key:"componentDidUpdate",value:function(v,T){var U=this.props.prefixCls;if(T.current!==this.state.current&&this.paginationNode){var L=this.paginationNode.querySelector(".".concat(U,"-item-").concat(T.current));L&&document.activeElement===L&&L.blur()}}},{key:"getValidValue",value:function(v){var T=v.target.value,U=w(void 0,this.state,this.props),L=this.state.currentInputValue,N;return T===""?N=T:isNaN(Number(T))?N=L:T>=U?N=U:N=Number(T),N}},{key:"getShowSizeChanger",value:function(){var v=this.props,T=v.showSizeChanger,U=v.total,L=v.totalBoundaryShowSizeChanger;return typeof T!="undefined"?T:U>L}},{key:"renderPrev",value:function(v){var T=this.props,U=T.prevIcon,L=T.itemRender,N=L(v,"prev",this.getItemIcon(U,"prev page")),V=!this.hasPrev();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"renderNext",value:function(v){var T=this.props,U=T.nextIcon,L=T.itemRender,N=L(v,"next",this.getItemIcon(U,"next page")),V=!this.hasNext();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"render",value:function(){var v=this,T=this.props,U=T.prefixCls,L=T.className,N=T.style,V=T.disabled,H=T.hideOnSinglePage,D=T.total,W=T.locale,F=T.showQuickJumper,I=T.showLessItems,K=T.showTitle,ee=T.showTotal,he=T.simple,de=T.itemRender,Se=T.showPrevNextJumpers,Te=T.jumpPrevIcon,ce=T.jumpNextIcon,be=T.selectComponentClass,ye=T.selectPrefixCls,ue=T.pageSizeOptions,se=this.state,$=se.current,me=se.pageSize,re=se.currentInputValue;if(H===!0&&D<=me)return null;var ae=w(void 0,this.state,this.props),Oe=[],le=null,te=null,Q=null,J=null,ve=null,_e=F&&F.goButton,Ae=I?1:2,Je=$-1>0?$-1:0,tt=$+1<ae?$+1:ae,ut=Object.keys(this.props).reduce(function(Ce,Le){return(Le.substr(0,5)==="data-"||Le.substr(0,5)==="aria-"||Le==="role")&&(Ce[Le]=v.props[Le]),Ce},{});if(he)return _e&&(typeof _e=="boolean"?ve=e.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},W.jump_to_confirm):ve=e.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_e),ve=e.a.createElement("li",{title:K?"".concat(W.jump_to).concat($,"/").concat(ae):null,className:"".concat(U,"-simple-pager")},ve)),e.a.createElement("ul",Object(M.a)({className:a()(U,"".concat(U,"-simple"),Object(g.a)({},"".concat(U,"-disabled"),V),L),style:N,ref:this.savePaginationNode},ut),e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(U,"-prev"),Object(g.a)({},"".concat(U,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Je)),e.a.createElement("li",{title:K?"".concat($,"/").concat(ae):null,className:"".concat(U,"-simple-pager")},e.a.createElement("input",{type:"text",value:re,disabled:V,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),e.a.createElement("span",{className:"".concat(U,"-slash")},"/"),ae),e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(U,"-next"),Object(g.a)({},"".concat(U,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(tt)),ve);if(ae<=3+Ae*2){var ht={locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:K,itemRender:de};ae||Oe.push(e.a.createElement(n,Object(M.a)({},ht,{key:"noPager",page:ae,className:"".concat(U,"-disabled")})));for(var vt=1;vt<=ae;vt+=1){var _t=$===vt;Oe.push(e.a.createElement(n,Object(M.a)({},ht,{key:vt,page:vt,active:_t})))}}else{var Ve=I?W.prev_3:W.prev_5,Ue=I?W.next_3:W.next_5;Se&&(le=e.a.createElement("li",{title:K?Ve:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(U,"-jump-prev"),Object(g.a)({},"".concat(U,"-jump-prev-custom-icon"),!!Te))},de(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Te,"prev page"))),te=e.a.createElement("li",{title:K?Ue:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(U,"-jump-next"),Object(g.a)({},"".concat(U,"-jump-next-custom-icon"),!!ce))},de(this.getJumpNextPage(),"jump-next",this.getItemIcon(ce,"next page")))),J=e.a.createElement(n,{locale:W,last:!0,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ae,page:ae,active:!1,showTitle:K,itemRender:de}),Q=e.a.createElement(n,{locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:K,itemRender:de});var pt=Math.max(1,$-Ae),Ut=Math.min($+Ae,ae);$-1<=Ae&&(Ut=1+Ae*2),ae-$<=Ae&&(pt=ae-Ae*2);for(var Et=pt;Et<=Ut;Et+=1){var jt=$===Et;Oe.push(e.a.createElement(n,{locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Et,page:Et,active:jt,showTitle:K,itemRender:de}))}$-1>=Ae*2&&$!==1+2&&(Oe[0]=Object(m.cloneElement)(Oe[0],{className:"".concat(U,"-item-after-jump-prev")}),Oe.unshift(le)),ae-$>=Ae*2&&$!==ae-2&&(Oe[Oe.length-1]=Object(m.cloneElement)(Oe[Oe.length-1],{className:"".concat(U,"-item-before-jump-next")}),Oe.push(te)),pt!==1&&Oe.unshift(Q),Ut!==ae&&Oe.push(J)}var Ze=null;ee&&(Ze=e.a.createElement("li",{className:"".concat(U,"-total-text")},ee(D,[D===0?0:($-1)*me+1,$*me>D?D:$*me])));var Be=!this.hasPrev()||!ae,Ye=!this.hasNext()||!ae;return e.a.createElement("ul",Object(M.a)({className:a()(U,L,Object(g.a)({},"".concat(U,"-disabled"),V)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},ut),Ze,e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:Be?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(U,"-prev"),Object(g.a)({},"".concat(U,"-disabled"),Be)),"aria-disabled":Be},this.renderPrev(Je)),Oe,e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:Ye?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(U,"-next"),Object(g.a)({},"".concat(U,"-disabled"),Ye)),"aria-disabled":Ye},this.renderNext(tt)),e.a.createElement(c,{disabled:V,locale:W,rootPrefixCls:U,selectComponentClass:be,selectPrefixCls:ye,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$,pageSize:me,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(v,T){var U={};if("current"in v&&(U.current=v.current,v.current!==T.current&&(U.currentInputValue=U.current)),"pageSize"in v&&v.pageSize!==T.pageSize){var L=T.current,N=w(v.pageSize,T,v);L=L>N?N:L,"current"in v||(U.current=L,U.currentInputValue=L),U.pageSize=v.pageSize}return U}}]),x}(e.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:d,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:d,locale:h.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var _=E},"6Fuo":function(k,z,o){k.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(k,z,o){"use strict";var M=o("wCXF"),g=o("n6Qo");o.d(z,"b",function(){return g.a});var A=o("IBYe"),b=o("6eGT"),y=o("hW8S");o.d(z,"a",function(){return y.a}),z.c=M.b},"6UM0":function(k,z,o){var M,g;(function(){var A;(function(){"use strict";var y=[function(e,f,a){var u=a(1).Beautifier,n=a(5).Options;function i(r,c){var h=new u(r,c);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new n}},function(e,f,a){var u=a(2).Output,n=a(3).Token,i=a(4),r=a(5).Options,c=a(7).Tokenizer,h=a(7).line_starters,d=a(7).positionable_operators,s=a(7).TOKEN;function l(I,K){return K.indexOf(I)!==-1}function w(I){return I.replace(/^\s+/g,"")}function E(I){for(var K={},ee=0;ee<I.length;ee++)K[I[ee].replace(/-/g,"_")]=I[ee];return K}function _(I,K){return I&&I.type===s.RESERVED&&I.text===K}function P(I,K){return I&&I.type===s.RESERVED&&l(I.text,K)}var R=["case","return","do","if","throw","else","await","break","continue","async"],x=["before-newline","after-newline","preserve-newline"],S=E(x),v=[S.before_newline,S.preserve_newline],T={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function U(I,K){if(K.multiline_frame||K.mode===T.ForInitializer||K.mode===T.Conditional)return;I.remove_indent(K.start_line_index)}function L(I){I=I.replace(i.allLineBreaks,`
`);for(var K=[],ee=I.indexOf(`
`);ee!==-1;)K.push(I.substring(0,ee)),I=I.substring(ee+1),ee=I.indexOf(`
`);return I.length&&K.push(I),K}function N(I){return I===T.ArrayLiteral}function V(I){return l(I,[T.Expression,T.ForInitializer,T.Conditional])}function H(I,K){for(var ee=0;ee<I.length;ee++){var he=I[ee].trim();if(he.charAt(0)!==K)return!1}return!0}function D(I,K){for(var ee=0,he=I.length,de;ee<he;ee++)if(de=I[ee],de&&de.indexOf(K)!==0)return!1;return!0}function W(I,K){K=K||{},this._source_text=I||"",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 r(K)}W.prototype.create_flags=function(I,K){var ee=0;I&&(ee=I.indentation_level,!this._output.just_added_newline()&&I.line_indent_level>ee&&(ee=I.line_indent_level));var he={mode:K,parent:I,last_token:I?I.last_token:new n(s.START_BLOCK,""),last_word:I?I.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:ee,alignment:0,line_indent_level:I?I.line_indent_level:ee,start_line_index:this._output.get_line_number(),ternary_depth:0};return he},W.prototype._reset=function(I){var K=I.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new u(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(T.BlockStatement);var ee=new c(I,this._options);return this._tokens=ee.tokenize(),I},W.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I,K=this._reset(this._source_text),ee=this._options.eol;this._options.eol==="auto"&&(ee=`
`,K&&i.lineBreak.test(K||"")&&(ee=K.match(i.lineBreak)[0]));for(var he=this._tokens.next();he;)this.handle_token(he),this._last_last_text=this._flags.last_token.text,this._flags.last_token=he,he=this._tokens.next();return I=this._output.get_code(ee),I},W.prototype.handle_token=function(I,K){I.type===s.START_EXPR?this.handle_start_expr(I):I.type===s.END_EXPR?this.handle_end_expr(I):I.type===s.START_BLOCK?this.handle_start_block(I):I.type===s.END_BLOCK?this.handle_end_block(I):I.type===s.WORD?this.handle_word(I):I.type===s.RESERVED?this.handle_word(I):I.type===s.SEMICOLON?this.handle_semicolon(I):I.type===s.STRING?this.handle_string(I):I.type===s.EQUALS?this.handle_equals(I):I.type===s.OPERATOR?this.handle_operator(I):I.type===s.COMMA?this.handle_comma(I):I.type===s.BLOCK_COMMENT?this.handle_block_comment(I,K):I.type===s.COMMENT?this.handle_comment(I,K):I.type===s.DOT?this.handle_dot(I):I.type===s.EOF?this.handle_eof(I):I.type===s.UNKNOWN?this.handle_unknown(I,K):this.handle_unknown(I,K)},W.prototype.handle_whitespace_and_comments=function(I,K){var ee=I.newlines,he=this._options.keep_array_indentation&&N(this._flags.mode);if(I.comments_before)for(var de=I.comments_before.next();de;)this.handle_whitespace_and_comments(de,K),this.handle_token(de,K),de=I.comments_before.next();if(he)for(var Se=0;Se<ee;Se+=1)this.print_newline(Se>0,K);else if(this._options.max_preserve_newlines&&ee>this._options.max_preserve_newlines&&(ee=this._options.max_preserve_newlines),this._options.preserve_newlines&&ee>1){this.print_newline(!1,K);for(var Te=1;Te<ee;Te+=1)this.print_newline(!0,K)}};var F=["async","break","continue","return","throw","yield"];W.prototype.allow_wrap_or_preserved_newline=function(I,K){if(K=K===void 0?!1:K,this._output.just_added_newline())return;var ee=this._options.preserve_newlines&&I.newlines||K,he=l(this._flags.last_token.text,d)||l(I.text,d);if(he){var de=l(this._flags.last_token.text,d)&&l(this._options.operator_position,v)||l(I.text,d);ee=ee&&de}if(ee)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(P(this._flags.last_token,F))return;this._output.set_wrap_point()}},W.prototype.print_newline=function(I,K){if(!K&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var ee=this._tokens.peek();this._flags.mode===T.Statement&&!(this._flags.if_block&&_(ee,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(I)&&(this._flags.multiline_frame=!0)},W.prototype.print_token_line_indentation=function(I){this._output.just_added_newline()&&(this._options.keep_array_indentation&&I.newlines&&(I.text==="["||N(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(I.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))},W.prototype.print_token=function(I){if(this._output.raw){this._output.add_raw_token(I);return}if(this._options.comma_first&&I.previous&&I.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var K=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(K),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(I),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(I),this._output.non_breaking_space=!0,this._output.add_token(I.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},W.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},W.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))},W.prototype.set_mode=function(I){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,I),this._flags=this.create_flags(this._previous_flags,I),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},W.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===T.Statement&&U(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},W.prototype.start_of_object_property=function(){return this._flags.parent.mode===T.ObjectLiteral&&this._flags.mode===T.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},W.prototype.start_of_statement=function(I){var K=!1;return K=K||P(this._flags.last_token,["var","let","const"])&&I.type===s.WORD,K=K||_(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===T.ObjectLiteral&&this._flags.mode===T.Statement)&&P(this._flags.last_token,F)&&!I.newlines,K=K||_(this._flags.last_token,"else")&&!(_(I,"if")&&!I.comments_before),K=K||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===T.ForInitializer||this._previous_flags.mode===T.Conditional),K=K||this._flags.last_token.type===s.WORD&&this._flags.mode===T.BlockStatement&&!this._flags.in_case&&!(I.text==="--"||I.text==="++")&&this._last_last_text!=="function"&&I.type!==s.WORD&&I.type!==s.RESERVED,K=K||this._flags.mode===T.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),K?(this.set_mode(T.Statement),this.indent(),this.handle_whitespace_and_comments(I,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I,P(I,["do","for","if","while"])),!0):!1},W.prototype.handle_start_expr=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I);var K=T.Expression;if(I.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,h)&&(this._output.space_before_token=!0),this.print_token(I),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=T.ArrayLiteral,N(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),l(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,K=T.ForInitializer):l(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=T.Conditional):l(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&I.whitespace_before===""?this._output.space_before_token=!1:(l(this._flags.last_token.text,h)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var ee=this._tokens.peek(-3);if(this._options.space_after_named_function&&ee){var he=this._tokens.peek(-4);P(ee,["async","function"])||ee.text==="*"&&P(he,["async","function"])?this._output.space_before_token=!0:this._flags.mode===T.ObjectLiteral?(ee.text==="{"||ee.text===","||ee.text==="*"&&(he.text==="{"||he.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(I);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&l(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(I,I.newlines),this.print_token(I),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},W.prototype.handle_end_expr=function(I){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(I,I.text==="]"&&N(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(I),this.restore_mode(),U(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===T.Conditional&&(this._previous_flags.mode=T.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},W.prototype.handle_start_block=function(I){this.handle_whitespace_and_comments(I);var K=this._tokens.peek(),ee=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(T.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(T.BlockStatement):ee&&(l(ee.text,[":",","])&&l(K.type,[s.STRING,s.WORD,s.RESERVED])||l(K.text,["get","set","..."])&&l(ee.type,[s.WORD,s.RESERVED]))?l(this._last_last_text,["class","interface"])&&!l(ee.text,[":",","])?this.set_mode(T.BlockStatement):this.set_mode(T.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(T.BlockStatement):l(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||P(this._flags.last_token,["return","throw","import","default"])?this.set_mode(T.ObjectLiteral):this.set_mode(T.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var he=!K.comments_before&&K.text==="}",de=he&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var Se=0,Te=null;this._flags.inline_frame=!0;do if(Se+=1,Te=this._tokens.peek(Se-1),Te.newlines){this._flags.inline_frame=!1;break}while(Te.type!==s.EOF&&!(Te.type===s.END_BLOCK&&Te.opened===I))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(de||this._flags.last_token.type===s.EQUALS||P(this._flags.last_token,R)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(N(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(I),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(this._flags.last_token.type===s.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(I),this.indent(),!he&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},W.prototype.handle_end_block=function(I){for(this.handle_whitespace_and_comments(I);this._flags.mode===T.Statement;)this.restore_mode();var K=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(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(I)},W.prototype.handle_word=function(I){if(I.type===s.RESERVED){if(l(I.text,["set","get"])&&this._flags.mode!==T.ObjectLiteral)I.type=s.WORD;else if(I.text==="import"&&l(this._tokens.peek().text,["(","."]))I.type=s.WORD;else if(l(I.text,["as","from"])&&!this._flags.import_block)I.type=s.WORD;else if(this._flags.mode===T.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(I.type=s.WORD)}}if(this.start_of_statement(I)?P(this._flags.last_token,["var","let","const"])&&I.type===s.WORD&&(this._flags.declaration_statement=!0):I.newlines&&!V(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!P(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(I),this.print_newline()):this.handle_whitespace_and_comments(I),this._flags.do_block&&!this._flags.do_while)if(_(I,"while")){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&_(I,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===T.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&P(I,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(I),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I)),_(I,"function")){(l(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(l(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!I.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?P(this._flags.last_token,["get","set","new","export"])||P(this._flags.last_token,F)?this._output.space_before_token=!0:_(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(V(this._flags.mode)||N(this._flags.mode))||this.print_newline(),this.print_token(I),this._flags.last_word=I.text;return}var ee="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?ee="SPACE":P(I,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines?ee="NEWLINE":(ee="SPACE",this._output.space_before_token=!0):ee="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===T.BlockStatement?ee="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&V(this._flags.mode)?ee="SPACE":this._flags.last_token.type===s.STRING?ee="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&l(this._last_last_text,["{",","]))?ee="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?ee="SPACE":ee="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,ee="NEWLINE"),P(I,h)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ee="SPACE":ee="NEWLINE"),P(I,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===T.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var he=this._output.current_line;he.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ee==="NEWLINE"?P(this._flags.last_token,R)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&P(I,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!P(I,["var","let","const"]))&&this._flags.last_token.text!==":"&&(_(I,"if")&&_(I.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(I,h)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&N(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ee==="SPACE"&&(this._output.space_before_token=!0);I.previous&&(I.previous.type===s.WORD||I.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(I),this._flags.last_word=I.text,I.type===s.RESERVED&&(I.text==="do"?this._flags.do_block=!0:I.text==="if"?this._flags.if_block=!0:I.text==="import"?this._flags.import_block=!0:this._flags.import_block&&_(I,"from")&&(this._flags.import_block=!1))},W.prototype.handle_semicolon=function(I){this.start_of_statement(I)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(I);for(var K=this._tokens.peek();this._flags.mode===T.Statement&&!(this._flags.if_block&&_(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(I)},W.prototype.handle_string=function(I){I.text.startsWith("`")&&I.newlines===0&&I.whitespace_before===""&&(I.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(I)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(I),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I):I.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(I.previous.text==="]"||I.previous.text===")")&&I.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(I)},W.prototype.handle_equals=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0},W.prototype.handle_comma=function(I){this.handle_whitespace_and_comments(I,!0),this.print_token(I),this._output.space_before_token=!0,this._flags.declaration_statement?(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(I)):this._flags.mode===T.ObjectLiteral||this._flags.mode===T.Statement&&this._flags.parent.mode===T.ObjectLiteral?(this._flags.mode===T.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(I)},W.prototype.handle_operator=function(I){var K=I.text==="*"&&(P(this._flags.last_token,["function","yield"])||l(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),ee=l(I.text,["-","+"])&&(l(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||l(this._flags.last_token.text,h)||this._flags.last_token.text===",");if(!this.start_of_statement(I)){var he=!K;this.handle_whitespace_and_comments(I,he)}if(I.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(I);return}if(I.text==="::"){this.print_token(I);return}if(this._flags.last_token.type===s.OPERATOR&&l(this._options.operator_position,v)&&this.allow_wrap_or_preserved_newline(I),I.text===":"&&this._flags.in_case){this.print_token(I),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var de=!0,Se=!0,Te=!1;if(I.text===":"?this._flags.ternary_depth===0?de=!1:(this._flags.ternary_depth-=1,Te=!0):I.text==="?"&&(this._flags.ternary_depth+=1),!ee&&!K&&this._options.preserve_newlines&&l(I.text,d)){var ce=I.text===":",be=ce&&Te,ye=ce&&!Te;switch(this._options.operator_position){case S.before_newline:this._output.space_before_token=!ye,this.print_token(I),(!ce||be)&&this.allow_wrap_or_preserved_newline(I),this._output.space_before_token=!0;return;case S.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(I):this._output.space_before_token=!1,this.print_token(I),this._output.space_before_token=!0;return;case S.preserve_newline:ye||this.allow_wrap_or_preserved_newline(I),de=!(this._output.just_added_newline()||ye),this._output.space_before_token=de,this.print_token(I),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(I),de=!1;var ue=this._tokens.peek();Se=ue&&l(ue.type,[s.WORD,s.RESERVED])}else if(I.text==="...")this.allow_wrap_or_preserved_newline(I),de=this._flags.last_token.type===s.START_BLOCK,Se=!1;else if(l(I.text,["--","++","!","~"])||ee){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(I),de=!1,Se=!1,I.newlines&&(I.text==="--"||I.text==="++"||I.text==="~")){var se=P(this._flags.last_token,R)&&I.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===s.RESERVED?de=!0:this._flags.last_token.type===s.END_EXPR?de=!(this._flags.last_token.text==="]"&&(I.text==="--"||I.text==="++")):this._flags.last_token.type===s.OPERATOR&&(de=l(I.text,["--","-","++","+"])&&l(this._flags.last_token.text,["--","-","++","+"]),l(I.text,["+","-"])&&l(this._flags.last_token.text,["--","++"])&&(Se=!0)),(this._flags.mode===T.BlockStatement&&!this._flags.inline_frame||this._flags.mode===T.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||de,this.print_token(I),this._output.space_before_token=Se},W.prototype.handle_block_comment=function(I,K){if(this._output.raw){this._output.add_raw_token(I),I.directives&&I.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(I.directives){this.print_newline(!1,K),this.print_token(I),I.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i.newline.test(I.text)&&!I.newlines){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0;return}else this.print_block_commment(I,K)},W.prototype.print_block_commment=function(I,K){var ee=L(I.text),he,de=!1,Se=!1,Te=I.whitespace_before,ce=Te.length;if(this.print_newline(!1,K),this.print_token_line_indentation(I),this._output.add_token(ee[0]),this.print_newline(!1,K),ee.length>1){for(ee=ee.slice(1),de=H(ee,"*"),Se=D(ee,Te),de&&(this._flags.alignment=1),he=0;he<ee.length;he++)de?(this.print_token_line_indentation(I),this._output.add_token(w(ee[he]))):Se&&ee[he]?(this.print_token_line_indentation(I),this._output.add_token(ee[he].substring(ce))):(this._output.current_line.set_indent(-1),this._output.add_token(ee[he])),this.print_newline(!1,K);this._flags.alignment=0}},W.prototype.handle_comment=function(I,K){I.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(I),this.print_newline(!1,K)},W.prototype.handle_dot=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I,!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(I,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(I)},W.prototype.handle_unknown=function(I,K){this.print_token(I),I.text[I.text.length-1]===`
`&&this.print_newline(!1,K)},W.prototype.handle_eof=function(I){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I)},e.exports.Beautifier=W},function(e){function f(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=[]}f.prototype.clone_empty=function(){var n=new f(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},f.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},f.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},f.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))},f.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)},f.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},f.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},f.prototype.is_empty=function(){return this.__items.length===0},f.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},f.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},f.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},f.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},f.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},f.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},f.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 a(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}a.prototype.get_indent_size=function(n,i){var r=this.__base_string_length;return i=i||0,n<0&&(r=0),r+=n*this.__indent_size,r+=i,r},a.prototype.get_indent_string=function(n,i){var r=this.__base_string;return i=i||0,n<0&&(n=0,r=""),i+=n*this.__indent_size,this.__ensure_cache(i),r+=this.__cache[i],r},a.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var n=this.__cache.length,i=0,r="";this.__indent_size&&n>=this.__indent_size&&(i=Math.floor(n/this.__indent_size),n-=i*this.__indent_size,r=new Array(i+1).join(this.__indent_string)),n&&(r+=new Array(n+1).join(" ")),this.__cache.push(r)};function u(n,i){this.__indent_cache=new a(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 f(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}u.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},u.prototype.get_line_number=function(){return this.__lines.length},u.prototype.get_indent_string=function(n,i){return this.__indent_cache.get_indent_string(n,i)},u.prototype.get_indent_size=function(n,i){return this.__indent_cache.get_indent_size(n,i)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.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 r=this.__lines.join(`
`);return n!==`
`&&(r=r.replace(/[\n]/g,n)),r},u.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},u.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)},u.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},u.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()},u.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(" "))},u.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()},u.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},u.prototype.just_added_newline=function(){return this.current_line.is_empty()},u.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},u.prototype.ensure_empty_line_above=function(n,i){for(var r=this.__lines.length-2;r>=0;){var c=this.__lines[r];if(c.is_empty())break;if(c.item(0).indexOf(n)!==0&&c.item(-1)!==i){this.__lines.splice(r+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=u},function(e){function f(a,u,n,i){this.type=a,this.text=u,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}e.exports.Token=f},function(e,f){var a="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",u="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\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",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",r="(?:\\\\u[0-9a-fA-F]{4}|["+a+n+"])",c="(?:\\\\u[0-9a-fA-F]{4}|["+u+n+i+"])*";f.identifier=new RegExp(r+c,"g"),f.identifierStart=new RegExp(r),f.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+u+n+i+"])+");var h=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;f.newline=/[\n\r\u2028\u2029]/,f.lineBreak=new RegExp(`\r
|`+f.newline.source),f.allLineBreaks=new RegExp(f.lineBreak.source,"g")},function(e,f,a){var u=a(6).Options,n=["before-newline","after-newline","preserve-newline"];function i(r){u.call(this,r,"js");var c=this.raw_options.brace_style||null;c==="expand-strict"?this.raw_options.brace_style="expand":c==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var h=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var d=0;d<h.length;d++)h[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=h[d];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",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}i.prototype=new u,e.exports.Options=i},function(e){function f(n,i){this.raw_options=a(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"])}f.prototype._get_array=function(n,i){var r=this.raw_options[n],c=i||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(c=r.concat()):typeof r=="string"&&(c=r.split(/[^a-zA-Z0-9_\/\-]+/)),c},f.prototype._get_boolean=function(n,i){var r=this.raw_options[n],c=r===void 0?!!i:!!r;return c},f.prototype._get_characters=function(n,i){var r=this.raw_options[n],c=i||"";return typeof r=="string"&&(c=r.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),c},f.prototype._get_number=function(n,i){var r=this.raw_options[n];i=parseInt(i,10),isNaN(i)&&(i=0);var c=parseInt(r,10);return isNaN(c)&&(c=i),c},f.prototype._get_selection=function(n,i,r){var c=this._get_selection_list(n,i,r);if(c.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 c[0]},f.prototype._get_selection_list=function(n,i,r){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(r=r||[i[0]],!this._is_valid_selection(r,i))throw new Error("Invalid Default Value!");var c=this._get_array(n,r);if(!this._is_valid_selection(c,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 c},f.prototype._is_valid_selection=function(n,i){return n.length&&i.length&&!n.some(function(r){return i.indexOf(r)===-1})};function a(n,i){var r={};n=u(n);var c;for(c in n)c!==i&&(r[c]=n[c]);if(i&&n[i])for(c in n[i])r[c]=n[i][c];return r}function u(n){var i={},r;for(r in n){var c=r.replace(/-/g,"_");i[c]=n[r]}return i}e.exports.Options=f,e.exports.normalizeOpts=u,e.exports.mergeOpts=a},function(e,f,a){var u=a(8).InputScanner,n=a(9).Tokenizer,i=a(9).TOKEN,r=a(13).Directives,c=a(4),h=a(12).Pattern,d=a(14).TemplatablePattern;function s(H,D){return D.indexOf(H)!==-1}var l={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:i.START,RAW:i.RAW,EOF:i.EOF},w=new r(/\/\*/,/\*\//),E=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,_=/[0-9]/,P=/[^\d\.]/,R=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),x=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";x=x.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),x="\\?\\.(?!\\d) "+x,x=x.replace(/ /g,"|");var S=new RegExp(x),v="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),T=v.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),U=new RegExp("^(?:"+T.join("|")+")$"),L,N=function(H,D){n.call(this,H,D),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var W=new h(this._input),F=new d(this._input).read_options(this._options);this.__patterns={template:F,identifier:F.starting_with(c.identifier).matching(c.identifierMatch),number:W.matching(E),punct:W.matching(S),comment:W.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:W.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:W.matching(/<!--/),html_comment_end:W.matching(/-->/),include:W.starting_with(/#include/).until_after(c.lineBreak),shebang:W.starting_with(/#!/).until_after(c.lineBreak),xml:W.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:F.until(/['\\\n\r\u2028\u2029]/),double_quote:F.until(/["\\\n\r\u2028\u2029]/),template_text:F.until(/[`\\$]/),template_expression:F.until(/[`}\\]/)}};N.prototype=new n,N.prototype._is_comment=function(H){return H.type===l.COMMENT||H.type===l.BLOCK_COMMENT||H.type===l.UNKNOWN},N.prototype._is_opening=function(H){return H.type===l.START_BLOCK||H.type===l.START_EXPR},N.prototype._is_closing=function(H,D){return(H.type===l.END_BLOCK||H.type===l.END_EXPR)&&D&&(H.text==="]"&&D.text==="["||H.text===")"&&D.text==="("||H.text==="}"&&D.text==="{")},N.prototype._reset=function(){L=!1},N.prototype._get_next_token=function(H,D){var W=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(l.EOF,""):(W=W||this._read_non_javascript(F),W=W||this._read_string(F),W=W||this._read_word(H),W=W||this._read_singles(F),W=W||this._read_comment(F),W=W||this._read_regexp(F,H),W=W||this._read_xml(F,H),W=W||this._read_punctuation(),W=W||this._create_token(l.UNKNOWN,this._input.next()),W)},N.prototype._read_word=function(H){var D;if(D=this.__patterns.identifier.read(),D!=="")return D=D.replace(c.allLineBreaks,`
`),!(H.type===l.DOT||H.type===l.RESERVED&&(H.text==="set"||H.text==="get"))&&U.test(D)?(D==="in"||D==="of")&&(H.type===l.WORD||H.type===l.STRING)?this._create_token(l.OPERATOR,D):this._create_token(l.RESERVED,D):this._create_token(l.WORD,D);if(D=this.__patterns.number.read(),D!=="")return this._create_token(l.WORD,D)},N.prototype._read_singles=function(H){var D=null;return H==="("||H==="["?D=this._create_token(l.START_EXPR,H):H===")"||H==="]"?D=this._create_token(l.END_EXPR,H):H==="{"?D=this._create_token(l.START_BLOCK,H):H==="}"?D=this._create_token(l.END_BLOCK,H):H===";"?D=this._create_token(l.SEMICOLON,H):H==="."&&P.test(this._input.peek(1))?D=this._create_token(l.DOT,H):H===","&&(D=this._create_token(l.COMMA,H)),D&&this._input.next(),D},N.prototype._read_punctuation=function(){var H=this.__patterns.punct.read();if(H!=="")return H==="="?this._create_token(l.EQUALS,H):H==="?."?this._create_token(l.DOT,H):this._create_token(l.OPERATOR,H)},N.prototype._read_non_javascript=function(H){var D="";if(H==="#"){if(this._is_first_token()&&(D=this.__patterns.shebang.read(),D))return this._create_token(l.UNKNOWN,D.trim()+`
`);if(D=this.__patterns.include.read(),D)return this._create_token(l.UNKNOWN,D.trim()+`
`);H=this._input.next();var W="#";if(this._input.hasNext()&&this._input.testChar(_)){do H=this._input.next(),W+=H;while(this._input.hasNext()&&H!=="#"&&H!=="=");return H==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(W+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(W+="{}",this._input.next(),this._input.next())),this._create_token(l.WORD,W)}this._input.back()}else if(H==="<"&&this._is_first_token()){if(D=this.__patterns.html_comment_start.read(),D){for(;this._input.hasNext()&&!this._input.testChar(c.newline);)D+=this._input.next();return L=!0,this._create_token(l.COMMENT,D)}}else if(L&&H==="-"&&(D=this.__patterns.html_comment_end.read(),D))return L=!1,this._create_token(l.COMMENT,D);return null},N.prototype._read_comment=function(H){var D=null;if(H==="/"){var W="";if(this._input.peek(1)==="*"){W=this.__patterns.block_comment.read();var F=w.get_directives(W);F&&F.ignore==="start"&&(W+=w.readIgnored(this._input)),W=W.replace(c.allLineBreaks,`
`),D=this._create_token(l.BLOCK_COMMENT,W),D.directives=F}else this._input.peek(1)==="/"&&(W=this.__patterns.comment.read(),D=this._create_token(l.COMMENT,W))}return D},N.prototype._read_string=function(H){if(H==="`"||H==="'"||H==='"'){var D=this._input.next();return this.has_char_escapes=!1,H==="`"?D+=this._read_string_recursive("`",!0,"${"):D+=this._read_string_recursive(H),this.has_char_escapes&&this._options.unescape_strings&&(D=V(D)),this._input.peek()===H&&(D+=this._input.next()),D=D.replace(c.allLineBreaks,`
`),this._create_token(l.STRING,D)}return null},N.prototype._allow_regexp_or_xml=function(H){return H.type===l.RESERVED&&s(H.text,["return","case","throw","else","do","typeof","yield"])||H.type===l.END_EXPR&&H.text===")"&&H.opened.previous.type===l.RESERVED&&s(H.opened.previous.text,["if","while","for"])||s(H.type,[l.COMMENT,l.START_EXPR,l.START_BLOCK,l.START,l.END_BLOCK,l.OPERATOR,l.EQUALS,l.EOF,l.SEMICOLON,l.COMMA])},N.prototype._read_regexp=function(H,D){if(H==="/"&&this._allow_regexp_or_xml(D)){for(var W=this._input.next(),F=!1,I=!1;this._input.hasNext()&&(F||I||this._input.peek()!==H)&&!this._input.testChar(c.newline);)W+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?I=!0:this._input.peek()==="]"&&(I=!1)),this._input.next();return this._input.peek()===H&&(W+=this._input.next(),W+=this._input.read(c.identifier)),this._create_token(l.STRING,W)}return null},N.prototype._read_xml=function(H,D){if(this._options.e4x&&H==="<"&&this._allow_regexp_or_xml(D)){var W="",F=this.__patterns.xml.read_match();if(F){for(var I=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=I.indexOf("{")===0,ee=0;F;){var he=!!F[1],de=F[2],Se=!!F[F.length-1]||de.slice(0,8)==="![CDATA[";if(!Se&&(de===I||K&&de.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(he?--ee:++ee),W+=F[0],ee<=0)break;F=this.__patterns.xml.read_match()}return F||(W+=this._input.match(/[\s\S]*/g)[0]),W=W.replace(c.allLineBreaks,`
`),this._create_token(l.STRING,W)}}return null};function V(H){for(var D="",W=0,F=new u(H),I=null;F.hasNext();)if(I=F.match(/([\s]|[^\\]|\\\\)+/g),I&&(D+=I[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")I=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")I=F.match(/u([0-9A-Fa-f]{4})/g);else{D+="\\",F.hasNext()&&(D+=F.next());continue}if(!I)return H;if(W=parseInt(I[1],16),W>126&&W<=255&&I[0].indexOf("x")===0)return H;if(W>=0&&W<32){D+="\\"+I[0];continue}else W===34||W===39||W===92?D+="\\"+String.fromCharCode(W):D+=String.fromCharCode(W)}return D}N.prototype._read_string_recursive=function(H,D,W){var F,I;H==="'"?I=this.__patterns.single_quote:H==='"'?I=this.__patterns.double_quote:H==="`"?I=this.__patterns.template_text:H==="}"&&(I=this.__patterns.template_expression);for(var K=I.read(),ee="";this._input.hasNext();){if(ee=this._input.next(),ee===H||!D&&c.newline.test(ee)){this._input.back();break}else ee==="\\"&&this._input.hasNext()?(F=this._input.peek(),F==="x"||F==="u"?this.has_char_escapes=!0:F==="\r"&&this._input.peek(1)===`
`&&this._input.next(),ee+=this._input.next()):W&&(W==="${"&&ee==="$"&&this._input.peek()==="{"&&(ee+=this._input.next()),W===ee&&(H==="`"?ee+=this._read_string_recursive("}",D,"`"):ee+=this._read_string_recursive("`",D,"${"),this._input.hasNext()&&(ee+=this._input.next())));ee+=I.read(),K+=ee}return K},e.exports.Tokenizer=N,e.exports.TOKEN=l,e.exports.positionable_operators=R.slice(),e.exports.line_starters=v.slice()},function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function a(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__input.charAt(this.__position),this.__position+=1),u},a.prototype.peek=function(u){var n=null;return u=u||0,u+=this.__position,u>=0&&u<this.__input_length&&(n=this.__input.charAt(u)),n},a.prototype.__match=function(u,n){u.lastIndex=n;var i=u.exec(this.__input);return i&&!(f&&u.sticky)&&(i.index!==n&&(i=null)),i},a.prototype.test=function(u,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(u,n):!1},a.prototype.testChar=function(u,n){var i=this.peek(n);return u.lastIndex=0,i!==null&&u.test(i)},a.prototype.match=function(u){var n=this.__match(u,this.__position);return n?this.__position+=n[0].length:n=null,n},a.prototype.read=function(u,n,i){var r="",c;return u&&(c=this.match(u),c&&(r+=c[0])),n&&(c||!u)&&(r+=this.readUntil(n,i)),r},a.prototype.readUntil=function(u,n){var i="",r=this.__position;u.lastIndex=this.__position;var c=u.exec(this.__input);return c?(r=c.index,n&&(r+=c[0].length)):r=this.__input_length,i=this.__input.substring(this.__position,r),this.__position=r,i},a.prototype.readUntilAfter=function(u){return this.readUntil(u,!0)},a.prototype.get_regexp=function(u,n){var i=null,r="g";return n&&f&&(r="y"),typeof u=="string"&&u!==""?i=new RegExp(u,r):u&&(i=new RegExp(u.source,r)),i},a.prototype.get_literal_regexp=function(u){return RegExp(u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(u){var n=this.__position,i=this.readUntilAfter(u);return this.__position=n,i},a.prototype.lookBack=function(u){var n=this.__position-1;return n>=u.length&&this.__input.substring(n-u.length,n).toLowerCase()===u},e.exports.InputScanner=a},function(e,f,a){var u=a(8).InputScanner,n=a(3).Token,i=a(10).TokenStream,r=a(11).WhitespacePattern,c={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},h=function(d,s){this._input=new u(d),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};h.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var d,s=new n(c.START,""),l=null,w=[],E=new i;s.type!==c.EOF;){for(d=this._get_next_token(s,l);this._is_comment(d);)E.add(d),d=this._get_next_token(s,l);E.isEmpty()||(d.comments_before=E,E=new i),d.parent=l,this._is_opening(d)?(w.push(l),l=d):l&&this._is_closing(d,l)&&(d.opened=l,l.closed=d,l=w.pop(),d.parent=l),d.previous=s,s.next=d,this.__tokens.add(d),s=d}return this.__tokens},h.prototype._is_first_token=function(){return this.__tokens.isEmpty()},h.prototype._reset=function(){},h.prototype._get_next_token=function(d,s){this._readWhitespace();var l=this._input.read(/.+/g);return l?this._create_token(c.RAW,l):this._create_token(c.EOF,"")},h.prototype._is_comment=function(d){return!1},h.prototype._is_opening=function(d){return!1},h.prototype._is_closing=function(d,s){return!1},h.prototype._create_token=function(d,s){var l=new n(d,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return l},h.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=h,e.exports.TOKEN=c},function(e){function f(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}f.prototype.restart=function(){this.__position=0},f.prototype.isEmpty=function(){return this.__tokens_length===0},f.prototype.hasNext=function(){return this.__position<this.__tokens_length},f.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},f.prototype.peek=function(a){var u=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(u=this.__tokens[a]),u},f.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},e.exports.TokenStream=f},function(e,f,a){var u=a(12).Pattern;function n(i,r){u.call(this,i,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new u,n.prototype.__set_whitespace_patterns=function(i,r){i+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},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 r=this.__split(this._newline_regexp,i);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return i},n.prototype.matching=function(i,r){var c=this._create();return c.__set_whitespace_patterns(i,r),c._update(),c},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(i,r){i.lastIndex=0;for(var c=0,h=[],d=i.exec(r);d;)h.push(r.substring(c,d.index)),c=d.index+d[0].length,d=i.exec(r);return c<r.length?h.push(r.substring(c,r.length)):h.push(""),h},e.exports.WhitespacePattern=n},function(e){function f(a,u){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,u&&(this._starting_pattern=this._input.get_regexp(u._starting_pattern,!0),this._match_pattern=this._input.get_regexp(u._match_pattern,!0),this._until_pattern=this._input.get_regexp(u._until_pattern),this._until_after=u._until_after)}f.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},f.prototype.read_match=function(){return this._input.match(this._match_pattern)},f.prototype.until_after=function(a){var u=this._create();return u._until_after=!0,u._until_pattern=this._input.get_regexp(a),u._update(),u},f.prototype.until=function(a){var u=this._create();return u._until_after=!1,u._until_pattern=this._input.get_regexp(a),u._update(),u},f.prototype.starting_with=function(a){var u=this._create();return u._starting_pattern=this._input.get_regexp(a,!0),u._update(),u},f.prototype.matching=function(a){var u=this._create();return u._match_pattern=this._input.get_regexp(a,!0),u._update(),u},f.prototype._create=function(){return new f(this._input,this)},f.prototype._update=function(){},e.exports.Pattern=f},function(e){function f(a,u){a=typeof a=="string"?a:a.source,u=typeof u=="string"?u:u.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+u,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+u,"g")}f.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var u={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(a);n;)u[n[1]]=n[2],n=this.__directive_pattern.exec(a);return u},f.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},function(e,f,a){var u=a(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(r,c){u.call(this,r,c),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),c&&(this.__template_pattern=this._input.get_regexp(c.__template_pattern),this._excluded=Object.assign(this._excluded,c._excluded),this._disabled=Object.assign(this._disabled,c._disabled));var h=new u(r);this.__patterns={handlebars_comment:h.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:h.starting_with(/{{{/).until_after(/}}}/),handlebars:h.starting_with(/{{/).until_after(/}}/),php:h.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:h.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:h.starting_with(/{%/).until_after(/%}/),django_value:h.starting_with(/{{/).until_after(/}}/),django_comment:h.starting_with(/{#/).until_after(/#}/),smarty:h.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:h.starting_with(/{\*/).until_after(/\*}/),smarty_literal:h.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new u,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(r){var c=this._create();return c._disabled[r]=!0,c._update(),c},i.prototype.read_options=function(r){var c=this._create();for(var h in n)c._disabled[h]=r.templating.indexOf(h)===-1;return c._update(),c},i.prototype.exclude=function(r){var c=this._create();return c._excluded[r]=!0,c._update(),c},i.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var c=this._read_template();c;)this._match_pattern?c+=this._input.read(this._match_pattern):c+=this._input.readUntil(this.__template_pattern),r+=c,c=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},i.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},i.prototype._read_template=function(){var r="",c=this._input.peek();if(c==="<"){var h=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&h==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&h==="%"&&(r=r||this.__patterns.erb.read())}else c==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},e.exports.TemplatablePattern=i}],C={};function O(e){var f=C[e];if(f!==void 0)return f.exports;var a=C[e]={exports:{}};return y[e](a,a.exports,O),a.exports}var m=O(0);A=m})();var b=A;!(M=[],g=function(){return{js_beautify:b}}.apply(z,M),g!==void 0&&(k.exports=g))})()},"6eGT":function(k,z,o){"use strict";function M(g){return null}z.a=M},"6nfa":function(k,z,o){k.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"}},"746U":function(k,z,o){"use strict";o.d(z,"f",function(){return M}),o.d(z,"l",function(){return g}),o.d(z,"k",function(){return A}),o.d(z,"j",function(){return b}),o.d(z,"g",function(){return y}),o.d(z,"m",function(){return C}),o.d(z,"h",function(){return O}),o.d(z,"n",function(){return m}),o.d(z,"c",function(){return e}),o.d(z,"a",function(){return f}),o.d(z,"i",function(){return a}),o.d(z,"o",function(){return u}),o.d(z,"e",function(){return r}),o.d(z,"d",function(){return c}),o.d(z,"p",function(){return h}),o.d(z,"b",function(){return d});function M(s){return Array.isArray(s)}function g(s){return typeof s=="string"}function A(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function b(s){return typeof s=="number"&&!isNaN(s)}function y(s){return s===!0||s===!1}function C(s){return typeof s=="undefined"}function O(s){return!m(s)}function m(s){return C(s)||s===null}function e(s,l){if(!s)throw new Error(l?`Unexpected type, expected '${l}'`:"Unexpected type")}function f(s){if(m(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function a(s){return typeof s=="function"}function u(s,l){const w=Math.min(s.length,l.length);for(let E=0;E<w;E++)n(s[E],l[E])}function n(s,l){if(g(l)){if(typeof s!==l)throw new Error(`argument does not match constraint: typeof ${l}`)}else if(a(l)){try{if(s instanceof l)return}catch(w){}if(!m(s)&&s.constructor===l)return;if(l.length===1&&l.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function i(s){let l=[],w=Object.getPrototypeOf(s);for(;Object.prototype!==w;)l=l.concat(Object.getOwnPropertyNames(w)),w=Object.getPrototypeOf(w);return l}function r(s){const l=[];for(const w of i(s))typeof s[w]=="function"&&l.push(w);return l}function c(s,l){const w=_=>function(){const P=Array.prototype.slice.call(arguments,0);return l(_,P)};let E={};for(const _ of s)E[_]=w(_);return E}function h(s){return s===null?void 0:s}function d(s,l="Unreachable"){throw new Error(l)}},"7Cbv":function(k,z,o){"use strict";var M=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),g=new Uint8Array(16);function A(){if(!M)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return M(g)}var b=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function y(n){return typeof n=="string"&&b.test(n)}for(var C=y,O=[],m=0;m<256;++m)O.push((m+256).toString(16).substr(1));function e(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(O[n[i+0]]+O[n[i+1]]+O[n[i+2]]+O[n[i+3]]+"-"+O[n[i+4]]+O[n[i+5]]+"-"+O[n[i+6]]+O[n[i+7]]+"-"+O[n[i+8]]+O[n[i+9]]+"-"+O[n[i+10]]+O[n[i+11]]+O[n[i+12]]+O[n[i+13]]+O[n[i+14]]+O[n[i+15]]).toLowerCase();if(!C(r))throw TypeError("Stringified UUID is invalid");return r}var f=e;function a(n,i,r){n=n||{};var c=n.random||(n.rng||A)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,i){r=r||0;for(var h=0;h<16;++h)i[r+h]=c[h];return i}return f(c)}var u=z.a=a},"7ZXX":function(k,z,o){k.exports=o.p+"static/err.6e7c5817.png"},"7ahc":function(k,z,o){"use strict";o.d(z,"a",function(){return w});var M=o("k1fw"),g=o("0Owb"),A=o("+L6B"),b=o("2/Rp"),y=o("y8nQ"),C=o("Vl3Y"),O=o("tJVT"),m=o("OaEy"),e=o("2fM7"),f=o("q1tI"),a=o.n(f),u=o("VrN/"),n=o.n(u),i=o("p77/"),r=o.n(i),c=o("c5Ni"),h=o.n(c),d=e.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},l={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"]};z.b=function(E){var _=E.callback,P=E.onCancel,R=Object(f.useState)("python"),x=Object(O.a)(R,2),S=x[0],v=x[1];function T(L){v(l[L][1])}function U(L){_(L)}return a.a.createElement(C.a,Object(g.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:U}),a.a.createElement(C.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},a.a.createElement(e.a,{onChange:T},Object.keys(l).map(function(L){return a.a.createElement(d,{key:L,value:L},l[L][0])}))),a.a.createElement(C.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},a.a.createElement(w,{mode:S})),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(b.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(b.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function w(E){var _=E.value,P=E.onChange,R=E.mode,x=E.options,S=x===void 0?{}:x,v=Object(f.useRef)(),T=Object(f.useState)(),U=Object(O.a)(T,2),L=U[0],N=U[1];return Object(f.useEffect)(function(){if(L){function V(H){var D=H.getValue();P&&P(D)}return L.on("change",V),function(){L.off("change",V)}}},[L,P]),Object(f.useEffect)(function(){L&&L.setOption("mode",R)},[L,R]),Object(f.useEffect)(function(){L&&((_!==L.getValue()||_==="")&&setTimeout(function(){L.setValue(_||" ")},300))},[L,_]),Object(f.useEffect)(function(){if(v.current&&!L){var V=n.a.fromTextArea(v.current,Object(M.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},S));N(V)}},[v.current,L]),a.a.createElement("div",{className:"my-codemirror-container"},a.a.createElement("textarea",{ref:v}))}},"7ixt":function(k,z,o){"use strict";o.d(z,"a",function(){return A});var M={adjustX:1,adjustY:1},g=[0,0],A={left:{points:["cr","cl"],overflow:M,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:M,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:M,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:M,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:M,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:M,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:M,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:M,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:M,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:M,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:M,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:M,offset:[-4,0],targetOffset:g}},b=A},"7v3h":function(k,z,o){k.exports=o.p+"static/empty2.dd73f390.png"},"8/bI":function(k,z,o){k.exports=o.p+"static/empty.8918e228.png"},"815F":function(k,z,o){"use strict";o.d(z,"e",function(){return O}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return u}),o.d(z,"f",function(){return n}),o.d(z,"b",function(){return i});var M=o("KQm4"),g=o("VTBJ"),A=o("Ff2n"),b=o("Zm9Q"),y=o("Kwbf"),C=o("OZM5");function O(r,c){return r!=null?r:c}function m(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function h(d){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(l){var w=l.key,E=l.children;Object(y.a)(w!=null,"Tree node must have a certain key: [".concat(s).concat(w,"]"));var _=String(w);Object(y.a)(!c.has(_)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(_)),c.set(_,!0),h(E,"".concat(s).concat(_," > "))})}h(r)}function e(r){function c(h){var d=Object(b.a)(h);return d.map(function(s){if(!Object(C.i)(s))return Object(y.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var l=s.key,w=s.props,E=w.children,_=Object(A.a)(w,["children"]),P=Object(g.a)({key:l},_),R=c(E);return R.length&&(P.children=R),P}).filter(function(s){return s})}return c(r)}function f(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=new Set(c===!0?[]:c),d=[];function s(l){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(E,_){var P=Object(C.h)(w?w.pos:"0",_),R=O(E.key,P),x=Object(g.a)(Object(g.a)({},E),{},{parent:w,pos:P,children:null,data:E,isStart:[].concat(Object(M.a)(w?w.isStart:[]),[_===0]),isEnd:[].concat(Object(M.a)(w?w.isEnd:[]),[_===l.length-1])});return d.push(x),c===!0||h.has(R)?x.children=s(E.children||[],x):x.children=[],x})}return s(r),d}function a(r,c,h){var d;h?typeof h=="string"?d=function(w){return w[h]}:typeof h=="function"&&(d=function(w){return h(w)}):d=function(w,E){return O(w.key,E)};function s(l,w,E){var _=l?l.children:r,P=l?Object(C.h)(E.pos,w):"0";if(l){var R=d(l,P),x={node:l,index:w,pos:P,key:R,parentPos:E.node?E.pos:null,level:E.level+1};c(x)}_&&_.forEach(function(S,v){s(S,v,{node:l,pos:P,level:E?E.level+1:-1})})}s(null)}function u(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=c.initWrapper,d=c.processEntity,s=c.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,w={},E={},_={posEntities:w,keyEntities:E};return h&&(_=h(_)||_),a(r,function(P){var R=P.node,x=P.index,S=P.pos,v=P.key,T=P.parentPos,U=P.level,L={node:R,index:x,key:v,pos:S,level:U},N=O(v,S);w[S]=L,E[N]=L,L.parent=w[T],L.parent&&(L.parent.children=L.parent.children||[],L.parent.children.push(L)),d&&d(L,_)},l),s&&s(_),_}function n(r,c){var h=c.expandedKeys,d=c.selectedKeys,s=c.loadedKeys,l=c.loadingKeys,w=c.checkedKeys,E=c.halfCheckedKeys,_=c.dragOverNodeKey,P=c.dropPosition,R=c.keyEntities,x=R[r],S={eventKey:r,expanded:h.indexOf(r)!==-1,selected:d.indexOf(r)!==-1,loaded:s.indexOf(r)!==-1,loading:l.indexOf(r)!==-1,checked:w.indexOf(r)!==-1,halfChecked:E.indexOf(r)!==-1,pos:String(x?x.pos:""),dragOver:_===r&&P===0,dragOverGapTop:_===r&&P===-1,dragOverGapBottom:_===r&&P===1};return S}function i(r){var c=r.data,h=r.expanded,d=r.selected,s=r.checked,l=r.loaded,w=r.loading,E=r.halfChecked,_=r.dragOver,P=r.dragOverGapTop,R=r.dragOverGapBottom,x=r.pos,S=r.active,v=Object(g.a)(Object(g.a)({},c),{},{expanded:h,selected:d,checked:s,loaded:l,loading:w,halfChecked:E,dragOver:_,dragOverGapTop:P,dragOverGapBottom:R,pos:x,active:S});return"props"in v||Object.defineProperty(v,"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`."),r}}),v}},"8EBN":function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";M.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var g=0;g<M.modeInfo.length;g++){var A=M.modeInfo[g];A.mimes&&(A.mime=A.mimes[0])}M.findModeByMIME=function(b){b=b.toLowerCase();for(var y=0;y<M.modeInfo.length;y++){var C=M.modeInfo[y];if(C.mime==b)return C;if(C.mimes){for(var O=0;O<C.mimes.length;O++)if(C.mimes[O]==b)return C}}if(/\+xml$/.test(b))return M.findModeByMIME("application/xml");if(/\+json$/.test(b))return M.findModeByMIME("application/json")},M.findModeByExtension=function(b){b=b.toLowerCase();for(var y=0;y<M.modeInfo.length;y++){var C=M.modeInfo[y];if(C.ext){for(var O=0;O<C.ext.length;O++)if(C.ext[O]==b)return C}}},M.findModeByFileName=function(b){for(var y=0;y<M.modeInfo.length;y++){var C=M.modeInfo[y];if(C.file&&C.file.test(b))return C}var O=b.lastIndexOf("."),m=O>-1&&b.substring(O+1,b.length);if(m)return M.findModeByExtension(m)},M.findModeByName=function(b){b=b.toLowerCase();for(var y=0;y<M.modeInfo.length;y++){var C=M.modeInfo[y];if(C.name.toLowerCase()==b)return C;if(C.alias){for(var O=0;O<C.alias.length;O++)if(C.alias[O].toLowerCase()==b)return C}}}})},"8HAY":function(k,z,o){"use strict";o.d(z,"a",function(){return y}),o.d(z,"b",function(){return C}),o.d(z,"d",function(){return O}),o.d(z,"e",function(){return m}),o.d(z,"c",function(){return e});var M=o("MI8n"),g=o("pmY6"),A=o("3/fG"),b=function(f,a,u,n){function i(r){return r instanceof u?r:new u(function(c){c(r)})}return new(u||(u=Promise))(function(r,c){function h(l){try{s(n.next(l))}catch(w){c(w)}}function d(l){try{s(n.throw(l))}catch(w){c(w)}}function s(l){l.done?r(l.value):i(l.value).then(h,d)}s((n=n.apply(f,a||[])).next())})};class y extends g.a{constructor(f,a="",u="",n=!0,i){super();this._onDidChange=this._register(new M.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=f,this._label=a,this._cssClass=u,this._enabled=n,this._actionCallback=i}get id(){return this._id}get label(){return this._label}set label(f){this._setLabel(f)}_setLabel(f){this._label!==f&&(this._label=f,this._onDidChange.fire({label:f}))}get tooltip(){return this._tooltip||""}set tooltip(f){this._setTooltip(f)}_setTooltip(f){this._tooltip!==f&&(this._tooltip=f,this._onDidChange.fire({tooltip:f}))}get class(){return this._cssClass}set class(f){this._setClass(f)}_setClass(f){this._cssClass!==f&&(this._cssClass=f,this._onDidChange.fire({class:f}))}get enabled(){return this._enabled}set enabled(f){this._setEnabled(f)}_setEnabled(f){this._enabled!==f&&(this._enabled=f,this._onDidChange.fire({enabled:f}))}get checked(){return this._checked}set checked(f){this._setChecked(f)}_setChecked(f){this._checked!==f&&(this._checked=f,this._onDidChange.fire({checked:f}))}run(f,a){return b(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(f))})}}class C extends g.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new M.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new M.b),this.onDidRun=this._onDidRun.event}run(f,a){return b(this,void 0,void 0,function*(){if(!f.enabled)return;this._onBeforeRun.fire({action:f});let u;try{yield this.runAction(f,a)}catch(n){u=n}this._onDidRun.fire({action:f,error:u})})}runAction(f,a){return b(this,void 0,void 0,function*(){yield f.run(a)})}}class O extends y{constructor(f){super(O.ID,f,f?"separator text":"separator");this.checked=!1,this.enabled=!1}}O.ID="vs.actions.separator";class m{constructor(f,a,u,n){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=f,this.label=a,this.class=n,this._actions=u}get actions(){return this._actions}dispose(){}run(){return b(this,void 0,void 0,function*(){})}}class e extends y{constructor(){super(e.ID,A.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8WcF":function(k,z,o){k.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(k,z,o){k.exports={button:"button___1wy9m"}},"8j3D":function(k,z,o){"use strict";var M=o("2qtc"),g=o("kLXV"),A=o("5NDa"),b=o("5rEg"),y=o("miYZ"),C=o("tsqr"),O=o("k1fw"),m=o("9og8"),e=o("y8nQ"),f=o("Vl3Y"),a=o("tJVT"),u=o("WmNS"),n=o.n(u),i=o("q1tI"),r=o.n(i),c=o("Ty5D"),h=o("9kvl"),d=o("KVXO"),s=o.n(d),l=function(E){var _=E.shixunsDetail,P=E.globalSetting,R=E.loading,x=E.dispatch,S=E.title,v=E.pathList,T=v===void 0?[]:v,U=E.showInputPath,L=U===void 0?!1:U,N=E.isMergeSelectFile,V=N===void 0?!1:N,H=E.onFinish,D=H===void 0?function(){}:H,W=f.a.useForm(),F=Object(a.a)(W,1),I=F[0],K=Object(c.i)(),ee=Object(c.h)(),he=Object(i.useRef)(),de=Object(i.useState)(""),Se=Object(a.a)(de,2),Te=Se[0],ce=Se[1],be=Object(i.useState)(""),ye=Object(a.a)(be,2),ue=ye[0],se=ye[1],$=Object(i.useState)([]),me=Object(a.a)($,2),re=me[0],ae=me[1],Oe=Object(i.useState)([]),le=Object(a.a)(Oe,2),te=le[0],Q=le[1];Object(i.useEffect)(function(){var tt,ut;he.current=((tt=ee.pathname)===null||tt===void 0||((ut=tt.split("/"))===null||ut===void 0)?void 0:ut[3])==="repository"},[]),Object(i.useEffect)(function(){if(_.actionTabs.key!=="Repository-SelectFilePath")return;var tt=T.join("/"),ut=[];T.map(function(ht,vt){vt===0?ut.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(ht),path:tt}):ut.push({val:"/".concat(ht),path:tt})}),ae(ut),ce(tt),se(tt),J(tt)},[_.actionTabs.key]);var J=function(){var tt=Object(m.a)(n.a.mark(function ut(ht){var vt;return n.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,x({type:he.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:K.id,path:ht}});case 2:vt=Ve.sent,vt&&Q(vt.trees||[]);case 4:case"end":return Ve.stop()}},ut)}));return function(ht){return tt.apply(this,arguments)}}(),ve=function(ut){var ht=Te;ut.type==="tree"&&(re.length?re.push({val:"/".concat(ut.name),path:ut.name}):re.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(ut.name),path:ut.name}),ae(re),ht=Te?"".concat(Te,"/").concat(ut.name):ut.name,ce(ht)),J(ht)},_e=function(ut,ht){var vt=re.filter(function(Ve,Ue){return Ue<=ht});ae(vt);var _t=vt.filter(function(Ve,Ue){return Ue!==0}).map(function(Ve){return Ve.val}).join("").substr(1);ce(_t),J(_t)},Ae=function(){var tt=Object(m.a)(n.a.mark(function ut(){var ht,vt,_t;return n.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(ht=I==null?void 0:I.getFieldsValue(),vt=Te?"".concat(Te).concat(ht!=null&&ht.name?"/".concat(ht==null?void 0:ht.name):""):ht==null?void 0:ht.name,!V){Ue.next=6;break}return D(vt),Je(),Ue.abrupt("return");case 6:if(!L){Ue.next=16;break}return Ue.next=9,I.validateFields();case 9:return Ue.next=11,x({type:"shixunsDetail/uploadGitFolder",payload:Object(O.a)(Object(O.a)({},{id:K.id,path:vt}),he.current?{}:{secret_repository:!0})});case 11:_t=Ue.sent,D(ue),_t.status===0&&C.b.info("\u65B0\u5EFA\u6210\u529F"),Ue.next=18;break;case 16:D(vt),C.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Je();case 19:case"end":return Ue.stop()}},ut)}));return function(){return tt.apply(this,arguments)}}(),Je=function(){x({type:"shixunsDetail/setActionTabs",payload:{}}),I.resetFields()};return r.a.createElement(g.a,{centered:!0,title:S||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:_.actionTabs.key==="Repository-SelectFilePath",onOk:Ae,onCancel:Je},r.a.createElement("div",{className:s.a.wrap},r.a.createElement("div",{className:s.a.content},r.a.createElement("div",{className:s.a.mainPathWrap},!!(re!=null&&re.length)&&re.map(function(tt,ut){return r.a.createElement("a",{key:ut,onClick:function(){return _e(tt,ut)}},tt.val)})),!!(te!=null&&te.length)&&te.map(function(tt,ut){return tt.type==="tree"&&r.a.createElement("a",{key:ut,onClick:function(){return ve(tt)}},r.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(s.a.colorBlue)}),tt.name)})),r.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),r.a.createElement("div",{className:"mt5 mb5"},Te),L&&r.a.createElement(f.a,{form:I,scrollToFirstError:!0,className:"mt20"},r.a.createElement(f.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},r.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};z.a=Object(h.a)(function(w){var E=w.shixunsDetail,_=w.loading,P=w.globalSetting;return{shixunsDetail:E,globalSetting:P,loading:_.models.index}})(l)},"8mKB":function(k,z,o){"use strict";var M=o("rePB"),g=o("1OyB"),A=o("vuIU"),b=o("Ji7U"),y=o("md7G"),C=o("foSv"),O=o("q1tI"),m=o.n(O),e=o("m+aA"),f=o("TSYQ"),a=o.n(f),u=o("4IlW");function n(S){var v=S.pageXOffset,T="scrollLeft";if(typeof v!="number"){var U=S.document;v=U.documentElement[T],typeof v!="number"&&(v=U.body[T])}return v}function i(S){var v,T,U=S.ownerDocument,L=U.body,N=U&&U.documentElement,V=S.getBoundingClientRect();return v=V.left,T=V.top,v-=N.clientLeft||L.clientLeft||0,T-=N.clientTop||L.clientTop||0,{left:v,top:T}}function r(S){var v=i(S),T=S.ownerDocument,U=T.defaultView||T.parentWindow;return v.left+=n(U),v.left}function c(S){var v=h();return function(){var U=Object(C.a)(S),L;if(v){var N=Object(C.a)(this).constructor;L=Reflect.construct(U,arguments,N)}else L=U.apply(this,arguments);return Object(y.a)(this,L)}}function h(){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(S){return!1}}var d=function(S){Object(b.a)(T,S);var v=c(T);function T(){var U;return Object(g.a)(this,T),U=v.apply(this,arguments),U.onHover=function(L){var N=U.props,V=N.onHover,H=N.index;V(L,H)},U.onClick=function(L){var N=U.props,V=N.onClick,H=N.index;V(L,H)},U.onKeyDown=function(L){var N=U.props,V=N.onClick,H=N.index;L.keyCode===13&&V(L,H)},U}return Object(A.a)(T,[{key:"getClassName",value:function(){var L=this.props,N=L.prefixCls,V=L.index,H=L.value,D=L.allowHalf,W=L.focused,F=V+1,I=N;return H===0&&V===0&&W?I+=" ".concat(N,"-focused"):D&&H+.5>=F&&H<F?(I+=" ".concat(N,"-half ").concat(N,"-active"),W&&(I+=" ".concat(N,"-focused"))):(I+=F<=H?" ".concat(N,"-full"):" ".concat(N,"-zero"),F===H&&W&&(I+=" ".concat(N,"-focused"))),I}},{key:"render",value:function(){var L=this.onHover,N=this.onClick,V=this.onKeyDown,H=this.props,D=H.disabled,W=H.prefixCls,F=H.character,I=H.characterRender,K=H.index,ee=H.count,he=H.value,de=typeof F=="function"?F(this.props):F,Se=m.a.createElement("li",{className:this.getClassName()},m.a.createElement("div",{onClick:D?null:N,onKeyDown:D?null:V,onMouseMove:D?null:L,role:"radio","aria-checked":he>K?"true":"false","aria-posinset":K+1,"aria-setsize":ee,tabIndex:D?-1:0},m.a.createElement("div",{className:"".concat(W,"-first")},de),m.a.createElement("div",{className:"".concat(W,"-second")},de)));return I&&(Se=I(Se,this.props)),Se}}]),T}(m.a.Component);function s(S,v){var T=Object.keys(S);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(S);v&&(U=U.filter(function(L){return Object.getOwnPropertyDescriptor(S,L).enumerable})),T.push.apply(T,U)}return T}function l(S){for(var v=1;v<arguments.length;v++){var T=arguments[v]!=null?arguments[v]:{};v%2?s(Object(T),!0).forEach(function(U){Object(M.a)(S,U,T[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(T)):s(Object(T)).forEach(function(U){Object.defineProperty(S,U,Object.getOwnPropertyDescriptor(T,U))})}return S}function w(S){var v=E();return function(){var U=Object(C.a)(S),L;if(v){var N=Object(C.a)(this).constructor;L=Reflect.construct(U,arguments,N)}else L=U.apply(this,arguments);return Object(y.a)(this,L)}}function E(){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(S){return!1}}function _(){}var P=function(S){Object(b.a)(T,S);var v=w(T);function T(U){var L;Object(g.a)(this,T),L=v.call(this,U),L.onHover=function(V,H){var D=L.props.onHoverChange,W=L.getStarValue(H,V.pageX),F=L.state.cleanedValue;W!==F&&L.setState({hoverValue:W,cleanedValue:null}),D(W)},L.onMouseLeave=function(){var V=L.props.onHoverChange;L.setState({hoverValue:void 0,cleanedValue:null}),V(void 0)},L.onClick=function(V,H){var D=L.props.allowClear,W=L.state.value,F=L.getStarValue(H,V.pageX),I=!1;D&&(I=F===W),L.onMouseLeave(),L.changeValue(I?0:F),L.setState({cleanedValue:I?F:null})},L.onFocus=function(){var V=L.props.onFocus;L.setState({focused:!0}),V&&V()},L.onBlur=function(){var V=L.props.onBlur;L.setState({focused:!1}),V&&V()},L.onKeyDown=function(V){var H=V.keyCode,D=L.props,W=D.count,F=D.allowHalf,I=D.onKeyDown,K=D.direction,ee=K==="rtl",he=L.state.value;H===u.a.RIGHT&&he<W&&!ee?(F?he+=.5:he+=1,L.changeValue(he),V.preventDefault()):H===u.a.LEFT&&he>0&&!ee||H===u.a.RIGHT&&he>0&&ee?(F?he-=.5:he-=1,L.changeValue(he),V.preventDefault()):H===u.a.LEFT&&he<W&&ee&&(F?he+=.5:he+=1,L.changeValue(he),V.preventDefault()),I&&I(V)},L.saveRef=function(V){return function(H){L.stars[V]=H}},L.saveRate=function(V){L.rate=V};var N=U.value;return N===void 0&&(N=U.defaultValue),L.stars={},L.state={value:N,focused:!1,cleanedValue:null},L}return Object(A.a)(T,[{key:"componentDidMount",value:function(){var L=this.props,N=L.autoFocus,V=L.disabled;N&&!V&&this.focus()}},{key:"getStarDOM",value:function(L){return Object(e.a)(this.stars[L])}},{key:"getStarValue",value:function(L,N){var V=this.props,H=V.allowHalf,D=V.direction,W=D==="rtl",F=L+1;if(H){var I=this.getStarDOM(L),K=r(I),ee=I.clientWidth;(W&&N-K>ee/2||!W&&N-K<ee/2)&&(F-=.5)}return F}},{key:"focus",value:function(){var L=this.props.disabled;L||this.rate.focus()}},{key:"blur",value:function(){var L=this.props.disabled;L||this.rate.blur()}},{key:"changeValue",value:function(L){var N=this.props.onChange;"value"in this.props||this.setState({value:L}),N(L)}},{key:"render",value:function(){for(var L=this.props,N=L.count,V=L.allowHalf,H=L.style,D=L.prefixCls,W=L.disabled,F=L.className,I=L.character,K=L.characterRender,ee=L.tabIndex,he=L.direction,de=this.state,Se=de.value,Te=de.hoverValue,ce=de.focused,be=[],ye=W?"".concat(D,"-disabled"):"",ue=0;ue<N;ue+=1)be.push(m.a.createElement(d,{ref:this.saveRef(ue),index:ue,count:N,disabled:W,prefixCls:"".concat(D,"-star"),allowHalf:V,value:Te===void 0?Se:Te,onClick:this.onClick,onHover:this.onHover,key:ue,character:I,characterRender:K,focused:ce}));var se=a()(D,ye,F,Object(M.a)({},"".concat(D,"-rtl"),he==="rtl"));return m.a.createElement("ul",{className:se,style:H,onMouseLeave:W?null:this.onMouseLeave,tabIndex:W?-1:ee,onFocus:W?null:this.onFocus,onBlur:W?null:this.onBlur,onKeyDown:W?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},be)}}],[{key:"getDerivedStateFromProps",value:function(L,N){return"value"in L&&L.value!==void 0?l(l({},N),{},{value:L.value}):N}}]),T}(m.a.Component);P.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var R=P,x=z.a=R},"9Bee":function(k,z,o){"use strict";var M=o("DYRE"),g=o("zeV3"),A=o("+L6B"),b=o("2/Rp"),y=o("k1fw"),C=o("9og8"),O=o("tJVT"),m=o("WmNS"),e=o.n(m),f=o("q1tI"),a=o.n(f),u=o("vg9a"),n=o("DlQD"),i=o.n(n),r=o("rUJ1");function c(pe,X){var q=pe.match(/^(\s+)(?:```)/);if(q===null)return X;var oe=q[1];return X.split(`
`).map(function(De){var fe=De.match(/^\s+/);if(fe===null)return De;var st=Object(O.a)(fe,1),Qt=st[0];return Qt.length>=oe.length?De.slice(oe.length):De}).join(`
`)}var h=[],d=["<ul>"],s=new i.a.Renderer,l=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){h.length=0,d=["<ul>"]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _(pe,X,q,oe){if(X>=pe.length||pe[X].level<=q)return X;var De=pe[X];oe.push("<li><a href='#"+De.anchor+"'>"+De.text+"</a>"),X++;var fe=[];return X=_(pe,X,De.level,fe),fe.length>0&&(oe.push("<ul>"),fe.forEach(function(st){oe.push(st)}),oe.push("</ul>")),oe.push("</li>"),X=_(pe,X,q,oe),X}function P(){return _(h,0,0,d),d.push("</ul>"),d.join("")}var R={heading:function(X){var q=l.exec(X);if(q)return{type:"heading",raw:q[0],depth:q[1].length,text:q[2]}},fences:function(X){var q=this.rules.block.fences.exec(X);if(q){var oe=q[0],De=c(oe,q[3]||""),fe=q[2]?q[2].trim():q[2];if(["latex","katex","math"].indexOf(fe)>=0){var st=v(),Qt=De;De=st,T[st]={type:"block",expression:Qt}}return{type:"code",raw:oe,lang:fe,text:De}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,S=0,v=function(){return"__special_katext_id_".concat(S++,"__")},T={};function U(){return T}function L(){S=0,T={}}function N(pe){return pe=pe.replace(x,function(X,q){var oe=v();return T[oe]={type:"inline",expression:q},oe}),pe}var V=s.listitem;s.listitem=function(pe){return V(N(pe))};var H=s.paragraph;s.paragraph=function(pe){return H(N(pe))};var D=s.tablecell;s.tablecell=function(pe,X){return D(N(pe),X)},s.code=function(pe,X,q){var oe=(X||"").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(X,'">').concat(q?pe:Object(r.escape)(pe,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(q?pe:Object(r.escape)(pe,!0))+"</code></pre>"},s.heading=function(pe,X,q){var oe=this.options.headerPrefix+q.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return h.push({anchor:oe,level:X,text:pe}),"<h"+X+' id="'+oe+'">'+pe+"</h"+X+">"},i.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),i.a.use({tokenizer:R,renderer:s});var W=i.a,F=o("SJMd"),I=o("ulZh"),K=o.n(I),ee=o("m3rI"),he=o("Oy/b"),de=o("p5ED"),Se=o("ErOA");/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Te=function(pe,X){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,oe){q.__proto__=oe}||function(q,oe){for(var De in oe)Object.prototype.hasOwnProperty.call(oe,De)&&(q[De]=oe[De])})(pe,X)};function ce(pe,X){function q(){this.constructor=pe}Te(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function be(pe,X,q,oe){return new(q||(q=Promise))(function(De,fe){function st(Vn){try{In(oe.next(Vn))}catch($t){fe($t)}}function Qt(Vn){try{In(oe.throw(Vn))}catch($t){fe($t)}}function In(Vn){var $t;Vn.done?De(Vn.value):($t=Vn.value,$t instanceof q?$t:new q(function(bn){bn($t)})).then(st,Qt)}In((oe=oe.apply(pe,X||[])).next())})}function ye(pe,X){var q,oe,De,fe,st={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return fe={next:Qt(0),throw:Qt(1),return:Qt(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Qt(In){return function(Vn){return function($t){if(q)throw new TypeError("Generator is already executing.");for(;st;)try{if(q=1,oe&&(De=2&$t[0]?oe.return:$t[0]?oe.throw||((De=oe.return)&&De.call(oe),0):oe.next)&&!(De=De.call(oe,$t[1])).done)return De;switch(oe=0,De&&($t=[2&$t[0],De.value]),$t[0]){case 0:case 1:De=$t;break;case 4:return st.label++,{value:$t[1],done:!1};case 5:st.label++,oe=$t[1],$t=[0];continue;case 7:$t=st.ops.pop(),st.trys.pop();continue;default:if(!(De=st.trys,(De=De.length>0&&De[De.length-1])||$t[0]!==6&&$t[0]!==2)){st=0;continue}if($t[0]===3&&(!De||$t[1]>De[0]&&$t[1]<De[3])){st.label=$t[1];break}if($t[0]===6&&st.label<De[1]){st.label=De[1],De=$t;break}if(De&&st.label<De[2]){st.label=De[2],st.ops.push($t);break}De[2]&&st.ops.pop(),st.trys.pop();continue}$t=X.call(pe,st)}catch(bn){$t=[6,bn],oe=0}finally{q=De=0}if(5&$t[0])throw $t[1];return{value:$t[0]?$t[1]:void 0,done:!0}}([In,Vn])}}}function ue(){for(var pe=0,X=0,q=arguments.length;X<q;X++)pe+=arguments[X].length;var oe=Array(pe),De=0;for(X=0;X<q;X++)for(var fe=arguments[X],st=0,Qt=fe.length;st<Qt;st++,De++)oe[De]=fe[st];return oe}var se=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(X,q){for(var oe=0,De=q;oe<De.length;oe++){var fe=De[oe],st=fe[0],Qt=fe[1];X.setAttribute(st,Qt)}},pe.createRect=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","rect");return De.setAttribute("width",X.toString()),De.setAttribute("height",q.toString()),oe&&pe.setAttributes(De,oe),De},pe.createLine=function(X,q,oe,De,fe){var st=document.createElementNS("http://www.w3.org/2000/svg","line");return st.setAttribute("x1",X.toString()),st.setAttribute("y1",q.toString()),st.setAttribute("x2",oe.toString()),st.setAttribute("y2",De.toString()),fe&&pe.setAttributes(st,fe),st},pe.createPolygon=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",X),q&&pe.setAttributes(oe,q),oe},pe.createCircle=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(X/2).toString()),oe.setAttribute("cy",(X/2).toString()),oe.setAttribute("r",X.toString()),q&&pe.setAttributes(oe,q),oe},pe.createEllipse=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return De.setAttribute("cx",(X/2).toString()),De.setAttribute("cy",(q/2).toString()),De.setAttribute("rx",(X/2).toString()),De.setAttribute("ry",(q/2).toString()),oe&&pe.setAttributes(De,oe),De},pe.createGroup=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","g");return X&&pe.setAttributes(q,X),q},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(X,q,oe,De,fe,st,Qt){var In=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(In,[["id",X],["orient",q],["markerWidth",oe.toString()],["markerHeight",De.toString()],["refX",fe.toString()],["refY",st.toString()]]),In.appendChild(Qt),In},pe.createText=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","text");return q.setAttribute("x","0"),q.setAttribute("y","0"),X&&pe.setAttributes(q,X),q},pe.createTSpan=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=X,q&&pe.setAttributes(oe,q),oe},pe.createImage=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","image");return X&&pe.setAttributes(q,X),q},pe.createPoint=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=X,oe.y=q,oe},pe.createPath=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",X),q&&pe.setAttributes(oe,q),oe},pe}(),$=function(){function pe(){}return pe.addKey=function(X){pe.key=X},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(X,q,oe){var De=this;return new Promise(function(fe){var st=oe!==void 0?oe:document.createElement("canvas");X===null&&(De.markersOnly=!0,De.naturalSize=!1);var Qt=document.createElementNS("http://www.w3.org/2000/svg","svg");Qt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Qt.setAttribute("width",q.width.baseVal.valueAsString),Qt.setAttribute("height",q.height.baseVal.valueAsString),Qt.setAttribute("viewBox","0 0 "+q.viewBox.baseVal.width.toString()+" "+q.viewBox.baseVal.height.toString()),Qt.innerHTML=q.innerHTML,De.naturalSize===!0?(Qt.width.baseVal.value=X.naturalWidth,Qt.height.baseVal.value=X.naturalHeight):De.width!==void 0&&De.height!==void 0&&(Qt.width.baseVal.value=De.width,Qt.height.baseVal.value=De.height),st.width=Qt.width.baseVal.value,st.height=Qt.height.baseVal.value;var In=Qt.outerHTML,Vn=st.getContext("2d");De.markersOnly!==!0&&Vn.drawImage(X,0,0,st.width,st.height);var $t=window.URL,bn=new Image(st.width,st.height);bn.setAttribute("crossOrigin","anonymous");var cn=new Blob([In],{type:"image/svg+xml"}),Br=$t.createObjectURL(cn);bn.onload=function(){Vn.drawImage(bn,0,0),$t.revokeObjectURL(Br);var ra=st.toDataURL(De.imageType,De.imageQuality);fe(ra)},bn.src=Br})},pe}(),re=function(){},ae=function(){function pe(X){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+X+"_"}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(X){return this.styleSheet===void 0&&this.addStyleSheet(),X.name=""+this.classNamePrefix+X.localName,this.classes.push(X),this.styleSheet.sheet.insertRule("."+X.name+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length),X},pe.prototype.addRule=function(X){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(X),this.styleSheet.sheet.insertRule(X.selector+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var X;this.styleSheet=document.createElement("style"),((X=this.styleSheetRoot)!==null&&X!==void 0?X: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 X;this.styleSheet&&(((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Oe=function(pe,X){this.selector=pe,this.style=X},le=function(pe,X){this.localName=pe,this.style=X},te=function(){function pe(X,q,oe,De,fe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=X,this.displayMode=q,this.markerItems=oe,this.uiStyleSettings=De,this.styles=fe,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(X){var q=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=X,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(fe){var st=document.createElement("div");st.className=""+q.toolbarButtonStyleClass.name,st.setAttribute("data-type-name",fe.typeName),st.innerHTML=fe.icon,st.addEventListener("click",function(){q.markerToolbarButtonClicked(st,fe)}),q.buttons.push(st),q.markerButtons.push(st)}),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 De=document.createElement("div");De.className=this.toolbarBlockStyleClass.name,De.style.whiteSpace="nowrap",De.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(De),this.addActionButton(De,'<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(De,'<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(X){this.buttonClickListeners.push(X)},pe.prototype.removeButtonClickListener=function(X){this.buttonClickListeners.indexOf(X)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(X),1)},pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},pe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var X=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var q=0;q<this.markerButtons.length;q++)q<X||q===X&&this.markerButtons.length-1===X?this.markerButtonBlock.appendChild(this.markerButtons[q]):(q===X&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[q]))}},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 X=this;this.buttons.forEach(function(q){q.className=q.className.replace(X.uiStyleSettings.toolbarButtonStyleColorsClassName?X.uiStyleSettings.toolbarButtonStyleColorsClassName:X.toolbarButtonStyleColorsClass.name,"").trim(),q.className=q.className.replace(X.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?X.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:X.toolbarActiveButtonStyleColorsClass.name,"").trim(),q.className+=" "+(X.uiStyleSettings.toolbarButtonStyleColorsClassName?X.uiStyleSettings.toolbarButtonStyleColorsClassName:X.toolbarButtonStyleColorsClass.name)})},pe.prototype.addActionButton=function(X,q,oe){var De=this,fe=document.createElement("div");switch(fe.className=""+this.toolbarButtonStyleClass.name,fe.innerHTML=q,fe.setAttribute("data-action",oe),fe.addEventListener("click",function(){De.actionToolbarButtonClicked(fe,oe)}),oe){case"select":fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":fe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":fe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":fe.style.fill=this.uiStyleSettings.closeButtonColor}X.appendChild(fe),this.buttons.push(fe)},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 X=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new le("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*X)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*X)+`px;
padding: `+X+`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(X,q){this.setActiveButton(X),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",q)}),this.markerButtonOverflowBlock.style.display="none"},pe.prototype.actionToolbarButtonClicked=function(X,q){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",q)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},pe.prototype.setActiveButton=function(X){this.resetButtonStyles(),X.className=X.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),X.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},pe.prototype.setActiveMarkerButton=function(X){var q=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===X});q&&this.setActiveButton(q)},pe.prototype.setCurrentMarker=function(X){var q=this;this.currentMarker=X,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){q.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},pe}(),Q=function(){function pe(X,q,oe,De){this.panels=[],this.panelButtons=[],this.markerjsContainer=X,this.displayMode=q,this.uiStyleSettings=oe,this.styles=De,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return pe.prototype.addStyles=function(){var X;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 q=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: `+((X=this.uiStyleSettings.toolboxBackgroundColor)!==null&&X!==void 0?X:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new le("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*q)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*q)+`px;
padding: `+q+`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(X){var q;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=X,this.uiContainer.className=this.toolboxStyleClass.name+" "+((q=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&q!==void 0?q:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},pe.prototype.setPanelButtons=function(X){var q,oe,De=this;this.panels=X,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((q=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&q!==void 0?q: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(fe){var st;fe.uiStyleSettings=De.uiStyleSettings;var Qt=document.createElement("div");Qt.className=De.toolboxButtonStyleClass.name+" "+((st=De.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&st!==void 0?st:De.toolboxButtonStyleColorsClass.name),Qt.innerHTML=fe.icon,Qt.title=fe.title,Qt.addEventListener("click",function(){De.panelButtonClick(fe)}),De.panelButtons.push(Qt),De.buttonRow.appendChild(Qt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},pe.prototype.panelButtonClick=function(X){var q=this,oe=-1;if(X!==this.activePanel){oe=this.panels.indexOf(X),this.panelRow.innerHTML="";var De=X.getUi();De.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(De),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=X}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){q.displayMode==="inline"?q.panelRow.style.display="none":q.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(fe,st){var Qt,In;fe.className=q.toolboxButtonStyleClass.name+" "+(st===oe?""+((Qt=q.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Qt!==void 0?Qt:q.toolboxActiveButtonStyleColorsClass.name):""+((In=q.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&In!==void 0?In:q.toolboxButtonStyleColorsClass.name))})},pe}(),J=function(pe,X){this.title=pe,this.icon=X},ve=function(pe){function X(q,oe,De,fe){var st=pe.call(this,q,fe||'<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 st.colors=[],st.addTransparent=!1,st.colorBoxes=[],st.colors=oe,st.currentColor=De,st.setCurrentColor=st.setCurrentColor.bind(st),st.getColorBox=st.getColorBox.bind(st),st}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(De){var fe=q.getColorBox(De);oe.appendChild(fe),q.colorBoxes.push(fe)}),oe},X.prototype.getColorBox=function(q){var oe=this,De=this.uiStyleSettings.toolbarHeight/4,fe=this.uiStyleSettings.toolbarHeight-De,st=document.createElement("div");st.style.display="inline-block",st.style.boxSizing="content-box",st.style.width=fe-2+"px",st.style.height=fe-2+"px",st.style.padding="1px",st.style.marginRight="2px",st.style.marginBottom="2px",st.style.borderWidth="2px",st.style.borderStyle="solid",st.style.borderRadius=(fe+2)/2+"px",st.style.borderColor=q===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",st.addEventListener("click",function(){oe.setCurrentColor(q,st)});var Qt=document.createElement("div");return Qt.style.display="inline-block",Qt.style.width=fe-2+"px",Qt.style.height=fe-2+"px",Qt.style.backgroundColor=q,Qt.style.borderRadius=fe/2+"px",q==="transparent"&&(Qt.style.fill=this.uiStyleSettings.toolboxAccentColor,Qt.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>`),st.appendChild(Qt),st},X.prototype.setCurrentColor=function(q,oe){var De=this;this.currentColor=q,this.colorBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(q)},X}(J),_e=function(){function pe(X,q,oe){this._state="new",this._isSelected=!1,this._container=X,this._overlayContainer=q,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(X){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(X,q){},pe.prototype.dblClick=function(X,q){},pe.prototype.manipulate=function(X){},pe.prototype.pointerUp=function(X){this.stateChanged()},pe.prototype.dispose=function(){},pe.prototype.addMarkerVisualToContainer=function(X){this.container.childNodes.length>0?this.container.insertBefore(X,this.container.childNodes[0]):this.container.appendChild(X)},pe.prototype.getState=function(){return{typeName:pe.typeName,state:this.state,notes:this.notes}},pe.prototype.restoreState=function(X){this._state=X.state,this.notes=X.notes},pe.prototype.scale=function(X,q){},pe.prototype.colorChanged=function(X){this.onColorChanged&&this.onColorChanged(X),this.stateChanged()},pe.prototype.fillColorChanged=function(X){this.onFillColorChanged&&this.onFillColorChanged(X),this.stateChanged()},pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var X=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),X.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(X)&&this.onStateChanged(this)}},pe.typeName="MarkerBase",pe}(),Ae=function(){function pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return pe.prototype.findGripByVisual=function(X){return this.topLeft.ownsTarget(X)?this.topLeft:this.topCenter.ownsTarget(X)?this.topCenter:this.topRight.ownsTarget(X)?this.topRight:this.centerLeft.ownsTarget(X)?this.centerLeft:this.centerRight.ownsTarget(X)?this.centerRight:this.bottomLeft.ownsTarget(X)?this.bottomLeft:this.bottomCenter.ownsTarget(X)?this.bottomCenter:this.bottomRight.ownsTarget(X)?this.bottomRight:void 0},pe}(),Je=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(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe}(),tt=function(){function pe(){}return pe.toITransformMatrix=function(X){return{a:X.a,b:X.b,c:X.c,d:X.d,e:X.e,f:X.f}},pe.toSVGMatrix=function(X,q){return X.a=q.a,X.b=q.b,X.c=q.c,X.d=q.d,X.e=q.e,X.f=q.f,X},pe}(),ut=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.left=0,fe.top=0,fe.width=0,fe.height=0,fe.defaultSize={x:50,y:20},fe.offsetX=0,fe.offsetY=0,fe.rotationAngle=0,fe.CB_DISTANCE=10,fe._suppressMarkerCreateEvent=!1,fe.container.transform.baseVal.appendItem(se.createTransform()),fe.setupControlBox(),fe}return ce(X,pe),Object.defineProperty(X.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"visual",{get:function(){return this._visual},set:function(q){this._visual=q;var oe=se.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!!(this.controlGrips.findGripByVisual(q)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.left=q.x,this.top=q.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var De=this.unrotatePoint(q);if(this.manipulationStartX=De.x,this.manipulationStartY=De.y,this.offsetX=De.x-this.left,this.offsetY=De.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 fe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=fe.x-this.width/2,this.top=fe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var st=this.container.transform.baseVal.getItem(0);st.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(st,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},X.prototype.moveVisual=function(q){this.visual.style.transform="translate("+q.x+"px, "+q.y+"px)"},X.prototype.manipulate=function(q){var oe=this.unrotatePoint(q);this.state==="creating"?this.resize(q):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(q)},X.prototype.resize=function(q){var oe=this.manipulationStartLeft,De=this.manipulationStartWidth,fe=this.manipulationStartTop,st=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+q.x-this.manipulationStartX,De=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:De=this.manipulationStartWidth+q.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:fe=this.manipulationStartTop+q.y-this.manipulationStartY,st=this.manipulationStartHeight+this.manipulationStartTop-fe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:st=this.manipulationStartHeight+q.y-this.manipulationStartY}De>=0?(this.left=oe,this.width=De):(this.left=oe+De,this.width=-De),st>=0?(this.top=fe,this.height=st):(this.top=fe+st,this.height=-st),this.setSize()},X.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},X.prototype.rotate=function(q){if(Math.abs(q.x-this.centerX)>.1){var oe=Math.sign(q.x-this.centerX);this.rotationAngle=180*Math.atan((q.y-this.centerY)/(q.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},X.prototype.applyRotation=function(){var q=this.container.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(q,0)},X.prototype.rotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM(),De=se.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.y}},X.prototype.unrotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM();oe=oe.inverse();var De=se.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.y}},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=se.createGroup();var q=se.createTransform();q.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(q),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 Ae,this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){var q=this.controlBox.transform.baseVal.getItem(0);q.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(q,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()},X.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()},X.prototype.createGrip=function(){var q=new Je;return q.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.controlGrips.topLeft.GRIP_SIZE,oe=-q/2,De=oe,fe=(this.width+this.CB_DISTANCE)/2-q/2,st=(this.height+this.CB_DISTANCE)/2-q/2,Qt=this.height+this.CB_DISTANCE-q/2,In=this.width+this.CB_DISTANCE-q/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,De),this.positionGrip(this.controlGrips.topCenter.visual,fe,De),this.positionGrip(this.controlGrips.topRight.visual,In,De),this.positionGrip(this.controlGrips.centerLeft.visual,oe,st),this.positionGrip(this.controlGrips.centerRight.visual,In,st),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Qt),this.positionGrip(this.controlGrips.bottomCenter.visual,fe,Qt),this.positionGrip(this.controlGrips.bottomRight.visual,In,Qt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,fe,De-3*this.CB_DISTANCE)},X.prototype.positionGrip=function(q,oe,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,0)},X.prototype.hideControlBox=function(){this.controlBox.style.display="none"},X.prototype.showControlBox=function(){this.controlBox.style.display=""},X.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:tt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:tt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;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(tt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe);var De=this.rotatePoint({x:this.left,y:this.top}),fe=this.unrotatePoint({x:De.x*q,y:De.y*oe});this.left=fe.x,this.top=fe.y,this.width=this.width*q,this.height=this.height*oe,this.adjustControlBox()},X}(_e),ht=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor="transparent",fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.opacity=1,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setFillColor=fe.setFillColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.createVisual=fe.createVisual.bind(fe),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual)},X.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.setSize()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){pe.prototype.pointerUp.call(this,q),this.setSize()},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},X.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))},X.prototype.restoreState=function(q){var oe=q;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,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize()},X.title="Rectangle marker",X}(ut),vt=function(pe){function X(q,oe,De,fe){var st=pe.call(this,q,fe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return st.widths=[],st.widthBoxes=[],st.widths=oe,st.currentWidth=De,st.setCurrentWidth=st.setCurrentWidth.bind(st),st}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.flexGrow="2",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentWidth?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentWidth(De,fe)}),oe.appendChild(fe);var st=document.createElement("div");st.innerText=De.toString(),st.style.marginRight="5px",fe.appendChild(st);var Qt=document.createElement("div");Qt.style.minHeight="20px",Qt.style.flexGrow="2",Qt.style.display="flex",Qt.style.alignItems="center";var In=document.createElement("hr");In.style.minWidth="20px",In.style.border="0px",In.style.borderTop=De+"px solid "+q.uiStyleSettings.toolboxColor,In.style.flexGrow="2",Qt.appendChild(In),fe.appendChild(Qt),q.widthBoxes.push(fe)}),oe},X.prototype.setCurrentWidth=function(q,oe){var De=this;this.currentWidth=q,this.widthBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},X}(J),_t=function(pe){function X(q,oe,De,fe){var st=pe.call(this,q,fe||'<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 st.styles=[],st.styleBoxes=[],st.styles=oe,st.currentStyle=De,st.setCurrentStyle=st.setCurrentStyle.bind(st),st}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.styles.length-5+"%",fe.style.borderColor=De===q.currentStyle?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentStyle(De,fe)}),oe.appendChild(fe);var st=document.createElement("div");st.style.minHeight="20px",st.style.flexGrow="2",st.style.overflow="hidden";var Qt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+q.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(De!==""?'stroke-dasharray="'+De+'"':"")+` />
</svg>`;st.innerHTML=Qt,fe.appendChild(st),q.styleBoxes.push(fe)}),oe},X.prototype.setCurrentStyle=function(q,oe){var De=this;this.currentStyle=q,this.styleBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},X}(J),Ve=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new _t("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="FrameMarker",X.title="Frame marker",X.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',X}(ht),Ue=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},pt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.x1=0,fe.y1=0,fe.x2=0,fe.y2=0,fe.defaultLength=50,fe.manipulationStartX=0,fe.manipulationStartY=0,fe.manipulationStartX1=0,fe.manipulationStartY1=0,fe.manipulationStartX2=0,fe.manipulationStartY2=0,fe.setupControlBox(),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!(!this.grip1.ownsTarget(q)&&!this.grip2.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartX=q.x,this.manipulationStartY=q.y,this.state==="new"&&(this.x1=q.x,this.y1=q.y,this.x2=q.x,this.y2=q.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")},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),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(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},X.prototype.adjustVisual=function(){},X.prototype.manipulate=function(q){this.state==="creating"?this.resize(q):this.state==="move"?(this.x1=this.manipulationStartX1+q.x-this.manipulationStartX,this.y1=this.manipulationStartY1+q.y-this.manipulationStartY,this.x2=this.manipulationStartX2+q.x-this.manipulationStartX,this.y2=this.manipulationStartY2+q.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(q)},X.prototype.resize=function(q){switch(this.activeGrip){case this.grip1:this.x1=q.x,this.y1=q.y;break;case this.grip2:case void 0:this.x2=q.x,this.y2=q.y}this.adjustVisual(),this.adjustControlBox()},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){this.positionGrips()},X.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},X.prototype.createGrip=function(){var q=new Je;return q.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-q/2,this.y1-q/2),this.positionGrip(this.grip2.visual,this.x2-q/2,this.y2-q/2)},X.prototype.positionGrip=function(q,oe,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,0)},X.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.x1=this.x1*q,this.y1=this.y1*oe,this.x2=this.x2*q,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},X}(_e),Ut=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new _t("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorLine&&q!==this.visibleLine)},X.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},X.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()]]))},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},X.typeName="LineMarker",X.title="Line marker",X.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',X}(pt),Et=function(pe){function X(q,oe,De,fe){var st=pe.call(this,q,fe||'<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 st.fonts=[],st.fontBoxes=[],st.fonts=oe,st.currentFont=De,st.setCurrentFont=st.setCurrentFont.bind(st),st}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(De){var fe=document.createElement("div");fe.style.display="inline-block",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.fonts.length-5+"%",fe.style.borderColor=De===q.currentFont?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentFont(De,fe)}),oe.appendChild(fe);var st=document.createElement("div");st.style.display="flex",st.style.minHeight="20px",st.style.flexGrow="2",st.style.fontFamily=De,st.style.overflow="hidden";var Qt=document.createElement("div");Qt.style.whiteSpace="nowrap",Qt.style.overflow="hidden",Qt.style.textOverflow="ellipsis",Qt.innerHTML="The quick brown fox jumps over the lazy dog",st.appendChild(Qt),fe.appendChild(st),q.fontBoxes.push(fe)}),oe},X.prototype.setCurrentFont=function(q,oe){var De=this;this.currentFont=q,this.fontBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},X}(J),jt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.padding=5,fe.DEFAULT_TEXT="your text here",fe.text=fe.DEFAULT_TEXT,fe.isMoved=!1,fe.color=De.defaultColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setColor=fe.setColor.bind(fe),fe.setFont=fe.setFont.bind(fe),fe.renderText=fe.renderText.bind(fe),fe.sizeText=fe.sizeText.bind(fe),fe.textEditDivClicked=fe.textEditDivClicked.bind(fe),fe.showTextEditor=fe.showTextEditor.bind(fe),fe.setSize=fe.setSize.bind(fe),fe.positionTextEditor=fe.positionTextEditor.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.fontFamilyPanel=new Et("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){if(pe.prototype.ownsTarget.call(this,q)||q===this.visual||q===this.textElement||q===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(De){De===q&&(oe=!0)}),oe},X.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()},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.isMoved=!1,this.pointerDownPoint=q,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.renderText=function(){var q=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){q.textElement.appendChild(se.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},X.prototype.getTextScale=function(){var q=this.textElement.getBBox(),oe=1;if(q.width>0&&q.height>0){var De=(1*this.width-this.width*this.padding*2/100)/q.width,fe=(1*this.height-this.height*this.padding*2/100)/q.height;oe=Math.min(De,fe)}return oe},X.prototype.getTextPosition=function(q){var oe=this.textElement.getBBox(),De=0,fe=0;return oe.width>0&&oe.height>0&&(De=(this.width-oe.width*q)/2,fe=this.height/2-oe.height*q/2),{x:De,y:fe}},X.prototype.sizeText=function(){var q=this.textElement.getBBox(),oe=this.getTextScale(),De=this.getTextPosition(oe);De.y-=q.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+De.x+"px, "+De.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(De.x,De.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(q.x-this.pointerDownPoint.x)>5||Math.abs(q.y-this.pointerDownPoint.y)>5)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.isMoved=!0,this.setSize(),this.sizeText()},X.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()]]))},X.prototype.pointerUp=function(q){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),pe.prototype.pointerUp.call(this,q),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},X.prototype.showTextEditor=function(){var q=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(q.textEditor.style.fontSize);q.textEditor.clientWidth>=Number.parseInt(q.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,q.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 De=oe.clipboardData.getData("text"),fe=window.getSelection();if(!fe.rangeCount)return!1;fe.deleteFromDocument(),fe.getRangeAt(0).insertNode(document.createTextNode(De)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){q.textEditDivClicked(q.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},X.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var q=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),De=this.textElement.getBBox(),fe={x:De.width*q,y:De.height*q};oe.x-=fe.x/2,oe.y-=fe.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*q,12)+"px",this.textElement.style.display="none"}},X.prototype.textEditDivClicked=function(q){this.text=q.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},X.prototype.select=function(){pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},X.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),pe.prototype.deselect.call(this)},X.prototype.dblClick=function(q,oe){pe.prototype.dblClick.call(this,q,oe),this.showTextEditor()},X.prototype.setColor=function(q){this.textElement&&se.setAttributes(this.textElement,[["fill",q]]),this.color=q,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(q)},X.prototype.setFont=function(q){this.textElement&&se.setAttributes(this.textElement,[["font-family",q]]),this.fontFamily=q,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},X.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},X.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},X.typeName="TextMarker",X.title="Text marker",X.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>',X}(ut),Ze=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.lineWidth=3,fe.drawing=!1,fe.pixelRatio=1,fe.color=De.defaultColor,fe.lineWidth=De.defaultStrokeWidth,fe.pixelRatio=De.freehandPixelRatio,fe.setColor=fe.setColor.bind(fe),fe.addCanvas=fe.addCanvas.bind(fe),fe.finishCreation=fe.finishCreation.bind(fe),fe.setLineWidth=fe.setLineWidth.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.lineWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.lineWidthPanel.onWidthChanged=fe.setLineWidth,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.drawingImage)},X.prototype.createVisual=function(){this.visual=se.createGroup(),this.drawingImage=se.createImage(),this.visual.appendChild(this.drawingImage);var q=se.createTransform();this.visual.transform.baseVal.appendItem(q),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,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(q.x,q.y),this.drawing=!0):pe.prototype.pointerDown.call(this,q,oe)},X.prototype.manipulate=function(q){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(q.x,q.y),this.canvasContext.stroke()):pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):pe.prototype.pointerUp.call(this,q)},X.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)},X.prototype.select=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.select.call(this)},X.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.deselect.call(this)},X.prototype.finishCreation=function(){for(var q=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],De=oe[0],fe=oe[1],st=oe[2],Qt=oe[3],In=!1,Vn=0;Vn<this.canvasElement.height;Vn++)for(var $t=0;$t<this.canvasElement.width;$t++)q.data[Vn*this.canvasElement.width*4+4*$t+3]>0&&(In=!0,Vn<fe&&(fe=Vn),$t<De&&(De=$t),Vn>Qt&&(Qt=Vn),$t>st&&(st=$t));if(In){this.left=De/this.pixelRatio,this.top=fe/this.pixelRatio,this.width=(st-De)/this.pixelRatio,this.height=(Qt-fe)/this.pixelRatio;var bn=document.createElement("canvas");bn.width=st-De,bn.height=Qt-fe,bn.getContext("2d").putImageData(this.canvasContext.getImageData(De,fe,st-De,Qt-fe),0,0),this.drawingImgUrl=bn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},X.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})},X.prototype.setColor=function(q){this.color=q,this.colorChanged(q)},X.prototype.setLineWidth=function(q){this.lineWidth=q},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({drawingImgUrl:this.drawingImgUrl},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){this.createVisual(),pe.prototype.restoreState.call(this,q),this.drawingImgUrl=q.drawingImgUrl,this.setDrawingImage()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setDrawingImage()},X.typeName="FreehandMarker",X.title="Freehand marker",X.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>',X}(ut),Be=function(pe){function X(q,oe,De){var fe=pe.call(this,q,De||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return fe.typeBoxes=[],fe.currentType=oe,fe.setCurrentType=fe.setCurrentType.bind(fe),fe}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var De=function(Qt){var In="both";switch(Qt){case 0:In="both";break;case 1:In="start";break;case 2:In="end";break;case 3:In="none"}var Vn=document.createElement("div");if(Vn.style.display="flex",Vn.style.flexGrow="2",Vn.style.alignItems="center",Vn.style.justifyContent="space-between",Vn.style.padding="5px",Vn.style.borderWidth="2px",Vn.style.borderStyle="solid",Vn.style.borderColor=In===fe.currentType?fe.uiStyleSettings.toolboxAccentColor:"transparent",Vn.addEventListener("click",function(){q.setCurrentType(In,Vn)}),oe.appendChild(Vn),In==="both"||In==="start"){var $t=document.createElement("div");$t.style.display="flex",$t.style.alignItems="center",$t.style.minHeight="20px",$t.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="`+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,$t.style.marginLeft="5px",Vn.appendChild($t)}var bn=document.createElement("div");bn.style.display="flex",bn.style.alignItems="center",bn.style.minHeight="20px",bn.style.flexGrow="2";var cn=document.createElement("hr");if(cn.style.minWidth="20px",cn.style.border="0px",cn.style.borderTop="3px solid "+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee"),cn.style.flexGrow="2",bn.appendChild(cn),Vn.appendChild(bn),In==="both"||In==="end"){var Br=document.createElement("div");Br.style.display="flex",Br.style.alignItems="center",Br.style.minHeight="20px",Br.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="`+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Br.style.marginRight="5px",Vn.appendChild(Br)}fe.typeBoxes.push(Vn)},fe=this,st=0;st<4;st++)De(st);return oe},X.prototype.setCurrentType=function(q,oe){var De=this;this.currentType=q,this.typeBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},X}(J),Ye=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.arrowType="end",fe.arrowBaseHeight=10,fe.arrowBaseWidth=10,fe.getArrowPoints=fe.getArrowPoints.bind(fe),fe.setArrowType=fe.setArrowType.bind(fe),fe.arrowTypePanel=new Be("Arrow type","end"),fe.arrowTypePanel.onArrowTypeChanged=fe.setArrowType,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.arrow1&&q!==this.arrow2)},X.prototype.getArrowPoints=function(q,oe){var De=this.arrowBaseWidth+2*this.strokeWidth,fe=this.arrowBaseHeight+2*this.strokeWidth;return q-De/2+","+(oe+fe/2)+" "+q+","+(oe-fe/2)+" "+(q+De/2)+","+(oe+fe/2)},X.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"&&this.createTips()},X.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 q=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(q,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var De=this.arrow2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(De,0)}},X.prototype.setArrowType=function(q){this.arrowType=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({arrowType:this.arrowType},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},X.typeName="ArrowMarker",X.title="Arrow marker",X.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',X}(Ut),Ce=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor=De.defaultFillColor,fe.strokeWidth=0,fe.fillPanel=new ve("Color",De.defaultColorSet,De.defaultFillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="CoverMarker",X.title="Cover marker",X.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',X}(ht),Le=function(pe){function X(q,oe,De,fe){var st=pe.call(this,q,fe||'<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 st.opacities=[],st.opacityBoxes=[],st.opacities=oe,st.currentOpacity=De,st.setCurrentOpacity=st.setCurrentOpacity.bind(st),st}return ce(X,pe),X.prototype.getUi=function(){var q=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(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="center",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentOpacity?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentOpacity(De,fe)}),oe.appendChild(fe);var st=document.createElement("div");st.innerText=100*De+"%",fe.appendChild(st),q.opacityBoxes.push(fe)}),oe},X.prototype.setCurrentOpacity=function(q,oe){var De=this;this.currentOpacity=q,this.opacityBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},X}(J),He=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.setOpacity=fe.setOpacity.bind(fe),fe.fillColor=De.defaultHighlightColor,fe.strokeWidth=0,fe.opacity=De.defaultHighlightOpacity,fe.fillPanel=new ve("Color",De.defaultColorSet,fe.fillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe.opacityPanel=new Le("Opacity",De.defaultOpacitySteps,fe.opacity),fe.opacityPanel.onOpacityChanged=fe.setOpacity,fe}return ce(X,pe),X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="HighlightMarker",X.title="Highlight marker",X.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>',X}(Ce),je='<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>',Ke=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.bgColor="transparent",fe.tipPosition={x:0,y:0},fe.tipBase1Position={x:0,y:0},fe.tipBase2Position={x:0,y:0},fe.tipMoving=!1,fe.color=De.defaultStrokeColor,fe.bgColor=De.defaultFillColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setBgColor=fe.setBgColor.bind(fe),fe.getTipPoints=fe.getTipPoints.bind(fe),fe.positionTip=fe.positionTip.bind(fe),fe.setTipPoints=fe.setTipPoints.bind(fe),fe.colorPanel=new ve("Text color",De.defaultColorSet,fe.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>'),fe.colorPanel.onColorChanged=fe.setColor,fe.bgColorPanel=new ve("Fill color",De.defaultColorSet,fe.bgColor,je),fe.bgColorPanel.onColorChanged=fe.setBgColor,fe.fontFamilyPanel=new Et("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe.tipGrip=new Je,fe.tipGrip.visual.transform.baseVal.appendItem(se.createTransform()),fe.controlBox.appendChild(fe.tipGrip.visual),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return pe.prototype.ownsTarget.call(this,q)||this.tipGrip.ownsTarget(q)||this.tip===q},X.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)},X.prototype.pointerDown=function(q,oe){this.state==="new"&&pe.prototype.pointerDown.call(this,q,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,q,oe)},X.prototype.pointerUp=function(q){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,pe.prototype.pointerUp.call(this,q);else{var oe=this.state==="creating";pe.prototype.pointerUp.call(this,q),this.setTipPoints(oe),this.positionTip()}},X.prototype.manipulate=function(q){if(this.tipMoving){var oe=this.unrotatePoint(q);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else pe.prototype.manipulate.call(this,q)},X.prototype.setBgColor=function(q){this.bgRectangle&&this.tip&&(se.setAttributes(this.bgRectangle,[["fill",q]]),se.setAttributes(this.tip,[["fill",q]])),this.bgColor=q,this.fillColorChanged(q)},X.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},X.prototype.setTipPoints=function(q){q===void 0&&(q=!1);var oe=Math.min(this.height/2,15),De=this.height/5;q&&(this.tipPosition={x:oe+De/2,y:this.height+20});var fe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?fe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+De,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?fe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-De,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?fe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-De,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-De},this.tipBase2Position={x:this.width,y:this.height-oe}):fe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+De,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-De})},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.positionTip()},X.prototype.positionTip=function(){se.setAttributes(this.tip,[["points",this.getTipPoints()]]);var q=this.tipGrip.visual.transform.baseVal.getItem(0);q.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(q,0)},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),X.prototype.select=function(){this.positionTip(),pe.prototype.select.call(this)},X.prototype.getState=function(){var q=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,pe.prototype.restoreState.call(this,q),this.createTip(),this.setTipPoints()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.tipPosition={x:this.tipPosition.x*q,y:this.tipPosition.y*oe},this.positionTip()},X.typeName="CalloutMarker",X.title="Callout marker",X.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>',X}(jt),it=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor="transparent",fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.opacity=1,fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.fillColor=De.defaultFillColor,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setFillColor=fe.setFillColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.setOpacity=fe.setOpacity.bind(fe),fe.createVisual=fe.createVisual.bind(fe),fe.strokePanel=new ve("Line color",ue(De.defaultColorSet,["transparent"]),De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.fillPanel=new ve("Fill color",ue(De.defaultColorSet,["transparent"]),fe.fillColor,je),fe.fillPanel.onColorChanged=fe.setFillColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new _t("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe.opacityPanel=new Le("Opacity",De.defaultOpacitySteps,fe.opacity),fe.opacityPanel.onOpacityChanged=fe.setOpacity,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual)},X.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.setSize()},X.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()]])},X.prototype.pointerUp=function(q){pe.prototype.pointerUp.call(this,q),this.setSize()},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(q),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;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,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize()},X.typeName="EllipseMarker",X.title="Ellipse marker",X.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>',X}(ut),Ct=function(pe){function X(q,oe,De){return pe.call(this,q,oe,De)||this}return ce(X,pe),Object.defineProperty(X.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.tip1&&q!==this.tip2)},X.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"&&this.createTips()},X.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 q=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(q,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var De=this.tip2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(De,0)}},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q),this.createTips(),this.adjustVisual()},X.typeName="MeasurementMarker",X.title="Measurement marker",X.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>',X}(Ut),Ft=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokePanel.colors=De.defaultColorSet,fe.fillColor="transparent",fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="EllipseFrameMarker",X.title="Ellipse frame marker",X.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>',X}(it),Jt=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(X){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(X)||(this.undoStack.push(X),JSON.stringify(this.lastRedoStep)!==JSON.stringify(X)&&this.redoStack.splice(0,this.redoStack.length))},pe.prototype.replaceLastUndoStep=function(X){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=X)},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 X=this.undoStack.pop();return X!==void 0&&this.redoStack.push(X),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}(),Ht=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.curveX=0,fe.curveY=0,fe.manipulationStartCurveX=0,fe.manipulationStartCurveY=0,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.positionGrips=fe.positionGrips.bind(fe),fe.addControlGrips=fe.addControlGrips.bind(fe),fe.adjustVisual=fe.adjustVisual.bind(fe),fe.setupControlBox=fe.setupControlBox.bind(fe),fe.resize=fe.resize.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new _t("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorCurve&&q!==this.visibleCurve&&!this.curveGrip.ownsTarget(q))},X.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},X.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=q.x,this.curveY=q.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},X.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()]]))},X.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)},X.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,pe.prototype.addControlGrips.call(this)},X.prototype.positionGrips=function(){pe.prototype.positionGrips.call(this);var q=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-q/2,this.curveY-q/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()))},X.prototype.manipulate=function(q){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+q.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+q.y-this.manipulationStartY),pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){this.activeGrip===this.curveGrip&&(this.curveX=q.x,this.curveY=q.y),pe.prototype.resize.call(this,q),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual()},X.prototype.scale=function(q,oe){this.curveX=this.curveX*q,this.curveY=this.curveY*oe,pe.prototype.scale.call(this,q,oe)},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},X.typeName="CurveMarker",X.title="Curve marker",X.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>',X}(pt),Ot=function(){function pe(X,q){q===void 0&&(q=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=X,this.cancelable=q}return Object.defineProperty(pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),pe.prototype.preventDefault=function(){this._defaultPrevented=!0},pe}(),Fe=function(pe){function X(q,oe,De){var fe=pe.call(this,q,!1)||this;return fe.dataUrl=oe,fe.state=De,fe}return ce(X,pe),X}(Ot),at=function(pe){function X(q,oe,De){De===void 0&&(De=!1);var fe=pe.call(this,q,De)||this;return fe.marker=oe,fe}return ce(X,pe),X}(Ot),ot=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(X,q){this[X].push(q)},pe.prototype.removeEventListener=function(X,q){var oe=this[X].indexOf(q);oe>-1&&this[X].splice(oe,1)},pe}(),Pe=function(){function pe(X){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 Jt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=pe.instanceCounter++,this.styles=new ae(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=X,this.targetRoot=document.body,this.width=X.clientWidth,this.height=X.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[Ve,Ze,Ye,jt,Ft,it,He,Ke,Ct,Ce,Ut,Ht]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ve,Ze,Ye,jt,it,He,Ke]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ve,Ze,Ye,jt,He]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(X){var q=this;this._availableMarkerTypes.splice(0),X.forEach(function(oe){if(typeof oe=="string"){var De=q.ALL_MARKER_TYPES.find(function(fe){return fe.typeName===oe});De!==void 0&&q._availableMarkerTypes.push(De)}else q._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(X){this._zoomLevel=X,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(),$.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},pe.prototype.show=function(){var X=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(q){return q(new Ot(X))})},pe.prototype.render=function(){return be(this,void 0,void 0,function(){var X;return ye(this,function(q){switch(q.label){case 0:return this.setCurrentMarker(),(X=new me).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.markersOnly=this.renderMarkersOnly,X.width=this.renderWidth,X.height=this.renderHeight,[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return q.sent(),[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,q.sent()]}})})},pe.prototype.close=function(X){var q=this;if(X===void 0&&(X=!1),this.isOpen){var oe=!1;X||this.eventListeners.beforeclose.forEach(function(De){var fe=new Ot(q,!0);De(fe),fe.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(De){return De(new Ot(q))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var X,q=[],oe=0;oe<arguments.length;oe++)q[oe]=arguments[oe];(X=this._availableMarkerTypes).push.apply(X,q)},pe.prototype.addRenderEventListener=function(X){this.addEventListener("render",function(q){X(q.dataUrl,q.state)})},pe.prototype.removeRenderEventListener=function(X){},pe.prototype.addCloseEventListener=function(X){this.addEventListener("close",function(){X()})},pe.prototype.removeCloseEventListener=function(X){},pe.prototype.setupResizeObserver=function(){var X=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){X.resize(X.target.clientWidth,X.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return X.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},pe.prototype.onPopupTargetResize=function(){var X=1*this.target.clientWidth/this.target.clientHeight,q=this.editorCanvas.clientWidth/X>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*X:this.editorCanvas.clientWidth,oe=q<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/X;this.resize(q,oe)},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.resize=function(X,q){this._isResizing=!0;var oe=X/this.imageWidth,De=q/this.imageHeight;this.imageWidth=Math.round(X),this.imageHeight=Math.round(q),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,De),this._isResizing=!1},pe.prototype.scaleMarkers=function(X,q){var oe,De=this;this._currentMarker&&this._currentMarker instanceof jt?this._currentMarker.scale(X,q):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(fe){fe!==De._currentMarker&&fe.scale(X,q)}),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 X=this.editingTarget.getBoundingClientRect(),q=this.editorCanvas.getBoundingClientRect();this.left=X.left-q.left,this.top=X.top-q.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 X,q=[],oe=0;oe<arguments.length;oe++)q[oe]=arguments[oe];this.defs=se.createDefs(),this.addDefsToImage(),(X=this.defs).append.apply(X,q)},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 X=document.createElement("a");X.href="https://markerjs.com/",X.target="_blank",X.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>',X.title="Powered by marker.js",X.style.display="grid",X.style.alignItems="center",X.style.justifyItems="center",X.style.padding="3px",X.style.width="20px",X.style.height="20px",this.logoUI.appendChild(X),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 X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"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 te(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 Q(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(X){this.markerImage.removeChild(X.container),this.markers.indexOf(X)>-1&&this.markers.splice(this.markers.indexOf(X),1),X.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(X,q){if(X==="marker"&&q!==void 0)this.createNewMarker(q);else if(X==="action")switch(q){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 X=this;if(this._currentMarker!==void 0){var q=!1;if(this.eventListeners.markerbeforedelete.forEach(function(De){var fe=new at(X,X._currentMarker,!0);De(fe),fe.defaultPrevented&&(q=!0)}),!q){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(De){return De(new at(X,oe))})}}},pe.prototype.clear=function(){var X=this,q=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(st){var Qt=new at(X,void 0,!0);st(Qt),Qt.defaultPrevented&&(q=!0)}),!q)){this.setCurrentMarker();for(var oe=function(st){var Qt=De.markers[st];De.setCurrentMarker(De.markers[st]),De._currentMarker.dispose(),De.markerImage.removeChild(De._currentMarker.container),De.markers.splice(De.markers.indexOf(De._currentMarker),1),De.eventListeners.markerdelete.forEach(function(In){return In(new at(X,Qt))})},De=this,fe=this.markers.length-1;fe>=0;fe--)oe(fe);this.addUndoStep()}},Object.defineProperty(pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),pe.prototype.showNotesEditor=function(){var X;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=(X=this._currentMarker.notes)!==null&&X!==void 0?X:"",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 X=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var q=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===q.width&&oe.height===q.height){var De=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(q),De<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(fe){return fe(new Ot(X))})}else this.undoRedoManager.replaceLastUndoStep(q),this.eventListeners.statechange.forEach(function(fe){return fe(new Ot(X))})}},pe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},pe.prototype.undoStep=function(){var X=this,q=this.undoRedoManager.undo();q!==void 0&&(this.restoreState(q),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Ot(X))}))},pe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},pe.prototype.redoStep=function(){var X=this,q=this.undoRedoManager.redo();q!==void 0&&(this.restoreState(q),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Ot(X))}))},pe.prototype.stepZoom=function(){var X=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=X<this.zoomSteps.length-1?this.zoomSteps[X+1]:this.zoomSteps[0]},pe.prototype.panTo=function(X){this.contentDiv.scrollBy({left:this.prevPanPoint.x-X.x,top:this.prevPanPoint.y-X.y}),this.prevPanPoint=X},pe.prototype.startRenderAndClose=function(){return be(this,void 0,void 0,function(){var X,q,oe=this;return ye(this,function(De){switch(De.label){case 0:return[4,this.render()];case 1:return X=De.sent(),q=this.getState(),this.eventListeners.render.forEach(function(fe){return fe(new Fe(oe,X,q))}),this.close(!0),[2]}})})},pe.prototype.getState=function(X){X===!0&&this.setCurrentMarker();var q={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return q.markers.push(oe.getState())}),q},pe.prototype.restoreState=function(X){var q=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);X.markers.forEach(function(oe){var De=q._availableMarkerTypes.find(function(st){return st.typeName===oe.typeName});if(De!==void 0){var fe=q.addNewMarker(De);fe.restoreState(oe),q.markers.push(fe)}}),X.width&&X.height&&(X.width!==this.imageWidth||X.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/X.width,this.imageHeight/X.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new Ot(q))})},pe.prototype.addNewMarker=function(X){var q=se.createGroup();return this.markerImage.appendChild(q),new X(q,this.overlayContainer,this.settings)},pe.prototype.createNewMarker=function(X){var q,oe=this;(q=typeof X=="string"?this._availableMarkerTypes.find(function(De){return De.typeName===X}):X)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(q),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(q.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(De){return De(new at(oe,oe._currentMarker))}))},pe.prototype.markerCreated=function(X){var q=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(X),this.setCurrentMarker(X),X instanceof Ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new at(q,q._currentMarker))})},pe.prototype.colorChanged=function(X){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=X,this.settings.defaultStrokeColor=X)},pe.prototype.fillColorChanged=function(X){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=X)},pe.prototype.markerStateChanged=function(X){var q=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new at(q,X))})},pe.prototype.setCurrentMarker=function(X){var q=this;this._currentMarker!==X&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new at(q,q._currentMarker))})),this._currentMarker=X,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 at(q,q._currentMarker))}))},pe.prototype.onPointerDown=function(X){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||X.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var q=this.markers.find(function(oe){return oe.ownsTarget(X.target)});q!==void 0?(this.setCurrentMarker(q),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(X.clientX,X.clientY),X.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:X.clientX,y:X.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(X.clientX,X.clientY))},pe.prototype.onDblClick=function(X){if(this._isFocused||this.focus(),this.mode==="select"){var q=this.markers.find(function(oe){return oe.ownsTarget(X.target)});q!==void 0&&q!==this._currentMarker&&this.setCurrentMarker(q),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(X.clientX,X.clientY),X.target):this.setCurrentMarker()}},pe.prototype.onPointerMove=function(X){this.touchPoints!==1&&X.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||X.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(X.clientX,X.clientY)):this.zoomLevel>1&&this.panTo({x:X.clientX,y:X.clientY}))},pe.prototype.onPointerUp=function(X){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(X.clientX,X.clientY)),this.isDragging=!1,this.addUndoStep()},pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},pe.prototype.onKeyUp=function(X){this._currentMarker===void 0||this.notesArea!==void 0||X.key!=="Delete"&&X.key!=="Backspace"||this.deleteSelectedMarker()},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.markerImage.getBoundingClientRect();return{x:(X-oe.left)/this.zoomLevel,y:(q-oe.top)/this.zoomLevel}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"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(X){$.addKey(X)},pe.prototype.addEventListener=function(X,q){this.eventListeners.addEventListener(X,q)},pe.prototype.removeEventListener=function(X,q){this.eventListeners.removeEventListener(X,q)},pe.prototype.renderState=function(X){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(X),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),pe.prototype.focus=function(){var X=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(q){return q(new Ot(X))}))},pe.prototype.blur=function(){var X=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(q){return q(new Ot(X))}))},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 Qe=function(pe,X){return(Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,oe){q.__proto__=oe}||function(q,oe){for(var De in oe)Object.prototype.hasOwnProperty.call(oe,De)&&(q[De]=oe[De])})(pe,X)};function ft(pe,X){if(typeof X!="function"&&X!==null)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function q(){this.constructor=pe}Qe(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function bt(pe,X,q,oe){return new(q||(q=Promise))(function(De,fe){function st(Vn){try{In(oe.next(Vn))}catch($t){fe($t)}}function Qt(Vn){try{In(oe.throw(Vn))}catch($t){fe($t)}}function In(Vn){var $t;Vn.done?De(Vn.value):($t=Vn.value,$t instanceof q?$t:new q(function(bn){bn($t)})).then(st,Qt)}In((oe=oe.apply(pe,X||[])).next())})}function Dt(pe,X){var q,oe,De,fe,st={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return fe={next:Qt(0),throw:Qt(1),return:Qt(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Qt(In){return function(Vn){return function($t){if(q)throw new TypeError("Generator is already executing.");for(;st;)try{if(q=1,oe&&(De=2&$t[0]?oe.return:$t[0]?oe.throw||((De=oe.return)&&De.call(oe),0):oe.next)&&!(De=De.call(oe,$t[1])).done)return De;switch(oe=0,De&&($t=[2&$t[0],De.value]),$t[0]){case 0:case 1:De=$t;break;case 4:return st.label++,{value:$t[1],done:!1};case 5:st.label++,oe=$t[1],$t=[0];continue;case 7:$t=st.ops.pop(),st.trys.pop();continue;default:if(!(De=st.trys,(De=De.length>0&&De[De.length-1])||$t[0]!==6&&$t[0]!==2)){st=0;continue}if($t[0]===3&&(!De||$t[1]>De[0]&&$t[1]<De[3])){st.label=$t[1];break}if($t[0]===6&&st.label<De[1]){st.label=De[1],De=$t;break}if(De&&st.label<De[2]){st.label=De[2],st.ops.push($t);break}De[2]&&st.ops.pop(),st.trys.pop();continue}$t=X.call(pe,st)}catch(bn){$t=[6,bn],oe=0}finally{q=De=0}if(5&$t[0])throw $t[1];return{value:$t[0]?$t[1]:void 0,done:!0}}([In,Vn])}}}var Mt=function(){function pe(){}return pe.addKey=function(X){pe.key=X},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}(),ct=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(X,q){for(var oe=0,De=q;oe<De.length;oe++){var fe=De[oe],st=fe[0],Qt=fe[1];X.setAttribute(st,Qt)}},pe.createRect=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","rect");return De.setAttribute("width",X.toString()),De.setAttribute("height",q.toString()),oe&&pe.setAttributes(De,oe),De},pe.createLine=function(X,q,oe,De,fe){var st=document.createElementNS("http://www.w3.org/2000/svg","line");return st.setAttribute("x1",X.toString()),st.setAttribute("y1",q.toString()),st.setAttribute("x2",oe.toString()),st.setAttribute("y2",De.toString()),fe&&pe.setAttributes(st,fe),st},pe.createPolygon=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",X),q&&pe.setAttributes(oe,q),oe},pe.createCircle=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(X/2).toString()),oe.setAttribute("cy",(X/2).toString()),oe.setAttribute("r",X.toString()),q&&pe.setAttributes(oe,q),oe},pe.createEllipse=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return De.setAttribute("cx",(X/2).toString()),De.setAttribute("cy",(q/2).toString()),De.setAttribute("rx",(X/2).toString()),De.setAttribute("ry",(q/2).toString()),oe&&pe.setAttributes(De,oe),De},pe.createGroup=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","g");return X&&pe.setAttributes(q,X),q},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(X,q,oe,De,fe,st,Qt){var In=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(In,[["id",X],["orient",q],["markerWidth",oe.toString()],["markerHeight",De.toString()],["refX",fe.toString()],["refY",st.toString()]]),In.appendChild(Qt),In},pe.createText=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","text");return q.setAttribute("x","0"),q.setAttribute("y","0"),X&&pe.setAttributes(q,X),q},pe.createTSpan=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=X,q&&pe.setAttributes(oe,q),oe},pe.createImage=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","image");return X&&pe.setAttributes(q,X),q},pe.createPoint=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=X,oe.y=q,oe},pe.createPath=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",X),q&&pe.setAttributes(oe,q),oe},pe.createElement=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg",X);return q&&pe.setAttributes(oe,q),oe},pe.getHollowRectanglePath=function(X,q,oe,De,fe,st,Qt,In){return"M"+X+","+q+"V"+(q+De)+"H"+(X+oe)+"V"+q+"H"+fe+"V"+st+"H"+(fe+Qt)+"V"+(st+In)+"H"+fe+"V"+q+"Z"},pe}(),Lt=function(){function pe(X){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+X+"_"}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(X){return this.styleSheet===void 0&&this.addStyleSheet(),X.name=""+this.classNamePrefix+X.localName,this.classes.push(X),this.styleSheet.sheet.insertRule("."+X.name+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length),X},pe.prototype.addRule=function(X){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(X),this.styleSheet.sheet.insertRule(X.selector+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var X;this.styleSheet=document.createElement("style"),((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).appendChild(this.styleSheet),this.addRule(new Zt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Zt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Zt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new An("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new An("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},pe.prototype.removeStyleSheet=function(){var X;this.styleSheet&&(((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Zt=function(pe,X){this.selector=pe,this.style=X},An=function(pe,X){this.localName=pe,this.style=X},on=function(){function pe(){this.blocks=[],this.display=""}return pe.prototype.addButtonBlock=function(X){X.className=this.blockClassName,X.buttonClassName=this.buttonClassName,X.buttonColorsClassName=this.buttonColorsClassName,X.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(X)},pe.prototype.addElementBlock=function(X){X.className===void 0&&(X.className=this.blockClassName),this.blocks.push(X)},pe.prototype.getUI=function(){var X=document.createElement("div");return X.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,X.style.display=this.display,this.blocks.forEach(function(q){return X.appendChild(q.getUI())}),X},pe}(),Tn=function(){function pe(){}return pe.prototype.getUI=function(){var X=document.createElement("div");if(X.className=this.className,this.minWidth!==void 0&&(X.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":X.style.justifyContent="flex-start";break;case"center":X.style.justifyContent="center";break;case"end":X.style.justifyContent="flex-end"}return X.style.whiteSpace="nowrap",X},pe}(),Ln=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.buttons=[],q}return ft(X,pe),X.prototype.addButton=function(q){q.className=this.buttonClassName,q.colorsClassName=this.buttonColorsClassName,q.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(q)},X.prototype.getUI=function(){var q=pe.prototype.getUI.call(this);return this.buttons.forEach(function(oe){return q.appendChild(oe.getUI())}),q},X}(Tn),Nn=function(){function pe(X,q){this._isActive=!1,this._isHidden=!1,this._icon=X,this.title=q,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(pe.prototype,"icon",{get:function(){return this._icon},set:function(X){this._icon=X,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isActive",{get:function(){return this._isActive},set:function(X){this._isActive=X,this.adjustClassName()},enumerable:!1,configurable:!0}),pe.prototype.getUI=function(){var X=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 X.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}(),ln=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.elements=[],q}return ft(X,pe),X.prototype.addElement=function(q){this.elements.push(q)},X.prototype.getUI=function(){var q=pe.prototype.getUI.call(this);return this.elements.forEach(function(oe){return q.appendChild(oe)}),q},X}(Tn),ar=function(){function pe(X,q){this.horizontal=X,this.vertical=q}return Object.defineProperty(pe.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),pe.prototype.getVerticalLength=function(X){return X/this.ratio},pe.prototype.getHorizontalLength=function(X){return X*this.ratio},pe}(),xr=function(){function pe(){}return pe.getIcon=function(X,q){if(X>0&&q>0){var oe=new ar(X,q),De=oe.ratio>=1?20:oe.getHorizontalLength(20),fe=oe.ratio<1?20:oe.getVerticalLength(20),st=document.createElementNS("http://www.w3.org/2000/svg","svg");st.setAttribute("xmlns","http://www.w3.org/2000/svg"),st.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(st);var Qt=ct.createDefs();st.appendChild(Qt);var In=ct.createElement("clipPath",[["id","text-bg-clip"]]);Qt.appendChild(In);var Vn=ct.createPath(ct.getHollowRectanglePath((24-De)/2,(24-fe)/2,De,fe,(24-De)/2+2,(24-fe)/2+2,De-4,fe-4));st.appendChild(Vn);var $t=ct.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);$t.appendChild(ct.createTSpan(X+":"+q)),st.appendChild($t);var bn=$t.getBBox();ct.setAttributes($t,[["x",((24-bn.width)/2).toString()],["y",((24-bn.height)/2-bn.y).toString()]]);var cn=ct.createPath(ct.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(bn.width))/2,(24-Math.ceil(bn.height))/2,Math.ceil(bn.width),Math.ceil(bn.height)));return In.appendChild(cn),ct.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(st),st.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}(),Cr=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe)||this;return fe.isDropdownOpen=!1,fe.onClick=fe.dropdownButtonClicked,fe.dropdownButtons=De,fe}return ft(X,pe),X.prototype.setupDropdown=function(){var q=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=q.className,oe.colorsClassName=q.colorsClassName,q.dropdownBlock.appendChild(oe.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},X.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},X.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},X.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},X.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},X.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},X}(Nn),Yn=function(){function pe(X,q){this.GRIP_SIZE=10,this.color=X,this.fillColor=q,this.visual=ct.createGroup(),this.visual.appendChild(ct.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ct.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(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe.prototype.setCenter=function(X,q){this.visual.childNodes.forEach(function(oe){return ct.setAttributes(oe,[["cx",X.toString()],["cy",q.toString()]])})},pe}(),Or=function(){function pe(X,q,oe,De){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=X,this.canvasHeight=q,this.margin=oe,this.container=De,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(X){this._aspectRatio=X,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.gridContainer&&ct.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(X){this._zoomFactor=X,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),pe.prototype.open=function(){var X=this;this.cropShadeElement=ct.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=ct.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var q=0;q<this.numberOfGridLines;q++)this.horizontalGridLines.push(ct.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(ct.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(oe){return X.gridContainer.appendChild(oe)}),this.verticalGridLines.forEach(function(oe){return X.gridContainer.appendChild(oe)}),this.cropRectElement=ct.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Yn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Yn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Yn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Yn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},pe.prototype.setCropRectangle=function(X){this.cropRect=X;var q=Object.assign({},this.cropRect);this.zoomFactor!==1&&(q.width=this.cropRect.width*this.zoomFactor,q.height=this.cropRect.height*this.zoomFactor,q.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-q.width/2,q.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-q.height/2),ct.setAttributes(this.cropRectElement,[["x",q.x.toString()],["y",q.y.toString()],["width",q.width.toString()],["height",q.height.toString()]]);var oe=q.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(fe,st){var Qt=q.y+oe*(st+1);ct.setAttributes(fe,[["x1",""+q.x],["y1",""+Qt],["x2",""+(q.x+q.width)],["y2",""+Qt]])});var De=q.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(fe,st){var Qt=q.x+De*(st+1);ct.setAttributes(fe,[["x1",""+Qt],["y1",""+q.y],["x2",""+Qt],["y2",""+(q.y+q.height)]])}),ct.setAttributes(this.cropShadeElement,[["d",ct.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,q.x,q.y,q.width,q.height)]]),this.topLeftGrip.setCenter(q.x,q.y),this.topRightGrip.setCenter(q.x+q.width,q.y),this.bottomLeftGrip.setCenter(q.x,q.y+q.height),this.bottomRightGrip.setCenter(q.x+q.width,q.y+q.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(X,q){var oe=this.container.getBoundingClientRect();return{x:X-oe.left+this.margin,y:q-oe.top+this.margin}},pe.prototype.onPointerDown=function(X){this.container.setPointerCapture(X.pointerId),this.previousPoint=this.clientToLocalCoordinates(X.clientX,X.clientY),this.cropRectElement===X.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(X.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(X.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(X.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(X.target)&&(this.activeGrip=this.bottomRightGrip)},pe.prototype.onPointerMove=function(X){if(this.isMoving)this.move(this.clientToLocalCoordinates(X.clientX,X.clientY));else if(this.activeGrip){var q=this.clientToLocalCoordinates(X.clientX,X.clientY);this.resize(q)}X.preventDefault()},pe.prototype.onPointerUp=function(X){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(X.pointerId)},pe.prototype.move=function(X){var q=X.x-this.previousPoint.x,oe=X.y-this.previousPoint.y;this.zoomFactor!==1&&(q=-q/this.zoomFactor,oe=-oe/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+q),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=X},pe.prototype.resize=function(X){var q=Object.assign({},this.cropRect),oe=X.x-this.previousPoint.x,De=X.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:q.x+oe<this.margin&&(oe=this.margin-q.x),q.x+=oe,q.width=this.cropRect.x+this.cropRect.width-q.x;break;case this.bottomRightGrip:case this.topRightGrip:q.width+oe>this.canvasWidth*this.zoomFactor&&(oe=this.canvasWidth*this.zoomFactor-q.width),q.width+=oe}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(q.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(oe),q.height=this.aspectRatio.getVerticalLength(q.width)):(q.y+=De,q.height=this.cropRect.y+this.cropRect.height-q.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?q.height=this.aspectRatio.getVerticalLength(q.width):q.height+=De}q.width<10&&(q.x=this.cropRect.x,q.width=10),q.height<10&&(q.y=this.cropRect.y,q.height=10),this.previousPoint=X,q.x>=this.margin&&q.y>=this.margin&&q.x-this.margin+q.width<=this.canvasWidth&&q.y-this.margin+q.height<=this.canvasHeight&&(this.cropRect=q,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 X=this.cropRect.x+this.cropRect.width/2,q=this.cropRect.y+this.cropRect.height/2,oe=this.aspectRatio.getHorizontalLength(this.cropRect.height),De=this.aspectRatio.getVerticalLength(this.cropRect.width);oe/this.canvasWidth<De/this.canvasHeight?this.cropRect.width=oe:this.cropRect.height=De,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=X-this.cropRect.width/2,this.cropRect.y=q-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(X,q,oe,De,fe,st){var Qt=oe/X,In=De/q;return{x:(fe.x-st)*Qt+st,y:(fe.y-st)*In+st,width:fe.width*Qt,height:fe.height*In}},pe.prototype.scaleCanvas=function(X,q){var oe=this.getRescaledRect(this.canvasWidth,this.canvasHeight,X,q,this.cropRect,this.margin);this.canvasWidth=X,this.canvasHeight=q,this.onCropChange&&this.onCropChange(oe),this.setCropRectangle(oe)},pe}(),cr=function(){function pe(X){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=X,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(X){this._angle=X,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(X){this.controlContainer.setPointerCapture(X.pointerId),this.isDragging=!0,this.previousPoint={x:X.clientX,y:X.clientY}},pe.prototype.onPointerMove=function(X){this.isDragging&&(this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.previousPoint.x=X.clientX)},pe.prototype.onPointerUp=function(X){this.isDragging&&this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(X.pointerId)},pe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var X=this.angleLabelText.getBBox();ct.setAttributes(this.angleLabelElement,[["x",((this.width-X.width)/2).toString()],["y",(this.height/2).toString()]])}},pe.prototype.positionScaleShape=function(){if(this.scaleShape){var X=this.scaleShape.transform.baseVal.getItem(0);X.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(X,0)}},pe.prototype.getVisual=function(){var X=document.createElementNS("http://www.w3.org/2000/svg","svg");X.setAttribute("xmlns","http://www.w3.org/2000/svg"),X.setAttribute("width",this.width+"px"),X.setAttribute("height",this.height+"px"),X.setAttribute("viewBox","0 0 "+this.width+" "+this.height),X.style.flexShrink="0",document.body.appendChild(X);for(var q="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,oe=1;oe<=this.width/5+10;oe++){var De=oe%5==0?this.height/3:this.height/6;q+="h4v"+-De+"h1v"+De}q+="v1H0Z",this.scaleShape=ct.createPath(q);var fe=ct.createTransform();this.scaleShape.transform.baseVal.appendItem(fe),X.appendChild(this.scaleShape),this.angleLabelElement=ct.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=ct.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var st=ct.createTSpan("");return st.innerHTML="&deg;",this.angleLabelElement.appendChild(st),X.appendChild(this.angleLabelElement),document.body.removeChild(X),X},pe}(),sn=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(X,q,oe,De,fe,st,Qt){var In=this;return new Promise(function(Vn){var $t=document.createElement("canvas");$t.width=X.width.baseVal.value-2*De,$t.height=X.height.baseVal.value-2*De;var bn=1,cn=1;In.naturalSize===!0?(bn=q.naturalWidth/(X.width.baseVal.value-2*De)/st,cn=q.naturalHeight/(X.height.baseVal.value-2*De)/Qt,$t.width=q.naturalWidth/st,$t.height=q.naturalHeight/Qt):In.width!==void 0&&In.height!==void 0&&(bn=In.width/oe.width,cn=In.height/oe.height,$t.width*=bn,$t.height*=cn);var Br=$t.getContext("2d");Br.translate($t.width/2,$t.height/2),Br.rotate(fe*Math.PI/180),Br.scale(st,Qt),Br.translate(-$t.width/2,-$t.height/2),Br.drawImage(q,0,0,$t.width,$t.height);var ra=document.createElement("canvas");ra.width=oe.width*bn,ra.height=oe.height*cn,ra.getContext("2d").putImageData(Br.getImageData((oe.x-De)*bn,(oe.y-De)*cn,oe.width*bn,oe.height*cn),0,0),Vn(ra.toDataURL(In.imageType,In.imageQuality))})},pe}(),qt=function(){function pe(X){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 Lt(this.instanceNo),this.target=X,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(X){this._zoomToCropEnabled=X,X?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(X){this._gridLines=X,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(X){this._rotationAngle=X,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 X;return(X=this._aspectRatio)!==null&&X!==void 0?X:this.aspectRatios[0]},set:function(X){this._aspectRatio=X},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(X){X===void 0&&(X=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),X||this.closeEventListeners.forEach(function(q){return q()}),this._isOpen=!1)},pe.prototype.addRenderEventListener=function(X){this.renderEventListeners.push(X)},pe.prototype.removeRenderEventListener=function(X){this.renderEventListeners.indexOf(X)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(X),1)},pe.prototype.addCloseEventListener=function(X){this.closeEventListeners.push(X)},pe.prototype.removeCloseEventListener=function(X){this.closeEventListeners.indexOf(X)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(X),1)},pe.prototype.setupResizeObserver=function(){var X=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){X.resize(X.target.clientWidth,X.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 X=1*this.target.clientWidth/this.target.clientHeight,q=this.contentDiv.clientWidth/X>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*X:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,oe=q+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/X;this.resize(q,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",ct.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(X,q){this.imageWidth=Math.round(X),this.imageHeight=Math.round(q),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 X=document.createElement("canvas");X.width=this.target.naturalWidth,X.height=this.target.naturalHeight,X.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var q=X.toDataURL();ct.setAttributes(this.editingTarget,[["href",q]]),this.setEditingTargetSize()},pe.prototype.setTopLeft=function(){var X=this.target.getBoundingClientRect(),q=this.editorCanvas.getBoundingClientRect();this.left=X.left-q.left-this.CANVAS_MARGIN,this.top=X.top-q.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=ct.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=ct.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=ct.createGroup(),this.editingTargetRotationScaleContainer=ct.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var X=ct.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(X);var q=ct.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(q),this.editingTargetContainer=ct.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=ct.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Or(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 X=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,q=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=X+"px "+q+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-X+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-q+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(X){this.cropRect=X,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 X=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,q=this.target.offsetTop>X+this.CANVAS_MARGIN?this.target.offsetTop-(X+this.CANVAS_MARGIN):0;this.coverDiv.style.top=q+"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 X=this;this.topToolbar=new on,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 q=new Ln;q.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(q);var oe=[];this.aspectRatios.forEach(function(cn){var Br=new Nn(xr.getIcon(cn.horizontal,cn.vertical),cn.horizontal===0&&cn.vertical===0?"FREE":cn.horizontal+":"+cn.vertical);Br.onClick=function(){return X.ratioButtonClicked(cn)},oe.push(Br)}),this.aspectRatioButton=new Cr(xr.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,q.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var De=new Nn('<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");De.isActive=this.isGridVisible,De.onClick=function(){X.isGridVisible=!X.isGridVisible,De.isActive=X.isGridVisible},q.addButton(De);var fe=new Nn('<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(fe.isActive=this.zoomToCropEnabled,fe.onClick=function(){X.zoomToCropEnabled=!X.zoomToCropEnabled,fe.isActive=X.zoomToCropEnabled},q.addButton(fe),!Mt.isLicensed){var st=new ln;this.topToolbar.addElementBlock(st);var Qt=document.createElement("div");Qt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var In=document.createElement("a");In.style.color="currentColor",In.href="https://markerjs.com/products/cropro",In.target="_blank",In.innerHTML='<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>',Qt.appendChild(In),st.addElement(Qt)}var Vn=new Ln;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var $t=new Nn('<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");$t.onClick=this.startRenderAndClose,Vn.addButton($t),this.styles.settings.toolbarOkButtonStyleColorsClassName&&($t.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var bn=new Nn('<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");bn.onClick=this.close,Vn.addButton(bn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(bn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var X=this;this.bottomToolbar=new on,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 q=new Ln;q.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(q);var oe=new Nn('<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,q.addButton(oe);var De=new Nn('<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");De.onClick=this.rotateRightButtonClicked,q.addButton(De);var fe=new ln;fe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(fe),this.straightener=new cr("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Vn){X.rotateBy(Vn),X.straightener.angle=X.rotationAngle},fe.addElement(this.straightener.getUI());var st=new Ln;st.minWidth=2*this.toolbarHeight+"px",st.contentAlign="end",this.bottomToolbar.addButtonBlock(st);var Qt=new Nn('<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");Qt.onClick=this.flipHorizontallyButtonClicked,st.addButton(Qt);var In=new Nn('<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");In.onClick=this.flipVerticallyButtonClicked,st.addButton(In)},pe.prototype.ratioButtonClicked=function(X){this.aspectRatio=X,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=xr.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 ar(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(X){if(X){var q=this.cropLayer.getRescaledRect(X.width,X.height,this.imageWidth,this.imageHeight,X.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(q),this.cropRectChanged(q),this.flippedHorizontally=X.flippedHorizontally,this.flippedVertically=X.flippedVertically,this.applyFlip(),this.rotationAngle=X.rotationAngle,this.applyRotation()}},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.cropImage.getBoundingClientRect();return{x:X-oe.left,y:q-oe.top}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var X=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=X+"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 X=this.rotationAngle-90;this.rotationAngle%90!=0&&(X+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateRightButtonClicked=function(){var X=this.rotationAngle+90;this.rotationAngle%90!=0&&(X-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateTo=function(X){X=(X=X>180?X-360:X)<=-180?X+360:X,this.rotationAngle=X,this.applyRotation()},pe.prototype.rotateBy=function(X){this.rotateTo((this.rotationAngle+X)%360)},pe.prototype.applyRotation=function(){var X=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var q=this.editingTargetRotationContainer.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(q,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=X},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 bt(this,void 0,void 0,function(){var X,q;return Dt(this,function(oe){switch(oe.label){case 0:return[4,this.render()];case 1:return X=oe.sent(),q=this.getState(),this.renderEventListeners.forEach(function(De){return De(X,q)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return bt(this,void 0,void 0,function(){var X;return Dt(this,function(q){switch(q.label){case 0:return(X=new sn).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.width=this.renderWidth,X.height=this.renderHeight,this.unzoomFromCrop(),ct.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,X.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 q.sent(),[4,X.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,q.sent()]}})})},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new An("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 An("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new An("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var X=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new An("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*X)+`px;
height: `+(this.toolbarHeight-2*X)+`px;
padding: `+X+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new An("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new An("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new Zt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new Zt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new An("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 An("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new An("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 An("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*X)+`px;
padding: `+X+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new An("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},pe.instanceCounter=0,pe}(),On=o("8hTe"),Ir=o.n(On),Ar=/<pre[^>]*>/g;function yr(pe){var X=document.createElement("div");return X.innerHTML=pe,X.childNodes.length===0?"":X.childNodes[0].nodeValue}var pr=z.a=function(pe){var X=pe.value,q=X===void 0?"":X,oe=pe.edit,De=oe===void 0?!1:oe,fe=pe.className,st=pe.showTextOnly,Qt=pe.showLines,In=pe.replaces,Vn=pe.zoomImg,$t=pe.hasMask,bn=pe.style,cn=bn===void 0?{}:bn,Br=pe.stylesPrev,ra=Br===void 0?{}:Br,oa=String(q),er=Object(f.useRef)(),Ba=Object(f.useRef)(),Ea=Object(f.useState)(""),ca=Object(O.a)(Ea,2),Ka=ca[0],Ta=ca[1],Ja=Object(f.useState)("office"),Ua=Object(O.a)(Ja,2),li=Ua[0],oi=Ua[1],fa=function(){var It=new qt(Ba.current);It.displayMode="popup",It.addRenderEventListener(function(){var Vt=Object(C.a)(e.a.mark(function rn(yn){var gn;return e.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return er.current.style.display="none",Dn.next=3,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn}});case 3:gn=Dn.sent,gn!=null&&gn.id&&In(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 5:case"end":return Dn.stop()}},rn)}));return function(rn){return Vt.apply(this,arguments)}}()),It.show()},ma=function(){var It=new Pe(Ba.current);It.settings.displayMode="popup",It.addEventListener("render",function(){var Vt=Object(C.a)(e.a.mark(function rn(yn){var gn;return e.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(er.current.style.display="none",!Ba.current){Dn.next=6;break}return Dn.next=4,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn.dataUrl}});case 4:gn=Dn.sent,gn!=null&&gn.id&&In(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 6:case"end":return Dn.stop()}},rn)}));return function(rn){return Vt.apply(this,arguments)}}()),It.show(),window.markerArea=It},la=Object(f.useMemo)(function(){er.current&&(er.current.style.zIndex=-1);try{var Wt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,It=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Vt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;oa=oa.replace(Wt,"("+ee.a.API_SERVER+"/api/attachments/").replace(It,'"'+ee.a.API_SERVER+"/api/attachments/").replace(Vt,'"'+ee.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 rn=W(oa),yn=U();if(oa.match(/\[TOC\]/)&&(rn=rn.replace("<p>[TOC]</p>",P()),w()),rn=rn.replace(/(__special_katext_id_\d+__)/g,function(jn,Dn){var an=yn[Dn],Mn=an.type,_n=an.expression;return Object(he.renderToString)(yr(_n)||"",{displayMode:Mn==="block",throwOnError:!1,output:"html"})}),rn=rn.replace(/▁/g,"\u2581\u2581\u2581"),L(),st){var gn=document.createElement("div");return gn.innerHTML=rn,gn.innerText}return setTimeout(function(){return Rt()},500),rn},[oa]),xe=Object(f.useRef)();E.WebkitLineClamp=Qt,Qt&&(cn=Object(y.a)(Object(y.a)({},cn),E));function lt(Wt){var It=Wt.target;if(It.tagName.toUpperCase()==="IMG"){if(Vn){var Vt=It.getAttribute("src");Ta(Vt),oi("image")}}else if(It.tagName.toUpperCase()==="A"){var rn=It.getAttribute("href");if(rn.indexOf("office")>-1)Wt.preventDefault(),Ta(rn),oi("office");else if(rn.indexOf("application/pdf")>-1)Wt.preventDefault(),Ta(rn),oi("pdf");else if(rn.indexOf("text/html")>-1)Wt.preventDefault(),Ta(rn),oi("html");else if(rn.startsWith("#")){Wt.preventDefault();var yn=document.getElementById(rn.replace("#",""));yn&&yn.scrollIntoView(!0)}}}var Rt=function(){var It,Vt=(It=xe.current)===null||It===void 0?void 0:It.querySelectorAll("video");Vt==null||Vt.forEach(function(rn){if(rn.oncontextmenu=function(){return!1},rn.src.indexOf(".m3u8")>-1&&!rn.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var yn=new K.a;yn.loadSource(rn.src),yn.attachMedia(rn)}}})};Object(f.useEffect)(function(){if(xe.current&&la&&(la.match(Ar)&&window.PR.prettyPrint()),xe.current)return xe.current.addEventListener("click",lt),function(){xe.current.removeEventListener("click",lt),L(),w()}},[la,xe.current,lt]);var wt=function(It){if(!De)return;It.target.nodeName==="IMG"?(er.current.style.zIndex=1,er.current.style.display="flex",er.current.style.width=It.target.clientWidth+"px",er.current.style.height=It.target.clientHeight+"px",er.current.style.top=It.target.offsetTop+"px",er.current.style.left=It.target.offsetLeft+"px",Ba.current.src=It.target.getAttribute("src")):er.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:xe,style:Object(y.a)({},cn),className:"".concat(fe||""," markdown-body ").concat(Ir.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:la}}),a.a.createElement("div",{ref:er,className:Ir.a.button},a.a.createElement(g.a,null,a.a.createElement(b.a,{onClick:function(){return fa()}},"\u88C1\u526A"),a.a.createElement(b.a,{onClick:function(){return ma()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:Ba,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),a.a.createElement(de.a,{close:!0,data:Ka,type:Ka!=null&&Ka.length?li:"",style:Object(y.a)({},ra),onClose:function(){return Ta("")}}))}},"9JIy":function(k,z,o){k.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(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CTR=function(){var g=M.lib.BlockCipherMode.extend(),A=g.Encryptor=g.extend({processBlock:function(b,y){var C=this._cipher,O=C.blockSize,m=this._iv,e=this._counter;m&&(e=this._counter=m.slice(0),this._iv=void 0);var f=e.slice(0);C.encryptBlock(f,0),e[O-1]=e[O-1]+1|0;for(var a=0;a<O;a++)b[y+a]^=f[a]}});return g.Decryptor=A,g}(),M.mode.CTR})},"9VGf":function(k,z,o){"use strict";o.d(z,"a",function(){return A});var M=o("q1tI"),g=o.n(M);function A(b,y){var C=Object(M.useRef)();Object(M.useEffect)(function(){C.current=b}),Object(M.useEffect)(function(){function O(){C.current()}if(y!==null){var m=setInterval(O,y);return function(){return clearInterval(m)}}},[y])}},"9ZNV":function(k,z,o){"use strict";o.d(z,"a",function(){return f});var M=o("0Owb"),g=o("+L6B"),A=o("2/Rp"),b=o("q1tI"),y=o.n(b),C=o("UUDw"),O=o.n(C),m=o("TSYQ"),e=o.n(m),f=function(u){var n=u.cancelText,i=n===void 0?"\u53D6\u6D88":n,r=u.okText,c=r===void 0?"\u786E\u5B9A":r,h=u.loading,d=h===void 0?!1:h,s=u.hasOkBtn,l=s===void 0?!0:s,w=u.okButtonProps,E=w===void 0?{}:w,_=u.onCancel,P=_===void 0?function(){}:_,R=u.onOk,x=R===void 0?function(){}:R,S=u.className,v=S===void 0?"":S;return y.a.createElement("div",{className:e()(O.a.buttonFixed,v)},y.a.createElement("div",{className:O.a.buttonWrap},y.a.createElement(A.a,{size:"large",className:"".concat(O.a.button," mr20"),onClick:P},i),l&&y.a.createElement(A.a,Object(M.a)({size:"large",type:"primary",className:"".concat(O.a.button," mr20"),loading:d,onClick:x},E),c)))}},"A/g1":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoI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"},ALsQ:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CFB=function(){var g=M.lib.BlockCipherMode.extend();g.Encryptor=g.extend({processBlock:function(b,y){var C=this._cipher,O=C.blockSize;A.call(this,b,y,O,C),this._prevBlock=b.slice(y,y+O)}}),g.Decryptor=g.extend({processBlock:function(b,y){var C=this._cipher,O=C.blockSize,m=b.slice(y,y+O);A.call(this,b,y,O,C),this._prevBlock=m}});function A(b,y,C,O){var m,e=this._iv;e?(m=e.slice(0),this._iv=void 0):m=this._prevBlock,O.encryptBlock(m,0);for(var f=0;f<C;f++)b[y+f]^=m[f]}return g}(),M.mode.CFB})},B6bo:function(k,z,o){k.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(k,z,o){k.exports={wrap:"wrap___1gcMR",content:"content___31AN8",mainPathWrap:"mainPathWrap___1HrSg",colorBlue:"colorBlue___2eq2Y"}},BU3w:function(k,z,o){"use strict";o.d(z,"a",function(){return C});var M=o("MNnm"),g="rc-util-key";function A(O){if(O.attachTo)return O.attachTo;var m=document.querySelector("head");return m||document.body}function b(O){var m,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(M.a)())return null;var f=document.createElement("style");if((m=e.csp)===null||m===void 0?void 0:m.nonce){var a;f.nonce=(a=e.csp)===null||a===void 0?void 0:a.nonce}f.innerHTML=O;var u=A(e),n=u.firstChild;return e.prepend&&u.prepend?u.prepend(f):e.prepend&&n?u.insertBefore(f,n):u.appendChild(f),f}var y=new Map;function C(O,m){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=A(e);if(!y.has(f)){var a=b("",e),u=a.parentNode;y.set(f,u),u.removeChild(a)}var n=Array.from(y.get(f).children).find(function(d){return d.tagName==="STYLE"&&d[g]===m});if(n){var i,r;if(((i=e.csp)===null||i===void 0?void 0:i.nonce)&&n.nonce!==((r=e.csp)===null||r===void 0?void 0:r.nonce)){var c;n.nonce=(c=e.csp)===null||c===void 0?void 0:c.nonce}return n.innerHTML!==O&&(n.innerHTML=O),n}var h=b(O,e);return h[g]=m,h}},Bbdw:function(k,z,o){k.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(k,z,o){(function(M){M(o("VrN/"),o("osHv"))})(function(M){M.defineOption("autoCloseTags",!1,function(e,f,a){if(a!=M.Init&&a&&e.removeKeyMap("autoCloseTags"),!f)return;var u={name:"autoCloseTags"};(typeof f!="object"||f.whenClosing!==!1)&&(u["'/'"]=function(n){return C(n)}),(typeof f!="object"||f.whenOpening!==!1)&&(u["'>'"]=function(n){return b(n)}),e.addKeyMap(u)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],A=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function b(e){if(e.getOption("disableInput"))return M.Pass;for(var f=e.listSelections(),a=[],u=e.getOption("autoCloseTags"),n=0;n<f.length;n++){if(!f[n].empty())return M.Pass;var i=f[n].head,r=e.getTokenAt(i),c=M.innerMode(e.getMode(),r.state),h=c.state,d=c.mode.xmlCurrentTag&&c.mode.xmlCurrentTag(h),s=d&&d.name;if(!s)return M.Pass;var l=c.mode.configuration=="html",w=typeof u=="object"&&u.dontCloseTags||l&&g,E=typeof u=="object"&&u.indentTags||l&&A;r.end>i.ch&&(s=s.slice(0,s.length-r.end+i.ch));var _=s.toLowerCase();if(!s||r.type=="string"&&(r.end!=i.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||r.string.length==1)||r.type=="tag"&&d.close||r.string.indexOf("/")==i.ch-r.start-1||w&&O(w,_)>-1||m(e,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(h)||[],s,i,!0))return M.Pass;var P=typeof u=="object"&&u.emptyTags;if(P&&O(P,s)>-1){a[n]={text:"/>",newPos:M.Pos(i.line,i.ch+2)};continue}var R=E&&O(E,_)>-1;a[n]={indent:R,text:">"+(R?`
`:"")+"</"+s+">",newPos:R?M.Pos(i.line+1,0):M.Pos(i.line,i.ch+1)}}for(var x=typeof u=="object"&&u.dontIndentOnAutoClose,n=f.length-1;n>=0;n--){var S=a[n];e.replaceRange(S.text,f[n].head,f[n].anchor,"+insert");var v=e.listSelections().slice(0);v[n]={head:S.newPos,anchor:S.newPos},e.setSelections(v),!x&&S.indent&&(e.indentLine(S.newPos.line,null,!0),e.indentLine(S.newPos.line+1,null,!0))}}function y(e,f){for(var a=e.listSelections(),u=[],n=f?"/":"</",i=e.getOption("autoCloseTags"),r=typeof i=="object"&&i.dontIndentOnSlash,c=0;c<a.length;c++){if(!a[c].empty())return M.Pass;var h=a[c].head,d=e.getTokenAt(h),s=M.innerMode(e.getMode(),d.state),l=s.state;if(f&&(d.type=="string"||d.string.charAt(0)!="<"||d.start!=h.ch-1))return M.Pass;var w,E=s.mode.name!="xml"&&e.getMode().name=="htmlmixed";if(E&&s.mode.name=="javascript")w=n+"script";else if(E&&s.mode.name=="css")w=n+"style";else{var _=s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(l);if(!_||_.length&&m(e,_,_[_.length-1],h))return M.Pass;w=n+_[_.length-1]}e.getLine(h.line).charAt(d.end)!=">"&&(w+=">"),u[c]=w}if(e.replaceSelections(u),a=e.listSelections(),!r)for(var c=0;c<a.length;c++)(c==a.length-1||a[c].head.line<a[c+1].head.line)&&e.indentLine(a[c].head.line)}function C(e){return e.getOption("disableInput")?M.Pass:y(e,!0)}M.commands.closeTag=function(e){return y(e)};function O(e,f){if(e.indexOf)return e.indexOf(f);for(var a=0,u=e.length;a<u;++a)if(e[a]==f)return a;return-1}function m(e,f,a,u,n){if(!M.scanForClosingTag)return!1;var i=Math.min(e.lastLine()+1,u.line+500),r=M.scanForClosingTag(e,u,null,i);if(!r||r.tag!=a)return!1;for(var c=n?1:0,h=f.length-1;h>=0&&f[h]==a;h--)++c;u=r.to;for(var h=1;h<c;h++){var d=M.scanForClosingTag(e,u,null,i);if(!d||d.tag!=a)return!1;u=d.to}return!0}})},BdwD:function(k,z,o){"use strict";var M=o("+L6B"),g=o("2/Rp"),A=o("0Owb"),b=o("k1fw"),y=o("q1tI"),C=o.n(y),O=o("FOrL"),m=o.n(O),e=function(a){var u=a.buttonProps,n=u===void 0?{}:u,i=a.styles,r=i===void 0?{}:i,c=a.customText,h=a.ButtonText,d=a.ButtonClick,s=a.Buttonclass,l=a.ButtonTwo;return C.a.createElement("section",{className:"tc animated fadeIn",style:Object(b.a)(Object(b.a)({},{color:"#999",margin:"200px auto"}),r)},C.a.createElement("img",{src:m.a}),C.a.createElement("p",{className:"mt20 font14"},c||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),h&&C.a.createElement(g.a,Object(A.a)({className:s,onClick:d},n),h),l&&l)};z.a=e},BjJ7:function(k,z,o){"use strict";o.d(z,"d",function(){return g}),o.d(z,"c",function(){return A}),o.d(z,"e",function(){return b}),o.d(z,"b",function(){return y}),o.d(z,"a",function(){return O});var M=o("m3rI");function g(m){var e=!0;if(m.length>0){for(var f=0;f<m.length;f++)if(m[f].compile_success==0||!m[f].compile_success){e=!1;break}}else e=!1;return e}function A(m){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",f=[],a=0;a<m.length;a++){var u=m[a],n=e?"".concat(e,"/").concat(u.name):"".concat(u.name);f.push({title:u.name,isLeaf:!(u.type==="tree"),key:n})}return f}function b(m,e,f){for(var a=0;a<m.length;a++){var u=m[a];if(u.key===e){u.children=f;break}u.children&&b(u.children,e,f)}return m}function y(m,e,f){var a;return function(){var u=this,n=arguments,i=function(){a=null,f||m.apply(u,n)},r=f&&!a;clearTimeout(a),a=setTimeout(i,e),r&&m.apply(u,n)}}var C=!0,O=M.a.API_SERVER},Bq7L:function(k,z){k.exports="data:image/png;base64,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"},"C+DQ":function(k,z,o){},"C/vA":function(k,z,o){"use strict";o.d(z,"a",function(){return M});function M(g){const A=this;let b=!1,y;return function(){return b||(b=!0,y=g.apply(A,arguments)),y}}},"Cg/j":function(k,z,o){"use strict";o.d(z,"b",function(){return M}),o.d(z,"a",function(){return g}),o.d(z,"c",function(){return b}),o.d(z,"d",function(){return y});var M;(function(C){C.serviceIds=new Map,C.DI_TARGET="$di$target",C.DI_DEPENDENCIES="$di$dependencies";function O(m){return m[C.DI_DEPENDENCIES]||[]}C.getServiceDependencies=O})(M||(M={}));const g=b("instantiationService");function A(C,O,m,e){O[M.DI_TARGET]===O?O[M.DI_DEPENDENCIES].push({id:C,index:m,optional:e}):(O[M.DI_DEPENDENCIES]=[{id:C,index:m,optional:e}],O[M.DI_TARGET]=O)}function b(C){if(M.serviceIds.has(C))return M.serviceIds.get(C);const O=function(m,e,f){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");A(O,m,f,!1)};return O.toString=()=>C,M.serviceIds.set(C,O),O}function y(C){return function(O,m,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");A(C,O,e,!0)}}},"Cs+z":function(k,z,o){k.exports=o.p+"static/jqr.b801d45b.png"},"Ct/S":function(k,z,o){k.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(k,z,o){"use strict";var M=o("+L6B"),g=o("2/Rp"),A=o("y8nQ"),b=o("Vl3Y"),y=o("cWXX"),C=o("/ezw"),O=o("rAM+"),m=o("9og8"),e=o("tJVT"),f=o("7Kak"),a=o("9yH6"),u=o("WmNS"),n=o.n(u),i=o("q1tI"),r=o.n(i),c=o("ErOA"),h=o("2qtc"),d=o("kLXV"),s=o("k1fw"),l=o("Se0u"),w=o("pUFm"),E=o.n(w);function _(){return Object(c.c)("teach_groups.json")}function P($){return Object(c.f)("teach_groups.json",$)}function R($,me){return Object(c.g)("teach_groups/".concat($,".json"),me)}function x($){return Object(c.f)("teach_group_members.json",$)}function S($){return Object(c.b)("teach_group_members/".concat($,".json"))}function v($,me){return Object(c.b)("teach_groups/".concat($,"/del_member.json?member_id=").concat(me))}function T($){return Object(c.b)("teach_groups/".concat($,".json"))}var U=o("5NDa"),L=o("5rEg"),N=function($){var me=$.callback,re=$.visible,ae=$.onCancel,Oe=$.id,le=$.name;function te(_e){me(_e)}var Q=b.a.useForm(),J=Object(e.a)(Q,1),ve=J[0];return Object(i.useEffect)(function(){ve.setFieldsValue({name:le})},[le]),r.a.createElement(d.a,{centered:!0,title:Oe?"\u6539\u540D":"\u65B0\u5EFA",visible:re,onCancel:ae,footer:null},r.a.createElement(b.a,{layout:"vertical",form:ve,initialValues:{name:le},onFinish:te},r.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"}]},r.a.createElement(L.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),r.a.createElement(b.a.Item,null,r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(g.a,{type:"ghost",onClick:ae,style:{marginRight:20}}," ","\u53D6\u6D88"," ")," ",r.a.createElement(g.a,{type:"primary",htmlType:"submit"}," ","\u786E\u5B9A"," ")))))},V=o("Fxgj"),H=o("3ouR"),D=o("xGfz"),W=50,F=function($){var me=$.data,re=$.isAdminOrTeacher,ae=$.onDelGroup,Oe=$.onChangeGroupName,le=$.onPlusMember,te=$.onDelMember,Q=$.onExitGroup,J=Object(i.useState)(0),ve=Object(e.a)(J,2),_e=ve[0],Ae=ve[1],Je=Object(i.useState)(0),tt=Object(e.a)(Je,2),ut=tt[0],ht=tt[1];function vt(Ue){var pt=parseInt(Ue.target.id,10);d.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(){ae(pt)}})}function _t(Ue){var pt=parseInt(Ue.target.id,10);d.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(){Q(pt)}})}function Ve(Ue,pt){d.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){te(Ue,pt)}})}return r.a.createElement("ul",{className:"teaching-list"},me.map(function(Ue,pt){return r.a.createElement("li",{key:Ue.id,onClick:function(){return Ae(pt)}},r.a.createElement("div",{className:"item-group"},r.a.createElement("span",null,Ue.name," \xA0"," ",pt!==_e&&r.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),r.a.createElement("div",{className:"action-group"},re?r.a.createElement("a",{onClick:function(){Oe(Ue)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,Ue.is_creat?r.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:vt},"\u89E3\u6563"):r.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:_t},"\u9000\u51FA"))),pt===_e?r.a.createElement("ul",{className:"info"},Ue.memers.map(function(Ut){return r.a.createElement("li",{key:Ut.id||Ut.name,onClick:function(){ht(Ut.id)},className:ut===Ut.id?"active":""},r.a.createElement("div",null,Ut.name),Ue.is_creat&&Ut.id&&ut===Ut.id?r.a.createElement("a",{className:"btn-del",onClick:function(jt){jt.preventDefault(),jt.stopPropagation(),Ve(Ue.id,ut)}},r.a.createElement(H.a,null)):null)}),re?r.a.createElement("li",null,r.a.createElement(g.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)}}," ",r.a.createElement(D.a,null)," \u6DFB\u52A0\u7EC4\u5458"," ")):null):null)}))},I=o("9kvl"),K=o("ju9d");function ee($){var me=$.children;return r.a.createElement("div",{className:"no-data"},r.a.createElement("img",{src:E.a,alt:"no-data",width:300}),me)}var he={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},de;(function($){$[$.INITDATA=0]="INITDATA",$[$.SHOWLOADING=1]="SHOWLOADING",$[$.SHOWFORMPANEL=2]="SHOWFORMPANEL",$[$.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",$[$.SELECTGROUP=4]="SELECTGROUP",$[$.SETINDEX=5]="SETINDEX"})(de||(de={}));function Se($,me){switch(me.type){case de.INITDATA:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWLOADING:return Object(s.a)(Object(s.a)({},$),{},{loading:me.payload});case de.SETINDEX:return Object(s.a)(Object(s.a)({},$),{},{index:me.payload});case de.SHOWFORMPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWMEMBERPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SELECTGROUP:return Object(s.a)(Object(s.a)({},$),{},{selectedGroup:me.payload,showFormPanel:!0});default:throw new Error}}function Te($){var me,re=$.user,ae=Object(i.useReducer)(Se,he),Oe=Object(e.a)(ae,2),le=Oe[0],te=Oe[1],Q=le.data,J=le.index,ve=le.loading,_e=le.showFormPanel,Ae=le.selectedGroup,Je=le.showMemberPanel,tt=(me=re.userInfo)===null||me===void 0?void 0:me.role,ut=Object(i.useMemo)(function(){var Ct=[],Ft=[],Jt=Object(O.a)(Q),Ht;try{for(Jt.s();!(Ht=Jt.n()).done;){var Ot=Ht.value;Ot.is_creat?Ct.push(Ot):Ft.push(Ot)}}catch(Fe){Jt.e(Fe)}finally{Jt.f()}return[Ct,Ft]},[Q]);Object(i.useEffect)(function(){tt===15&&te({type:de.SETINDEX,payload:1})},[tt]);function ht(){return vt.apply(this,arguments)}function vt(){return vt=Object(m.a)(n.a.mark(function Ct(){var Ft;return n.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,_();case 2:Ft=Ht.sent,te({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Ft.groups}});case 4:case"end":return Ht.stop()}},Ct)})),vt.apply(this,arguments)}Object(i.useEffect)(function(){ht()},[]);function _t(Ct){return Ve.apply(this,arguments)}function Ve(){return Ve=Object(m.a)(n.a.mark(function Ct(Ft){return n.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(!Ae.id){Ht.next=5;break}return Ht.next=3,R(Ae.id,Ft);case 3:Ht.next=7;break;case 5:return Ht.next=7,P(Ft);case 7:ht();case 8:case"end":return Ht.stop()}},Ct)})),Ve.apply(this,arguments)}function Ue(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function pt(Ct){te({type:de.SELECTGROUP,payload:Ct})}function Ut(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function Et(){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function jt(Ct){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Ct}})}function Ze(Ct,Ft){return Be.apply(this,arguments)}function Be(){return Be=Object(m.a)(n.a.mark(function Ct(Ft,Jt){return n.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,v(Ft,Jt);case 2:ht();case 3:case"end":return Ot.stop()}},Ct)})),Be.apply(this,arguments)}function Ye(Ct){return Ce.apply(this,arguments)}function Ce(){return Ce=Object(m.a)(n.a.mark(function Ct(Ft){return n.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,T(Ft);case 2:ht();case 3:case"end":return Ht.stop()}},Ct)})),Ce.apply(this,arguments)}function Le(Ct){return He.apply(this,arguments)}function He(){return He=Object(m.a)(n.a.mark(function Ct(Ft){return n.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,S(Ft);case 2:ht();case 3:case"end":return Ht.stop()}},Ct)})),He.apply(this,arguments)}function je(Ct){te({type:de.SETINDEX,payload:parseInt(Ct.target.id,10)})}function Ke(Ct,Ft){return it.apply(this,arguments)}function it(){return it=Object(m.a)(n.a.mark(function Ct(Ft,Jt){return n.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Et(),Ot.next=3,x({user_ids:Ft,group_id:Jt});case 3:ht();case 4:case"end":return Ot.stop()}},Ct)})),it.apply(this,arguments)}return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"teaching-circling-container"},r.a.createElement("h3",null," ","\u6559\u7814\u56E2\u961F"," ",tt<=12&&r.a.createElement(g.a,{type:"primary",disabled:Q.length>=50,title:Q.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:Ue},"\u65B0\u5EFA")," "),r.a.createElement("div",{className:"teaching-circling-body"},tt===15?null:r.a.createElement("ul",{className:"navs"},r.a.createElement("li",{className:J===0?"active":""},r.a.createElement("a",{id:"0",onClick:je},"\u6211\u521B\u5EFA\u7684")),r.a.createElement("li",{className:J===1?"active":""},r.a.createElement("a",{id:"1",onClick:je},"\u6211\u52A0\u5165\u7684"))),r.a.createElement("div",{className:ut[J].length===0?"nodata-content":"main-content"},ut[J].length===0?r.a.createElement(ee,null,tt<=12?r.a.createElement(r.a.Fragment,null," ",r.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")," ",r.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")," "):r.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 ")):r.a.createElement(F,{onExitGroup:Le,onPlusMember:jt,onDelMember:Ze,onDelGroup:Ye,isAdminOrTeacher:tt<=12,onChangeGroupName:pt,data:ut[J]}))),r.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"," ")),r.a.createElement(N,{callback:_t,visible:_e,onCancel:Ut,id:Ae.id,name:Ae.name}),r.a.createElement(d.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Je,onCancel:Et,footer:null,width:1100,bodyStyle:{minHeight:200}},r.a.createElement(K.a,{container_id:Ae.id,container_type:4,onSelect:Ke,onCancel:Et})))}var ce=Object(I.a)(function($){var me=$.user;return{user:me}})(Te),be=o("SLjR"),ye=o("55Ip"),ue=a.a.Group,se=z.a=function($){var me=$.onSelect,re=$.onCancel,ae=Object(i.useState)([]),Oe=Object(e.a)(ae,2),le=Oe[0],te=Oe[1],Q=Object(i.useState)(!0),J=Object(e.a)(Q,2),ve=J[0],_e=J[1];Object(i.useEffect)(function(){function tt(){return ut.apply(this,arguments)}function ut(){return ut=Object(m.a)(n.a.mark(function ht(){var vt,_t;return n.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(c.c)("teach_groups/my.json");case 2:vt=Ue.sent,_t=vt.groups,te(_t),_e(!1);case 6:case"end":return Ue.stop()}},ht)})),ut.apply(this,arguments)}tt()},[]);var Ae=Object(i.useMemo)(function(){var tt=[],ut=[],ht=Object(O.a)(le),vt;try{for(ht.s();!(vt=ht.n()).done;){var _t=vt.value;_t.is_creat?tt.push(_t):ut.push(_t)}}catch(Ve){ht.e(Ve)}finally{ht.f()}return[tt,ut]},[le]);function Je(tt){me(tt)}return r.a.createElement(b.a,{className:"select-teach-group",onFinish:Je},ve?r.a.createElement(C.a,{paragraph:!0}):le.length===0?r.a.createElement(ee,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",r.a.createElement(ye.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):r.a.createElement(r.a.Fragment,null,r.a.createElement(b.a.Item,{name:"group_id"},r.a.createElement(ue,null,r.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),r.a.createElement("ul",{className:"groups"},Ae[0].map(function(tt){return r.a.createElement("li",{key:tt.id},r.a.createElement(a.a,{value:tt.id},tt.name))})),r.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),r.a.createElement("ul",{className:"groups"},Ae[1].map(function(tt){return r.a.createElement("li",{key:tt.id},r.a.createElement(a.a,{value:tt.id},tt.name))})))),r.a.createElement("div",{className:"btn-actions"},r.a.createElement(g.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),r.a.createElement(g.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(k,z,o){(function(M,g){k.exports=g()})(this,function(){"use strict";function M(Ze,Be){for(var Ye=0;Ye<Be.length;Ye++){var Ce=Be[Ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(Ze,Ce.key,Ce)}}function g(Ze,Be,Ye){return Be&&M(Ze.prototype,Be),Ye&&M(Ze,Ye),Ze}function A(Ze,Be){if(!Ze)return;if(typeof Ze=="string")return b(Ze,Be);var Ye=Object.prototype.toString.call(Ze).slice(8,-1);if(Ye==="Object"&&Ze.constructor&&(Ye=Ze.constructor.name),Ye==="Map"||Ye==="Set")return Array.from(Ze);if(Ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ye))return b(Ze,Be)}function b(Ze,Be){(Be==null||Be>Ze.length)&&(Be=Ze.length);for(var Ye=0,Ce=new Array(Be);Ye<Be;Ye++)Ce[Ye]=Ze[Ye];return Ce}function y(Ze,Be){var Ye;if(typeof Symbol=="undefined"||Ze[Symbol.iterator]==null){if(Array.isArray(Ze)||(Ye=A(Ze))||Be&&Ze&&typeof Ze.length=="number"){Ye&&(Ze=Ye);var Ce=0;return function(){return Ce>=Ze.length?{done:!0}:{done:!1,value:Ze[Ce++]}}}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 Ye=Ze[Symbol.iterator](),Ye.next.bind(Ye)}function C(Ze,Be){return Be={exports:{}},Ze(Be,Be.exports),Be.exports}var O=C(function(Ze){function Be(){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 Ye(Ce){Ze.exports.defaults=Ce}Ze.exports={defaults:Be(),getDefaults:Be,changeDefaults:Ye}}),m=O.defaults,e=O.getDefaults,f=O.changeDefaults,a=/[&<>"']/,u=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=function(Be){return r[Be]};function h(Ze,Be){if(Be){if(a.test(Ze))return Ze.replace(u,c)}else if(n.test(Ze))return Ze.replace(i,c);return Ze}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ze){return Ze.replace(d,function(Be,Ye){return Ye=Ye.toLowerCase(),Ye==="colon"?":":Ye.charAt(0)==="#"?Ye.charAt(1)==="x"?String.fromCharCode(parseInt(Ye.substring(2),16)):String.fromCharCode(+Ye.substring(1)):""})}var l=/(^|[^\[])\^/g;function w(Ze,Be){Ze=Ze.source||Ze,Be=Be||"";var Ye={replace:function(Le,He){return He=He.source||He,He=He.replace(l,"$1"),Ze=Ze.replace(Le,He),Ye},getRegex:function(){return new RegExp(Ze,Be)}};return Ye}var E=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Ze,Be,Ye){if(Ze){var Ce;try{Ce=decodeURIComponent(s(Ye)).replace(E,"").toLowerCase()}catch(Le){return null}if(Ce.indexOf("javascript:")===0||Ce.indexOf("vbscript:")===0||Ce.indexOf("data:")===0)return null}Be&&!_.test(Ye)&&(Ye=T(Be,Ye));try{Ye=encodeURI(Ye).replace(/%25/g,"%")}catch(Le){return null}return Ye}var R={},x=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(Ze,Be){R[" "+Ze]||(x.test(Ze)?R[" "+Ze]=Ze+"/":R[" "+Ze]=V(Ze,"/",!0)),Ze=R[" "+Ze];var Ye=Ze.indexOf(":")===-1;return Be.substring(0,2)==="//"?Ye?Be:Ze.replace(S,"$1")+Be:Be.charAt(0)==="/"?Ye?Be:Ze.replace(v,"$1")+Be:Ze+Be}var U={exec:function(){}};function L(Ze){for(var Be=1,Ye,Ce;Be<arguments.length;Be++){Ye=arguments[Be];for(Ce in Ye)Object.prototype.hasOwnProperty.call(Ye,Ce)&&(Ze[Ce]=Ye[Ce])}return Ze}function N(Ze,Be){var Ye=Ze.replace(/\|/g,function(He,je,Ke){for(var it=!1,Ct=je;--Ct>=0&&Ke[Ct]==="\\";)it=!it;return it?"|":" |"}),Ce=Ye.split(/ \|/),Le=0;if(Ce.length>Be)Ce.splice(Be);else for(;Ce.length<Be;)Ce.push("");for(;Le<Ce.length;Le++)Ce[Le]=Ce[Le].trim().replace(/\\\|/g,"|");return Ce}function V(Ze,Be,Ye){var Ce=Ze.length;if(Ce===0)return"";for(var Le=0;Le<Ce;){var He=Ze.charAt(Ce-Le-1);if(He===Be&&!Ye)Le++;else if(He!==Be&&Ye)Le++;else break}return Ze.substr(0,Ce-Le)}function H(Ze,Be){if(Ze.indexOf(Be[1])===-1)return-1;for(var Ye=Ze.length,Ce=0,Le=0;Le<Ye;Le++)if(Ze[Le]==="\\")Le++;else if(Ze[Le]===Be[0])Ce++;else if(Ze[Le]===Be[1]&&(Ce--,Ce<0))return Le;return-1}function D(Ze){Ze&&Ze.sanitize&&!Ze.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 W={escape:h,unescape:s,edit:w,cleanUrl:P,resolveUrl:T,noopTest:U,merge:L,splitCells:N,rtrim:V,findClosingBracket:H,checkSanitizeDeprecation:D},F=O.defaults,I=W.rtrim,K=W.splitCells,ee=W.escape,he=W.findClosingBracket;function de(Ze,Be,Ye){var Ce=Be.href,Le=Be.title?ee(Be.title):null,He=Ze[1].replace(/\\([\[\]])/g,"$1");return Ze[0].charAt(0)!=="!"?{type:"link",raw:Ye,href:Ce,title:Le,text:He}:{type:"image",raw:Ye,href:Ce,title:Le,text:ee(He)}}function Se(Ze,Be){var Ye=Ze.match(/^(\s+)(?:```)/);if(Ye===null)return Be;var Ce=Ye[1];return Be.split(`
`).map(function(Le){var He=Le.match(/^\s+/);if(He===null)return Le;var je=He[0];return je.length>=Ce.length?Le.slice(Ce.length):Le}).join(`
`)}var Te=function(){function Ze(Ye){this.options=Ye||F}var Be=Ze.prototype;return Be.space=function(Ce){var Le=this.rules.block.newline.exec(Ce);if(Le)return Le[0].length>1?{type:"space",raw:Le[0]}:{raw:`
`}},Be.code=function(Ce,Le){var He=this.rules.block.code.exec(Ce);if(He){var je=Le[Le.length-1];if(je&&je.type==="paragraph")return{raw:He[0],text:He[0].trimRight()};var Ke=He[0].replace(/^ {4}/gm,"");return{type:"code",raw:He[0],codeBlockStyle:"indented",text:this.options.pedantic?Ke:I(Ke,`
`)}}},Be.fences=function(Ce){var Le=this.rules.block.fences.exec(Ce);if(Le){var He=Le[0],je=Se(He,Le[3]||"");return{type:"code",raw:He,lang:Le[2]?Le[2].trim():Le[2],text:je}}},Be.heading=function(Ce){var Le=this.rules.block.heading.exec(Ce);if(Le)return{type:"heading",raw:Le[0],depth:Le[1].length,text:Le[2]}},Be.nptable=function(Ce){var Le=this.rules.block.nptable.exec(Ce);if(Le){var He={type:"table",header:K(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(`
`):[],raw:Le[0]};if(He.header.length===He.align.length){var je=He.align.length,Ke;for(Ke=0;Ke<je;Ke++)/^ *-+: *$/.test(He.align[Ke])?He.align[Ke]="right":/^ *:-+: *$/.test(He.align[Ke])?He.align[Ke]="center":/^ *:-+ *$/.test(He.align[Ke])?He.align[Ke]="left":He.align[Ke]=null;for(je=He.cells.length,Ke=0;Ke<je;Ke++)He.cells[Ke]=K(He.cells[Ke],He.header.length);return He}}},Be.hr=function(Ce){var Le=this.rules.block.hr.exec(Ce);if(Le)return{type:"hr",raw:Le[0]}},Be.blockquote=function(Ce){var Le=this.rules.block.blockquote.exec(Ce);if(Le){var He=Le[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Le[0],text:He}}},Be.list=function(Ce){var Le=this.rules.block.list.exec(Ce);if(Le){for(var He=Le[0],je=Le[2],Ke=je.length>1,it=je[je.length-1]===")",Ct={type:"list",raw:He,ordered:Ke,start:Ke?+je.slice(0,-1):"",loose:!1,items:[]},Ft=Le[0].match(this.rules.block.item),Jt=!1,Ht,Ot,Fe,at,ot,Pe,Qe,ft=Ft.length,bt=0;bt<ft;bt++)Ht=Ft[bt],He=Ht,Ot=Ht.length,Ht=Ht.replace(/^ *([*+-]|\d+[.)]) */,""),~Ht.indexOf(`
`)&&(Ot-=Ht.length,Ht=this.options.pedantic?Ht.replace(/^ {1,4}/gm,""):Ht.replace(new RegExp("^ {1,"+Ot+"}","gm"),"")),bt!==ft-1&&(Fe=this.rules.block.bullet.exec(Ft[bt+1])[0],(Ke?Fe.length===1||!it&&Fe[Fe.length-1]===")":Fe.length>1||this.options.smartLists&&Fe!==je)&&(at=Ft.slice(bt+1).join(`
`),Ct.raw=Ct.raw.substring(0,Ct.raw.length-at.length),bt=ft-1)),ot=Jt||/\n\n(?!\s*$)/.test(Ht),bt!==ft-1&&(Jt=Ht.charAt(Ht.length-1)===`
`,ot||(ot=Jt)),ot&&(Ct.loose=!0),Pe=/^\[[ xX]\] /.test(Ht),Qe=void 0,Pe&&(Qe=Ht[1]!==" ",Ht=Ht.replace(/^\[[ xX]\] +/,"")),Ct.items.push({type:"list_item",raw:He,task:Pe,checked:Qe,loose:ot,text:Ht});return Ct}},Be.html=function(Ce){var Le=this.rules.block.html.exec(Ce);if(Le)return{type:this.options.sanitize?"paragraph":"html",raw:Le[0],pre:!this.options.sanitizer&&(Le[1]==="pre"||Le[1]==="script"||Le[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):ee(Le[0]):Le[0]}},Be.def=function(Ce){var Le=this.rules.block.def.exec(Ce);if(Le){Le[3]&&(Le[3]=Le[3].substring(1,Le[3].length-1));var He=Le[1].toLowerCase().replace(/\s+/g," ");return{tag:He,raw:Le[0],href:Le[2],title:Le[3]}}},Be.table=function(Ce){var Le=this.rules.block.table.exec(Ce);if(Le){var He={type:"table",header:K(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(`
`):[]};if(He.header.length===He.align.length){He.raw=Le[0];var je=He.align.length,Ke;for(Ke=0;Ke<je;Ke++)/^ *-+: *$/.test(He.align[Ke])?He.align[Ke]="right":/^ *:-+: *$/.test(He.align[Ke])?He.align[Ke]="center":/^ *:-+ *$/.test(He.align[Ke])?He.align[Ke]="left":He.align[Ke]=null;for(je=He.cells.length,Ke=0;Ke<je;Ke++)He.cells[Ke]=K(He.cells[Ke].replace(/^ *\| *| *\| *$/g,""),He.header.length);return He}}},Be.lheading=function(Ce){var Le=this.rules.block.lheading.exec(Ce);if(Le)return{type:"heading",raw:Le[0],depth:Le[2].charAt(0)==="="?1:2,text:Le[1]}},Be.paragraph=function(Ce){var Le=this.rules.block.paragraph.exec(Ce);if(Le)return{type:"paragraph",raw:Le[0],text:Le[1].charAt(Le[1].length-1)===`
`?Le[1].slice(0,-1):Le[1]}},Be.text=function(Ce,Le){var He=this.rules.block.text.exec(Ce);if(He){var je=Le[Le.length-1];return je&&je.type==="text"?{raw:He[0],text:He[0]}:{type:"text",raw:He[0],text:He[0]}}},Be.escape=function(Ce){var Le=this.rules.inline.escape.exec(Ce);if(Le)return{type:"escape",raw:Le[0],text:ee(Le[1])}},Be.tag=function(Ce,Le,He){var je=this.rules.inline.tag.exec(Ce);if(je)return!Le&&/^<a /i.test(je[0])?Le=!0:Le&&/^<\/a>/i.test(je[0])&&(Le=!1),!He&&/^<(pre|code|kbd|script)(\s|>)/i.test(je[0])?He=!0:He&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(je[0])&&(He=!1),{type:this.options.sanitize?"text":"html",raw:je[0],inLink:Le,inRawBlock:He,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(je[0]):ee(je[0]):je[0]}},Be.link=function(Ce){var Le=this.rules.inline.link.exec(Ce);if(Le){var He=he(Le[2],"()");if(He>-1){var je=Le[0].indexOf("!")===0?5:4,Ke=je+Le[1].length+He;Le[2]=Le[2].substring(0,He),Le[0]=Le[0].substring(0,Ke).trim(),Le[3]=""}var it=Le[2],Ct="";if(this.options.pedantic){var Ft=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(it);Ft?(it=Ft[1],Ct=Ft[3]):Ct=""}else Ct=Le[3]?Le[3].slice(1,-1):"";it=it.trim().replace(/^<([\s\S]*)>$/,"$1");var Jt=de(Le,{href:it&&it.replace(this.rules.inline._escapes,"$1"),title:Ct&&Ct.replace(this.rules.inline._escapes,"$1")},Le[0]);return Jt}},Be.reflink=function(Ce,Le){var He;if((He=this.rules.inline.reflink.exec(Ce))||(He=this.rules.inline.nolink.exec(Ce))){var je=(He[2]||He[1]).replace(/\s+/g," ");if(je=Le[je.toLowerCase()],!je||!je.href){var Ke=He[0].charAt(0);return{type:"text",raw:Ke,text:Ke}}var it=de(He,je,He[0]);return it}},Be.strong=function(Ce,Le,He){He===void 0&&(He="");var je=this.rules.inline.strong.start.exec(Ce);if(je&&(!je[1]||je[1]&&(He===""||this.rules.inline.punctuation.exec(He)))){Le=Le.slice(-1*Ce.length);var Ke=je[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ke.lastIndex=0;for(var it;(je=Ke.exec(Le))!=null;)if(it=this.rules.inline.strong.middle.exec(Le.slice(0,je.index+3)),it)return{type:"strong",raw:Ce.slice(0,it[0].length),text:Ce.slice(2,it[0].length-2)}}},Be.em=function(Ce,Le,He){He===void 0&&(He="");var je=this.rules.inline.em.start.exec(Ce);if(je&&(!je[1]||je[1]&&(He===""||this.rules.inline.punctuation.exec(He)))){Le=Le.slice(-1*Ce.length);var Ke=je[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ke.lastIndex=0;for(var it;(je=Ke.exec(Le))!=null;)if(it=this.rules.inline.em.middle.exec(Le.slice(0,je.index+2)),it)return{type:"em",raw:Ce.slice(0,it[0].length),text:Ce.slice(1,it[0].length-1)}}},Be.codespan=function(Ce){var Le=this.rules.inline.code.exec(Ce);if(Le){var He=Le[2].replace(/\n/g," "),je=/[^ ]/.test(He),Ke=He.startsWith(" ")&&He.endsWith(" ");return je&&Ke&&(He=He.substring(1,He.length-1)),He=ee(He,!0),{type:"codespan",raw:Le[0],text:He}}},Be.br=function(Ce){var Le=this.rules.inline.br.exec(Ce);if(Le)return{type:"br",raw:Le[0]}},Be.del=function(Ce){var Le=this.rules.inline.del.exec(Ce);if(Le)return{type:"del",raw:Le[0],text:Le[1]}},Be.autolink=function(Ce,Le){var He=this.rules.inline.autolink.exec(Ce);if(He){var je,Ke;return He[2]==="@"?(je=ee(this.options.mangle?Le(He[1]):He[1]),Ke="mailto:"+je):(je=ee(He[1]),Ke=je),{type:"link",raw:He[0],text:je,href:Ke,tokens:[{type:"text",raw:je,text:je}]}}},Be.url=function(Ce,Le){var He;if(He=this.rules.inline.url.exec(Ce)){var je,Ke;if(He[2]==="@")je=ee(this.options.mangle?Le(He[0]):He[0]),Ke="mailto:"+je;else{var it;do it=He[0],He[0]=this.rules.inline._backpedal.exec(He[0])[0];while(it!==He[0]);je=ee(He[0]),He[1]==="www."?Ke="http://"+je:Ke=je}return{type:"link",raw:He[0],text:je,href:Ke,tokens:[{type:"text",raw:je,text:je}]}}},Be.inlineText=function(Ce,Le,He){var je=this.rules.inline.text.exec(Ce);if(je){var Ke;return Le?Ke=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(je[0]):ee(je[0]):je[0]:Ke=ee(this.options.smartypants?He(je[0]):je[0]),{type:"text",raw:je[0],text:Ke}}},Ze}(),ce=W.noopTest,be=W.edit,ye=W.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=ye({},ue),ue.gfm=ye({},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=ye({},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=ye({},se),se.pedantic=ye({},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=ye({},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=ye({},se.gfm,{br:be(se.br).replace("{2,}","*").getRegex(),text:be(se.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var $={block:ue,inline:se},me=O.defaults,re=$.block,ae=$.inline;function Oe(Ze){return Ze.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(Ze){var Be="",Ye,Ce,Le=Ze.length;for(Ye=0;Ye<Le;Ye++)Ce=Ze.charCodeAt(Ye),Math.random()>.5&&(Ce="x"+Ce.toString(16)),Be+="&#"+Ce+";";return Be}var te=function(){function Ze(Ye){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ye||me,this.options.tokenizer=this.options.tokenizer||new Te,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ce={block:re.normal,inline:ae.normal};this.options.pedantic?(Ce.block=re.pedantic,Ce.inline=ae.pedantic):this.options.gfm&&(Ce.block=re.gfm,this.options.breaks?Ce.inline=ae.breaks:Ce.inline=ae.gfm),this.tokenizer.rules=Ce}Ze.lex=function(Ce,Le){var He=new Ze(Le);return He.lex(Ce)};var Be=Ze.prototype;return Be.lex=function(Ce){return Ce=Ce.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ce,this.tokens,!0),this.inline(this.tokens),this.tokens},Be.blockTokens=function(Ce,Le,He){Le===void 0&&(Le=[]),He===void 0&&(He=!0),Ce=Ce.replace(/^ +$/gm,"");for(var je,Ke,it,Ct;Ce;){if(je=this.tokenizer.space(Ce)){Ce=Ce.substring(je.raw.length),je.type&&Le.push(je);continue}if(je=this.tokenizer.code(Ce,Le)){Ce=Ce.substring(je.raw.length),je.type?Le.push(je):(Ct=Le[Le.length-1],Ct.raw+=`
`+je.raw,Ct.text+=`
`+je.text);continue}if(je=this.tokenizer.fences(Ce)){Ce=Ce.substring(je.raw.length),Le.push(je);continue}if(je=this.tokenizer.heading(Ce)){Ce=Ce.substring(je.raw.length),Le.push(je);continue}if(je=this.tokenizer.nptable(Ce)){Ce=Ce.substring(je.raw.length),Le.push(je);continue}if(je=this.tokenizer.hr(Ce)){Ce=Ce.substring(je.raw.length),Le.push(je);continue}if(je=this.tokenizer.blockquote(Ce)){Ce=Ce.substring(je.raw.length),je.tokens=this.blockTokens(je.text,[],He),Le.push(je);continue}if(je=this.tokenizer.list(Ce)){for(Ce=Ce.substring(je.raw.length),it=je.items.length,Ke=0;Ke<it;Ke++)je.items[Ke].tokens=this.blockTokens(je.items[Ke].text,[],!1);Le.push(je);continue}if(je=this.tokenizer.html(Ce)){Ce=Ce.substring(je.raw.length),Le.push(je);continue}if(He&&(je=this.tokenizer.def(Ce))){Ce=Ce.substring(je.raw.length),this.tokens.links[je.tag]||(this.tokens.links[je.tag]={href:je.href,title:je.title});continue}if(je=this.tokenizer.table(Ce)){Ce=Ce.substring(je.raw.length),Le.push(je);continue}if(je=this.tokenizer.lheading(Ce)){Ce=Ce.substring(je.raw.length),Le.push(je);continue}if(He&&(je=this.tokenizer.paragraph(Ce))){Ce=Ce.substring(je.raw.length),Le.push(je);continue}if(je=this.tokenizer.text(Ce,Le)){Ce=Ce.substring(je.raw.length),je.type?Le.push(je):(Ct=Le[Le.length-1],Ct.raw+=`
`+je.raw,Ct.text+=`
`+je.text);continue}if(Ce){var Ft="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(Ft);break}else throw new Error(Ft)}}return Le},Be.inline=function(Ce){var Le,He,je,Ke,it,Ct,Ft=Ce.length;for(Le=0;Le<Ft;Le++){Ct=Ce[Le];switch(Ct.type){case"paragraph":case"text":case"heading":{Ct.tokens=[],this.inlineTokens(Ct.text,Ct.tokens);break}case"table":{for(Ct.tokens={header:[],cells:[]},Ke=Ct.header.length,He=0;He<Ke;He++)Ct.tokens.header[He]=[],this.inlineTokens(Ct.header[He],Ct.tokens.header[He]);for(Ke=Ct.cells.length,He=0;He<Ke;He++)for(it=Ct.cells[He],Ct.tokens.cells[He]=[],je=0;je<it.length;je++)Ct.tokens.cells[He][je]=[],this.inlineTokens(it[je],Ct.tokens.cells[He][je]);break}case"blockquote":{this.inline(Ct.tokens);break}case"list":{for(Ke=Ct.items.length,He=0;He<Ke;He++)this.inline(Ct.items[He].tokens);break}}}return Ce},Be.inlineTokens=function(Ce,Le,He,je,Ke){Le===void 0&&(Le=[]),He===void 0&&(He=!1),je===void 0&&(je=!1),Ke===void 0&&(Ke="");var it,Ct=Ce,Ft;if(this.tokens.links){var Jt=Object.keys(this.tokens.links);if(Jt.length>0)for(;(Ft=this.tokenizer.rules.inline.reflinkSearch.exec(Ct))!=null;)Jt.includes(Ft[0].slice(Ft[0].lastIndexOf("[")+1,-1))&&(Ct=Ct.slice(0,Ft.index)+"["+"a".repeat(Ft[0].length-2)+"]"+Ct.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ft=this.tokenizer.rules.inline.blockSkip.exec(Ct))!=null;)Ct=Ct.slice(0,Ft.index)+"["+"a".repeat(Ft[0].length-2)+"]"+Ct.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ce;){if(it=this.tokenizer.escape(Ce)){Ce=Ce.substring(it.raw.length),Le.push(it);continue}if(it=this.tokenizer.tag(Ce,He,je)){Ce=Ce.substring(it.raw.length),He=it.inLink,je=it.inRawBlock,Le.push(it);continue}if(it=this.tokenizer.link(Ce)){Ce=Ce.substring(it.raw.length),it.type==="link"&&(it.tokens=this.inlineTokens(it.text,[],!0,je)),Le.push(it);continue}if(it=this.tokenizer.reflink(Ce,this.tokens.links)){Ce=Ce.substring(it.raw.length),it.type==="link"&&(it.tokens=this.inlineTokens(it.text,[],!0,je)),Le.push(it);continue}if(it=this.tokenizer.strong(Ce,Ct,Ke)){Ce=Ce.substring(it.raw.length),it.tokens=this.inlineTokens(it.text,[],He,je),Le.push(it);continue}if(it=this.tokenizer.em(Ce,Ct,Ke)){Ce=Ce.substring(it.raw.length),it.tokens=this.inlineTokens(it.text,[],He,je),Le.push(it);continue}if(it=this.tokenizer.codespan(Ce)){Ce=Ce.substring(it.raw.length),Le.push(it);continue}if(it=this.tokenizer.br(Ce)){Ce=Ce.substring(it.raw.length),Le.push(it);continue}if(it=this.tokenizer.del(Ce)){Ce=Ce.substring(it.raw.length),it.tokens=this.inlineTokens(it.text,[],He,je),Le.push(it);continue}if(it=this.tokenizer.autolink(Ce,le)){Ce=Ce.substring(it.raw.length),Le.push(it);continue}if(!He&&(it=this.tokenizer.url(Ce,le))){Ce=Ce.substring(it.raw.length),Le.push(it);continue}if(it=this.tokenizer.inlineText(Ce,je,Oe)){Ce=Ce.substring(it.raw.length),Ke=it.raw.slice(-1),Le.push(it);continue}if(Ce){var Ht="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(Ht);break}else throw new Error(Ht)}}return Le},g(Ze,null,[{key:"rules",get:function(){return{block:re,inline:ae}}}]),Ze}(),Q=O.defaults,J=W.cleanUrl,ve=W.escape,_e=function(){function Ze(Ye){this.options=Ye||Q}var Be=Ze.prototype;return Be.code=function(Ce,Le,He){var je=(Le||"").match(/\S*/)[0];if(this.options.highlight){var Ke=this.options.highlight(Ce,je);Ke!=null&&Ke!==Ce&&(He=!0,Ce=Ke)}return je?'<pre><code class="'+this.options.langPrefix+ve(je,!0)+'">'+(He?Ce:ve(Ce,!0))+`</code></pre>
`:"<pre><code>"+(He?Ce:ve(Ce,!0))+`</code></pre>
`},Be.blockquote=function(Ce){return`<blockquote>
`+Ce+`</blockquote>
`},Be.html=function(Ce){return Ce},Be.heading=function(Ce,Le,He,je){return this.options.headerIds?"<h"+Le+' id="'+this.options.headerPrefix+je.slug(He)+'">'+Ce+"</h"+Le+`>
`:"<h"+Le+">"+Ce+"</h"+Le+`>
`},Be.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Be.list=function(Ce,Le,He){var je=Le?"ol":"ul",Ke=Le&&He!==1?' start="'+He+'"':"";return"<"+je+Ke+`>
`+Ce+"</"+je+`>
`},Be.listitem=function(Ce){return"<li>"+Ce+`</li>
`},Be.checkbox=function(Ce){return"<input "+(Ce?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Be.paragraph=function(Ce){return"<p>"+Ce+`</p>
`},Be.table=function(Ce,Le){return Le&&(Le="<tbody>"+Le+"</tbody>"),`<table>
<thead>
`+Ce+`</thead>
`+Le+`</table>
`},Be.tablerow=function(Ce){return`<tr>
`+Ce+`</tr>
`},Be.tablecell=function(Ce,Le){var He=Le.header?"th":"td",je=Le.align?"<"+He+' align="'+Le.align+'">':"<"+He+">";return je+Ce+"</"+He+`>
`},Be.strong=function(Ce){return"<strong>"+Ce+"</strong>"},Be.em=function(Ce){return"<em>"+Ce+"</em>"},Be.codespan=function(Ce){return"<code>"+Ce+"</code>"},Be.br=function(){return this.options.xhtml?"<br/>":"<br>"},Be.del=function(Ce){return"<del>"+Ce+"</del>"},Be.link=function(Ce,Le,He){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return He;var je='<a href="'+ve(Ce)+'"';return Le&&(je+=' title="'+Le+'"'),je+=">"+He+"</a>",je},Be.image=function(Ce,Le,He){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return He;var je='<img src="'+Ce+'" alt="'+He+'"';return Le&&(je+=' title="'+Le+'"'),je+=this.options.xhtml?"/>":">",je},Be.text=function(Ce){return Ce},Ze}(),Ae=function(){function Ze(){}var Be=Ze.prototype;return Be.strong=function(Ce){return Ce},Be.em=function(Ce){return Ce},Be.codespan=function(Ce){return Ce},Be.del=function(Ce){return Ce},Be.html=function(Ce){return Ce},Be.text=function(Ce){return Ce},Be.link=function(Ce,Le,He){return""+He},Be.image=function(Ce,Le,He){return""+He},Be.br=function(){return""},Ze}(),Je=function(){function Ze(){this.seen={}}var Be=Ze.prototype;return Be.slug=function(Ce){var Le=Ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Le)){var He=Le;do this.seen[He]++,Le=He+"-"+this.seen[He];while(this.seen.hasOwnProperty(Le))}return this.seen[Le]=0,Le},Ze}(),tt=O.defaults,ut=W.unescape,ht=function(){function Ze(Ye){this.options=Ye||tt,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Je}Ze.parse=function(Ce,Le){var He=new Ze(Le);return He.parse(Ce)};var Be=Ze.prototype;return Be.parse=function(Ce,Le){Le===void 0&&(Le=!0);var He="",je,Ke,it,Ct,Ft,Jt,Ht,Ot,Fe,at,ot,Pe,Qe,ft,bt,Dt,Mt,ct,Lt=Ce.length;for(je=0;je<Lt;je++){at=Ce[je];switch(at.type){case"space":continue;case"hr":{He+=this.renderer.hr();continue}case"heading":{He+=this.renderer.heading(this.parseInline(at.tokens),at.depth,ut(this.parseInline(at.tokens,this.textRenderer)),this.slugger);continue}case"code":{He+=this.renderer.code(at.text,at.lang,at.escaped);continue}case"table":{for(Ot="",Ht="",Ct=at.header.length,Ke=0;Ke<Ct;Ke++)Ht+=this.renderer.tablecell(this.parseInline(at.tokens.header[Ke]),{header:!0,align:at.align[Ke]});for(Ot+=this.renderer.tablerow(Ht),Fe="",Ct=at.cells.length,Ke=0;Ke<Ct;Ke++){for(Jt=at.tokens.cells[Ke],Ht="",Ft=Jt.length,it=0;it<Ft;it++)Ht+=this.renderer.tablecell(this.parseInline(Jt[it]),{header:!1,align:at.align[it]});Fe+=this.renderer.tablerow(Ht)}He+=this.renderer.table(Ot,Fe);continue}case"blockquote":{Fe=this.parse(at.tokens),He+=this.renderer.blockquote(Fe);continue}case"list":{for(ot=at.ordered,Pe=at.start,Qe=at.loose,Ct=at.items.length,Fe="",Ke=0;Ke<Ct;Ke++)bt=at.items[Ke],Dt=bt.checked,Mt=bt.task,ft="",bt.task&&(ct=this.renderer.checkbox(Dt),Qe?bt.tokens.length>0&&bt.tokens[0].type==="text"?(bt.tokens[0].text=ct+" "+bt.tokens[0].text,bt.tokens[0].tokens&&bt.tokens[0].tokens.length>0&&bt.tokens[0].tokens[0].type==="text"&&(bt.tokens[0].tokens[0].text=ct+" "+bt.tokens[0].tokens[0].text)):bt.tokens.unshift({type:"text",text:ct}):ft+=ct),ft+=this.parse(bt.tokens,Qe),Fe+=this.renderer.listitem(ft,Mt,Dt);He+=this.renderer.list(Fe,ot,Pe);continue}case"html":{He+=this.renderer.html(at.text);continue}case"paragraph":{He+=this.renderer.paragraph(this.parseInline(at.tokens));continue}case"text":{for(Fe=at.tokens?this.parseInline(at.tokens):at.text;je+1<Lt&&Ce[je+1].type==="text";)at=Ce[++je],Fe+=`
`+(at.tokens?this.parseInline(at.tokens):at.text);He+=Le?this.renderer.paragraph(Fe):Fe;continue}default:{var Zt='Token with "'+at.type+'" type was not found.';if(this.options.silent){console.error(Zt);return}else throw new Error(Zt)}}}return He},Be.parseInline=function(Ce,Le){Le=Le||this.renderer;var He="",je,Ke,it=Ce.length;for(je=0;je<it;je++){Ke=Ce[je];switch(Ke.type){case"escape":{He+=Le.text(Ke.text);break}case"html":{He+=Le.html(Ke.text);break}case"link":{He+=Le.link(Ke.href,Ke.title,this.parseInline(Ke.tokens,Le));break}case"image":{He+=Le.image(Ke.href,Ke.title,Ke.text);break}case"strong":{He+=Le.strong(this.parseInline(Ke.tokens,Le));break}case"em":{He+=Le.em(this.parseInline(Ke.tokens,Le));break}case"codespan":{He+=Le.codespan(Ke.text);break}case"br":{He+=Le.br();break}case"del":{He+=Le.del(this.parseInline(Ke.tokens,Le));break}case"text":{He+=Le.text(Ke.text);break}default:{var Ct='Token with "'+Ke.type+'" type was not found.';if(this.options.silent){console.error(Ct);return}else throw new Error(Ct)}}}return He},Ze}(),vt=W.merge,_t=W.checkSanitizeDeprecation,Ve=W.escape,Ue=O.getDefaults,pt=O.changeDefaults,Ut=O.defaults;function Et(Ze,Be,Ye){if(typeof Ze=="undefined"||Ze===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ze!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ze)+", string expected");if(typeof Be=="function"&&(Ye=Be,Be=null),Be=vt({},Et.defaults,Be||{}),_t(Be),Ye){var Ce=Be.highlight,Le;try{Le=te.lex(Ze,Be)}catch(it){return Ye(it)}var He=function(Ct){var Ft;if(!Ct)try{Ft=ht.parse(Le,Be)}catch(Jt){Ct=Jt}return Be.highlight=Ce,Ct?Ye(Ct):Ye(null,Ft)};if(!Ce||Ce.length<3)return He();if(delete Be.highlight,!Le.length)return He();var je=0;Et.walkTokens(Le,function(it){it.type==="code"&&(je++,setTimeout(function(){Ce(it.text,it.lang,function(Ct,Ft){if(Ct)return He(Ct);Ft!=null&&Ft!==it.text&&(it.text=Ft,it.escaped=!0),je--,je===0&&He()})},0))}),je===0&&He();return}try{var Ke=te.lex(Ze,Be);return Be.walkTokens&&Et.walkTokens(Ke,Be.walkTokens),ht.parse(Ke,Be)}catch(it){if(it.message+=`
Please report this to https://github.com/markedjs/marked.`,Be.silent)return"<p>An error occurred:</p><pre>"+Ve(it.message+"",!0)+"</pre>";throw it}}Et.options=Et.setOptions=function(Ze){return vt(Et.defaults,Ze),pt(Et.defaults),Et},Et.getDefaults=Ue,Et.defaults=Ut,Et.use=function(Ze){var Be=vt({},Ze);if(Ze.renderer&&function(){var Ce=Et.defaults.renderer||new _e,Le=function(Ke){var it=Ce[Ke];Ce[Ke]=function(){for(var Ct=arguments.length,Ft=new Array(Ct),Jt=0;Jt<Ct;Jt++)Ft[Jt]=arguments[Jt];var Ht=Ze.renderer[Ke].apply(Ce,Ft);return Ht===!1&&(Ht=it.apply(Ce,Ft)),Ht}};for(var He in Ze.renderer)Le(He);Be.renderer=Ce}(),Ze.tokenizer&&function(){var Ce=Et.defaults.tokenizer||new Te,Le=function(Ke){var it=Ce[Ke];Ce[Ke]=function(){for(var Ct=arguments.length,Ft=new Array(Ct),Jt=0;Jt<Ct;Jt++)Ft[Jt]=arguments[Jt];var Ht=Ze.tokenizer[Ke].apply(Ce,Ft);return Ht===!1&&(Ht=it.apply(Ce,Ft)),Ht}};for(var He in Ze.tokenizer)Le(He);Be.tokenizer=Ce}(),Ze.walkTokens){var Ye=Et.defaults.walkTokens;Be.walkTokens=function(Ce){Ze.walkTokens(Ce),Ye&&Ye(Ce)}}Et.setOptions(Be)},Et.walkTokens=function(Ze,Be){for(var Ye=y(Ze),Ce;!(Ce=Ye()).done;){var Le=Ce.value;Be(Le);switch(Le.type){case"table":{for(var He=y(Le.tokens.header),je;!(je=He()).done;){var Ke=je.value;Et.walkTokens(Ke,Be)}for(var it=y(Le.tokens.cells),Ct;!(Ct=it()).done;)for(var Ft=Ct.value,Jt=y(Ft),Ht;!(Ht=Jt()).done;){var Ot=Ht.value;Et.walkTokens(Ot,Be)}break}case"list":{Et.walkTokens(Le.items,Be);break}default:Le.tokens&&Et.walkTokens(Le.tokens,Be)}}},Et.Parser=ht,Et.parser=ht.parse,Et.Renderer=_e,Et.TextRenderer=Ae,Et.Lexer=te,Et.lexer=te.lex,Et.Tokenizer=Te,Et.Slugger=Je,Et.parse=Et;var jt=Et;return jt})},E4JC:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.StreamCipher,y=g.algo,C=[],O=[],m=[],e=y.Rabbit=b.extend({_doReset:function(){for(var a=this._key.words,u=this.cfg.iv,n=0;n<4;n++)a[n]=(a[n]<<8|a[n]>>>24)&16711935|(a[n]<<24|a[n]>>>8)&4278255360;var i=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],r=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var n=0;n<4;n++)f.call(this);for(var n=0;n<8;n++)r[n]^=i[n+4&7];if(u){var c=u.words,h=c[0],d=c[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,l=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|l&4294901760,E=l<<16|s&65535;r[0]^=s,r[1]^=w,r[2]^=l,r[3]^=E,r[4]^=s,r[5]^=w,r[6]^=l,r[7]^=E;for(var n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(a,u){var n=this._X;f.call(this),C[0]=n[0]^n[5]>>>16^n[3]<<16,C[1]=n[2]^n[7]>>>16^n[5]<<16,C[2]=n[4]^n[1]>>>16^n[7]<<16,C[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)C[i]=(C[i]<<8|C[i]>>>24)&16711935|(C[i]<<24|C[i]>>>8)&4278255360,a[u+i]^=C[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,u=this._C,n=0;n<8;n++)O[n]=u[n];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<O[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<O[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<O[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<O[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<O[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<O[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<O[6]>>>0?1:0)|0,this._b=u[7]>>>0<O[7]>>>0?1:0;for(var n=0;n<8;n++){var i=a[n]+u[n],r=i&65535,c=i>>>16,h=((r*r>>>17)+r*c>>>15)+c*c,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[n]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.Rabbit=b._createHelper(e)}(),M.Rabbit})},E7E6:function(k,z){k.exports="data:image/png;base64,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"},E9nw:function(k,z){k.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var M=document.activeElement,g=[],A=0;A<o.rangeCount;A++)g.push(o.getRangeAt(A));switch(M.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":M.blur();break;default:M=null;break}return o.removeAllRanges(),function(){o.type==="Caret"&&o.removeAllRanges(),o.rangeCount||g.forEach(function(b){o.addRange(b)}),M&&M.focus()}}},EGTK:function(k,z,o){"use strict";var M=o("R9oj"),g=o("ECub"),A=o("T2oS"),b=o("W9HT"),y=o("5NDa"),C=o("5rEg"),O=o("k1fw"),m=o("9og8"),e=o("tJVT"),f=o("WmNS"),a=o.n(f),u=o("q1tI"),n=o.n(u),i=o("TSYQ"),r=o.n(i),c=o("dGDm"),h=o.n(c),d=o("Lai7"),s=o.n(d),l=o("ErOA"),w=o("LvDl"),E=o.n(w),_=function(x){var S=x.className,v=x.dispatch,T=x.skin,U=T===void 0?"white":T,L=x.value,N=L===void 0?null:L,V=x.loading,H=V===void 0?!1:V,D=x.data,W=D===void 0?[]:D,F=x.otherData,I=F===void 0?[]:F,K=x.tags,ee=K===void 0?[]:K,he=x.onChange,de=he===void 0?function(){}:he,Se=Object(u.useState)(""),Te=Object(e.a)(Se,2),ce=Te[0],be=Te[1],ye=Object(u.useState)(!1),ue=Object(e.a)(ye,2),se=ue[0],$=ue[1],me=Object(u.useState)([]),re=Object(e.a)(me,2),ae=re[0],Oe=re[1],le=Object(u.useState)(0),te=Object(e.a)(le,2),Q=te[0],J=te[1],ve=Object(u.useRef)(null),_e=Object(u.useRef)(String(Math.floor(Math.random()*1e6))).current,Ae=Object(u.useRef)(),Je=Object(u.useRef)(null),tt=Object(u.useRef)(0),ut=Object(u.useRef)([]);Object(u.useEffect)(function(){return window.addEventListener("keydown",ht),function(){window.removeEventListener("keydown",ht)}},[ce,se,ae]);var ht=function(Ke){if(!se||Ke.keyCode!==40&&Ke.keyCode!==38)return;var it=0;Ke.keyCode===40&&se&&(Q<ae.length-1?it=Q+1:it=0,console.log("\u4E0B"),Ue(it,"down")),Ke.keyCode===38&&se&&(Q===0?it=ae.length-1:it=Q-1,Ue(it,"up")),J(it),_t(ce,it,!0)},vt=function(Ke,it){var Ct=function(Ht){var Ot=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,Fe={};return Fe["^"]="\\^",Fe["."]="\\.",Fe["\\"]="\\\\",Fe["|"]="\\|",Fe["("]="\\(",Fe[")"]="\\)",Fe["*"]="\\*",Fe["+"]="\\+",Fe["-"]="\\-",Fe.$="$",Fe["["]="\\[",Fe["]"]="\\]",Fe["?"]="\\?",Ht=Ht.replace(Ot,function(at){return Fe[at]}),Ht},Ft=new RegExp(Ct(it),"gi");return Ke=Ke.replace(Ft,function(Jt){return"<span style='color:#0152d9;'>"+Jt+"</span>"}),Ke},_t=function(){var je=Object(m.a)(a.a.mark(function Ke(it,Ct,Ft){var Jt,Ht,Ot;return a.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(Jt=tt.current+1,tt.current=Jt,Ht=function(Pe){var Qe=Pe==null?void 0:Pe.map(function(ft,bt){var Dt=ft.id,Mt=ft.name,ct=Object(O.a)(Object(O.a)({},ft),{},{label:n.a.createElement("ul",{id:"search-".concat(_e,"-").concat(bt),onClick:function(){return Et(Dt,ct)},className:bt===Ct?h.a.searchListActive:h.a.searchList},n.a.createElement("li",{className:h.a.name,dangerouslySetInnerHTML:{__html:vt(Mt,it)}}),ft.private&&n.a.createElement("li",{className:h.a.tag},"\u79C1\u6709"))});return ct});return Qe},!Ft){at.next=7;break}return Ot=Ht(ut.current),Oe(Ot),at.abrupt("return");case 7:clearTimeout(Je.current),Je.current=setTimeout(Object(m.a)(a.a.mark(function ot(){var Pe,Qe,ft,bt;return a.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Object(l.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:it,page:1,limit:1e5}});case 2:Pe=Mt.sent,(Pe==null?void 0:Pe.status)===0&&(ft=Ht((Pe==null||((Qe=Pe.data)===null||Qe===void 0)?void 0:Qe.mirrors)||[]),Jt===tt.current&&(Oe(ft),ut.current=Object(w.cloneDeep)((Pe==null||((bt=Pe.data)===null||bt===void 0)?void 0:bt.mirrors)||[])));case 4:case"end":return Mt.stop()}},ot)})),300);case 9:case"end":return at.stop()}},Ke)}));return function(it,Ct,Ft){return je.apply(this,arguments)}}(),Ve=function(Ke){var it=document.getElementById("scroll-".concat(_e,"-").concat(Ke));if(!it)return;var Ct=document.getElementById("scroll-".concat(_e));Ct.scrollTo(0,it.offsetTop)},Ue=function(Ke,it){var Ct=document.getElementById("search-".concat(_e,"-").concat(Ke));if(!Ct)return;var Ft=document.getElementById("search-".concat(_e)),Jt=Ct.offsetTop-Ft.scrollTop>0&&Ct.offsetTop-Ft.scrollTop<Ft.clientHeight;if(Jt)return;it==="down"?Ft.scrollTo(0,Ct.offsetTop-Ft.clientHeight+Ct.clientHeight):Ft.scrollTo(0,Ct.offsetTop)},pt=function(Ke){_t(Ke,0),be(Ke)},Ut=function(Ke){var it,Ct;if(!ae.length)return;var Ft=ae==null||((it=ae[Q])===null||it===void 0)?void 0:it.id;de(Ft),Oe([]),J(0),be(ae==null||((Ct=ae[Q])===null||Ct===void 0)?void 0:Ct.name),Ve(Ft),Ae.current.blur()},Et=function(Ke,it){de(Ke),Oe([]),J(0),be(it==null?void 0:it.name),Ve(Ke)},jt=function(){Oe([]),be("")},Ze=function(Ke){de(Ke),Oe([]),be("")},Be=function(){return ce===""?n.a.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):n.a.createElement("i",{onClick:jt,className:"iconfont icon-shanchu4 c-grey-c"})},Ye=function(){v({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Ce=function(){v({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},Le=function(){ve.current=setTimeout(function(){$(!1),J(0)},200)},He=!(W!=null&&W.length)&&!(I!=null&&I.length);return n.a.createElement("div",{className:r()(U==="night"?h.a.darklySelectEnvironment:h.a.selectEnvironment,S)},!He&&n.a.createElement("div",{className:h.a.search},n.a.createElement(C.a,{suffix:Be(),bordered:!1,ref:Ae,value:ce,onKeyDown:function(Ke){(Ke.keyCode===40||Ke.keyCode===38)&&Ke.preventDefault()},size:"large",onFocus:function(){clearTimeout(ve.current),pt(ce),$(!0)},onBlur:Le,onChange:function(Ke){return pt(Ke.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:Ut}),se&&n.a.createElement("div",{id:"search-".concat(_e),className:h.a.searchListWrap},ae.map(function(je,Ke){return n.a.createElement(n.a.Fragment,{key:Ke}," ",je.label)}))),H?n.a.createElement(b.a,{className:h.a.spin}):n.a.createElement(n.a.Fragment,null,He&&n.a.createElement(g.a,{style:{margin:"60px 0"},image:s.a,description:n.a.createElement("span",{className:"c-grey-999"},"\u6682\u65E0\u5B9E\u9A8C\u73AF\u5883")}),!!ee.length&&n.a.createElement("aside",{className:h.a.common},n.a.createElement("div",{className:h.a.title},"\u63A8\u8350\u73AF\u5883:"),n.a.createElement("ul",{className:h.a.tags},ee.map(function(je,Ke){return n.a.createElement("li",{key:Ke,onClick:function(){return Ze(je.id)},className:N===je.id?"".concat(h.a.tag," ").concat(h.a.tagActive):h.a.tag},je.name)}))),n.a.createElement("aside",{className:h.a.wrap,id:"scroll-".concat(_e)},W.map(function(je,Ke){var it;return je!=null&&(it=je.image)!==null&&it!==void 0&&it.length?n.a.createElement(P,{key:Ke,data:je,id:N,handleClick:function(Ft){return Ze(Ft)}}):null}),n.a.createElement("ul",{className:h.a.allList},I.map(function(je){return n.a.createElement("li",{key:"key-".concat(je.id),id:"scroll-".concat(_e,"-").concat(je.id),className:je.id===N?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return de(je.id)}},n.a.createElement("div",{className:h.a.name},je.name),je.private&&n.a.createElement("div",{className:h.a.tag},"\u79C1\u6709"))})))),n.a.createElement("div",{className:h.a.apply},n.a.createElement("span",{className:h.a.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),n.a.createElement("span",{className:h.a.p2,onClick:Ye}," ","\u7533\u8BF7\u65B0\u5EFA"),n.a.createElement("span",{className:h.a.p2,onClick:Ce}," ","\u5728\u7EBF\u521B\u5EFA")))},P=function(x){var S=x.data,v=x.id,T=x.handleClick,U=Object(u.useState)(!0),L=Object(e.a)(U,2),N=L[0],V=L[1],H=S.name,D=S.image;return n.a.createElement("div",{className:h.a.list},n.a.createElement("header",{onClick:function(){return V(!N)}},n.a.createElement("div",{className:h.a.title},H),n.a.createElement("i",{style:{transition:"0.5s",transform:N?"rotate(0deg)":"rotate(180deg)"},className:"iconfont icon-shangjiantou c-grey-999"})),n.a.createElement("ul",{className:h.a.items,style:{height:N?"auto":0}},D.map(function(W){return n.a.createElement("li",{key:W.id,className:W.id===v?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return T(W.id)}},n.a.createElement("div",{className:h.a.name},W.name),W.private&&n.a.createElement("div",{className:h.a.tag},"\u79C1\u6709"))}),n.a.createElement("li",{className:h.a.line})))};z.a=_},ELLl:function(k,z,o){(function(M){M(o("VrN/"))})(function(M){var g={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},A=M.Pos;M.defineOption("autoCloseBrackets",!1,function(r,c,h){h&&h!=M.Init&&(r.removeKeyMap(y),r.state.closeBrackets=null),c&&(C(b(c,"pairs")),r.state.closeBrackets=c,r.addKeyMap(y))});function b(r,c){return c=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[c]!=null?r[c]:g[c]}var y={Backspace:e,Enter:f};function C(r){for(var c=0;c<r.length;c++){var h=r.charAt(c),d="'"+h+"'";y[d]||(y[d]=O(h))}}C(g.pairs+"`");function O(r){return function(c){return u(c,r)}}function m(r){var c=r.state.closeBrackets;if(!c||c.override)return c;var h=r.getModeAt(r.getCursor());return h.closeBrackets||c}function e(r){var c=m(r);if(!c||r.getOption("disableInput"))return M.Pass;for(var h=b(c,"pairs"),d=r.listSelections(),s=0;s<d.length;s++){if(!d[s].empty())return M.Pass;var l=n(r,d[s].head);if(!l||h.indexOf(l)%2!=0)return M.Pass}for(var s=d.length-1;s>=0;s--){var w=d[s].head;r.replaceRange("",A(w.line,w.ch-1),A(w.line,w.ch+1),"+delete")}}function f(r){var c=m(r),h=c&&b(c,"explode");if(!h||r.getOption("disableInput"))return M.Pass;for(var d=r.listSelections(),s=0;s<d.length;s++){if(!d[s].empty())return M.Pass;var l=n(r,d[s].head);if(!l||h.indexOf(l)%2!=0)return M.Pass}r.operation(function(){var w=r.lineSeparator()||`
`;r.replaceSelection(w+w,null),r.execCommand("goCharLeft"),d=r.listSelections();for(var E=0;E<d.length;E++){var _=d[E].head.line;r.indentLine(_,null,!0),r.indentLine(_+1,null,!0)}})}function a(r){var c=M.cmpPos(r.anchor,r.head)>0;return{anchor:new A(r.anchor.line,r.anchor.ch+(c?-1:1)),head:new A(r.head.line,r.head.ch+(c?1:-1))}}function u(r,c){var h=m(r);if(!h||r.getOption("disableInput"))return M.Pass;var d=b(h,"pairs"),s=d.indexOf(c);if(s==-1)return M.Pass;for(var l=b(h,"closeBefore"),w=b(h,"triples"),E=d.charAt(s+1)==c,_=r.listSelections(),P=s%2==0,R,x=0;x<_.length;x++){var S=_[x],v=S.head,T,U=r.getRange(v,A(v.line,v.ch+1));if(P&&!S.empty())T="surround";else if((E||!P)&&U==c)E&&i(r,v)?T="both":w.indexOf(c)>=0&&r.getRange(v,A(v.line,v.ch+3))==c+c+c?T="skipThree":T="skip";else if(E&&v.ch>1&&w.indexOf(c)>=0&&r.getRange(A(v.line,v.ch-2),v)==c+c){if(v.ch>2&&/\bstring/.test(r.getTokenTypeAt(A(v.line,v.ch-2))))return M.Pass;T="addFour"}else if(E){var L=v.ch==0?" ":r.getRange(A(v.line,v.ch-1),v);if(!M.isWordChar(U)&&L!=c&&!M.isWordChar(L))T="both";else return M.Pass}else if(P&&(U.length===0||/\s/.test(U)||l.indexOf(U)>-1))T="both";else return M.Pass;if(!R)R=T;else if(R!=T)return M.Pass}var N=s%2?d.charAt(s-1):c,V=s%2?c:d.charAt(s+1);r.operation(function(){if(R=="skip")r.execCommand("goCharRight");else if(R=="skipThree")for(var H=0;H<3;H++)r.execCommand("goCharRight");else if(R=="surround"){for(var D=r.getSelections(),H=0;H<D.length;H++)D[H]=N+D[H]+V;r.replaceSelections(D,"around"),D=r.listSelections().slice();for(var H=0;H<D.length;H++)D[H]=a(D[H]);r.setSelections(D)}else R=="both"?(r.replaceSelection(N+V,null),r.triggerElectric(N+V),r.execCommand("goCharLeft")):R=="addFour"&&(r.replaceSelection(N+N+N+N,"before"),r.execCommand("goCharRight"))})}function n(r,c){var h=r.getRange(A(c.line,c.ch-1),A(c.line,c.ch+1));return h.length==2?h:null}function i(r,c){var h=r.getTokenAt(A(c.line,c.ch+1));return/\bstring/.test(h.type)&&h.start==c.ch&&(c.ch==0||!/\bstring/.test(r.getTokenTypeAt(c)))}})},ELcG:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){/** @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(g){var A=M,b=A.lib,y=b.WordArray,C=b.Hasher,O=A.algo,m=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]),e=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]),f=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]),a=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]),u=y.create([0,1518500249,1859775393,2400959708,2840853838]),n=y.create([1352829926,1548603684,1836072691,2053994217,0]),i=O.RIPEMD160=C.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,E){for(var _=0;_<16;_++){var P=E+_,R=w[P];w[P]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var x=this._hash.words,S=u.words,v=n.words,T=m.words,U=e.words,L=f.words,N=a.words,V,H,D,W,F,I,K,ee,he,de;I=V=x[0],K=H=x[1],ee=D=x[2],he=W=x[3],de=F=x[4];for(var Se,_=0;_<80;_+=1)Se=V+w[E+T[_]]|0,_<16?Se+=r(H,D,W)+S[0]:_<32?Se+=c(H,D,W)+S[1]:_<48?Se+=h(H,D,W)+S[2]:_<64?Se+=d(H,D,W)+S[3]:Se+=s(H,D,W)+S[4],Se=Se|0,Se=l(Se,L[_]),Se=Se+F|0,V=F,F=W,W=l(D,10),D=H,H=Se,Se=I+w[E+U[_]]|0,_<16?Se+=s(K,ee,he)+v[0]:_<32?Se+=d(K,ee,he)+v[1]:_<48?Se+=h(K,ee,he)+v[2]:_<64?Se+=c(K,ee,he)+v[3]:Se+=r(K,ee,he)+v[4],Se=Se|0,Se=l(Se,N[_]),Se=Se+de|0,I=de,de=he,he=l(ee,10),ee=K,K=Se;Se=x[1]+D+he|0,x[1]=x[2]+W+de|0,x[2]=x[3]+F+I|0,x[3]=x[4]+V+K|0,x[4]=x[0]+H+ee|0,x[0]=Se},_doFinalize:function(){var w=this._data,E=w.words,_=this._nDataBytes*8,P=w.sigBytes*8;E[P>>>5]|=128<<24-P%32,E[(P+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var R=this._hash,x=R.words,S=0;S<5;S++){var v=x[S];x[S]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return R},clone:function(){var w=C.clone.call(this);return w._hash=this._hash.clone(),w}});function r(w,E,_){return w^E^_}function c(w,E,_){return w&E|~w&_}function h(w,E,_){return(w|~E)^_}function d(w,E,_){return w&_|E&~_}function s(w,E,_){return w^(E|~_)}function l(w,E){return w<<E|w>>>32-E}A.RIPEMD160=C._createHelper(i),A.HmacRIPEMD160=C._createHmacHelper(i)}(Math),M.RIPEMD160})},ETIr:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.WordArray,y=g.enc,C=y.Base64={stringify:function(m){var e=m.words,f=m.sigBytes,a=this._map;m.clamp();for(var u=[],n=0;n<f;n+=3)for(var i=e[n>>>2]>>>24-n%4*8&255,r=e[n+1>>>2]>>>24-(n+1)%4*8&255,c=e[n+2>>>2]>>>24-(n+2)%4*8&255,h=i<<16|r<<8|c,d=0;d<4&&n+d*.75<f;d++)u.push(a.charAt(h>>>6*(3-d)&63));var s=a.charAt(64);if(s)for(;u.length%4;)u.push(s);return u.join("")},parse:function(m){var e=m.length,f=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var u=0;u<f.length;u++)a[f.charCodeAt(u)]=u}var n=f.charAt(64);if(n){var i=m.indexOf(n);i!==-1&&(e=i)}return O(m,e,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function O(m,e,f){for(var a=[],u=0,n=0;n<e;n++)if(n%4){var i=f[m.charCodeAt(n-1)]<<n%4*2,r=f[m.charCodeAt(n)]>>>6-n%4*2,c=i|r;a[u>>>2]|=c<<24-u%4*8,u++}return b.create(a,u)}}(),M.enc.Base64})},EkPF:function(k,z,o){k.exports={practiceSetting:"practiceSetting___2ttNt",wrapHeader:"wrapHeader___2dgOY",wrapLayout:"wrapLayout___3zol1",wrapSidebar:"wrapSidebar___3imKs",wrapContent:"wrapContent___3L8H_"}},"F+F2":function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){if(typeof ArrayBuffer!="function")return;var g=M,A=g.lib,b=A.WordArray,y=b.init,C=b.init=function(O){if(O instanceof ArrayBuffer&&(O=new Uint8Array(O)),(O instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&O instanceof Uint8ClampedArray||O instanceof Int16Array||O instanceof Uint16Array||O instanceof Int32Array||O instanceof Uint32Array||O instanceof Float32Array||O instanceof Float64Array)&&(O=new Uint8Array(O.buffer,O.byteOffset,O.byteLength)),O instanceof Uint8Array){for(var m=O.byteLength,e=[],f=0;f<m;f++)e[f>>>2]|=O[f]<<24-f%4*8;y.call(this,e,m)}else y.apply(this,arguments)};C.prototype=b}(),M.lib.WordArray})},FOrL:function(k,z,o){k.exports=o.p+"static/nodata.a6b3f948.png"},FPkq:function(k,z,o){k.exports=o.p+"static/qrCode.dd0fe9b2.png"},FTkQ:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg=="},FWmy:function(k,z,o){"use strict";o.d(z,"a",function(){return M});function M(g,A){if(!g)throw new Error(A?`Assertion failed (${A})`:"Assertion Failed")}},Fhpe:function(k,z,o){k.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(k,z,o){"use strict";var M=o("+L6B"),g=o("2/Rp"),A=o("DZo9"),b=o("8z0m"),y=o("miYZ"),C=o("tsqr"),O=o("9og8"),m=o("2qtc"),e=o("kLXV"),f=o("y8nQ"),a=o("Vl3Y"),u=o("tJVT"),n=o("PpiC"),i=o("5NDa"),r=o("5rEg"),c=o("WmNS"),h=o.n(c),d=o("q1tI"),s=o.n(d),l=o("9kvl"),w=o("m3rI"),E=o("FPkq"),_=o.n(E),P=o("qB8g"),R=o.n(P),x=r.a.TextArea,S=function(T){var U=T.newShixuns,L=T.globalSetting,N=T.loading,V=T.dispatch,H=Object(n.a)(T,["newShixuns","globalSetting","loading","dispatch"]),D=a.a.useForm(),W=Object(u.a)(D,1),F=W[0],I=Object(d.useState)([]),K=Object(u.a)(I,2),ee=K[0],he=K[1],de=function(ue){var se=["uploading","done","removed"];se.includes(ue.file.status)&&he(ue.fileList)},Se=function(ue){if(!ue.percent||ue.percent==100){var se,$=(se=ue.response)===null||se===void 0?void 0:se.id;return e.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(O.a)(h.a.mark(function ae(){var Oe;return h.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,V({type:"newShixuns/deleteAttachment",payload:{id:$}});case 2:Oe=te.sent,Oe&&he(ee.filter(function(Q){var J;return((J=Q.response)===null||J===void 0?void 0:J.id)!==$}));case 4:case"end":return te.stop()}},ae)}));function re(){return me.apply(this,arguments)}return re}()}),!1}},Te=function(ue){if(ee.length)return!1;var se=ue.size/1024/1024>50;return se?(C.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},ce=function(){var ye=Object(O.a)(h.a.mark(function ue(se){var $,me,re,ae,Oe,le,te,Q;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=se||{},ae=re.language,Oe=re.env,le=re.mode,te=re.code,ve.next=3,V({type:"newShixuns/applyShixunMirror",payload:{language:ae,runtime:Oe,run_method:le,attachment_id:ee==null||(($=ee[0])===null||$===void 0||((me=$.response)===null||me===void 0))?void 0:me.id}});case 3:Q=ve.sent,V({type:"newShixuns/setActionTabs",payload:{}}),Q&&C.b.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002");case 6:case"end":return ve.stop()}},ue)}));return function(se){return ye.apply(this,arguments)}}(),be=function(){F.resetFields(),he([])};return s.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:U.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:be},s.a.createElement("section",{className:R.a.qrCode},s.a.createElement("aside",{className:R.a.a1},s.a.createElement("div",{className:R.a.code},s.a.createElement("img",{width:120,height:120,src:_.a,alt:"\u4E8C\u7EF4\u7801"})),s.a.createElement("div",{className:R.a.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),s.a.createElement("div",{className:R.a.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),s.a.createElement("aside",{className:R.a.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",s.a.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),s.a.createElement(a.a,{className:R.a.formWrap,form:F,labelCol:{span:4},wrapperCol:{span:20},onFinish:ce},s.a.createElement(a.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},s.a.createElement(x,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),s.a.createElement(a.a.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},s.a.createElement(x,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),s.a.createElement(a.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},s.a.createElement(x,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),s.a.createElement(a.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},s.a.createElement("div",{className:R.a.upload},s.a.createElement(b.a,{fileList:ee,action:"".concat(w.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:de,onRemove:Se,beforeUpload:Te,withCredentials:!0},s.a.createElement("span",{className:"".concat(R.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),s.a.createElement("span",{className:"".concat(R.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),s.a.createElement("div",{className:R.a.footerWrap},s.a.createElement(a.a.Item,null,s.a.createElement(g.a,{className:"mr5",size:"large",onClick:function(){V({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(g.a,{size:"large",type:"primary",htmlType:"submit",loading:N["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};z.a=Object(l.a)(function(v){var T=v.newShixuns,U=v.loading,L=v.globalSetting;return{newShixuns:T,globalSetting:L,loading:U.effects}})(S)},Fxgj:function(k,z,o){},GABl:function(k,z){k.exports="data:image/png;base64,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"},GRuw:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("lPiR"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.WordArray,y=g.algo,C=y.SHA256,O=y.SHA224=C.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var m=C._doFinalize.call(this);return m.sigBytes-=4,m}});g.SHA224=C._createHelper(O),g.HmacSHA224=C._createHmacHelper(O)}(),M.SHA224})},GfqC:function(k,z,o){"use strict";var M=o("q1tI"),g=o.n(M),A=o("TSYQ"),b=o.n(A);function y(W,F){var I="cannot "+W.method+" "+W.action+" "+F.status+"'",K=new Error(I);return K.status=F.status,K.method=W.method,K.url=W.action,K}function C(W){var F=W.responseText||W.response;if(!F)return F;try{return JSON.parse(F)}catch(I){return F}}function O(W){var F=new XMLHttpRequest;W.onProgress&&F.upload&&(F.upload.onprogress=function(he){he.total>0&&(he.percent=he.loaded/he.total*100),W.onProgress(he)});var I=new FormData;W.data&&Object.keys(W.data).forEach(function(ee){var he=W.data[ee];if(Array.isArray(he)){he.forEach(function(de){I.append(ee+"[]",de)});return}I.append(ee,W.data[ee])}),W.file instanceof Blob?I.append(W.filename,W.file,W.file.name):I.append(W.filename,W.file),F.onerror=function(he){W.onError(he)},F.onload=function(){return F.status<200||F.status>=300?W.onError(y(W,F),C(F)):W.onSuccess(C(F),F)},F.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in F&&(F.withCredentials=!0);var K=W.headers||{};return K["X-Requested-With"]!==null&&F.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(K).forEach(function(ee){K[ee]!==null&&F.setRequestHeader(ee,K[ee])}),F.send(I),{abort:function(){F.abort()}}}var m=+new Date,e=0;function f(){return"rc-upload-"+m+"-"+ ++e}function a(W,F){return W.indexOf(F,W.length-F.length)!==-1}var u=function(W,F){if(W&&F){var I=Array.isArray(F)?F:F.split(","),K=W.name||"",ee=W.type||"",he=ee.replace(/\/.*$/,"");return I.some(function(de){var Se=de.trim();return Se.charAt(0)==="."?a(K.toLowerCase(),Se.toLowerCase()):/\/\*$/.test(Se)?he===Se.replace(/\/.*$/,""):ee===Se})}return!0};function n(W,F){var I=W.createReader(),K=[];function ee(){I.readEntries(function(he){var de=Array.prototype.slice.apply(he);K=K.concat(de);var Se=!de.length;Se?F(K):ee()})}ee()}var i=function(F,I,K){var ee=function he(de,Se){Se=Se||"",de.isFile?de.file(function(Te){K(Te)&&(de.fullPath&&!Te.webkitRelativePath&&(Object.defineProperties(Te,{webkitRelativePath:{writable:!0}}),Te.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(Te,{webkitRelativePath:{writable:!1}})),I([Te]))}):de.isDirectory&&n(de,function(Te){Te.forEach(function(ce){he(ce,""+Se+de.name+"/")})})};F.forEach(function(he){ee(he.webkitGetAsEntry())})},r=i,c=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var I=arguments[F];for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&(W[K]=I[K])}return W},h=function(){function W(F,I){var K=[],ee=!0,he=!1,de=void 0;try{for(var Se=F[Symbol.iterator](),Te;!(ee=(Te=Se.next()).done)&&!(K.push(Te.value),I&&K.length===I);ee=!0);}catch(ce){he=!0,de=ce}finally{try{!ee&&Se.return&&Se.return()}finally{if(he)throw de}}return K}return function(F,I){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return W(F,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(F,I){for(var K=0;K<I.length;K++){var ee=I[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(F,ee.key,ee)}}return function(F,I,K){return I&&W(F.prototype,I),K&&W(F,K),F}}();function s(W,F,I){return F in W?Object.defineProperty(W,F,{value:I,enumerable:!0,configurable:!0,writable:!0}):W[F]=I,W}function l(W,F){var I={};for(var K in W){if(F.indexOf(K)>=0)continue;if(!Object.prototype.hasOwnProperty.call(W,K))continue;I[K]=W[K]}return I}function w(W,F){if(!(W instanceof F))throw new TypeError("Cannot call a class as a function")}function E(W,F){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:W}function _(W,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);W.prototype=Object.create(F&&F.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(W,F):W.__proto__=F)}var P=function(F){return Object.keys(F).reduce(function(I,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-"||K==="role")&&(I[K]=F[K]),I},{})},R=function(W){_(F,W);function F(){var I,K,ee,he;w(this,F);for(var de=arguments.length,Se=Array(de),Te=0;Te<de;Te++)Se[Te]=arguments[Te];return he=(K=(ee=E(this,(I=F.__proto__||Object.getPrototypeOf(F)).call.apply(I,[this].concat(Se))),ee),ee.state={uid:f()},ee.reqs={},ee.onChange=function(ce){var be=ce.target.files;ee.uploadFiles(be),ee.reset()},ee.onClick=function(ce){var be=ee.fileInput;if(!be)return;var ye=ee.props,ue=ye.children,se=ye.onClick;ue&&ue.type==="button"&&(be.parentNode.focus(),be.parentNode.querySelector("button").blur()),be.click(),se&&se(ce)},ee.onKeyDown=function(ce){ce.key==="Enter"&&ee.onClick()},ee.onFileDrop=function(ce){var be=ee.props.multiple;if(ce.preventDefault(),ce.type==="dragover")return;if(ee.props.directory)r(Array.prototype.slice.call(ce.dataTransfer.items),ee.uploadFiles,function(ue){return u(ue,ee.props.accept)});else{var ye=Array.prototype.slice.call(ce.dataTransfer.files).filter(function(ue){return u(ue,ee.props.accept)});be===!1&&(ye=ye.slice(0,1)),ee.uploadFiles(ye)}},ee.uploadFiles=function(ce){var be=Array.prototype.slice.call(ce);be.map(function(ye){return ye.uid=f(),ye}).forEach(function(ye){ee.upload(ye,be)})},ee.saveFileInput=function(ce){ee.fileInput=ce},K),E(ee,he)}return d(F,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(K,ee){var he=this,de=this.props;if(!de.beforeUpload)return setTimeout(function(){return he.post(K)},0);var Se=de.beforeUpload(K,ee);Se&&Se.then?Se.then(function(Te){var ce=Object.prototype.toString.call(Te);return ce==="[object File]"||ce==="[object Blob]"?he.post(Te):he.post(K)}).catch(function(Te){console.log(Te)}):Se!==!1&&setTimeout(function(){return he.post(K)},0);return}},{key:"post",value:function(K){var ee=this;if(!this._isMounted)return;var he=this.props,de=he.onStart,Se=he.onProgress,Te=he.transformFile,ce=Te===void 0?function(be){return be}:Te;new Promise(function(be){var ye=he.action;return typeof ye=="function"&&(ye=ye(K)),be(ye)}).then(function(be){var ye=K.uid,ue=he.customRequest||O,se=Promise.resolve(ce(K)).then(function($){var me=he.data;return typeof me=="function"&&(me=me($)),Promise.all([$,me])}).catch(function($){console.error($)});se.then(function($){var me=h($,2),re=me[0],ae=me[1],Oe={action:be,filename:he.name,data:ae,file:re,headers:he.headers,withCredentials:he.withCredentials,method:he.method||"post",onProgress:Se?function(le){Se(le,K)}:null,onSuccess:function(te,Q){delete ee.reqs[ye],he.onSuccess(te,K,Q)},onError:function(te,Q){delete ee.reqs[ye],he.onError(te,Q,K)}};de(K),ee.reqs[ye]=ue(Oe)})})}},{key:"reset",value:function(){this.setState({uid:f()})}},{key:"abort",value:function(K){var ee=this.reqs;if(K){var he=K;K&&K.uid&&(he=K.uid),ee[he]&&ee[he].abort&&ee[he].abort(),delete ee[he]}else Object.keys(ee).forEach(function(de){ee[de]&&ee[de].abort&&ee[de].abort(),delete ee[de]})}},{key:"render",value:function(){var K,ee=this.props,he=ee.component,de=ee.prefixCls,Se=ee.className,Te=ee.disabled,ce=ee.id,be=ee.style,ye=ee.multiple,ue=ee.accept,se=ee.children,$=ee.directory,me=ee.openFileDialogOnClick,re=ee.onMouseEnter,ae=ee.onMouseLeave,Oe=l(ee,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),le=b()((K={},s(K,de,!0),s(K,de+"-disabled",Te),s(K,Se,Se),K)),te=Te?{}:{onClick:me?this.onClick:function(){},onKeyDown:me?this.onKeyDown:function(){},onMouseEnter:re,onMouseLeave:ae,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return g.a.createElement(he,c({},te,{className:le,role:"button",style:be}),g.a.createElement("input",c({},P(Oe),{id:ce,type:"file",ref:this.saveFileInput,onClick:function(J){return J.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ue,directory:$?"directory":null,webkitdirectory:$?"webkitdirectory":null,multiple:ye,onChange:this.onChange})),se)}}]),F}(M.Component),x=R,S=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var I=arguments[F];for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&(W[K]=I[K])}return W},v=function(){function W(F,I){for(var K=0;K<I.length;K++){var ee=I[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(F,ee.key,ee)}}return function(F,I,K){return I&&W(F.prototype,I),K&&W(F,K),F}}();function T(W,F){if(!(W instanceof F))throw new TypeError("Cannot call a class as a function")}function U(W,F){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:W}function L(W,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);W.prototype=Object.create(F&&F.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(W,F):W.__proto__=F)}function N(){}var V=function(W){L(F,W);function F(){var I,K,ee,he;T(this,F);for(var de=arguments.length,Se=Array(de),Te=0;Te<de;Te++)Se[Te]=arguments[Te];return he=(K=(ee=U(this,(I=F.__proto__||Object.getPrototypeOf(F)).call.apply(I,[this].concat(Se))),ee),ee.saveUploader=function(ce){ee.uploader=ce},K),U(ee,he)}return v(F,[{key:"abort",value:function(K){this.uploader.abort(K)}},{key:"render",value:function(){return g.a.createElement(x,S({},this.props,{ref:this.saveUploader}))}}]),F}(M.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 H=V,D=z.a=H},Gytx:function(k,z){k.exports=function(M,g,A,b){var y=A?A.call(b,M,g):void 0;if(y!==void 0)return!!y;if(M===g)return!0;if(typeof M!="object"||!M||typeof g!="object"||!g)return!1;var C=Object.keys(M),O=Object.keys(g);if(C.length!==O.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(g),e=0;e<C.length;e++){var f=C[e];if(!m(f))return!1;var a=M[f],u=g[f];if(y=A?A.call(b,a,u,f):void 0,y===!1||y===void 0&&a!==u)return!1}return!0}},HjOm:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var M={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"},g=M;z.default=g},HmJG:function(k,z,o){},HpTS:function(k,z,o){k.exports=o.p+"static/small_program.f74069ec.png"},HpfO:function(k,z,o){k.exports={wrap:"wrap___r5XlG",content:"content___1KVgv",mainPathWrap:"mainPathWrap___256K2",colorBlue:"colorBlue___3S7DM"}},I8Z2:function(k,z,o){"use strict";o.d(z,"a",function(){return b}),o.d(z,"b",function(){return n}),o.d(z,"c",function(){return r});var M=o("q1tI"),g=function(){var c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var w in l)l.hasOwnProperty(w)&&(s[w]=l[w])},c(h,d)};return function(h,d){c(h,d);function s(){this.constructor=h}h.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}}(),A=M.createContext(null),b=function(c){g(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.render=function(){return M.createElement(A.Provider,{value:this.props.store},this.props.children)},h}(M.Component),y=o("Gytx"),C=o.n(y),O=o("2mql"),m=o.n(O),e=function(){var c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var w in l)l.hasOwnProperty(w)&&(s[w]=l[w])},c(h,d)};return function(h,d){c(h,d);function s(){this.constructor=h}h.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}}(),f=function(){return f=Object.assign||function(c){for(var h,d=1,s=arguments.length;d<s;d++){h=arguments[d];for(var l in h)Object.prototype.hasOwnProperty.call(h,l)&&(c[l]=h[l])}return c},f.apply(this,arguments)};function a(c){return c.displayName||c.name||"Component"}var u=function(){return{}};function n(c,h){h===void 0&&(h={});var d=!!c,s=c||u;return function(w){var E=function(P){e(R,P);function R(x,S){var v=P.call(this,x,S)||this;return v.unsubscribe=null,v.handleChange=function(){if(!v.unsubscribe)return;var T=s(v.store.getState(),v.props);v.setState({subscribed:T})},v.store=v.context,v.state={subscribed:s(v.store.getState(),x),store:v.store,props:x},v}return R.getDerivedStateFromProps=function(x,S){return c&&c.length===2&&x!==S.props?{subscribed:s(S.store.getState(),x),props:x}:{props:x}},R.prototype.componentDidMount=function(){this.trySubscribe()},R.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},R.prototype.shouldComponentUpdate=function(x,S){return!C()(this.props,x)||!C()(this.state.subscribed,S.subscribed)},R.prototype.trySubscribe=function(){d&&(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 x=f(f(f({},this.props),this.state.subscribed),{store:this.store});return M.createElement(w,f({},x,{ref:this.props.miniStoreForwardedRef}))},R.displayName="Connect("+a(w)+")",R.contextType=A,R}(M.Component);if(h.forwardRef){var _=M.forwardRef(function(P,R){return M.createElement(E,f({},P,{miniStoreForwardedRef:R}))});return m()(_,w)}return m()(E,w)}}var i=function(){return i=Object.assign||function(c){for(var h,d=1,s=arguments.length;d<s;d++){h=arguments[d];for(var l in h)Object.prototype.hasOwnProperty.call(h,l)&&(c[l]=h[l])}return c},i.apply(this,arguments)};function r(c){var h=c,d=[];function s(E){h=i(i({},h),E);for(var _=0;_<d.length;_++)d[_]()}function l(){return h}function w(E){return d.push(E),function(){var P=d.indexOf(E);d.splice(P,1)}}return{setState:s,getState:l,subscribe:w}}},IBYe:function(k,z,o){"use strict";function M(g){return null}z.a=M},Ib8C:function(k,z,o){(function(M){(function(g,A){k.exports=z=A()})(this,function(){var g=g||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 M!="undefined"&&M.crypto&&(y=M.crypto),!y&&!0)try{y=o(4)}catch(s){}var C=function(){if(y){if(typeof y.getRandomValues=="function")try{return y.getRandomValues(new Uint32Array(1))[0]}catch(s){}if(typeof y.randomBytes=="function")try{return y.randomBytes(4).readInt32LE()}catch(s){}}throw new Error("Native crypto module could not be used to get secure random number.")},O=Object.create||function(){function s(){}return function(l){var w;return s.prototype=l,w=new s,s.prototype=null,w}}(),m={},e=m.lib={},f=e.Base=function(){return{extend:function(s){var l=O(this);return s&&l.mixIn(s),(!l.hasOwnProperty("init")||this.init===l.init)&&(l.init=function(){l.$super.init.apply(this,arguments)}),l.init.prototype=l,l.$super=this,l},create:function(){var s=this.extend();return s.init.apply(s,arguments),s},init:function(){},mixIn:function(s){for(var l in s)s.hasOwnProperty(l)&&(this[l]=s[l]);s.hasOwnProperty("toString")&&(this.toString=s.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=e.WordArray=f.extend({init:function(s,l){s=this.words=s||[],l!=b?this.sigBytes=l:this.sigBytes=s.length*4},toString:function(s){return(s||n).stringify(this)},concat:function(s){var l=this.words,w=s.words,E=this.sigBytes,_=s.sigBytes;if(this.clamp(),E%4)for(var P=0;P<_;P++){var R=w[P>>>2]>>>24-P%4*8&255;l[E+P>>>2]|=R<<24-(E+P)%4*8}else for(var x=0;x<_;x+=4)l[E+x>>>2]=w[x>>>2];return this.sigBytes+=_,this},clamp:function(){var s=this.words,l=this.sigBytes;s[l>>>2]&=4294967295<<32-l%4*8,s.length=A.ceil(l/4)},clone:function(){var s=f.clone.call(this);return s.words=this.words.slice(0),s},random:function(s){for(var l=[],w=0;w<s;w+=4)l.push(C());return new a.init(l,s)}}),u=m.enc={},n=u.Hex={stringify:function(s){for(var l=s.words,w=s.sigBytes,E=[],_=0;_<w;_++){var P=l[_>>>2]>>>24-_%4*8&255;E.push((P>>>4).toString(16)),E.push((P&15).toString(16))}return E.join("")},parse:function(s){for(var l=s.length,w=[],E=0;E<l;E+=2)w[E>>>3]|=parseInt(s.substr(E,2),16)<<24-E%8*4;return new a.init(w,l/2)}},i=u.Latin1={stringify:function(s){for(var l=s.words,w=s.sigBytes,E=[],_=0;_<w;_++){var P=l[_>>>2]>>>24-_%4*8&255;E.push(String.fromCharCode(P))}return E.join("")},parse:function(s){for(var l=s.length,w=[],E=0;E<l;E++)w[E>>>2]|=(s.charCodeAt(E)&255)<<24-E%4*8;return new a.init(w,l)}},r=u.Utf8={stringify:function(s){try{return decodeURIComponent(escape(i.stringify(s)))}catch(l){throw new Error("Malformed UTF-8 data")}},parse:function(s){return i.parse(unescape(encodeURIComponent(s)))}},c=e.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(s){typeof s=="string"&&(s=r.parse(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes},_process:function(s){var l,w=this._data,E=w.words,_=w.sigBytes,P=this.blockSize,R=P*4,x=_/R;s?x=A.ceil(x):x=A.max((x|0)-this._minBufferSize,0);var S=x*P,v=A.min(S*4,_);if(S){for(var T=0;T<S;T+=P)this._doProcessBlock(E,T);l=E.splice(0,S),w.sigBytes-=v}return new a.init(l,v)},clone:function(){var s=f.clone.call(this);return s._data=this._data.clone(),s},_minBufferSize:0}),h=e.Hasher=c.extend({cfg:f.extend(),init:function(s){this.cfg=this.cfg.extend(s),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(s){return this._append(s),this._process(),this},finalize:function(s){s&&this._append(s);var l=this._doFinalize();return l},blockSize:512/32,_createHelper:function(s){return function(l,w){return new s.init(w).finalize(l)}},_createHmacHelper:function(s){return function(l,w){return new d.HMAC.init(s,w).finalize(l)}}}),d=m.algo={};return m}(Math);return g})}).call(this,o("IyRk"))},JAbv:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},JFl9:function(k,z,o){k.exports={footerWrap:"footerWrap___3bmMI"}},JWDV:function(k,z,o){k.exports=o.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(k,z,o){"use strict";o.d(z,"a",function(){return M});var M;(function(g){function A(l){return l&&typeof l=="object"&&typeof l[Symbol.iterator]=="function"}g.is=A;const b=Object.freeze([]);function y(){return b}g.empty=y;function*C(l){yield l}g.single=C;function O(l){return l||b}g.from=O;function m(l){return!l||l[Symbol.iterator]().next().done===!0}g.isEmpty=m;function e(l){return l[Symbol.iterator]().next().value}g.first=e;function f(l,w){for(const E of l)if(w(E))return!0;return!1}g.some=f;function a(l,w){for(const E of l)if(w(E))return E;return}g.find=a;function*u(l,w){for(const E of l)w(E)&&(yield E)}g.filter=u;function*n(l,w){let E=0;for(const _ of l)yield w(_,E++)}g.map=n;function*i(...l){for(const w of l)for(const E of w)yield E}g.concat=i;function*r(l){for(const w of l)for(const E of w)yield E}g.concatNested=r;function c(l,w,E){let _=E;for(const P of l)_=w(_,P);return _}g.reduce=c;function*h(l,w,E=l.length){for(w<0&&(w+=l.length),E<0?E+=l.length:E>l.length&&(E=l.length);w<E;w++)yield l[w]}g.slice=h;function d(l,w=Number.POSITIVE_INFINITY){const E=[];if(w===0)return[E,l];const _=l[Symbol.iterator]();for(let P=0;P<w;P++){const R=_.next();if(R.done)return[E,g.empty()];E.push(R.value)}return[E,{[Symbol.iterator](){return _}}]}g.consume=d;function s(l,w,E=(_,P)=>_===P){const _=l[Symbol.iterator](),P=w[Symbol.iterator]();for(;;){const R=_.next(),x=P.next();if(R.done!==x.done)return!1;if(R.done)return!0;if(!E(R.value,x.value))return!1}}g.equals=s})(M||(M={}))},JeFH:function(k,z){k.exports="data:image/png;base64,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"},Jky8:function(k,z,o){"use strict";var M=o("sRBo"),g=o("kaz8"),A=o("5NDa"),b=o("5rEg"),y=o("miYZ"),C=o("tsqr"),O=o("9og8"),m=o("2qtc"),e=o("kLXV"),f=o("tJVT"),a=o("WmNS"),u=o.n(a),n=o("q1tI"),i=o.n(n),r=o("9kvl"),c=o("6CvP"),h=o("1XHU"),d=o("1vsH"),s;(function(w){w[w.Professor=1]="Professor",w[w.AssistantProfessor=2]="AssistantProfessor",w[w.Student=3]="Student"})(s||(s={}));var l=function(E){var _=E.visible,P=E.user,R=E.onCancel,x=R===void 0?function(){}:R,S=Object(n.useState)(),v=Object(f.a)(S,2),T=v[0],U=v[1],L=Object(n.useState)([]),N=Object(f.a)(L,2),V=N[0],H=N[1],D=Object(n.useState)(!1),W=Object(f.a)(D,2),F=W[0],I=W[1],K=Object(n.useState)(!1),ee=Object(f.a)(K,2),he=ee[0],de=ee[1],Se=Object(n.useState)(),Te=Object(f.a)(Se,2),ce=Te[0],be=Te[1];Object(n.useEffect)(function(){var $;if(P!=null&&($=P.userInfo)!==null&&$!==void 0&&$.identity){var me;H([(P==null||((me=P.userInfo)===null||me===void 0)?void 0:me.identity)==="student"?3:1])}},[P]);var ye=function(me,re){if(V.includes(s.Professor)){e.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:i.a.createElement("div",{className:"tc"},re||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){r.d.push("/classrooms/".concat(me,"/students"))}});return}r.d.push("/classrooms/".concat(me,"/students"))},ue=function(){var $=Object(O.a)(u.a.mark(function me(){var re;return u.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(T){Oe.next=3;break}return C.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Oe.abrupt("return");case 3:return I(!0),Oe.next=6,Object(c.c)({invite_code:T,professor:V.includes(s.Professor)?1:null,assistant_professor:V.includes(s.AssistantProfessor)?1:null,student:V.includes(s.Student)?1:null});case 6:if(re=Oe.sent,I(!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(d.eb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),se(),(re==null?void 0:re.course_id)&&ye(re.course_id,re.message),Oe.abrupt("return");case 27:case"end":return Oe.stop()}},me)}));return function(){return $.apply(this,arguments)}}(),se=function(){var $=Object(O.a)(u.a.mark(function me(){return u.a.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:x();case 1:case"end":return ae.stop()}},me)}));return function(){return $.apply(this,arguments)}}();return i.a.createElement(i.a.Fragment,null,i.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:_,confirmLoading:F,onOk:ue,onCancel:se},i.a.createElement("div",{className:"tc"},i.a.createElement("div",null,i.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),i.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:T,onChange:function(me){if(me.target.value.length>=7){C.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}U(me.target.value)}})),i.a.createElement("div",{className:"mt10 font14"},i.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),i.a.createElement(g.a.Group,{value:V,onChange:function(me){return H(me)}},i.a.createElement(g.a,{value:s.Professor,disabled:V.includes(2)||V.includes(3)},"\u6559\u5E08"),i.a.createElement(g.a,{value:s.AssistantProfessor,disabled:V.includes(1)},"\u52A9\u6559"),i.a.createElement(g.a,{value:s.Student,disabled:V.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),i.a.createElement(h.a,{visible:he,onCancel:function(){return de(!1)},occupationValue:ce}))};z.a=Object(r.a)(function(w){var E=w.user;return{user:E}})(l)},Jq4h:function(k,z,o){k.exports=o.p+"static/qrcode.2267e4d5.png"},Jv0p:function(k,z,o){k.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(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.Base,y=A.WordArray,C=g.algo,O=C.MD5,m=C.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:O,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var a,u=this.cfg,n=u.hasher.create(),i=y.create(),r=i.words,c=u.keySize,h=u.iterations;r.length<c;){a&&n.update(a),a=n.update(e).finalize(f),n.reset();for(var d=1;d<h;d++)a=n.finalize(a),n.reset();i.concat(a)}return i.sigBytes=c*4,i}});g.EvpKDF=function(e,f,a){return m.create(a).compute(e,f)}}(),M.EvpKDF})},KOXS:function(k,z,o){k.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(k,z,o){k.exports={wrap:"wrap___1VfLE",content:"content___20B4M",mainPathWrap:"mainPathWrap___3qDeg",colorBlue:"colorBlue___2ZjUq"}},KeGQ:function(k,z,o){k.exports=o.p+"static/noLevelData.36460f71.png"},KhGG:function(k,z,o){"use strict";o.d(z,"a",function(){return _}),o.d(z,"c",function(){return x});var M=o("0Owb"),g=o("miYZ"),A=o("tsqr"),b=o("oBTY"),y=o("tJVT"),C=o("PpiC"),O=o("k1fw"),m=o("9og8"),e=o("DZo9"),f=o("8z0m"),a=o("WmNS"),u=o.n(a),n=o("q1tI"),i=o.n(n),r=o("ErOA"),c=o("NFKh"),h=o.n(c),d=o("7Cbv"),s=o("9kvl"),l=o("mxV5"),w=o.n(l),E=f.a.Dragger,_=function(T){var U="bf3c199c2470cb477d907b1e0917c17b",L="5183666c72eec9e4",N=h.a.enc.Utf8.parse(U),V=h.a.enc.Utf8.parse(L),H=h.a.AES.decrypt(T,N,{iv:V,mode:h.a.mode.CBC});return H.toString(h.a.enc.Utf8)},P,R=function(){var v=Object(m.a)(u.a.mark(function T(U){var L,N,V,H,D,W,F,I,K,ee,he;return u.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return F=U.identifier,I=U.oldFilename,K=U.newFilename,Se.next=3,Object(r.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 3:return ee=Se.sent,ee.data=JSON.parse(_(ee.data)),he=new w.a({endpoint:ee==null||((L=ee.data)===null||L===void 0)?void 0:L.end_point,region:ee==null||((N=ee.data)===null||N===void 0)?void 0:N.region,accessKeyId:ee==null||((V=ee.data)===null||V===void 0)?void 0:V.access_key_id,accessKeySecret:ee==null||((H=ee.data)===null||H===void 0)?void 0:H.access_key_secret,bucket:ee==null||((D=ee.data)===null||D===void 0)?void 0:D.bucket,stsToken:ee==null||((W=ee.data)===null||W===void 0)?void 0:W.security_token}),Se.abrupt("return",new Promise(function(Te,ce){console.log(11111,"".concat(F,"/").concat(I),"".concat(F,"/").concat(K),ee.data),he.copy("/".concat(F,"/").concat(I),"/".concat(F,"/").concat(K)).then(function(be){console.log("\u62F7\u8D1D\u6210\u529F",be)}).catch(function(be){console.log(be)})}));case 7:case"end":return Se.stop()}},T)}));return function(U){return v.apply(this,arguments)}}(),x=function(){var v=Object(m.a)(u.a.mark(function T(U,L,N){var V,H,D,W,F,I,K,ee,he,de;return u.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return L.file_name=U.name,Te.next=3,Object(r.a)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return K=Te.sent,console.log("decrypt(res.data):",_(K.data)),K.data=JSON.parse(_(K.data)),ee=U.name.split("."),ee.pop(),he=L.realFileName?ee:Object(d.a)(),de=new w.a({endpoint:K==null||((V=K.data)===null||V===void 0)?void 0:V.end_point,region:K==null||((H=K.data)===null||H===void 0)?void 0:H.region,accessKeyId:K==null||((D=K.data)===null||D===void 0)?void 0:D.access_key_id,accessKeySecret:K==null||((W=K.data)===null||W===void 0)?void 0:W.access_key_secret,bucket:K==null||((F=K.data)===null||F===void 0)?void 0:F.bucket,stsToken:K==null||((I=K.data)===null||I===void 0)?void 0:I.security_token}),Te.abrupt("return",new Promise(function(ce,be){var ye;de.multipartUpload("".concat(he),new Blob([U],{type:U.type}),Object(O.a)(Object(O.a)({timeout:200*1e3,partSize:102400},N),{},{callback:{url:K==null||((ye=K.data)===null||ye===void 0)?void 0:ye.callback_url,host:K==null?void 0:K.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(r.e)(L)}})).then(function(ue){var se;U.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 Te.stop()}},T)}));return function(U,L,N){return v.apply(this,arguments)}}(),S=function(T){var U=T.user,L=T.cancelUpload,N=Object(C.a)(T,["user","cancelUpload"]),V=Object(n.useState)([]),H=Object(y.a)(V,2),D=H[0],W=H[1],F=Object(n.useState)(),I=Object(y.a)(F,2),K=I[0],ee=I[1],he={onRemove:function(Te){W(Object(b.a)(D.filter(function(ce){return ce.name!==Te.name}))),N.onChange(D.filter(function(ce){return ce.name!==Te.name}))},disabled:N.disabled,multiple:!0,fileList:D==null?void 0:D.map(function(Se){return Se.file}),customRequest:function(){},beforeUpload:function(){var Se=Object(m.a)(u.a.mark(function ce(be){var ye;return u.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(ye=N.maxSize||1024*1024*1024*1,!D.filter(function($){return $.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)>ye)){se.next=7;break}return A.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(ye/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),se.abrupt("return",!1);case 7:return D.push({name:be.name,file:be}),W(Object(b.a)(D)),N.onChange(D),se.abrupt("return",!1);case 11:case"end":return se.stop()}},ce)}));function Te(ce){return Se.apply(this,arguments)}return Te}()},de=function(){var Se=Object(m.a)(u.a.mark(function Te(ce,be){var ye,ue,se,$,me,re,ae,Oe,le,te;return u.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return be.file_name=ce.name,ae=ce.name,J.next=4,Object(r.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(Oe=J.sent,Oe.data=JSON.parse(_(Oe.data)),!((Oe==null?void 0:Oe.status)!==0)){J.next=12;break}return D[D.findIndex(function(ve){return ve.name===ae})].status="error",D[D.findIndex(function(ve){return ve.name===ae})].file.status="error",N.onChange(D),A.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),J.abrupt("return");case 12:return K=new w.a({endpoint:Oe==null||((ye=Oe.data)===null||ye===void 0)?void 0:ye.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||(($=Oe.data)===null||$===void 0)?void 0:$.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"),ee(K),le=ce.name.split("."),le.pop(),te=be.realFileName?le:Object(d.a)(),J.abrupt("return",new Promise(function(ve,_e){try{var Ae;K.multipartUpload("".concat(N.identifier,"/").concat(te).concat(ae.indexOf(".")>-1?"."+ae.split(".").pop():""),new Blob([ce.file],{type:ce.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(tt,ut,ht){try{console.log("\u8FDB\u5EA6",tt,ut,ht);var vt=D.findIndex(function(_t){return _t.name===ae});D[vt].file.percent=tt*100,D[vt].tempCheckpoint=ut,W(Object(b.a)(D))}catch(_t){}},checkpoint:D[D.findIndex(function(Je){return Je.name===ae})].tempCheckpoint,callback:{customValue:{id:ae+""},url:Oe==null||((Ae=Oe.data)===null||Ae===void 0)?void 0:Ae.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(r.e)(be)}}).then(function(Je){var tt,ut=D.findIndex(function(Ue){return Ue.name===ae}),ht="done";if(((tt=Je.data)===null||tt===void 0?void 0:tt.status)===0){var vt;ce.response=(vt=Je.data)===null||vt===void 0?void 0:vt.data;var _t=D.findIndex(function(Ue){return Ue.name===ae});D[_t].status="done",D[_t].file.status="done"}else{var Ve;A.b.warn((Ve=Je.data)===null||Ve===void 0?void 0:Ve.message),ht="error"}D[ut].status=ht,D[ut].file.status=ht,N.onChange(D),ve(Je==null?void 0:Je.data)}).catch(function(Je){D[D.findIndex(function(tt){return tt.name===ae})].status="error",D[D.findIndex(function(tt){return tt.name===ae})].file.status="error",A.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),W(Object(b.a)(D)),N.onChange(D),_e(Je),console.log("err:",Je)})}catch(Je){}}));case 19:case"end":return J.stop()}},Te)}));return function(ce,be){return Se.apply(this,arguments)}}();return Object(n.useEffect)(function(){D.every(function(Se){return Se==="done"||Se==="error"})&&N.onComplete(D)},[D]),Object(n.useEffect)(function(){if(L){var Se;(Se=K)===null||Se===void 0||Se.cancel()}},[L]),Object(n.useEffect)(function(){N.uploading&&D.map(function(){var Se=Object(m.a)(u.a.mark(function Te(ce){var be,ye;return u.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!((!ce.status||ce.status==="error")&&!L)){se.next=6;break}return ce.status="uploading",ce.file.status="uploading",se.next=5,de(ce,{login:U==null||((be=U.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:ye=se.sent;case 6:case"end":return se.stop()}},Te)}));return function(Te){return Se.apply(this,arguments)}}())},[N.uploading]),i.a.createElement(E,Object(M.a)({},he,{height:N.height,className:N.className}),i.a.createElement("p",{className:"ant-upload-hint"},N.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};z.b=Object(s.a)(function(v){var T=v.loading,U=v.globalSetting,L=v.user;return{globalSetting:U,loading:T.models.competitions,user:L}})(S)},KmYQ:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.ZeroPadding={pad:function(g,A){var b=A*4;g.clamp(),g.sigBytes+=b-(g.sigBytes%b||b)},unpad:function(g){for(var A=g.words,b=g.sigBytes-1,b=g.sigBytes-1;b>=0;b--)if(A[b>>>2]>>>24-b%4*8&255){g.sigBytes=b+1;break}}},M.pad.ZeroPadding})},"L+Ii":function(k,z,o){k.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(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var M=function(){function u(n,i){for(var r=0;r<i.length;r++){var c=i[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(n,c.key,c)}}return function(n,i,r){return i&&u(n.prototype,i),r&&u(n,r),n}}(),g=o("q1tI"),A=C(g),b=o("17x9"),y=C(b);function C(u){return u&&u.__esModule?u:{default:u}}function O(u,n){var i={};for(var r in u){if(n.indexOf(r)>=0)continue;if(!Object.prototype.hasOwnProperty.call(u,r))continue;i[r]=u[r]}return i}function m(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function e(u,n){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:u}function f(u,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);u.prototype=Object.create(n&&n.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(u,n):u.__proto__=n)}var a=function(u){f(n,u);function n(i){m(this,n);var r=e(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,i));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}return M(n,[{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 r=this.getParentElement(this.scrollComponent);r.scrollTop=r.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var r=!1,c={get passive(){r=!0}};try{document.addEventListener("test",null,c),document.removeEventListener("test",null,c)}catch(h){}return r}},{key:"eventListenerOptions",value:function(){var r=this.props.useCapture;return this.isPassiveSupported()&&(r={useCapture:this.props.useCapture,passive:!0}),r}},{key:"setDefaultLoader",value:function(r){this.defaultLoader=r}},{key:"detachMousewheelListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.scrollComponent.parentNode),r.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.getParentElement(this.scrollComponent)),r.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(r){var c=this.props.getScrollParent&&this.props.getScrollParent();return c!=null?c:r&&r.parentNode}},{key:"filterProps",value:function(r){return r}},{key:"attachScrollListener",value:function(){var r=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!r)return;var c=window;this.props.useWindow===!1&&(c=r),c.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),c.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),c.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(r){r.deltaY===1&&!this.isPassiveSupported()&&r.preventDefault()}},{key:"scrollListener",value:function(){var r=this.scrollComponent,c=window,h=this.getParentElement(r),d=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,l=c.pageYOffset!==void 0?c.pageYOffset:s.scrollTop;this.props.isReverse?d=l:d=this.calculateOffset(r,l)}else this.props.isReverse?d=h.scrollTop:d=r.scrollHeight-h.scrollTop-h.clientHeight;d<Number(this.props.threshold)&&r&&r.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=h.scrollHeight,this.beforeScrollTop=h.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(r,c){return r?this.calculateTopPosition(r)+(r.offsetHeight-c-window.innerHeight):0}},{key:"calculateTopPosition",value:function(r){return r?r.offsetTop+this.calculateTopPosition(r.offsetParent):0}},{key:"render",value:function(){var r=this,c=this.filterProps(this.props),h=c.children,d=c.element,s=c.hasMore,l=c.initialLoad,w=c.isReverse,E=c.loader,_=c.loadMore,P=c.pageStart,R=c.ref,x=c.threshold,S=c.useCapture,v=c.useWindow,T=c.getScrollParent,U=O(c,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);U.ref=function(N){r.scrollComponent=N,R&&R(N)};var L=[h];return s&&(E?w?L.unshift(E):L.push(E):this.defaultLoader&&(w?L.unshift(this.defaultLoader):L.push(this.defaultLoader))),A.default.createElement(d,U,L)}}]),n}(g.Component);a.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},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},z.default=a,k.exports=z.default},Lai7:function(k,z,o){k.exports=o.p+"static/noEnvData.6108fa6c.png"},LdHM:function(k,z,o){"use strict";o.d(z,"b",function(){return l}),o.d(z,"a",function(){return E});var M=o("1OyB"),g=o("vuIU"),A=o("Ji7U"),b=o("LK+K"),y=o("q1tI"),C=o("rePB"),O=o("Ff2n"),m=o("ODXe"),e=o("4IlW"),f=o("bX4T"),a=o("YrtM"),u=o("TSYQ"),n=o.n(u),i=o("+nKL"),r=o("8OUc"),c=function(K,ee){var he=K.prefixCls,de=K.id,Se=K.flattenOptions,Te=K.childrenAsData,ce=K.values,be=K.searchValue,ye=K.multiple,ue=K.defaultActiveFirstOption,se=K.height,$=K.itemHeight,me=K.notFoundContent,re=K.open,ae=K.menuItemSelectedIcon,Oe=K.virtual,le=K.onSelect,te=K.onToggleOpen,Q=K.onActiveValue,J=K.onScroll,ve=K.onMouseEnter,_e="".concat(he,"-item"),Ae=Object(a.a)(function(){return Se},[re,Se],function(jt,Ze){return Ze[0]&&jt[1]!==Ze[1]}),Je=y.useRef(null),tt=function(Ze){Ze.preventDefault()},ut=function(Ze){Je.current&&Je.current.scrollTo({index:Ze})},ht=function(Ze){for(var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ye=Ae.length,Ce=0;Ce<Ye;Ce+=1){var Le=(Ze+Ce*Be+Ye)%Ye,He=Ae[Le],je=He.group,Ke=He.data;if(!je&&!Ke.disabled)return Le}return-1},vt=y.useState(function(){return ht(0)}),_t=Object(m.a)(vt,2),Ve=_t[0],Ue=_t[1],pt=function(Ze){Ue(Ze);var Be=Ae[Ze];if(!Be){Q(null,-1);return}Q(Be.data.value,Ze)};y.useEffect(function(){pt(ue!==!1?ht(0):-1)},[Ae.length,be]),y.useEffect(function(){var jt=setTimeout(function(){if(!ye&&re&&ce.size===1){var Ze=Array.from(ce)[0],Be=Ae.findIndex(function(Ye){var Ce=Ye.data;return Ce.value===Ze});pt(Be),ut(Be)}});return function(){return clearTimeout(jt)}},[re]);var Ut=function(Ze){Ze!==void 0&&le(Ze,{selected:!ce.has(Ze)}),ye||te(!1)};if(y.useImperativeHandle(ee,function(){return{onKeyDown:function(Ze){var Be=Ze.which;switch(Be){case e.a.UP:case e.a.DOWN:{var Ye=0;if(Be===e.a.UP?Ye=-1:Be===e.a.DOWN&&(Ye=1),Ye!==0){var Ce=ht(Ve+Ye,Ye);ut(Ce),pt(Ce)}break}case e.a.ENTER:{var Le=Ae[Ve];Le&&!Le.data.disabled?Ut(Le.data.value):Ut(void 0),re&&Ze.preventDefault();break}case e.a.ESC:te(!1)}},onKeyUp:function(){},scrollTo:function(Ze){ut(Ze)}}}),Ae.length===0)return y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),className:"".concat(_e,"-empty"),onMouseDown:tt},me);function Et(jt){var Ze=Ae[jt];if(!Ze)return null;var Be=Ze.data||{},Ye=Be.value,Ce=Be.label,Le=Be.children,He=Object(f.a)(Be,!0),je=Te?Le:Ce;return Ze?y.createElement("div",Object.assign({"aria-label":typeof je=="string"?je:null},He,{key:jt,role:"option",id:"".concat(de,"_list_").concat(jt),"aria-selected":ce.has(Ye)}),Ye):null}return y.createElement(y.Fragment,null,y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),style:{height:0,width:0,overflow:"hidden"}},Et(Ve-1),Et(Ve),Et(Ve+1)),y.createElement(i.a,{itemKey:"key",ref:Je,data:Ae,height:se,itemHeight:$,fullHeight:!1,onMouseDown:tt,onScroll:J,virtual:Oe,onMouseEnter:ve},function(jt,Ze){var Be,Ye=jt.group,Ce=jt.groupOption,Le=jt.data,He=Le.label,je=Le.key;if(Ye)return y.createElement("div",{className:n()(_e,"".concat(_e,"-group"))},He!==void 0?He:je);var Ke=Le.disabled,it=Le.value,Ct=Le.title,Ft=Le.children,Jt=Le.style,Ht=Le.className,Ot=Object(O.a)(Le,["disabled","value","title","children","style","className"]),Fe=ce.has(it),at="".concat(_e,"-option"),ot=n()(_e,at,Ht,(Be={},Object(C.a)(Be,"".concat(at,"-grouped"),Ce),Object(C.a)(Be,"".concat(at,"-active"),Ve===Ze&&!Ke),Object(C.a)(Be,"".concat(at,"-disabled"),Ke),Object(C.a)(Be,"".concat(at,"-selected"),Fe),Be)),Pe=Te?Ft:He,Qe=!ae||typeof ae=="function"||Fe;return y.createElement("div",Object.assign({},Ot,{"aria-selected":Fe,className:ot,title:Ct,onMouseMove:function(){if(Ve===Ze||Ke)return;pt(Ze)},onClick:function(){Ke||Ut(it)},style:Jt}),y.createElement("div",{className:"".concat(at,"-content")},Pe||it),y.isValidElement(ae)||Fe,Qe&&y.createElement(r.a,{className:"".concat(_e,"-option-state"),customizeIcon:ae,customizeIconProps:{isSelected:Fe}},Fe?"\u2713":null))}))},h=y.forwardRef(c);h.displayName="OptionList";var d=h,s=function(){return null};s.isSelectOption=!0;var l=s,w=function(){return null};w.isSelectOptGroup=!0;var E=w,_=o("VTBJ"),P=o("Zm9Q");function R(I){var K=I.key,ee=I.props,he=ee.children,de=ee.value,Se=Object(O.a)(ee,["children","value"]);return Object(_.a)({key:K,value:de!==void 0?de:K,children:he},Se)}function x(I){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(I).map(function(ee,he){if(!y.isValidElement(ee)||!ee.type)return null;var de=ee.type.isSelectOptGroup,Se=ee.key,Te=ee.props,ce=Te.children,be=Object(O.a)(Te,["children"]);return K||!de?R(ee):Object(_.a)(Object(_.a)({key:"__RC_SELECT_GRP__".concat(Se===null?he:Se,"__"),label:Se},be),{},{options:x(ce)})}).filter(function(ee){return ee})}var S=o("2Qr1"),v=o("qNPg"),T=o("U8pU"),U=o("Kwbf"),L=o("WKfj");function N(I){var K=I.mode,ee=I.options,he=I.children,de=I.backfill,Se=I.allowClear,Te=I.placeholder,ce=I.getInputElement,be=I.showSearch,ye=I.onSearch,ue=I.defaultOpen,se=I.autoFocus,$=I.labelInValue,me=I.value,re=I.inputValue,ae=I.optionLabelProp,Oe=K==="multiple"||K==="tags",le=be!==void 0?be:Oe||K==="combobox",te=ee||x(he);if(Object(U.a)(K!=="tags"||te.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var Q=te.some(function(_e){return _e.options?_e.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(U.a)(!Q,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(U.a)(K!=="combobox"||!ae,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(U.a)(K==="combobox"||!de,"`backfill` only works with `combobox` mode."),Object(U.a)(K==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(U.b)(K!=="combobox"||!ce||!Se||!Te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ye&&!le&&K!=="combobox"&&K!=="tags"&&Object(U.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(U.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 J=Object(L.d)(me);Object(U.a)(!$||J.every(function(_e){return Object(T.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(U.a)(!Oe||Array.isArray(me),"`value` should be array when `mode` is `multiple` or `tags`")}if(he){var ve=null;Object(P.a)(he).some(function(_e){if(!y.isValidElement(_e)||!_e.type)return!1;var Ae=_e.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Je=Object(P.a)(_e.props.children).every(function(tt){return!y.isValidElement(tt)||!_e.type||tt.type.isSelectOption?!0:(ve=tt.type,!1)});return!Je}return ve=Ae,!0}),ve&&Object(U.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(U.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var V=N,H=Object(v.a)({prefixCls:"rc-select",components:{optionList:d},convertChildrenToData:x,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:V,fillOptionsWithMissingValue:S.a}),D=function(I){Object(A.a)(ee,I);var K=Object(b.a)(ee);function ee(){var he;return Object(M.a)(this,ee),he=K.apply(this,arguments),he.selectRef=y.createRef(),he.focus=function(){he.selectRef.current.focus()},he.blur=function(){he.selectRef.current.blur()},he}return Object(g.a)(ee,[{key:"render",value:function(){return y.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),ee}(y.Component);D.Option=l,D.OptGroup=E;var W=D,F=z.c=W},Lf5v:function(k,z,o){"use strict";var M=o("5NDa"),g=o("5rEg"),A=o("2qtc"),b=o("kLXV"),y=o("k1fw"),C=o("oBTY"),O=o("9og8"),m=o("miYZ"),e=o("tsqr"),f=o("y8nQ"),a=o("Vl3Y"),u=o("tJVT"),n=o("DZo9"),i=o("8z0m"),r=o("WmNS"),c=o.n(r),h=o("q1tI"),d=o.n(h),s=o("m3rI"),l=o("ErOA"),w=o("sckv"),E=o.n(w),_=o("KhGG"),P=o("1vsH"),R=i.a.Dragger,x=function(v){var T,U=v.dispatch,L=v.id,N=v.onClose,V=v.onOK,H=v.visible,D=v.wrapClassName,W=v.local,F=v.containerId,I=v.rootIdentifier,K=Object(h.useState)({}),ee=Object(u.a)(K,2),he=ee[0],de=ee[1],Se=Object(h.useState)([]),Te=Object(u.a)(Se,2),ce=Te[0],be=Te[1],ye=Object(h.useState)([]),ue=Object(u.a)(ye,2),se=ue[0],$=ue[1],me=Object(h.useState)(0),re=Object(u.a)(me,2),ae=re[0],Oe=re[1],le=Object(h.useState)(!1),te=Object(u.a)(le,2),Q=te[0],J=te[1],ve=Object(h.useState)(!1),_e=Object(u.a)(ve,2),Ae=_e[0],Je=_e[1],tt=a.a.useForm(),ut=Object(u.a)(tt,1),ht=ut[0],vt=Object(h.useState)([]),_t=Object(u.a)(vt,2),Ve=_t[0],Ue=_t[1],pt=Object(h.useRef)([]);Object(h.useEffect)(function(){H&&(ht.resetFields(),Ue([]),$([]),be([]),Oe(0),Je(!1),J(!1))},[H]);var Ut=function(Fe){if(Fe.file.status==="done"||Fe.file.status==="uploading"){var at,ot,Pe;if(Ue(Fe.fileList),!Fe.file.response)return;if((at=Fe.file.response)!==null&&at!==void 0&&at.id){e.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Ue(Ve.filter(function(Qe){return Qe.uid!==Fe.file.uid})),((ot=Fe.file.response)===null||ot===void 0?void 0:ot.message)&&e.b.info((Pe=Fe.file.response)===null||Pe===void 0?void 0:Pe.message)}},Et=function(){var Ot=Object(O.a)(c.a.mark(function Fe(at){var ot,Pe,Qe;return c.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(ae){bt.next=8;break}return Pe=Ve.filter(function(Dt){return Dt.uid!==at.uid}),Ue(Pe),pt.current=Object(C.a)(Pe),be(ce.filter(function(Dt){return Dt!==at.name})),e.b.info("\u5220\u9664\u6210\u529F"),Pe.length||(ht.setFieldsValue({file:void 0}),ht.validateFields()),bt.abrupt("return");case 8:if(at.response){bt.next=11;break}return e.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),bt.abrupt("return");case 11:return bt.next=13,Object(l.a)("/api/shixuns/".concat(L,"/destroy_data_sets.json"),{method:"Delete",body:{id:[at==null||((ot=at.response)===null||ot===void 0)?void 0:ot.id]}});case 13:Qe=bt.sent,Qe.status===0&&(Ue(Ve.filter(function(Dt){return Dt.uid!==at.uid})),e.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return bt.stop()}},Fe)}));return function(at){return Ot.apply(this,arguments)}}(),jt=function(Fe){if(Ve!=null&&Ve.some(function(ot){return ot.name===Fe.name}))return e.b.info("".concat(Fe.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var at={name:Fe.name,uid:Fe.uid,file:Fe,percent:0};return Ve.push(at),pt.current=Object(C.a)(Ve),Ue(Object(C.a)(Ve)),!1},Ze={height:300,multiple:!0,disabled:ae>0,withCredentials:!0,fileList:Ve,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:Ut,onRemove:Et,beforeUpload:jt},Be=function(Fe,at,ot,Pe,Qe,ft){debugger;var bt=new FormData;Object.keys(Fe).forEach(function(Mt){bt.append(Mt,Fe[Mt])});var Dt=new window.XMLHttpRequest;return Dt.withCredentials=!0,Dt.addEventListener("load",function(Mt){var ct;debugger;ot(JSON.parse(Mt==null||((ct=Mt.target)===null||ct===void 0)?void 0:ct.response))},!1),Dt.addEventListener("error",function(Mt){debugger;Qe&&Qe(Mt)},!1),Dt.upload.onprogress=function(Mt){Pe&&Pe(Mt)},Dt.open("POST",at),Dt.send(bt),Dt},Ye=function(Fe,at){if(Fe.lengthComputable){var ot=Math.floor(Fe.loaded/Fe.total*100),Pe=Object(y.a)(Object(y.a)({},at),{},{percent:ot,status:ot===100?"done":"uploading"});console.log(pt.current,333),pt.current=pt.current.map(function(Qe){return Qe.uid===at.uid?Pe:Qe}),Ue(pt.current)}},Ce=function(Fe,at){debugger;var ot=Object(y.a)(Object(y.a)({},at),{},{status:"error"});e.b.warn("\u4E0A\u4F20\u5931\u8D25"),pt.current=pt.current.map(function(Pe){return Pe.uid===at.uid?ot:Pe}),pt.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Je(!1),Oe(2)),Ue(pt.current)},Le=function(Fe,at){var ot=Object(y.a)(Object(y.a)({},at),{},{status:"done"});if(Fe.status===0||(ot=Object(y.a)(Object(y.a)({},at),{},{status:"error"}),e.b.error(Fe==null?void 0:Fe.message)),pt.current=pt.current.map(function(Pe){return Pe.uid===at.uid?ot:Pe}),pt.current.every(function(Pe){return Pe.status==="done"})){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ct(!0);return}pt.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Je(!1),Oe(2)),Ue(pt.current)},He=function(){var Fe=!0;return window.navigator.onLine==!0?Fe=!0:Fe=!1,Fe},je=function(){var Ot=Object(O.a)(c.a.mark(function Fe(at){var ot,Pe,Qe,ft,bt,Dt,Mt,ct;return c.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(Je(!0),!(ae===3)){Zt.next=4;break}return Oe(2),Zt.abrupt("return");case 4:if(!(ae===2||ae===1)){Zt.next=7;break}return Ke(),Zt.abrupt("return");case 7:return ot=at||{},Pe=ot.commitMessage,Qe=Pe===void 0?"":Pe,ft=ot.fileOss,bt=ft===void 0?[]:ft,Dt=W?Ve:bt,Mt=Dt.map(function(An){return An.name}),Zt.next=12,Object(l.a)("/api/shixuns/".concat(L,"/check_data_sets"),{method:"post",body:{files_name:Mt}});case 12:if(ct=Zt.sent,!(ct.status===-3)){Zt.next=17;break}return be(ct==null?void 0:ct.exist_files),Je(!1),Zt.abrupt("return");case 17:if(!(JSON.stringify(ct)==="{}")){Zt.next=21;break}return Je(!1),e.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Zt.abrupt("return");case 21:ct.status===0&&(Ve.forEach(function(An){var on=Be({file:An.file,description:Qe,message:ct.message},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Tn){return Le(Tn,An)},function(Tn){return Ye(Tn,An)},function(Tn){return Ce(Tn,An)});se.push(on)}),Oe(1));case 22:case"end":return Zt.stop()}},Fe)}));return function(at){return Ot.apply(this,arguments)}}(),Ke=function(){var Fe=Object(y.a)({},ht.getFieldsValue())||{},at=Fe.commitMessage,ot=at===void 0?"":at,Pe=pt.current.filter(function(ft){return ft.status==="error"}),Qe=pt.current.map(function(ft){return Object(y.a)(Object(y.a)({},ft),{},{status:ft.status==="error"?"uploading":ft.status})});Ue(Qe),Pe.forEach(function(ft){var bt=Be({file:ft.file,description:ot},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Dt){return Le(Dt,ft)},function(Dt){return Ye(Dt,ft)},function(Dt){return Ce(Dt,ft)});se.push(bt)})},it=function(Fe){if(console.log(Fe,"changedValues"),"fileOss"in Fe){var at,ot;if(Fe!=null&&Fe.fileOss.every(function(Pe){return Pe.status==="done"})&&Fe!==null&&Fe!==void 0&&(at=Fe.fileOss)!==null&&at!==void 0&&at.length){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ct(!0);return}if(Fe!=null&&Fe.fileOss.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&Fe!==null&&Fe!==void 0&&(ot=Fe.fileOss)!==null&&ot!==void 0&&ot.length){Oe(3),Je(!1);return}be(ce.filter(function(Pe){var Qe;return Fe==null||((Qe=Fe.fileOss)===null||Qe===void 0)?void 0:Qe.some(function(ft){return ft.name===Pe})}))}de(Object(y.a)({},ht.getFieldsValue()))},Ct=function(Fe){Fe||(J(!0),se.forEach(function(at){at.abort()})),V(),N()},Ft=function(){var Fe=Object(y.a)({},ht.getFieldsValue())||{},at=Fe.fileOss,ot=at===void 0?[]:at,Pe=Ve==null?void 0:Ve.every(function(ft){return ft.status==="done"}),Qe=ot==null?void 0:ot.every(function(ft){return ft.status==="done"});if(!Pe||!Qe){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(){Ct()}});return}Ct()},Jt=function(){return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",null,d.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(E.a.colorBlue)})),d.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",d.a.createElement("span",{className:"".concat(E.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},Ht=function(Fe){console.log(Fe,444)};return d.a.createElement(b.a,{visible:H,wrapClassName:D,onOk:function(){Object(P.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),ht.submit()},centered:!0,okText:ae===0?"\u786E\u5B9A":ae===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Ae},onCancel:Ft,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},d.a.createElement("div",{className:E.a.wrap},d.a.createElement(a.a,{className:"mt10",form:ht,scrollToFirstError:!0,layout:"vertical",onFinish:je,onValuesChange:it},W?d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.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"}]},d.a.createElement(R,Ze," ",Jt())):d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.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"}]},d.a.createElement(_.b,{identifier:I,cancelUpload:Q,container_type:"Shixun",container_id:F,uploading:ae<3?ae:0,disabled:ae>0,height:300,maxSize:100*1024*1024*1024,description:he.commitMessage||"",text:Jt(),onComplete:Ht,realFileName:!0})),!!ce.length&&d.a.createElement("span",{className:E.a.repeatedName},ce.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),d.a.createElement(a.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},d.a.createElement(g.a,{bordered:!1,disabled:ae>0,maxLength:100,suffix:"".concat(((T=he.commitMessage)===null||T===void 0?void 0:T.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};z.a=x},LicW:function(k,z,o){"use strict";var M=o("T2oS"),g=o("W9HT"),A=o("5Dmo"),b=o("3S7+"),y=o("q1tI"),C=o.n(y),O=o("ZJlW"),m=o.n(O),e=o("m3rI"),f=o("TSYQ"),a=o.n(f),u=o("1vsH"),n=o("z4EP"),i=o.n(n),r=o("+GGh"),c=o.n(r),h=o("cFMs"),d=o.n(h),s=o("BdwD"),l=function(E){var _=E.className,P=E.dataSource,R=P===void 0?[]:P,x=E.col,S=x===void 0?4:x,v=E.right,T=E.bottom,U=T===void 0?23:T,L=E.precision,N=L===void 0?0:L,V=E.wrapWidth,H=V===void 0?1200:V,D=E.trackEventItems,W=E.loading,F=Math.floor((H-(S-1)*v)/S);return C.a.createElement(g.a,{spinning:W},C.a.createElement("div",{className:a()(m.a.list,_)},!!R.length&&R.map(function(I,K){var ee=I.name,he=I.id,de=I.identifier,Se=I.featured,Te=I.school_name,ce=I.image_url,be=I.excellent;return C.a.createElement("div",{key:he,className:m.a.wrap,style:{width:F,marginRight:(1+K)%S===0?0:v+N,marginBottom:U}},C.a.createElement("a",{target:"_blank",href:"/paths/".concat(de),className:m.a.li,onClick:function(ue){ue.preventDefault(),D&&Object(u.eb)([D]),Object(u.U)("/paths/".concat(de))}},C.a.createElement("div",{className:m.a.img},C.a.createElement("img",{className:m.a.cover,src:"".concat(e.a.IMG_SERVER,"/").concat(ce)}),Se===1&&C.a.createElement("img",{className:m.a.sign,src:i.a}),Se===2&&C.a.createElement("img",{className:m.a.sign,src:""}),Se===3&&C.a.createElement("img",{className:m.a.sign,src:c.a}),Se===4&&C.a.createElement("img",{className:m.a.sign,src:""}),Se===5&&C.a.createElement("img",{className:m.a.sign,src:d.a})),C.a.createElement("div",{className:m.a.name},C.a.createElement(b.a,{title:ee},C.a.createElement("span",{className:m.a.e},ee))),C.a.createElement(b.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Te)},C.a.createElement("div",{className:m.a.unit},C.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Te)),C.a.createElement("div",{className:m.a.tags},C.a.createElement(b.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},C.a.createElement("span",null,C.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),C.a.createElement("span",null,I.stages_count))),C.a.createElement(b.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},C.a.createElement("span",null,C.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),C.a.createElement("span",null,I.members_count))),be&&C.a.createElement("div",{className:m.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!R.length&&C.a.createElement(s.a,null)))};z.a=l},M8RZ:function(k,z,o){"use strict";o.d(z,"a",function(){return e});var M=o("fWQN"),g=o("mtLc"),A=o("yKVA"),b=o("879j"),y=o("q1tI"),C=o.n(y),O=o("i8i4"),m=o.n(O),e=function(f){Object(A.a)(u,f);var a=Object(b.a)(u);function u(n){var i;Object(M.a)(this,u),i=a.call(this,n);var r=window.document;return i.node=r.createElement("div"),r.body.appendChild(i.node),i}return Object(g.a)(u,[{key:"render",value:function(){var i=this.props.children;return Object(O.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),u}(C.a.Component)},MEgm:function(k,z){k.exports="data:image/png;base64,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"},MI8n:function(k,z,o){"use strict";o.d(z,"c",function(){return y}),o.d(z,"b",function(){return e}),o.d(z,"e",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"d",function(){return u}),o.d(z,"f",function(){return n});var M=o("/cxE"),g=o("pmY6"),A=o("24hK"),b=o("5Y4S"),y;(function(i){i.None=()=>g.a.None;function r(N){return(V,H=null,D)=>{let W=!1,F;return F=N(I=>W?void 0:(F?F.dispose():W=!0,V.call(H,I)),null,D),W&&F.dispose(),F}}i.once=r;function c(N,V){return E((H,D=null,W)=>N(F=>H.call(D,V(F)),null,W))}i.map=c;function h(N,V){return E((H,D=null,W)=>N(F=>{V(F),H.call(D,F)},null,W))}i.forEach=h;function d(N,V){return E((H,D=null,W)=>N(F=>V(F)&&H.call(D,F),null,W))}i.filter=d;function s(N){return N}i.signal=s;function l(...N){return(V,H=null,D)=>Object(g.e)(...N.map(W=>W(F=>V.call(H,F),null,D)))}i.any=l;function w(N,V,H){let D=H;return c(N,W=>(D=V(D,W),D))}i.reduce=w;function E(N){let V;const H=new e({onFirstListenerAdd(){V=N(H.fire,H)},onLastListenerRemove(){V.dispose()}});return H.event}function _(N,V,H=100,D=!1,W){let F,I,K,ee=0;const he=new e({leakWarningThreshold:W,onFirstListenerAdd(){F=N(de=>{ee++,I=V(I,de),D&&!K&&(he.fire(I),I=void 0),clearTimeout(K),K=setTimeout(()=>{const Se=I;I=void 0,K=void 0,(!D||ee>1)&&he.fire(Se),ee=0},H)})},onLastListenerRemove(){F.dispose()}});return he.event}i.debounce=_;function P(N,V=(H,D)=>H===D){let H=!0,D;return d(N,W=>{const F=H||!V(W,D);return H=!1,D=W,F})}i.latch=P;function R(N,V){return[i.filter(N,V),i.filter(N,H=>!V(H))]}i.split=R;function x(N,V=!1,H=[]){let D=H.slice(),W=N(K=>{D?D.push(K):I.fire(K)});const F=()=>{D&&D.forEach(K=>I.fire(K)),D=null},I=new e({onFirstListenerAdd(){W||(W=N(K=>I.fire(K)))},onFirstListenerDidAdd(){D&&(V?setTimeout(F):F())},onLastListenerRemove(){W&&W.dispose(),W=null}});return I.event}i.buffer=x;class S{constructor(N){this.event=N}map(N){return new S(c(this.event,N))}forEach(N){return new S(h(this.event,N))}filter(N){return new S(d(this.event,N))}reduce(N,V){return new S(w(this.event,N,V))}latch(){return new S(P(this.event))}debounce(N,V=100,H=!1,D){return new S(_(this.event,N,V,H,D))}on(N,V,H){return this.event(N,V,H)}once(N,V,H){return r(this.event)(N,V,H)}}function v(N){return new S(N)}i.chain=v;function T(N,V,H=D=>D){const D=(...K)=>I.fire(H(...K)),W=()=>N.on(V,D),F=()=>N.removeListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromNodeEventEmitter=T;function U(N,V,H=D=>D){const D=(...K)=>I.fire(H(...K)),W=()=>N.addEventListener(V,D),F=()=>N.removeEventListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromDOMEventEmitter=U;function L(N){return new Promise(V=>r(N)(V))}i.toPromise=L})(y||(y={}));class C{constructor(i){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${i}_${C._idPool++}`}start(i){this._stopWatch=new b.a(!0),this._listenerCount=i}stop(){if(this._stopWatch){const i=this._stopWatch.elapsed();this._elapsedOverall+=i,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${i.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}C._idPool=0;let O=-1;class m{constructor(i,r=Math.random().toString(18).slice(2,5)){this.customThreshold=i,this.name=r,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(i){let r=O;if(typeof this.customThreshold=="number"&&(r=this.customThreshold),r<=0||i<r)return;this._stacks||(this._stacks=new Map);const c=new Error().stack.split(`
`).slice(3).join(`
`),h=this._stacks.get(c)||0;if(this._stacks.set(c,h+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let d,s=0;for(const[l,w]of this._stacks)(!d||s<w)&&(d=l,s=w);console.warn(`[${this.name}] potential listener LEAK detected, having ${i} listeners already. MOST frequent listener (${s}):`),console.warn(d)}return()=>{const d=this._stacks.get(c)||0;this._stacks.set(c,d-1)}}}class e{constructor(i){var r;this._disposed=!1,this._options=i,this._leakageMon=O>0?new m(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((r=this._options)===null||r===void 0?void 0:r._profName)?new C(this._options._profName):void 0}get event(){return this._event||(this._event=(i,r,c)=>{var h;this._listeners||(this._listeners=new A.a);const d=this._listeners.isEmpty();d&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(r?[i,r]:i);d&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,r);const l=(h=this._leakageMon)===null||h===void 0?void 0:h.check(this._listeners.size),w=Object(g.i)(()=>{if(l&&l(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return c instanceof g.b?c.add(w):Array.isArray(c)&&c.push(w),w}),this._event}fire(i){var r,c;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new A.a);for(let h of this._listeners)this._deliveryQueue.push([h,i]);for((r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[h,d]=this._deliveryQueue.shift();try{typeof h=="function"?h.call(void 0,d):h[0].call(h[1],d)}catch(s){Object(M.f)(s)}}(c=this._perfMon)===null||c===void 0||c.stop()}}dispose(){var i,r,c,h,d;this._disposed||(this._disposed=!0,(i=this._listeners)===null||i===void 0||i.clear(),(r=this._deliveryQueue)===null||r===void 0||r.clear(),(h=(c=this._options)===null||c===void 0?void 0:c.onLastListenerRemove)===null||h===void 0||h.call(c),(d=this._leakageMon)===null||d===void 0||d.dispose())}}class f extends e{constructor(i){super(i);this._isPaused=0,this._eventQueue=new A.a,this._mergeFn=i==null?void 0:i.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const i=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(i))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(i){this._listeners&&(this._isPaused!==0?this._eventQueue.push(i):super.fire(i))}}class a extends f{constructor(i){var r;super(i);this._delay=(r=i.delay)!==null&&r!==void 0?r:100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}class u{constructor(){this.buffers=[]}wrapEvent(i){return(r,c,h)=>i(d=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>r.call(c,d)):r.call(c,d)},void 0,h)}bufferEvents(i){const r=[];this.buffers.push(r);const c=i();return this.buffers.pop(),r.forEach(h=>h()),c}}class n{constructor(){this.listening=!1,this.inputEvent=y.None,this.inputEventListener=g.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(i){this.inputEvent=i,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=i(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(k,z,o){"use strict";(function(M,g){o.d(z,"b",function(){return c}),o.d(z,"i",function(){return l}),o.d(z,"f",function(){return w}),o.d(z,"d",function(){return E}),o.d(z,"g",function(){return _}),o.d(z,"h",function(){return P}),o.d(z,"c",function(){return R}),o.d(z,"k",function(){return x}),o.d(z,"j",function(){return S}),o.d(z,"a",function(){return v}),o.d(z,"e",function(){return L});var A;const b="en";let y=!1,C=!1,O=!1,m=!1,e=!1,f=!1,a=!1,u,n=b,i,r;const c=typeof self=="object"?self:typeof M=="object"?M:{};let h;typeof c.vscode!="undefined"&&typeof c.vscode.process!="undefined"?h=c.vscode.process:typeof g!="undefined"&&(h=g);const d=typeof((A=h==null?void 0:h.versions)===null||A===void 0?void 0:A.electron)=="string"&&h.type==="renderer";if(typeof navigator=="object"&&!d)r=navigator.userAgent,y=r.indexOf("Windows")>=0,C=r.indexOf("Macintosh")>=0,a=(r.indexOf("Macintosh")>=0||r.indexOf("iPad")>=0||r.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,O=r.indexOf("Linux")>=0,f=!0,u=navigator.language,n=u;else if(typeof h=="object"){y=h.platform==="win32",C=h.platform==="darwin",O=h.platform==="linux",m=O&&!!h.env.SNAP&&!!h.env.SNAP_REVISION,u=b,n=b;const N=h.env.VSCODE_NLS_CONFIG;if(N)try{const V=JSON.parse(N),H=V.availableLanguages["*"];u=V.locale,n=H||b,i=V._translationsConfigFile}catch(V){}e=!0}else console.error("Unable to resolve platform.");let s=0;C?s=1:y?s=3:O&&(s=2);const l=y,w=C,E=O,_=e,P=f,R=a,x=r,S=function(){if(c.setImmediate)return c.setImmediate.bind(c);if(typeof c.postMessage=="function"&&!c.importScripts){let H=[];c.addEventListener("message",W=>{if(W.data&&W.data.vscodeSetImmediateId)for(let F=0,I=H.length;F<I;F++){const K=H[F];if(K.id===W.data.vscodeSetImmediateId){H.splice(F,1),K.callback();return}}});let D=0;return W=>{const F=++D;H.push({id:F,callback:W}),c.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(h==null?void 0:h.nextTick)=="function")return h.nextTick.bind(h);const V=Promise.resolve();return H=>V.then(H)}(),v=C||a?2:y?1:3;let T=!0,U=!1;function L(){if(!U){U=!0;const N=new Uint8Array(2);N[0]=1,N[1]=2;const V=new Uint16Array(N.buffer);T=V[0]===(2<<8)+1}return T}}).call(this,o("IyRk"),o("Q2Ig"))},MlIO:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(g){var A=M,b=A.lib,y=b.Base,C=b.WordArray,O=A.x64={},m=O.Word=y.extend({init:function(f,a){this.high=f,this.low=a}}),e=O.WordArray=y.extend({init:function(f,a){f=this.words=f||[],a!=g?this.sigBytes=a:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,a=f.length,u=[],n=0;n<a;n++){var i=f[n];u.push(i.high),u.push(i.low)}return C.create(u,this.sigBytes)},clone:function(){for(var f=y.clone.call(this),a=f.words=this.words.slice(0),u=a.length,n=0;n<u;n++)a[n]=a[n].clone();return f}})}(),M})},N0LK:function(k,z,o){"use strict";o.d(z,"C",function(){return M}),o.d(z,"v",function(){return A}),o.d(z,"s",function(){return b}),o.d(z,"t",function(){return y}),o.d(z,"U",function(){return C}),o.d(z,"J",function(){return O}),o.d(z,"O",function(){return m}),o.d(z,"p",function(){return e}),o.d(z,"T",function(){return f}),o.d(z,"q",function(){return a}),o.d(z,"N",function(){return u}),o.d(z,"M",function(){return n}),o.d(z,"Q",function(){return i}),o.d(z,"u",function(){return r}),o.d(z,"x",function(){return c}),o.d(z,"I",function(){return h}),o.d(z,"f",function(){return d}),o.d(z,"h",function(){return s}),o.d(z,"g",function(){return l}),o.d(z,"i",function(){return w}),o.d(z,"G",function(){return E}),o.d(z,"H",function(){return _}),o.d(z,"r",function(){return P}),o.d(z,"R",function(){return R}),o.d(z,"d",function(){return x}),o.d(z,"e",function(){return S}),o.d(z,"E",function(){return v}),o.d(z,"F",function(){return T}),o.d(z,"j",function(){return U}),o.d(z,"z",function(){return L}),o.d(z,"K",function(){return V}),o.d(z,"L",function(){return H}),o.d(z,"m",function(){return W}),o.d(z,"k",function(){return I}),o.d(z,"A",function(){return ee}),o.d(z,"a",function(){return he}),o.d(z,"n",function(){return de}),o.d(z,"l",function(){return Se}),o.d(z,"D",function(){return Te}),o.d(z,"B",function(){return ce}),o.d(z,"b",function(){return be}),o.d(z,"S",function(){return ye}),o.d(z,"o",function(){return ue}),o.d(z,"P",function(){return se}),o.d(z,"w",function(){return $}),o.d(z,"c",function(){return me}),o.d(z,"y",function(){return Oe});function M(J){return!J||typeof J!="string"?!0:J.trim().length===0}const g=/{(\d+)}/g;function A(J,...ve){return ve.length===0?J:J.replace(g,function(_e,Ae){const Je=parseInt(Ae,10);return isNaN(Je)||Je<0||Je>=ve.length?_e:ve[Je]})}function b(J){return J.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return ve}})}function y(J){return J.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function C(J,ve=" "){const _e=O(J,ve);return m(_e,ve)}function O(J,ve){if(!J||!ve)return J;const _e=ve.length;if(_e===0||J.length===0)return J;let Ae=0;for(;J.indexOf(ve,Ae)===Ae;)Ae=Ae+_e;return J.substring(Ae)}function m(J,ve){if(!J||!ve)return J;const _e=ve.length,Ae=J.length;if(_e===0||Ae===0)return J;let Je=Ae,tt=-1;for(;!(tt=J.lastIndexOf(ve,Je-1),tt===-1||tt+_e!==Je);){if(tt===0)return"";Je=tt}return J.substring(0,Je)}function e(J){return J.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(J){return J.replace(/\*/g,"")}function a(J,ve,_e={}){if(!J)throw new Error("Cannot create regex from empty string");ve||(J=y(J)),_e.wholeWord&&(/\B/.test(J.charAt(0))||(J="\\b"+J),/\B/.test(J.charAt(J.length-1))||(J=J+"\\b"));let Ae="";return _e.global&&(Ae+="g"),_e.matchCase||(Ae+="i"),_e.multiline&&(Ae+="m"),_e.unicode&&(Ae+="u"),new RegExp(J,Ae)}function u(J){if(J.source==="^"||J.source==="^$"||J.source==="$"||J.source==="^\\s*$")return!1;const ve=J.exec("");return!!(ve&&J.lastIndex===0)}function n(J){return(J.global?"g":"")+(J.ignoreCase?"i":"")+(J.multiline?"m":"")+(J.unicode?"u":"")}function i(J){return J.split(/\r\n|\r|\n/)}function r(J){for(let ve=0,_e=J.length;ve<_e;ve++){const Ae=J.charCodeAt(ve);if(Ae!==32&&Ae!==9)return ve}return-1}function c(J,ve=0,_e=J.length){for(let Ae=ve;Ae<_e;Ae++){const Je=J.charCodeAt(Ae);if(Je!==32&&Je!==9)return J.substring(ve,Ae)}return J.substring(ve,_e)}function h(J,ve=J.length-1){for(let _e=ve;_e>=0;_e--){const Ae=J.charCodeAt(_e);if(Ae!==32&&Ae!==9)return _e}return-1}function d(J,ve){return J<ve?-1:J>ve?1:0}function s(J,ve,_e=0,Ae=J.length,Je=0,tt=ve.length){for(;_e<Ae&&Je<tt;_e++,Je++){let vt=J.charCodeAt(_e),_t=ve.charCodeAt(Je);if(vt<_t)return-1;if(vt>_t)return 1}const ut=Ae-_e,ht=tt-Je;return ut<ht?-1:ut>ht?1:0}function l(J,ve){return w(J,ve,0,J.length,0,ve.length)}function w(J,ve,_e=0,Ae=J.length,Je=0,tt=ve.length){for(;_e<Ae&&Je<tt;_e++,Je++){let vt=J.charCodeAt(_e),_t=ve.charCodeAt(Je);if(vt===_t)continue;if(vt>=128||_t>=128)return s(J.toLowerCase(),ve.toLowerCase(),_e,Ae,Je,tt);E(vt)&&(vt-=32),E(_t)&&(_t-=32);const Ve=vt-_t;if(Ve===0)continue;return Ve}const ut=Ae-_e,ht=tt-Je;return ut<ht?-1:ut>ht?1:0}function E(J){return J>=97&&J<=122}function _(J){return J>=65&&J<=90}function P(J,ve){return J.length===ve.length&&w(J,ve)===0}function R(J,ve){const _e=ve.length;return ve.length>J.length?!1:w(J,ve,0,_e)===0}function x(J,ve){let _e,Ae=Math.min(J.length,ve.length);for(_e=0;_e<Ae;_e++)if(J.charCodeAt(_e)!==ve.charCodeAt(_e))return _e;return Ae}function S(J,ve){let _e,Ae=Math.min(J.length,ve.length);const Je=J.length-1,tt=ve.length-1;for(_e=0;_e<Ae;_e++)if(J.charCodeAt(Je-_e)!==ve.charCodeAt(tt-_e))return _e;return Ae}function v(J){return 55296<=J&&J<=56319}function T(J){return 56320<=J&&J<=57343}function U(J,ve){return(J-55296<<10)+(ve-56320)+65536}function L(J,ve,_e){const Ae=J.charCodeAt(_e);if(v(Ae)&&_e+1<ve){const Je=J.charCodeAt(_e+1);if(T(Je))return U(Ae,Je)}return Ae}function N(J,ve){const _e=J.charCodeAt(ve-1);if(T(_e)&&ve>1){const Ae=J.charCodeAt(ve-2);if(v(Ae))return U(Ae,_e)}return _e}function V(J,ve){const _e=re.getInstance(),Ae=ve,Je=J.length,tt=L(J,Je,ve);ve+=tt>=65536?2:1;let ut=_e.getGraphemeBreakType(tt);for(;ve<Je;){const ht=L(J,Je,ve),vt=_e.getGraphemeBreakType(ht);if(me(ut,vt))break;ve+=ht>=65536?2:1,ut=vt}return ve-Ae}function H(J,ve){const _e=re.getInstance(),Ae=ve,Je=N(J,ve);ve-=Je>=65536?2:1;let tt=_e.getGraphemeBreakType(Je);for(;ve>0;){const ut=N(J,ve),ht=_e.getGraphemeBreakType(ut);if(me(ht,tt))break;ve-=ut>=65536?2:1,tt=ht}return Ae-ve}const D=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function W(J){return D.test(J)}const F=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function I(J){return F.test(J)}const K=/^[\t\n\r\x20-\x7E]*$/;function ee(J){return K.test(J)}const he=/[\u2028\u2029]/;function de(J){return he.test(J)}function Se(J){for(let ve=0,_e=J.length;ve<_e;ve++)if(Te(J.charCodeAt(ve)))return!0;return!1}function Te(J){return J=+J,J>=11904&&J<=55215||J>=63744&&J<=64255||J>=65281&&J<=65374}function ce(J){return J>=127462&&J<=127487||J===8986||J===8987||J===9200||J===9203||J>=9728&&J<=10175||J===11088||J===11093||J>=127744&&J<=128591||J>=128640&&J<=128764||J>=128992&&J<=129003||J>=129280&&J<=129535||J>=129648&&J<=129750}const be=String.fromCharCode(65279);function ye(J){return!!(J&&J.length>0&&J.charCodeAt(0)===65279)}function ue(J,ve=!1){return J?(ve&&(J=J.replace(/\\./g,"")),J.toLowerCase()!==J):!1}function se(J){const ve=90-65+1;return J=J%(2*ve),J<ve?String.fromCharCode(97+J):String.fromCharCode(65+J-ve)}function $(J){const ve=re.getInstance();return ve.getGraphemeBreakType(J)}function me(J,ve){return J===0?ve!==5&&ve!==7:J===2&&ve===3?!1:J===4||J===2||J===3||(ve===4||ve===2||ve===3)?!0:J===8&&(ve===8||ve===9||ve===11||ve===12)||((J===11||J===9)&&(ve===9||ve===10)||((J===12||J===10)&&ve===10||(ve===5||ve===13||(ve===7||(J===1||J===13&&ve===14)))))?!1:!(J===6&&ve===6)}class re{constructor(){this._data=ae()}static getInstance(){return re._INSTANCE||(re._INSTANCE=new re),re._INSTANCE}getGraphemeBreakType(J){if(J<32)return J===10?3:J===13?2:4;if(J<127)return 0;const ve=this._data,_e=ve.length/3;let Ae=1;for(;Ae<=_e;)if(J<ve[3*Ae])Ae=2*Ae;else if(J>ve[3*Ae+1])Ae=2*Ae+1;else return ve[3*Ae+2];return 0}}re._INSTANCE=null;function ae(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Oe(J,ve){if(J===0)return 0;const _e=le(J,ve);if(_e!==void 0)return _e;const Ae=N(ve,J);return J-=te(Ae),J}function le(J,ve){let _e=N(ve,J);for(J-=te(_e);Q(_e)||_e===65039||_e===8419;){if(J===0)return;_e=N(ve,J),J-=te(_e)}if(!ce(_e))return;if(J>=0){const Ae=N(ve,J);Ae===8205&&(J-=te(Ae))}return J}function te(J){return J>=65536?2:1}function Q(J){return 127995<=J&&J<=127999}},N3QO:function(k,z,o){"use strict";var M=o("2qtc"),g=o("kLXV"),A=o("tJVT"),b=o("q1tI"),y=o.n(b),C=o("9kvl"),O=o("FPkq"),m=o.n(O),e=function(a){var u,n=a.newShixuns,i=a.dispatch,r=a.user,c=Object(b.useState)(!1),h=Object(A.a)(c,2),d=h[0],s=h[1];Object(b.useEffect)(function(){n.actionTabs.key==="Create-Environment"&&w()},[n==null||((u=n.actionTabs)===null||u===void 0)?void 0:u.key]);var l=function(){i({type:"newShixuns/setActionTabs",payload:{}})},w=function(){var _,P,R;l(),((_=r.userInfo)===null||_===void 0?void 0:_.mirror_marker_status)===0?s(!0):((P=r.userInfo)===null||P===void 0?void 0:P.mirror_marker_status)===1?C.d.push("/shixuns/new/CreateImg"):((R=r.userInfo)===null||R===void 0?void 0:R.mirror_marker_status)===2&&g.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 S;C.d.push("/users/".concat((S=r.userInfo)===null||S===void 0?void 0:S.login,"/experiment-img"))}})};return y.a.createElement(g.a,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",visible:d,footer:null,onCancel:function(){s(!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:m.a,alt:"\u4E8C\u7EF4\u7801"})),y.a.createElement("img",null))};z.a=Object(C.a)(function(f){var a=f.newShixuns,u=f.user,n=f.globalSetting;return{newShixuns:a,globalSetting:n,user:u}})(e)},NFKh:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("MlIO"),o("F+F2"),o("qM6L"),o("ETIr"),o("wbyO"),o("cv67"),o("3y9D"),o("lPiR"),o("GRuw"),o("1uat"),o("uGsb"),o("5hvy"),o("ELcG"),o("WYAk"),o("e7zE"),o("K3mO"),o("OLod"),o("ALsQ"),o("9OqN"),o("qu8F"),o("S6kV"),o("gb/T"),o("qBft"),o("oRuE"),o("jO9C"),o("KmYQ"),o("uGxW"),o("bQjk"),o("wZgz"),o("pA7S"),o("w7YG"),o("E4JC"),o("PVpz"))})(this,function(M){return M})},NLgs:function(k,z,o){"use strict";o.d(z,"e",function(){return h}),o.d(z,"f",function(){return d}),o.d(z,"d",function(){return l}),o.d(z,"c",function(){return w}),o.d(z,"a",function(){return E}),o.d(z,"b",function(){return _});var M=o("miYZ"),g=o("tsqr"),A=o("9og8"),b=o("2qtc"),y=o("kLXV"),C=o("WmNS"),O=o.n(C),m=o("q1tI"),e=o.n(m),f=o("9kvl"),a=o("xKgJ"),u=o("1vsH"),n=o("RCxd"),i=o("yTi+"),r=o.n(i),c=o("m3rI"),h=function(R){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(d(R)&&s(x))},d=function(R){return Object(a.p)()?!0:(R({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},s=function(){var R,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,S=Object(f.c)()._store.getState(),v=S.user;return(R=v.userInfo)!==null&&R!==void 0&&R.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:x?"\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(){f.d.push("/account/profile/edit")}}),!1)},l=function(){var R,x=Object(f.c)()._store.getState(),S=x.user;return(R=S.userInfo)!==null&&R!==void 0&&R.professional_certification?!0:(y.a.confirm({title:"\u63D0\u793A",centered:!0,content:e.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(u.U)("/account/certification")}}),!1)},w=function(){var R;if(Object(a.a)())return!0;var x=Object(f.c)()._store.getState(),S=x.user,v=x.globalSetting;return y.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),e.a.createElement("img",{src:c.a.IMG_SERVER+(v==null||((R=v.setting)===null||R===void 0)?void 0:R.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},E=function(R,x){var S;if(R)return!0;var v=Object(f.c)()._store.getState(),T=v.user,U=v.globalSetting;return y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("p",null,x||"\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"),e.a.createElement("div",{style:{marginLeft:"110px"}},e.a.createElement("img",{src:c.a.IMG_SERVER+(U==null||((S=U.setting)===null||S===void 0)?void 0:S.authority_qrcode_url),width:200}),e.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(u.U)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},_=function(R){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",S=Object(f.c)()._store.getState(),v=S.shixunsDetail.detail;return(v==null?void 0:v.public)===2||(v==null?void 0:v.public)===1||(v==null?void 0:v.shixun_status)===3?(y.a.info({centered:!0,icon:e.a.createElement(n.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(v==null?void 0:v.public)===2?"\u5DF2\u516C\u5F00":(v==null?void 0:v.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",x,"\u3002"),e.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),e.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:r.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(v==null?void 0:v.shixun_status)===2?(y.a.confirm({centered:!0,icon:e.a.createElement(n.a,null),title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",x,"\u3002"),e.a.createElement("br",null),e.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:e.a.createElement(n.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 U=Object(A.a)(O.a.mark(function N(){var V;return O.a.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,R({type:"shixunsDetail/cancelRelease",payload:{id:v==null?void 0:v.identifier}});case 2:V=D.sent,V.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),R({type:"shixunsDetail/getShixunsDetail",payload:{id:v==null?void 0:v.identifier}}),R({type:"practiceSetting/getCommonData",payload:{id:v==null?void 0:v.identifier}}));case 4:case"end":return D.stop()}},N)}));function L(){return U.apply(this,arguments)}return L}()})}}),!0):!1}},NQs2:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return m}),o.d(z,"h",function(){return r}),o.d(z,"l",function(){return s}),o.d(z,"e",function(){return R}),o.d(z,"i",function(){return T}),o.d(z,"j",function(){return ue}),o.d(z,"c",function(){return se.a}),o.d(z,"b",function(){return Oe}),o.d(z,"g",function(){return J}),o.d(z,"f",function(){return Je}),o.d(z,"k",function(){return Ut}),o.d(z,"d",function(){return Be});var M=o("q1tI"),g=o.n(M),A=o("NQs2"),b=o.n(A),y=o("ygoZ"),C=o.n(y),O=function(Ce){var Le=Ce.dataSource,He=Le===void 0?[]:Le,je=Ce.img,Ke=Ce.imgWidth,it=Ke===void 0?346:Ke,Ct=Ce.title,Ft=Ce.sunTitle,Jt=Ce.bannerExtraContent;return g.a.createElement("div",{className:b.a.banner},g.a.createElement("div",{className:b.a.content},g.a.createElement("aside",null,g.a.createElement("p",null,g.a.createElement("b",null,Ct),g.a.createElement("span",null,Ft)),He.length>0&&g.a.createElement("div",{className:b.a.btns},He.map(function(Ht,Ot){return g.a.createElement("div",{key:Ot,onClick:Ht.click},Ht.name,Ht.sign?g.a.createElement("img",{src:C.a,width:39}):null)})),Jt),g.a.createElement("img",{style:{marginTop:33,marginRight:38},src:je,width:it})))},m=O,e=o("tJVT"),f=o("6nfa"),a=o.n(f),u=o("TSYQ"),n=o.n(u),i=function(Ce){var Le=Ce.dataSource,He=Le===void 0?[]:Le,je=Ce.value,Ke=Ce.onChange,it=Ce.className,Ct=Ce.title,Ft=Ce.titleWidth,Jt=Ft===void 0?41:Ft,Ht=Ce.style,Ot=Ht===void 0?{}:Ht,Fe=Ce.fontColor,at=Fe===void 0?"#6A7283":Fe,ot=Object(M.useState)(0),Pe=Object(e.a)(ot,2),Qe=Pe[0],ft=Pe[1],bt=Object(M.useState)(!1),Dt=Object(e.a)(bt,2),Mt=Dt[0],ct=Dt[1],Lt=Object(M.useRef)(null);return Object(M.useEffect)(function(){if(He.length!==0){var Zt;(Lt==null||((Zt=Lt.current)===null||Zt===void 0)?void 0:Zt.clientHeight)>92?ft(1):ft(0)}He.length===0&&ft(0)},[He]),g.a.createElement("div",{className:n()(a.a.row,it),style:Ot},g.a.createElement("div",{style:{width:Jt,marginTop:Mt?12:4},className:a.a.title},Ct),g.a.createElement("div",{className:Mt?"".concat(a.a.tagsWrap," ").concat(a.a.tagsBorderWrap):a.a.tagsWrap},g.a.createElement("div",{className:a.a.bar,style:Qe>0?{height:Qe===1?92:"auto",overflow:Qe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},g.a.createElement("div",{className:a.a.name,ref:Lt},He==null?void 0:He.map(function(Zt){return g.a.createElement("span",{onClick:function(){return Ke(Zt.id)},key:Zt.id,title:Zt.name,style:{color:at},className:je===Zt.id?a.a.active:""},Zt.name)}))),!!Qe&&g.a.createElement(M.Fragment,null,Qe===1?g.a.createElement("div",{onClick:function(){var An;ft(2),(Lt==null||((An=Lt.current)===null||An===void 0)?void 0:An.clientHeight)>205?ct(!0):ct(!1)},className:a.a.action},"\u5C55\u5F00",g.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):g.a.createElement("div",{onClick:function(){ft(1),ct(!1)},className:a.a.action},"\u6536\u8D77",g.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},r=i,c=o("cz0n"),h=o.n(c),d=function(Ce){var Le=Ce.dataSource,He=Le===void 0?[]:Le,je=Ce.value,Ke=Ce.onChange,it=Ce.className;return g.a.createElement("div",{className:n()(h.a.tabs,it)},He.map(function(Ct){return g.a.createElement("span",{onClick:function(){return Ke(Ct.id)},className:je===Ct.id?h.a.active:"",key:Ct.id},Ct.name)}))},s=d,l=o("5NDa"),w=o("5rEg"),E=o("KOXS"),_=o.n(E),P=function(Ce){var Le,He=Ce.dataSource,je=He===void 0?[]:He,Ke=Ce.value,it=Ce.onChange,Ct=Ce.className,Ft=Ce.style,Jt=Ft===void 0?{}:Ft,Ht=Ce.placeholder,Ot=Object(M.useState)(""),Fe=Object(e.a)(Ot,2),at=Fe[0],ot=Fe[1],Pe=Object(M.useState)(""),Qe=Object(e.a)(Pe,2),ft=Qe[0],bt=Qe[1];Object(M.useEffect)(function(){var ct;(ct=JSON.stringify(Ke))!==null&&ct!==void 0&&ct.includes("{")?(ot(Ke.id),bt(Ke.value)):bt(Ke)},[Ke]);var Dt=function(){it(ft||null,at||"")},Mt=function(Lt){if(Lt===at)return;ot(Lt),it(ft,Lt)};return g.a.createElement("div",{className:n()(_.a.input,Ct),style:Jt},!!je.length&&g.a.createElement("div",{className:_.a.dropdown},g.a.createElement("div",{className:_.a.text},(Le=je.find(function(ct){return ct.id===at}))===null||Le===void 0?void 0:Le.name,g.a.createElement("i",{className:"iconfont icon-zhankai4"}),g.a.createElement("b",{className:_.a.b1}),g.a.createElement("b",{className:_.a.b2})),g.a.createElement("div",{className:_.a.menu},je.map(function(ct,Lt){return g.a.createElement("div",{key:Lt,onClick:function(){return Mt(ct.id)}},ct.name)}))),g.a.createElement(w.a,{onPressEnter:Dt,value:ft,onChange:function(Lt){return bt(Lt.target.value||"")},bordered:!1,placeholder:Ht}),g.a.createElement("i",{onClick:Dt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=P,x=o("f9pc"),S=o.n(x),v=function(Ce){var Le=Ce.value,He=Ce.onChange,je=Ce.className,Ke=Ce.total,it=Ce.pageSize,Ct=Ce.style,Ft=Ct===void 0?{}:Ct,Jt=Le<2,Ht=Le>=Math.ceil(Ke/it);return Ke<=it?g.a.createElement(g.a.Fragment,null):g.a.createElement("div",{className:n()(S.a.quickPager,je),style:Ft},g.a.createElement("div",{onClick:function(){Jt||He(Le-1,"prev")},className:Jt?S.a.disabled:""},"\u4E0A\u4E00\u9875"),g.a.createElement("div",{onClick:function(){Ht||He(Le+1,"next")},className:Ht?S.a.disabled:""},"\u4E0B\u4E00\u9875"))},T=v,U=o("T2oS"),L=o("W9HT"),N=o("pC0b"),V=o("GzdX"),H=o("5Dmo"),D=o("3S7+"),W=o("Oe0F"),F=o.n(W),I=o("m3rI"),K=o("1vsH"),ee=o("JAbv"),he=o.n(ee),de=o("Bq7L"),Se=o.n(de),Te=o("MEgm"),ce=o.n(Te),be=o("BdwD"),ye=function(Ce){var Le=Ce.className,He=Ce.dataSource,je=He===void 0?[]:He,Ke=Ce.col,it=Ke===void 0?4:Ke,Ct=Ce.right,Ft=Ce.bottom,Jt=Ft===void 0?23:Ft,Ht=Ce.precision,Ot=Ht===void 0?0:Ht,Fe=Ce.wrapWidth,at=Fe===void 0?1200:Fe,ot=Ce.trackEventItems,Pe=Ce.loading,Qe=Math.floor((at-(it-1)*Ct)/it);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:n()(F.a.list,Le)},!!je.length&&je.map(function(ft,bt){var Dt=ft.name,Mt=ft.id,ct=ft.identifier,Lt=ft.power,Zt=ft.cover_image_id,An=ft.pic;return g.a.createElement("div",{className:F.a.wrap,key:Mt,style:{width:Qe,marginRight:(1+bt)%it===0?0:Ct+Ot,marginBottom:Jt}},g.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(ct,"/challenges"),className:F.a.li,onClick:function(Tn){Tn.preventDefault(),ot&&Object(K.eb)([ot]),Lt&&Object(K.U)("/shixuns/".concat(ct,"/challenges"))}},g.a.createElement("div",{className:F.a.img},g.a.createElement("img",{className:F.a.cover,src:Zt?"".concat(I.a.API_SERVER,"/api/attachments/").concat(Zt):"".concat(I.a.IMG_SERVER,"/").concat(An)}),ft.is_jupyter&&g.a.createElement("img",{className:F.a.sign,src:he.a}),ft.is_jupyter_lab&&g.a.createElement("img",{className:F.a.sign,src:Se.a}),ft.is_unity_3d&&g.a.createElement("img",{className:F.a.sign,src:ce.a})),g.a.createElement("div",{className:F.a.name},g.a.createElement(D.a,{title:Dt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},g.a.createElement("span",{className:F.a.e},Dt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),g.a.createElement("div",{className:F.a.tags},g.a.createElement(D.a,{placement:"bottom",title:"\u5173\u5361\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),g.a.createElement("span",null,ft.challenges_count))),!!ft.myshixuns_count&&g.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.a.createElement("span",null,ft.myshixuns_count))),g.a.createElement(D.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},g.a.createElement("span",null,g.a.createElement("span",null,ft.level))),g.a.createElement("div",{className:F.a.rate},g.a.createElement(V.a,{allowHalf:!0,disabled:!0,defaultValue:ft.score_info}),g.a.createElement("span",null,"\xA0",ft.score_info?"".concat(ft.score_info,"\u5206"):"5\u5206")))),!Lt&&g.a.createElement("div",{className:F.a.lockWrap},g.a.createElement("img",{src:"".concat(I.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!je.length&&g.a.createElement(be.a,null)))},ue=ye,se=o("LicW"),$=o("iL++"),me=o.n($),re=o("xiVL"),ae=function(Ce){var Le=Ce.className,He=Ce.dataSource,je=He===void 0?[]:He,Ke=Ce.col,it=Ke===void 0?4:Ke,Ct=Ce.right,Ft=Ce.bottom,Jt=Ft===void 0?23:Ft,Ht=Ce.precision,Ot=Ht===void 0?0:Ht,Fe=Ce.wrapWidth,at=Fe===void 0?1200:Fe,ot=Ce.trackEventItems,Pe=Ce.loading,Qe=Math.floor((at-(it-1)*Ct)/it);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:n()(me.a.list,Le)},!!je.length&&je.map(function(ft,bt){var Dt=ft.subject_identifier,Mt=ft.id,ct=ft.identifier,Lt=ft.power,Zt=ft.is_public!=0&&ft.is_public;return g.a.createElement("div",{className:me.a.wrap,key:Mt,style:{width:Qe,marginRight:(1+bt)%it===0?0:Ct+Ot,marginBottom:Jt}},g.a.createElement("a",{className:me.a.li,onClick:function(on){on.preventDefault()}},g.a.createElement("div",{className:me.a.top},g.a.createElement(D.a,{title:ft.name},g.a.createElement("div",{className:me.a.name},ft.name)),g.a.createElement("img",{className:me.a.img,src:I.a.IMG_SERVER+"/images/"+ft.avatar_url}),g.a.createElement("div",{className:me.a.text},ft.creator),Dt&&g.a.createElement("div",{className:me.a.btns},g.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),g.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Zt&&g.a.createElement("div",{className:me.a.sign},"\u516C\u5F00")),g.a.createElement("div",{className:me.a.bottom},ft.visits>0&&g.a.createElement(D.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-liulanyan"}),g.a.createElement("span",null,ft.visits))),ft.course_members_count>0&&g.a.createElement(D.a,{title:"\u6210\u5458",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan"}),ft.course_members_count)),ft.tasks_count>0&&g.a.createElement(D.a,{title:"\u4F5C\u4E1A",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-zuoye"}),ft.tasks_count)),ft.is_end?g.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):g.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),g.a.createElement("div",{className:me.a.lockWrap},ft.is_accessible?g.a.createElement(g.a.Fragment,null,Dt&&g.a.createElement("div",{onClick:function(){return Object(K.U)("/paths/".concat(Dt))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),g.a.createElement("div",{onClick:function(on){ot&&Object(K.eb)([ot]),Object(K.U)(ft.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):g.a.createElement(g.a.Fragment,null,g.a.createElement("img",{src:"".concat(I.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!je.length&&g.a.createElement(be.a,null)))},Oe=ae,le=o("f0W+"),te=o.n(le),Q=function(Ce){var Le=Ce.dataSource,He=Le===void 0?[]:Le,je=Ce.value,Ke=Ce.onChange,it=Ce.className,Ct=Ce.style,Ft=Ct===void 0?{}:Ct,Jt=Ce.tabBarExtraContent;return g.a.createElement("div",{className:n()(te.a.tabs,it),style:Ft},g.a.createElement("div",{className:te.a.tabsWrap},He.map(function(Ht,Ot){return g.a.createElement("div",{onClick:function(){return Ke(Ht.id)},className:je===Ht.id?te.a.active:"",key:Ot},Ht.name)})),g.a.createElement("div",{className:te.a.tabBar},Jt))},J=Q,ve=o("9JIy"),_e=o.n(ve),Ae=function(Ce){var Le=Ce.className,He=Ce.style,je=He===void 0?{}:He,Ke=Ce.children;return g.a.createElement("div",{className:n()(_e.a.table,Le),style:je},Ke)},Je=Ae,tt=o("qVdP"),ut=o("jsC+"),ht=o("lUTK"),vt=o("BvKs"),_t=o("8WcF"),Ve=o.n(_t),Ue=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],pt=function(Ce){var Le,He=Ce.sortValue,je=Ce.dropValue,Ke=Ce.className,it=Ce.onSort,Ct=Ce.onDrop,Ft=Ce.dataSource,Jt=Ft===void 0?Ue:Ft;return g.a.createElement("div",{className:n()(Ve.a.orderWrap,Ke)},g.a.createElement(ut.a,{overlay:g.a.createElement(vt.a,null,Jt.map(function(Ht,Ot){return g.a.createElement(vt.a.Item,{key:Ot,onClick:function(){return Ct(Ht.id)}},Ht.name)}))},g.a.createElement("span",{className:Ve.a.orderTextWrap},(Le=Jt.find(function(Ht){return je===Ht.id}))===null||Le===void 0?void 0:Le.name)),g.a.createElement("span",{className:Ve.a.orderIconWrap},g.a.createElement("span",{className:Ve.a.orderAsc},g.a.createElement("i",{className:He==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Ve.a.cursorPointer," ").concat(Ve.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Ve.a.cursorPointer),onClick:function(){return it(He==="asc"?"desc":"asc")}})),g.a.createElement("span",{className:Ve.a.orderDesc},g.a.createElement("i",{className:He==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Ve.a.cursorPointer," ").concat(Ve.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Ve.a.cursorPointer),onClick:function(){return it(He==="asc"?"desc":"asc")}}))))},Ut=pt,Et=o("siWv"),jt=o.n(Et),Ze=function(Ce){var Le=Ce.className,He=Ce.style,je=Ce.children,Ke=Ce.onClick;return g.a.createElement("div",{onClick:Ke,className:n()(jt.a.btn,Le),style:He},je)},Be=Ze},Nmxd:function(k,z){k.exports="data:image/png;base64,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"},NvD2:function(k,z,o){"use strict";o.d(z,"a",function(){return C});var M=o("Kwbf");function g(O,m){var e=new Set;return O.forEach(function(f){m.has(f)||e.add(f)}),e}function A(O){var m=O||{},e=m.disabled,f=m.disableCheckbox,a=m.checkable;return!!(e||f)||a===!1}function b(O,m,e,f){for(var a=new Set(O),u=new Set,n=0;n<=e;n+=1){var i=m.get(n)||new Set;i.forEach(function(d){var s=d.key,l=d.node,w=d.children,E=w===void 0?[]:w;a.has(s)&&!f(l)&&E.filter(function(_){return!f(_.node)}).forEach(function(_){a.add(_.key)})})}for(var r=new Set,c=e;c>=0;c-=1){var h=m.get(c)||new Set;h.forEach(function(d){var s=d.parent,l=d.node;if(f(l)||!d.parent||r.has(d.parent.key))return;if(f(d.parent.node)){r.add(s.key);return}var w=!0,E=!1;(s.children||[]).filter(function(_){return!f(_.node)}).forEach(function(_){var P=_.key,R=a.has(P);w&&!R&&(w=!1),!E&&(R||u.has(P))&&(E=!0)}),w&&a.add(s.key),E&&u.add(s.key),r.add(s.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(g(u,a))}}function y(O,m,e,f,a){for(var u=new Set(O),n=new Set(m),i=0;i<=f;i+=1){var r=e.get(i)||new Set;r.forEach(function(s){var l=s.key,w=s.node,E=s.children,_=E===void 0?[]:E;!u.has(l)&&!n.has(l)&&!a(w)&&_.filter(function(P){return!a(P.node)}).forEach(function(P){u.delete(P.key)})})}n=new Set;for(var c=new Set,h=f;h>=0;h-=1){var d=e.get(h)||new Set;d.forEach(function(s){var l=s.parent,w=s.node;if(a(w)||!s.parent||c.has(s.parent.key))return;if(a(s.parent.node)){c.add(l.key);return}var E=!0,_=!1;(l.children||[]).filter(function(P){return!a(P.node)}).forEach(function(P){var R=P.key,x=u.has(R);E&&!x&&(E=!1),!_&&(x||n.has(R))&&(_=!0)}),E||u.delete(l.key),_&&n.add(l.key),c.add(l.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(g(n,u))}}function C(O,m,e,f){var a=[],u;f?u=f:u=A;var n=new Set(O.filter(function(h){var d=!!e[h];return d||a.push(h),d})),i=new Map,r=0;Object.keys(e).forEach(function(h){var d=e[h],s=d.level,l=i.get(s);l||(l=new Set,i.set(s,l)),l.add(d),r=Math.max(r,s)}),Object(M.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var c;return m===!0?c=b(n,i,r,u):c=y(n,m.halfCheckedKeys,i,r,u),c}},OLES:function(k,z,o){"use strict";var M=o("U8pU"),g=o("VTBJ"),A=o("Ff2n"),b=o("q1tI"),y=o("uciX"),C=o("7ixt"),O=function(n){var i=n.overlay,r=n.prefixCls,c=n.id,h=n.overlayInnerStyle;return b.createElement("div",{className:"".concat(r,"-inner"),id:c,role:"tooltip",style:h},typeof i=="function"?i():i)},m=O,e=function(n,i){var r=n.overlayClassName,c=n.trigger,h=c===void 0?["hover"]:c,d=n.mouseEnterDelay,s=d===void 0?0:d,l=n.mouseLeaveDelay,w=l===void 0?.1:l,E=n.overlayStyle,_=n.prefixCls,P=_===void 0?"rc-tooltip":_,R=n.children,x=n.onVisibleChange,S=n.afterVisibleChange,v=n.transitionName,T=n.animation,U=n.placement,L=U===void 0?"right":U,N=n.align,V=N===void 0?{}:N,H=n.destroyTooltipOnHide,D=H===void 0?!1:H,W=n.defaultVisible,F=n.getTooltipContainer,I=n.overlayInnerStyle,K=Object(A.a)(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ee=Object(b.useRef)(null);Object(b.useImperativeHandle)(i,function(){return ee.current});var he=Object(g.a)({},K);"visible"in n&&(he.popupVisible=n.visible);var de=function(){var ye=n.arrowContent,ue=ye===void 0?null:ye,se=n.overlay,$=n.id;return[b.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},ue),b.createElement(m,{key:"content",prefixCls:P,id:$,overlay:se,overlayInnerStyle:I})]},Se=!1,Te=!1;if(typeof D=="boolean")Se=D;else if(D&&Object(M.a)(D)==="object"){var ce=D.keepParent;Se=ce===!0,Te=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:r,prefixCls:P,popup:de,action:h,builtinPlacements:C.a,popupPlacement:L,ref:ee,popupAlign:V,getPopupContainer:F,onPopupVisibleChange:x,afterPopupVisibleChange:S,popupTransitionName:v,popupAnimation:T,defaultPopupVisible:W,destroyPopupOnHide:Se,autoDestroy:Te,mouseLeaveDelay:w,popupStyle:E,mouseEnterDelay:s},he),R)},f=Object(b.forwardRef)(e),a=z.a=f},OLod:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("K3mO"))})(this,function(M){M.lib.Cipher||function(g){var A=M,b=A.lib,y=b.Base,C=b.WordArray,O=b.BufferedBlockAlgorithm,m=A.enc,e=m.Utf8,f=m.Base64,a=A.algo,u=a.EvpKDF,n=b.Cipher=O.extend({cfg:y.extend(),createEncryptor:function(v,T){return this.create(this._ENC_XFORM_MODE,v,T)},createDecryptor:function(v,T){return this.create(this._DEC_XFORM_MODE,v,T)},init:function(v,T,U){this.cfg=this.cfg.extend(U),this._xformMode=v,this._key=T,this.reset()},reset:function(){O.reset.call(this),this._doReset()},process:function(v){return this._append(v),this._process()},finalize:function(v){v&&this._append(v);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function v(T){return typeof T=="string"?S:P}return function(T){return{encrypt:function(U,L,N){return v(L).encrypt(T,U,L,N)},decrypt:function(U,L,N){return v(L).decrypt(T,U,L,N)}}}}()}),i=b.StreamCipher=n.extend({_doFinalize:function(){var v=this._process(!0);return v},blockSize:1}),r=A.mode={},c=b.BlockCipherMode=y.extend({createEncryptor:function(v,T){return this.Encryptor.create(v,T)},createDecryptor:function(v,T){return this.Decryptor.create(v,T)},init:function(v,T){this._cipher=v,this._iv=T}}),h=r.CBC=function(){var v=c.extend();v.Encryptor=v.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize;T.call(this,U,L,V),N.encryptBlock(U,L),this._prevBlock=U.slice(L,L+V)}}),v.Decryptor=v.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize,H=U.slice(L,L+V);N.decryptBlock(U,L),T.call(this,U,L,V),this._prevBlock=H}});function T(U,L,N){var V,H=this._iv;H?(V=H,this._iv=g):V=this._prevBlock;for(var D=0;D<N;D++)U[L+D]^=V[D]}return v}(),d=A.pad={},s=d.Pkcs7={pad:function(v,T){for(var U=T*4,L=U-v.sigBytes%U,N=L<<24|L<<16|L<<8|L,V=[],H=0;H<L;H+=4)V.push(N);var D=C.create(V,L);v.concat(D)},unpad:function(v){var T=v.words[v.sigBytes-1>>>2]&255;v.sigBytes-=T}},l=b.BlockCipher=n.extend({cfg:n.cfg.extend({mode:h,padding:s}),reset:function(){var v;n.reset.call(this);var T=this.cfg,U=T.iv,L=T.mode;this._xformMode==this._ENC_XFORM_MODE?v=L.createEncryptor:(v=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,U&&U.words):(this._mode=v.call(L,this,U&&U.words),this._mode.__creator=v)},_doProcessBlock:function(v,T){this._mode.processBlock(v,T)},_doFinalize:function(){var v,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),v=this._process(!0)):(v=this._process(!0),T.unpad(v)),v},blockSize:128/32}),w=b.CipherParams=y.extend({init:function(v){this.mixIn(v)},toString:function(v){return(v||this.formatter).stringify(this)}}),E=A.format={},_=E.OpenSSL={stringify:function(v){var T,U=v.ciphertext,L=v.salt;return L?T=C.create([1398893684,1701076831]).concat(L).concat(U):T=U,T.toString(f)},parse:function(v){var T,U=f.parse(v),L=U.words;return L[0]==1398893684&&L[1]==1701076831&&(T=C.create(L.slice(2,4)),L.splice(0,4),U.sigBytes-=16),w.create({ciphertext:U,salt:T})}},P=b.SerializableCipher=y.extend({cfg:y.extend({format:_}),encrypt:function(v,T,U,L){L=this.cfg.extend(L);var N=v.createEncryptor(U,L),V=N.finalize(T),H=N.cfg;return w.create({ciphertext:V,key:U,iv:H.iv,algorithm:v,mode:H.mode,padding:H.padding,blockSize:v.blockSize,formatter:L.format})},decrypt:function(v,T,U,L){L=this.cfg.extend(L),T=this._parse(T,L.format);var N=v.createDecryptor(U,L).finalize(T.ciphertext);return N},_parse:function(v,T){return typeof v=="string"?T.parse(v,this):v}}),R=A.kdf={},x=R.OpenSSL={execute:function(v,T,U,L){L||(L=C.random(64/8));var N=u.create({keySize:T+U}).compute(v,L),V=C.create(N.words.slice(T),U*4);return N.sigBytes=T*4,w.create({key:N,iv:V,salt:L})}},S=b.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:x}),encrypt:function(v,T,U,L){L=this.cfg.extend(L);var N=L.kdf.execute(U,v.keySize,v.ivSize);L.iv=N.iv;var V=P.encrypt.call(this,v,T,N.key,L);return V.mixIn(N),V},decrypt:function(v,T,U,L){L=this.cfg.extend(L),T=this._parse(T,L.format);var N=L.kdf.execute(U,v.keySize,v.ivSize,T.salt);L.iv=N.iv;var V=P.decrypt.call(this,v,T,N.key,L);return V}})}()})},OZM5:function(k,z,o){"use strict";o.d(z,"b",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"k",function(){return u}),o.d(z,"h",function(){return n}),o.d(z,"i",function(){return i}),o.d(z,"g",function(){return r}),o.d(z,"c",function(){return c}),o.d(z,"d",function(){return h}),o.d(z,"j",function(){return l}),o.d(z,"e",function(){return w}),o.d(z,"f",function(){return E});var M=o("KQm4"),g=o("U8pU"),A=o("Ff2n"),b=o("q1tI"),y=o.n(b),C=o("Kwbf"),O=o("WaYH"),m=.25,e=2;function f(_,P){var R=_.slice(),x=R.indexOf(P);return x>=0&&R.splice(x,1),R}function a(_,P){var R=_.slice();return R.indexOf(P)===-1&&R.push(P),R}function u(_){return _.split("-")}function n(_,P){return"".concat(_,"-").concat(P)}function i(_){return _&&_.type&&_.type.isTreeNode}function r(_,P){var R=[_],x=P[_];function S(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];v.forEach(function(T){var U=T.key,L=T.children;R.push(U),S(L)})}return S(x.children),R}function c(_,P){var R=_.clientY,x=P.selectHandle.getBoundingClientRect(),S=x.top,v=x.bottom,T=x.height,U=Math.max(T*m,e);return R<=S+U?-1:R>=v-U?1:0}function h(_,P){if(!_)return;var R=P.multiple;return R?_.slice():_.length?[_[0]]:_}var d=function(P){return P};function s(_,P){if(!_)return[];var R=P||{},x=R.processProps,S=x===void 0?d:x,v=Array.isArray(_)?_:[_];return v.map(function(T){var U=T.children,L=Object(A.a)(T,["children"]),N=s(U,P);return y.a.createElement(O.a,Object.assign({},S(L)),N)})}function l(_){if(!_)return null;var P;if(Array.isArray(_))P={checkedKeys:_,halfCheckedKeys:void 0};else if(Object(g.a)(_)==="object")P={checkedKeys:_.checked||void 0,halfCheckedKeys:_.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function w(_,P){var R=new Set;function x(S){if(R.has(S))return;var v=P[S];if(!v)return;R.add(S);var T=v.parent,U=v.node;if(U.disabled)return;T&&x(T.key)}return(_||[]).forEach(function(S){x(S)}),Object(M.a)(R)}function E(_){var P={};return Object.keys(_).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(P[R]=_[R])}),P}},Oe0F:function(k,z,o){k.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(k,z,o){k.exports=o.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(k,z,o){"use strict";var M=o("2qtc"),g=o("kLXV"),A=o("rAM+"),b=o("miYZ"),y=o("tsqr"),C=o("9og8"),O=o("tJVT"),m=o("jrin"),e=o("WmNS"),f=o.n(e),a=o("q1tI"),u=o.n(a),n=o("VrN/"),i=o.n(n),r=o("bdgK"),c=o("p77/"),h=o("Bd2K"),d=o("ELLl"),s=o("19Vz"),l=o("lZu9"),w=o("+NIl"),E=o("kSUc"),_=o("9Bee"),P=function(Ke){var it=Ke.value,Ct=it===void 0?"":it,Ft=Ke.className,Jt=Ke.showTextOnly,Ht=Ke.showLines,Ot=Ke.style,Fe=Ot===void 0?{}:Ot,at=Object(a.useMemo)(function(){return""},[Ct]);return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},R=o("0Owb"),x=o("dejd"),S=o("C+DQ"),v=o("1vsH"),T=o("m3rI"),U=[{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 L(Ke){var it=Ke.onActionCallback,Ct=Ke.title,Ft=Ke.icon,Jt=Ke.actionName,Ht=Ke.className,Ot=Ht===void 0?"":Ht,Fe=Ke.children;function at(){it(Jt)}return u.a.createElement("a",{title:Ct,className:Ot,onClick:at},u.a.createElement("i",{className:"md-iconfont ".concat(Ft)}),Fe)}var N=function(Ke){var it=Ke.watch,Ct=Ke.showNullButton,Ft=Ke.onActionCallback,Jt=Ke.fullScreen,Ht=Ke.insertTemp,Ot=Ke.hidetoolBar,Fe=Ke.uuid,at=Ke.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(v.H)("_educoder_session_login"),"&_educoder_session=").concat(Object(v.H)("_educoder_session"),"&key=").concat(Fe,"&api=").concat(encodeURIComponent(T.a.PROXY_SERVER)));var ot=[].concat(U,[{title:"".concat(it?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(it?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return u.a.createElement("ul",{className:"markdown-toolbar-container"},!Ot&&ot.map(function(Pe,Qe){return u.a.createElement("li",{key:Qe},Pe.actionName?u.a.createElement(L,Object(R.a)({},Pe,{onActionCallback:Ft})):u.a.createElement("span",{className:"v-line"}))}),Ct?u.a.createElement("li",null,u.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ft},u.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ht&&u.a.createElement("li",null,u.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Ht),onActionCallback:Ft},u.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),u.a.createElement("li",{className:"btn-full-screen"},u.a.createElement(L,{icon:"".concat(Jt?"icon-shrink":"icon-enlarge"),title:Jt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ft})))},V=o("M8RZ"),H=o("+L6B"),D=o("2/Rp"),W=o("y8nQ"),F=o("Vl3Y"),I=o("5NDa"),K=o("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},he=function(Ke){var it=Ke.callback,Ct=Ke.onCancel;function Ft(Jt){it(Jt)}return u.a.createElement(F.a,Object(R.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ft}),u.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},u.a.createElement(K.a,null)),u.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},u.a.createElement(K.a,null)),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))},de=o("7ahc"),Se=o("HmJG"),Te=o("BjJ7"),ce=F.a.useForm,be={width:280,marginRight:10},ye={labelCol:{span:5},wrapperCol:{span:19}},ue=function(Ke){var it=Ke.callback,Ct=Ke.onCancel,Ft=ce(),Jt=Object(O.a)(Ft,1),Ht=Jt[0];function Ot(ot){it(ot)}function Fe(ot,Pe){if(ot.status===-1){y.b.error(ot.message);return}Ht.setFieldsValue({src:"/api/attachments/".concat(ot.id),type:Pe.type})}function at(ot){var Pe=ot.target.files[0];$(Pe,Fe)}return u.a.createElement(F.a,Object(R.a)({form:Ht},ye,{className:"upload-image-panel",onFinish:Ot}),u.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},u.a.createElement("div",{className:"flex-container"},u.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},u.a.createElement(K.a,{style:be})),u.a.createElement(se,{onFileChange:at}))),u.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},u.a.createElement(K.a,{style:{width:264}})),u.a.createElement(F.a.Item,{style:{textAlign:"right"}},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))};function se(Ke){var it=Ke.onFileChange;return u.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",u.a.createElement("input",{type:"file",onChange:it}))}function $(Ke,it){if(!Ke)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ct=new FormData;Ct.append("editormd-image-file",Ke),Ct.append("file_param_name","editormd-image-file"),Ct.append("byxhr","true");var Ft=new window.XMLHttpRequest;Ft.withCredentials=!0,Ft.addEventListener("load",function(Jt){it(JSON.parse(Jt.target.responseText),Ke)},!1),Ft.addEventListener("error",function(Jt){console.error(Jt)},!1),Ft.open("POST","".concat(Te.a,"/api/attachments.json")),Ft.send(Ct)}var me=o("giR+"),re=o("fyUT"),ae=o("7Kak"),Oe=o("9yH6"),le=Oe.a.Group,te={margin:"0 8px"},Q=function(Ke){var it=Ke.callback,Ct=Ke.onCancel;function Ft(Jt){it(Jt)}return u.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ft},u.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},u.a.createElement("span",{style:te},"\u5355\u5143\u683C\u6570\uFF1A"),u.a.createElement("span",{style:te},"\u884C\u6570"),u.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},u.a.createElement(re.a,null)),u.a.createElement("span",{style:te},"\u5217\u6570"),u.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},u.a.createElement(re.a,null))),u.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},u.a.createElement("span",{style:te},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),u.a.createElement(F.a.Item,{name:"align"},u.a.createElement(le,null,u.a.createElement(Oe.a,{value:"default"},u.a.createElement("i",{className:"fa fa-align-justify"})),u.a.createElement(Oe.a,{value:"left"},u.a.createElement("i",{className:"fa fa-align-left"})),u.a.createElement(Oe.a,{value:"center"},u.a.createElement("i",{className:"fa fa-align-center"})),u.a.createElement(Oe.a,{value:"right"},u.a.createElement("i",{className:"fa fa-align-right"}))))),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))},J=o("ErOA"),ve=o("7Cbv"),_e="link",Ae="upload-image",Je="code-block",tt="add-table",ut="------------",ht={default:ut,left:":".concat(ut),center:":".concat(ut,":"),right:"".concat(ut,":")},vt=o("9VGf"),_t,Ve;function Ue(){}var pt=0,Ut=1e4,Et="\u2581",jt=`
**\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 Ze(Ke){return/^\d+$/.test(Ke)?"".concat(Ke,"px"):Ke}var Be=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ye=Be?"Cmd":"Ctrl",Ce=["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"],Le=(_t={},Object(m.a)(_t,Ye+"-B","bold"),Object(m.a)(_t,Ye+"-I","italic"),_t),He=(Ve={},Object(m.a)(Ve,_e,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Ve,Je,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Ve,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Ve,tt,"\u6DFB\u52A0\u8868\u683C"),Ve),je=z.a=function(Ke){var it=Ke.defaultValue,Ct=it===void 0?"":it,Ft=Ke.onChange,Jt=Ke.width,Ht=Jt===void 0?"100%":Jt,Ot=Ke.height,Fe=Ot===void 0?400:Ot,at=Ke.miniToolbar,ot=at===void 0?!1:at,Pe=Ke.isFocus,Qe=Pe===void 0?!1:Pe,ft=Ke.watch,bt=Ke.insertTemp,Dt=Ke.mode,Mt=Dt===void 0?"markdown":Dt,ct=Ke.id,Lt=ct===void 0?"markdown-editor-id":ct,Zt=Ke.showResizeBar,An=Zt===void 0?!1:Zt,on=Ke.noStorage,Tn=on===void 0?!1:on,Ln=Ke.showNullButton,Nn=Ln===void 0?!1:Ln,ln=Ke.hidetoolBar,ar=ln===void 0?!1:ln,xr=Ke.fullScreen,Cr=xr===void 0?!1:xr,Yn=Ke.onBlur,Or=Ke.onCMBeforeChange,cr=Ke.onFullScreen,sn=Ke.className,qt=sn===void 0?"":sn,On=Ke.disablePaste,Ir=On===void 0?!1:On,Ar=Ke.placeholder,yr=Ar===void 0?"":Ar,pr=Ke.values,pe=pr===void 0?"":pr,X=Object(a.useState)(null),q=Object(O.a)(X,2),oe=q[0],De=q[1],fe=Object(a.useState)(Ct),st=Object(O.a)(fe,2),Qt=st[0],In=st[1],Vn=Object(a.useState)(ft),$t=Object(O.a)(Vn,2),bn=$t[0],cn=$t[1],Br=Object(a.useState)(Cr),ra=Object(O.a)(Br,2),oa=ra[0],er=ra[1],Ba=Object(a.useState)(""),Ea=Object(O.a)(Ba,2),ca=Ea[0],Ka=Ea[1],Ta=Object(a.useState)(0),Ja=Object(O.a)(Ta,2),Ua=Ja[0],li=Ja[1],oi=Object(a.useState)(Fe),fa=Object(O.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(a.useState)(!1),lt=Object(O.a)(xe,2),Rt=lt[0],wt=lt[1],Wt=Object(a.useRef)(Object(ve.a)()),It=Object(a.useRef)(!1),Vt=Object(a.useRef)(),rn=Object(a.useRef)(),yn=Object(a.useRef)(),gn=Object(a.useRef)(),jn=Object(a.useRef)(),Dn=function(){var tn=Object(C.a)(f.a.mark(function Sn(){var vn,kn;return f.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Wt.current}});case 2:kn=ir.sent,kn!=null&&(vn=kn.attachments)!==null&&vn!==void 0&&vn.length&&(console.log("cm:",oe,rn),kn.attachments.map(function(qn){qn.content_type.indexOf("image")>-1?oe.replaceSelection("![,](/api/attachments/".concat(qn.id,"?type=").concat(qn.content_type,")")):qn.content_type.indexOf("video")>-1?oe.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):qn.content_type.indexOf("pdf")>-1?oe.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,'&disposition=inline" target="_blank">').concat(qn.name,"</a>")):oe.replaceSelection("[".concat(qn.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,")"))}));case 4:case"end":return ir.stop()}},Sn)}));return function(){return tn.apply(this,arguments)}}();Object(a.useEffect)(function(){In(pe),oe==null||oe.setValue(pe)},[pe]),Object(a.useEffect)(function(){cr==null||cr(oa)},[oa]),Object(a.useEffect)(function(){if(rn.current){var tn=i.a.fromTextArea(rn.current,{mode:Mt,lineNumbers:!ot,lineWrapping:!0,value:Ct,autoCloseTags:!0,autoCloseBrackets:!0});Qe&&tn.focus();function Sn(vn,kn){if(Ir){kn.preventDefault();return}var Fn=kn.clipboardData;if(Fn){var ir=Fn.types.toString(),qn=Fn.items;if(ir==="Files"||Fn.types.indexOf("Files")>-1){if(kn.preventDefault(),Mt=="stex")return;try{var Rr,Lr=qn[1];((Rr=qn[0])===null||Rr===void 0?void 0:Rr.kind)==="file"&&(Lr=qn[0]);var Qn=Lr.getAsFile(),Dr=Qn.name.split(".").pop();$(Qn,function(mr){if(mr.id){var zr,Nr,$r;(Qn==null||((zr=Qn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?tn.replaceSelection("![,](/api/attachments/".concat(mr.id,"?type=").concat(mr.content_type,")")):(Qn==null||((Nr=Qn.type)===null||Nr===void 0)?void 0:Nr.indexOf("video"))>-1?tn.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,'"></video>')):(Qn==null||(($r=Qn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?tn.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(Qn.type,'&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):Ce.includes(Dr)?tn.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,'?type=office&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):tn.replaceSelection("[".concat(Qn.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(mr.content_type,")"))}else(mr==null?void 0:mr.status)===401&&(document.location.href="/user/login")})}catch(mr){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return tn.on("paste",Sn),tn.on("dragleave",function(vn,kn){yn.current.classList.remove("mouse-hover-md")}),tn.on("dragover",function(vn,kn){yn.current.classList.add("mouse-hover-md")}),tn.on("drop",function(vn,kn){yn.current.classList.add("mouse-hover-md");var Fn;if(Fn=kn.dataTransfer.files,Fn.length>0){kn.preventDefault(),kn.stopPropagation();for(var ir=function(Lr){var Qn=Fn[Lr],Dr=Qn.name.split(".").pop();$(Qn,function(mr){if(mr.id){var zr,Nr,$r;(Qn==null||((zr=Qn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?tn.replaceSelection("![,](/api/attachments/".concat(mr.id,"?type=").concat(mr.content_type,")")):(Qn==null||((Nr=Qn.type)===null||Nr===void 0)?void 0:Nr.indexOf("video"))>-1?tn.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,'"></video>')):(Qn==null||(($r=Qn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?tn.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(Qn.type,'&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):Ce.includes(Dr)?tn.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,'?type=office&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):tn.replaceSelection("[".concat(Qn.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(mr.content_type,")"))}else(mr==null?void 0:mr.status)===401&&(document.location.href="/user/login")})},qn=0;qn<Fn.length;qn++)ir(qn)}}),De(tn),function(){tn.off("paste",Sn)}}},[]);var an=Object(a.useCallback)(function(){if(yn.current)try{}catch(tn){console.log(tn,"---- to set md editor body height")}},[ma,yn,oa]);Object(a.useEffect)(function(){function tn(){var vn=new r.default(function(kn){var Fn=Object(A.a)(kn),ir;try{for(Fn.s();!(ir=Fn.n()).done;){var qn=ir.value;(qn.target.offsetHeight>0||qn.target.offsetWidth>0)&&(an(),oe.setSize("100%","100%"),oe.refresh())}}catch(Rr){Fn.e(Rr)}finally{Fn.f()}});return vn.observe(rn.current.parentElement),vn}if(oe){var Sn=tn();return function(){Sn.unobserve(rn.current.parentElement)}}},[oe,an]),Object(a.useEffect)(function(){if(oe){for(var tn=[],Sn=function(){var qn=kn[vn];Fn=Object(O.a)(qn,2);var Rr=Fn[0],Lr=Fn[1],Qn=Object(m.a)({},Rr,function(){Mn(Lr)});tn.push(Qn),oe.addKeyMap(Qn)},vn=0,kn=Object.entries(Le);vn<kn.length;vn++){var Fn;Sn()}return Vt.current=setInterval(function(){It.current&&Dn()},4e3),function(){clearInterval(Vt.current);var ir=Object(A.a)(tn),qn;try{for(ir.s();!(qn=ir.n()).done;){var Rr=qn.value;oe.removeKeyMap(Rr)}}catch(Lr){ir.e(Lr)}finally{ir.f()}}}},[oe]),Object(a.useEffect)(function(){Cr!==oa&&er(Cr)},[Cr]),Object(vt.a)(function(){if(!Tn&&Ua>0){var tn=new Date().getTime(),Sn=window.sessionStorage.getItem(Lt);tn>=Ua+Ut&&(!Sn||Sn!==Qt)&&(window.sessionStorage.setItem(Lt,Qt),wt(!0))}},Ut),Object(a.useEffect)(function(){cn(ft)},[oe,ft]),Object(a.useEffect)(function(){oe&&(Qe&&oe.focus())},[oe,Qe]),Object(a.useEffect)(function(){if(bn&&oe){var tn=oe.getScrollerElement();function Sn(vn){var kn=vn.target;if(jn.current){var Fn=kn.scrollTop/kn.scrollHeight;jn.current.scrollTop=jn.current.scrollHeight*Fn}}return tn.addEventListener("scroll",Sn),function(){tn.removeEventListener("scroll",Sn)}}},[oe,bn]),Object(a.useEffect)(function(){if(oe&&Or){function tn(Sn,vn){Or(Sn,vn)}return oe.on("beforeChange",tn),function(){oe.off("beforeChange",tn)}}},[oe,Or]),Object(a.useEffect)(function(){if(oe&&Yn){function tn(){Yn(oe.getValue())}return oe.on("blur",tn),function(){oe.off("blur",tn)}}},[oe,Yn]),Object(a.useEffect)(function(){if(oe){function tn(Sn){var vn=Sn.getValue();In(vn),li(new Date().getTime()),Sn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ft&&Ft(vn)}return oe.on("change",tn),function(){oe.off("change",tn)}}},[oe,Ft]),Object(a.useEffect)(function(){oe&&(Ct==null?(oe.setValue(""),In("")):Ct!==oe.getValue()&&(oe.setValue(Ct),In(Ct),oe.setCursor(oe.lineCount(),0)))},[oe,Ct]);var Mn=Object(a.useCallback)(function(tn){var Sn=oe.getCursor(),vn=oe.getSelection(),kn=vn.split(`
`);switch(tn){case"bold":return oe.replaceSelection("**"+vn+"**"),vn===""&&oe.setCursor(Sn.line,Sn.ch+2),oe.focus();case"italic":return oe.replaceSelection("*"+vn+"*"),vn===""&&oe.setCursor(Sn.line,Sn.ch+1),oe.focus();case"code":return oe.replaceSelection("`"+vn+"`"),vn===""&&oe.setCursor(Sn.line,Sn.ch+1),oe.focus();case"inline-latex":return oe.replaceSelection("`$$"+vn+"$$`"),vn===""&&oe.setCursor(Sn.line,Sn.ch+3),oe.focus();case"latex":return oe.replaceSelection("```latex\n"+vn+"\n```"),oe.setCursor(Sn.line+1,vn.length+1),oe.focus();case"line-break":return oe.replaceSelection(`<br/>
`),oe.focus();case"list-ul":return vn===""?oe.replaceSelection("- "+vn):oe.replaceSelection(kn.map(function(Fn){return Fn===""?"":"- ".concat(Fn)}).join(`
`)),oe.focus();case"list-ol":return vn===""?oe.replaceSelection("1. "+vn):oe.replaceSelection(kn.map(function(Fn,ir){return Fn===""?"":"".concat(ir+1,". ").concat(Fn)}).join(`
`)),oe.focus();case"add-null-ch":return vn===""&&oe.setCursor(Sn.line,Sn.ch+1),oe.replaceSelection(Et),oe.focus();case"inster-template-1":return vn===""&&oe.setCursor(Sn.line,Sn.ch),oe.replaceSelection(jt),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return cn(!bn),oe.focus();case"trigger-full-screen":return er(!oa),oe.focus();case _e:Ka(_e);return;case Je:Ka(Je);return;case Ae:Ka(Ae);return;case tt:Ka(tt);return;default:throw new Error}},[oe,bn,oa]),_n=Object(a.useCallback)(function(tn){Ka("");switch(ca){case _e:var Sn=tn.title,vn=tn.link;return oe.replaceSelection("[".concat(Sn,"](").concat(vn,")")),oe.focus();case Je:var kn=tn.language,Fn=tn.content;return oe.replaceSelection(["```"+kn,Fn,"```"].join(`
`)),oe.focus();case Ae:var ir=tn.src,qn=tn.alt;return qn?oe.replaceSelection("![ ".concat(qn," ]( ").concat(ir,' "').concat(qn,'" )')):oe.replaceSelection("![,](".concat(ir,")")),oe.focus();case tt:for(var Rr=tn.row,Lr=tn.col,Qn=tn.align,Dr=`
`,mr=0;mr<Rr;mr++){for(var zr=[],Nr=[],$r=0;$r<Lr;$r++)mr===1&&Nr.push(ht[Qn]),zr.push(" ");mr===1&&(Dr+="| ".concat(Nr.join(" | "),` |
`)),Dr+="| ".concat(zr.join(Lr===1?"":" | "),` |
`)}return oe.replaceSelection(Dr+`
`),oe.focus();default:throw new Error}},[oe,ca]),Bn=Object(a.useMemo)(function(){switch(ca){case _e:return u.a.createElement(he,{callback:_n,onCancel:Pn});case Je:return u.a.createElement(de.b,{callback:_n,onCancel:Pn});case Ae:return u.a.createElement(ue,{callback:_n,onCancel:Pn});case tt:return u.a.createElement(Q,{callback:_n,onCancel:Pn});default:return null}},[ca]);function Pn(){Ka("")}Object(a.useEffect)(function(){if(gn.current){var tn=gn.current,Sn=!1,vn=0;function kn(qn){Sn=!0,vn=qn.pageY}function Fn(){Sn=!1}function ir(qn){if(Sn){var Rr=qn.pageY-vn;Rr<0&&(Rr=0),Rr>300&&(Rr=300);var Lr=Fe+Rr+"px";la(Lr)}}return tn.addEventListener("mousedown",kn),document.addEventListener("mousemove",ir),document.addEventListener("mouseup",Fn),function(){tn.removeEventListener("mousedown",kn),document.removeEventListener("mousemove",ir),document.removeEventListener("mouseup",Fn)}}},[oe,gn]),Object(a.useEffect)(function(){la(Fe)},[Fe]);var Jn=Ze(Ht),fr=Ze(ma),Fr={width:Jn,height:fr},Cn=Object(a.useMemo)(function(){if(Ua){var tn=new Date(Ua),Sn=tn.getHours(),vn=tn.getMinutes(),kn=tn.getSeconds();return Sn=Sn<10?"0"+Sn:Sn,vn=vn<10?"0"+vn:vn,kn=kn<10?"0"+kn:kn,"".concat(Sn,":").concat(vn,":").concat(kn)}return 0},[Ua]);function Xt(){window.sessionStorage.removeItem(Lt),wt(!1),li(0)}function hn(){wt(!1),li(0),oe.setValue(window.sessionStorage.getItem(Lt))}function Rn(tn,Sn){var vn=oe.getValue();vn=vn.replace(tn,Sn),In(vn),oe==null||oe.setValue(vn)}return u.a.createElement(a.Fragment,null,u.a.createElement("div",{className:"markdown-editor-wrapper",ref:yn},u.a.createElement("div",{className:"markdown-editor-container ".concat(qt," ").concat(bn?"on-preview":""," ").concat(ot?"mini":""," ").concat(oa?"full-screen":""),style:Fr},u.a.createElement(N,{insertTemp:bt,watch:bn,fullScreen:oa,showNullButton:Nn,onActionCallback:Mn,hidetoolBar:ar,uuid:Wt.current,setOpenPhones:function(){It.current=!0}}),u.a.createElement("div",{className:"markdown-editor-body"},u.a.createElement("div",{className:"codemirror-container"},u.a.createElement("textarea",{ref:rn,placeholder:yr})),bn?u.a.createElement("div",{ref:jn,className:"preview-container"},Mt==="stex"&&u.a.createElement(P,{value:Qt}),Mt!=="stex"&&u.a.createElement(_.a,{edit:!0,value:Qt,replaces:Rn})):null))),An?u.a.createElement("a",{ref:gn,className:"editor-resize"}):null,u.a.createElement(V.a,null,He[ca]?u.a.createElement(g.a,{centered:!0,title:He[ca],visible:!0,onCancel:Pn,footer:null,className:"markdown-popup-form"},Bn):null))}},P5Jw:function(k,z,o){"use strict";var M=o("rHrb"),g=M.CopyToClipboard;g.CopyToClipboard=g,k.exports=g},PVpz:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.StreamCipher,y=g.algo,C=[],O=[],m=[],e=y.RabbitLegacy=b.extend({_doReset:function(){var a=this._key.words,u=this.cfg.iv,n=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],i=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var r=0;r<4;r++)f.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(u){var c=u.words,h=c[0],d=c[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,l=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|l&4294901760,E=l<<16|s&65535;i[0]^=s,i[1]^=w,i[2]^=l,i[3]^=E,i[4]^=s,i[5]^=w,i[6]^=l,i[7]^=E;for(var r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(a,u){var n=this._X;f.call(this),C[0]=n[0]^n[5]>>>16^n[3]<<16,C[1]=n[2]^n[7]>>>16^n[5]<<16,C[2]=n[4]^n[1]>>>16^n[7]<<16,C[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)C[i]=(C[i]<<8|C[i]>>>24)&16711935|(C[i]<<24|C[i]>>>8)&4278255360,a[u+i]^=C[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,u=this._C,n=0;n<8;n++)O[n]=u[n];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<O[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<O[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<O[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<O[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<O[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<O[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<O[6]>>>0?1:0)|0,this._b=u[7]>>>0<O[7]>>>0?1:0;for(var n=0;n<8;n++){var i=a[n]+u[n],r=i&65535,c=i>>>16,h=((r*r>>>17)+r*c>>>15)+c*c,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[n]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.RabbitLegacy=b._createHelper(e)}(),M.RabbitLegacy})},QNag:function(k,z,o){"use strict";var M=o("2qtc"),g=o("kLXV"),A=o("+L6B"),b=o("2/Rp"),y=o("9og8"),C=o("y8nQ"),O=o("Vl3Y"),m=o("tJVT"),e=o("PpiC"),f=o("5NDa"),a=o("5rEg"),u=o("WmNS"),n=o.n(u),i=o("q1tI"),r=o.n(i),c=o("9kvl"),h=o("JFl9"),d=o.n(h),s=a.a.TextArea,l=function(E){var _=E.shixunsDetail,P=E.globalSetting,R=E.loading,x=E.dispatch,S=E.onFinish,v=S===void 0?function(){}:S,T=Object(e.a)(E,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),U=O.a.useForm(),L=Object(m.a)(U,1),N=L[0],V=function(){var D=Object(y.a)(n.a.mark(function W(F){var I,K;return n.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,x({type:"shixunsDetail/getCustomScript",payload:{id:(I=_.actionTabs.params)===null||I===void 0?void 0:I.id,compile:F.execute,excutive:F.compile}});case 2:K=he.sent,H(),K&&v(K==null?void 0:K.shixun_script);case 5:case"end":return he.stop()}},W)}));return function(F){return D.apply(this,arguments)}}(),H=function(){x({type:"shixunsDetail/setActionTabs",payload:{}})};return r.a.createElement(g.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:_.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:H},r.a.createElement(O.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:V},r.a.createElement(O.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},r.a.createElement(s,{rows:4})),r.a.createElement(O.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},r.a.createElement(s,{rows:4})),r.a.createElement("div",{className:d.a.footerWrap},r.a.createElement(O.a.Item,null,r.a.createElement(b.a,{className:"mr5",size:"large",onClick:H},"\u53D6\u6D88"),r.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:R.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};z.a=Object(c.a)(function(w){var E=w.shixunsDetail,_=w.loading,P=w.globalSetting;return{shixunsDetail:E,globalSetting:P,loading:_}})(l)},Qvpy:function(k,z,o){k.exports={title:"title___39Oep",content:"content___Xl7wK",add:"add___1luKB",colorBlue:"colorBlue___c0Swt",radio:"radio___OK4CQ"}},RC3E:function(k,z,o){k.exports={wrap:"wrap___2zh4E",title:"title___Os-Oa",path:"path___eUXXC",colorBlue:"colorBlue___2IORo"}},RMFE:function(k,z){k.exports="data:image/png;base64,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"},RotF:function(k,z,o){k.exports=o("LSTS")},RxwV:function(k,z,o){"use strict";var M=o("q1tI"),g=o("uciX"),A=o("2W6z"),b=o.n(A),y=o("4IlW"),C=o("uK0f"),O=o.n(C);function m(be,ye){if(be===ye)return!0;if(!be||!ye)return!1;var ue=be.length;if(ye.length!==ue)return!1;for(var se=0;se<ue;se++)if(be[se]!==ye[se])return!1;return!0}function e(be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(ue){return typeof ue}:e=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},e(be)}function f(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function a(be,ye){for(var ue=0;ue<ye.length;ue++){var se=ye[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(be,se.key,se)}}function u(be,ye,ue){return ye&&a(be.prototype,ye),ue&&a(be,ue),be}function n(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),ye&&i(be,ye)}function i(be,ye){return i=Object.setPrototypeOf||function(se,$){return se.__proto__=$,se},i(be,ye)}function r(be){var ye=d();return function(){var ue=s(be),se;if(ye){var $=s(this).constructor;se=Reflect.construct(ue,arguments,$)}else se=ue.apply(this,arguments);return c(this,se)}}function c(be,ye){return ye&&(e(ye)==="object"||typeof ye=="function")?ye:h(be)}function h(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}function d(){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 s(be){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},s(be)}var l=function(){var be=function(ye){n(se,ye);var ue=r(se);function se(){var $;return f(this,se),$=ue.apply(this,arguments),$.menuItems={},$.saveMenuItem=function(me){return function(re){$.menuItems[me]=re}},$}return u(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,ae=re.fieldNames,Oe=re.defaultFieldNames;return ae[me]||Oe[me]}},{key:"getOption",value:function(me,re){var ae=this.props,Oe=ae.prefixCls,le=ae.expandTrigger,te=ae.expandIcon,Q=ae.loadingIcon,J=this.props.onSelect.bind(this,me,re),ve=this.props.onItemDoubleClick.bind(this,me,re),_e={onClick:J,onDoubleClick:ve},Ae="".concat(Oe,"-menu-item"),Je=null,tt=me[this.getFieldName("children")]&&me[this.getFieldName("children")].length>0;(tt||me.isLeaf===!1)&&(Ae+=" ".concat(Oe,"-menu-item-expand"),me.loading||(Je=M.createElement("span",{className:"".concat(Oe,"-menu-item-expand-icon")},te))),le==="hover"&&(tt||me.isLeaf===!1)&&(_e={onMouseEnter:this.delayOnSelect.bind(this,J),onMouseLeave:this.delayOnSelect.bind(this),onClick:J}),this.isActiveOption(me,re)&&(Ae+=" ".concat(Oe,"-menu-item-active"),_e.ref=this.saveMenuItem(re)),me.disabled&&(Ae+=" ".concat(Oe,"-menu-item-disabled"));var ut=null;me.loading&&(Ae+=" ".concat(Oe,"-menu-item-loading"),ut=Q||null);var ht="";return"title"in me?ht=me.title:typeof me[this.getFieldName("label")]=="string"&&(ht=me[this.getFieldName("label")]),M.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:Ae,title:ht},_e,{role:"menuitem",onMouseDown:function(_t){return _t.preventDefault()}}),me[this.getFieldName("label")],Je,ut)}},{key:"getActiveOptions",value:function(me){var re=this,ae=this.props.options,Oe=me||this.props.activeValue;return O()(ae,function(le,te){return le[re.getFieldName("value")]===Oe[te]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ae=this.getActiveOptions().map(function(Oe){return Oe[me.getFieldName("children")]}).filter(function(Oe){return!!Oe});return ae.unshift(re),ae}},{key:"delayOnSelect",value:function(me){for(var re=this,ae=arguments.length,Oe=new Array(ae>1?ae-1:0),le=1;le<ae;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 ae=this.menuItems[re];ae&&ae.parentElement&&(ae.parentElement.scrollTop=ae.offsetTop)}}},{key:"isActiveOption",value:function(me,re){var ae=this.props.activeValue,Oe=ae===void 0?[]:ae;return Oe[re]===me[this.getFieldName("value")]}},{key:"render",value:function(){var me=this,re=this.props,ae=re.prefixCls,Oe=re.dropdownMenuColumnStyle;return M.createElement("div",null,this.getShowOptions().map(function(le,te){return M.createElement("ul",{className:"".concat(ae,"-menu"),key:te,style:Oe},le.map(function(Q){return me.getOption(Q,te)}))}))}}]),se}(M.Component);return be.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},be}(),w=l,E={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}}},_=E;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,ye){if(be==null)return{};var ue=x(be,ye),se,$;if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(be);for($=0;$<me.length;$++){if(se=me[$],ye.indexOf(se)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(be,se))continue;ue[se]=be[se]}}return ue}function x(be,ye){if(be==null)return{};var ue={},se=Object.keys(be),$,me;for(me=0;me<se.length;me++){if($=se[me],ye.indexOf($)>=0)continue;ue[$]=be[$]}return ue}function S(be){return L(be)||U(be)||T(be)||v()}function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(be,ye){if(!be)return;if(typeof be=="string")return N(be,ye);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,ye)}function U(be){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(be))return Array.from(be)}function L(be){if(Array.isArray(be))return N(be)}function N(be,ye){(ye==null||ye>be.length)&&(ye=be.length);for(var ue=0,se=new Array(ye);ue<ye;ue++)se[ue]=be[ue];return se}function V(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function H(be,ye){for(var ue=0;ue<ye.length;ue++){var se=ye[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(be,se.key,se)}}function D(be,ye,ue){return ye&&H(be.prototype,ye),ue&&H(be,ue),be}function W(be,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ye&&ye.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),ye&&F(be,ye)}function F(be,ye){return F=Object.setPrototypeOf||function(se,$){return se.__proto__=$,se},F(be,ye)}function I(be){var ye=he();return function(){var ue=de(be),se;if(ye){var $=de(this).constructor;se=Reflect.construct(ue,arguments,$)}else se=ue.apply(this,arguments);return K(this,se)}}function K(be,ye){return ye&&(P(ye)==="object"||typeof ye=="function")?ye:ee(be)}function ee(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}function he(){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 Se=function(){var be=function(ye){W(se,ye);var ue=I(se);function se($){var me;V(this,se),me=ue.call(this,$),me.setPopupVisible=function(ae){var Oe=me.state.value;"popupVisible"in me.props||me.setState({popupVisible:ae}),ae&&!me.state.popupVisible&&me.setState({activeValue:Oe}),me.props.onPopupVisibleChange(ae)},me.handleChange=function(ae,Oe,le){var te=Oe.visible;(le.type!=="keydown"||le.keyCode===y.a.ENTER)&&(me.props.onChange(ae.map(function(Q){return Q[me.getFieldName("value")]}),ae),me.setPopupVisible(te))},me.handlePopupVisibleChange=function(ae){me.setPopupVisible(ae)},me.handleMenuSelect=function(ae,Oe,le){var te=me.trigger.getRootDomNode();te&&te.focus&&te.focus();var Q=me.props,J=Q.changeOnSelect,ve=Q.loadData,_e=Q.expandTrigger;if(!ae||ae.disabled)return;var Ae=me.state.activeValue;Ae=Ae.slice(0,Oe+1),Ae[Oe]=ae[me.getFieldName("value")];var Je=me.getActiveOptions(Ae);if(ae.isLeaf===!1&&!ae[me.getFieldName("children")]&&ve){J&&me.handleChange(Je,{visible:!0},le),me.setState({activeValue:Ae}),ve(Je);return}var tt={};!ae[me.getFieldName("children")]||!ae[me.getFieldName("children")].length?(me.handleChange(Je,{visible:!1},le),tt.value=Ae):J&&(le.type==="click"||le.type==="keydown")&&(_e==="hover"?me.handleChange(Je,{visible:!1},le):me.handleChange(Je,{visible:!0},le),tt.value=Ae),tt.activeValue=Ae,("value"in me.props||le.type==="keydown"&&le.keyCode!==y.a.ENTER)&&delete tt.value,me.setState(tt)},me.handleItemDoubleClick=function(){var ae=me.props.changeOnSelect;ae&&me.setPopupVisible(!1)},me.handleKeyDown=function(ae){var Oe=me.props.children;if(Oe&&Oe.props.onKeyDown){Oe.props.onKeyDown(ae);return}var le=S(me.state.activeValue),te=le.length-1<0?0:le.length-1,Q=me.getCurrentLevelOptions(),J=Q.map(function(Je){return Je[me.getFieldName("value")]}).indexOf(le[te]);if(ae.keyCode!==y.a.DOWN&&ae.keyCode!==y.a.UP&&ae.keyCode!==y.a.LEFT&&ae.keyCode!==y.a.RIGHT&&ae.keyCode!==y.a.ENTER&&ae.keyCode!==y.a.SPACE&&ae.keyCode!==y.a.BACKSPACE&&ae.keyCode!==y.a.ESC&&ae.keyCode!==y.a.TAB)return;if(!me.state.popupVisible&&ae.keyCode!==y.a.BACKSPACE&&ae.keyCode!==y.a.LEFT&&ae.keyCode!==y.a.RIGHT&&ae.keyCode!==y.a.ESC&&ae.keyCode!==y.a.TAB){me.setPopupVisible(!0);return}if(ae.keyCode===y.a.DOWN||ae.keyCode===y.a.UP){ae.preventDefault();var ve=J;ve!==-1?ae.keyCode===y.a.DOWN?(ve+=1,ve=ve>=Q.length?0:ve):(ve-=1,ve=ve<0?Q.length-1:ve):ve=0,le[te]=Q[ve][me.getFieldName("value")]}else if(ae.keyCode===y.a.LEFT||ae.keyCode===y.a.BACKSPACE)ae.preventDefault(),le.splice(le.length-1,1);else if(ae.keyCode===y.a.RIGHT)ae.preventDefault(),Q[J]&&Q[J][me.getFieldName("children")]&&le.push(Q[J][me.getFieldName("children")][0][me.getFieldName("value")]);else if(ae.keyCode===y.a.ESC||ae.keyCode===y.a.TAB){me.setPopupVisible(!1);return}(!le||le.length===0)&&me.setPopupVisible(!1);var _e=me.getActiveOptions(le),Ae=_e[_e.length-1];me.handleMenuSelect(Ae,_e.length-1,ae),me.props.onKeyDown&&me.props.onKeyDown(ae)},me.saveTrigger=function(ae){me.trigger=ae};var re=[];return"value"in $?re=$.value||[]:"defaultValue"in $&&(re=$.defaultValue||[]),b()(!("filedNames"in $),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),me.state={popupVisible:$.popupVisible,activeValue:re,value:re,prevProps:$},me.defaultFieldNames={label:"label",value:"value",children:"children"},me}return D(se,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(me){var re=this.defaultFieldNames,ae=this.props,Oe=ae.fieldNames,le=ae.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,ae=me.filedNames;return"filedNames"in this.props?ae:re}},{key:"getCurrentLevelOptions",value:function(){var me=this,re=this.props.options,ae=re===void 0?[]:re,Oe=this.state.activeValue,le=Oe===void 0?[]:Oe,te=O()(ae,function(Q,J){return Q[me.getFieldName("value")]===le[J]},{childrenKeyName:this.getFieldName("children")});return te[te.length-2]?te[te.length-2][this.getFieldName("children")]:S(ae).filter(function(Q){return!Q.disabled})}},{key:"getActiveOptions",value:function(me){var re=this;return O()(this.props.options||[],function(ae,Oe){return ae[re.getFieldName("value")]===me[Oe]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var me=this.props,re=me.prefixCls,ae=me.transitionName,Oe=me.popupClassName,le=me.options,te=le===void 0?[]:le,Q=me.disabled,J=me.builtinPlacements,ve=me.popupPlacement,_e=me.children,Ae=me.dropdownRender,Je=R(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),tt=M.createElement("div",null),ut="";te&&te.length>0?tt=M.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})):ut=" ".concat(re,"-menus-empty");var ht=tt;return Ae&&(ht=Ae(tt)),M.createElement(g.a,Object.assign({ref:this.saveTrigger},Je,{popupPlacement:ve,builtinPlacements:J,popupTransitionName:ae,action:Q?[]:["click"],popupVisible:Q?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:Oe+ut,popup:ht}),M.cloneElement(_e,{onKeyDown:this.handleKeyDown,tabIndex:Q?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(me,re){var ae=re.prevProps,Oe=ae===void 0?{}:ae,le={prevProps:me};return"value"in me&&!m(Oe.value,me.value)&&(le.value=me.value||[],"loadData"in me||(le.activeValue=me.value||[])),"popupVisible"in me&&(le.popupVisible=me.popupVisible),le}}]),se}(M.Component);return be.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:_,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},be}(),Te=Se,ce=z.a=Te},S6kV:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.OFB=function(){var g=M.lib.BlockCipherMode.extend(),A=g.Encryptor=g.extend({processBlock:function(b,y){var C=this._cipher,O=C.blockSize,m=this._iv,e=this._keystream;m&&(e=this._keystream=m.slice(0),this._iv=void 0),C.encryptBlock(e,0);for(var f=0;f<O;f++)b[y+f]^=e[f]}});return g.Decryptor=A,g}(),M.mode.OFB})},"SA+Z":function(k,z,o){var M=o("wTVA"),g=o("EbDI"),A=o("ZhPi"),b=o("wkBT");function y(C){return M(C)||g(C)||A(C)||b()}k.exports=y,k.exports.__esModule=!0,k.exports.default=k.exports},SJMd:function(k,z){/**
* @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 o,M,g,A=!1,b,y;window.PR_SHOULD_USE_CONTINUATION=!0;var C,O;(function(){var m=window,e=["break,continue,do,else,for,if,return,while"],f=[e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],a=[f,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],u=[a,"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"],n=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],i=[a,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",c=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],h="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",d=[e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],s=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],l=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],w=[u,i,n,c,h,d,s,l],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,_="str",P="kwd",R="com",x="typ",S="lit",v="pun",T="pln",U="tag",L="dec",N="src",V="atn",H="atv",D="nocode",W="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(le){for(var te=0,Q=!1,J=!1,ve=0,_e=le.length;ve<_e;++ve){var Ae=le[ve];if(Ae.ignoreCase)J=!0;else if(/[a-z]/i.test(Ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Q=!0,J=!1;break}}var Je={b:8,t:9,n:10,v:11,f:12,r:13};function tt(Ve){var Ue=Ve.charCodeAt(0);if(Ue!==92)return Ue;var pt=Ve.charAt(1);return Ue=Je[pt],Ue||("0"<=pt&&pt<="7"?parseInt(Ve.substring(1),8):pt==="u"||pt==="x"?parseInt(Ve.substring(2),16):Ve.charCodeAt(1))}function ut(Ve){if(Ve<32)return(Ve<16?"\\x0":"\\x")+Ve.toString(16);var Ue=String.fromCharCode(Ve);return Ue==="\\"||Ue==="-"||Ue==="]"||Ue==="^"?"\\"+Ue:Ue}function ht(Ve){var Ue=Ve.substring(1,Ve.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")),pt=[],Ut=Ue[0]==="^",Et=["["];Ut&&Et.push("^");for(var jt=Ut?1:0,Ze=Ue.length;jt<Ze;++jt){var Be=Ue[jt];if(/\\[bdsw]/i.test(Be))Et.push(Be);else{var Ye=tt(Be),Ce;jt+2<Ze&&Ue[jt+1]==="-"?(Ce=tt(Ue[jt+2]),jt+=2):Ce=Ye,pt.push([Ye,Ce]),Ce<65||Ye>122||(Ce<65||Ye>90||pt.push([Math.max(65,Ye)|32,Math.min(Ce,90)|32]),Ce<97||Ye>122||pt.push([Math.max(97,Ye)&~32,Math.min(Ce,122)&~32]))}}pt.sort(function(Ke,it){return Ke[0]-it[0]||it[1]-Ke[1]});for(var Le=[],He=[],jt=0;jt<pt.length;++jt){var je=pt[jt];je[0]<=He[1]+1?He[1]=Math.max(He[1],je[1]):Le.push(He=je)}for(var jt=0;jt<Le.length;++jt){var je=Le[jt];Et.push(ut(je[0])),je[1]>je[0]&&(je[1]+1>je[0]&&Et.push("-"),Et.push(ut(je[1])))}return Et.push("]"),Et.join("")}function vt(Ve){for(var Ue=Ve.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")),pt=Ue.length,Ut=[],Et=0,jt=0;Et<pt;++Et){var Ze=Ue[Et];if(Ze==="(")++jt;else if(Ze.charAt(0)==="\\"){var Be=+Ze.substring(1);Be&&(Be<=jt?Ut[Be]=-1:Ue[Et]=ut(Be))}}for(var Et=1;Et<Ut.length;++Et)Ut[Et]===-1&&(Ut[Et]=++te);for(var Et=0,jt=0;Et<pt;++Et){var Ze=Ue[Et];if(Ze==="(")++jt,Ut[jt]||(Ue[Et]="(?:");else if(Ze.charAt(0)==="\\"){var Be=+Ze.substring(1);Be&&Be<=jt&&(Ue[Et]="\\"+Ut[Be])}}for(var Et=0;Et<pt;++Et)Ue[Et]==="^"&&Ue[Et+1]!=="^"&&(Ue[Et]="");if(Ve.ignoreCase&&Q)for(var Et=0;Et<pt;++Et){var Ze=Ue[Et],Ye=Ze.charAt(0);Ze.length>=2&&Ye==="["?Ue[Et]=ht(Ze):Ye!=="\\"&&(Ue[Et]=Ze.replace(/[a-zA-Z]/g,function(He){var je=He.charCodeAt(0);return"["+String.fromCharCode(je&~32,je|32)+"]"}))}return Ue.join("")}for(var _t=[],ve=0,_e=le.length;ve<_e;++ve){var Ae=le[ve];if(Ae.global||Ae.multiline)throw new Error(""+Ae);_t.push("(?:"+vt(Ae)+")")}return new RegExp(_t.join("|"),J?"gi":"g")}function I(le,te){var Q=/(?:^|\s)nocode(?:\s|$)/,J=[],ve=0,_e=[],Ae=0;function Je(tt){var ut=tt.nodeType;if(ut==1){if(Q.test(tt.className))return;for(var ht=tt.firstChild;ht;ht=ht.nextSibling)Je(ht);var vt=tt.nodeName.toLowerCase();(vt==="br"||vt==="li")&&(J[Ae]=`
`,_e[Ae<<1]=ve++,_e[Ae++<<1|1]=tt)}else if(ut==3||ut==4){var _t=tt.nodeValue;_t.length&&(te?_t=_t.replace(/\r\n?/g,`
`):_t=_t.replace(/[ \t\r\n]+/g," "),J[Ae]=_t,_e[Ae<<1]=ve,ve+=_t.length,_e[Ae++<<1|1]=tt)}}return Je(le),{sourceCode:J.join("").replace(/\n$/,""),spans:_e}}function K(le,te,Q,J,ve){if(!Q)return;var _e={sourceNode:le,pre:1,langExtension:null,numberLines:null,sourceCode:Q,spans:null,basePos:te,decorations:null};J(_e),ve.push.apply(ve,_e.decorations)}var ee=/\S/;function he(le){for(var te=void 0,Q=le.firstChild;Q;Q=Q.nextSibling){var J=Q.nodeType;te=J===1?te?le:Q:J===3&&ee.test(Q.nodeValue)?le:te}return te===le?void 0:te}function de(le,te){var Q={},J;(function(){for(var Ae=le.concat(te),Je=[],tt={},ut=0,ht=Ae.length;ut<ht;++ut){var vt=Ae[ut],_t=vt[3];if(_t)for(var Ve=_t.length;--Ve>=0;)Q[_t.charAt(Ve)]=vt;var Ue=vt[1],pt=""+Ue;tt.hasOwnProperty(pt)||(Je.push(Ue),tt[pt]=null)}Je.push(/[\0-\uffff]/),J=F(Je)})();var ve=te.length,_e=function(Ae){for(var Je=Ae.sourceCode,tt=Ae.basePos,ut=Ae.sourceNode,ht=[tt,T],vt=0,_t=Je.match(J)||[],Ve={},Ue=0,pt=_t.length;Ue<pt;++Ue){var Ut=_t[Ue],Et=Ve[Ut],jt=void 0,Ze;if(typeof Et=="string")Ze=!1;else{var Be=Q[Ut.charAt(0)];if(Be)jt=Ut.match(Be[1]),Et=Be[0];else{for(var Ye=0;Ye<ve;++Ye)if(Be=te[Ye],jt=Ut.match(Be[1]),jt){Et=Be[0];break}jt||(Et=T)}Ze=Et.length>=5&&Et.substring(0,5)==="lang-",Ze&&!(jt&&typeof jt[1]=="string")&&(Ze=!1,Et=N),Ze||(Ve[Ut]=Et)}var Ce=vt;if(vt+=Ut.length,!Ze)ht.push(tt+Ce,Et);else{var Le=jt[1],He=Ut.indexOf(Le),je=He+Le.length;jt[2]&&(je=Ut.length-jt[2].length,He=je-Le.length);var Ke=Et.substring(5);K(ut,tt+Ce,Ut.substring(0,He),_e,ht),K(ut,tt+Ce+He,Le,se(Ke,Le),ht),K(ut,tt+Ce+je,Ut.substring(je),_e,ht)}}Ae.decorations=ht};return _e}function Se(le){var te=[],Q=[];le.tripleQuotedStrings?te.push([_,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):le.multiLineStrings?te.push([_,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):te.push([_,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),le.verbatimStrings&&Q.push([_,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var J=le.hashComments;J&&(le.cStyleComments?(J>1?te.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):te.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Q.push([_,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):te.push([R,/^#[^\r\n]*/,null,"#"])),le.cStyleComments&&(Q.push([R,/^\/\/[^\r\n]*/,null]),Q.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=le.regexLiterals;if(ve){var _e=ve>1?"":`
\r`,Ae=_e?".":"[\\S\\s]",Je="/(?=[^/*"+_e+"])(?:[^/\\x5B\\x5C"+_e+"]|\\x5C"+Ae+"|\\x5B(?:[^\\x5C\\x5D"+_e+"]|\\x5C"+Ae+")*(?:\\x5D|$))+/";Q.push(["lang-regex",RegExp("^"+W+"("+Je+")")])}var tt=le.types;tt&&Q.push([x,tt]);var ut=(""+le.keywords).replace(/^ | $/g,"");ut.length&&Q.push([P,new RegExp("^(?:"+ut.replace(/[\s,]+/g,"|")+")\\b"),null]),te.push([T,/^\s+/,null,` \r
\xA0`]);var ht="^.[^\\s\\w.$@'\"`/\\\\]*";return le.regexLiterals&&(ht+="(?!s*/)"),Q.push([S,/^@[a-z_$][a-z_$@0-9]*/i,null],[x,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[T,/^[a-z_$][a-z_$@0-9]*/i,null],[S,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[T,/^\\[\s\S]?/,null],[v,new RegExp(ht),null]),de(te,Q)}var Te=Se({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(le,te,Q){for(var J=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,_e=le.ownerDocument,Ae=_e.createElement("li");le.firstChild;)Ae.appendChild(le.firstChild);var Je=[Ae];function tt(Ue){var pt=Ue.nodeType;if(pt==1&&!J.test(Ue.className))if(Ue.nodeName==="br")ut(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var Ut=Ue.firstChild;Ut;Ut=Ut.nextSibling)tt(Ut);else if((pt==3||pt==4)&&Q){var Et=Ue.nodeValue,jt=Et.match(ve);if(jt){var Ze=Et.substring(0,jt.index);Ue.nodeValue=Ze;var Be=Et.substring(jt.index+jt[0].length);if(Be){var Ye=Ue.parentNode;Ye.insertBefore(_e.createTextNode(Be),Ue.nextSibling)}ut(Ue),Ze||Ue.parentNode.removeChild(Ue)}}}function ut(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function pt(jt,Ze){var Be=Ze?jt.cloneNode(!1):jt,Ye=jt.parentNode;if(Ye){var Ce=pt(Ye,1),Le=jt.nextSibling;Ce.appendChild(Be);for(var He=Le;He;He=Le)Le=He.nextSibling,Ce.appendChild(He)}return Be}for(var Ut=pt(Ue.nextSibling,0),Et;(Et=Ut.parentNode)&&Et.nodeType===1;)Ut=Et;Je.push(Ut)}for(var ht=0;ht<Je.length;++ht)tt(Je[ht]);te===(te|0)&&Je[0].setAttribute("value",te);var vt=_e.createElement("ol");vt.className="linenums";for(var _t=Math.max(0,te-1|0)||0,ht=0,Ve=Je.length;ht<Ve;++ht)Ae=Je[ht],Ae.className="L"+(ht+_t)%10,Ae.firstChild||Ae.appendChild(_e.createTextNode("\xA0")),vt.appendChild(Ae);le.appendChild(vt)}function be(le){var te=/\bMSIE\s(\d+)/.exec(navigator.userAgent);te=te&&+te[1]<=8;var Q=/\n/g,J=le.sourceCode,ve=J.length,_e=0,Ae=le.spans,Je=Ae.length,tt=0,ut=le.decorations,ht=ut.length,vt=0;ut[ht]=ve;var _t,Ve;for(Ve=_t=0;Ve<ht;)ut[Ve]!==ut[Ve+2]?(ut[_t++]=ut[Ve++],ut[_t++]=ut[Ve++]):Ve+=2;for(ht=_t,Ve=_t=0;Ve<ht;){for(var Ue=ut[Ve],pt=ut[Ve+1],Ut=Ve+2;Ut+2<=ht&&ut[Ut+1]===pt;)Ut+=2;ut[_t++]=Ue,ut[_t++]=pt,Ve=Ut}ht=ut.length=_t;var Et=le.sourceNode,jt="";Et&&(jt=Et.style.display,Et.style.display="none");try{for(var Ze=null;tt<Je;){var Be=Ae[tt],Ye=Ae[tt+2]||ve,Ce=ut[vt+2]||ve,Ut=Math.min(Ye,Ce),Le=Ae[tt+1],He;if(Le.nodeType!==1&&(He=J.substring(_e,Ut))){te&&(He=He.replace(Q,"\r")),Le.nodeValue=He;var je=Le.ownerDocument,Ke=je.createElement("span");Ke.className=ut[vt+1];var it=Le.parentNode;it.replaceChild(Ke,Le),Ke.appendChild(Le),_e<Ye&&(Ae[tt+1]=Le=je.createTextNode(J.substring(Ut,Ye)),it.insertBefore(Le,Ke.nextSibling))}_e=Ut,_e>=Ye&&(tt+=2),_e>=Ce&&(vt+=2)}}finally{Et&&(Et.style.display=jt)}}var ye={};function ue(le,te){for(var Q=te.length;--Q>=0;){var J=te[Q];ye.hasOwnProperty(J)?m.console&&console.warn("cannot override language handler %s",J):ye[J]=le}}function se(le,te){return le&&ye.hasOwnProperty(le)||(le=/^\s*</.test(te)?"default-markup":"default-code"),ye[le]}ue(Te,["default-code"]),ue(de([],[[T,/^[^<?]+/],[L,/^<!\w[^>]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[v,/^(?:<[%?]|[%?]>)/],["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([[T,/^[\s]+/,null,` \r
`],[H,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[U,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[V,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[v,/^[=<>\/]+/],["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([],[[H,/^[\s\S]+/]]),["uq.val"]),ue(Se({keywords:u,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ue(Se({keywords:"null,true,false"}),["json"]),ue(Se({keywords:i,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ue(Se({keywords:n,cStyleComments:!0}),["java"]),ue(Se({keywords:l,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Se({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Se({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Se({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Se({keywords:c,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Se({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(de([],[[_,/^[\s\S]+/]]),["regex"]);function $(le){var te=le.langExtension;try{var Q=I(le.sourceNode,le.pre),J=Q.sourceCode;le.sourceCode=J,le.spans=Q.spans,le.basePos=0,se(te,J)(le),be(le)}catch(ve){m.console&&console.log(ve&&ve.stack||ve)}}function me(le,te,Q){var J=Q||!1,ve=te||null,_e=document.createElement("div");_e.innerHTML="<pre>"+le+"</pre>",_e=_e.firstChild,J&&ce(_e,J,!0);var Ae={langExtension:ve,numberLines:J,sourceNode:_e,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return $(Ae),_e.innerHTML}function re(le,te){var Q=te||document.body,J=Q.ownerDocument||document;function ve(Be){return Q.getElementsByTagName(Be)}for(var _e=[ve("pre"),ve("code"),ve("xmp")],Ae=[],Je=0;Je<_e.length;++Je)for(var tt=0,ut=_e[Je].length;tt<ut;++tt)Ae.push(_e[Je][tt]);_e=null;var ht=Date;ht.now||(ht={now:function(){return+new Date}});var vt=0,_t=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ve=/\bprettyprint\b/,Ue=/\bprettyprinted\b/,pt=/pre|xmp/i,Ut=/^code$/i,Et=/^(?:pre|code|xmp)$/i,jt={};function Ze(){for(var Be=m.PR_SHOULD_USE_CONTINUATION?ht.now()+250:Infinity;vt<Ae.length&&ht.now()<Be;vt++){for(var Ye=Ae[vt],Ce=jt,Le=Ye;Le=Le.previousSibling;){var He=Le.nodeType,je=(He===7||He===8)&&Le.nodeValue;if(je?!/^\??prettify\b/.test(je):He!==3||/\S/.test(Le.nodeValue))break;if(je){Ce={},je.replace(/\b(\w+)=([\w:.%+-]+)/g,function(ft,bt,Dt){Ce[bt]=Dt});break}}var Ke=Ye.className;if((Ce!==jt||Ve.test(Ke))&&!Ue.test(Ke)){for(var it=!1,Ct=Ye.parentNode;Ct;Ct=Ct.parentNode){var Ft=Ct.tagName;if(Et.test(Ft)&&Ct.className&&Ve.test(Ct.className)){it=!0;break}}if(!it){Ye.className+=" prettyprinted";var Jt=Ce.lang;if(!Jt){Jt=Ke.match(_t);var Ht;!Jt&&(Ht=he(Ye))&&Ut.test(Ht.tagName)&&(Jt=Ht.className.match(_t)),Jt&&(Jt=Jt[1])}var Ot;if(pt.test(Ye.tagName))Ot=1;else{var Fe=Ye.currentStyle,at=J.defaultView,ot=Fe?Fe.whiteSpace:at&&at.getComputedStyle?at.getComputedStyle(Ye,null).getPropertyValue("white-space"):0;Ot=ot&&ot.substring(0,3)==="pre"}var Pe=Ce.linenums;(Pe=Pe==="true"||+Pe)||(Pe=Ke.match(/\blinenums\b(?::(\d+))?/),Pe=Pe?Pe[1]&&Pe[1].length?+Pe[1]:!0:!1),Pe&&ce(Ye,Pe,Ot);var Qe={langExtension:Jt,sourceNode:Ye,numberLines:Pe,pre:Ot,sourceCode:null,basePos:null,spans:null,decorations:null};$(Qe)}}}vt<Ae.length?m.setTimeout(Ze,250):typeof le=="function"&&le()}Ze()}var ae=m.PR={createSimpleLexer:de,registerLangHandler:ue,sourceDecorator:Se,PR_ATTRIB_NAME:V,PR_ATTRIB_VALUE:H,PR_COMMENT:R,PR_DECLARATION:L,PR_KEYWORD:P,PR_LITERAL:S,PR_NOCODE:D,PR_PLAIN:T,PR_PUNCTUATION:v,PR_SOURCE:N,PR_STRING:_,PR_TAG:U,PR_TYPE:x,prettyPrintOne:A?m.prettyPrintOne=me:C=me,prettyPrint:O=A?m.prettyPrint=re:O=re},Oe=m.define;typeof Oe=="function"&&Oe.amd&&Oe("google-code-prettify",[],function(){return ae})})()},SLjR:function(k,z,o){},SMhR:function(k,z){k.exports="data:image/png;base64,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"},Se0u:function(k,z,o){},T8No:function(k,z,o){"use strict";o.d(z,"a",function(){return O}),o.d(z,"e",function(){return m}),o.d(z,"c",function(){return v}),o.d(z,"b",function(){return T}),o.d(z,"d",function(){return U}),o.d(z,"f",function(){return V});var M=o("MNsG"),g=o("N0LK"),A=o("Cg/j");let b=M.k||"";const y=new Map;y.set("false",!1),y.set("true",!0),y.set("isMac",M.f),y.set("isLinux",M.d),y.set("isWindows",M.i),y.set("isWeb",M.h),y.set("isMacNative",M.f&&!M.h),y.set("isEdge",b.indexOf("Edg/")>=0),y.set("isFirefox",b.indexOf("Firefox")>=0),y.set("isChrome",b.indexOf("Chrome")>=0),y.set("isSafari",b.indexOf("Safari")>=0);const C=Object.prototype.hasOwnProperty;class O{static has(D){return u.create(D)}static equals(D,W){return n.create(D,W)}static regex(D,W){return _.create(D,W)}static not(D){return h.create(D)}static and(...D){return x.create(D,null)}static or(...D){return S.create(D,null,!0)}static deserialize(D,W=!1){return D?this._deserializeOrExpression(D,W):void 0}static _deserializeOrExpression(D,W){let F=D.split("||");return S.create(F.map(I=>this._deserializeAndExpression(I,W)),null,!0)}static _deserializeAndExpression(D,W){let F=D.split("&&");return x.create(F.map(I=>this._deserializeOne(I,W)),null)}static _deserializeOne(D,W){if(D=D.trim(),D.indexOf("!=")>=0){let F=D.split("!=");return c.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("==")>=0){let F=D.split("==");return n.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("=~")>=0){let F=D.split("=~");return _.create(F[0].trim(),this._deserializeRegexValue(F[1],W))}if(D.indexOf(" in ")>=0){let F=D.split(" in ");return i.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(D)){const F=D.split(">=");return l.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(D)){const F=D.split(">");return s.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(D)){const F=D.split("<=");return E.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(D)){const F=D.split("<");return w.create(F[0].trim(),F[1].trim())}return/^\!\s*/.test(D)?h.create(D.substr(1).trim()):u.create(D)}static _deserializeValue(D,W){if(D=D.trim(),D==="true")return!0;if(D==="false")return!1;let F=/^'([^']*)'$/.exec(D);return F?F[1].trim():D}static _deserializeRegexValue(D,W){if(Object(g.C)(D)){if(W)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let F=D.indexOf("/"),I=D.lastIndexOf("/");if(F===I||F<0){if(W)throw new Error(`bad regexp-value '${D}', missing /-enclosure`);return console.warn(`bad regexp-value '${D}', missing /-enclosure`),null}let K=D.slice(F+1,I),ee=D[I+1]==="i"?"i":"";try{return new RegExp(K,ee)}catch(he){if(W)throw new Error(`bad regexp-value '${D}', parse error: ${he}`);return console.warn(`bad regexp-value '${D}', parse error: ${he}`),null}}}function m(D,W){const F=D?D.substituteConstants():void 0,I=W?W.substituteConstants():void 0;return!F&&!I?!0:!F||!I?!1:F.equals(I)}function e(D,W){return D.cmp(W)}class f{constructor(){this.type=0}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!1}serialize(){return"false"}keys(){return[]}negate(){return a.INSTANCE}}f.INSTANCE=new f;class a{constructor(){this.type=1}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!0}serialize(){return"true"}keys(){return[]}negate(){return f.INSTANCE}}a.INSTANCE=new a;class u{constructor(D,W){this.key=D,this.negated=W,this.type=2}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?a.INSTANCE:f.INSTANCE:new u(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:L(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?a.INSTANCE:f.INSTANCE:this}evaluate(D){return!!D.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=h.create(this.key,this)),this.negated}}class n{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=4}static create(D,W,F=null){if(typeof W=="boolean")return W?u.create(D,F):h.create(D,F);const I=y.get(D);if(typeof I=="boolean"){const K=I?"true":"false";return W===K?a.INSTANCE:f.INSTANCE}return new n(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?a.INSTANCE:f.INSTANCE}return this}evaluate(D){return D.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class i{constructor(D,W){this.key=D,this.valueKey=W,this.type=10,this.negated=null}static create(D,W){return new i(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.valueKey,D.key,D.valueKey)}equals(D){return D.type===this.type?this.key===D.key&&this.valueKey===D.valueKey:!1}substituteConstants(){return this}evaluate(D){const W=D.getValue(this.valueKey),F=D.getValue(this.key);return Array.isArray(W)?W.indexOf(F)>=0:typeof F=="string"&&typeof W=="object"&&W!==null?C.call(W,F):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=r.create(this)),this.negated}}class r{constructor(D){this._actual=D,this.type=11}static create(D){return new r(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class c{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=5}static create(D,W,F=null){if(typeof W=="boolean")return W?h.create(D,F):u.create(D,F);const I=y.get(D);if(typeof I=="boolean"){const K=I?"true":"false";return W===K?f.INSTANCE:a.INSTANCE}return new c(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?f.INSTANCE:a.INSTANCE}return this}evaluate(D){return D.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=n.create(this.key,this.value,this)),this.negated}}class h{constructor(D,W){this.key=D,this.negated=W,this.type=3}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?f.INSTANCE:a.INSTANCE:new h(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:L(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?f.INSTANCE:a.INSTANCE:this}evaluate(D){return!D.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this)),this.negated}}function d(D,W){if(typeof D=="string"){const F=parseFloat(D);isNaN(F)||(D=F)}return typeof D=="string"||typeof D=="number"?W(D):f.INSTANCE}class s{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=12}static create(D,W,F=null){return d(W,I=>new s(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class l{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=13}static create(D,W,F=null){return d(W,I=>new l(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class w{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=14}static create(D,W,F=null){return d(W,I=>new w(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this.value,this)),this.negated}}class E{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=15}static create(D,W,F=null){return d(W,I=>new E(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this.value,this)),this.negated}}class _{constructor(D,W){this.key=D,this.regexp=W,this.type=7,this.negated=null}static create(D,W){return new _(D,W)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.key<D.key)return-1;if(this.key>D.key)return 1;const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return W<F?-1:W>F?1:0}equals(D){if(D.type===this.type){const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return this.key===D.key&&W===F}return!1}substituteConstants(){return this}evaluate(D){let W=D.getValue(this.key);return this.regexp?this.regexp.test(W):!1}serialize(){const D=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${D}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this)),this.negated}}class P{constructor(D){this._actual=D,this.type=8}static create(D){return new P(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(D){let W=null;for(let F=0,I=D.length;F<I;F++){const K=D[F].substituteConstants();if(D[F]!==K&&W===null){W=[];for(let ee=0;ee<F;ee++)W[ee]=D[ee]}W!==null&&(W[F]=K)}return W===null?D:W}class x{constructor(D,W){this.expr=D,this.negated=W,this.type=6}static create(D,W){return x._normalizeArr(D,W)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.expr.length<D.expr.length)return-1;if(this.expr.length>D.expr.length)return 1;for(let W=0,F=this.expr.length;W<F;W++){const I=e(this.expr[W],D.expr[W]);if(I!==0)return I}return 0}equals(D){if(D.type===this.type){if(this.expr.length!==D.expr.length)return!1;for(let W=0,F=this.expr.length;W<F;W++)if(!this.expr[W].equals(D.expr[W]))return!1;return!0}return!1}substituteConstants(){const D=R(this.expr);return D===this.expr?this:x.create(D,this.negated)}evaluate(D){for(let W=0,F=this.expr.length;W<F;W++)if(!this.expr[W].evaluate(D))return!1;return!0}static _normalizeArr(D,W){const F=[];let I=!1;for(const K of D){if(!K)continue;if(K.type===1){I=!0;continue}if(K.type===0)return f.INSTANCE;if(K.type===6){F.push(...K.expr);continue}F.push(K)}if(F.length===0&&I)return a.INSTANCE;if(F.length===0)return;if(F.length===1)return F[0];F.sort(e);for(let K=1;K<F.length;K++)F[K-1].equals(F[K])&&(F.splice(K,1),K--);if(F.length===1)return F[0];for(;F.length>1;){const K=F[F.length-1];if(K.type!==9)break;F.pop();const ee=F.pop(),he=F.length===0,de=S.create(K.expr.map(Se=>x.create([Se,ee],null)),null,he);de&&(F.push(de),F.sort(e))}return F.length===1?F[0]:new x(F,W)}serialize(){return this.expr.map(D=>D.serialize()).join(" && ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){const D=[];for(let W of this.expr)D.push(W.negate());this.negated=S.create(D,this,!0)}return this.negated}}class S{constructor(D,W){this.expr=D,this.negated=W,this.type=9}static create(D,W,F){return S._normalizeArr(D,W,F)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.expr.length<D.expr.length)return-1;if(this.expr.length>D.expr.length)return 1;for(let W=0,F=this.expr.length;W<F;W++){const I=e(this.expr[W],D.expr[W]);if(I!==0)return I}return 0}equals(D){if(D.type===this.type){if(this.expr.length!==D.expr.length)return!1;for(let W=0,F=this.expr.length;W<F;W++)if(!this.expr[W].equals(D.expr[W]))return!1;return!0}return!1}substituteConstants(){const D=R(this.expr);return D===this.expr?this:S.create(D,this.negated,!1)}evaluate(D){for(let W=0,F=this.expr.length;W<F;W++)if(this.expr[W].evaluate(D))return!0;return!1}static _normalizeArr(D,W,F){let I=[],K=!1;if(D){for(let ee=0,he=D.length;ee<he;ee++){const de=D[ee];if(!de)continue;if(de.type===0){K=!0;continue}if(de.type===1)return a.INSTANCE;if(de.type===9){I=I.concat(de.expr);continue}I.push(de)}if(I.length===0&&K)return f.INSTANCE;I.sort(e)}if(I.length===0)return;if(I.length===1)return I[0];for(let ee=1;ee<I.length;ee++)I[ee-1].equals(I[ee])&&(I.splice(ee,1),ee--);if(I.length===1)return I[0];if(F){for(let ee=0;ee<I.length;ee++)for(let he=ee+1;he<I.length;he++)V(I[ee],I[he])&&(I.splice(he,1),he--);if(I.length===1)return I[0]}return new S(I,W)}serialize(){return this.expr.map(D=>D.serialize()).join(" || ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){let D=[];for(let W of this.expr)D.push(W.negate());for(;D.length>1;){const W=D.shift(),F=D.shift(),I=[];for(const ee of H(W))for(const he of H(F))I.push(x.create([ee,he],null));const K=D.length===0;D.unshift(S.create(I,null,K))}this.negated=D[0]}return this.negated}}class v extends u{constructor(D,W,F){super(D,null);this._defaultValue=W,typeof F=="object"?v._info.push(Object.assign(Object.assign({},F),{key:D})):F!==!0&&v._info.push({key:D,description:F,type:W!=null?typeof W:void 0})}static all(){return v._info.values()}bindTo(D){return D.createKey(this.key,this._defaultValue)}getValue(D){return D.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(D){return n.create(this.key,D)}}v._info=[];const T=Object(A.c)("contextKeyService"),U="setContext";function L(D,W){return D<W?-1:D>W?1:0}function N(D,W,F,I){return D<F?-1:D>F?1:W<I?-1:W>I?1:0}function V(D,W){if(W.type===6&&D.type!==9&&D.type!==6){for(const K of W.expr)if(D.equals(K))return!0}const F=D.negate(),I=H(F).concat(H(W));I.sort(e);for(let K=0;K<I.length;K++){const ee=I[K],he=ee.negate();for(let de=K+1;de<I.length;de++){const Se=I[de];if(he.equals(Se))return!0}}return!1}function H(D){return D.type===9?D.expr:[D]}},TGq3:function(k,z,o){k.exports=o.p+"static/lockclose.365036e8.svg"},TXwP:function(k,z,o){var M,g;(function(){var A;(function(){"use strict";var y=[,,function(e){function f(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=[]}f.prototype.clone_empty=function(){var n=new f(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},f.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},f.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},f.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))},f.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)},f.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},f.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},f.prototype.is_empty=function(){return this.__items.length===0},f.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},f.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},f.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},f.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},f.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},f.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},f.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 a(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}a.prototype.get_indent_size=function(n,i){var r=this.__base_string_length;return i=i||0,n<0&&(r=0),r+=n*this.__indent_size,r+=i,r},a.prototype.get_indent_string=function(n,i){var r=this.__base_string;return i=i||0,n<0&&(n=0,r=""),i+=n*this.__indent_size,this.__ensure_cache(i),r+=this.__cache[i],r},a.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var n=this.__cache.length,i=0,r="";this.__indent_size&&n>=this.__indent_size&&(i=Math.floor(n/this.__indent_size),n-=i*this.__indent_size,r=new Array(i+1).join(this.__indent_string)),n&&(r+=new Array(n+1).join(" ")),this.__cache.push(r)};function u(n,i){this.__indent_cache=new a(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 f(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}u.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},u.prototype.get_line_number=function(){return this.__lines.length},u.prototype.get_indent_string=function(n,i){return this.__indent_cache.get_indent_string(n,i)},u.prototype.get_indent_size=function(n,i){return this.__indent_cache.get_indent_size(n,i)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.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 r=this.__lines.join(`
`);return n!==`
`&&(r=r.replace(/[\n]/g,n)),r},u.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},u.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)},u.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},u.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()},u.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(" "))},u.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()},u.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},u.prototype.just_added_newline=function(){return this.current_line.is_empty()},u.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},u.prototype.ensure_empty_line_above=function(n,i){for(var r=this.__lines.length-2;r>=0;){var c=this.__lines[r];if(c.is_empty())break;if(c.item(0).indexOf(n)!==0&&c.item(-1)!==i){this.__lines.splice(r+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=u},,,,function(e){function f(n,i){this.raw_options=a(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"])}f.prototype._get_array=function(n,i){var r=this.raw_options[n],c=i||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(c=r.concat()):typeof r=="string"&&(c=r.split(/[^a-zA-Z0-9_\/\-]+/)),c},f.prototype._get_boolean=function(n,i){var r=this.raw_options[n],c=r===void 0?!!i:!!r;return c},f.prototype._get_characters=function(n,i){var r=this.raw_options[n],c=i||"";return typeof r=="string"&&(c=r.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),c},f.prototype._get_number=function(n,i){var r=this.raw_options[n];i=parseInt(i,10),isNaN(i)&&(i=0);var c=parseInt(r,10);return isNaN(c)&&(c=i),c},f.prototype._get_selection=function(n,i,r){var c=this._get_selection_list(n,i,r);if(c.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 c[0]},f.prototype._get_selection_list=function(n,i,r){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(r=r||[i[0]],!this._is_valid_selection(r,i))throw new Error("Invalid Default Value!");var c=this._get_array(n,r);if(!this._is_valid_selection(c,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 c},f.prototype._is_valid_selection=function(n,i){return n.length&&i.length&&!n.some(function(r){return i.indexOf(r)===-1})};function a(n,i){var r={};n=u(n);var c;for(c in n)c!==i&&(r[c]=n[c]);if(i&&n[i])for(c in n[i])r[c]=n[i][c];return r}function u(n){var i={},r;for(r in n){var c=r.replace(/-/g,"_");i[c]=n[r]}return i}e.exports.Options=f,e.exports.normalizeOpts=u,e.exports.mergeOpts=a},,function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function a(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__input.charAt(this.__position),this.__position+=1),u},a.prototype.peek=function(u){var n=null;return u=u||0,u+=this.__position,u>=0&&u<this.__input_length&&(n=this.__input.charAt(u)),n},a.prototype.__match=function(u,n){u.lastIndex=n;var i=u.exec(this.__input);return i&&!(f&&u.sticky)&&(i.index!==n&&(i=null)),i},a.prototype.test=function(u,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(u,n):!1},a.prototype.testChar=function(u,n){var i=this.peek(n);return u.lastIndex=0,i!==null&&u.test(i)},a.prototype.match=function(u){var n=this.__match(u,this.__position);return n?this.__position+=n[0].length:n=null,n},a.prototype.read=function(u,n,i){var r="",c;return u&&(c=this.match(u),c&&(r+=c[0])),n&&(c||!u)&&(r+=this.readUntil(n,i)),r},a.prototype.readUntil=function(u,n){var i="",r=this.__position;u.lastIndex=this.__position;var c=u.exec(this.__input);return c?(r=c.index,n&&(r+=c[0].length)):r=this.__input_length,i=this.__input.substring(this.__position,r),this.__position=r,i},a.prototype.readUntilAfter=function(u){return this.readUntil(u,!0)},a.prototype.get_regexp=function(u,n){var i=null,r="g";return n&&f&&(r="y"),typeof u=="string"&&u!==""?i=new RegExp(u,r):u&&(i=new RegExp(u.source,r)),i},a.prototype.get_literal_regexp=function(u){return RegExp(u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(u){var n=this.__position,i=this.readUntilAfter(u);return this.__position=n,i},a.prototype.lookBack=function(u){var n=this.__position-1;return n>=u.length&&this.__input.substring(n-u.length,n).toLowerCase()===u},e.exports.InputScanner=a},,,,,function(e){function f(a,u){a=typeof a=="string"?a:a.source,u=typeof u=="string"?u:u.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+u,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+u,"g")}f.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var u={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(a);n;)u[n[1]]=n[2],n=this.__directive_pattern.exec(a);return u},f.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},,function(e,f,a){var u=a(16).Beautifier,n=a(17).Options;function i(r,c){var h=new u(r,c);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new n}},function(e,f,a){var u=a(17).Options,n=a(2).Output,i=a(8).InputScanner,r=a(13).Directives,c=new r(/\/\*/,/\*\//),h=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,s=/\s/,l=/(?:\s|\n)+/g,w=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,E=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function _(P,R){this._source_text=P||"",this._options=new u(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"]}_.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},_.prototype.eatWhitespace=function(P){for(var R=s.test(this._input.peek()),x=0;s.test(this._input.peek());)this._ch=this._input.next(),P&&this._ch===`
`&&((x===0||x<this._options.max_preserve_newlines)&&(x++,this._output.add_new_line(!0)));return R},_.prototype.foundNestedPseudoClass=function(){for(var P=0,R=1,x=this._input.peek(R);x;){if(x==="{")return!0;if(x==="(")P+=1;else if(x===")"){if(P===0)return!1;P-=1}else if(x===";"||x==="}")return!1;R++,x=this._input.peek(R)}return!1},_.prototype.print_string=function(P){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(P)},_.prototype.preserveSingleSpace=function(P){P&&(this._output.space_before_token=!0)},_.prototype.indent=function(){this._indentLevel++},_.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},_.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,R=this._options.eol;R==="auto"&&(R=`
`,P&&h.test(P||"")&&(R=P.match(h)[0])),P=P.replace(d,`
`);var x=P.match(/^[\t ]*/)[0];this._output=new n(this._options,x),this._input=new i(P),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var S=0,v=!1,T=!1,U=!1,L=!1,N=!1,V=!1,H=this._ch,D=!1,W,F,I;W=this._input.read(l),F=W!=="",I=H,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),H=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var K=this._input.read(w),ee=c.get_directives(K);ee&&ee.ignore==="start"&&(K+=c.readIgnored(this._input)),this.print_string(K),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(E)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(F),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var he=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);he.match(/[ :]$/)&&(he=this.eatString(": ").replace(/\s$/,""),this.print_string(he),this._output.space_before_token=!0),he=he.replace(/\s$/,""),he==="extend"?L=!0:he==="import"&&(N=!0),he in this.NESTED_AT_RULE?(this._nestedLevel+=1,he in this.CONDITIONAL_GROUP_RULE&&(U=!0)):!v&&S===0&&he.indexOf(":")!==-1&&(T=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(F),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")T&&(T=!1,this.outdent()),U?(U=!1,v=this._indentLevel>=this._nestedLevel):v=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&v&&(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)):(I==="("?this._output.space_before_token=!1:I!==","&&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(),I==="{"&&this._output.trim(!0),N=!1,L=!1,T&&(this.outdent(),T=!1),this.print_string(this._ch),v=!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])){D=!0;break}(v||U)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!L&&S===0?(this.print_string(":"),T||(T=!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 Se=I==='"'||I==="'";this.preserveSingleSpace(Se||F),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,S===0?(T&&(this.outdent(),T=!1),L=!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(),S++,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(")")),S&&(S--,this.outdent()));else{var Te=!1;this._input.lookBack("with")&&(Te=!0),this.preserveSingleSpace(F||Te),this.print_string(this._ch),T&&I==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),V=!0):(this.eatWhitespace(),S++,this.indent())}else if(this._ch===")")S&&(S--,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&&(!T||V)&&S===0&&!N&&!L?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!T&&S===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&&s.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(F),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),s.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=I==='"'||I==="'";this.preserveSingleSpace(ce||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&D&&this._output.add_new_line()}var be=this._output.get_code(R);return be},e.exports.Beautifier=_},function(e,f,a){var u=a(6).Options;function n(i){u.call(this,i,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var h=0;h<c.length;h++)c[h]!=="expand"?this.brace_style="collapse":this.brace_style=c[h]}n.prototype=new u,e.exports.Options=n}],C={};function O(e){var f=C[e];if(f!==void 0)return f.exports;var a=C[e]={exports:{}};return y[e](a,a.exports,O),a.exports}var m=O(15);A=m})();var b=A;!(M=[],g=function(){return{css_beautify:b}}.apply(z,M),g!==void 0&&(k.exports=g))})()},UGPy:function(k,z,o){k.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(k,z,o){k.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},"Ufr+":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACL0lEQVRIS72WvU9TURTAf4e+qBUritRXoYkaB0w0alz4B3RQExTSbjpooouiddGVxf0hTjKQ+MkANhiVwYTNwcHFRuNgdIHGYiMmVWnja6+5La8ttq99Vesd3/n4nXPuOec+ocHpu6nCecVJFCcUHBDo0eoK0gKvEZ76hNnFy7Lg5kbqCXrGVa8vzyhwVsBoFIQCG5jM+xhNj0jyd90agGmpQVHcQwg0clwjU2SUcDoVk8fVsjUAc0yNiMICOlpyXlEuKCGWuiLjzqcyoBg5xP/CueOzoGDIyaQI0DU3bN61XBa3NBUZ22CvvpMiwLTUbYHzf1gWDpmw9B2S3yoeFEykYnJBdCvaBT4265Z6cEMgNgBn9sPQNHz4ugZgGx3sltCYuojiVqvRd/th4jjsC0J0BhKf63gQLknIUs+AY60A+rfB3UEIboTIDLz65Go9J6alFgT6vAIOboeHp2CrH64+h6m37pYKFnUGWWB9tZrfAOso5Gy4Ng/ZfEl62ISpYQisgzsJuD7fNKxcXUCoE+JR2NUFiSU49wQ2GDAbBV3798tw5D7kVsENMDnXEoUDEI9AeDN8WYGsDb0B0FM0PA0va7ZOLcYpkesl7+wqQXZsqhh7LI1jMNe0TfdsKUGCnfDjJwxMQnqlae1LCrpNvQxafzc8isCDN3DjhTfneo0XB83rqtADlczAsu45D6e8Kv7LslvNon3r2sm4rQ9OGdLOJ9OBtPXRr26Qf/Hb8gvtaezbqqd4vgAAAABJRU5ErkJggg=="},UqFu:function(k,z,o){"use strict";o.d(z,"a",function(){return M});var M=function(A){var b=document.createElement("textarea");return b.value=A,b.value}},Vhoy:function(k,z,o){"use strict";o.d(z,"d",function(){return b}),o.d(z,"e",function(){return y}),o.d(z,"c",function(){return C}),o.d(z,"b",function(){return O}),o.d(z,"a",function(){return m});var M=o("MI8n");class g{constructor(){this._icons=new Map,this._onDidRegister=new M.b}add(e){const f=this._icons.get(e.id);f?e.description?f.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const A=new g,b=A;function y(e,f){return new O(e,f)}function C(e){return e?e.replace(/\$\((.*?)\)/g,(f,a)=>` ${a} `).trim():""}class O{constructor(e,f,a){this.id=e,this.definition=f,this.description=a,A.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var m;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const f=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function a(i){if(i instanceof O)return["codicon","codicon-"+i.id];const r=f.exec(i.id);if(!r)return a(O.error);let[,c,h]=r;const d=["codicon","codicon-"+c];return h&&d.push("codicon-modifier-"+h.substr(1)),d}e.asClassNameArray=a;function u(i){return a(i).join(" ")}e.asClassName=u;function n(i){return"."+a(i).join(".")}e.asCSSSelector=n})(m||(m={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(O||(O={}))},"VrN/":function(k,z,o){(function(M,g){k.exports=g()})(this,function(){"use strict";var M=navigator.userAgent,g=navigator.platform,A=/gecko\/\d/i.test(M),b=/MSIE \d/.test(M),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(M),C=/Edge\/(\d+)/.exec(M),O=b||y||C,m=O&&(b?document.documentMode||6:+(C||y)[1]),e=!C&&/WebKit\//.test(M),f=e&&/Qt\/\d+\.\d+/.test(M),a=!C&&/Chrome\//.test(M),u=/Opera\//.test(M),n=/Apple Computer/.test(navigator.vendor),i=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(M),r=/PhantomJS/.test(M),c=!C&&/AppleWebKit/.test(M)&&/Mobile\/\w+/.test(M),h=/Android/.test(M),d=c||h||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(M),s=c||/Mac/.test(g),l=/\bCrOS\b/.test(M),w=/win/i.test(g),E=u&&M.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(u=!1,e=!0);var _=s&&(f||u&&(E==null||E<12.11)),P=A||O&&m>=9;function R(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var x=function(t,p){var B=t.className,j=R(p).exec(B);if(j){var G=B.slice(j.index+j[0].length);t.className=B.slice(0,j.index)+(G?j[1]+G:"")}};function S(t){for(var p=t.childNodes.length;p>0;--p)t.removeChild(t.firstChild);return t}function v(t,p){return S(t).appendChild(p)}function T(t,p,B,j){var G=document.createElement(t);if(B&&(G.className=B),j&&(G.style.cssText=j),typeof p=="string")G.appendChild(document.createTextNode(p));else if(p)for(var ne=0;ne<p.length;++ne)G.appendChild(p[ne]);return G}function U(t,p,B,j){var G=T(t,p,B,j);return G.setAttribute("role","presentation"),G}var L;document.createRange?L=function(t,p,B,j){var G=document.createRange();return G.setEnd(j||t,B),G.setStart(t,p),G}:L=function(t,p,B){var j=document.body.createTextRange();try{j.moveToElementText(t.parentNode)}catch(G){return j}return j.collapse(!0),j.moveEnd("character",B),j.moveStart("character",p),j};function N(t,p){if(p.nodeType==3&&(p=p.parentNode),t.contains)return t.contains(p);do if(p.nodeType==11&&(p=p.host),p==t)return!0;while(p=p.parentNode)}function V(){var t;try{t=document.activeElement}catch(p){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function H(t,p){var B=t.className;R(p).test(B)||(t.className+=(B?" ":"")+p)}function D(t,p){for(var B=t.split(" "),j=0;j<B.length;j++)B[j]&&!R(B[j]).test(p)&&(p+=" "+B[j]);return p}var W=function(t){t.select()};c?W=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:O&&(W=function(t){try{t.select()}catch(p){}});function F(t){var p=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,p)}}function I(t,p,B){p||(p={});for(var j in t)t.hasOwnProperty(j)&&(B!==!1||!p.hasOwnProperty(j))&&(p[j]=t[j]);return p}function K(t,p,B,j,G){p==null&&(p=t.search(/[^\s\u00a0]/),p==-1&&(p=t.length));for(var ne=j||0,ge=G||0;;){var we=t.indexOf(" ",ne);if(we<0||we>=p)return ge+(p-ne);ge+=we-ne,ge+=B-ge%B,ne=we+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};ee.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},ee.prototype.set=function(t,p){this.f=p;var B=+new Date+t;(!this.id||B<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=B)};function he(t,p){for(var B=0;B<t.length;++B)if(t[B]==p)return B;return-1}var de=50,Se={toString:function(){return"CodeMirror.Pass"}},Te={scroll:!1},ce={origin:"*mouse"},be={origin:"+move"};function ye(t,p,B){for(var j=0,G=0;;){var ne=t.indexOf(" ",j);ne==-1&&(ne=t.length);var ge=ne-j;if(ne==t.length||G+ge>=p)return j+Math.min(ge,p-G);if(G+=ne-j,G+=B-G%B,j=ne+1,G>=p)return j}}var ue=[""];function se(t){for(;ue.length<=t;)ue.push($(ue)+" ");return ue[t]}function $(t){return t[t.length-1]}function me(t,p){for(var B=[],j=0;j<t.length;j++)B[j]=p(t[j],j);return B}function re(t,p,B){for(var j=0,G=B(p);j<t.length&&B(t[j])<=G;)j++;t.splice(j,0,p)}function ae(){}function Oe(t,p){var B;return Object.create?B=Object.create(t):(ae.prototype=t,B=new ae),p&&I(p,B),B}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||le.test(t))}function Q(t,p){return p?p.source.indexOf("\\w")>-1&&te(t)?!0:p.test(t):te(t)}function J(t){for(var p in t)if(t.hasOwnProperty(p)&&t[p])return!1;return!0}var ve=/[\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 _e(t){return t.charCodeAt(0)>=768&&ve.test(t)}function Ae(t,p,B){for(;(B<0?p>0:p<t.length)&&_e(t.charAt(p));)p+=B;return p}function Je(t,p,B){for(var j=p>B?-1:1;;){if(p==B)return p;var G=(p+B)/2,ne=j<0?Math.ceil(G):Math.floor(G);if(ne==p)return t(ne)?p:B;t(ne)?B=ne:p=ne+j}}function tt(t,p,B,j){if(!t)return j(p,B,"ltr",0);for(var G=!1,ne=0;ne<t.length;++ne){var ge=t[ne];(ge.from<B&&ge.to>p||p==B&&ge.to==p)&&(j(Math.max(ge.from,p),Math.min(ge.to,B),ge.level==1?"rtl":"ltr",ne),G=!0)}G||j(p,B,"ltr")}var ut=null;function ht(t,p,B){var j;ut=null;for(var G=0;G<t.length;++G){var ne=t[G];if(ne.from<p&&ne.to>p)return G;ne.to==p&&(ne.from!=ne.to&&B=="before"?j=G:ut=G),ne.from==p&&(ne.from!=ne.to&&B!="before"?j=G:ut=G)}return j!=null?j:ut}var vt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function B(We){return We<=247?t.charAt(We):1424<=We&&We<=1524?"R":1536<=We&&We<=1785?p.charAt(We-1536):1774<=We&&We<=2220?"r":8192<=We&&We<=8203?"w":We==8204?"b":"L"}var j=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,G=/[stwN]/,ne=/[LRr]/,ge=/[Lb1n]/,we=/[1n]/;function Re(We,gt,At){this.level=We,this.from=gt,this.to=At}return function(We,gt){var At=gt=="ltr"?"L":"R";if(We.length==0||gt=="ltr"&&!j.test(We))return!1;for(var nn=We.length,Gt=[],wn=0;wn<nn;++wn)Gt.push(B(We.charCodeAt(wn)));for(var Hn=0,Zn=At;Hn<nn;++Hn){var _r=Gt[Hn];_r=="m"?Gt[Hn]=Zn:Zn=_r}for(var Ur=0,br=At;Ur<nn;++Ur){var Xr=Gt[Ur];Xr=="1"&&br=="r"?Gt[Ur]="n":ne.test(Xr)&&(br=Xr,Xr=="r"&&(Gt[Ur]="R"))}for(var ia=1,ea=Gt[0];ia<nn-1;++ia){var wa=Gt[ia];wa=="+"&&ea=="1"&&Gt[ia+1]=="1"?Gt[ia]="1":wa==","&&ea==Gt[ia+1]&&(ea=="1"||ea=="n")&&(Gt[ia]=ea),ea=wa}for(var Va=0;Va<nn;++Va){var vi=Gt[Va];if(vi==",")Gt[Va]="N";else if(vi=="%"){var ti=void 0;for(ti=Va+1;ti<nn&&Gt[ti]=="%";++ti);for(var zi=Va&&Gt[Va-1]=="!"||ti<nn&&Gt[ti]=="1"?"1":"N",Ui=Va;Ui<ti;++Ui)Gt[Ui]=zi;Va=ti-1}}for(var ci=0,ji=At;ci<nn;++ci){var Ci=Gt[ci];ji=="L"&&Ci=="1"?Gt[ci]="L":ne.test(Ci)&&(ji=Ci)}for(var pi=0;pi<nn;++pi)if(G.test(Gt[pi])){var di=void 0;for(di=pi+1;di<nn&&G.test(Gt[di]);++di);for(var ii=(pi?Gt[pi-1]:At)=="L",Bi=(di<nn?Gt[di]:At)=="L",Ts=ii==Bi?ii?"L":"R":At,es=pi;es<di;++es)Gt[es]=Ts;pi=di-1}for(var Oi=[],Po,_i=0;_i<nn;)if(ge.test(Gt[_i])){var ru=_i;for(++_i;_i<nn&&ge.test(Gt[_i]);++_i);Oi.push(new Re(0,ru,_i))}else{var Fo=_i,ds=Oi.length,fs=gt=="rtl"?1:0;for(++_i;_i<nn&&Gt[_i]!="L";++_i);for(var Mi=Fo;Mi<_i;)if(we.test(Gt[Mi])){Fo<Mi&&(Oi.splice(ds,0,new Re(1,Fo,Mi)),ds+=fs);var Os=Mi;for(++Mi;Mi<_i&&we.test(Gt[Mi]);++Mi);Oi.splice(ds,0,new Re(2,Os,Mi)),ds+=fs,Fo=Mi}else++Mi;Fo<_i&&Oi.splice(ds,0,new Re(1,Fo,_i))}return gt=="ltr"&&(Oi[0].level==1&&(Po=We.match(/^\s+/))&&(Oi[0].from=Po[0].length,Oi.unshift(new Re(0,0,Po[0].length))),$(Oi).level==1&&(Po=We.match(/\s+$/))&&($(Oi).to-=Po[0].length,Oi.push(new Re(0,nn-Po[0].length,nn)))),gt=="rtl"?Oi.reverse():Oi}}();function _t(t,p){var B=t.order;return B==null&&(B=t.order=vt(t.text,p)),B}var Ve=[],Ue=function(t,p,B){if(t.addEventListener)t.addEventListener(p,B,!1);else if(t.attachEvent)t.attachEvent("on"+p,B);else{var j=t._handlers||(t._handlers={});j[p]=(j[p]||Ve).concat(B)}};function pt(t,p){return t._handlers&&t._handlers[p]||Ve}function Ut(t,p,B){if(t.removeEventListener)t.removeEventListener(p,B,!1);else if(t.detachEvent)t.detachEvent("on"+p,B);else{var j=t._handlers,G=j&&j[p];if(G){var ne=he(G,B);ne>-1&&(j[p]=G.slice(0,ne).concat(G.slice(ne+1)))}}}function Et(t,p){var B=pt(t,p);if(!B.length)return;for(var j=Array.prototype.slice.call(arguments,2),G=0;G<B.length;++G)B[G].apply(null,j)}function jt(t,p,B){return typeof p=="string"&&(p={type:p,preventDefault:function(){this.defaultPrevented=!0}}),Et(t,B||p.type,t,p),He(p)||p.codemirrorIgnore}function Ze(t){var p=t._handlers&&t._handlers.cursorActivity;if(!p)return;for(var B=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),j=0;j<p.length;++j)he(B,p[j])==-1&&B.push(p[j])}function Be(t,p){return pt(t,p).length>0}function Ye(t){t.prototype.on=function(p,B){Ue(this,p,B)},t.prototype.off=function(p,B){Ut(this,p,B)}}function Ce(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Le(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function He(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function je(t){Ce(t),Le(t)}function Ke(t){return t.target||t.srcElement}function it(t){var p=t.which;return p==null&&(t.button&1?p=1:t.button&2?p=3:t.button&4&&(p=2)),s&&t.ctrlKey&&p==1&&(p=3),p}var Ct=function(){if(O&&m<9)return!1;var t=T("div");return"draggable"in t||"dragDrop"in t}(),Ft;function Jt(t){if(Ft==null){var p=T("span","\u200B");v(t,T("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Ft=p.offsetWidth<=1&&p.offsetHeight>2&&!(O&&m<8))}var B=Ft?T("span","\u200B"):T("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return B.setAttribute("cm-text",""),B}var Ht;function Ot(t){if(Ht!=null)return Ht;var p=v(t,document.createTextNode("A\u062EA")),B=L(p,0,1).getBoundingClientRect(),j=L(p,1,2).getBoundingClientRect();return S(t),!B||B.left==B.right?!1:Ht=j.right-B.right<3}var Fe=`
b`.split(/\n/).length!=3?function(t){for(var p=0,B=[],j=t.length;p<=j;){var G=t.indexOf(`
`,p);G==-1&&(G=t.length);var ne=t.slice(p,t.charAt(G-1)=="\r"?G-1:G),ge=ne.indexOf("\r");ge!=-1?(B.push(ne.slice(0,ge)),p+=ge+1):(B.push(ne),p=G+1)}return B}:function(t){return t.split(/\r\n?|\n/)},at=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(p){return!1}}:function(t){var p;try{p=t.ownerDocument.selection.createRange()}catch(B){}return!p||p.parentElement()!=t?!1:p.compareEndPoints("StartToEnd",p)!=0},ot=function(){var t=T("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Pe=null;function Qe(t){if(Pe!=null)return Pe;var p=v(t,T("span","x")),B=p.getBoundingClientRect(),j=L(p,0,1).getBoundingClientRect();return Pe=Math.abs(B.left-j.left)>1}var ft={},bt={};function Dt(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),ft[t]=p}function Mt(t,p){bt[t]=p}function ct(t){if(typeof t=="string"&&bt.hasOwnProperty(t))t=bt[t];else if(t&&typeof t.name=="string"&&bt.hasOwnProperty(t.name)){var p=bt[t.name];typeof p=="string"&&(p={name:p}),t=Oe(p,t),t.name=p.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return ct("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return ct("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Lt(t,p){p=ct(p);var B=ft[p.name];if(!B)return Lt(t,"text/plain");var j=B(t,p);if(Zt.hasOwnProperty(p.name)){var G=Zt[p.name];for(var ne in G){if(!G.hasOwnProperty(ne))continue;j.hasOwnProperty(ne)&&(j["_"+ne]=j[ne]),j[ne]=G[ne]}}if(j.name=p.name,p.helperType&&(j.helperType=p.helperType),p.modeProps)for(var ge in p.modeProps)j[ge]=p.modeProps[ge];return j}var Zt={};function An(t,p){var B=Zt.hasOwnProperty(t)?Zt[t]:Zt[t]={};I(p,B)}function on(t,p){if(p===!0)return p;if(t.copyState)return t.copyState(p);var B={};for(var j in p){var G=p[j];G instanceof Array&&(G=G.concat([])),B[j]=G}return B}function Tn(t,p){for(var B;t.innerMode&&!(B=t.innerMode(p),!B||B.mode==t);)p=B.state,t=B.mode;return B||{mode:t,state:p}}function Ln(t,p,B){return t.startState?t.startState(p,B):!0}var Nn=function(t,p,B){this.pos=this.start=0,this.string=t,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=B};Nn.prototype.eol=function(){return this.pos>=this.string.length},Nn.prototype.sol=function(){return this.pos==this.lineStart},Nn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Nn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Nn.prototype.eat=function(t){var p=this.string.charAt(this.pos),B;if(typeof t=="string"?B=p==t:B=p&&(t.test?t.test(p):t(p)),B)return++this.pos,p},Nn.prototype.eatWhile=function(t){for(var p=this.pos;this.eat(t););return this.pos>p},Nn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Nn.prototype.skipToEnd=function(){this.pos=this.string.length},Nn.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},Nn.prototype.backUp=function(t){this.pos-=t},Nn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Nn.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Nn.prototype.match=function(t,p,B){if(typeof t=="string"){var j=function(ge){return B?ge.toLowerCase():ge},G=this.string.substr(this.pos,t.length);if(j(G)==j(t))return p!==!1&&(this.pos+=t.length),!0}else{var ne=this.string.slice(this.pos).match(t);return ne&&ne.index>0?null:(ne&&p!==!1&&(this.pos+=ne[0].length),ne)}},Nn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Nn.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},Nn.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},Nn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function ln(t,p){if(p-=t.first,p<0||p>=t.size)throw new Error("There is no line "+(p+t.first)+" in the document.");for(var B=t;!B.lines;)for(var j=0;;++j){var G=B.children[j],ne=G.chunkSize();if(p<ne){B=G;break}p-=ne}return B.lines[p]}function ar(t,p,B){var j=[],G=p.line;return t.iter(p.line,B.line+1,function(ne){var ge=ne.text;G==B.line&&(ge=ge.slice(0,B.ch)),G==p.line&&(ge=ge.slice(p.ch)),j.push(ge),++G}),j}function xr(t,p,B){var j=[];return t.iter(p,B,function(G){j.push(G.text)}),j}function Cr(t,p){var B=p-t.height;if(B)for(var j=t;j;j=j.parent)j.height+=B}function Yn(t){if(t.parent==null)return null;for(var p=t.parent,B=he(p.lines,t),j=p.parent;j;p=j,j=j.parent)for(var G=0;!(j.children[G]==p);++G)B+=j.children[G].chunkSize();return B+p.first}function Or(t,p){var B=t.first;e:do{for(var j=0;j<t.children.length;++j){var G=t.children[j],ne=G.height;if(p<ne){t=G;continue e}p-=ne,B+=G.chunkSize()}return B}while(!t.lines);for(var ge=0;ge<t.lines.length;++ge){var we=t.lines[ge],Re=we.height;if(p<Re)break;p-=Re}return B+ge}function cr(t,p){return p>=t.first&&p<t.first+t.size}function sn(t,p){return String(t.lineNumberFormatter(p+t.firstLineNumber))}function qt(t,p,B){if(B===void 0&&(B=null),!(this instanceof qt))return new qt(t,p,B);this.line=t,this.ch=p,this.sticky=B}function On(t,p){return t.line-p.line||t.ch-p.ch}function Ir(t,p){return t.sticky==p.sticky&&On(t,p)==0}function Ar(t){return qt(t.line,t.ch)}function yr(t,p){return On(t,p)<0?p:t}function pr(t,p){return On(t,p)<0?t:p}function pe(t,p){return Math.max(t.first,Math.min(p,t.first+t.size-1))}function X(t,p){if(p.line<t.first)return qt(t.first,0);var B=t.first+t.size-1;return p.line>B?qt(B,ln(t,B).text.length):q(p,ln(t,p.line).text.length)}function q(t,p){var B=t.ch;return B==null||B>p?qt(t.line,p):B<0?qt(t.line,0):t}function oe(t,p){for(var B=[],j=0;j<p.length;j++)B[j]=X(t,p[j]);return B}var De=function(t,p){this.state=t,this.lookAhead=p},fe=function(t,p,B,j){this.state=p,this.doc=t,this.line=B,this.maxLookAhead=j||0,this.baseTokens=null,this.baseTokenPos=1};fe.prototype.lookAhead=function(t){var p=this.doc.getLine(this.line+t);return p!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),p},fe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var p=this.baseTokens[this.baseTokenPos+1];return{type:p&&p.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},fe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fe.fromSaved=function(t,p,B){return p instanceof De?new fe(t,on(t.mode,p.state),B,p.lookAhead):new fe(t,on(t.mode,p),B)},fe.prototype.save=function(t){var p=t!==!1?on(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new De(p,this.maxLookAhead):p};function st(t,p,B,j){var G=[t.state.modeGen],ne={};oa(t,p.text,t.doc.mode,B,function(We,gt){return G.push(We,gt)},ne,j);for(var ge=B.state,we=function(We){B.baseTokens=G;var gt=t.state.overlays[We],At=1,nn=0;B.state=!0,oa(t,p.text,gt.mode,B,function(Gt,wn){for(var Hn=At;nn<Gt;){var Zn=G[At];Zn>Gt&&G.splice(At,1,Gt,G[At+1],Zn),At+=2,nn=Math.min(Gt,Zn)}if(!wn)return;if(gt.opaque)G.splice(Hn,At-Hn,Gt,"overlay "+wn),At=Hn+2;else for(;Hn<At;Hn+=2){var _r=G[Hn+1];G[Hn+1]=(_r?_r+" ":"")+"overlay "+wn}},ne),B.state=ge,B.baseTokens=null,B.baseTokenPos=1},Re=0;Re<t.state.overlays.length;++Re)we(Re);return{styles:G,classes:ne.bgClass||ne.textClass?ne:null}}function Qt(t,p,B){if(!p.styles||p.styles[0]!=t.state.modeGen){var j=In(t,Yn(p)),G=p.text.length>t.options.maxHighlightLength&&on(t.doc.mode,j.state),ne=st(t,p,j);G&&(j.state=G),p.stateAfter=j.save(!G),p.styles=ne.styles,ne.classes?p.styleClasses=ne.classes:p.styleClasses&&(p.styleClasses=null),B===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return p.styles}function In(t,p,B){var j=t.doc,G=t.display;if(!j.mode.startState)return new fe(j,!0,p);var ne=er(t,p,B),ge=ne>j.first&&ln(j,ne-1).stateAfter,we=ge?fe.fromSaved(j,ge,ne):new fe(j,Ln(j.mode),ne);return j.iter(ne,p,function(Re){Vn(t,Re.text,we);var We=we.line;Re.stateAfter=We==p-1||We%5==0||We>=G.viewFrom&&We<G.viewTo?we.save():null,we.nextLine()}),B&&(j.modeFrontier=we.line),we}function Vn(t,p,B,j){var G=t.doc.mode,ne=new Nn(p,t.options.tabSize,B);for(ne.start=ne.pos=j||0,p==""&&$t(G,B.state);!ne.eol();)bn(G,ne,B.state),ne.start=ne.pos}function $t(t,p){if(t.blankLine)return t.blankLine(p);if(!t.innerMode)return;var B=Tn(t,p);if(B.mode.blankLine)return B.mode.blankLine(B.state)}function bn(t,p,B,j){for(var G=0;G<10;G++){j&&(j[0]=Tn(t,B).mode);var ne=t.token(p,B);if(p.pos>p.start)return ne}throw new Error("Mode "+t.name+" failed to advance stream.")}var cn=function(t,p,B){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=B};function Br(t,p,B,j){var G=t.doc,ne=G.mode,ge;p=X(G,p);var we=ln(G,p.line),Re=In(t,p.line,B),We=new Nn(we.text,t.options.tabSize,Re),gt;for(j&&(gt=[]);(j||We.pos<p.ch)&&!We.eol();)We.start=We.pos,ge=bn(ne,We,Re.state),j&&gt.push(new cn(We,ge,on(G.mode,Re.state)));return j?gt:new cn(We,ge,Re.state)}function ra(t,p){if(t)for(;;){var B=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!B)break;t=t.slice(0,B.index)+t.slice(B.index+B[0].length);var j=B[1]?"bgClass":"textClass";p[j]==null?p[j]=B[2]:new RegExp("(?:^|\\s)"+B[2]+"(?:$|\\s)").test(p[j])||(p[j]+=" "+B[2])}return t}function oa(t,p,B,j,G,ne,ge){var we=B.flattenSpans;we==null&&(we=t.options.flattenSpans);var Re=0,We=null,gt=new Nn(p,t.options.tabSize,j),At,nn=t.options.addModeClass&&[null];for(p==""&&ra($t(B,j.state),ne);!gt.eol();){if(gt.pos>t.options.maxHighlightLength?(we=!1,ge&&Vn(t,p,j,gt.pos),gt.pos=p.length,At=null):At=ra(bn(B,gt,j.state,nn),ne),nn){var Gt=nn[0].name;Gt&&(At="m-"+(At?Gt+" "+At:Gt))}if(!we||We!=At){for(;Re<gt.start;)Re=Math.min(gt.start,Re+5e3),G(Re,We);We=At}gt.start=gt.pos}for(;Re<gt.pos;){var wn=Math.min(gt.pos,Re+5e3);G(wn,We),Re=wn}}function er(t,p,B){for(var j,G,ne=t.doc,ge=B?-1:p-(t.doc.mode.innerMode?1e3:100),we=p;we>ge;--we){if(we<=ne.first)return ne.first;var Re=ln(ne,we-1),We=Re.stateAfter;if(We&&(!B||we+(We instanceof De?We.lookAhead:0)<=ne.modeFrontier))return we;var gt=K(Re.text,null,t.options.tabSize);(G==null||j>gt)&&(G=we-1,j=gt)}return G}function Ba(t,p){if(t.modeFrontier=Math.min(t.modeFrontier,p),t.highlightFrontier<p-10)return;for(var B=t.first,j=p-1;j>B;j--){var G=ln(t,j).stateAfter;if(G&&(!(G instanceof De)||j+G.lookAhead<p)){B=j+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,B)}var Ea=!1,ca=!1;function Ka(){Ea=!0}function Ta(){ca=!0}function Ja(t,p,B){this.marker=t,this.from=p,this.to=B}function Ua(t,p){if(t)for(var B=0;B<t.length;++B){var j=t[B];if(j.marker==p)return j}}function li(t,p){for(var B,j=0;j<t.length;++j)t[j]!=p&&(B||(B=[])).push(t[j]);return B}function oi(t,p){t.markedSpans=t.markedSpans?t.markedSpans.concat([p]):[p],p.marker.attachLine(t)}function fa(t,p,B){var j;if(t)for(var G=0;G<t.length;++G){var ne=t[G],ge=ne.marker,we=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from<p);if(we||ne.from==p&&ge.type=="bookmark"&&(!B||!ne.marker.insertLeft)){var Re=ne.to==null||(ge.inclusiveRight?ne.to>=p:ne.to>p);(j||(j=[])).push(new Ja(ge,ne.from,Re?null:ne.to))}}return j}function ma(t,p,B){var j;if(t)for(var G=0;G<t.length;++G){var ne=t[G],ge=ne.marker,we=ne.to==null||(ge.inclusiveRight?ne.to>=p:ne.to>p);if(we||ne.from==p&&ge.type=="bookmark"&&(!B||ne.marker.insertLeft)){var Re=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from<p);(j||(j=[])).push(new Ja(ge,Re?null:ne.from-p,ne.to==null?null:ne.to-p))}}return j}function la(t,p){if(p.full)return null;var B=cr(t,p.from.line)&&ln(t,p.from.line).markedSpans,j=cr(t,p.to.line)&&ln(t,p.to.line).markedSpans;if(!B&&!j)return null;var G=p.from.ch,ne=p.to.ch,ge=On(p.from,p.to)==0,we=fa(B,G,ge),Re=ma(j,ne,ge),We=p.text.length==1,gt=$(p.text).length+(We?G:0);if(we)for(var At=0;At<we.length;++At){var nn=we[At];if(nn.to==null){var Gt=Ua(Re,nn.marker);Gt?We&&(nn.to=Gt.to==null?null:Gt.to+gt):nn.to=G}}if(Re)for(var wn=0;wn<Re.length;++wn){var Hn=Re[wn];if(Hn.to!=null&&(Hn.to+=gt),Hn.from==null){var Zn=Ua(we,Hn.marker);Zn||(Hn.from=gt,We&&(we||(we=[])).push(Hn))}else Hn.from+=gt,We&&(we||(we=[])).push(Hn)}we&&(we=xe(we)),Re&&Re!=we&&(Re=xe(Re));var _r=[we];if(!We){var Ur=p.text.length-2,br;if(Ur>0&&we)for(var Xr=0;Xr<we.length;++Xr)we[Xr].to==null&&(br||(br=[])).push(new Ja(we[Xr].marker,null,null));for(var ia=0;ia<Ur;++ia)_r.push(br);_r.push(Re)}return _r}function xe(t){for(var p=0;p<t.length;++p){var B=t[p];B.from!=null&&B.from==B.to&&B.marker.clearWhenEmpty!==!1&&t.splice(p--,1)}return t.length?t:null}function lt(t,p,B){var j=null;if(t.iter(p.line,B.line+1,function(Gt){if(Gt.markedSpans)for(var wn=0;wn<Gt.markedSpans.length;++wn){var Hn=Gt.markedSpans[wn].marker;Hn.readOnly&&(!j||he(j,Hn)==-1)&&(j||(j=[])).push(Hn)}}),!j)return null;for(var G=[{from:p,to:B}],ne=0;ne<j.length;++ne)for(var ge=j[ne],we=ge.find(0),Re=0;Re<G.length;++Re){var We=G[Re];if(On(We.to,we.from)<0||On(We.from,we.to)>0)continue;var gt=[Re,1],At=On(We.from,we.from),nn=On(We.to,we.to);(At<0||!ge.inclusiveLeft&&!At)&&gt.push({from:We.from,to:we.from}),(nn>0||!ge.inclusiveRight&&!nn)&&gt.push({from:we.to,to:We.to}),G.splice.apply(G,gt),Re+=gt.length-3}return G}function Rt(t){var p=t.markedSpans;if(!p)return;for(var B=0;B<p.length;++B)p[B].marker.detachLine(t);t.markedSpans=null}function wt(t,p){if(!p)return;for(var B=0;B<p.length;++B)p[B].marker.attachLine(t);t.markedSpans=p}function Wt(t){return t.inclusiveLeft?-1:0}function It(t){return t.inclusiveRight?1:0}function Vt(t,p){var B=t.lines.length-p.lines.length;if(B!=0)return B;var j=t.find(),G=p.find(),ne=On(j.from,G.from)||Wt(t)-Wt(p);if(ne)return-ne;var ge=On(j.to,G.to)||It(t)-It(p);return ge||p.id-t.id}function rn(t,p){var B=ca&&t.markedSpans,j;if(B)for(var G=void 0,ne=0;ne<B.length;++ne)G=B[ne],G.marker.collapsed&&(p?G.from:G.to)==null&&(!j||Vt(j,G.marker)<0)&&(j=G.marker);return j}function yn(t){return rn(t,!0)}function gn(t){return rn(t,!1)}function jn(t,p){var B=ca&&t.markedSpans,j;if(B)for(var G=0;G<B.length;++G){var ne=B[G];ne.marker.collapsed&&(ne.from==null||ne.from<p)&&(ne.to==null||ne.to>p)&&(!j||Vt(j,ne.marker)<0)&&(j=ne.marker)}return j}function Dn(t,p,B,j,G){var ne=ln(t,p),ge=ca&&ne.markedSpans;if(ge)for(var we=0;we<ge.length;++we){var Re=ge[we];if(!Re.marker.collapsed)continue;var We=Re.marker.find(0),gt=On(We.from,B)||Wt(Re.marker)-Wt(G),At=On(We.to,j)||It(Re.marker)-It(G);if(gt>=0&&At<=0||gt<=0&&At>=0)continue;if(gt<=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(We.to,B)>=0:On(We.to,B)>0)||gt>=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(We.from,j)<=0:On(We.from,j)<0))return!0}}function an(t){for(var p;p=yn(t);)t=p.find(-1,!0).line;return t}function Mn(t){for(var p;p=gn(t);)t=p.find(1,!0).line;return t}function _n(t){for(var p,B;p=gn(t);)t=p.find(1,!0).line,(B||(B=[])).push(t);return B}function Bn(t,p){var B=ln(t,p),j=an(B);return B==j?p:Yn(j)}function Pn(t,p){if(p>t.lastLine())return p;var B=ln(t,p),j;if(!Jn(t,B))return p;for(;j=gn(B);)B=j.find(1,!0).line;return Yn(B)+1}function Jn(t,p){var B=ca&&p.markedSpans;if(B)for(var j=void 0,G=0;G<B.length;++G){if(j=B[G],!j.marker.collapsed)continue;if(j.from==null)return!0;if(j.marker.widgetNode)continue;if(j.from==0&&j.marker.inclusiveLeft&&fr(t,p,j))return!0}}function fr(t,p,B){if(B.to==null){var j=B.marker.find(1,!0);return fr(t,j.line,Ua(j.line.markedSpans,B.marker))}if(B.marker.inclusiveRight&&B.to==p.text.length)return!0;for(var G=void 0,ne=0;ne<p.markedSpans.length;++ne)if(G=p.markedSpans[ne],G.marker.collapsed&&!G.marker.widgetNode&&G.from==B.to&&(G.to==null||G.to!=B.from)&&(G.marker.inclusiveLeft||B.marker.inclusiveRight)&&fr(t,p,G))return!0}function Fr(t){t=an(t);for(var p=0,B=t.parent,j=0;j<B.lines.length;++j){var G=B.lines[j];if(G==t)break;p+=G.height}for(var ne=B.parent;ne;B=ne,ne=B.parent)for(var ge=0;ge<ne.children.length;++ge){var we=ne.children[ge];if(we==B)break;p+=we.height}return p}function Cn(t){if(t.height==0)return 0;for(var p=t.text.length,B,j=t;B=yn(j);){var G=B.find(0,!0);j=G.from.line,p+=G.from.ch-G.to.ch}for(j=t;B=gn(j);){var ne=B.find(0,!0);p-=j.text.length-ne.from.ch,j=ne.to.line,p+=j.text.length-ne.to.ch}return p}function Xt(t){var p=t.display,B=t.doc;p.maxLine=ln(B,B.first),p.maxLineLength=Cn(p.maxLine),p.maxLineChanged=!0,B.iter(function(j){var G=Cn(j);G>p.maxLineLength&&(p.maxLineLength=G,p.maxLine=j)})}var hn=function(t,p,B){this.text=t,wt(this,p),this.height=B?B(this):1};hn.prototype.lineNo=function(){return Yn(this)},Ye(hn);function Rn(t,p,B,j){t.text=p,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Rt(t),wt(t,B);var G=j?j(t):1;G!=t.height&&Cr(t,G)}function tn(t){t.parent=null,Rt(t)}var Sn={},vn={};function kn(t,p){if(!t||/^\s*$/.test(t))return null;var B=p.addModeClass?vn:Sn;return B[t]||(B[t]=t.replace(/\S+/g,"cm-$&"))}function Fn(t,p){var B=U("span",null,null,e?"padding-right: .1px":null),j={pre:U("pre",[B],"CodeMirror-line"),content:B,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};p.measure={};for(var G=0;G<=(p.rest?p.rest.length:0);G++){var ne=G?p.rest[G-1]:p.line,ge=void 0;j.pos=0,j.addToken=qn,Ot(t.display.measure)&&(ge=_t(ne,t.doc.direction))&&(j.addToken=Lr(j.addToken,ge)),j.map=[];var we=p!=t.display.externalMeasured&&Yn(ne);Dr(ne,j,Qt(t,ne,we)),ne.styleClasses&&(ne.styleClasses.bgClass&&(j.bgClass=D(ne.styleClasses.bgClass,j.bgClass||"")),ne.styleClasses.textClass&&(j.textClass=D(ne.styleClasses.textClass,j.textClass||""))),j.map.length==0&&j.map.push(0,0,j.content.appendChild(Jt(t.display.measure))),G==0?(p.measure.map=j.map,p.measure.cache={}):((p.measure.maps||(p.measure.maps=[])).push(j.map),(p.measure.caches||(p.measure.caches=[])).push({}))}if(e){var Re=j.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(j.content.className="cm-tab-wrap-hack")}return Et(t,"renderLine",t,p.line,j.pre),j.pre.className&&(j.textClass=D(j.pre.className,j.textClass||"")),j}function ir(t){var p=T("span","\u2022","cm-invalidchar");return p.title="\\u"+t.charCodeAt(0).toString(16),p.setAttribute("aria-label",p.title),p}function qn(t,p,B,j,G,ne,ge){if(!p)return;var we=t.splitSpaces?Rr(p,t.trailingSpace):p,Re=t.cm.state.specialChars,We=!1,gt;if(!Re.test(p))t.col+=p.length,gt=document.createTextNode(we),t.map.push(t.pos,t.pos+p.length,gt),O&&m<9&&(We=!0),t.pos+=p.length;else{gt=document.createDocumentFragment();for(var At=0;;){Re.lastIndex=At;var nn=Re.exec(p),Gt=nn?nn.index-At:p.length-At;if(Gt){var wn=document.createTextNode(we.slice(At,At+Gt));O&&m<9?gt.appendChild(T("span",[wn])):gt.appendChild(wn),t.map.push(t.pos,t.pos+Gt,wn),t.col+=Gt,t.pos+=Gt}if(!nn)break;At+=Gt+1;var Hn=void 0;if(nn[0]==" "){var Zn=t.cm.options.tabSize,_r=Zn-t.col%Zn;Hn=gt.appendChild(T("span",se(_r),"cm-tab")),Hn.setAttribute("role","presentation"),Hn.setAttribute("cm-text"," "),t.col+=_r}else nn[0]=="\r"||nn[0]==`
`?(Hn=gt.appendChild(T("span",nn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Hn.setAttribute("cm-text",nn[0]),t.col+=1):(Hn=t.cm.options.specialCharPlaceholder(nn[0]),Hn.setAttribute("cm-text",nn[0]),O&&m<9?gt.appendChild(T("span",[Hn])):gt.appendChild(Hn),t.col+=1);t.map.push(t.pos,t.pos+1,Hn),t.pos++}}if(t.trailingSpace=we.charCodeAt(p.length-1)==32,B||j||G||We||ne||ge){var Ur=B||"";j&&(Ur+=j),G&&(Ur+=G);var br=T("span",[gt],Ur,ne);if(ge)for(var Xr in ge)ge.hasOwnProperty(Xr)&&Xr!="style"&&Xr!="class"&&br.setAttribute(Xr,ge[Xr]);return t.content.appendChild(br)}t.content.appendChild(gt)}function Rr(t,p){if(t.length>1&&!/ /.test(t))return t;for(var B=p,j="",G=0;G<t.length;G++){var ne=t.charAt(G);ne==" "&&B&&(G==t.length-1||t.charCodeAt(G+1)==32)&&(ne="\xA0"),j+=ne,B=ne==" "}return j}function Lr(t,p){return function(B,j,G,ne,ge,we,Re){G=G?G+" cm-force-border":"cm-force-border";for(var We=B.pos,gt=We+j.length;;){for(var At=void 0,nn=0;nn<p.length&&!(At=p[nn],At.to>We&&At.from<=We);nn++);if(At.to>=gt)return t(B,j,G,ne,ge,we,Re);t(B,j.slice(0,At.to-We),G,ne,null,we,Re),ne=null,j=j.slice(At.to-We),We=At.to}}}function Qn(t,p,B,j){var G=!j&&B.widgetNode;G&&t.map.push(t.pos,t.pos+p,G),!j&&t.cm.display.input.needsContentAttribute&&(G||(G=t.content.appendChild(document.createElement("span"))),G.setAttribute("cm-marker",B.id)),G&&(t.cm.display.input.setUneditable(G),t.content.appendChild(G)),t.pos+=p,t.trailingSpace=!1}function Dr(t,p,B){var j=t.markedSpans,G=t.text,ne=0;if(!j){for(var ge=1;ge<B.length;ge+=2)p.addToken(p,G.slice(ne,ne=B[ge]),kn(B[ge+1],p.cm.options));return}for(var we=G.length,Re=0,We=1,gt="",At,nn,Gt=0,wn,Hn,Zn,_r,Ur;;){if(Gt==Re){wn=Hn=Zn=nn="",Ur=null,_r=null,Gt=Infinity;for(var br=[],Xr=void 0,ia=0;ia<j.length;++ia){var ea=j[ia],wa=ea.marker;if(wa.type=="bookmark"&&ea.from==Re&&wa.widgetNode)br.push(wa);else if(ea.from<=Re&&(ea.to==null||ea.to>Re||wa.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&Gt>ea.to&&(Gt=ea.to,Hn=""),wa.className&&(wn+=" "+wa.className),wa.css&&(nn=(nn?nn+";":"")+wa.css),wa.startStyle&&ea.from==Re&&(Zn+=" "+wa.startStyle),wa.endStyle&&ea.to==Gt&&(Xr||(Xr=[])).push(wa.endStyle,ea.to),wa.title&&((Ur||(Ur={})).title=wa.title),wa.attributes)for(var Va in wa.attributes)(Ur||(Ur={}))[Va]=wa.attributes[Va];wa.collapsed&&(!_r||Vt(_r.marker,wa)<0)&&(_r=ea)}else ea.from>Re&&Gt>ea.from&&(Gt=ea.from)}if(Xr)for(var vi=0;vi<Xr.length;vi+=2)Xr[vi+1]==Gt&&(Hn+=" "+Xr[vi]);if(!_r||_r.from==Re)for(var ti=0;ti<br.length;++ti)Qn(p,0,br[ti]);if(_r&&(_r.from||0)==Re){if(Qn(p,(_r.to==null?we+1:_r.to)-Re,_r.marker,_r.from==null),_r.to==null)return;_r.to==Re&&(_r=!1)}}if(Re>=we)break;for(var zi=Math.min(we,Gt);;){if(gt){var Ui=Re+gt.length;if(!_r){var ci=Ui>zi?gt.slice(0,zi-Re):gt;p.addToken(p,ci,At?At+wn:wn,Zn,Re+ci.length==Gt?Hn:"",nn,Ur)}if(Ui>=zi){gt=gt.slice(zi-Re),Re=zi;break}Re=Ui,Zn=""}gt=G.slice(ne,ne=B[We++]),At=kn(B[We++],p.cm.options)}}}function mr(t,p,B){this.line=p,this.rest=_n(p),this.size=this.rest?Yn($(this.rest))-B+1:1,this.node=this.text=null,this.hidden=Jn(t,p)}function zr(t,p,B){for(var j=[],G,ne=p;ne<B;ne=G){var ge=new mr(t.doc,ln(t.doc,ne),ne);G=ne+ge.size,j.push(ge)}return j}var Nr=null;function $r(t){Nr?Nr.ops.push(t):t.ownsGroup=Nr={ops:[t],delayedCallbacks:[]}}function nr(t){var p=t.delayedCallbacks,B=0;do{for(;B<p.length;B++)p[B].call(null);for(var j=0;j<t.ops.length;j++){var G=t.ops[j];if(G.cursorActivityHandlers)for(;G.cursorActivityCalled<G.cursorActivityHandlers.length;)G.cursorActivityHandlers[G.cursorActivityCalled++].call(null,G.cm)}}while(B<p.length)}function Kt(t,p){var B=t.ownsGroup;if(!B)return;try{nr(B)}finally{Nr=null,p(B)}}var en=null;function Yt(t,p){var B=pt(t,p);if(!B.length)return;var j=Array.prototype.slice.call(arguments,2),G;Nr?G=Nr.delayedCallbacks:en?G=en:(G=en=[],setTimeout(Xn,0));for(var ne=function(we){G.push(function(){return B[we].apply(null,j)})},ge=0;ge<B.length;++ge)ne(ge)}function Xn(){var t=en;en=null;for(var p=0;p<t.length;++p)t[p]()}function $n(t,p,B,j){for(var G=0;G<p.changes.length;G++){var ne=p.changes[G];ne=="text"?or(t,p):ne=="gutter"?sr(t,p,B,j):ne=="class"?qr(t,p):ne=="widget"&&da(t,p,j)}p.changes=null}function Un(t){return t.node==t.text&&(t.node=T("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),O&&m<8&&(t.node.style.zIndex=2)),t.node}function rr(t,p){var B=p.bgClass?p.bgClass+" "+(p.line.bgClass||""):p.line.bgClass;if(B&&(B+=" CodeMirror-linebackground"),p.background)B?p.background.className=B:(p.background.parentNode.removeChild(p.background),p.background=null);else if(B){var j=Un(p);p.background=j.insertBefore(T("div",null,B),j.firstChild),t.display.input.setUneditable(p.background)}}function ur(t,p){var B=t.display.externalMeasured;return B&&B.line==p.line?(t.display.externalMeasured=null,p.measure=B.measure,B.built):Fn(t,p)}function or(t,p){var B=p.text.className,j=ur(t,p);p.text==p.node&&(p.node=j.pre),p.text.parentNode.replaceChild(j.pre,p.text),p.text=j.pre,j.bgClass!=p.bgClass||j.textClass!=p.textClass?(p.bgClass=j.bgClass,p.textClass=j.textClass,qr(t,p)):B&&(p.text.className=B)}function qr(t,p){rr(t,p),p.line.wrapClass?Un(p).className=p.line.wrapClass:p.node!=p.text&&(p.node.className="");var B=p.textClass?p.textClass+" "+(p.line.textClass||""):p.line.textClass;p.text.className=B||""}function sr(t,p,B,j){if(p.gutter&&(p.node.removeChild(p.gutter),p.gutter=null),p.gutterBackground&&(p.node.removeChild(p.gutterBackground),p.gutterBackground=null),p.line.gutterClass){var G=Un(p);p.gutterBackground=T("div",null,"CodeMirror-gutter-background "+p.line.gutterClass,"left: "+(t.options.fixedGutter?j.fixedPos:-j.gutterTotalWidth)+"px; width: "+j.gutterTotalWidth+"px"),t.display.input.setUneditable(p.gutterBackground),G.insertBefore(p.gutterBackground,p.text)}var ne=p.line.gutterMarkers;if(t.options.lineNumbers||ne){var ge=Un(p),we=p.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?j.fixedPos:-j.gutterTotalWidth)+"px");if(t.display.input.setUneditable(we),ge.insertBefore(we,p.text),p.line.gutterClass&&(we.className+=" "+p.line.gutterClass),t.options.lineNumbers&&(!ne||!ne["CodeMirror-linenumbers"])&&(p.lineNumber=we.appendChild(T("div",sn(t.options,B),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+j.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),ne)for(var Re=0;Re<t.display.gutterSpecs.length;++Re){var We=t.display.gutterSpecs[Re].className,gt=ne.hasOwnProperty(We)&&ne[We];gt&&we.appendChild(T("div",[gt],"CodeMirror-gutter-elt","left: "+j.gutterLeft[We]+"px; width: "+j.gutterWidth[We]+"px"))}}}function da(t,p,B){p.alignable&&(p.alignable=null);for(var j=R("CodeMirror-linewidget"),G=p.node.firstChild,ne=void 0;G;G=ne)ne=G.nextSibling,j.test(G.className)&&p.node.removeChild(G);gr(t,p,B)}function Yr(t,p,B,j){var G=ur(t,p);return p.text=p.node=G.pre,G.bgClass&&(p.bgClass=G.bgClass),G.textClass&&(p.textClass=G.textClass),qr(t,p),sr(t,p,B,j),gr(t,p,j),p.node}function gr(t,p,B){if(Sr(t,p.line,p,B,!0),p.rest)for(var j=0;j<p.rest.length;j++)Sr(t,p.rest[j],p,B,!1)}function Sr(t,p,B,j,G){if(!p.widgets)return;for(var ne=Un(B),ge=0,we=p.widgets;ge<we.length;++ge){var Re=we[ge],We=T("div",[Re.node],"CodeMirror-linewidget"+(Re.className?" "+Re.className:""));Re.handleMouseEvents||We.setAttribute("cm-ignore-events","true"),Kr(Re,We,B,j),t.display.input.setUneditable(We),G&&Re.above?ne.insertBefore(We,B.gutter||B.text):ne.appendChild(We),Yt(Re,"redraw")}}function Kr(t,p,B,j){if(t.noHScroll){(B.alignable||(B.alignable=[])).push(p);var G=j.wrapperWidth;p.style.left=j.fixedPos+"px",t.coverGutter||(G-=j.gutterTotalWidth,p.style.paddingLeft=j.gutterTotalWidth+"px"),p.style.width=G+"px"}t.coverGutter&&(p.style.zIndex=5,p.style.position="relative",t.noHScroll||(p.style.marginLeft=-j.gutterTotalWidth+"px"))}function Jr(t){if(t.height!=null)return t.height;var p=t.doc.cm;if(!p)return 0;if(!N(document.body,t.node)){var B="position: relative;";t.coverGutter&&(B+="margin-left: -"+p.display.gutters.offsetWidth+"px;"),t.noHScroll&&(B+="width: "+p.display.wrapper.clientWidth+"px;"),v(p.display.measure,T("div",[t.node],null,B))}return t.height=t.node.parentNode.offsetHeight}function Oa(t,p){for(var B=Ke(p);B!=t.wrapper;B=B.parentNode)if(!B||B.nodeType==1&&B.getAttribute("cm-ignore-events")=="true"||B.parentNode==t.sizer&&B!=t.mover)return!0}function _a(t){return t.lineSpace.offsetTop}function qe(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function dt(t){if(t.cachedPaddingH)return t.cachedPaddingH;var p=v(t.measure,T("pre","x","CodeMirror-line-like")),B=window.getComputedStyle?window.getComputedStyle(p):p.currentStyle,j={left:parseInt(B.paddingLeft),right:parseInt(B.paddingRight)};return!isNaN(j.left)&&!isNaN(j.right)&&(t.cachedPaddingH=j),j}function yt(t){return de-t.display.nativeBarWidth}function nt(t){return t.display.scroller.clientWidth-yt(t)-t.display.barWidth}function Me(t){return t.display.scroller.clientHeight-yt(t)-t.display.barHeight}function Xe(t,p,B){var j=t.options.lineWrapping,G=j&&nt(t);if(!p.measure.heights||j&&p.measure.width!=G){var ne=p.measure.heights=[];if(j){p.measure.width=G;for(var ge=p.text.firstChild.getClientRects(),we=0;we<ge.length-1;we++){var Re=ge[we],We=ge[we+1];Math.abs(Re.bottom-We.bottom)>2&&ne.push((Re.bottom+We.top)/2-B.top)}}ne.push(B.bottom-B.top)}}function Ie(t,p,B){if(t.line==p)return{map:t.measure.map,cache:t.measure.cache};for(var j=0;j<t.rest.length;j++)if(t.rest[j]==p)return{map:t.measure.maps[j],cache:t.measure.caches[j]};for(var G=0;G<t.rest.length;G++)if(Yn(t.rest[G])>B)return{map:t.measure.maps[G],cache:t.measure.caches[G],before:!0}}function et(t,p){p=an(p);var B=Yn(p),j=t.display.externalMeasured=new mr(t.doc,p,B);j.lineN=B;var G=j.built=Fn(t,j);return j.text=G.pre,v(t.display.lineMeasure,G.pre),j}function $e(t,p,B,j){return Pt(t,rt(t,p),B,j)}function mt(t,p){if(p>=t.display.viewFrom&&p<t.display.viewTo)return t.display.view[ga(t,p)];var B=t.display.externalMeasured;if(B&&p>=B.lineN&&p<B.lineN+B.size)return B}function rt(t,p){var B=Yn(p),j=mt(t,B);j&&!j.text?j=null:j&&j.changes&&($n(t,j,B,tr(t)),t.curOp.forceUpdate=!0),j||(j=et(t,p));var G=Ie(j,p,B);return{line:p,view:j,rect:null,map:G.map,cache:G.cache,before:G.before,hasHeights:!1}}function Pt(t,p,B,j,G){p.before&&(B=-1);var ne=B+(j||""),ge;return p.cache.hasOwnProperty(ne)?ge=p.cache[ne]:(p.rect||(p.rect=p.view.text.getBoundingClientRect()),p.hasHeights||(Xe(t,p.view,p.rect),p.hasHeights=!0),ge=fn(t,p,B,j),ge.bogus||(p.cache[ne]=ge)),{left:ge.left,right:ge.right,top:G?ge.rtop:ge.top,bottom:G?ge.rbottom:ge.bottom}}var zt={left:0,right:0,top:0,bottom:0};function pn(t,p,B){for(var j,G,ne,ge,we,Re,We=0;We<t.length;We+=3)if(we=t[We],Re=t[We+1],p<we?(G=0,ne=1,ge="left"):p<Re?(G=p-we,ne=G+1):(We==t.length-3||p==Re&&t[We+3]>p)&&(ne=Re-we,G=ne-1,p>=Re&&(ge="right")),G!=null){if(j=t[We+2],we==Re&&B==(j.insertLeft?"left":"right")&&(ge=B),B=="left"&&G==0)for(;We&&t[We-2]==t[We-3]&&t[We-1].insertLeft;)j=t[(We-=3)+2],ge="left";if(B=="right"&&G==Re-we)for(;We<t.length-3&&t[We+3]==t[We+4]&&!t[We+5].insertLeft;)j=t[(We+=3)+2],ge="right";break}return{node:j,start:G,end:ne,collapse:ge,coverStart:we,coverEnd:Re}}function un(t,p){var B=zt;if(p=="left")for(var j=0;j<t.length&&!((B=t[j]).left!=B.right);j++);else for(var G=t.length-1;G>=0&&!((B=t[G]).left!=B.right);G--);return B}function fn(t,p,B,j){var G=pn(p.map,B,j),ne=G.node,ge=G.start,we=G.end,Re=G.collapse,We;if(ne.nodeType==3){for(var gt=0;gt<4;gt++){for(;ge&&_e(p.line.text.charAt(G.coverStart+ge));)--ge;for(;G.coverStart+we<G.coverEnd&&_e(p.line.text.charAt(G.coverStart+we));)++we;if(O&&m<9&&ge==0&&we==G.coverEnd-G.coverStart?We=ne.parentNode.getBoundingClientRect():We=un(L(ne,ge,we).getClientRects(),j),We.left||We.right||ge==0)break;we=ge,ge=ge-1,Re="right"}O&&m<11&&(We=dn(t.display.measure,We))}else{ge>0&&(Re=j="right");var At;t.options.lineWrapping&&(At=ne.getClientRects()).length>1?We=At[j=="right"?At.length-1:0]:We=ne.getBoundingClientRect()}if(O&&m<9&&!ge&&(!We||!We.left&&!We.right)){var nn=ne.parentNode.getClientRects()[0];nn?We={left:nn.left,right:nn.left+Mr(t.display),top:nn.top,bottom:nn.bottom}:We=zt}for(var Gt=We.top-p.rect.top,wn=We.bottom-p.rect.top,Hn=(Gt+wn)/2,Zn=p.view.measure.heights,_r=0;_r<Zn.length-1&&!(Hn<Zn[_r]);_r++);var Ur=_r?Zn[_r-1]:0,br=Zn[_r],Xr={left:(Re=="right"?We.right:We.left)-p.rect.left,right:(Re=="left"?We.left:We.right)-p.rect.left,top:Ur,bottom:br};return!We.left&&!We.right&&(Xr.bogus=!0),t.options.singleCursorHeightPerLine||(Xr.rtop=Gt,Xr.rbottom=wn),Xr}function dn(t,p){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Qe(t))return p;var B=screen.logicalXDPI/screen.deviceXDPI,j=screen.logicalYDPI/screen.deviceYDPI;return{left:p.left*B,right:p.right*B,top:p.top*j,bottom:p.bottom*j}}function Kn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var p=0;p<t.rest.length;p++)t.measure.caches[p]={}}function xn(t){t.display.externalMeasure=null,S(t.display.lineMeasure);for(var p=0;p<t.display.view.length;p++)Kn(t.display.view[p])}function jr(t){xn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Pr(){return a&&h?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qr(){return a&&h?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Wr(t){var p=0;if(t.widgets)for(var B=0;B<t.widgets.length;++B)t.widgets[B].above&&(p+=Jr(t.widgets[B]));return p}function ta(t,p,B,j,G){if(!G){var ne=Wr(p);B.top+=ne,B.bottom+=ne}if(j=="line")return B;j||(j="local");var ge=Fr(p);if(j=="local"?ge+=_a(t.display):ge-=t.display.viewOffset,j=="page"||j=="window"){var we=t.display.lineSpace.getBoundingClientRect();ge+=we.top+(j=="window"?0:Qr());var Re=we.left+(j=="window"?0:Pr());B.left+=Re,B.right+=Re}return B.top+=ge,B.bottom+=ge,B}function Gn(t,p,B){if(B=="div")return p;var j=p.left,G=p.top;if(B=="page")j-=Pr(),G-=Qr();else if(B=="local"||!B){var ne=t.display.sizer.getBoundingClientRect();j+=ne.left,G+=ne.top}var ge=t.display.lineSpace.getBoundingClientRect();return{left:j-ge.left,top:G-ge.top}}function wr(t,p,B,j,G){return j||(j=ln(t.doc,p.line)),ta(t,j,$e(t,j,p.ch,G),B)}function zn(t,p,B,j,G,ne){j=j||ln(t.doc,p.line),G||(G=rt(t,j));function ge(wn,Hn){var Zn=Pt(t,G,wn,Hn?"right":"left",ne);return Hn?Zn.left=Zn.right:Zn.right=Zn.left,ta(t,j,Zn,B)}var we=_t(j,t.doc.direction),Re=p.ch,We=p.sticky;if(Re>=j.text.length?(Re=j.text.length,We="before"):Re<=0&&(Re=0,We="after"),!we)return ge(We=="before"?Re-1:Re,We=="before");function gt(wn,Hn,Zn){var _r=we[Hn],Ur=_r.level==1;return ge(Zn?wn-1:wn,Ur!=Zn)}var At=ht(we,Re,We),nn=ut,Gt=gt(Re,At,We=="before");return nn!=null&&(Gt.other=gt(Re,nn,We!="before")),Gt}function En(t,p){var B=0;p=X(t.doc,p),t.options.lineWrapping||(B=Mr(t.display)*p.ch);var j=ln(t.doc,p.line),G=Fr(j)+_a(t.display);return{left:B,right:B,top:G,bottom:G+j.height}}function Wn(t,p,B,j,G){var ne=qt(t,p,B);return ne.xRel=G,j&&(ne.outside=j),ne}function Vr(t,p,B){var j=t.doc;if(B+=t.display.viewOffset,B<0)return Wn(j.first,0,null,-1,-1);var G=Or(j,B),ne=j.first+j.size-1;if(G>ne)return Wn(j.first+j.size-1,ln(j,ne).text.length,null,1,1);p<0&&(p=0);for(var ge=ln(j,G);;){var we=Ca(t,ge,G,p,B),Re=jn(ge,we.ch+(we.xRel>0||we.outside>0?1:0));if(!Re)return we;var We=Re.find(1);if(We.line==G)return We;ge=ln(j,G=We.line)}}function ua(t,p,B,j){j-=Wr(p);var G=p.text.length,ne=Je(function(ge){return Pt(t,B,ge-1).bottom<=j},G,0);return G=Je(function(ge){return Pt(t,B,ge).top>j},ne,G),{begin:ne,end:G}}function dr(t,p,B,j){B||(B=rt(t,p));var G=ta(t,p,Pt(t,B,j),"line").top;return ua(t,p,B,G)}function aa(t,p,B,j){return t.bottom<=B?!1:t.top>B?!0:(j?t.left:t.right)>p}function Ca(t,p,B,j,G){G-=Fr(p);var ne=rt(t,p),ge=Wr(p),we=0,Re=p.text.length,We=!0,gt=_t(p,t.doc.direction);if(gt){var At=(t.options.lineWrapping?Sa:ha)(t,p,B,ne,gt,j,G);We=At.level!=1,we=We?At.from:At.to-1,Re=We?At.to:At.from-1}var nn=null,Gt=null,wn=Je(function(ia){var ea=Pt(t,ne,ia);return ea.top+=ge,ea.bottom+=ge,aa(ea,j,G,!1)?(ea.top<=G&&ea.left<=j&&(nn=ia,Gt=ea),!0):!1},we,Re),Hn,Zn,_r=!1;if(Gt){var Ur=j-Gt.left<Gt.right-j,br=Ur==We;wn=nn+(br?0:1),Zn=br?"after":"before",Hn=Ur?Gt.left:Gt.right}else{!We&&(wn==Re||wn==we)&&wn++,Zn=wn==0?"after":wn==p.text.length?"before":Pt(t,ne,wn-(We?1:0)).bottom+ge<=G==We?"after":"before";var Xr=zn(t,qt(B,wn,Zn),"line",p,ne);Hn=Xr.left,_r=G<Xr.top?-1:G>=Xr.bottom?1:0}return wn=Ae(p.text,wn,1),Wn(B,wn,Zn,_r,j-Hn)}function ha(t,p,B,j,G,ne,ge){var we=Je(function(At){var nn=G[At],Gt=nn.level!=1;return aa(zn(t,qt(B,Gt?nn.to:nn.from,Gt?"before":"after"),"line",p,j),ne,ge,!0)},0,G.length-1),Re=G[we];if(we>0){var We=Re.level!=1,gt=zn(t,qt(B,We?Re.from:Re.to,We?"after":"before"),"line",p,j);aa(gt,ne,ge,!0)&&gt.top>ge&&(Re=G[we-1])}return Re}function Sa(t,p,B,j,G,ne,ge){var we=ua(t,p,j,ge),Re=we.begin,We=we.end;/\s/.test(p.text.charAt(We-1))&&We--;for(var gt=null,At=null,nn=0;nn<G.length;nn++){var Gt=G[nn];if(Gt.from>=We||Gt.to<=Re)continue;var wn=Gt.level!=1,Hn=Pt(t,j,wn?Math.min(We,Gt.to)-1:Math.max(Re,Gt.from)).right,Zn=Hn<ne?ne-Hn+1e9:Hn-ne;(!gt||At>Zn)&&(gt=Gt,At=Zn)}return gt||(gt=G[G.length-1]),gt.from<Re&&(gt={from:Re,to:gt.to,level:gt.level}),gt.to>We&&(gt={from:gt.from,to:We,level:gt.level}),gt}var Tr;function vr(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Tr==null){Tr=T("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(T("br"));Tr.appendChild(document.createTextNode("x"))}v(t.measure,Tr);var B=Tr.offsetHeight/50;return B>3&&(t.cachedTextHeight=B),S(t.measure),B||1}function Mr(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=T("span","xxxxxxxxxx"),B=T("pre",[p],"CodeMirror-line-like");v(t.measure,B);var j=p.getBoundingClientRect(),G=(j.right-j.left)/10;return G>2&&(t.cachedCharWidth=G),G||10}function tr(t){for(var p=t.display,B={},j={},G=p.gutters.clientLeft,ne=p.gutters.firstChild,ge=0;ne;ne=ne.nextSibling,++ge){var we=t.display.gutterSpecs[ge].className;B[we]=ne.offsetLeft+ne.clientLeft+G,j[we]=ne.clientWidth}return{fixedPos:pa(p),gutterTotalWidth:p.gutters.offsetWidth,gutterLeft:B,gutterWidth:j,wrapperWidth:p.wrapper.clientWidth}}function pa(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function xa(t){var p=vr(t.display),B=t.options.lineWrapping,j=B&&Math.max(5,t.display.scroller.clientWidth/Mr(t.display)-3);return function(G){if(Jn(t.doc,G))return 0;var ne=0;if(G.widgets)for(var ge=0;ge<G.widgets.length;ge++)G.widgets[ge].height&&(ne+=G.widgets[ge].height);return B?ne+(Math.ceil(G.text.length/j)||1)*p:ne+p}}function ba(t){var p=t.doc,B=xa(t);p.iter(function(j){var G=B(j);G!=j.height&&Cr(j,G)})}function Aa(t,p,B,j){var G=t.display;if(!B&&Ke(p).getAttribute("cm-not-content")=="true")return null;var ne,ge,we=G.lineSpace.getBoundingClientRect();try{ne=p.clientX-we.left,ge=p.clientY-we.top}catch(At){return null}var Re=Vr(t,ne,ge),We;if(j&&Re.xRel>0&&(We=ln(t.doc,Re.line).text).length==Re.ch){var gt=K(We,We.length,t.options.tabSize)-We.length;Re=qt(Re.line,Math.max(0,Math.round((ne-dt(t.display).left)/Mr(t.display))-gt))}return Re}function ga(t,p){if(p>=t.display.viewTo)return null;if(p-=t.display.viewFrom,p<0)return null;for(var B=t.display.view,j=0;j<B.length;j++)if(p-=B[j].size,p<0)return j}function Na(t,p,B,j){p==null&&(p=t.doc.first),B==null&&(B=t.doc.first+t.doc.size),j||(j=0);var G=t.display;if(j&&B<G.viewTo&&(G.updateLineNumbers==null||G.updateLineNumbers>p)&&(G.updateLineNumbers=p),t.curOp.viewChanged=!0,p>=G.viewTo)ca&&Bn(t.doc,p)<G.viewTo&&Fa(t);else if(B<=G.viewFrom)ca&&Pn(t.doc,B+j)>G.viewFrom?Fa(t):(G.viewFrom+=j,G.viewTo+=j);else if(p<=G.viewFrom&&B>=G.viewTo)Fa(t);else if(p<=G.viewFrom){var ne=ni(t,B,B+j,1);ne?(G.view=G.view.slice(ne.index),G.viewFrom=ne.lineN,G.viewTo+=j):Fa(t)}else if(B>=G.viewTo){var ge=ni(t,p,p,-1);ge?(G.view=G.view.slice(0,ge.index),G.viewTo=ge.lineN):Fa(t)}else{var we=ni(t,p,p,-1),Re=ni(t,B,B+j,1);we&&Re?(G.view=G.view.slice(0,we.index).concat(zr(t,we.lineN,Re.lineN)).concat(G.view.slice(Re.index)),G.viewTo+=j):Fa(t)}var We=G.externalMeasured;We&&(B<We.lineN?We.lineN+=j:p<We.lineN+We.size&&(G.externalMeasured=null))}function ka(t,p,B){t.curOp.viewChanged=!0;var j=t.display,G=t.display.externalMeasured;if(G&&p>=G.lineN&&p<G.lineN+G.size&&(j.externalMeasured=null),p<j.viewFrom||p>=j.viewTo)return;var ne=j.view[ga(t,p)];if(ne.node==null)return;var ge=ne.changes||(ne.changes=[]);he(ge,B)==-1&&ge.push(B)}function Fa(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ni(t,p,B,j){var G=ga(t,p),ne,ge=t.display.view;if(!ca||B==t.doc.first+t.doc.size)return{index:G,lineN:B};for(var we=t.display.viewFrom,Re=0;Re<G;Re++)we+=ge[Re].size;if(we!=p){if(j>0){if(G==ge.length-1)return null;ne=we+ge[G].size-p,G++}else ne=we-p;p+=ne,B+=ne}for(;Bn(t.doc,B)!=B;){if(G==(j<0?0:ge.length-1))return null;B+=j*ge[G-(j<0?1:0)].size,G+=j}return{index:G,lineN:B}}function Fi(t,p,B){var j=t.display,G=j.view;G.length==0||p>=j.viewTo||B<=j.viewFrom?(j.view=zr(t,p,B),j.viewFrom=p):(j.viewFrom>p?j.view=zr(t,p,j.viewFrom).concat(j.view):j.viewFrom<p&&(j.view=j.view.slice(ga(t,p))),j.viewFrom=p,j.viewTo<B?j.view=j.view.concat(zr(t,j.viewTo,B)):j.viewTo>B&&(j.view=j.view.slice(0,ga(t,B)))),j.viewTo=B}function Ai(t){for(var p=t.display.view,B=0,j=0;j<p.length;j++){var G=p[j];!G.hidden&&(!G.node||G.changes)&&++B}return B}function La(t){t.display.input.showSelection(t.display.input.prepareSelection())}function bi(t,p){p===void 0&&(p=!0);for(var B=t.doc,j={},G=j.cursors=document.createDocumentFragment(),ne=j.selection=document.createDocumentFragment(),ge=0;ge<B.sel.ranges.length;ge++){if(!p&&ge==B.sel.primIndex)continue;var we=B.sel.ranges[ge];if(we.from().line>=t.display.viewTo||we.to().line<t.display.viewFrom)continue;var Re=we.empty();(Re||t.options.showCursorWhenSelecting)&&Si(t,we.head,G),Re||Ma(t,we,ne)}return j}function Si(t,p,B){var j=zn(t,p,"div",null,null,!t.options.singleCursorHeightPerLine),G=B.appendChild(T("div","\xA0","CodeMirror-cursor"));if(G.style.left=j.left+"px",G.style.top=j.top+"px",G.style.height=Math.max(0,j.bottom-j.top)*t.options.cursorHeight+"px",j.other){var ne=B.appendChild(T("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ne.style.display="",ne.style.left=j.other.left+"px",ne.style.top=j.other.top+"px",ne.style.height=(j.other.bottom-j.other.top)*.85+"px"}}function ja(t,p){return t.top-p.top||t.left-p.left}function Ma(t,p,B){var j=t.display,G=t.doc,ne=document.createDocumentFragment(),ge=dt(t.display),we=ge.left,Re=Math.max(j.sizerWidth,nt(t)-j.sizer.offsetLeft)-ge.right,We=G.direction=="ltr";function gt(br,Xr,ia,ea){Xr<0&&(Xr=0),Xr=Math.round(Xr),ea=Math.round(ea),ne.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+br+`px;
top: `+Xr+"px; width: "+(ia==null?Re-br:ia)+`px;
height: `+(ea-Xr)+"px"))}function At(br,Xr,ia){var ea=ln(G,br),wa=ea.text.length,Va,vi;function ti(ci,ji){return wr(t,qt(br,ci),"div",ea,ji)}function zi(ci,ji,Ci){var pi=dr(t,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=_t(ea,G.direction);return tt(Ui,Xr||0,ia==null?wa:ia,function(ci,ji,Ci,pi){var di=Ci=="ltr",ii=ti(ci,di?"left":"right"),Bi=ti(ji-1,di?"right":"left"),Ts=Xr==null&&ci==0,es=ia==null&&ji==wa,Oi=pi==0,Po=!Ui||pi==Ui.length-1;if(Bi.top-ii.top<=3){var _i=(We?Ts:es)&&Oi,ru=(We?es:Ts)&&Po,Fo=_i?we:(di?ii:Bi).left,ds=ru?Re:(di?Bi:ii).right;gt(Fo,ii.top,ds-Fo,ii.bottom)}else{var fs,Mi,Os,au;di?(fs=We&&Ts&&Oi?we:ii.left,Mi=We?Re:zi(ci,Ci,"before"),Os=We?we:zi(ji,Ci,"after"),au=We&&es&&Po?Re:Bi.right):(fs=We?zi(ci,Ci,"before"):we,Mi=!We&&Ts&&Oi?Re:ii.right,Os=!We&&es&&Po?we:Bi.left,au=We?zi(ji,Ci,"after"):Re),gt(fs,ii.top,Mi-fs,ii.bottom),ii.bottom<Bi.top&&gt(we,ii.bottom,null,Bi.top),gt(Os,Bi.top,au-Os,Bi.bottom)}(!Va||ja(ii,Va)<0)&&(Va=ii),ja(Bi,Va)<0&&(Va=Bi),(!vi||ja(ii,vi)<0)&&(vi=ii),ja(Bi,vi)<0&&(vi=Bi)}),{start:Va,end:vi}}var nn=p.from(),Gt=p.to();if(nn.line==Gt.line)At(nn.line,nn.ch,Gt.ch);else{var wn=ln(G,nn.line),Hn=ln(G,Gt.line),Zn=an(wn)==an(Hn),_r=At(nn.line,nn.ch,Zn?wn.text.length+1:null).end,Ur=At(Gt.line,Zn?0:null,Gt.ch).start;Zn&&(_r.top<Ur.top-2?(gt(_r.right,_r.top,null,_r.bottom),gt(we,Ur.top,Ur.left,Ur.bottom)):gt(_r.right,_r.top,Ur.left-_r.right,_r.bottom)),_r.bottom<Ur.top&&gt(we,_r.bottom,null,Ur.top)}B.appendChild(ne)}function Za(t){if(!t.state.focused)return;var p=t.display;clearInterval(p.blinker);var B=!0;p.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?p.blinker=setInterval(function(){t.hasFocus()||no(t),p.cursorDiv.style.visibility=(B=!B)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}function to(t){t.state.focused||(t.display.input.focus(),Ii(t))}function Mo(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,no(t))},100)}function Ii(t,p){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(Et(t,"focus",t,p),t.state.focused=!0,H(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),e&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Za(t)}function no(t,p){if(t.state.delayingBlurEvent)return;t.state.focused&&(Et(t,"blur",t,p),t.state.focused=!1,x(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function ro(t){for(var p=t.display,B=p.lineDiv.offsetTop,j=0;j<p.view.length;j++){var G=p.view[j],ne=t.options.lineWrapping,ge=void 0,we=0;if(G.hidden)continue;if(O&&m<8){var Re=G.node.offsetTop+G.node.offsetHeight;ge=Re-B,B=Re}else{var We=G.node.getBoundingClientRect();ge=We.bottom-We.top,!ne&&G.text.firstChild&&(we=G.text.firstChild.getBoundingClientRect().right-We.left-1)}var gt=G.line.height-ge;if((gt>.005||gt<-.005)&&(Cr(G.line,ge),mi(G.line),G.rest))for(var At=0;At<G.rest.length;At++)mi(G.rest[At]);if(we>t.display.sizerWidth){var nn=Math.ceil(we/Mr(t.display));nn>t.display.maxLineLength&&(t.display.maxLineLength=nn,t.display.maxLine=G.line,t.display.maxLineChanged=!0)}}}function mi(t){if(t.widgets)for(var p=0;p<t.widgets.length;++p){var B=t.widgets[p],j=B.node.parentNode;j&&(B.height=j.offsetHeight)}}function uo(t,p,B){var j=B&&B.top!=null?Math.max(0,B.top):t.scroller.scrollTop;j=Math.floor(j-_a(t));var G=B&&B.bottom!=null?B.bottom:j+t.wrapper.clientHeight,ne=Or(p,j),ge=Or(p,G);if(B&&B.ensure){var we=B.ensure.from.line,Re=B.ensure.to.line;we<ne?(ne=we,ge=Or(p,Fr(ln(p,we))+t.wrapper.clientHeight)):Math.min(Re,p.lastLine())>=ge&&(ne=Or(p,Fr(ln(p,Re))-t.wrapper.clientHeight),ge=Re)}return{from:ne,to:Math.max(ge,ne+1)}}function Io(t,p){if(jt(t,"scrollCursorIntoView"))return;var B=t.display,j=B.sizer.getBoundingClientRect(),G=null;if(p.top+j.top<0?G=!0:p.bottom+j.top>(window.innerHeight||document.documentElement.clientHeight)&&(G=!1),G!=null&&!r){var ne=T("div","\u200B",null,`position: absolute;
top: `+(p.top-B.viewOffset-_a(t.display))+`px;
height: `+(p.bottom-p.top+yt(t)+B.barHeight)+`px;
left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");t.display.lineSpace.appendChild(ne),ne.scrollIntoView(G),t.display.lineSpace.removeChild(ne)}}function Lo(t,p,B,j){j==null&&(j=0);var G;!t.options.lineWrapping&&p==B&&(p=p.ch?qt(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,B=p.sticky=="before"?qt(p.line,p.ch+1,"before"):p);for(var ne=0;ne<5;ne++){var ge=!1,we=zn(t,p),Re=!B||B==p?we:zn(t,B);G={left:Math.min(we.left,Re.left),top:Math.min(we.top,Re.top)-j,right:Math.max(we.left,Re.left),bottom:Math.max(we.bottom,Re.bottom)+j};var We=Vi(t,G),gt=t.doc.scrollTop,At=t.doc.scrollLeft;if(We.scrollTop!=null&&(Ji(t,We.scrollTop),Math.abs(t.doc.scrollTop-gt)>1&&(ge=!0)),We.scrollLeft!=null&&(ei(t,We.scrollLeft),Math.abs(t.doc.scrollLeft-At)>1&&(ge=!0)),!ge)break}return G}function bo(t,p){var B=Vi(t,p);B.scrollTop!=null&&Ji(t,B.scrollTop),B.scrollLeft!=null&&ei(t,B.scrollLeft)}function Vi(t,p){var B=t.display,j=vr(t.display);p.top<0&&(p.top=0);var G=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:B.scroller.scrollTop,ne=Me(t),ge={};p.bottom-p.top>ne&&(p.bottom=p.top+ne);var we=t.doc.height+qe(B),Re=p.top<j,We=p.bottom>we-j;if(p.top<G)ge.scrollTop=Re?0:p.top;else if(p.bottom>G+ne){var gt=Math.min(p.top,(We?we:p.bottom)-ne);gt!=G&&(ge.scrollTop=gt)}var At=t.options.fixedGutter?0:B.gutters.offsetWidth,nn=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:B.scroller.scrollLeft-At,Gt=nt(t)-B.gutters.offsetWidth,wn=p.right-p.left>Gt;return wn&&(p.right=p.left+Gt),p.left<10?ge.scrollLeft=0:p.left<nn?ge.scrollLeft=Math.max(0,p.left+At-(wn?0:10)):p.right>Gt+nn-3&&(ge.scrollLeft=p.right+(wn?0:10)-Gt),ge}function co(t,p){if(p==null)return;yo(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+p}function Xi(t){yo(t);var p=t.getCursor();t.curOp.scrollToPos={from:p,to:p,margin:t.options.cursorScrollMargin}}function Yi(t,p,B){(p!=null||B!=null)&&yo(t),p!=null&&(t.curOp.scrollLeft=p),B!=null&&(t.curOp.scrollTop=B)}function No(t,p){yo(t),t.curOp.scrollToPos=p}function yo(t){var p=t.curOp.scrollToPos;if(p){t.curOp.scrollToPos=null;var B=En(t,p.from),j=En(t,p.to);ao(t,B,j,p.margin)}}function ao(t,p,B,j){var G=Vi(t,{left:Math.min(p.left,B.left),top:Math.min(p.top,B.top)-j,right:Math.max(p.right,B.right),bottom:Math.max(p.bottom,B.bottom)+j});Yi(t,G.scrollLeft,G.scrollTop)}function Ji(t,p){if(Math.abs(t.doc.scrollTop-p)<2)return;A||fo(t,{top:p}),Qi(t,p,!0),A&&fo(t),ai(t,100)}function Qi(t,p,B){if(p=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,p)),t.display.scroller.scrollTop==p&&!B)return;t.doc.scrollTop=p,t.display.scrollbars.setScrollTop(p),t.display.scroller.scrollTop!=p&&(t.display.scroller.scrollTop=p)}function ei(t,p,B,j){if(p=Math.max(0,Math.min(p,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(B?p==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-p)<2)&&!j)return;t.doc.scrollLeft=p,ya(t),t.display.scroller.scrollLeft!=p&&(t.display.scroller.scrollLeft=p),t.display.scrollbars.setScrollLeft(p)}function Li(t){var p=t.display,B=p.gutters.offsetWidth,j=Math.round(t.doc.height+qe(t.display));return{clientHeight:p.scroller.clientHeight,viewHeight:p.wrapper.clientHeight,scrollWidth:p.scroller.scrollWidth,clientWidth:p.scroller.clientWidth,viewWidth:p.wrapper.clientWidth,barLeft:t.options.fixedGutter?B:0,docHeight:j,scrollHeight:j+yt(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:B}}var Di=function(t,p,B){this.cm=B;var j=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),G=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");j.tabIndex=G.tabIndex=-1,t(j),t(G),Ue(j,"scroll",function(){j.clientHeight&&p(j.scrollTop,"vertical")}),Ue(G,"scroll",function(){G.clientWidth&&p(G.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Di.prototype.update=function(t){var p=t.scrollWidth>t.clientWidth+1,B=t.scrollHeight>t.clientHeight+1,j=t.nativeBarWidth;if(B){this.vert.style.display="block",this.vert.style.bottom=p?j+"px":"0";var G=t.viewHeight-(p?j:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+G)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=B?j+"px":"0",this.horiz.style.left=t.barLeft+"px";var ne=t.viewWidth-t.barLeft-(B?j:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(j==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:B?j:0,bottom:p?j:0}},Di.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Di.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Di.prototype.zeroWidthHack=function(){var t=s&&!i?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},Di.prototype.enableZeroWidthBar=function(t,p,B){t.style.pointerEvents="auto";function j(){var G=t.getBoundingClientRect(),ne=B=="vert"?document.elementFromPoint(G.right-1,(G.top+G.bottom)/2):document.elementFromPoint((G.right+G.left)/2,G.bottom-1);ne!=t?t.style.pointerEvents="none":p.set(1e3,j)}p.set(1e3,j)},Di.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.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(t,p){p||(p=Li(t));var B=t.display.barWidth,j=t.display.barHeight;Eo(t,p);for(var G=0;G<4&&B!=t.display.barWidth||j!=t.display.barHeight;G++)B!=t.display.barWidth&&t.options.lineWrapping&&ro(t),Eo(t,Li(t)),B=t.display.barWidth,j=t.display.barHeight}function Eo(t,p){var B=t.display,j=B.scrollbars.update(p);B.sizer.style.paddingRight=(B.barWidth=j.right)+"px",B.sizer.style.paddingBottom=(B.barHeight=j.bottom)+"px",B.heightForcer.style.borderBottom=j.bottom+"px solid transparent",j.right&&j.bottom?(B.scrollbarFiller.style.display="block",B.scrollbarFiller.style.height=j.bottom+"px",B.scrollbarFiller.style.width=j.right+"px"):B.scrollbarFiller.style.display="",j.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(B.gutterFiller.style.display="block",B.gutterFiller.style.height=j.bottom+"px",B.gutterFiller.style.width=p.gutterWidth+"px"):B.gutterFiller.style.display=""}var xo={native:Di,null:Zi};function Co(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&x(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new xo[t.options.scrollbarStyle](function(p){t.display.wrapper.insertBefore(p,t.display.scrollbarFiller),Ue(p,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),p.setAttribute("cm-not-content","true")},function(p,B){B=="horizontal"?ei(t,p):Ji(t,p)},t),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)}var io=0;function Ni(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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},$r(t.curOp)}function qi(t){var p=t.curOp;p&&Kt(p,function(B){for(var j=0;j<B.ops.length;j++)B.ops[j].cm.curOp=null;ko(B)})}function ko(t){for(var p=t.ops,B=0;B<p.length;B++)oo(p[B]);for(var j=0;j<p.length;j++)so(p[j]);for(var G=0;G<p.length;G++)So(p[G]);for(var ne=0;ne<p.length;ne++)Uo(p[ne]);for(var ge=0;ge<p.length;ge++)jo(p[ge])}function oo(t){var p=t.cm,B=p.display;Bo(p),t.updateMaxLine&&Xt(p),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<B.viewFrom||t.scrollToPos.to.line>=B.viewTo)||B.maxLineChanged&&p.options.lineWrapping,t.update=t.mustUpdate&&new yi(p,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function so(t){t.updatedDisplay=t.mustUpdate&&Wi(t.cm,t.update)}function So(t){var p=t.cm,B=p.display;t.updatedDisplay&&ro(p),t.barMeasure=Li(p),B.maxLineChanged&&!p.options.lineWrapping&&(t.adjustWidthTo=$e(p,B.maxLine,B.maxLine.text.length).left+3,p.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(B.scroller.clientWidth,B.sizer.offsetLeft+t.adjustWidthTo+yt(p)+p.display.barWidth),t.maxScrollLeft=Math.max(0,B.sizer.offsetLeft+t.adjustWidthTo-nt(p))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=B.input.prepareSelection())}function Uo(t){var p=t.cm;t.adjustWidthTo!=null&&(p.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<p.doc.scrollLeft&&ei(p,Math.min(p.display.scroller.scrollLeft,t.maxScrollLeft),!0),p.display.maxLineChanged=!1);var B=t.focus&&t.focus==V();t.preparedSelection&&p.display.input.showSelection(t.preparedSelection,B),(t.updatedDisplay||t.startHeight!=p.doc.height)&&Ri(p,t.barMeasure),t.updatedDisplay&&Da(p,t.barMeasure),t.selectionChanged&&Za(p),p.state.focused&&t.updateInput&&p.display.input.reset(t.typing),B&&to(t.cm)}function jo(t){var p=t.cm,B=p.display,j=p.doc;if(t.updatedDisplay&&Oo(p,t.update),B.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(B.wheelStartX=B.wheelStartY=null),t.scrollTop!=null&&Qi(p,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ei(p,t.scrollLeft,!0,!0),t.scrollToPos){var G=Lo(p,X(j,t.scrollToPos.from),X(j,t.scrollToPos.to),t.scrollToPos.margin);Io(p,G)}var ne=t.maybeHiddenMarkers,ge=t.maybeUnhiddenMarkers;if(ne)for(var we=0;we<ne.length;++we)ne[we].lines.length||Et(ne[we],"hide");if(ge)for(var Re=0;Re<ge.length;++Re)ge[Re].lines.length&&Et(ge[Re],"unhide");B.wrapper.offsetHeight&&(j.scrollTop=p.display.scroller.scrollTop),t.changeObjs&&Et(p,"changes",p,t.changeObjs),t.update&&t.update.finish()}function fi(t,p){if(t.curOp)return p();Ni(t);try{return p()}finally{qi(t)}}function Ha(t,p){return function(){if(t.curOp)return p.apply(t,arguments);Ni(t);try{return p.apply(t,arguments)}finally{qi(t)}}}function ri(t){return function(){if(this.curOp)return t.apply(this,arguments);Ni(this);try{return t.apply(this,arguments)}finally{qi(this)}}}function Xa(t){return function(){var p=this.cm;if(!p||p.curOp)return t.apply(this,arguments);Ni(p);try{return t.apply(this,arguments)}finally{qi(p)}}}function ai(t,p){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(p,F(wo,t))}function wo(t){var p=t.doc;if(p.highlightFrontier>=t.display.viewTo)return;var B=+new Date+t.options.workTime,j=In(t,p.highlightFrontier),G=[];p.iter(j.line,Math.min(p.first+p.size,t.display.viewTo+500),function(ne){if(j.line>=t.display.viewFrom){var ge=ne.styles,we=ne.text.length>t.options.maxHighlightLength?on(p.mode,j.state):null,Re=st(t,ne,j,!0);we&&(j.state=we),ne.styles=Re.styles;var We=ne.styleClasses,gt=Re.classes;gt?ne.styleClasses=gt:We&&(ne.styleClasses=null);for(var At=!ge||ge.length!=ne.styles.length||We!=gt&&(!We||!gt||We.bgClass!=gt.bgClass||We.textClass!=gt.textClass),nn=0;!At&&nn<ge.length;++nn)At=ge[nn]!=ne.styles[nn];At&&G.push(j.line),ne.stateAfter=j.save(),j.nextLine()}else ne.text.length<=t.options.maxHighlightLength&&Vn(t,ne.text,j),ne.stateAfter=j.line%5==0?j.save():null,j.nextLine();if(+new Date>B)return ai(t,t.options.workDelay),!0}),p.highlightFrontier=j.line,p.modeFrontier=Math.max(p.modeFrontier,j.line),G.length&&fi(t,function(){for(var ne=0;ne<G.length;ne++)ka(t,G[ne],"text")})}var yi=function(t,p,B){var j=t.display;this.viewport=p,this.visible=uo(j,t.doc,p),this.editorIsHidden=!j.wrapper.offsetWidth,this.wrapperHeight=j.wrapper.clientHeight,this.wrapperWidth=j.wrapper.clientWidth,this.oldDisplayWidth=nt(t),this.force=B,this.dims=tr(t),this.events=[]};yi.prototype.signal=function(t,p){Be(t,p)&&this.events.push(arguments)},yi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Et.apply(null,this.events[t])};function Bo(t){var p=t.display;!p.scrollbarsClipped&&p.scroller.offsetWidth&&(p.nativeBarWidth=p.scroller.offsetWidth-p.scroller.clientWidth,p.heightForcer.style.height=yt(t)+"px",p.sizer.style.marginBottom=-p.nativeBarWidth+"px",p.sizer.style.borderRightWidth=yt(t)+"px",p.scrollbarsClipped=!0)}function To(t){if(t.hasFocus())return null;var p=V();if(!p||!N(t.display.lineDiv,p))return null;var B={activeElt:p};if(window.getSelection){var j=window.getSelection();j.anchorNode&&j.extend&&N(t.display.lineDiv,j.anchorNode)&&(B.anchorNode=j.anchorNode,B.anchorOffset=j.anchorOffset,B.focusNode=j.focusNode,B.focusOffset=j.focusOffset)}return B}function $i(t){if(!t||!t.activeElt||t.activeElt==V())return;if(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode)){var p=window.getSelection(),B=document.createRange();B.setEnd(t.anchorNode,t.anchorOffset),B.collapse(!1),p.removeAllRanges(),p.addRange(B),p.extend(t.focusNode,t.focusOffset)}}function Wi(t,p){var B=t.display,j=t.doc;if(p.editorIsHidden)return Fa(t),!1;if(!p.force&&p.visible.from>=B.viewFrom&&p.visible.to<=B.viewTo&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo)&&B.renderedView==B.view&&Ai(t)==0)return!1;Ga(t)&&(Fa(t),p.dims=tr(t));var G=j.first+j.size,ne=Math.max(p.visible.from-t.options.viewportMargin,j.first),ge=Math.min(G,p.visible.to+t.options.viewportMargin);B.viewFrom<ne&&ne-B.viewFrom<20&&(ne=Math.max(j.first,B.viewFrom)),B.viewTo>ge&&B.viewTo-ge<20&&(ge=Math.min(G,B.viewTo)),ca&&(ne=Bn(t.doc,ne),ge=Pn(t.doc,ge));var we=ne!=B.viewFrom||ge!=B.viewTo||B.lastWrapHeight!=p.wrapperHeight||B.lastWrapWidth!=p.wrapperWidth;Fi(t,ne,ge),B.viewOffset=Fr(ln(t.doc,B.viewFrom)),t.display.mover.style.top=B.viewOffset+"px";var Re=Ai(t);if(!we&&Re==0&&!p.force&&B.renderedView==B.view&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo))return!1;var We=To(t);return Re>4&&(B.lineDiv.style.display="none"),Wo(t,B.updateLineNumbers,p.dims),Re>4&&(B.lineDiv.style.display=""),B.renderedView=B.view,$i(We),S(B.cursorDiv),S(B.selectionDiv),B.gutters.style.height=B.sizer.style.minHeight=0,we&&(B.lastWrapHeight=p.wrapperHeight,B.lastWrapWidth=p.wrapperWidth,ai(t,400)),B.updateLineNumbers=null,!0}function Oo(t,p){for(var B=p.viewport,j=!0;;j=!1){if(!j||!t.options.lineWrapping||p.oldDisplayWidth==nt(t)){if(B&&B.top!=null&&(B={top:Math.min(t.doc.height+qe(t.display)-Me(t),B.top)}),p.visible=uo(t.display,t.doc,B),p.visible.from>=t.display.viewFrom&&p.visible.to<=t.display.viewTo)break}else j&&(p.visible=uo(t.display,t.doc,B));if(!Wi(t,p))break;ro(t);var G=Li(t);La(t),Ri(t,G),Da(t,G),p.force=!1}p.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(p.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function fo(t,p){var B=new yi(t,p);if(Wi(t,B)){ro(t),Oo(t,B);var j=Li(t);La(t),Ri(t,j),Da(t,j),B.finish()}}function Wo(t,p,B){var j=t.display,G=t.options.lineNumbers,ne=j.lineDiv,ge=ne.firstChild;function we(wn){var Hn=wn.nextSibling;return e&&s&&t.display.currentWheelTarget==wn?wn.style.display="none":wn.parentNode.removeChild(wn),Hn}for(var Re=j.view,We=j.viewFrom,gt=0;gt<Re.length;gt++){var At=Re[gt];if(!At.hidden)if(!At.node||At.node.parentNode!=ne){var nn=Yr(t,At,We,B);ne.insertBefore(nn,ge)}else{for(;ge!=At.node;)ge=we(ge);var Gt=G&&p!=null&&p<=We&&At.lineNumber;At.changes&&(he(At.changes,"gutter")>-1&&(Gt=!1),$n(t,At,We,B)),Gt&&(S(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(sn(t.options,We)))),ge=At.node.nextSibling}We+=At.size}for(;ge;)ge=we(ge)}function lo(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function Da(t,p){t.display.sizer.style.minHeight=p.docHeight+"px",t.display.heightForcer.style.top=p.docHeight+"px",t.display.gutters.style.height=p.docHeight+t.display.barHeight+yt(t)+"px"}function ya(t){var p=t.display,B=p.view;if(!p.alignWidgets&&(!p.gutters.firstChild||!t.options.fixedGutter))return;for(var j=pa(p)-p.scroller.scrollLeft+t.doc.scrollLeft,G=p.gutters.offsetWidth,ne=j+"px",ge=0;ge<B.length;ge++)if(!B[ge].hidden){t.options.fixedGutter&&(B[ge].gutter&&(B[ge].gutter.style.left=ne),B[ge].gutterBackground&&(B[ge].gutterBackground.style.left=ne));var we=B[ge].alignable;if(we)for(var Re=0;Re<we.length;Re++)we[Re].style.left=ne}t.options.fixedGutter&&(p.gutters.style.left=j+G+"px")}function Ga(t){if(!t.options.lineNumbers)return!1;var p=t.doc,B=sn(t.options,p.first+p.size-1),j=t.display;if(B.length!=j.lineNumChars){var G=j.measure.appendChild(T("div",[T("div",B)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ne=G.firstChild.offsetWidth,ge=G.offsetWidth-ne;return j.lineGutter.style.width="",j.lineNumInnerWidth=Math.max(ne,j.lineGutter.offsetWidth-ge)+1,j.lineNumWidth=j.lineNumInnerWidth+ge,j.lineNumChars=j.lineNumInnerWidth?B.length:-1,j.lineGutter.style.width=j.lineNumWidth+"px",lo(t.display),!0}return!1}function ui(t,p){for(var B=[],j=!1,G=0;G<t.length;G++){var ne=t[G],ge=null;if(typeof ne!="string"&&(ge=ne.style,ne=ne.className),ne=="CodeMirror-linenumbers")if(p)j=!0;else continue;B.push({className:ne,style:ge})}return p&&!j&&B.push({className:"CodeMirror-linenumbers",style:null}),B}function eo(t){var p=t.gutters,B=t.gutterSpecs;S(p),t.lineGutter=null;for(var j=0;j<B.length;++j){var G=B[j],ne=G.className,ge=G.style,we=p.appendChild(T("div",null,"CodeMirror-gutter "+ne));ge&&(we.style.cssText=ge),ne=="CodeMirror-linenumbers"&&(t.lineGutter=we,we.style.width=(t.lineNumWidth||1)+"px")}p.style.display=B.length?"":"none",lo(t)}function ki(t){eo(t.display),Na(t),ya(t)}function ho(t,p,B,j){var G=this;this.input=B,G.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),G.scrollbarFiller.setAttribute("cm-not-content","true"),G.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),G.gutterFiller.setAttribute("cm-not-content","true"),G.lineDiv=U("div",null,"CodeMirror-code"),G.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),G.cursorDiv=T("div",null,"CodeMirror-cursors"),G.measure=T("div",null,"CodeMirror-measure"),G.lineMeasure=T("div",null,"CodeMirror-measure"),G.lineSpace=U("div",[G.measure,G.lineMeasure,G.selectionDiv,G.cursorDiv,G.lineDiv],null,"position: relative; outline: none");var ne=U("div",[G.lineSpace],"CodeMirror-lines");G.mover=T("div",[ne],null,"position: relative"),G.sizer=T("div",[G.mover],"CodeMirror-sizer"),G.sizerWidth=null,G.heightForcer=T("div",null,null,"position: absolute; height: "+de+"px; width: 1px;"),G.gutters=T("div",null,"CodeMirror-gutters"),G.lineGutter=null,G.scroller=T("div",[G.sizer,G.heightForcer,G.gutters],"CodeMirror-scroll"),G.scroller.setAttribute("tabIndex","-1"),G.wrapper=T("div",[G.scrollbarFiller,G.gutterFiller,G.scroller],"CodeMirror"),O&&m<8&&(G.gutters.style.zIndex=-1,G.scroller.style.paddingRight=0),!e&&!(A&&d)&&(G.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(G.wrapper):t(G.wrapper)),G.viewFrom=G.viewTo=p.first,G.reportedViewFrom=G.reportedViewTo=p.first,G.view=[],G.renderedView=null,G.externalMeasured=null,G.viewOffset=0,G.lastWrapHeight=G.lastWrapWidth=0,G.updateLineNumbers=null,G.nativeBarWidth=G.barHeight=G.barWidth=0,G.scrollbarsClipped=!1,G.lineNumWidth=G.lineNumInnerWidth=G.lineNumChars=null,G.alignWidgets=!1,G.cachedCharWidth=G.cachedTextHeight=G.cachedPaddingH=null,G.maxLine=null,G.maxLineLength=0,G.maxLineChanged=!1,G.wheelDX=G.wheelDY=G.wheelStartX=G.wheelStartY=null,G.shift=!1,G.selForContextMenu=null,G.activeTouch=null,G.gutterSpecs=ui(j.gutters,j.lineNumbers),eo(G),B.init(G)}var wi=0,qa=null;O?qa=-.53:A?qa=15:a?qa=-.7:n&&(qa=-1/3);function po(t){var p=t.wheelDeltaX,B=t.wheelDeltaY;return p==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(p=t.detail),B==null&&t.detail&&t.axis==t.VERTICAL_AXIS?B=t.detail:B==null&&(B=t.wheelDelta),{x:p,y:B}}function Hi(t){var p=po(t);return p.x*=qa,p.y*=qa,p}function mo(t,p){var B=po(p),j=B.x,G=B.y,ne=t.display,ge=ne.scroller,we=ge.scrollWidth>ge.clientWidth,Re=ge.scrollHeight>ge.clientHeight;if(!(j&&we||G&&Re))return;if(G&&s&&e){e:for(var We=p.target,gt=ne.view;We!=ge;We=We.parentNode)for(var At=0;At<gt.length;At++)if(gt[At].node==We){t.display.currentWheelTarget=We;break e}}if(j&&!A&&!u&&qa!=null){G&&Re&&Ji(t,Math.max(0,ge.scrollTop+G*qa)),ei(t,Math.max(0,ge.scrollLeft+j*qa)),(!G||G&&Re)&&Ce(p),ne.wheelStartX=null;return}if(G&&qa!=null){var nn=G*qa,Gt=t.doc.scrollTop,wn=Gt+ne.wrapper.clientHeight;nn<0?Gt=Math.max(0,Gt+nn-50):wn=Math.min(t.doc.height,wn+nn+50),fo(t,{top:Gt,bottom:wn})}wi<20&&(ne.wheelStartX==null?(ne.wheelStartX=ge.scrollLeft,ne.wheelStartY=ge.scrollTop,ne.wheelDX=j,ne.wheelDY=G,setTimeout(function(){if(ne.wheelStartX==null)return;var Hn=ge.scrollLeft-ne.wheelStartX,Zn=ge.scrollTop-ne.wheelStartY,_r=Zn&&ne.wheelDY&&Zn/ne.wheelDY||Hn&&ne.wheelDX&&Hn/ne.wheelDX;if(ne.wheelStartX=ne.wheelStartY=null,!_r)return;qa=(qa*wi+_r)/(wi+1),++wi},200)):(ne.wheelDX+=j,ne.wheelDY+=G))}var hi=function(t,p){this.ranges=t,this.primIndex=p};hi.prototype.primary=function(){return this.ranges[this.primIndex]},hi.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var p=0;p<this.ranges.length;p++){var B=this.ranges[p],j=t.ranges[p];if(!Ir(B.anchor,j.anchor)||!Ir(B.head,j.head))return!1}return!0},hi.prototype.deepCopy=function(){for(var t=[],p=0;p<this.ranges.length;p++)t[p]=new Pa(Ar(this.ranges[p].anchor),Ar(this.ranges[p].head));return new hi(t,this.primIndex)},hi.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},hi.prototype.contains=function(t,p){p||(p=t);for(var B=0;B<this.ranges.length;B++){var j=this.ranges[B];if(On(p,j.from())>=0&&On(t,j.to())<=0)return B}return-1};var Pa=function(t,p){this.anchor=t,this.head=p};Pa.prototype.from=function(){return pr(this.anchor,this.head)},Pa.prototype.to=function(){return yr(this.anchor,this.head)},Pa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function sa(t,p,B){var j=t&&t.options.selectionsMayTouch,G=p[B];p.sort(function(nn,Gt){return On(nn.from(),Gt.from())}),B=he(p,G);for(var ne=1;ne<p.length;ne++){var ge=p[ne],we=p[ne-1],Re=On(we.to(),ge.from());if(j&&!ge.empty()?Re>0:Re>=0){var We=pr(we.from(),ge.from()),gt=yr(we.to(),ge.to()),At=we.empty()?ge.from()==ge.head:we.from()==we.head;ne<=B&&--B,p.splice(--ne,2,new Pa(At?gt:We,At?We:gt))}}return new hi(p,B)}function Er(t,p){return new hi([new Pa(t,p||t)],0)}function Zr(t){return t.text?qt(t.from.line+t.text.length-1,$(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function va(t,p){if(On(t,p.from)<0)return t;if(On(t,p.to)<=0)return Zr(p);var B=t.line+p.text.length-(p.to.line-p.from.line)-1,j=t.ch;return t.line==p.to.line&&(j+=Zr(p).ch-p.to.ch),qt(B,j)}function Wa(t,p){for(var B=[],j=0;j<t.sel.ranges.length;j++){var G=t.sel.ranges[j];B.push(new Pa(va(G.anchor,p),va(G.head,p)))}return sa(t.cm,B,t.sel.primIndex)}function Ei(t,p,B){return t.line==p.line?qt(B.line,t.ch-p.ch+B.ch):qt(B.line+(t.line-p.line),t.ch)}function Pi(t,p,B){for(var j=[],G=qt(t.first,0),ne=G,ge=0;ge<p.length;ge++){var we=p[ge],Re=Ei(we.from,G,ne),We=Ei(Zr(we),G,ne);if(G=we.to,ne=We,B=="around"){var gt=t.sel.ranges[ge],At=On(gt.head,gt.anchor)<0;j[ge]=new Pa(At?We:Re,At?Re:We)}else j[ge]=new Pa(Re,Re)}return new hi(j,t.sel.primIndex)}function $a(t){t.doc.mode=Lt(t.options,t.doc.modeOption),xi(t)}function xi(t){t.doc.iter(function(p){p.stateAfter&&(p.stateAfter=null),p.styles&&(p.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ai(t,100),t.state.modeGen++,t.curOp&&Na(t)}function Ki(t,p){return p.from.ch==0&&p.to.ch==0&&$(p.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function go(t,p,B,j){function G(Ur){return B?B[Ur]:null}function ne(Ur,br,Xr){Rn(Ur,br,Xr,j),Yt(Ur,"change",Ur,p)}function ge(Ur,br){for(var Xr=[],ia=Ur;ia<br;++ia)Xr.push(new hn(We[ia],G(ia),j));return Xr}var we=p.from,Re=p.to,We=p.text,gt=ln(t,we.line),At=ln(t,Re.line),nn=$(We),Gt=G(We.length-1),wn=Re.line-we.line;if(p.full)t.insert(0,ge(0,We.length)),t.remove(We.length,t.size-We.length);else if(Ki(t,p)){var Hn=ge(0,We.length-1);ne(At,At.text,Gt),wn&&t.remove(we.line,wn),Hn.length&&t.insert(we.line,Hn)}else if(gt==At)if(We.length==1)ne(gt,gt.text.slice(0,we.ch)+nn+gt.text.slice(Re.ch),Gt);else{var Zn=ge(1,We.length-1);Zn.push(new hn(nn+gt.text.slice(Re.ch),Gt,j)),ne(gt,gt.text.slice(0,we.ch)+We[0],G(0)),t.insert(we.line+1,Zn)}else if(We.length==1)ne(gt,gt.text.slice(0,we.ch)+We[0]+At.text.slice(Re.ch),G(0)),t.remove(we.line+1,wn);else{ne(gt,gt.text.slice(0,we.ch)+We[0],G(0)),ne(At,nn+At.text.slice(Re.ch),Gt);var _r=ge(1,We.length-1);wn>1&&t.remove(we.line+1,wn-1),t.insert(we.line+1,_r)}Yt(t,"change",t,p)}function Qa(t,p,B){function j(G,ne,ge){if(G.linked)for(var we=0;we<G.linked.length;++we){var Re=G.linked[we];if(Re.doc==ne)continue;var We=ge&&Re.sharedHist;if(B&&!We)continue;p(Re.doc,We),j(Re.doc,G,We)}}j(t,null,!0)}function As(t,p){if(p.cm)throw new Error("This document is already in use.");t.doc=p,p.cm=t,ba(t),$a(t),Ys(t),t.options.lineWrapping||Xt(t),t.options.mode=p.modeOption,Na(t)}function Ys(t){(t.doc.direction=="rtl"?H:x)(t.display.lineDiv,"CodeMirror-rtl")}function Pl(t){fi(t,function(){Ys(t),Na(t)})}function hs(t){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=t||1}function Ds(t,p){var B={from:Ar(p.from),to:Zr(p),text:ar(t,p.from,p.to)};return Rs(t,B,p.from.line,p.to.line+1),Qa(t,function(j){return Rs(j,B,p.from.line,p.to.line+1)},!0),B}function Js(t){for(;t.length;){var p=$(t);if(p.ranges)t.pop();else break}}function Ml(t,p){if(p)return Js(t.done),$(t.done);if(t.done.length&&!$(t.done).ranges)return $(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),$(t.done)}function Qs(t,p,B,j){var G=t.history;G.undone.length=0;var ne=+new Date,ge,we;if((G.lastOp==j||G.lastOrigin==p.origin&&p.origin&&(p.origin.charAt(0)=="+"&&G.lastModTime>ne-(t.cm?t.cm.options.historyEventDelay:500)||p.origin.charAt(0)=="*"))&&(ge=Ml(G,G.lastOp==j)))we=$(ge.changes),On(p.from,p.to)==0&&On(p.from,we.to)==0?we.to=Zr(p):ge.changes.push(Ds(t,p));else{var Re=$(G.done);for((!Re||!Re.ranges)&&ms(t.sel,G.done),ge={changes:[Ds(t,p)],generation:G.generation},G.done.push(ge);G.done.length>G.undoDepth;)G.done.shift(),G.done[0].ranges||G.done.shift()}G.done.push(B),G.generation=++G.maxGeneration,G.lastModTime=G.lastSelTime=ne,G.lastOp=G.lastSelOp=j,G.lastOrigin=G.lastSelOrigin=p.origin,we||Et(t,"historyAdded")}function Il(t,p,B,j){var G=p.charAt(0);return G=="*"||G=="+"&&B.ranges.length==j.ranges.length&&B.somethingSelected()==j.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ps(t,p,B,j){var G=t.history,ne=j&&j.origin;B==G.lastSelOp||ne&&G.lastSelOrigin==ne&&(G.lastModTime==G.lastSelTime&&G.lastOrigin==ne||Il(t,ne,$(G.done),p))?G.done[G.done.length-1]=p:ms(p,G.done),G.lastSelTime=+new Date,G.lastSelOrigin=ne,G.lastSelOp=B,j&&j.clearRedo!==!1&&Js(G.undone)}function ms(t,p){var B=$(p);B&&B.ranges&&B.equals(t)||p.push(t)}function Rs(t,p,B,j){var G=p["spans_"+t.id],ne=0;t.iter(Math.max(t.first,B),Math.min(t.first+t.size,j),function(ge){ge.markedSpans&&((G||(G=p["spans_"+t.id]={}))[ne]=ge.markedSpans),++ne})}function gs(t){if(!t)return null;for(var p,B=0;B<t.length;++B)t[B].marker.explicitlyCleared?p||(p=t.slice(0,B)):p&&p.push(t[B]);return p?p.length?p:null:t}function Zs(t,p){var B=p["spans_"+t.id];if(!B)return null;for(var j=[],G=0;G<p.text.length;++G)j.push(gs(B[G]));return j}function Ps(t,p){var B=Zs(t,p),j=la(t,p);if(!B)return j;if(!j)return B;for(var G=0;G<B.length;++G){var ne=B[G],ge=j[G];if(ne&&ge){e:for(var we=0;we<ge.length;++we){for(var Re=ge[we],We=0;We<ne.length;++We)if(ne[We].marker==Re.marker)continue e;ne.push(Re)}}else ge&&(B[G]=ge)}return B}function Ho(t,p,B){for(var j=[],G=0;G<t.length;++G){var ne=t[G];if(ne.ranges){j.push(B?hi.prototype.deepCopy.call(ne):ne);continue}var ge=ne.changes,we=[];j.push({changes:we});for(var Re=0;Re<ge.length;++Re){var We=ge[Re],gt=void 0;if(we.push({from:We.from,to:We.to,text:We.text}),p)for(var At in We)(gt=At.match(/^spans_(\d+)$/))&&(he(p,Number(gt[1]))>-1&&($(we)[At]=We[At],delete We[At]))}}return j}function vs(t,p,B,j){if(j){var G=t.anchor;if(B){var ne=On(p,G)<0;ne!=On(B,G)<0?(G=p,p=B):ne!=On(p,B)<0&&(p=B)}return new Pa(G,p)}else return new Pa(B||p,p)}function _s(t,p,B,j,G){G==null&&(G=t.cm&&(t.cm.display.shift||t.extend)),gi(t,new hi([vs(t.sel.primary(),p,B,G)],0),j)}function $s(t,p,B){for(var j=[],G=t.cm&&(t.cm.display.shift||t.extend),ne=0;ne<t.sel.ranges.length;ne++)j[ne]=vs(t.sel.ranges[ne],p[ne],null,G);var ge=sa(t.cm,j,t.sel.primIndex);gi(t,ge,B)}function Ao(t,p,B,j){var G=t.sel.ranges.slice(0);G[p]=B,gi(t,sa(t.cm,G,t.sel.primIndex),j)}function el(t,p,B,j){gi(t,Er(p,B),j)}function Ll(t,p,B){var j={ranges:p.ranges,update:function(G){this.ranges=[];for(var ne=0;ne<G.length;ne++)this.ranges[ne]=new Pa(X(t,G[ne].anchor),X(t,G[ne].head))},origin:B&&B.origin};return Et(t,"beforeSelectionChange",t,j),t.cm&&Et(t.cm,"beforeSelectionChange",t.cm,j),j.ranges!=p.ranges?sa(t.cm,j.ranges,j.ranges.length-1):p}function tl(t,p,B){var j=t.history.done,G=$(j);G&&G.ranges?(j[j.length-1]=p,Ko(t,p,B)):gi(t,p,B)}function gi(t,p,B){Ko(t,p,B),ps(t,t.sel,t.cm?t.cm.curOp.id:NaN,B)}function Ko(t,p,B){(Be(t,"beforeSelectionChange")||t.cm&&Be(t.cm,"beforeSelectionChange"))&&(p=Ll(t,p,B));var j=B&&B.bias||(On(p.primary().head,t.sel.primary().head)<0?-1:1);nl(t,al(t,p,j,!0)),!(B&&B.scroll===!1)&&t.cm&&Xi(t.cm)}function nl(t,p){if(p.equals(t.sel))return;t.sel=p,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Ze(t.cm)),Yt(t,"cursorActivity",t)}function rl(t){nl(t,al(t,t.sel,null,!1))}function al(t,p,B,j){for(var G,ne=0;ne<p.ranges.length;ne++){var ge=p.ranges[ne],we=p.ranges.length==t.sel.ranges.length&&t.sel.ranges[ne],Re=bs(t,ge.anchor,we&&we.anchor,B,j),We=bs(t,ge.head,we&&we.head,B,j);(G||Re!=ge.anchor||We!=ge.head)&&(G||(G=p.ranges.slice(0,ne)),G[ne]=new Pa(Re,We))}return G?sa(t.cm,G,p.primIndex):p}function Go(t,p,B,j,G){var ne=ln(t,p.line);if(ne.markedSpans)for(var ge=0;ge<ne.markedSpans.length;++ge){var we=ne.markedSpans[ge],Re=we.marker,We="selectLeft"in Re?!Re.selectLeft:Re.inclusiveLeft,gt="selectRight"in Re?!Re.selectRight:Re.inclusiveRight;if((we.from==null||(We?we.from<=p.ch:we.from<p.ch))&&(we.to==null||(gt?we.to>=p.ch:we.to>p.ch))){if(G&&(Et(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(ne.markedSpans){--ge;continue}else break;if(!Re.atomic)continue;if(B){var At=Re.find(j<0?1:-1),nn=void 0;if((j<0?gt:We)&&(At=il(t,At,-j,At&&At.line==p.line?ne:null)),At&&At.line==p.line&&(nn=On(At,B))&&(j<0?nn<0:nn>0))return Go(t,At,p,j,G)}var Gt=Re.find(j<0?-1:1);return(j<0?We:gt)&&(Gt=il(t,Gt,j,Gt.line==p.line?ne:null)),Gt?Go(t,Gt,p,j,G):null}}return p}function bs(t,p,B,j,G){var ne=j||1,ge=Go(t,p,B,ne,G)||!G&&Go(t,p,B,ne,!0)||Go(t,p,B,-ne,G)||!G&&Go(t,p,B,-ne,!0);return ge||(t.cantEdit=!0,qt(t.first,0))}function il(t,p,B,j){return B<0&&p.ch==0?p.line>t.first?X(t,qt(p.line-1)):null:B>0&&p.ch==(j||ln(t,p.line)).text.length?p.line<t.first+t.size-1?qt(p.line+1,0):null:new qt(p.line,p.ch+B)}function ol(t){t.setSelection(qt(t.firstLine(),0),qt(t.lastLine()),Te)}function Ms(t,p,B){var j={canceled:!1,from:p.from,to:p.to,text:p.text,origin:p.origin,cancel:function(){return j.canceled=!0}};return B&&(j.update=function(G,ne,ge,we){G&&(j.from=X(t,G)),ne&&(j.to=X(t,ne)),ge&&(j.text=ge),we!==void 0&&(j.origin=we)}),Et(t,"beforeChange",t,j),t.cm&&Et(t.cm,"beforeChange",t.cm,j),j.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:j.from,to:j.to,text:j.text,origin:j.origin}}function zo(t,p,B){if(t.cm){if(!t.cm.curOp)return Ha(t.cm,zo)(t,p,B);if(t.cm.state.suppressEdits)return}if((Be(t,"beforeChange")||t.cm&&Be(t.cm,"beforeChange"))&&(p=Ms(t,p,!0),!p))return;var j=Ea&&!B&&lt(t,p.from,p.to);if(j)for(var G=j.length-1;G>=0;--G)sl(t,{from:j[G].from,to:j[G].to,text:G?[""]:p.text,origin:p.origin});else sl(t,p)}function sl(t,p){if(p.text.length==1&&p.text[0]==""&&On(p.from,p.to)==0)return;var B=Wa(t,p);Qs(t,p,B,t.cm?t.cm.curOp.id:NaN),Vo(t,p,B,la(t,p));var j=[];Qa(t,function(G,ne){!ne&&he(j,G.history)==-1&&(dl(G.history,p),j.push(G.history)),Vo(G,p,null,la(G,p))})}function ys(t,p,B){var j=t.cm&&t.cm.state.suppressEdits;if(j&&!B)return;for(var G=t.history,ne,ge=t.sel,we=p=="undo"?G.done:G.undone,Re=p=="undo"?G.undone:G.done,We=0;We<we.length&&!(ne=we[We],B?ne.ranges&&!ne.equals(t.sel):!ne.ranges);We++);if(We==we.length)return;for(G.lastOrigin=G.lastSelOrigin=null;;)if(ne=we.pop(),ne.ranges){if(ms(ne,Re),B&&!ne.equals(t.sel)){gi(t,ne,{clearRedo:!1});return}ge=ne}else if(j){we.push(ne);return}else break;var gt=[];ms(ge,Re),Re.push({changes:gt,generation:G.generation}),G.generation=ne.generation||++G.maxGeneration;for(var At=Be(t,"beforeChange")||t.cm&&Be(t.cm,"beforeChange"),nn=function(Hn){var Zn=ne.changes[Hn];if(Zn.origin=p,At&&!Ms(t,Zn,!1))return we.length=0,{};gt.push(Ds(t,Zn));var _r=Hn?Wa(t,Zn):$(we);Vo(t,Zn,_r,Ps(t,Zn)),!Hn&&t.cm&&t.cm.scrollIntoView({from:Zn.from,to:Zr(Zn)});var Ur=[];Qa(t,function(br,Xr){!Xr&&he(Ur,br.history)==-1&&(dl(br.history,Zn),Ur.push(br.history)),Vo(br,Zn,null,Ps(br,Zn))})},Gt=ne.changes.length-1;Gt>=0;--Gt){var wn=nn(Gt);if(wn)return wn.v}}function ll(t,p){if(p==0)return;if(t.first+=p,t.sel=new hi(me(t.sel.ranges,function(G){return new Pa(qt(G.anchor.line+p,G.anchor.ch),qt(G.head.line+p,G.head.ch))}),t.sel.primIndex),t.cm){Na(t.cm,t.first,t.first-p,p);for(var B=t.cm.display,j=B.viewFrom;j<B.viewTo;j++)ka(t.cm,j,"gutter")}}function Vo(t,p,B,j){if(t.cm&&!t.cm.curOp)return Ha(t.cm,Vo)(t,p,B,j);if(p.to.line<t.first){ll(t,p.text.length-1-(p.to.line-p.from.line));return}if(p.from.line>t.lastLine())return;if(p.from.line<t.first){var G=p.text.length-1-(t.first-p.from.line);ll(t,G),p={from:qt(t.first,0),to:qt(p.to.line+G,p.to.ch),text:[$(p.text)],origin:p.origin}}var ne=t.lastLine();p.to.line>ne&&(p={from:p.from,to:qt(ne,ln(t,ne).text.length),text:[p.text[0]],origin:p.origin}),p.removed=ar(t,p.from,p.to),B||(B=Wa(t,p)),t.cm?Nl(t.cm,p,j):go(t,p,j),Ko(t,B,Te),t.cantEdit&&bs(t,qt(t.firstLine(),0))&&(t.cantEdit=!1)}function Nl(t,p,B){var j=t.doc,G=t.display,ne=p.from,ge=p.to,we=!1,Re=ne.line;t.options.lineWrapping||(Re=Yn(an(ln(j,ne.line))),j.iter(Re,ge.line+1,function(Gt){if(Gt==G.maxLine)return we=!0,!0})),j.sel.contains(p.from,p.to)>-1&&Ze(t),go(j,p,B,xa(t)),t.options.lineWrapping||(j.iter(Re,ne.line+p.text.length,function(Gt){var wn=Cn(Gt);wn>G.maxLineLength&&(G.maxLine=Gt,G.maxLineLength=wn,G.maxLineChanged=!0,we=!1)}),we&&(t.curOp.updateMaxLine=!0)),Ba(j,ne.line),ai(t,400);var We=p.text.length-(ge.line-ne.line)-1;p.full?Na(t):ne.line==ge.line&&p.text.length==1&&!Ki(t.doc,p)?ka(t,ne.line,"text"):Na(t,ne.line,ge.line+1,We);var gt=Be(t,"changes"),At=Be(t,"change");if(At||gt){var nn={from:ne,to:ge,text:p.text,removed:p.removed,origin:p.origin};At&&Yt(t,"change",t,nn),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(nn)}t.display.selForContextMenu=null}function Xo(t,p,B,j,G){var ne;j||(j=B),On(j,B)<0&&(ne=[j,B],B=ne[0],j=ne[1]),typeof p=="string"&&(p=t.splitLines(p)),zo(t,{from:B,to:j,text:p,origin:G})}function ul(t,p,B,j){B<t.line?t.line+=j:p<t.line&&(t.line=p,t.ch=0)}function cl(t,p,B,j){for(var G=0;G<t.length;++G){var ne=t[G],ge=!0;if(ne.ranges){ne.copied||(ne=t[G]=ne.deepCopy(),ne.copied=!0);for(var we=0;we<ne.ranges.length;we++)ul(ne.ranges[we].anchor,p,B,j),ul(ne.ranges[we].head,p,B,j);continue}for(var Re=0;Re<ne.changes.length;++Re){var We=ne.changes[Re];if(B<We.from.line)We.from=qt(We.from.line+j,We.from.ch),We.to=qt(We.to.line+j,We.to.ch);else if(p<=We.to.line){ge=!1;break}}ge||(t.splice(0,G+1),G=0)}}function dl(t,p){var B=p.from.line,j=p.to.line,G=p.text.length-(j-B)-1;cl(t.done,B,j,G),cl(t.undone,B,j,G)}function ts(t,p,B,j){var G=p,ne=p;return typeof p=="number"?ne=ln(t,pe(t,p)):G=Yn(p),G==null?null:(j(ne,G)&&t.cm&&ka(t.cm,G,B),ne)}function Do(t){this.lines=t,this.parent=null;for(var p=0,B=0;B<t.length;++B)t[B].parent=this,p+=t[B].height;this.height=p}Do.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,p){for(var B=t,j=t+p;B<j;++B){var G=this.lines[B];this.height-=G.height,tn(G),Yt(G,"delete")}this.lines.splice(t,p)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,p,B){this.height+=B,this.lines=this.lines.slice(0,t).concat(p).concat(this.lines.slice(t));for(var j=0;j<p.length;++j)p[j].parent=this},iterN:function(t,p,B){for(var j=t+p;t<j;++t)if(B(this.lines[t]))return!0}};function Yo(t){this.children=t;for(var p=0,B=0,j=0;j<t.length;++j){var G=t[j];p+=G.chunkSize(),B+=G.height,G.parent=this}this.size=p,this.height=B,this.parent=null}Yo.prototype={chunkSize:function(){return this.size},removeInner:function(t,p){this.size-=p;for(var B=0;B<this.children.length;++B){var j=this.children[B],G=j.chunkSize();if(t<G){var ne=Math.min(p,G-t),ge=j.height;if(j.removeInner(t,ne),this.height-=ge-j.height,G==ne&&(this.children.splice(B--,1),j.parent=null),(p-=ne)==0)break;t=0}else t-=G}if(this.size-p<25&&(this.children.length>1||!(this.children[0]instanceof Do))){var we=[];this.collapse(we),this.children=[new Do(we)],this.children[0].parent=this}},collapse:function(t){for(var p=0;p<this.children.length;++p)this.children[p].collapse(t)},insertInner:function(t,p,B){this.size+=p.length,this.height+=B;for(var j=0;j<this.children.length;++j){var G=this.children[j],ne=G.chunkSize();if(t<=ne){if(G.insertInner(t,p,B),G.lines&&G.lines.length>50){for(var ge=G.lines.length%25+25,we=ge;we<G.lines.length;){var Re=new Do(G.lines.slice(we,we+=25));G.height-=Re.height,this.children.splice(++j,0,Re),Re.parent=this}G.lines=G.lines.slice(0,ge),this.maybeSpill()}break}t-=ne}},maybeSpill:function(){if(this.children.length<=10)return;var t=this;do{var p=t.children.splice(t.children.length-5,5),B=new Yo(p);if(t.parent){t.size-=B.size,t.height-=B.height;var G=he(t.parent.children,t);t.parent.children.splice(G+1,0,B)}else{var j=new Yo(t.children);j.parent=t,t.children=[j,B],t=j}B.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()},iterN:function(t,p,B){for(var j=0;j<this.children.length;++j){var G=this.children[j],ne=G.chunkSize();if(t<ne){var ge=Math.min(p,ne-t);if(G.iterN(t,ge,B))return!0;if((p-=ge)==0)break;t=0}else t-=ne}}};var ns=function(t,p,B){if(B)for(var j in B)B.hasOwnProperty(j)&&(this[j]=B[j]);this.doc=t,this.node=p};ns.prototype.clear=function(){var t=this.doc.cm,p=this.line.widgets,B=this.line,j=Yn(B);if(j==null||!p)return;for(var G=0;G<p.length;++G)p[G]==this&&p.splice(G--,1);p.length||(B.widgets=null);var ne=Jr(this);Cr(B,Math.max(0,B.height-ne)),t&&(fi(t,function(){fl(t,B,-ne),ka(t,j,"widget")}),Yt(t,"lineWidgetCleared",t,this,j))},ns.prototype.changed=function(){var t=this,p=this.height,B=this.doc.cm,j=this.line;this.height=null;var G=Jr(this)-p;if(!G)return;Jn(this.doc,j)||Cr(j,j.height+G),B&&fi(B,function(){B.curOp.forceUpdate=!0,fl(B,j,G),Yt(B,"lineWidgetChanged",B,t,Yn(j))})},Ye(ns);function fl(t,p,B){Fr(p)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&co(t,B)}function kl(t,p,B,j){var G=new ns(t,B,j),ne=t.cm;return ne&&G.noHScroll&&(ne.display.alignWidgets=!0),ts(t,p,"widget",function(ge){var we=ge.widgets||(ge.widgets=[]);if(G.insertAt==null?we.push(G):we.splice(Math.min(we.length-1,Math.max(0,G.insertAt)),0,G),G.line=ge,ne&&!Jn(t,ge)){var Re=Fr(ge)<t.scrollTop;Cr(ge,ge.height+Jr(G)),Re&&co(ne,G.height),ne.curOp.forceUpdate=!0}return!0}),ne&&Yt(ne,"lineWidgetAdded",ne,G,typeof p=="number"?p:Yn(p)),G}var hl=0,Gi=function(t,p){this.lines=[],this.type=p,this.doc=t,this.id=++hl};Gi.prototype.clear=function(){if(this.explicitlyCleared)return;var t=this.doc.cm,p=t&&!t.curOp;if(p&&Ni(t),Be(this,"clear")){var B=this.find();B&&Yt(this,"clear",B.from,B.to)}for(var j=null,G=null,ne=0;ne<this.lines.length;++ne){var ge=this.lines[ne],we=Ua(ge.markedSpans,this);t&&!this.collapsed?ka(t,Yn(ge),"text"):t&&(we.to!=null&&(G=Yn(ge)),we.from!=null&&(j=Yn(ge))),ge.markedSpans=li(ge.markedSpans,we),we.from==null&&this.collapsed&&!Jn(this.doc,ge)&&t&&Cr(ge,vr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var Re=0;Re<this.lines.length;++Re){var We=an(this.lines[Re]),gt=Cn(We);gt>t.display.maxLineLength&&(t.display.maxLine=We,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}j!=null&&t&&this.collapsed&&Na(t,j,G+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&rl(t.doc)),t&&Yt(t,"markerCleared",t,this,j,G),p&&qi(t),this.parent&&this.parent.clear()},Gi.prototype.find=function(t,p){t==null&&this.type=="bookmark"&&(t=1);for(var B,j,G=0;G<this.lines.length;++G){var ne=this.lines[G],ge=Ua(ne.markedSpans,this);if(ge.from!=null&&(B=qt(p?ne:Yn(ne),ge.from),t==-1))return B;if(ge.to!=null&&(j=qt(p?ne:Yn(ne),ge.to),t==1))return j}return B&&{from:B,to:j}},Gi.prototype.changed=function(){var t=this,p=this.find(-1,!0),B=this,j=this.doc.cm;if(!p||!j)return;fi(j,function(){var G=p.line,ne=Yn(p.line),ge=mt(j,ne);if(ge&&(Kn(ge),j.curOp.selectionChanged=j.curOp.forceUpdate=!0),j.curOp.updateMaxLine=!0,!Jn(B.doc,G)&&B.height!=null){var we=B.height;B.height=null;var Re=Jr(B)-we;Re&&Cr(G,G.height+Re)}Yt(j,"markerChanged",j,t)})},Gi.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(!p.maybeHiddenMarkers||he(p.maybeHiddenMarkers,this)==-1)&&(p.maybeUnhiddenMarkers||(p.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Gi.prototype.detachLine=function(t){if(this.lines.splice(he(this.lines,t),1),!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(p.maybeHiddenMarkers||(p.maybeHiddenMarkers=[])).push(this)}},Ye(Gi);function Jo(t,p,B,j,G){if(j&&j.shared)return Ul(t,p,B,j,G);if(t.cm&&!t.cm.curOp)return Ha(t.cm,Jo)(t,p,B,j,G);var ne=new Gi(t,G),ge=On(p,B);if(j&&I(j,ne,!1),ge>0||ge==0&&ne.clearWhenEmpty!==!1)return ne;if(ne.replacedWith&&(ne.collapsed=!0,ne.widgetNode=U("span",[ne.replacedWith],"CodeMirror-widget"),j.handleMouseEvents||ne.widgetNode.setAttribute("cm-ignore-events","true"),j.insertLeft&&(ne.widgetNode.insertLeft=!0)),ne.collapsed){if(Dn(t,p.line,p,B,ne)||p.line!=B.line&&Dn(t,B.line,p,B,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ta()}ne.addToHistory&&Qs(t,{from:p,to:B,origin:"markText"},t.sel,NaN);var we=p.line,Re=t.cm,We;if(t.iter(we,B.line+1,function(At){Re&&ne.collapsed&&!Re.options.lineWrapping&&an(At)==Re.display.maxLine&&(We=!0),ne.collapsed&&we!=p.line&&Cr(At,0),oi(At,new Ja(ne,we==p.line?p.ch:null,we==B.line?B.ch:null)),++we}),ne.collapsed&&t.iter(p.line,B.line+1,function(At){Jn(t,At)&&Cr(At,0)}),ne.clearOnEnter&&Ue(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(Ka(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),ne.collapsed&&(ne.id=++hl,ne.atomic=!0),Re){if(We&&(Re.curOp.updateMaxLine=!0),ne.collapsed)Na(Re,p.line,B.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var gt=p.line;gt<=B.line;gt++)ka(Re,gt,"text");ne.atomic&&rl(Re.doc),Yt(Re,"markerAdded",Re,ne)}return ne}var Qo=function(t,p){this.markers=t,this.primary=p;for(var B=0;B<t.length;++B)t[B].parent=this};Qo.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Yt(this,"clear")},Qo.prototype.find=function(t,p){return this.primary.find(t,p)},Ye(Qo);function Ul(t,p,B,j,G){j=I(j),j.shared=!1;var ne=[Jo(t,p,B,j,G)],ge=ne[0],we=j.widgetNode;return Qa(t,function(Re){we&&(j.widgetNode=we.cloneNode(!0)),ne.push(Jo(Re,X(Re,p),X(Re,B),j,G));for(var We=0;We<Re.linked.length;++We)if(Re.linked[We].isParent)return;ge=$(ne)}),new Qo(ne,ge)}function pl(t){return t.findMarks(qt(t.first,0),t.clipPos(qt(t.lastLine())),function(p){return p.parent})}function iu(t,p){for(var B=0;B<p.length;B++){var j=p[B],G=j.find(),ne=t.clipPos(G.from),ge=t.clipPos(G.to);if(On(ne,ge)){var we=Jo(t,ne,ge,j.primary,j.primary.type);j.markers.push(we),we.parent=j}}}function jl(t){for(var p=function(j){var G=t[j],ne=[G.primary.doc];Qa(G.primary.doc,function(Re){return ne.push(Re)});for(var ge=0;ge<G.markers.length;ge++){var we=G.markers[ge];he(ne,we.doc)==-1&&(we.parent=null,G.markers.splice(ge--,1))}},B=0;B<t.length;B++)p(B)}var Is=0,Ti=function(t,p,B,j,G){if(!(this instanceof Ti))return new Ti(t,p,B,j,G);B==null&&(B=0),Yo.call(this,[new Do([new hn("",null)])]),this.first=B,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=B;var ne=qt(B,0);this.sel=Er(ne),this.history=new hs(null),this.id=++Is,this.modeOption=p,this.lineSep=j,this.direction=G=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),go(this,{from:ne,to:ne,text:t}),gi(this,Er(ne),Te)};Ti.prototype=Oe(Yo.prototype,{constructor:Ti,iter:function(t,p,B){B?this.iterN(t-this.first,p-t,B):this.iterN(this.first,this.first+this.size,t)},insert:function(t,p){for(var B=0,j=0;j<p.length;++j)B+=p[j].height;this.insertInner(t-this.first,p,B)},remove:function(t,p){this.removeInner(t-this.first,p)},getValue:function(t){var p=xr(this,this.first,this.first+this.size);return t===!1?p:p.join(t||this.lineSeparator())},setValue:Xa(function(t){var p=qt(this.first,0),B=this.first+this.size-1;zo(this,{from:p,to:qt(B,ln(this,B).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Yi(this.cm,0,0),gi(this,Er(p),Te)}),replaceRange:function(t,p,B,j){p=X(this,p),B=B?X(this,B):p,Xo(this,t,p,B,j)},getRange:function(t,p,B){var j=ar(this,X(this,t),X(this,p));return B===!1?j:j.join(B||this.lineSeparator())},getLine:function(t){var p=this.getLineHandle(t);return p&&p.text},getLineHandle:function(t){if(cr(this,t))return ln(this,t)},getLineNumber:function(t){return Yn(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=ln(this,t)),an(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return X(this,t)},getCursor:function(t){var p=this.sel.primary(),B;return t==null||t=="head"?B=p.head:t=="anchor"?B=p.anchor:t=="end"||t=="to"||t===!1?B=p.to():B=p.from(),B},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Xa(function(t,p,B){el(this,X(this,typeof t=="number"?qt(t,p||0):t),null,B)}),setSelection:Xa(function(t,p,B){el(this,X(this,t),X(this,p||t),B)}),extendSelection:Xa(function(t,p,B){_s(this,X(this,t),p&&X(this,p),B)}),extendSelections:Xa(function(t,p){$s(this,oe(this,t),p)}),extendSelectionsBy:Xa(function(t,p){var B=me(this.sel.ranges,t);$s(this,oe(this,B),p)}),setSelections:Xa(function(t,p,B){if(!t.length)return;for(var j=[],G=0;G<t.length;G++)j[G]=new Pa(X(this,t[G].anchor),X(this,t[G].head));p==null&&(p=Math.min(t.length-1,this.sel.primIndex)),gi(this,sa(this.cm,j,p),B)}),addSelection:Xa(function(t,p,B){var j=this.sel.ranges.slice(0);j.push(new Pa(X(this,t),X(this,p||t))),gi(this,sa(this.cm,j,j.length-1),B)}),getSelection:function(t){for(var p=this.sel.ranges,B,j=0;j<p.length;j++){var G=ar(this,p[j].from(),p[j].to());B=B?B.concat(G):G}return t===!1?B:B.join(t||this.lineSeparator())},getSelections:function(t){for(var p=[],B=this.sel.ranges,j=0;j<B.length;j++){var G=ar(this,B[j].from(),B[j].to());t!==!1&&(G=G.join(t||this.lineSeparator())),p[j]=G}return p},replaceSelection:function(t,p,B){for(var j=[],G=0;G<this.sel.ranges.length;G++)j[G]=t;this.replaceSelections(j,p,B||"+input")},replaceSelections:Xa(function(t,p,B){for(var j=[],G=this.sel,ne=0;ne<G.ranges.length;ne++){var ge=G.ranges[ne];j[ne]={from:ge.from(),to:ge.to(),text:this.splitLines(t[ne]),origin:B}}for(var we=p&&p!="end"&&Pi(this,j,p),Re=j.length-1;Re>=0;Re--)zo(this,j[Re]);we?tl(this,we):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(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,p=0,B=0,j=0;j<t.done.length;j++)t.done[j].ranges||++p;for(var G=0;G<t.undone.length;G++)t.undone[G].ranges||++B;return{undo:p,redo:B}},clearHistory:function(){var t=this;this.history=new hs(this.history.maxGeneration),Qa(this,function(p){return p.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ho(this.history.done),undone:Ho(this.history.undone)}},setHistory:function(t){var p=this.history=new hs(this.history.maxGeneration);p.done=Ho(t.done.slice(0),null,!0),p.undone=Ho(t.undone.slice(0),null,!0)},setGutterMarker:Xa(function(t,p,B){return ts(this,t,"gutter",function(j){var G=j.gutterMarkers||(j.gutterMarkers={});return G[p]=B,!B&&J(G)&&(j.gutterMarkers=null),!0})}),clearGutter:Xa(function(t){var p=this;this.iter(function(B){B.gutterMarkers&&B.gutterMarkers[t]&&ts(p,B,"gutter",function(){return B.gutterMarkers[t]=null,J(B.gutterMarkers)&&(B.gutterMarkers=null),!0})})}),lineInfo:function(t){var p;if(typeof t=="number"){if(!cr(this,t))return null;if(p=t,t=ln(this,t),!t)return null}else if(p=Yn(t),p==null)return null;return{line:p,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Xa(function(t,p,B){return ts(this,t,p=="gutter"?"gutter":"class",function(j){var G=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass";if(!j[G])j[G]=B;else{if(R(B).test(j[G]))return!1;j[G]+=" "+B}return!0})}),removeLineClass:Xa(function(t,p,B){return ts(this,t,p=="gutter"?"gutter":"class",function(j){var G=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass",ne=j[G];if(ne)if(B==null)j[G]=null;else{var ge=ne.match(R(B));if(!ge)return!1;var we=ge.index+ge[0].length;j[G]=ne.slice(0,ge.index)+(!ge.index||we==ne.length?"":" ")+ne.slice(we)||null}else return!1;return!0})}),addLineWidget:Xa(function(t,p,B){return kl(this,t,p,B)}),removeLineWidget:function(t){t.clear()},markText:function(t,p,B){return Jo(this,X(this,t),X(this,p),B,B&&B.type||"range")},setBookmark:function(t,p){var B={replacedWith:p&&(p.nodeType==null?p.widget:p),insertLeft:p&&p.insertLeft,clearWhenEmpty:!1,shared:p&&p.shared,handleMouseEvents:p&&p.handleMouseEvents};return t=X(this,t),Jo(this,t,t,B,"bookmark")},findMarksAt:function(t){t=X(this,t);var p=[],B=ln(this,t.line).markedSpans;if(B)for(var j=0;j<B.length;++j){var G=B[j];(G.from==null||G.from<=t.ch)&&(G.to==null||G.to>=t.ch)&&p.push(G.marker.parent||G.marker)}return p},findMarks:function(t,p,B){t=X(this,t),p=X(this,p);var j=[],G=t.line;return this.iter(t.line,p.line+1,function(ne){var ge=ne.markedSpans;if(ge)for(var we=0;we<ge.length;we++){var Re=ge[we];!(Re.to!=null&&G==t.line&&t.ch>=Re.to||Re.from==null&&G!=t.line||Re.from!=null&&G==p.line&&Re.from>=p.ch)&&(!B||B(Re.marker))&&j.push(Re.marker.parent||Re.marker)}++G}),j},getAllMarks:function(){var t=[];return this.iter(function(p){var B=p.markedSpans;if(B)for(var j=0;j<B.length;++j)B[j].from!=null&&t.push(B[j].marker)}),t},posFromIndex:function(t){var p,B=this.first,j=this.lineSeparator().length;return this.iter(function(G){var ne=G.text.length+j;if(ne>t)return p=t,!0;t-=ne,++B}),X(this,qt(B,p))},indexFromPos:function(t){t=X(this,t);var p=t.ch;if(t.line<this.first||t.ch<0)return 0;var B=this.lineSeparator().length;return this.iter(this.first,t.line,function(j){p+=j.text.length+B}),p},copy:function(t){var p=new Ti(xr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return p.scrollTop=this.scrollTop,p.scrollLeft=this.scrollLeft,p.sel=this.sel,p.extend=!1,t&&(p.history.undoDepth=this.history.undoDepth,p.setHistory(this.getHistory())),p},linkedDoc:function(t){t||(t={});var p=this.first,B=this.first+this.size;t.from!=null&&t.from>p&&(p=t.from),t.to!=null&&t.to<B&&(B=t.to);var j=new Ti(xr(this,p,B),t.mode||this.modeOption,p,this.lineSep,this.direction);return t.sharedHist&&(j.history=this.history),(this.linked||(this.linked=[])).push({doc:j,sharedHist:t.sharedHist}),j.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],iu(j,pl(this)),j},unlinkDoc:function(t){if(t instanceof Ya&&(t=t.doc),this.linked)for(var p=0;p<this.linked.length;++p){var B=this.linked[p];if(B.doc!=t)continue;this.linked.splice(p,1),t.unlinkDoc(this),jl(pl(this));break}if(t.history==this.history){var j=[t.id];Qa(t,function(G){return j.push(G.id)},!0),t.history=new hs(null),t.history.done=Ho(this.history.done,j),t.history.undone=Ho(this.history.undone,j)}},iterLinkedDocs:function(t){Qa(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Fe(t)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Xa(function(t){if(t!="rtl"&&(t="ltr"),t==this.direction)return;this.direction=t,this.iter(function(p){return p.order=null}),this.cm&&Pl(this.cm)})}),Ti.prototype.eachLine=Ti.prototype.iter;var ml=0;function Bl(t){var p=this;if(Ls(p),jt(p,t)||Oa(p.display,t))return;Ce(t),O&&(ml=+new Date);var B=Aa(p,t,!0),j=t.dataTransfer.files;if(!B||p.isReadOnly())return;if(j&&j.length&&window.FileReader&&window.File)for(var G=j.length,ne=Array(G),ge=0,we=function(){++ge==G&&Ha(p,function(){B=X(p.doc,B);var Gt={from:B,to:B,text:p.doc.splitLines(ne.filter(function(wn){return wn!=null}).join(p.doc.lineSeparator())),origin:"paste"};zo(p.doc,Gt),tl(p.doc,Er(X(p.doc,B),X(p.doc,Zr(Gt))))})()},Re=function(Gt,wn){if(p.options.allowDropFileTypes&&he(p.options.allowDropFileTypes,Gt.type)==-1){we();return}var Hn=new FileReader;Hn.onerror=function(){return we()},Hn.onload=function(){var Zn=Hn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Zn)){we();return}ne[wn]=Zn,we()},Hn.readAsText(Gt)},We=0;We<j.length;We++)Re(j[We],We);else{if(p.state.draggingText&&p.doc.sel.contains(B)>-1){p.state.draggingText(t),setTimeout(function(){return p.display.input.focus()},20);return}try{var gt=t.dataTransfer.getData("Text");if(gt){var At;if(p.state.draggingText&&!p.state.draggingText.copy&&(At=p.listSelections()),Ko(p.doc,Er(B,B)),At)for(var nn=0;nn<At.length;++nn)Xo(p.doc,"",At[nn].anchor,At[nn].head,"drag");p.replaceSelection(gt,"around","paste"),p.display.input.focus()}}catch(Gt){}}}function gl(t,p){if(O&&(!t.state.draggingText||+new Date-ml<100)){je(p);return}if(jt(t,p)||Oa(t.display,p))return;if(p.dataTransfer.setData("Text",t.getSelection()),p.dataTransfer.effectAllowed="copyMove",p.dataTransfer.setDragImage&&!n){var B=T("img",null,null,"position: fixed; left: 0; top: 0;");B.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",u&&(B.width=B.height=1,t.display.wrapper.appendChild(B),B._top=B.offsetTop),p.dataTransfer.setDragImage(B,0,0),u&&B.parentNode.removeChild(B)}}function Fl(t,p){var B=Aa(t,p);if(!B)return;var j=document.createDocumentFragment();Si(t,B,j),t.display.dragCursor||(t.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),v(t.display.dragCursor,j)}function Ls(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function vl(t){if(!document.getElementsByClassName)return;for(var p=document.getElementsByClassName("CodeMirror"),B=[],j=0;j<p.length;j++){var G=p[j].CodeMirror;G&&B.push(G)}B.length&&B[0].operation(function(){for(var ne=0;ne<B.length;ne++)t(B[ne])})}var Ns=!1;function ou(){if(Ns)return;ks(),Ns=!0}function ks(){var t;Ue(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,vl(Wl)},100))}),Ue(window,"blur",function(){return vl(no)})}function Wl(t){var p=t.display;p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.scrollbarsClipped=!1,t.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=s?vo.macDefault:vo.pcDefault;function Hl(t){var p=t.split(/-(?!$)/);t=p[p.length-1];for(var B,j,G,ne,ge=0;ge<p.length-1;ge++){var we=p[ge];if(/^(cmd|meta|m)$/i.test(we))ne=!0;else if(/^a(lt)?$/i.test(we))B=!0;else if(/^(c|ctrl|control)$/i.test(we))j=!0;else if(/^s(hift)?$/i.test(we))G=!0;else throw new Error("Unrecognized modifier name: "+we)}return B&&(t="Alt-"+t),j&&(t="Ctrl-"+t),ne&&(t="Cmd-"+t),G&&(t="Shift-"+t),t}function _l(t){var p={};for(var B in t)if(t.hasOwnProperty(B)){var j=t[B];if(/^(name|fallthrough|(de|at)tach)$/.test(B))continue;if(j=="..."){delete t[B];continue}for(var G=me(B.split(" "),Hl),ne=0;ne<G.length;ne++){var ge=void 0,we=void 0;ne==G.length-1?(we=G.join(" "),ge=j):(we=G.slice(0,ne+1).join(" "),ge="...");var Re=p[we];if(!Re)p[we]=ge;else if(Re!=ge)throw new Error("Inconsistent bindings for "+we)}delete t[B]}for(var We in p)t[We]=p[We];return t}function _o(t,p,B,j){p=os(p);var G=p.call?p.call(t,j):p[t];if(G===!1)return"nothing";if(G==="...")return"multi";if(G!=null&&B(G))return"handled";if(p.fallthrough){if(Object.prototype.toString.call(p.fallthrough)!="[object Array]")return _o(t,p.fallthrough,B,j);for(var ne=0;ne<p.fallthrough.length;ne++){var ge=_o(t,p.fallthrough[ne],B,j);if(ge)return ge}}}function is(t){var p=typeof t=="string"?t:Ro[t.keyCode];return p=="Ctrl"||p=="Alt"||p=="Shift"||p=="Mod"}function bl(t,p,B){var j=t;return p.altKey&&j!="Alt"&&(t="Alt-"+t),(_?p.metaKey:p.ctrlKey)&&j!="Ctrl"&&(t="Ctrl-"+t),(_?p.ctrlKey:p.metaKey)&&j!="Mod"&&(t="Cmd-"+t),!B&&p.shiftKey&&j!="Shift"&&(t="Shift-"+t),t}function xs(t,p){if(u&&t.keyCode==34&&t.char)return!1;var B=Ro[t.keyCode];return B==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(B=t.code),bl(B,t,p))}function os(t){return typeof t=="string"?vo[t]:t}function Zo(t,p){for(var B=t.doc.sel.ranges,j=[],G=0;G<B.length;G++){for(var ne=p(B[G]);j.length&&On(ne.from,$(j).to)<=0;){var ge=j.pop();if(On(ge.from,ne.from)<0){ne.from=ge.from;break}}j.push(ne)}fi(t,function(){for(var we=j.length-1;we>=0;we--)Xo(t.doc,"",j[we].from,j[we].to,"+delete");Xi(t)})}function Us(t,p,B){var j=Ae(t.text,p+B,B);return j<0||j>t.text.length?null:j}function js(t,p,B){var j=Us(t,p.ch,B);return j==null?null:new qt(p.line,j,B<0?"after":"before")}function Bs(t,p,B,j,G){if(t){p.doc.direction=="rtl"&&(G=-G);var ne=_t(B,p.doc.direction);if(ne){var ge=G<0?$(ne):ne[0],we=G<0==(ge.level==1),Re=we?"after":"before",We;if(ge.level>0||p.doc.direction=="rtl"){var gt=rt(p,B);We=G<0?B.text.length-1:0;var At=Pt(p,gt,We).top;We=Je(function(nn){return Pt(p,gt,nn).top==At},G<0==(ge.level==1)?ge.from:ge.to-1,We),Re=="before"&&(We=Us(B,We,1))}else We=G<0?ge.to:ge.from;return new qt(j,We,Re)}}return new qt(j,G<0?B.text.length:0,G<0?"before":"after")}function Fs(t,p,B,j){var G=_t(p,t.doc.direction);if(!G)return js(p,B,j);B.ch>=p.text.length?(B.ch=p.text.length,B.sticky="before"):B.ch<=0&&(B.ch=0,B.sticky="after");var ne=ht(G,B.ch,B.sticky),ge=G[ne];if(t.doc.direction=="ltr"&&ge.level%2==0&&(j>0?ge.to>B.ch:ge.from<B.ch))return js(p,B,j);var we=function(_r,Ur){return Us(p,_r instanceof qt?_r.ch:_r,Ur)},Re,We=function(_r){return t.options.lineWrapping?(Re=Re||rt(t,p),dr(t,p,Re,_r)):{begin:0,end:p.text.length}},gt=We(B.sticky=="before"?we(B,-1):B.ch);if(t.doc.direction=="rtl"||ge.level==1){var At=ge.level==1==j<0,nn=we(B,At?1:-1);if(nn!=null&&(At?nn<=ge.to&&nn<=gt.end:nn>=ge.from&&nn>=gt.begin)){var Gt=At?"before":"after";return new qt(B.line,nn,Gt)}}var wn=function(_r,Ur,br){for(var Xr=function(Va,vi){return vi?new qt(B.line,we(Va,1),"before"):new qt(B.line,Va,"after")};_r>=0&&_r<G.length;_r+=Ur){var ia=G[_r],ea=Ur>0==(ia.level!=1),wa=ea?br.begin:we(br.end,-1);if(ia.from<=wa&&wa<ia.to)return Xr(wa,ea);if(wa=ea?ia.from:we(ia.to,-1),br.begin<=wa&&wa<br.end)return Xr(wa,ea)}},Hn=wn(ne+j,j,gt);if(Hn)return Hn;var Zn=j>0?gt.end:we(gt.begin,-1);return Zn!=null&&!(j>0&&Zn==p.text.length)&&(Hn=wn(j>0?0:G.length-1,j,We(Zn)),Hn)?Hn:null}var qo={selectAll:ol,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Te)},killLine:function(t){return Zo(t,function(p){if(p.empty()){var B=ln(t.doc,p.head.line).text.length;return p.head.ch==B&&p.head.line<t.lastLine()?{from:p.head,to:qt(p.head.line+1,0)}:{from:p.head,to:qt(p.head.line,B)}}else return{from:p.from(),to:p.to()}})},deleteLine:function(t){return Zo(t,function(p){return{from:qt(p.from().line,0),to:X(t.doc,qt(p.to().line+1,0))}})},delLineLeft:function(t){return Zo(t,function(p){return{from:qt(p.from().line,0),to:p.from()}})},delWrappedLineLeft:function(t){return Zo(t,function(p){var B=t.charCoords(p.head,"div").top+5,j=t.coordsChar({left:0,top:B},"div");return{from:j,to:p.from()}})},delWrappedLineRight:function(t){return Zo(t,function(p){var B=t.charCoords(p.head,"div").top+5,j=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:B},"div");return{from:p.from(),to:j}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(qt(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(qt(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(p){return Cs(t,p.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(p){return yl(t,p.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(p){return Ws(t,p.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(p){var B=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:B},"div")},be)},goLineLeft:function(t){return t.extendSelectionsBy(function(p){var B=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:0,top:B},"div")},be)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(p){var B=t.cursorCoords(p.head,"div").top+5,j=t.coordsChar({left:0,top:B},"div");return j.ch<t.getLine(j.line).search(/\S/)?yl(t,p.head):j},be)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var p=[],B=t.listSelections(),j=t.options.tabSize,G=0;G<B.length;G++){var ne=B[G].from(),ge=K(t.getLine(ne.line),ne.ch,j);p.push(se(j-ge%j))}t.replaceSelections(p)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return fi(t,function(){for(var p=t.listSelections(),B=[],j=0;j<p.length;j++){if(!p[j].empty())continue;var G=p[j].head,ne=ln(t.doc,G.line).text;if(ne){if(G.ch==ne.length&&(G=new qt(G.line,G.ch-1)),G.ch>0)G=new qt(G.line,G.ch+1),t.replaceRange(ne.charAt(G.ch-1)+ne.charAt(G.ch-2),qt(G.line,G.ch-2),G,"+transpose");else if(G.line>t.doc.first){var ge=ln(t.doc,G.line-1).text;ge&&(G=new qt(G.line,1),t.replaceRange(ne.charAt(0)+t.doc.lineSeparator()+ge.charAt(ge.length-1),qt(G.line-1,ge.length-1),G,"+transpose"))}}B.push(new Pa(G,G))}t.setSelections(B)})},newlineAndIndent:function(t){return fi(t,function(){for(var p=t.listSelections(),B=p.length-1;B>=0;B--)t.replaceRange(t.doc.lineSeparator(),p[B].anchor,p[B].head,"+input");p=t.listSelections();for(var j=0;j<p.length;j++)t.indentLine(p[j].from().line,null,!0);Xi(t)})},openLine:function(t){return t.replaceSelection(`
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Cs(t,p){var B=ln(t.doc,p),j=an(B);return j!=B&&(p=Yn(j)),Bs(!0,t,j,p,1)}function Ws(t,p){var B=ln(t.doc,p),j=Mn(B);return j!=B&&(p=Yn(j)),Bs(!0,t,B,p,-1)}function yl(t,p){var B=Cs(t,p.line),j=ln(t.doc,B.line),G=_t(j,t.doc.direction);if(!G||G[0].level==0){var ne=Math.max(B.ch,j.text.search(/\S/)),ge=p.line==B.line&&p.ch<=ne&&p.ch;return qt(B.line,ge?0:ne,B.sticky)}return B}function Ss(t,p,B){if(typeof p=="string"&&(p=qo[p],!p))return!1;t.display.input.ensurePolled();var j=t.display.shift,G=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),B&&(t.display.shift=!1),G=p(t)!=Se}finally{t.display.shift=j,t.state.suppressEdits=!1}return G}function Kl(t,p,B){for(var j=0;j<t.state.keyMaps.length;j++){var G=_o(p,t.state.keyMaps[j],B,t);if(G)return G}return t.options.extraKeys&&_o(p,t.options.extraKeys,B,t)||_o(p,t.options.keyMap,B,t)}var Gl=new ee;function ss(t,p,B,j){var G=t.state.keySeq;if(G){if(is(p))return"handled";if(/\'$/.test(p)?t.state.keySeq=null:Gl.set(50,function(){t.state.keySeq==G&&(t.state.keySeq=null,t.display.input.reset())}),Hs(t,G+" "+p,B,j))return!0}return Hs(t,p,B,j)}function Hs(t,p,B,j){var G=Kl(t,p,j);return G=="multi"&&(t.state.keySeq=p),G=="handled"&&Yt(t,"keyHandled",t,p,B),(G=="handled"||G=="multi")&&(Ce(B),Za(t)),!!G}function El(t,p){var B=xs(p,!0);return B?p.shiftKey&&!t.state.keySeq?ss(t,"Shift-"+B,p,function(j){return Ss(t,j,!0)})||ss(t,B,p,function(j){if(typeof j=="string"?/^go[A-Z]/.test(j):j.motion)return Ss(t,j)}):ss(t,B,p,function(j){return Ss(t,j)}):!1}function zl(t,p,B){return ss(t,"'"+B+"'",p,function(j){return Ss(t,j,!0)})}var Ks=null;function xl(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(p.curOp.focus=V(),jt(p,t))return;O&&m<11&&t.keyCode==27&&(t.returnValue=!1);var B=t.keyCode;p.display.shift=B==16||t.shiftKey;var j=El(p,t);u&&(Ks=j?B:null,!j&&B==88&&!ot&&(s?t.metaKey:t.ctrlKey)&&p.replaceSelection("",null,"cut")),A&&!s&&!j&&B==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),B==18&&!/\bCodeMirror-crosshair\b/.test(p.display.lineDiv.className)&&Vl(p)}function Vl(t){var p=t.display.lineDiv;H(p,"CodeMirror-crosshair");function B(j){(j.keyCode==18||!j.altKey)&&(x(p,"CodeMirror-crosshair"),Ut(document,"keyup",B),Ut(document,"mouseover",B))}Ue(document,"keyup",B),Ue(document,"mouseover",B)}function Cl(t){t.keyCode==16&&(this.doc.sel.shift=!1),jt(this,t)}function Sl(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(Oa(p.display,t)||jt(p,t)||t.ctrlKey&&!t.altKey||s&&t.metaKey)return;var B=t.keyCode,j=t.charCode;if(u&&B==Ks){Ks=null,Ce(t);return}if(u&&(!t.which||t.which<10)&&El(p,t))return;var G=String.fromCharCode(j==null?B:j);if(G=="\b")return;if(zl(p,t,G))return;p.display.input.onKeyPress(t)}var Xl=400,Gs=function(t,p,B){this.time=t,this.pos=p,this.button=B};Gs.prototype.compare=function(t,p,B){return this.time+Xl>t&&On(p,this.pos)==0&&B==this.button};var ls,us;function Yl(t,p){var B=+new Date;return us&&us.compare(B,t,p)?(ls=us=null,"triple"):ls&&ls.compare(B,t,p)?(us=new Gs(B,t,p),ls=null,"double"):(ls=new Gs(B,t,p),us=null,"single")}function zs(t){var p=this,B=p.display;if(jt(p,t)||B.activeTouch&&B.input.supportsTouch())return;if(B.input.ensurePolled(),B.shift=t.shiftKey,Oa(B,t)){e||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(Xs(p,t))return;var j=Aa(p,t),G=it(t),ne=j?Yl(j,G):"single";if(window.focus(),G==1&&p.state.selectingText&&p.state.selectingText(t),j&&wl(p,G,j,ne,t))return;G==1?j?Ql(p,j,ne,t):Ke(t)==B.scroller&&Ce(t):G==2?(j&&_s(p.doc,j),setTimeout(function(){return B.input.focus()},20)):G==3&&(P?p.display.input.onContextMenu(t):Mo(p))}function wl(t,p,B,j,G){var ne="Click";return j=="double"?ne="Double"+ne:j=="triple"&&(ne="Triple"+ne),ne=(p==1?"Left":p==2?"Middle":"Right")+ne,ss(t,bl(ne,G),G,function(ge){if(typeof ge=="string"&&(ge=qo[ge]),!ge)return!1;var we=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),we=ge(t,B)!=Se}finally{t.state.suppressEdits=!1}return we})}function Jl(t,p,B){var j=t.getOption("configureMouse"),G=j?j(t,p,B):{};if(G.unit==null){var ne=l?B.shiftKey&&B.metaKey:B.altKey;G.unit=ne?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(G.extend==null||t.doc.extend)&&(G.extend=t.doc.extend||B.shiftKey),G.addNew==null&&(G.addNew=s?B.metaKey:B.ctrlKey),G.moveOnDrag==null&&(G.moveOnDrag=!(s?B.altKey:B.ctrlKey)),G}function Ql(t,p,B,j){O?setTimeout(F(to,t),0):t.curOp.focus=V();var G=Jl(t,B,j),ne=t.doc.sel,ge;t.options.dragDrop&&Ct&&!t.isReadOnly()&&B=="single"&&(ge=ne.contains(p))>-1&&(On((ge=ne.ranges[ge]).from(),p)<0||p.xRel>0)&&(On(ge.to(),p)>0||p.xRel<0)?Zl(t,j,p,G):ql(t,j,p,G)}function Zl(t,p,B,j){var G=t.display,ne=!1,ge=Ha(t,function(We){e&&(G.scroller.draggable=!1),t.state.draggingText=!1,Ut(G.wrapper.ownerDocument,"mouseup",ge),Ut(G.wrapper.ownerDocument,"mousemove",we),Ut(G.scroller,"dragstart",Re),Ut(G.scroller,"drop",ge),ne||(Ce(We),j.addNew||_s(t.doc,B,null,null,j.extend),e&&!n||O&&m==9?setTimeout(function(){G.wrapper.ownerDocument.body.focus({preventScroll:!0}),G.input.focus()},20):G.input.focus())}),we=function(We){ne=ne||Math.abs(p.clientX-We.clientX)+Math.abs(p.clientY-We.clientY)>=10},Re=function(){return ne=!0};e&&(G.scroller.draggable=!0),t.state.draggingText=ge,ge.copy=!j.moveOnDrag,G.scroller.dragDrop&&G.scroller.dragDrop(),Ue(G.wrapper.ownerDocument,"mouseup",ge),Ue(G.wrapper.ownerDocument,"mousemove",we),Ue(G.scroller,"dragstart",Re),Ue(G.scroller,"drop",ge),Mo(t),setTimeout(function(){return G.input.focus()},20)}function Vs(t,p,B){if(B=="char")return new Pa(p,p);if(B=="word")return t.findWordAt(p);if(B=="line")return new Pa(qt(p.line,0),X(t.doc,qt(p.line+1,0)));var j=B(t,p);return new Pa(j.from,j.to)}function ql(t,p,B,j){var G=t.display,ne=t.doc;Ce(p);var ge,we,Re=ne.sel,We=Re.ranges;if(j.addNew&&!j.extend?(we=ne.sel.contains(B),we>-1?ge=We[we]:ge=new Pa(B,B)):(ge=ne.sel.primary(),we=ne.sel.primIndex),j.unit=="rectangle")j.addNew||(ge=new Pa(B,B)),B=Aa(t,p,!0,!0),we=-1;else{var gt=Vs(t,B,j.unit);j.extend?ge=vs(ge,gt.anchor,gt.head,j.extend):ge=gt}j.addNew?we==-1?(we=We.length,gi(ne,sa(t,We.concat([ge]),we),{scroll:!1,origin:"*mouse"})):We.length>1&&We[we].empty()&&j.unit=="char"&&!j.extend?(gi(ne,sa(t,We.slice(0,we).concat(We.slice(we+1)),0),{scroll:!1,origin:"*mouse"}),Re=ne.sel):Ao(ne,we,ge,ce):(we=0,gi(ne,new hi([ge],0),ce),Re=ne.sel);var At=B;function nn(br){if(On(At,br)==0)return;if(At=br,j.unit=="rectangle"){for(var Xr=[],ia=t.options.tabSize,ea=K(ln(ne,B.line).text,B.ch,ia),wa=K(ln(ne,br.line).text,br.ch,ia),Va=Math.min(ea,wa),vi=Math.max(ea,wa),ti=Math.min(B.line,br.line),zi=Math.min(t.lastLine(),Math.max(B.line,br.line));ti<=zi;ti++){var Ui=ln(ne,ti).text,ci=ye(Ui,Va,ia);Va==vi?Xr.push(new Pa(qt(ti,ci),qt(ti,ci))):Ui.length>ci&&Xr.push(new Pa(qt(ti,ci),qt(ti,ye(Ui,vi,ia))))}Xr.length||Xr.push(new Pa(B,B)),gi(ne,sa(t,Re.ranges.slice(0,we).concat(Xr),we),{origin:"*mouse",scroll:!1}),t.scrollIntoView(br)}else{var ji=ge,Ci=Vs(t,br,j.unit),pi=ji.anchor,di;On(Ci.anchor,pi)>0?(di=Ci.head,pi=pr(ji.from(),Ci.anchor)):(di=Ci.anchor,pi=yr(ji.to(),Ci.head));var ii=Re.ranges.slice(0);ii[we]=$l(t,new Pa(X(ne,pi),di)),gi(ne,sa(t,ii,we),ce)}}var Gt=G.wrapper.getBoundingClientRect(),wn=0;function Hn(br){var Xr=++wn,ia=Aa(t,br,!0,j.unit=="rectangle");if(!ia)return;if(On(ia,At)!=0){t.curOp.focus=V(),nn(ia);var ea=uo(G,ne);(ia.line>=ea.to||ia.line<ea.from)&&setTimeout(Ha(t,function(){wn==Xr&&Hn(br)}),150)}else{var wa=br.clientY<Gt.top?-20:br.clientY>Gt.bottom?20:0;wa&&setTimeout(Ha(t,function(){if(wn!=Xr)return;G.scroller.scrollTop+=wa,Hn(br)}),50)}}function Zn(br){t.state.selectingText=!1,wn=Infinity,br&&(Ce(br),G.input.focus()),Ut(G.wrapper.ownerDocument,"mousemove",_r),Ut(G.wrapper.ownerDocument,"mouseup",Ur),ne.history.lastSelOrigin=null}var _r=Ha(t,function(br){br.buttons===0||!it(br)?Zn(br):Hn(br)}),Ur=Ha(t,Zn);t.state.selectingText=Ur,Ue(G.wrapper.ownerDocument,"mousemove",_r),Ue(G.wrapper.ownerDocument,"mouseup",Ur)}function $l(t,p){var B=p.anchor,j=p.head,G=ln(t.doc,B.line);if(On(B,j)==0&&B.sticky==j.sticky)return p;var ne=_t(G);if(!ne)return p;var ge=ht(ne,B.ch,B.sticky),we=ne[ge];if(we.from!=B.ch&&we.to!=B.ch)return p;var Re=ge+(we.from==B.ch==(we.level!=1)?0:1);if(Re==0||Re==ne.length)return p;var We;if(j.line!=B.line)We=(j.line-B.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var gt=ht(ne,j.ch,j.sticky),At=gt-ge||(j.ch-B.ch)*(we.level==1?-1:1);gt==Re-1||gt==Re?We=At<0:We=At>0}var nn=ne[Re+(We?-1:0)],Gt=We==(nn.level==1),wn=Gt?nn.from:nn.to,Hn=Gt?"after":"before";return B.ch==wn&&B.sticky==Hn?p:new Pa(new qt(B.line,wn,Hn),j)}function Tl(t,p,B,j){var G,ne;if(p.touches)G=p.touches[0].clientX,ne=p.touches[0].clientY;else try{G=p.clientX,ne=p.clientY}catch(nn){return!1}if(G>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;j&&Ce(p);var ge=t.display,we=ge.lineDiv.getBoundingClientRect();if(ne>we.bottom||!Be(t,B))return He(p);ne-=we.top-ge.viewOffset;for(var Re=0;Re<t.display.gutterSpecs.length;++Re){var We=ge.gutters.childNodes[Re];if(We&&We.getBoundingClientRect().right>=G){var gt=Or(t.doc,ne),At=t.display.gutterSpecs[Re];return Et(t,B,t,gt,At.className,p),He(p)}}}function Xs(t,p){return Tl(t,p,"gutterClick",!0)}function Ol(t,p){if(Oa(t.display,p)||Al(t,p))return;if(jt(t,p,"contextmenu"))return;P||t.display.input.onContextMenu(p)}function Al(t,p){return Be(t,"gutterContextMenu")?Tl(t,p,"gutterContextMenu",!1):!1}function Dl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jr(t)}var $o={toString:function(){return"CodeMirror.Init"}},ws={},cs={};function eu(t){var p=t.optionHandlers;function B(j,G,ne,ge){t.defaults[j]=G,ne&&(p[j]=ge?function(we,Re,We){We!=$o&&ne(we,Re,We)}:ne)}t.defineOption=B,t.Init=$o,B("value","",function(j,G){return j.setValue(G)},!0),B("mode",null,function(j,G){j.doc.modeOption=G,$a(j)},!0),B("indentUnit",2,$a,!0),B("indentWithTabs",!1),B("smartIndent",!0),B("tabSize",4,function(j){xi(j),jr(j),Na(j)},!0),B("lineSeparator",null,function(j,G){if(j.doc.lineSep=G,!G)return;var ne=[],ge=j.doc.first;j.doc.iter(function(Re){for(var We=0;;){var gt=Re.text.indexOf(G,We);if(gt==-1)break;We=gt+G.length,ne.push(qt(ge,gt))}ge++});for(var we=ne.length-1;we>=0;we--)Xo(j.doc,G,ne[we],qt(ne[we].line,ne[we].ch+G.length))}),B("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(j,G,ne){j.state.specialChars=new RegExp(G.source+(G.test(" ")?"":"| "),"g"),ne!=$o&&j.refresh()}),B("specialCharPlaceholder",ir,function(j){return j.refresh()},!0),B("electricChars",!0),B("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),B("spellcheck",!1,function(j,G){return j.getInputField().spellcheck=G},!0),B("autocorrect",!1,function(j,G){return j.getInputField().autocorrect=G},!0),B("autocapitalize",!1,function(j,G){return j.getInputField().autocapitalize=G},!0),B("rtlMoveVisually",!w),B("wholeLineUpdateBefore",!0),B("theme","default",function(j){Dl(j),ki(j)},!0),B("keyMap","default",function(j,G,ne){var ge=os(G),we=ne!=$o&&os(ne);we&&we.detach&&we.detach(j,ge),ge.attach&&ge.attach(j,we||null)}),B("extraKeys",null),B("configureMouse",null),B("lineWrapping",!1,nu,!0),B("gutters",[],function(j,G){j.display.gutterSpecs=ui(G,j.options.lineNumbers),ki(j)},!0),B("fixedGutter",!0,function(j,G){j.display.gutters.style.left=G?pa(j.display)+"px":"0",j.refresh()},!0),B("coverGutterNextToScrollbar",!1,function(j){return Ri(j)},!0),B("scrollbarStyle","native",function(j){Co(j),Ri(j),j.display.scrollbars.setScrollTop(j.doc.scrollTop),j.display.scrollbars.setScrollLeft(j.doc.scrollLeft)},!0),B("lineNumbers",!1,function(j,G){j.display.gutterSpecs=ui(j.options.gutters,G),ki(j)},!0),B("firstLineNumber",1,ki,!0),B("lineNumberFormatter",function(j){return j},ki,!0),B("showCursorWhenSelecting",!1,La,!0),B("resetSelectionOnContextMenu",!0),B("lineWiseCopyCut",!0),B("pasteLinesPerSelection",!0),B("selectionsMayTouch",!1),B("readOnly",!1,function(j,G){G=="nocursor"&&(no(j),j.display.input.blur()),j.display.input.readOnlyChanged(G)}),B("screenReaderLabel",null,function(j,G){G=G===""?null:G,j.display.input.screenReaderLabelChanged(G)}),B("disableInput",!1,function(j,G){G||j.display.input.reset()},!0),B("dragDrop",!0,tu),B("allowDropFileTypes",null),B("cursorBlinkRate",530),B("cursorScrollMargin",0),B("cursorHeight",1,La,!0),B("singleCursorHeightPerLine",!0,La,!0),B("workTime",100),B("workDelay",100),B("flattenSpans",!0,xi,!0),B("addModeClass",!1,xi,!0),B("pollInterval",100),B("undoDepth",200,function(j,G){return j.doc.history.undoDepth=G}),B("historyEventDelay",1250),B("viewportMargin",10,function(j){return j.refresh()},!0),B("maxHighlightLength",1e4,xi,!0),B("moveInputWithCursor",!0,function(j,G){G||j.display.input.resetPosition()}),B("tabindex",null,function(j,G){return j.display.input.getField().tabIndex=G||""}),B("autofocus",null),B("direction","ltr",function(j,G){return j.doc.setDirection(G)},!0),B("phrases",null)}function tu(t,p,B){var j=B&&B!=$o;if(!p!=!j){var G=t.display.dragFunctions,ne=p?Ue:Ut;ne(t.display.scroller,"dragstart",G.start),ne(t.display.scroller,"dragenter",G.enter),ne(t.display.scroller,"dragover",G.over),ne(t.display.scroller,"dragleave",G.leave),ne(t.display.scroller,"drop",G.drop)}}function nu(t){t.options.lineWrapping?(H(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(x(t.display.wrapper,"CodeMirror-wrap"),Xt(t)),ba(t),Na(t),jr(t),setTimeout(function(){return Ri(t)},100)}function Ya(t,p){var B=this;if(!(this instanceof Ya))return new Ya(t,p);this.options=p=p?I(p):{},I(ws,p,!1);var j=p.value;typeof j=="string"?j=new Ti(j,p.mode,null,p.lineSeparator,p.direction):p.mode&&(j.modeOption=p.mode),this.doc=j;var G=new Ya.inputStyles[p.inputStyle](this),ne=this.display=new ho(t,j,G,p);ne.wrapper.CodeMirror=this,Dl(this),p.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 ee,keySeq:null,specialChars:null},p.autofocus&&!d&&ne.input.focus(),O&&m<11&&setTimeout(function(){return B.display.input.reset(!0)},20),Rl(this),ou(),Ni(this),this.curOp.forceUpdate=!0,As(this,j),p.autofocus&&!d||this.hasFocus()?setTimeout(function(){B.hasFocus()&&!B.state.focused&&Ii(B)},20):no(this);for(var ge in cs)cs.hasOwnProperty(ge)&&cs[ge](this,p[ge],$o);Ga(this),p.finishInit&&p.finishInit(this);for(var we=0;we<Y.length;++we)Y[we](this);qi(this),e&&p.lineWrapping&&getComputedStyle(ne.lineDiv).textRendering=="optimizelegibility"&&(ne.lineDiv.style.textRendering="auto")}Ya.defaults=ws,Ya.optionHandlers=cs;function Rl(t){var p=t.display;Ue(p.scroller,"mousedown",Ha(t,zs)),O&&m<11?Ue(p.scroller,"dblclick",Ha(t,function(Re){if(jt(t,Re))return;var We=Aa(t,Re);if(!We||Xs(t,Re)||Oa(t.display,Re))return;Ce(Re);var gt=t.findWordAt(We);_s(t.doc,gt.anchor,gt.head)})):Ue(p.scroller,"dblclick",function(Re){return jt(t,Re)||Ce(Re)}),Ue(p.scroller,"contextmenu",function(Re){return Ol(t,Re)}),Ue(p.input.getField(),"contextmenu",function(Re){p.scroller.contains(Re.target)||Ol(t,Re)});var B,j={end:0};function G(){p.activeTouch&&(B=setTimeout(function(){return p.activeTouch=null},1e3),j=p.activeTouch,j.end=+new Date)}function ne(Re){if(Re.touches.length!=1)return!1;var We=Re.touches[0];return We.radiusX<=1&&We.radiusY<=1}function ge(Re,We){if(We.left==null)return!0;var gt=We.left-Re.left,At=We.top-Re.top;return gt*gt+At*At>20*20}Ue(p.scroller,"touchstart",function(Re){if(!jt(t,Re)&&!ne(Re)&&!Xs(t,Re)){p.input.ensurePolled(),clearTimeout(B);var We=+new Date;p.activeTouch={start:We,moved:!1,prev:We-j.end<=300?j:null},Re.touches.length==1&&(p.activeTouch.left=Re.touches[0].pageX,p.activeTouch.top=Re.touches[0].pageY)}}),Ue(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),Ue(p.scroller,"touchend",function(Re){var We=p.activeTouch;if(We&&!Oa(p,Re)&&We.left!=null&&!We.moved&&new Date-We.start<300){var gt=t.coordsChar(p.activeTouch,"page"),At;!We.prev||ge(We,We.prev)?At=new Pa(gt,gt):!We.prev.prev||ge(We,We.prev.prev)?At=t.findWordAt(gt):At=new Pa(qt(gt.line,0),X(t.doc,qt(gt.line+1,0))),t.setSelection(At.anchor,At.head),t.focus(),Ce(Re)}G()}),Ue(p.scroller,"touchcancel",G),Ue(p.scroller,"scroll",function(){p.scroller.clientHeight&&(Ji(t,p.scroller.scrollTop),ei(t,p.scroller.scrollLeft,!0),Et(t,"scroll",t))}),Ue(p.scroller,"mousewheel",function(Re){return mo(t,Re)}),Ue(p.scroller,"DOMMouseScroll",function(Re){return mo(t,Re)}),Ue(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(Re){jt(t,Re)||je(Re)},over:function(Re){jt(t,Re)||(Fl(t,Re),je(Re))},start:function(Re){return gl(t,Re)},drop:Ha(t,Bl),leave:function(Re){jt(t,Re)||Ls(t)}};var we=p.input.getField();Ue(we,"keyup",function(Re){return Cl.call(t,Re)}),Ue(we,"keydown",Ha(t,xl)),Ue(we,"keypress",Ha(t,Sl)),Ue(we,"focus",function(Re){return Ii(t,Re)}),Ue(we,"blur",function(Re){return no(t,Re)})}var Y=[];Ya.defineInitHook=function(t){return Y.push(t)};function Z(t,p,B,j){var G=t.doc,ne;B==null&&(B="add"),B=="smart"&&(G.mode.indent?ne=In(t,p).state:B="prev");var ge=t.options.tabSize,we=ln(G,p),Re=K(we.text,null,ge);we.stateAfter&&(we.stateAfter=null);var We=we.text.match(/^\s*/)[0],gt;if(!j&&!/\S/.test(we.text))gt=0,B="not";else if(B=="smart"&&(gt=G.mode.indent(ne,we.text.slice(We.length),we.text),gt==Se||gt>150)){if(!j)return;B="prev"}B=="prev"?p>G.first?gt=K(ln(G,p-1).text,null,ge):gt=0:B=="add"?gt=Re+t.options.indentUnit:B=="subtract"?gt=Re-t.options.indentUnit:typeof B=="number"&&(gt=Re+B),gt=Math.max(0,gt);var At="",nn=0;if(t.options.indentWithTabs)for(var Gt=Math.floor(gt/ge);Gt;--Gt)nn+=ge,At+=" ";if(nn<gt&&(At+=se(gt-nn)),At!=We)return Xo(G,At,qt(p,0),qt(p,We.length),"+input"),we.stateAfter=null,!0;for(var wn=0;wn<G.sel.ranges.length;wn++){var Hn=G.sel.ranges[wn];if(Hn.head.line==p&&Hn.head.ch<We.length){var Zn=qt(p,We.length);Ao(G,wn,new Pa(Zn,Zn));break}}}var ie=null;function Ee(t){ie=t}function Ne(t,p,B,j,G){var ne=t.doc;t.display.shift=!1,j||(j=ne.sel);var ge=+new Date-200,we=G=="paste"||t.state.pasteIncoming>ge,Re=Fe(p),We=null;if(we&&j.ranges.length>1)if(ie&&ie.text.join(`
`)==p){if(j.ranges.length%ie.text.length==0){We=[];for(var gt=0;gt<ie.text.length;gt++)We.push(ne.splitLines(ie.text[gt]))}}else Re.length==j.ranges.length&&t.options.pasteLinesPerSelection&&(We=me(Re,function(_r){return[_r]}));for(var At=t.curOp.updateInput,nn=j.ranges.length-1;nn>=0;nn--){var Gt=j.ranges[nn],wn=Gt.from(),Hn=Gt.to();Gt.empty()&&(B&&B>0?wn=qt(wn.line,wn.ch-B):t.state.overwrite&&!we?Hn=qt(Hn.line,Math.min(ln(ne,Hn.line).text.length,Hn.ch+$(Re).length)):we&&ie&&ie.lineWise&&ie.text.join(`
`)==Re.join(`
`)&&(wn=Hn=qt(wn.line,0)));var Zn={from:wn,to:Hn,text:We?We[nn%We.length]:Re,origin:G||(we?"paste":t.state.cutIncoming>ge?"cut":"+input")};zo(t.doc,Zn),Yt(t,"inputRead",t,Zn)}p&&!we&&Ge(t,p),Xi(t),t.curOp.updateInput<2&&(t.curOp.updateInput=At),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function ke(t,p){var B=t.clipboardData&&t.clipboardData.getData("Text");if(B)return t.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&fi(p,function(){return Ne(p,B,0,null,"paste")}),!0}function Ge(t,p){if(!t.options.electricChars||!t.options.smartIndent)return;for(var B=t.doc.sel,j=B.ranges.length-1;j>=0;j--){var G=B.ranges[j];if(G.head.ch>100||j&&B.ranges[j-1].head.line==G.head.line)continue;var ne=t.getModeAt(G.head),ge=!1;if(ne.electricChars){for(var we=0;we<ne.electricChars.length;we++)if(p.indexOf(ne.electricChars.charAt(we))>-1){ge=Z(t,G.head.line,"smart");break}}else ne.electricInput&&(ne.electricInput.test(ln(t.doc,G.head.line).text.slice(0,G.head.ch))&&(ge=Z(t,G.head.line,"smart")));ge&&Yt(t,"electricInput",t,G.head.line)}}function ze(t){for(var p=[],B=[],j=0;j<t.doc.sel.ranges.length;j++){var G=t.doc.sel.ranges[j].head.line,ne={anchor:qt(G,0),head:qt(G+1,0)};B.push(ne),p.push(t.getRange(ne.anchor,ne.head))}return{text:p,ranges:B}}function xt(t,p,B,j){t.setAttribute("autocorrect",B?"":"off"),t.setAttribute("autocapitalize",j?"":"off"),t.setAttribute("spellcheck",!!p)}function kt(){var t=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),p=T("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return e?t.style.width="1000px":t.setAttribute("wrap","off"),c&&(t.style.border="1px solid black"),xt(t),p}function Bt(t){var p=t.optionHandlers,B=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(j,G){var ne=this.options,ge=ne[j];if(ne[j]==G&&j!="mode")return;ne[j]=G,p.hasOwnProperty(j)&&Ha(this,p[j])(this,G,ge),Et(this,"optionChange",this,j)},getOption:function(j){return this.options[j]},getDoc:function(){return this.doc},addKeyMap:function(j,G){this.state.keyMaps[G?"push":"unshift"](os(j))},removeKeyMap:function(j){for(var G=this.state.keyMaps,ne=0;ne<G.length;++ne)if(G[ne]==j||G[ne].name==j)return G.splice(ne,1),!0},addOverlay:ri(function(j,G){var ne=j.token?j:t.getMode(this.options,j);if(ne.startState)throw new Error("Overlays may not be stateful.");re(this.state.overlays,{mode:ne,modeSpec:j,opaque:G&&G.opaque,priority:G&&G.priority||0},function(ge){return ge.priority}),this.state.modeGen++,Na(this)}),removeOverlay:ri(function(j){for(var G=this.state.overlays,ne=0;ne<G.length;++ne){var ge=G[ne].modeSpec;if(ge==j||typeof j=="string"&&ge.name==j){G.splice(ne,1),this.state.modeGen++,Na(this);return}}}),indentLine:ri(function(j,G,ne){typeof G!="string"&&typeof G!="number"&&(G==null?G=this.options.smartIndent?"smart":"prev":G=G?"add":"subtract"),cr(this.doc,j)&&Z(this,j,G,ne)}),indentSelection:ri(function(j){for(var G=this.doc.sel.ranges,ne=-1,ge=0;ge<G.length;ge++){var we=G[ge];if(we.empty())we.head.line>ne&&(Z(this,we.head.line,j,!0),ne=we.head.line,ge==this.doc.sel.primIndex&&Xi(this));else{var Re=we.from(),We=we.to(),gt=Math.max(ne,Re.line);ne=Math.min(this.lastLine(),We.line-(We.ch?0:1))+1;for(var At=gt;At<ne;++At)Z(this,At,j);var nn=this.doc.sel.ranges;Re.ch==0&&G.length==nn.length&&nn[ge].from().ch>0&&Ao(this.doc,ge,new Pa(Re,nn[ge].to()),Te)}}}),getTokenAt:function(j,G){return Br(this,j,G)},getLineTokens:function(j,G){return Br(this,qt(j),G,!0)},getTokenTypeAt:function(j){j=X(this.doc,j);var G=Qt(this,ln(this.doc,j.line)),ne=0,ge=(G.length-1)/2,we=j.ch,Re;if(we==0)Re=G[2];else for(;;){var We=ne+ge>>1;if((We?G[We*2-1]:0)>=we)ge=We;else if(G[We*2+1]<we)ne=We+1;else{Re=G[We*2+2];break}}var gt=Re?Re.indexOf("overlay "):-1;return gt<0?Re:gt==0?null:Re.slice(0,gt-1)},getModeAt:function(j){var G=this.doc.mode;return G.innerMode?t.innerMode(G,this.getTokenAt(j).state).mode:G},getHelper:function(j,G){return this.getHelpers(j,G)[0]},getHelpers:function(j,G){var ne=[];if(!B.hasOwnProperty(G))return ne;var ge=B[G],we=this.getModeAt(j);if(typeof we[G]=="string")ge[we[G]]&&ne.push(ge[we[G]]);else if(we[G])for(var Re=0;Re<we[G].length;Re++){var We=ge[we[G][Re]];We&&ne.push(We)}else we.helperType&&ge[we.helperType]?ne.push(ge[we.helperType]):ge[we.name]&&ne.push(ge[we.name]);for(var gt=0;gt<ge._global.length;gt++){var At=ge._global[gt];At.pred(we,this)&&he(ne,At.val)==-1&&ne.push(At.val)}return ne},getStateAfter:function(j,G){var ne=this.doc;return j=pe(ne,j==null?ne.first+ne.size-1:j),In(this,j+1,G).state},cursorCoords:function(j,G){var ne,ge=this.doc.sel.primary();return j==null?ne=ge.head:typeof j=="object"?ne=X(this.doc,j):ne=j?ge.from():ge.to(),zn(this,ne,G||"page")},charCoords:function(j,G){return wr(this,X(this.doc,j),G||"page")},coordsChar:function(j,G){return j=Gn(this,j,G||"page"),Vr(this,j.left,j.top)},lineAtHeight:function(j,G){return j=Gn(this,{top:j,left:0},G||"page").top,Or(this.doc,j+this.display.viewOffset)},heightAtLine:function(j,G,ne){var ge=!1,we;if(typeof j=="number"){var Re=this.doc.first+this.doc.size-1;j<this.doc.first?j=this.doc.first:j>Re&&(j=Re,ge=!0),we=ln(this.doc,j)}else we=j;return ta(this,we,{top:0,left:0},G||"page",ne||ge).top+(ge?this.doc.height-Fr(we):0)},defaultTextHeight:function(){return vr(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(j,G,ne,ge,we){var Re=this.display;j=zn(this,X(this.doc,j));var We=j.bottom,gt=j.left;if(G.style.position="absolute",G.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(G),Re.sizer.appendChild(G),ge=="over")We=j.top;else if(ge=="above"||ge=="near"){var At=Math.max(Re.wrapper.clientHeight,this.doc.height),nn=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||j.bottom+G.offsetHeight>At)&&j.top>G.offsetHeight?We=j.top-G.offsetHeight:j.bottom+G.offsetHeight<=At&&(We=j.bottom),gt+G.offsetWidth>nn&&(gt=nn-G.offsetWidth)}G.style.top=We+"px",G.style.left=G.style.right="",we=="right"?(gt=Re.sizer.clientWidth-G.offsetWidth,G.style.right="0px"):(we=="left"?gt=0:we=="middle"&&(gt=(Re.sizer.clientWidth-G.offsetWidth)/2),G.style.left=gt+"px"),ne&&bo(this,{left:gt,top:We,right:gt+G.offsetWidth,bottom:We+G.offsetHeight})},triggerOnKeyDown:ri(xl),triggerOnKeyPress:ri(Sl),triggerOnKeyUp:Cl,triggerOnMouseDown:ri(zs),execCommand:function(j){if(qo.hasOwnProperty(j))return qo[j].call(null,this)},triggerElectric:ri(function(j){Ge(this,j)}),findPosH:function(j,G,ne,ge){var we=1;G<0&&(we=-1,G=-G);for(var Re=X(this.doc,j),We=0;We<G&&!(Re=Tt(this.doc,Re,we,ne,ge),Re.hitSide);++We);return Re},moveH:ri(function(j,G){var ne=this;this.extendSelectionsBy(function(ge){return ne.display.shift||ne.doc.extend||ge.empty()?Tt(ne.doc,ge.head,j,G,ne.options.rtlMoveVisually):j<0?ge.from():ge.to()},be)}),deleteH:ri(function(j,G){var ne=this.doc.sel,ge=this.doc;ne.somethingSelected()?ge.replaceSelection("",null,"+delete"):Zo(this,function(we){var Re=Tt(ge,we.head,j,G,!1);return j<0?{from:Re,to:we.head}:{from:we.head,to:Re}})}),findPosV:function(j,G,ne,ge){var we=1,Re=ge;G<0&&(we=-1,G=-G);for(var We=X(this.doc,j),gt=0;gt<G;++gt){var At=zn(this,We,"div");if(Re==null?Re=At.left:At.left=Re,We=St(this,At,we,ne),We.hitSide)break}return We},moveV:ri(function(j,G){var ne=this,ge=this.doc,we=[],Re=!this.display.shift&&!ge.extend&&ge.sel.somethingSelected();if(ge.extendSelectionsBy(function(gt){if(Re)return j<0?gt.from():gt.to();var At=zn(ne,gt.head,"div");gt.goalColumn!=null&&(At.left=gt.goalColumn),we.push(At.left);var nn=St(ne,At,j,G);return G=="page"&&gt==ge.sel.primary()&&co(ne,wr(ne,nn,"div").top-At.top),nn},be),we.length)for(var We=0;We<ge.sel.ranges.length;We++)ge.sel.ranges[We].goalColumn=we[We]}),findWordAt:function(j){var G=this.doc,ne=ln(G,j.line).text,ge=j.ch,we=j.ch;if(ne){var Re=this.getHelper(j,"wordChars");(j.sticky=="before"||we==ne.length)&&ge?--ge:++we;for(var We=ne.charAt(ge),gt=Q(We,Re)?function(At){return Q(At,Re)}:/\s/.test(We)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!Q(At)};ge>0&&gt(ne.charAt(ge-1));)--ge;for(;we<ne.length&&gt(ne.charAt(we));)++we}return new Pa(qt(j.line,ge),qt(j.line,we))},toggleOverwrite:function(j){if(j!=null&&j==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?H(this.display.cursorDiv,"CodeMirror-overwrite"):x(this.display.cursorDiv,"CodeMirror-overwrite"),Et(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(j,G){Yi(this,j,G)}),getScrollInfo:function(){var j=this.display.scroller;return{left:j.scrollLeft,top:j.scrollTop,height:j.scrollHeight-yt(this)-this.display.barHeight,width:j.scrollWidth-yt(this)-this.display.barWidth,clientHeight:Me(this),clientWidth:nt(this)}},scrollIntoView:ri(function(j,G){j==null?(j={from:this.doc.sel.primary().head,to:null},G==null&&(G=this.options.cursorScrollMargin)):typeof j=="number"?j={from:qt(j,0),to:null}:j.from==null&&(j={from:j,to:null}),j.to||(j.to=j.from),j.margin=G||0,j.from.line!=null?No(this,j):ao(this,j.from,j.to,j.margin)}),setSize:ri(function(j,G){var ne=this,ge=function(Re){return typeof Re=="number"||/^\d+$/.test(String(Re))?Re+"px":Re};j!=null&&(this.display.wrapper.style.width=ge(j)),G!=null&&(this.display.wrapper.style.height=ge(G)),this.options.lineWrapping&&xn(this);var we=this.display.viewFrom;this.doc.iter(we,this.display.viewTo,function(Re){if(Re.widgets){for(var We=0;We<Re.widgets.length;We++)if(Re.widgets[We].noHScroll){ka(ne,we,"widget");break}}++we}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(j){return fi(this,j)},startOperation:function(){return Ni(this)},endOperation:function(){return qi(this)},refresh:ri(function(){var j=this.display.cachedTextHeight;Na(this),this.curOp.forceUpdate=!0,jr(this),Yi(this,this.doc.scrollLeft,this.doc.scrollTop),lo(this.display),(j==null||Math.abs(j-vr(this.display))>.5||this.options.lineWrapping)&&ba(this),Et(this,"refresh",this)}),swapDoc:ri(function(j){var G=this.doc;return G.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,j),jr(this),this.display.input.reset(),Yi(this,j.scrollLeft,j.scrollTop),this.curOp.forceScroll=!0,Yt(this,"swapDoc",this,G),G}),phrase:function(j){var G=this.options.phrases;return G&&Object.prototype.hasOwnProperty.call(G,j)?G[j]:j},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}},Ye(t),t.registerHelper=function(j,G,ne){B.hasOwnProperty(j)||(B[j]=t[j]={_global:[]}),B[j][G]=ne},t.registerGlobalHelper=function(j,G,ne,ge){t.registerHelper(j,G,ge),B[j]._global.push({pred:ne,val:ge})}}function Tt(t,p,B,j,G){var ne=p,ge=B,we=ln(t,p.line),Re=G&&t.direction=="rtl"?-B:B;function We(){var Ur=p.line+Re;return Ur<t.first||Ur>=t.first+t.size?!1:(p=new qt(Ur,p.ch,p.sticky),we=ln(t,Ur))}function gt(Ur){var br;if(j=="codepoint"){var Xr=we.text.charCodeAt(p.ch+(j>0?0:-1));isNaN(Xr)?br=null:br=new qt(p.line,Math.max(0,Math.min(we.text.length,p.ch+B*(Xr>=55296&&Xr<56320?2:1))),-B)}else G?br=Fs(t.cm,we,p,B):br=js(we,p,B);if(br==null)if(!Ur&&We())p=Bs(G,t.cm,we,p.line,Re);else return!1;else p=br;return!0}if(j=="char"||j=="codepoint")gt();else if(j=="column")gt(!0);else if(j=="word"||j=="group")for(var At=null,nn=j=="group",Gt=t.cm&&t.cm.getHelper(p,"wordChars"),wn=!0;!(B<0&&!gt(!wn));wn=!1){var Hn=we.text.charAt(p.ch)||`
`,Zn=Q(Hn,Gt)?"w":nn&&Hn==`
`?"n":!nn||/\s/.test(Hn)?null:"p";if(nn&&!wn&&!Zn&&(Zn="s"),At&&At!=Zn){B<0&&(B=1,gt(),p.sticky="after");break}if(Zn&&(At=Zn),B>0&&!gt(!wn))break}var _r=bs(t,p,ne,ge,!0);return Ir(ne,_r)&&(_r.hitSide=!0),_r}function St(t,p,B,j){var G=t.doc,ne=p.left,ge;if(j=="page"){var we=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(we-.5*vr(t.display),3);ge=(B>0?p.bottom:p.top)+B*Re}else j=="line"&&(ge=B>0?p.bottom+3:p.top-3);for(var We;!(We=Vr(t,ne,ge),!We.outside);){if(B<0?ge<=0:ge>=G.height){We.hitSide=!0;break}ge+=B*5}return We}var Nt=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Nt.prototype.init=function(t){var p=this,B=this,j=B.cm,G=B.div=t.lineDiv;xt(G,j.options.spellcheck,j.options.autocorrect,j.options.autocapitalize);function ne(we){for(var Re=we.target;Re;Re=Re.parentNode){if(Re==G)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}Ue(G,"paste",function(we){if(!ne(we)||jt(j,we)||ke(we,j))return;m<=11&&setTimeout(Ha(j,function(){return p.updateFromDOM()}),20)}),Ue(G,"compositionstart",function(we){p.composing={data:we.data,done:!1}}),Ue(G,"compositionupdate",function(we){p.composing||(p.composing={data:we.data,done:!1})}),Ue(G,"compositionend",function(we){p.composing&&(we.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),Ue(G,"touchstart",function(){return B.forceCompositionEnd()}),Ue(G,"input",function(){p.composing||p.readFromDOMSoon()});function ge(we){if(!ne(we)||jt(j,we))return;if(j.somethingSelected())Ee({lineWise:!1,text:j.getSelections()}),we.type=="cut"&&j.replaceSelection("",null,"cut");else if(j.options.lineWiseCopyCut){var Re=ze(j);Ee({lineWise:!0,text:Re.text}),we.type=="cut"&&j.operation(function(){j.setSelections(Re.ranges,0,Te),j.replaceSelection("",null,"cut")})}else return;if(we.clipboardData){we.clipboardData.clearData();var We=ie.text.join(`
`);if(we.clipboardData.setData("Text",We),we.clipboardData.getData("Text")==We){we.preventDefault();return}}var gt=kt(),At=gt.firstChild;j.display.lineSpace.insertBefore(gt,j.display.lineSpace.firstChild),At.value=ie.text.join(`
`);var nn=document.activeElement;W(At),setTimeout(function(){j.display.lineSpace.removeChild(gt),nn.focus(),nn==G&&B.showPrimarySelection()},50)}Ue(G,"copy",ge),Ue(G,"cut",ge)},Nt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Nt.prototype.prepareSelection=function(){var t=bi(this.cm,!1);return t.focus=document.activeElement==this.div,t},Nt.prototype.showSelection=function(t,p){if(!t||!this.cm.display.view.length)return;(t.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(t)},Nt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Nt.prototype.showPrimarySelection=function(){var t=this.getSelection(),p=this.cm,B=p.doc.sel.primary(),j=B.from(),G=B.to();if(p.display.viewTo==p.display.viewFrom||j.line>=p.display.viewTo||G.line<p.display.viewFrom){t.removeAllRanges();return}var ne=Gr(p,t.anchorNode,t.anchorOffset),ge=Gr(p,t.focusNode,t.focusOffset);if(ne&&!ne.bad&&ge&&!ge.bad&&On(pr(ne,ge),j)==0&&On(yr(ne,ge),G)==0)return;var we=p.display.view,Re=j.line>=p.display.viewFrom&&mn(p,j)||{node:we[0].measure.map[2],offset:0},We=G.line<p.display.viewTo&&mn(p,G);if(!We){var gt=we[we.length-1].measure,At=gt.maps?gt.maps[gt.maps.length-1]:gt.map;We={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!Re||!We){t.removeAllRanges();return}var nn=t.rangeCount&&t.getRangeAt(0),Gt;try{Gt=L(Re.node,Re.offset,We.offset,We.node)}catch(wn){}Gt&&(!A&&p.state.focused?(t.collapse(Re.node,Re.offset),Gt.collapsed||(t.removeAllRanges(),t.addRange(Gt))):(t.removeAllRanges(),t.addRange(Gt)),nn&&t.anchorNode==null?t.addRange(nn):A&&this.startGracePeriod()),this.rememberSelection()},Nt.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},Nt.prototype.showMultipleSelections=function(t){v(this.cm.display.cursorDiv,t.cursors),v(this.cm.display.selectionDiv,t.selection)},Nt.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Nt.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var p=t.getRangeAt(0).commonAncestorContainer;return N(this.div,p)},Nt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Nt.prototype.blur=function(){this.div.blur()},Nt.prototype.getField=function(){return this.div},Nt.prototype.supportsTouch=function(){return!0},Nt.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():fi(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function p(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,p))}this.polling.set(this.cm.options.pollInterval,p)},Nt.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Nt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var t=this.getSelection(),p=this.cm;if(h&&a&&this.cm.display.gutterSpecs.length&&lr(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var B=Gr(p,t.anchorNode,t.anchorOffset),j=Gr(p,t.focusNode,t.focusOffset);B&&j&&fi(p,function(){gi(p.doc,Er(B,j),Te),(B.bad||j.bad)&&(p.curOp.selectionChanged=!0)})},Nt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,p=t.display,B=t.doc.sel.primary(),j=B.from(),G=B.to();if(j.ch==0&&j.line>t.firstLine()&&(j=qt(j.line-1,ln(t.doc,j.line-1).length)),G.ch==ln(t.doc,G.line).text.length&&G.line<t.lastLine()&&(G=qt(G.line+1,0)),j.line<p.viewFrom||G.line>p.viewTo-1)return!1;var ne,ge,we;j.line==p.viewFrom||(ne=ga(t,j.line))==0?(ge=Yn(p.view[0].line),we=p.view[0].node):(ge=Yn(p.view[ne].line),we=p.view[ne-1].node.nextSibling);var Re=ga(t,G.line),We,gt;if(Re==p.view.length-1?(We=p.viewTo-1,gt=p.lineDiv.lastChild):(We=Yn(p.view[Re+1].line)-1,gt=p.view[Re+1].node.previousSibling),!we)return!1;for(var At=t.doc.splitLines(kr(t,we,gt,ge,We)),nn=ar(t.doc,qt(ge,0),qt(We,ln(t.doc,We).text.length));At.length>1&&nn.length>1;)if($(At)==$(nn))At.pop(),nn.pop(),We--;else if(At[0]==nn[0])At.shift(),nn.shift(),ge++;else break;for(var Gt=0,wn=0,Hn=At[0],Zn=nn[0],_r=Math.min(Hn.length,Zn.length);Gt<_r&&Hn.charCodeAt(Gt)==Zn.charCodeAt(Gt);)++Gt;for(var Ur=$(At),br=$(nn),Xr=Math.min(Ur.length-(At.length==1?Gt:0),br.length-(nn.length==1?Gt:0));wn<Xr&&Ur.charCodeAt(Ur.length-wn-1)==br.charCodeAt(br.length-wn-1);)++wn;if(At.length==1&&nn.length==1&&ge==j.line)for(;Gt&&Gt>j.ch&&Ur.charCodeAt(Ur.length-wn-1)==br.charCodeAt(br.length-wn-1);)Gt--,wn++;At[At.length-1]=Ur.slice(0,Ur.length-wn).replace(/^\u200b+/,""),At[0]=At[0].slice(Gt).replace(/\u200b+$/,"");var ia=qt(ge,Gt),ea=qt(We,nn.length?$(nn).length-wn:0);if(At.length>1||At[0]||On(ia,ea))return Xo(t.doc,At,ia,ea,"+input"),!0},Nt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Nt.prototype.reset=function(){this.forceCompositionEnd()},Nt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Nt.prototype.readFromDOMSoon=function(){var t=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80)},Nt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&fi(this.cm,function(){return Na(t.cm)})},Nt.prototype.setUneditable=function(t){t.contentEditable="false"},Nt.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Ha(this.cm,Ne)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},Nt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Nt.prototype.onContextMenu=function(){},Nt.prototype.resetPosition=function(){},Nt.prototype.needsContentAttribute=!0;function mn(t,p){var B=mt(t,p.line);if(!B||B.hidden)return null;var j=ln(t.doc,p.line),G=Ie(B,j,p.line),ne=_t(j,t.doc.direction),ge="left";if(ne){var we=ht(ne,p.ch);ge=we%2?"right":"left"}var Re=pn(G.map,p.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function lr(t){for(var p=t;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function hr(t,p){return p&&(t.bad=!0),t}function kr(t,p,B,j,G){var ne="",ge=!1,we=t.doc.lineSeparator(),Re=!1;function We(Gt){return function(wn){return wn.id==Gt}}function gt(){ge&&(ne+=we,Re&&(ne+=we),ge=Re=!1)}function At(Gt){Gt&&(gt(),ne+=Gt)}function nn(Gt){if(Gt.nodeType==1){var wn=Gt.getAttribute("cm-text");if(wn){At(wn);return}var Hn=Gt.getAttribute("cm-marker"),Zn;if(Hn){var _r=t.findMarks(qt(j,0),qt(G+1,0),We(+Hn));_r.length&&(Zn=_r[0].find(0))&&At(ar(t.doc,Zn.from,Zn.to).join(we));return}if(Gt.getAttribute("contenteditable")=="false")return;var Ur=/^(pre|div|p|li|table|br)$/i.test(Gt.nodeName);if(!/^br$/i.test(Gt.nodeName)&&Gt.textContent.length==0)return;Ur&&gt();for(var br=0;br<Gt.childNodes.length;br++)nn(Gt.childNodes[br]);/^(pre|p)$/i.test(Gt.nodeName)&&(Re=!0),Ur&&(ge=!0)}else Gt.nodeType==3&&At(Gt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(nn(p),p==B);)p=p.nextSibling,Re=!1;return ne}function Gr(t,p,B){var j;if(p==t.display.lineDiv){if(j=t.display.lineDiv.childNodes[B],!j)return hr(t.clipPos(qt(t.display.viewTo-1)),!0);p=null,B=0}else for(j=p;;j=j.parentNode){if(!j||j==t.display.lineDiv)return null;if(j.parentNode&&j.parentNode==t.display.lineDiv)break}for(var G=0;G<t.display.view.length;G++){var ne=t.display.view[G];if(ne.node==j)return na(ne,p,B)}}function na(t,p,B){var j=t.text.firstChild,G=!1;if(!p||!N(j,p))return hr(qt(Yn(t.line),0),!0);if(p==j&&(G=!0,p=j.childNodes[B],B=0,!p)){var ne=t.rest?$(t.rest):t.line;return hr(qt(Yn(ne),ne.text.length),G)}var ge=p.nodeType==3?p:null,we=p;for(!ge&&p.childNodes.length==1&&p.firstChild.nodeType==3&&(ge=p.firstChild,B&&(B=ge.nodeValue.length));we.parentNode!=j;)we=we.parentNode;var Re=t.measure,We=Re.maps;function gt(Zn,_r,Ur){for(var br=-1;br<(We?We.length:0);br++)for(var Xr=br<0?Re.map:We[br],ia=0;ia<Xr.length;ia+=3){var ea=Xr[ia+2];if(ea==Zn||ea==_r){var wa=Yn(br<0?t.line:t.rest[br]),Va=Xr[ia]+Ur;return(Ur<0||ea!=Zn)&&(Va=Xr[ia+(Ur?1:0)]),qt(wa,Va)}}}var At=gt(ge,we,B);if(At)return hr(At,G);for(var nn=we.nextSibling,Gt=ge?ge.nodeValue.length-B:0;nn;nn=nn.nextSibling){if(At=gt(nn,nn.firstChild,0),At)return hr(qt(At.line,At.ch-Gt),G);Gt+=nn.textContent.length}for(var wn=we.previousSibling,Hn=B;wn;wn=wn.previousSibling){if(At=gt(wn,wn.firstChild,-1),At)return hr(qt(At.line,At.ch+Hn),G);Hn+=wn.textContent.length}}var Hr=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new ee,this.hasSelection=!1,this.composing=null};Hr.prototype.init=function(t){var p=this,B=this,j=this.cm;this.createField(t);var G=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),c&&(G.style.width="0px"),Ue(G,"input",function(){O&&m>=9&&p.hasSelection&&(p.hasSelection=null),B.poll()}),Ue(G,"paste",function(ge){if(jt(j,ge)||ke(ge,j))return;j.state.pasteIncoming=+new Date,B.fastPoll()});function ne(ge){if(jt(j,ge))return;if(j.somethingSelected())Ee({lineWise:!1,text:j.getSelections()});else if(j.options.lineWiseCopyCut){var we=ze(j);Ee({lineWise:!0,text:we.text}),ge.type=="cut"?j.setSelections(we.ranges,null,Te):(B.prevInput="",G.value=we.text.join(`
`),W(G))}else return;ge.type=="cut"&&(j.state.cutIncoming=+new Date)}Ue(G,"cut",ne),Ue(G,"copy",ne),Ue(t.scroller,"paste",function(ge){if(Oa(t,ge)||jt(j,ge))return;if(!G.dispatchEvent){j.state.pasteIncoming=+new Date,B.focus();return}var we=new Event("paste");we.clipboardData=ge.clipboardData,G.dispatchEvent(we)}),Ue(t.lineSpace,"selectstart",function(ge){Oa(t,ge)||Ce(ge)}),Ue(G,"compositionstart",function(){var ge=j.getCursor("from");B.composing&&B.composing.range.clear(),B.composing={start:ge,range:j.markText(ge,j.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(G,"compositionend",function(){B.composing&&(B.poll(),B.composing.range.clear(),B.composing=null)})},Hr.prototype.createField=function(t){this.wrapper=kt(),this.textarea=this.wrapper.firstChild},Hr.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Hr.prototype.prepareSelection=function(){var t=this.cm,p=t.display,B=t.doc,j=bi(t);if(t.options.moveInputWithCursor){var G=zn(t,B.sel.primary().head,"div"),ne=p.wrapper.getBoundingClientRect(),ge=p.lineDiv.getBoundingClientRect();j.teTop=Math.max(0,Math.min(p.wrapper.clientHeight-10,G.top+ge.top-ne.top)),j.teLeft=Math.max(0,Math.min(p.wrapper.clientWidth-10,G.left+ge.left-ne.left))}return j},Hr.prototype.showSelection=function(t){var p=this.cm,B=p.display;v(B.cursorDiv,t.cursors),v(B.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Hr.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var p=this.cm;if(p.somethingSelected()){this.prevInput="";var B=p.getSelection();this.textarea.value=B,p.state.focused&&W(this.textarea),O&&m>=9&&(this.hasSelection=B)}else t||(this.prevInput=this.textarea.value="",O&&m>=9&&(this.hasSelection=null))},Hr.prototype.getField=function(){return this.textarea},Hr.prototype.supportsTouch=function(){return!1},Hr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||V()!=this.textarea))try{this.textarea.focus()}catch(t){}},Hr.prototype.blur=function(){this.textarea.blur()},Hr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Hr.prototype.receivedFocus=function(){this.slowPoll()},Hr.prototype.slowPoll=function(){var t=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Hr.prototype.fastPoll=function(){var t=!1,p=this;p.pollingFast=!0;function B(){var j=p.poll();!j&&!t?(t=!0,p.polling.set(60,B)):(p.pollingFast=!1,p.slowPoll())}p.polling.set(20,B)},Hr.prototype.poll=function(){var t=this,p=this.cm,B=this.textarea,j=this.prevInput;if(this.contextMenuPending||!p.state.focused||at(B)&&!j&&!this.composing||p.isReadOnly()||p.options.disableInput||p.state.keySeq)return!1;var G=B.value;if(G==j&&!p.somethingSelected())return!1;if(O&&m>=9&&this.hasSelection===G||s&&/[\uf700-\uf7ff]/.test(G))return p.display.input.reset(),!1;if(p.doc.sel==p.display.selForContextMenu){var ne=G.charCodeAt(0);if(ne==8203&&!j&&(j="\u200B"),ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var ge=0,we=Math.min(j.length,G.length);ge<we&&j.charCodeAt(ge)==G.charCodeAt(ge);)++ge;return fi(p,function(){Ne(p,G.slice(ge),j.length-ge,null,t.composing?"*compose":null),G.length>1e3||G.indexOf(`
`)>-1?B.value=t.prevInput="":t.prevInput=G,t.composing&&(t.composing.range.clear(),t.composing.range=p.markText(t.composing.start,p.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Hr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Hr.prototype.onKeyPress=function(){O&&m>=9&&(this.hasSelection=null),this.fastPoll()},Hr.prototype.onContextMenu=function(t){var p=this,B=p.cm,j=B.display,G=p.textarea;p.contextMenuPending&&p.contextMenuPending();var ne=Aa(B,t),ge=j.scroller.scrollTop;if(!ne||u)return;var we=B.options.resetSelectionOnContextMenu;we&&B.doc.sel.contains(ne)==-1&&Ha(B,gi)(B.doc,Er(ne),Te);var Re=G.style.cssText,We=p.wrapper.style.cssText,gt=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",G.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(t.clientY-gt.top-5)+"px; left: "+(t.clientX-gt.left-5)+`px;
z-index: 1000; background: `+(O?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;e&&(At=window.scrollY),j.input.focus(),e&&window.scrollTo(null,At),j.input.reset(),B.somethingSelected()||(G.value=p.prevInput=" "),p.contextMenuPending=Gt,j.selForContextMenu=B.doc.sel,clearTimeout(j.detectingSelectAll);function nn(){if(G.selectionStart!=null){var Hn=B.somethingSelected(),Zn="\u200B"+(Hn?G.value:"");G.value="\u21DA",G.value=Zn,p.prevInput=Hn?"":"\u200B",G.selectionStart=1,G.selectionEnd=Zn.length,j.selForContextMenu=B.doc.sel}}function Gt(){if(p.contextMenuPending!=Gt)return;if(p.contextMenuPending=!1,p.wrapper.style.cssText=We,G.style.cssText=Re,O&&m<9&&j.scrollbars.setScrollTop(j.scroller.scrollTop=ge),G.selectionStart!=null){(!O||O&&m<9)&&nn();var Hn=0,Zn=function(){j.selForContextMenu==B.doc.sel&&G.selectionStart==0&&G.selectionEnd>0&&p.prevInput=="\u200B"?Ha(B,ol)(B):Hn++<10?j.detectingSelectAll=setTimeout(Zn,500):(j.selForContextMenu=null,j.input.reset())};j.detectingSelectAll=setTimeout(Zn,200)}}if(O&&m>=9&&nn(),P){je(t);var wn=function(){Ut(window,"mouseup",wn),setTimeout(Gt,20)};Ue(window,"mouseup",wn)}else setTimeout(Gt,50)},Hr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Hr.prototype.setUneditable=function(){},Hr.prototype.needsContentAttribute=!1;function Ia(t,p){if(p=p?I(p):{},p.value=t.value,!p.tabindex&&t.tabIndex&&(p.tabindex=t.tabIndex),!p.placeholder&&t.placeholder&&(p.placeholder=t.placeholder),p.autofocus==null){var B=V();p.autofocus=B==t||t.getAttribute("autofocus")!=null&&B==document.body}function j(){t.value=we.getValue()}var G;if(t.form&&(Ue(t.form,"submit",j),!p.leaveSubmitMethodAlone)){var ne=t.form;G=ne.submit;try{var ge=ne.submit=function(){j(),ne.submit=G,ne.submit(),ne.submit=ge}}catch(Re){}}p.finishInit=function(Re){Re.save=j,Re.getTextArea=function(){return t},Re.toTextArea=function(){Re.toTextArea=isNaN,j(),t.parentNode.removeChild(Re.getWrapperElement()),t.style.display="",t.form&&(Ut(t.form,"submit",j),!p.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=G))}},t.style.display="none";var we=Ya(function(Re){return t.parentNode.insertBefore(Re,t.nextSibling)},p);return we}function Ra(t){t.off=Ut,t.on=Ue,t.wheelEventPixels=Hi,t.Doc=Ti,t.splitLines=Fe,t.countColumn=K,t.findColumn=ye,t.isWordChar=te,t.Pass=Se,t.signal=Et,t.Line=hn,t.changeEnd=Zr,t.scrollbarModel=xo,t.Pos=qt,t.cmpPos=On,t.modes=ft,t.mimeModes=bt,t.resolveMode=ct,t.getMode=Lt,t.modeExtensions=Zt,t.extendMode=An,t.copyState=on,t.startState=Ln,t.innerMode=Tn,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=Nn,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=Ce,t.e_stopPropagation=Le,t.e_stop=je,t.addClass=H,t.contains=N,t.rmClass=x,t.keyNames=Ro}eu(Ya),Bt(Ya);var za="iter insert remove copy getEditor constructor".split(" ");for(var si in Ti.prototype)Ti.prototype.hasOwnProperty(si)&&he(za,si)<0&&(Ya.prototype[si]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ti.prototype[si]));return Ye(Ti),Ya.inputStyles={textarea:Hr,contenteditable:Nt},Ya.defineMode=function(t){!Ya.defaults.mode&&t!="null"&&(Ya.defaults.mode=t),Dt.apply(this,arguments)},Ya.defineMIME=Mt,Ya.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Ya.defineMIME("text/plain","null"),Ya.defineExtension=function(t,p){Ya.prototype[t]=p},Ya.defineDocExtension=function(t,p){Ti.prototype[t]=p},Ya.fromTextArea=Ia,Ra(Ya),Ya.version="5.58.2",Ya})},W6BS:function(k,z){k.exports="data:image/png;base64,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"},WO9J:function(k,z,o){"use strict";o.r(z);var M=o("0Owb"),g=o("PpiC"),A=o("q1tI"),b=o.n(A),y=o("EkPF"),C=o.n(y),O=o("miYZ"),m=o("tsqr"),e=o("2qtc"),f=o("kLXV"),a=o("9og8"),u=o("WmNS"),n=o.n(u),i=o("auZk"),r=o.n(i),c=o("1vsH"),h=o("Ufr+"),d=o.n(h),s=o("HBuW"),l=o("ErOA"),w=o("Ty5D"),E=o("9kvl"),_=function(Xt){var hn,Rn,tn=Xt.globalSetting,Sn=Xt.loading,vn=Xt.dispatch,kn=Xt.practiceSetting,Fn=Xt.shixunsDetail,ir=Object(g.a)(Xt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),qn=Object(w.h)(),Rr=Object(A.useRef)(""),Lr=Object(w.i)(),Qn=kn.title,Dr=kn.base_info_warning,mr=kn.challenges_warning,zr=kn.service_warning,Nr=kn.repository_warning,$r=kn.mirror_warning;Object(A.useEffect)(function(){var ur;Rr.current=(ur=qn.pathname.split("/"))===null||ur===void 0?void 0:ur[2],vn({type:"practiceSetting/setParams",payload:{id:Rr.current}}),vn({type:"practiceSetting/getCommonData",payload:{id:Rr.current}})},[qn.pathname]),Object(A.useEffect)(function(){return Object(c.Z)(Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(c.Z)()}});var nr=function(){var ur=Object(a.a)(n.a.mark(function or(){return n.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,Kt();case 2:E.d.push("/shixuns/".concat(Rr.current,"/challenges"));case 3:case"end":return sr.stop()}},or)}));return function(){return ur.apply(this,arguments)}}(),Kt=function(){return new Promise(function(or,qr){var sr;kn!=null&&(sr=kn.sideBar)!==null&&sr!==void 0&&sr.confirmLeave?f.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(){vn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),or()},onCancel:function(){qr()}}):or()})},en=function(or){var qr;if(or===(kn==null?void 0:kn.sideBar.tabsActive))return;var sr=function(){E.d.push("/shixuns/".concat(Rr.current,"/edit?tabId=").concat(or)),vn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:or,selectPath:"",confirmLeave:!1}})};kn!=null&&(qr=kn.sideBar)!==null&&qr!==void 0&&qr.confirmLeave?f.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(){sr()}}):sr()},Yt=function ur(or){var qr;or=(qr=or)!==null&&qr!==void 0&&qr.includes(".json")?or:"".concat(or,".json"),f.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 sr=Object(a.a)(n.a.mark(function Yr(){var gr,Sr;return n.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(l.a)("/api"+or,{method:"get"});case 2:if(gr=Jr.sent,gr){Jr.next=5;break}return Jr.abrupt("return");case 5:return m.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Jr.next=8,Object(s.E)({id:gr.shixun_identifier});case 8:if(Sr=Jr.sent,!(Sr!=null&&Sr.game_identifier)){Jr.next=12;break}return Object(c.U)("/tasks/".concat(Sr.game_identifier)),Jr.abrupt("return");case 12:(Sr==null?void 0:Sr.status)===2?ur(Sr==null?void 0:Sr.message):(Sr==null?void 0:Sr.status)===3&&Xn(Sr==null?void 0:Sr.message);case 13:case"end":return Jr.stop()}},Yr)}));function da(){return sr.apply(this,arguments)}return da}()})},Xn=function(or){f.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",or,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},$n=function(){var ur=Object(a.a)(n.a.mark(function or(qr,sr){var da,Yr,gr;return n.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Kt();case 2:if(Object(c.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((da=Fn.detail)!==null&&da!==void 0&&da.is_jupyter||(Yr=Fn.detail)!==null&&Yr!==void 0&&Yr.is_jupyter_lab)){Kr.next=6;break}return vn({type:"shixunsDetail/execJupyter",payload:{id:Rr.current}}).then(function(Jr){Jr!=null&&Jr.identifier&&(E.d===null||E.d===void 0||E.d.push("/tasks/".concat(Jr.identifier,"/jupyter")))}),Kr.abrupt("return");case 6:if(vn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!sr){Kr.next=13;break}return Kr.next=10,Object(s.D)({id:qr});case 10:Kr.t0=Kr.sent,Kr.next=16;break;case 13:return Kr.next=15,Object(s.E)({id:qr});case 15:Kr.t0=Kr.sent;case 16:if(gr=Kr.t0,vn({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(gr!=null&&gr.game_identifier||gr!=null&&gr.identifier)){Kr.next=21;break}return Object(c.U)(sr?"/tasks/".concat(gr==null?void 0:gr.identifier,"/jupyter"):"/tasks/".concat(gr.game_identifier)),Kr.abrupt("return");case 21:(gr==null?void 0:gr.status)===-3?Object(c.s)():(gr==null?void 0:gr.status)===2?Yt(gr==null?void 0:gr.message):(gr==null?void 0:gr.status)===3&&Xn(gr==null?void 0:gr.message);case 22:case"end":return Kr.stop()}},or)}));return function(qr,sr){return ur.apply(this,arguments)}}(),Un=function(){var ur=Object(a.a)(n.a.mark(function or(){return n.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,Kt();case 2:vn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return sr.stop()}},or)}));return function(){return ur.apply(this,arguments)}}(),rr=function(or){var qr={borderBottomColor:(kn==null?void 0:kn.sideBar.tabsActive)===or?"#0152d9":"transparent"};return qr};return b.a.createElement("div",{className:r.a.header},b.a.createElement("aside",{className:r.a.title},b.a.createElement("i",{onClick:nr,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:r.a.edit},Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),b.a.createElement("i",{onClick:Un,className:"icon iconfont icon-xiugai1"})),b.a.createElement("aside",{className:r.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:rr("information"),className:r.a.clickWarp,onClick:function(){return en("information")}},Dr?b.a.createElement("span",{className:r.a.num},"1"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u57FA\u672C\u4FE1\u606F")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:rr("warehouse"),className:r.a.clickWarp,onClick:function(){return en("warehouse")}},Nr?b.a.createElement("span",{className:r.a.num},"2"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Fn==null?void 0:Fn.detail)&&!(Fn!=null&&(hn=Fn.detail)!==null&&hn!==void 0&&hn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("level"),className:r.a.clickWarp,onClick:function(){return en("level")}},mr?b.a.createElement("span",{className:r.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.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:rr("service"),className:r.a.clickWarp,onClick:function(){return en("service")}},zr?b.a.createElement("span",{className:r.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u670D\u52A1")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:rr("environment"),className:r.a.clickWarp,onClick:function(){return en("environment")}},$r?b.a.createElement("span",{className:r.a.num},"4"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),b.a.createElement("aside",{className:r.a.btns},b.a.createElement("div",{className:r.a.simulate,onClick:function(){return $n(Rr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},P=Object(E.a)(function(Cn){var Xt=Cn.loading,hn=Cn.globalSetting,Rn=Cn.practiceSetting,tn=Cn.shixunsDetail;return{globalSetting:hn,loading:Xt,practiceSetting:Rn,shixunsDetail:tn}})(_),R=o("sRBo"),x=o("kaz8"),S=o("14J3"),v=o("BMrR"),T=o("jCWc"),U=o("kPKH"),L=o("DZo9"),N=o("8z0m"),V=o("6UJt"),H=o("DFOY"),D=o("5NDa"),W=o("5rEg"),F=o("+L6B"),I=o("2/Rp"),K=o("k1fw"),ee=o("y8nQ"),he=o("Vl3Y"),de=o("tJVT"),Se=o("h/E3"),Te=o.n(Se),ce=o("Ot1p"),be=o("oBTY"),ye=o("+Xk9"),ue=o.n(ye),se=o("FTkQ"),$=o.n(se),me=function(Xt){var hn=Xt.InputRight,Rn=Xt.value,tn=Rn===void 0?[]:Rn,Sn=Xt.onChange,vn=Object(g.a)(Xt,["InputRight","value","onChange"]),kn=Object(A.useState)(),Fn=Object(de.a)(kn,2),ir=Fn[0],qn=Fn[1],Rr=function(Dr){var mr=tn.filter(function(zr,Nr){return Nr!==Dr});Sn(mr)},Lr=function(Dr){if(Dr.preventDefault(),!ir)return;if(tn.findIndex(function(mr){return mr.name===ir})>-1){m.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}Sn([].concat(Object(be.a)(tn),[{id:null,name:ir}])),qn(null)};return b.a.createElement("div",null,b.a.createElement(W.a,Object(M.a)({bordered:!1,style:{width:600},value:ir,onChange:function(Dr){return qn(Dr.target.value)},onPressEnter:Lr,onBlur:Lr},vn)),hn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},tn==null?void 0:tn.map(function(Qn,Dr){return b.a.createElement("div",{key:Dr,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},Qn.name),b.a.createElement("img",{src:$.a,className:ue.a.s2,onClick:function(){return Rr(Dr)}}))})))},re=me,ae=o("LvDl"),Oe=o("m3rI"),le=o("hW5Z"),te=o.n(le),Q=function(Xt){var hn=Xt.dispatch,Rn=Xt.onCancel,tn=Xt.onSave,Sn=Xt.loading,vn=Sn===void 0?!1:Sn;return b.a.createElement("div",{className:te.a.complete},b.a.createElement("div",{onClick:Rn,className:te.a.cancel},"\u53D6\u6D88"),b.a.createElement(I.a,{type:"primary",loading:vn,onClick:tn,className:te.a.save},"\u4FDD\u5B58"))},J=Object(E.a)()(Q),ve=o("UqFu"),_e=o("z7Xi"),Ae=o("jN4g"),Je=function(Xt){var hn,Rn,tn=Xt.globalSetting,Sn=Xt.loading,vn=Xt.dispatch,kn=Xt.practiceSetting,Fn=Xt.problemset,ir=Xt.shixunsDetail,qn=Object(g.a)(Xt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Rr=he.a.useForm(),Lr=Object(de.a)(Rr,1),Qn=Lr[0],Dr=Object(A.useState)({}),mr=Object(de.a)(Dr,2),zr=mr[0],Nr=mr[1],$r=Object(A.useState)(!1),nr=Object(de.a)($r,2),Kt=nr[0],en=nr[1],Yt=Object(A.useState)(!1),Xn=Object(de.a)(Yt,2),$n=Xn[0],Un=Xn[1],rr=Object(A.useState)(""),ur=Object(de.a)(rr,2),or=ur[0],qr=ur[1],sr=Object(A.useState)(""),da=Object(de.a)(sr,2),Yr=da[0],gr=da[1],Sr=Object(A.useRef)({}),Kr=Object(A.useRef)(""),Jr=Object(A.useRef)(null),Oa=Object(A.useRef)(Object(ae.throttle)(function(){return Me()},2e3,{leading:!0,trailing:!1})).current,_a=kn.id;Object(A.useEffect)(function(){if(!_a)return;dt()},[_a]),Object(A.useEffect)(function(){return JSON.stringify(zr)!=="{}"&&qe(),function(){clearTimeout(Jr.current)}},[zr,or,Yr]);var qe=function(){clearTimeout(Jr.current),Jr.current=setTimeout(function(){!Object(ae.isEqual)(zr,Sr.current)||or!==Kr.current||Yr!==Kr.current?vn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):vn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},dt=function(){var fn=Object(a.a)(n.a.mark(function dn(){var Kn,xn,jr,Pr,Qr,Wr,ta,Gn,wr;return n.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return vn({type:"problemset/getEditDisciplines",payload:{source:"all_shixun"}}),En.next=3,Object(l.a)("/api/shixuns/".concat(_a,"/edit_base_info.json"),{method:"get"});case 3:Kn=En.sent,Kn.status===0&&(Gn=Object(K.a)(Object(K.a)({},Kn.data),{},{description:Object(ve.a)(Kn.data.description)}),wr={description:Gn.description,shixun_tags:Gn.shixun_tags,name:Gn.name,course:(Gn==null||((xn=Gn.disciplines)===null||xn===void 0)?void 0:xn.length)>0?[Gn==null||((jr=Gn.disciplines)===null||jr===void 0||((Pr=jr[0])===null||Pr===void 0))?void 0:Pr.id,Gn==null||((Qr=Gn.disciplines)===null||Qr===void 0||((Wr=Qr[0])===null||Wr===void 0||((ta=Wr.sub_discipline)===null||ta===void 0)))?void 0:ta.id]:[],jupyter_show_description:Kn.data.jupyter_show_description},Qn.setFieldsValue(wr),Sr.current=Object(K.a)({},wr),Kr.current=Gn.attachment_id||"",Nr(Object(K.a)({},wr)),qr(Gn.attachment_id||""),gr(Gn.cover_image_id||""));case 5:case"end":return En.stop()}},dn)}));return function(){return fn.apply(this,arguments)}}(),yt=function(dn,Kn){Nr(Object(K.a)({},Kn))},nt=function(){Ie()},Me=function(){Object(c.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Qn.submit()},Xe=function(dn){var Kn,xn=dn.name,jr=dn.description,Pr=dn.shixun_tags,Qr=dn.course,Wr=dn.jupyter_show_description,ta=Wr===void 0?!1:Wr,Gn={name:xn,description:jr,shixun_tags:Pr,attachment_id:or,cover_image_id:Yr,sub_discipline_ids:Qr[1]};(Kn=ir.detail)!==null&&Kn!==void 0&&Kn.is_jupyter_lab&&(Gn=Object(K.a)(Object(K.a)({},Gn),{},{jupyter_show_description:ta}));var wr=Object(l.a)("/api/shixuns/".concat(_a,"/base_info_save.json"),{method:"post",body:{shixun:Object(K.a)({},Gn)}});wr.then(function(zn){zn.status===0&&(m.b.success("\u4FDD\u5B58\u6210\u529F"),vn({type:"practiceSetting/getCommonData",payload:{id:_a}}),vn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Sr.current={description:zr.description,shixun_tags:zr.shixun_tags,name:zr.name},Kr.current=or)})},Ie=function(){var dn,Kn=function(){E.d.push("/shixuns/".concat(_a,"/challenges")),vn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};kn!=null&&(dn=kn.sideBar)!==null&&dn!==void 0&&dn.confirmLeave?f.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 et(fn){var dn=fn.type==="image/jpeg"||fn.type==="image/png";return dn||m.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),dn}var $e=b.a.createElement(I.a,{loading:Kt,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),mt=b.a.createElement(I.a,{loading:$n,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function rt(fn,dn){var Kn=new FileReader;Kn.addEventListener("load",function(){return dn(Kn.result)}),Kn.readAsDataURL(fn)}var Pt=function(dn){if(dn.file.status==="uploading"){en(!0);return}if(dn.file.status==="done"){var Kn,xn;en(!1),qr(dn==null||((Kn=dn.file)===null||Kn===void 0||((xn=Kn.response)===null||xn===void 0))?void 0:xn.id)}},zt=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+or,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return qr("")},style:{fontSize:"16px",color:"red"}})))},pn=function(dn){if(dn.file.status==="uploading"){Un(!0);return}if(dn.file.status==="done"){var Kn,xn;Un(!1),gr(dn==null||((Kn=dn.file)===null||Kn===void 0||((xn=Kn.response)===null||xn===void 0))?void 0:xn.id)}},un=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+Yr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return gr("")},style:{fontSize:"16px",color:"red"}})))};return b.a.createElement("div",{className:Te.a.information},b.a.createElement("section",{className:Te.a.scroll},b.a.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),b.a.createElement("div",{className:Te.a.formWrap}," ",b.a.createElement(he.a,{form:Qn,scrollToFirstError:!0,layout:"vertical",onValuesChange:yt,onFinish:Xe},b.a.createElement(he.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(W.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((hn=zr.name)===null||hn===void 0?void 0:hn.length)||0,"/60")})),b.a.createElement(he.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(he.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},b.a.createElement(H.a,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Fn.courseOptions})),b.a.createElement(v.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},or?zt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:et,onChange:Pt},$e))),b.a.createElement(U.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(v.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Yr?un():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:et,onChange:pn},mt))),b.a.createElement(U.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(he.a.Item,{name:"description",label:"\u7B80\u4ECB:"},b.a.createElement(ce.a,{defaultValue:zr.description||"",watch:!0})),((Rn=ir.detail)===null||Rn===void 0?void 0:Rn.is_jupyter_lab)&&b.a.createElement(he.a.Item,{name:"jupyter_show_description",valuePropName:"checked"},b.a.createElement(x.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(J,{onSave:Oa,onCancel:nt,loading:Kt||$n}))},tt=Object(E.a)(function(Cn){var Xt=Cn.problemset,hn=Cn.loading,Rn=Cn.globalSetting,tn=Cn.practiceSetting,Sn=Cn.shixunsDetail;return{globalSetting:Rn,loading:hn,practiceSetting:tn,problemset:Xt,shixunsDetail:Sn}})(Je),ut=o("ch0t"),ht=o("R9oj"),vt=o("ECub"),_t=o("T2oS"),Ve=o("W9HT"),Ue=o("bKvZ"),pt=o.n(Ue),Ut=o("KeGQ"),Et=o.n(Ut),jt=o("NLgs"),Ze=o("ngQI"),Be=function(Xt){var hn=Xt.globalSetting,Rn=Xt.dispatch,tn=Xt.practiceSetting,Sn=Object(g.a)(Xt,["globalSetting","dispatch","practiceSetting"]),vn=Object(A.useState)(!1),kn=Object(de.a)(vn,2),Fn=kn[0],ir=kn[1],qn=Object(A.useState)({}),Rr=Object(de.a)(qn,2),Lr=Rr[0],Qn=Rr[1],Dr=Object(A.useState)(!0),mr=Object(de.a)(Dr,2),zr=mr[0],Nr=mr[1],$r=Object(A.useState)(!1),nr=Object(de.a)($r,2),Kt=nr[0],en=nr[1],Yt=Object(A.useState)(null),Xn=Object(de.a)(Yt,2),$n=Xn[0],Un=Xn[1],rr=Object(A.useRef)(!1),ur=tn.id,or=tn.updateIndex,qr=tn.is_published,sr=tn.newQuestion,da=Lr.challenge_list,Yr=da===void 0?[]:da;Object(A.useEffect)(function(){return ur?(Sr(),function(){Rn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[ur,or]),Object(A.useEffect)(function(){gr()},[Sn.location]);var gr=function(){var et,$e=Sn.location,mt=$e.pathname.split("/");(mt.includes("newquestion")||mt.includes("new")||$e!=null&&(et=$e.query)!==null&&et!==void 0&&et.tabId)&&(rr.current=!0)},Sr=function(){var Ie=Object(a.a)(n.a.mark(function et(){var $e,mt,rt,Pt,zt,pn,un;return n.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:return Nr(!0),dn.next=3,Object(s.J)({id:ur});case 3:rt=dn.sent,rt!=null&&($e=rt.challenge_list)!==null&&$e!==void 0&&$e.length&&(Pt=Sn.location.pathname.split("/"),zt=rt.challenge_list.find(function(Kn){return String(Kn.challenge_id)===Pt[4]}),Pt.includes("newquestion")||Pt.includes("new")?(un=rt.challenge_list[((pn=rt.challenge_list)===null||pn===void 0?void 0:pn.length)-1],Rn({type:"practiceSetting/setParams",payload:{newQuestion:{st:Pt.includes("new")?0:1,name:""}}}),Un(void 0),qe(un)):Pt[4]&&zt?Kr(zt,!1):Kr(rt.challenge_list[0])),rt!=null&&(mt=rt.challenge_list)!==null&&mt!==void 0&&mt.length||Un(null),Qn(rt),Nr(!1);case 8:case"end":return dn.stop()}},et)}));return function(){return Ie.apply(this,arguments)}}(),Kr=function(et){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(Un(et.challenge_id),qe(et),$e){var mt="/shixuns/".concat(ur,"/edit/").concat(et.challenge_id,"/").concat(et.st===1?"editquestion":"editcheckpoint");E.d.push(mt)}},Jr=function(et,$e){$e.stopPropagation();var mt=et.challenge_id,rt=function(){var Pt=Object(a.a)(n.a.mark(function zt(){var pn,un,fn,dn;return n.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.next=2,Object(s.v)({id:ur,challengesId:mt});case 2:if(pn=xn.sent,!(pn.status===1)){xn.next=12;break}return xn.next=6,Object(s.J)({id:ur});case 6:if(dn=xn.sent,Qn(dn),!(mt===$n&&(un=dn.challenge_list)!==null&&un!==void 0&&un.length)){xn.next=11;break}return Kr(dn.challenge_list[0]),xn.abrupt("return");case 11:(fn=dn.challenge_list)!==null&&fn!==void 0&&fn.length||(Un(null),rr.current=!0,qe({}),E.d.push("/shixuns/".concat(ur,"/edit?tabId=level")));case 12:case"end":return xn.stop()}},zt)}));return function(){return Pt.apply(this,arguments)}}();f.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:rt})},Oa=function(et,$e,mt){var rt=Array.from(et),Pt=rt.splice($e,1),zt=Object(de.a)(Pt,1),pn=zt[0];return rt.splice(mt,0,pn),rt},_a=function(et,$e){if(!et.destination)return;var mt=Oa($e,et.source.index,et.destination.index);Qn(Object(K.a)(Object(K.a)({},Lr),{},{challenge_list:mt}));var rt=mt.map(function(Pt){return Pt.challenge_id});Object(s.Kb)({id:ur,ids:rt}).then(function(Pt){Pt.status!==0&&Qn(Object(K.a)(Object(K.a)({},Lr),{},{challenge_list:$e}))})},qe=function(et){Rn({type:"practiceSetting/setParams",payload:{selectQuestionParams:et}})},dt=function(){var Ie=Object(a.a)(n.a.mark(function et($e,mt){var rt;return n.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:if(!($e===$n)){zt.next=2;break}return zt.abrupt("return");case 2:return zt.next=4,yt();case 4:Un($e),qe(mt),Rn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),rt="/shixuns/".concat(ur,"/edit/").concat($e,"/").concat(mt.st===1?"editquestion":"editcheckpoint"),E.d.push(rt);case 9:case"end":return zt.stop()}},et)}));return function($e,mt){return Ie.apply(this,arguments)}}(),yt=function(){return new Promise(function(et,$e){var mt;tn!=null&&(mt=tn.sideBar)!==null&&mt!==void 0&&mt.confirmLeave?f.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}}),et()},onCancel:function(){$e()}}):et()})},nt=function(et){return b.a.createElement(b.a.Fragment,null,b.a.createElement(Ze.a,{onDragEnd:function(mt){return _a(mt,et)}},b.a.createElement(Ze.c,{droppableId:"droppable"},function($e,mt){return b.a.createElement("div",Object(M.a)({ref:$e.innerRef},$e.droppableProps,{style:{width:"100%"}}),et.map(function(rt,Pt){var zt=rt.st,pn=rt.name,un=rt.challenge_id;return b.a.createElement(Ze.b,{key:un,draggableId:un.toString(),index:Pt,isDragDisabled:qr},function(fn,dn){return b.a.createElement("div",Object(M.a)({ref:fn.innerRef},fn.draggableProps,fn.dragHandleProps,{className:$n===un?pt.a.listActive:pt.a.list,onClick:function(){return dt(un,rt)}}),b.a.createElement("span",{className:pt.a.s1},zt===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:pt.a.s2},"\u7B2C",Pt+1,"\u5173: ",pn),!qr&&b.a.createElement("span",{className:pt.a.s3,onClick:function(xn){return Jr(rt,xn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),sr&&b.a.createElement("div",{className:pt.a.listActive},b.a.createElement("span",{className:pt.a.s1},(sr==null?void 0:sr.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:pt.a.s2},"\u7B2C",et.length+1,"\u5173: ",sr==null?void 0:sr.name)),!qr&&b.a.createElement("div",{className:pt.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Me=function(){var Ie=Object(a.a)(n.a.mark(function et($e){return n.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,yt();case 2:$e==="new"?E.d.push("/shixuns/".concat(ur,"/edit/new")):E.d.push("/shixuns/".concat(ur,"/edit/newquestion")),ir(!1),Un(void 0),Rn({type:"practiceSetting/setParams",payload:{newQuestion:{st:$e==="new"?0:1,name:""}}});case 6:case"end":return rt.stop()}},et)}));return function($e){return Ie.apply(this,arguments)}}(),Xe=function(){if(Object(jt.b)(Rn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;ir(!Fn)};return b.a.createElement("div",{className:pt.a.level},b.a.createElement("aside",{className:pt.a.left,style:{width:Kt?"0":"25%"}},b.a.createElement("div",{className:pt.a.container},b.a.createElement("div",{className:pt.a.title},"\u4EFB\u52A1\u5173\u5361(",Yr.length,")"),b.a.createElement("div",{className:pt.a.listWrap},zr?b.a.createElement(Ve.a,{size:"large"}):!!Yr.length||!!sr?nt(Yr):b.a.createElement(vt.a,{image:Et.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Kt&&b.a.createElement("div",{className:pt.a.btns},b.a.createElement("aside",{className:pt.a.btnsWrap},b.a.createElement("div",{style:{transform:Fn?"rotate(45deg)":"rotate(0deg)"},className:pt.a.icon,onClick:Xe},"+"),b.a.createElement("div",{className:pt.a.btn,style:{left:Fn?20:-154}},b.a.createElement("div",{className:pt.a.d1,onClick:function(){return Me("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:pt.a.d2,onClick:function(){return Me("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Kt?pt.a.elseShrink:pt.a.shrink,onClick:function(){return en(!Kt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:pt.a.right,id:"modal-level-question"},$n===null&&rr.current?b.a.createElement("div",{className:pt.a.addIcon},b.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):Sn.children))},Ye=Object(E.a)(function(Cn){var Xt=Cn.globalSetting,hn=Cn.practiceSetting;return{globalSetting:Xt,practiceSetting:hn}})(Be),Ce=o("DjyN"),Le=o("NUBc"),He=o("cWXX"),je=o("/ezw"),Ke=o("qVdP"),it=o("jsC+"),Ct=o("lUTK"),Ft=o("BvKs"),Jt=o("7Kak"),Ht=o("9yH6"),Ot=o("Qvpy"),Fe=o.n(Ot),at=function(Xt){var hn=Xt.shixunsDetail,Rn=Xt.globalSetting,tn=Xt.loading,Sn=Xt.dispatch,vn=Xt.onReloadData,kn=Object(g.a)(Xt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Fn=Object(A.useState)(),ir=Object(de.a)(Fn,2),qn=ir[0],Rr=ir[1],Lr=Object(A.useState)([]),Qn=Object(de.a)(Lr,2),Dr=Qn[0],mr=Qn[1];Object(A.useEffect)(function(){hn.actionTabs.key==="Collaborators-ChangeManager"&&zr()},[hn.actionTabs.key]);var zr=function(){var Kt=Object(a.a)(n.a.mark(function en(){var Yt,Xn;return n.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:return Un.next=2,Sn({type:"shixunsDetail/getChangeManager",payload:{id:(Yt=hn.actionTabs.params)===null||Yt===void 0?void 0:Yt.id}});case 2:Xn=Un.sent,mr(Xn||[]);case 4:case"end":return Un.stop()}},en)}));return function(){return Kt.apply(this,arguments)}}(),Nr=function(){var en;Sn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(en=hn.actionTabs.params)===null||en===void 0?void 0:en.id}}})},$r=function(){var Kt=Object(a.a)(n.a.mark(function en(){var Yt,Xn;return n.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:if(qn){Un.next=3;break}return m.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),Un.abrupt("return");case 3:return Un.next=5,Sn({type:"shixunsDetail/changeManager",payload:{id:(Yt=hn.actionTabs.params)===null||Yt===void 0?void 0:Yt.id,user_id:qn}});case 5:Xn=Un.sent,nr(),Xn&&(vn(),m.b.info(Xn.message));case 8:case"end":return Un.stop()}},en)}));return function(){return Kt.apply(this,arguments)}}(),nr=function(){Sn({type:"shixunsDetail/setActionTabs",payload:{}}),Rr(null)};return b.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:hn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:tn.effects["shixunsDetail/changeManager"],onOk:$r,onCancel:nr},b.a.createElement("div",null,b.a.createElement("div",{className:Fe.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:Fe.a.content},Dr.length?b.a.createElement(Ht.a.Group,{value:qn,onChange:function(en){return Rr(en.target.value)}},Dr.map(function(Kt,en){return b.a.createElement(Ht.a,{className:Fe.a.radio,key:en,value:Kt.user_id},Kt.name)})):b.a.createElement("div",{className:Fe.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:Fe.a.colorBlue,onClick:Nr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},ot=Object(E.a)(function(Cn){var Xt=Cn.shixunsDetail,hn=Cn.loading,Rn=Cn.globalSetting;return{shixunsDetail:Xt,globalSetting:Rn,loading:hn}})(at),Pe=o("Znn+"),Qe=o("ZTPi"),ft=o("ju9d"),bt=o("DDK+"),Dt=Qe.a.TabPane,Mt=function(Cn){var Xt=Cn.visible,hn=Cn.onCancel,Rn=Cn.onSelectGroup,tn=Cn.shixunId,Sn=Cn.onSelectCollaborator;return b.a.createElement(f.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Xt,width:1100,centered:!0,keyboard:!1,onCancel:hn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Qe.a,{defaultActiveKey:"1"},b.a.createElement(Dt,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(ft.a,{onCancel:hn,container_type:2,container_id:tn,onSelect:Sn})),b.a.createElement(Dt,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(bt.a,{onCancel:hn,onSelect:Rn}))))},ct=o("oaGz"),Lt=o.n(ct),Zt=o("8Skl"),An=o("ruvs"),on=function(Xt){var hn,Rn,tn,Sn,vn,kn,Fn=Xt.shixunsDetail,ir=Xt.globalSetting,qn=Xt.loading,Rr=Xt.user,Lr=Xt.dispatch,Qn=Object(g.a)(Xt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Dr=Object(A.useRef)(),mr=Object(A.useState)(0),zr=Object(de.a)(mr,2),Nr=zr[0],$r=zr[1],nr=Object(A.useState)([]),Kt=Object(de.a)(nr,2),en=Kt[0],Yt=Kt[1],Xn=Object(A.useState)({id:null,page:1}),$n=Object(de.a)(Xn,2),Un=$n[0],rr=$n[1],ur=(hn=Rr.userInfo)===null||hn===void 0||((Rn=hn.shixun)===null||Rn===void 0)?void 0:Rn.editable,or=((tn=Rr.userInfo)===null||tn===void 0?void 0:tn.role)<=2||((Sn=Rr.userInfo)===null||Sn===void 0||((vn=Sn.shixun)===null||vn===void 0)?void 0:vn.is_creator);Object(A.useEffect)(function(){Dr.current=Qn.match.params.id,Un.id=Dr.current,rr(Un),qr(Un)},[]);var qr=function(){var qe=Object(a.a)(n.a.mark(function dt(yt){var nt;return n.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,Lr({type:"shixunsDetail/getCollaboratorsData",payload:yt});case 2:nt=Xe.sent,nt&&(Yt(nt.members||[]),$r(nt.member_count));case 4:case"end":return Xe.stop()}},dt)}));return function(yt){return qe.apply(this,arguments)}}(),sr=function(){var qe=Object(a.a)(n.a.mark(function dt(){var yt;return n.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Un.page=1,rr(Un),yt=Object(An.b)(),Me.next=5,Lr({type:"user/getUserInfo",payload:yt});case 5:return Me.next=7,qr(Un);case 7:case"end":return Me.stop()}},dt)}));return function(){return qe.apply(this,arguments)}}(),da=function(dt){Un.page=dt,rr(Un),qr(Un)},Yr=function(dt){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Lt.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var yt=Object(a.a)(n.a.mark(function Me(){var Xe,Ie;return n.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Lr({type:"shixunsDetail/deleteCollaborators",payload:{id:Dr.current,userId:dt}});case 2:if(Ie=$e.sent,!(((Xe=Rr.userInfo)===null||Xe===void 0?void 0:Xe.user_id)===dt)){$e.next=6;break}return E.d.push("/shixuns"),$e.abrupt("return");case 6:m.b.info(Ie==null?void 0:Ie.message),Un.page=1,rr(Un),qr(Un);case 10:case"end":return $e.stop()}},Me)}));function nt(){return yt.apply(this,arguments)}return nt}()})},gr=function(){Lr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Dr.current}}})};function Sr(qe,dt,yt,nt){return Kr.apply(this,arguments)}function Kr(){return Kr=Object(a.a)(n.a.mark(function qe(dt,yt,nt,Me){return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,Lr({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:dt,user_id:yt,editable:nt?0:1}});case 2:qr(Un);case 3:case"end":return Ie.stop()}},qe)})),Kr.apply(this,arguments)}var Jr=function(){Lr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Dr.current}}})};function Oa(){Lr({type:"shixunsDetail/setActionTabs",payload:{}})}var _a={visible:Fn.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Oa,shixunId:Dr.current,onSelectCollaborator:function(){var qe=Object(a.a)(n.a.mark(function yt(nt){var Me;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Lr({type:"shixunsDetail/addCollaborator",payload:{id:Dr.current,user_ids:nt}});case 3:Me=Ie.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),sr());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return qe.apply(this,arguments)}return dt}(),onSelectGroup:function(){var qe=Object(a.a)(n.a.mark(function yt(nt){var Me;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Lr({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Dr.current,group_id:nt.group_id}});case 3:Me=Ie.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),sr());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return qe.apply(this,arguments)}return dt}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Lt.a.wrap},b.a.createElement("div",{className:Lt.a.content},((kn=Fn.detail)===null||kn===void 0?void 0:kn.identity)<5&&b.a.createElement("div",{className:Lt.a.head},b.a.createElement("span",{className:Lt.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Nr,"\u4EBA\uFF09"),b.a.createElement("div",null,or&&b.a.createElement(I.a,{type:"primary",ghost:!0,className:Lt.a.button,style:{marginRight:"20px"},onClick:gr},"\u66F4\u6362\u7BA1\u7406\u5458"),ur&&b.a.createElement(I.a,{type:"primary",className:Lt.a.button,style:{marginRight:"40px"},onClick:Jr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Lt.a.list},b.a.createElement(je.a,{loading:qn.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},en.map(function(qe,dt){var yt,nt,Me,Xe,Ie,et,$e,mt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Lt.a.itemWrap,key:dt},b.a.createElement("a",{href:(yt=qe.user)===null||yt===void 0?void 0:yt.user_url,target:"_blank",className:Lt.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Lt.a.img,src:"".concat(Oe.a.IMG_SERVER,"/images/").concat((nt=qe.user)===null||nt===void 0?void 0:nt.image_url)}),((Me=qe.user)===null||Me===void 0?void 0:Me.shixun_manager)&&b.a.createElement("span",{className:Lt.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Lt.a.itemContent},b.a.createElement("p",{className:Lt.a.nameWrap},b.a.createElement("a",{href:qe.user.user_url,target:"_blank",className:Lt.a.name},(Xe=qe.user)===null||Xe===void 0?void 0:Xe.name,qe.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:Lt.a.actionGroup},or?(et=qe.user)!==null&&et!==void 0&&et.shixun_manager?null:b.a.createElement(it.a,{overlay:b.a.createElement(Ft.a,{selectedKeys:[qe.editable?"1":"2"],onClick:function(){var Pt;Sr(Fn.detail.identifier,qe.user.user_id,qe.editable,(Pt=qe.user)===null||Pt===void 0?void 0:Pt.name)}},b.a.createElement(Ft.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Ft.a.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},b.a.createElement("div",null,qe.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(Zt.a,{style:{fontSize:"14px",color:"#888888"}}))):qe.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"),!(($e=qe.user)!==null&&$e!==void 0&&$e.shixun_manager)&&ur?b.a.createElement("a",{className:Lt.a.deletetitle,onClick:function(){var Pt;return Yr((Pt=qe.user)===null||Pt===void 0?void 0:Pt.user_id)}},"\u5220\u9664"):null)),b.a.createElement("p",{className:Lt.a.schoolWrap},b.a.createElement("span",{className:Lt.a.school},(mt=qe.user)===null||mt===void 0?void 0:mt.school_name)))))})))),Nr>10&&b.a.createElement("div",{className:Lt.a.countWrap},b.a.createElement(Le.a,{showQuickJumper:!1,showSizeChanger:!1,total:Nr,onChange:function(dt){return da(dt)},pageSize:10,current:Un.page}))),b.a.createElement(ot,{onReloadData:sr}),b.a.createElement(Mt,_a))},Tn=Object(E.a)(function(Cn){var Xt=Cn.shixunsDetail,hn=Cn.loading,Rn=Cn.globalSetting,tn=Cn.user;return{shixunsDetail:Xt,globalSetting:Rn,user:tn,loading:hn}})(on),Ln=o("11/R"),Nn=o("Q9mQ"),ln=o("diRs"),ar=o("jrin"),xr=o("OaEy"),Cr=o("2fM7"),Yn=o("ZW9T"),Or=o("RCxd"),cr=o("4SAo"),sn=o.n(cr),qt=W.a.TextArea,On=function(Xt){var hn=Xt.shixunsDetail,Rn=Xt.globalSetting,tn=Xt.loading,Sn=Xt.dispatch,vn=Xt.onFinish,kn=vn===void 0?function(){}:vn,Fn=Object(g.a)(Xt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),ir=he.a.useForm(),qn=Object(de.a)(ir,1),Rr=qn[0],Lr=function(){var Dr=Object(a.a)(n.a.mark(function mr(zr){var Nr,$r;return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,Sn({type:"shixunsDetail/getCustomScript",payload:{id:(Nr=hn.actionTabs.params)===null||Nr===void 0?void 0:Nr.id,compile:zr.execute,excutive:zr.compile}});case 2:$r=Kt.sent,Qn(),$r&&kn($r==null?void 0:$r.shixun_script);case 5:case"end":return Kt.stop()}},mr)}));return function(zr){return Dr.apply(this,arguments)}}(),Qn=function(){Sn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(f.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:hn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Qn},b.a.createElement(he.a,{form:Rr,scrollToFirstError:!0,layout:"vertical",onFinish:Lr},b.a.createElement(he.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(qt,{rows:4})),b.a.createElement(he.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(qt,{rows:4})),b.a.createElement("div",{className:sn.a.footerWrap},b.a.createElement(he.a.Item,null,b.a.createElement(I.a,{className:"mr5",size:"large",onClick:Qn},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",htmlType:"submit",loading:tn.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},Ir=Object(E.a)(function(Cn){var Xt=Cn.shixunsDetail,hn=Cn.loading,Rn=Cn.globalSetting;return{shixunsDetail:Xt,globalSetting:Rn,loading:hn}})(On),Ar=o("Lai7"),yr=o.n(Ar),pr=o("EGTK"),pe=o("UGPy"),X=o.n(pe),q=o("FrRK"),oe=o("9Bee"),De=o("N3QO"),fe=Cr.a.Option,st=function(Xt){var hn,Rn,tn=Xt.practiceSetting,Sn=Xt.dispatch,vn=Xt.shixunsDetail,kn=Xt.user,Fn=Object(A.useState)(null),ir=Object(de.a)(Fn,2),qn=ir[0],Rr=ir[1],Lr=Object(A.useState)([]),Qn=Object(de.a)(Lr,2),Dr=Qn[0],mr=Qn[1],zr=Object(A.useState)(!0),Nr=Object(de.a)(zr,2),$r=Nr[0],nr=Nr[1],Kt=Object(A.useState)({}),en=Object(de.a)(Kt,2),Yt=en[0],Xn=en[1],$n=Object(A.useState)([]),Un=Object(de.a)($n,2),rr=Un[0],ur=Un[1],or=Object(A.useState)(),qr=Object(de.a)(or,2),sr=qr[0],da=qr[1],Yr=Object(A.useState)(),gr=Object(de.a)(Yr,2),Sr=gr[0],Kr=gr[1],Jr=Object(A.useState)([]),Oa=Object(de.a)(Jr,2),_a=Oa[0],qe=Oa[1],dt=Object(A.useState)({}),yt=Object(de.a)(dt,2),nt=yt[0],Me=yt[1],Xe=Object(A.useRef)(null),Ie=Object(A.useRef)(!0),et=Object(A.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),$e=Object(A.useRef)(null),mt=tn.id,rt=tn.is_published,Pt=nt.frequence_image,zt=Pt===void 0?[]:Pt,pn=nt.environments,un=pn===void 0?[]:pn,fn=nt.choice_small_type,dn=fn===void 0?[]:fn,Kn=nt.other_image,xn=Kn===void 0?[]:Kn,jr=Yt.name,Pr=Yt.description,Qr=Yt.authorization,Wr=Yt.small_type,ta=Wr===void 0?[]:Wr;Object(A.useEffect)(function(){if(qn===null)return;zn(),Xe.current.scrollTop=0},[qn]),Object(A.useEffect)(function(){if(!mt)return;wr()},[mt]),Object(A.useEffect)(function(){return qn===null?void 0:(Gn(),function(){clearTimeout($e.current)})},[qn,Dr,rr,sr,Sr]);var Gn=function(){clearTimeout($e.current),$e.current=setTimeout(function(){!Object(ae.isEqual)(et.current.activeId,qn)||!Object(ae.isEqual)(et.current.selectId,Dr)||!Object(ae.isEqual)(et.current.serviceConfigList,rr)||!Object(ae.isEqual)(et.current.evaluateScript,sr)||!Object(ae.isEqual)(et.current.evaluationScript,Sr)?Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},wr=function(){var Tr=Object(a.a)(n.a.mark(function vr(){var Mr,tr,pa,xa;return n.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return nr(!0),Aa.next=3,Object(l.a)("/api/shixuns/".concat(mt,"/edit_environment_info.json"),{method:"get"});case 3:Mr=Aa.sent,Mr.status===0&&(Me(Object(K.a)({},Mr.data)),nr(!1),Mr!=null&&(tr=Mr.data)!==null&&tr!==void 0&&tr.id?(et.current.activeId=Mr==null||((pa=Mr.data)===null||pa===void 0)?void 0:pa.id,Rr(Mr==null||((xa=Mr.data)===null||xa===void 0)?void 0:xa.id)):Rr(null));case 5:case"end":return Aa.stop()}},vr)}));return function(){return Tr.apply(this,arguments)}}(),zn=function(){var Tr=Object(a.a)(n.a.mark(function vr(){var Mr,tr,pa,xa,ba;return n.a.wrap(function(ga){for(;;)switch(ga.prev=ga.next){case 0:return ga.next=2,Object(l.a)("/api/shixuns/".concat(mt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:qn}});case 2:ba=ga.sent,Xn(ba.data),et.current.selectId=(Mr=ba.data)===null||Mr===void 0?void 0:Mr.choice_small_type,mr((tr=ba.data)===null||tr===void 0?void 0:tr.choice_small_type),et.current.serviceConfigList=(pa=ba.data)===null||pa===void 0?void 0:pa.shixun_service_configs,ur((xa=ba.data)===null||xa===void 0?void 0:xa.shixun_service_configs),et.current.evaluateScript=ba.data.evaluate_script,da(ba.data.evaluate_script),et.current.evaluationScript=ba.data.choice_standard_scripts,Kr(ba.data.choice_standard_scripts),qe(ba.data.standard_scripts);case 13:case"end":return ga.stop()}},vr)}));return function(){return Tr.apply(this,arguments)}}(),En=function(){var vr,Mr=function(){E.d.push("/shixuns/".concat(mt,"/challenges")),Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};tn!=null&&(vr=tn.sideBar)!==null&&vr!==void 0&&vr.confirmLeave?f.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(a.a)(n.a.mark(function vr(){var Mr,tr,pa,xa=arguments;return n.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:if(Mr=xa.length>0&&xa[0]!==void 0?xa[0]:!1,!Object(jt.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Aa.next=3;break}return Aa.abrupt("return");case 3:return tr={sub_type:Dr,main_type:qn,shixun:{mirror_script_id:Sr},shixun_info:{evaluate_script:sr},shixun_service_configs:rr.map(function(ga){return{mirror_repository_id:ga.mirror_repository_id,cpu_limit:ga.cpu_limit,lower_cpu_limit:ga.lower_cpu_limit,memory_limit:ga.memory_limit,request_limit:ga.request_limit,resource_limit:ga.resource_limit}})},Aa.next=6,Object(l.a)("/api/shixuns/".concat(mt),{method:"put",body:tr});case 6:pa=Aa.sent,pa.status===0&&(m.b.success("\u7F16\u8F91\u6210\u529F"),et.current={activeId:qn,selectId:Dr,serviceConfigList:rr,evaluateScript:sr,evaluationScript:Sr},Sn({type:"practiceSetting/getCommonData",payload:{id:mt}}),Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Aa.stop()}},vr)}));return function(){return Tr.apply(this,arguments)}}(),Vr=ta.filter(function(Tr){return Dr.includes(Tr.id)}),ua=function(){En()},dr=function(vr,Mr,tr){var pa=rr.map(function(xa,ba){return ba===tr?Object(K.a)(Object(K.a)({},xa),{},Object(ar.a)({},Mr,vr)):xa});ur(pa)},aa=function(){if(Object(jt.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;Sn({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:mt}}})},Ca=function(){var Tr=Object(a.a)(n.a.mark(function vr(Mr){var tr;return n.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,Sn({type:"shixunsDetail/getScriptContent",payload:{id:mt,script_id:Mr}});case 2:tr=xa.sent,tr&&da(tr.content);case 4:case"end":return xa.stop()}},vr)}));return function(Mr){return Tr.apply(this,arguments)}}(),ha=function(vr){f.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(a.a)(n.a.mark(function pa(){return n.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,Ca(vr);case 2:f.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 ba.stop()}},pa)}));function tr(){return Mr.apply(this,arguments)}return tr}()})},Sa=function(vr,Mr){var tr=rr[0]?[rr[0]]:[];Mr.forEach(function(pa){var xa=rr.find(function(ga){return ga.mirror_repository_id===Number(pa.key)});if(xa)tr.push(xa);else{var ba=ta.find(function(ga){return ga.id===Number(pa.key)});if(ba.mirror_name){var Aa={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(pa.key),name:ba.mirror_name,request_limit:10};tr.push(Aa)}}}),ur(tr),mr(vr)};return b.a.createElement("div",{className:X.a.practice},b.a.createElement(pr.a,{loading:$r,skin:"night",className:X.a.left,dispatch:Sn,value:qn,data:un,otherData:xn,tags:zt,onChange:function(vr){return Rr(vr)}}),b.a.createElement("div",{className:X.a.right},b.a.createElement("header",null,b.a.createElement("div",{className:X.a.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",qn===null?"\u2014 \u2014":jr)),b.a.createElement("div",{className:X.a.content,ref:Xe},qn===null&&b.a.createElement(vt.a,{image:yr.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),qn!==null&&b.a.createElement("div",{className:X.a.des},b.a.createElement("div",{className:X.a.mainBody},b.a.createElement(oe.a,{value:Pr})),b.a.createElement("div",{className:X.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:X.a.selectBox},b.a.createElement(Cr.a,{onChange:function(vr,Mr){return Sa(vr,Mr)},getPopupContainer:function(vr){return vr.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,vr){return b.a.createElement(fe,{key:Tr.id,value:Tr.id},Tr.type_name)})),b.a.createElement("div",{className:X.a.smallType},Vr.map(function(Tr){return Tr.description?b.a.createElement("span",{key:Tr.id},Tr.description):null}))),!(vn!=null&&(hn=vn.detail)!==null&&hn!==void 0&&hn.is_jupyter_lab)&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u8BC4\u6D4B\u811A\u672C"),b.a.createElement("div",{className:X.a.evaluating},b.a.createElement("div",{className:X.a.evaluatingLabel},rt&&b.a.createElement("div",{onClick:function(){if(Object(jt.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:X.a.mask}),b.a.createElement(Cr.a,{style:{width:400},bordered:!1,getPopupContainer:function(vr){return vr.parentNode},value:Sr,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(vr){ha(vr),Kr(vr)}},(_a||[]).map(function(Tr,vr){return b.a.createElement(fe,{value:parseInt(Tr.id),name:Tr.scptname,key:vr},Tr.scptname)})),b.a.createElement("span",{className:X.a.evaluatingS1,onClick:aa},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(ln.a,{overlayClassName:X.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(Or.a,null)))),b.a.createElement(Yn.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:sr,onChange:function(vr){if(Ie.current){Ie.current=!1;return}da(vr),Object(jt.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Ie.current=!0,da(et.current.evaluateScript)},200)}}))),((Rn=vn.detail)===null||Rn===void 0?void 0:Rn.identity)<3&&!!rr.length&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u670D\u52A1\u914D\u7F6E"),b.a.createElement("div",{className:X.a.serviceSettingWrap},rr==null?void 0:rr.map(function(Tr,vr){return b.a.createElement("div",{key:vr,className:"mb30"},b.a.createElement("div",null,b.a.createElement("span",{className:"font16"},Tr.name)),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.cpu_limit,disabled:rt,onChange:function(tr){return dr(tr.target.value,"cpu_limit",vr)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.lower_cpu_limit,disabled:rt,onChange:function(tr){return dr(tr.target.value,"lower_cpu_limit",vr)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.memory_limit,disabled:rt,onChange:function(tr){return dr(tr.target.value,"memory_limit",vr)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.request_limit,style:{width:300},disabled:rt,onChange:function(tr){return dr(tr.target.value,"request_limit",vr)}}),b.a.createElement("label",{className:X.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:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u78C1\u76D8\u9650\u5236(K)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.resource_limit,style:{width:300},disabled:rt,maxLength:8,onChange:function(tr){var pa=tr.target.value,xa=/^\d*(\.\d*)?$/;pa.match(xa)&&dr(tr.target.value,"resource_limit",vr)}})))}))))),b.a.createElement("div",{className:X.a.btns},b.a.createElement(I.a,{size:"large",style:{marginRight:20},onClick:ua},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",disabled:qn===null,onClick:function(){return Wn()}},"\u4FDD\u5B58"))),b.a.createElement(q.a,null),b.a.createElement(Ir,{onFinish:function(vr){return da(vr)}}),b.a.createElement(De.a,null))},Qt=Object(E.a)(function(Cn){var Xt=Cn.practiceSetting,hn=Cn.globalSetting,Rn=Cn.shixunsDetail,tn=Cn.user;return{practiceSetting:Xt,globalSetting:hn,shixunsDetail:Rn,user:tn}})(st),In=o("g9YV"),Vn=o("wCAj"),$t=o("5Dmo"),bn=o("3S7+"),cn=o("P5Jw"),Br=o("wd/R"),ra=o.n(Br),oa=o("3d99"),er=o.n(oa),Ba=o("Lf5v"),Ea=o("xKgJ"),ca=o("lzim"),Ka=b.a.Fragment,Ta=function(Xt){var hn,Rn,tn,Sn,vn=Xt.globalSetting,kn=Xt.dispatch,Fn=Xt.practiceSetting,ir=Xt.shixunsDetail,qn=Xt.user,Rr=Object(g.a)(Xt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Lr=Fn.id,Qn=Object(A.useState)([]),Dr=Object(de.a)(Qn,2),mr=Dr[0],zr=Dr[1],Nr=Object(A.useState)({}),$r=Object(de.a)(Nr,2),nr=$r[0],Kt=$r[1],en=Object(A.useState)(!1),Yt=Object(de.a)(en,2),Xn=Yt[0],$n=Yt[1],Un=Object(A.useState)(!0),rr=Object(de.a)(Un,2),ur=rr[0],or=rr[1],qr=Object(A.useState)(!1),sr=Object(de.a)(qr,2),da=sr[0],Yr=sr[1],gr=Object(A.useState)(!1),Sr=Object(de.a)(gr,2),Kr=Sr[0],Jr=Sr[1],Oa=Object(A.useState)([]),_a=Object(de.a)(Oa,2),qe=_a[0],dt=_a[1],yt=Object(A.useState)(!1),nt=Object(de.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(A.useState)({}),et=Object(de.a)(Ie,2),$e=et[0],mt=et[1],rt=Object(A.useState)({page:1,limit:10,total:0}),Pt=Object(de.a)(rt,2),zt=Pt[0],pn=Pt[1];Object(A.useEffect)(function(){if(!Lr)return;fn()},[Lr]);var un=function(wr){var zn=Object(K.a)(Object(K.a)({},zt),{},{page:wr});dt([]),pn(zn),fn(zn)},fn=function(){var Gn=Object(a.a)(n.a.mark(function wr(zn){var En,Wn,Vr;return n.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return En={page:1,limit:10,total:0},Wn=zn||En,$n(!0),dr.next=5,kn({type:"shixunsDetail/getSetData",payload:Object(K.a)(Object(K.a)({},Wn),{},{id:Lr})});case 5:Vr=dr.sent,Vr!=null&&Vr.data_sets&&($n(!1),zr(Object(be.a)(Vr.data_sets)),pn(Object(K.a)(Object(K.a)({},Wn),{},{total:Vr==null?void 0:Vr.data_sets_count})),or(!1),Kt(Object(K.a)({},Vr)));case 7:case"end":return dr.stop()}},wr)}));return function(zn){return Gn.apply(this,arguments)}}(),dn=function(){return b.a.createElement("div",{className:er.a.empty},b.a.createElement("img",{src:ca.j,width:"258"}),b.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~"))},Kn=function(wr){console.log("selectedRowKeys changed: ",wr),dt(wr)},xn={selectedRowKeys:qe,columnWidth:70,onChange:Kn},jr=function(wr){Object(c.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var zn=wr?[wr]:qe;f.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(a.a)(n.a.mark(function Vr(){var ua,dr;return n.a.wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:return Ca.next=2,Object(l.a)("/api/shixuns/".concat(Lr,"/destroy_data_sets.json"),{method:"Delete",body:{id:zn}});case 2:ua=Ca.sent,ua.status===0&&(dr=zn.length===mr.length&&zt.page>1?zt.page-1:zt.page,m.b.success("\u5220\u9664\u6210\u529F"),fn(Object(K.a)(Object(K.a)({},zt),{},{page:dr})),dt([]));case 4:case"end":return Ca.stop()}},Vr)}));function Wn(){return En.apply(this,arguments)}return Wn}()})},Pr=function(){var Gn=Object(a.a)(n.a.mark(function wr(){var zn,En,Wn,Vr,ua;return n.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(zn=$e.title,En=null,console.log(zn,"title"),!(zn==="")){aa.next=7;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:En})),aa.abrupt("return");case 7:if(Wn=mr.find(function(Ca){return Ca.id===($e==null?void 0:$e.id)}).title,!(zn===Wn.substring(0,Wn.lastIndexOf("."))||zn===Wn)){aa.next=12;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:En})),aa.abrupt("return");case 12:return Vr=Wn.includes(".")?Wn.substring(Wn.lastIndexOf("."),Wn.length):"",aa.next=15,Object(l.a)("/api/shixuns/".concat(Lr,"/rename_data_sets.json"),{method:"post",body:{id:$e==null?void 0:$e.id,new_file_name:zn+Vr}});case 15:ua=aa.sent,ua.status===0&&(m.b.success("\u91CD\u547D\u540D\u6210\u529F"),fn(zt),Yr(!1),mt({}));case 17:case"end":return aa.stop()}},wr)}));return function(){return Gn.apply(this,arguments)}}(),Qr=function(){var wr=$e.download_url;Wr(wr),m.b.success("\u590D\u5236\u6210\u529F"),Jr(!1),mt({})},Wr=function(wr){var zn=wr,En=document.createElement("input");En.value=zn,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(wr){return b.a.createElement(bn.a,{title:wr},b.a.createElement("span",null,wr))}},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(bn.a,{title:wr},b.a.createElement("span",null,wr||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:function(wr,zn){return ra()(zn.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(wr,zn){return b.a.createElement("div",{className:er.a.path},b.a.createElement(bn.a,{title:wr},b.a.createElement("span",{className:er.a.text},wr)),b.a.createElement(cn.CopyToClipboard,{text:wr,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(bn.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(Ea.v)()?200:120,render:function(wr,zn){return b.a.createElement("div",{className:er.a.actionsBtns},b.a.createElement(bn.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var Wn;mt(Object(ae.clone)(Object(K.a)(Object(K.a)({},zn),{},{title:zn!=null&&zn.title.includes(".")?zn==null||((Wn=zn.title)===null||Wn===void 0)?void 0:Wn.substring(0,zn.title.lastIndexOf(".")):zn==null?void 0:zn.title}))),Yr(!0),Object(c.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(Ea.v)()&&b.a.createElement(bn.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(c.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),mt(Object(ae.clone)(zn)),Jr(!0)}})),Object(Ea.v)()&&b.a.createElement(bn.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(c.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(c.z)(zn.title,zn==null?void 0:zn.download_url)}})),b.a.createElement(bn.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(c.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),jr(zn.id)}})))}}];return b.a.createElement("div",{className:er.a.dataset},b.a.createElement("div",{className:er.a.header},b.a.createElement("div",{className:er.a.title},"\u6570\u636E\u96C6(",zt.total,")"),b.a.createElement("div",{className:er.a.dataPath},b.a.createElement("span",{className:er.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:nr==null?void 0:nr.folder_name,disabled:!0}),b.a.createElement(cn.CopyToClipboard,{text:nr==null?void 0:nr.folder_name,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(bn.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:er.a.btns},b.a.createElement(I.a,{type:"primary",ghost:!0,onClick:function(){return jr()},disabled:!qe.length},"\u5220\u9664"),b.a.createElement(I.a,{type:"primary",onClick:function(){return Xe(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:er.a.content},b.a.createElement(je.a,{loading:ur,active:!0,paragraph:{rows:5}},zt.total?b.a.createElement(Vn.a,{rowSelection:xn,className:er.a.customTable,dataSource:mr,bordered:!1,rowKey:function(wr){return wr.id},rowClassName:er.a.row,columns:ta,loading:Xn,pagination:{pageSize:zt.limit,total:zt.total,current:zt.page,onChange:un,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):dn())),b.a.createElement(Ba.a,{rootIdentifier:ir==null||((hn=ir.detail)===null||hn===void 0)?void 0:hn.root_identifier,wrapClassName:er.a.uploadFileModal,id:Lr,containerId:ir==null||((Rn=ir.detail)===null||Rn===void 0)?void 0:Rn.id,local:vn==null||((tn=vn.setting)===null||tn===void 0)?void 0:tn.is_local,dispatch:kn,visible:Me,onClose:function(){return Xe(!1)},onOK:fn}),b.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:da,onOk:Pr,centered:!0,wrapClassName:er.a.renameModal,onCancel:function(){Yr(!1),mt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:er.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(W.a,{value:$e==null?void 0:$e.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(wr){mt(Object(K.a)(Object(K.a)({},$e),{},{title:wr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat(($e==null||((Sn=$e.title)===null||Sn===void 0)?void 0:Sn.length)||0,"/60")}),($e==null?void 0:$e.errorDes)&&b.a.createElement("div",{className:er.a.errorDes},$e==null?void 0:$e.errorDes))),b.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Kr,onOk:Qr,centered:!0,wrapClassName:er.a.shareModal,onCancel:function(){Jr(!1),mt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:er.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(W.a,{bordered:!1,addonBefore:"\u94FE\u63A5",value:$e==null?void 0:$e.download_url}))))},Ja=Object(E.a)(function(Cn){var Xt=Cn.globalSetting,hn=Cn.shixunsDetail,Rn=Cn.practiceSetting,tn=Cn.user;return{globalSetting:Xt,shixunsDetail:hn,user:tn,practiceSetting:Rn}})(Ta),Ua=o("aHsQ"),li=o("sGsY"),oi=o("fKo2"),fa=o.n(oi),ma=o("BMKw"),la=o.n(ma),xe=function(Xt){return Xt!=null&&Xt.length?Xt.filter(function(hn,Rn){return Rn!==0}).map(function(hn){return hn.val}).join("").substr(1):""},lt=function(Xt){var hn=Xt.shixunsDetail,Rn=Xt.globalSetting,tn=Xt.loading,Sn=Xt.dispatch,vn=Xt.fileType,kn=Xt.path,Fn=Xt.onFinish,ir=Fn===void 0?function(){}:Fn,qn=Object(w.i)(),Rr=Object(A.useState)(""),Lr=Object(de.a)(Rr,2),Qn=Lr[0],Dr=Lr[1],mr=Object(A.useState)([]),zr=Object(de.a)(mr,2),Nr=zr[0],$r=zr[1],nr=Object(A.useState)([]),Kt=Object(de.a)(nr,2),en=Kt[0],Yt=Kt[1],Xn=[Vt.OriginalPicturePath,Vt.ExpectPicturePath,Vt.PicturePath],$n=Xn.includes(vn);Object(A.useEffect)(function(){if(hn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Dr(kn||""),Un()},[hn.actionTabs.key]);var Un=function(){var Yr=Object(a.a)(n.a.mark(function gr(){var Sr,Kr,Jr,Oa,_a=arguments;return n.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return Kr=_a.length>0&&_a[0]!==void 0?_a[0]:"",dt.next=3,Sn({type:"shixunsDetail/getRepository",payload:{id:qn.id,path:Kr}});case 3:Jr=dt.sent,Kr===""&&!(Jr!=null&&(Sr=Jr.trees)!==null&&Sr!==void 0&&Sr.length)&&m.b.warn("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Jr!=null&&Jr.trees&&(Oa=Jr.trees.map(function(yt){return Object(K.a)(Object(K.a)({},yt),{name:yt.name,val:yt.name})}),Yt(Oa||[]));case 6:case"end":return dt.stop()}},gr)}));return function(){return Yr.apply(this,arguments)}}(),rr=function(gr){var Sr=xe(Nr),Kr="".concat(Sr&&"".concat(Sr,"/")).concat(gr);vn===Vt.Path?!(Qn!=null&&Qn.includes("".concat(Kr,"\uFF1B")))&&Dr("".concat(Qn).concat(Kr,"\uFF1B")):vn===Vt.ExecPath&&Dr(Kr)},ur=function(gr){if(gr.type==="tree"){Nr.length?Nr.push({val:"/".concat(gr.val),path:gr.val}):Nr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(gr.val),path:gr.val}),$r(Nr);var Sr=xe(Nr);$n&&Dr(Sr),Un(Sr)}},or=function(gr,Sr){var Kr=Nr.filter(function(Oa,_a){return _a<=Sr});$r(Kr);var Jr=xe(Kr);$n&&Dr(Jr),Un(Jr)},qr=function(){var Yr=Object(a.a)(n.a.mark(function gr(){return n.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:ir(Qn),sr();case 2:case"end":return Kr.stop()}},gr)}));return function(){return Yr.apply(this,arguments)}}(),sr=function(){Dr(""),$r([]),Yt([]),Sn({type:"shixunsDetail/setActionTabs",payload:{}})},da=xe(Nr);return b.a.createElement(f.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:hn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:qr,onCancel:sr},b.a.createElement("div",{className:la.a.wrap},b.a.createElement("div",{className:la.a.content},b.a.createElement("div",{className:la.a.mainPathWrap},!!(Nr!=null&&Nr.length)&&Nr.map(function(Yr,gr){return b.a.createElement("a",{key:gr,onClick:function(){return or(Yr,gr)}},Yr.val)})),!!(en!=null&&en.length)&&en.map(function(Yr,gr){return Yr.type==="tree"?b.a.createElement("a",{key:gr,onClick:function(){return ur(Yr)}},b.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name):b.a.createElement("a",{key:gr,onClick:function(){return rr("".concat(Yr.name))}},b.a.createElement("i",{className:"iconfont icon-zuoye ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name)})),b.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),b.a.createElement(W.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:Qn,onChange:function(gr){return Dr(gr.target.value)}})))},Rt=Object(E.a)(function(Cn){var Xt=Cn.shixunsDetail,hn=Cn.loading,Rn=Cn.globalSetting;return{shixunsDetail:Xt,globalSetting:Rn,loading:hn.models.index}})(lt),wt=o("dhSg"),Wt=li.a.Countdown,It;(function(Cn){Cn[Cn.LoadingFail=1]="LoadingFail",Cn[Cn.Loading=2]="Loading",Cn[Cn.Finish=3]="Finish"})(It||(It={}));var Vt;(function(Cn){Cn.Path="path",Cn.ExecPath="exec_path",Cn.OriginalPicturePath="original_picture_path",Cn.ExpectPicturePath="expect_picture_path",Cn.PicturePath="picture_path"})(Vt||(Vt={}));var rn=function(Xt){var hn=Xt.globalSetting,Rn=Xt.loading,tn=Xt.dispatch,Sn=Xt.practiceSetting,vn=Xt.shixunsDetail,kn=Object(g.a)(Xt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Fn=Object(A.useState)(),ir=Object(de.a)(Fn,2),qn=ir[0],Rr=ir[1],Lr=Object(A.useState)(),Qn=Object(de.a)(Lr,2),Dr=Qn[0],mr=Qn[1],zr=Object(A.useRef)(),Nr=Object(A.useState)(),$r=Object(de.a)(Nr,2),nr=$r[0],Kt=$r[1],en=Object(A.useState)(),Yt=Object(de.a)(en,2),Xn=Yt[0],$n=Yt[1],Un=Object(A.useState)(),rr=Object(de.a)(Un,2),ur=rr[0],or=rr[1],qr=Object(A.useRef)(!0),sr=Object(A.useState)(!0),da=Object(de.a)(sr,2),Yr=da[0],gr=da[1],Sr=Object(A.useState)(700),Kr=Object(de.a)(Sr,2),Jr=Kr[0],Oa=Kr[1],_a=Object(A.useState)(""),qe=Object(de.a)(_a,2),dt=qe[0],yt=qe[1],nt=Object(A.useRef)(),Me=Object(w.i)();Object(A.useEffect)(function(){Ie()},[]);var Xe=function(){var un=Object(a.a)(n.a.mark(function fn(){var dn,Kn,xn;return n.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,tn({type:"shixunsDetail/updateRepositoryFile",payload:{id:Me.id,path:vn==null||((dn=vn.fileContent)===null||dn===void 0||((Kn=dn.params)===null||Kn===void 0))?void 0:Kn.path,content:qn,secret_repository:Yr?null:!0}});case 2:xn=Pr.sent,xn!=null&&xn.content&&(m.b.info("\u4FDD\u5B58\u6210\u529F"),tn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},Sn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Pr.stop()}},fn)}));return function(){return un.apply(this,arguments)}}(),Ie=function(){var un=Object(a.a)(n.a.mark(function fn(){var dn,Kn,xn,jr,Pr;return n.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,Object(s.X)({identifier:Me.id});case 2:if(xn=Wr.sent,!(xn!=null&&(dn=xn.data)!==null&&dn!==void 0&&(Kn=dn.data_list)!==null&&Kn!==void 0&&Kn.length)){Wr.next=6;break}return wt.a.publish("pod-restrict-data",{identifier:xn==null||((jr=xn.data)===null||jr===void 0)?void 0:jr.identifier,data_list:xn==null||((Pr=xn.data)===null||Pr===void 0)?void 0:Pr.data_list}),Wr.abrupt("return");case 6:xn!=null&&xn.url&&yt(xn==null?void 0:xn.url);case 7:case"end":return Wr.stop()}},fn)}));return function(){return un.apply(this,arguments)}}(),et=function(){var un=Object(a.a)(n.a.mark(function fn(){var dn;return n.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.next=2,Object(s.rb)({identifier:Me.id});case 2:if(dn=xn.sent,!((dn==null?void 0:dn.status)!==0)){xn.next=5;break}return xn.abrupt("return");case 5:dn!=null&&dn.remainingSeconds?(Kt(Date.now()+dn.remainingSeconds*1e3),$n(dn.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(dn.remainingSeconds-300)*1e3)):$e();case 6:case"end":return xn.stop()}},fn)}));return function(){return un.apply(this,arguments)}}(),$e=function(){f.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 fn=Object(a.a)(n.a.mark(function Kn(){return n.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:mt();case 1:case"end":return jr.stop()}},Kn)}));function dn(){return fn.apply(this,arguments)}return dn}()})},mt=function(){var un=Object(a.a)(n.a.mark(function fn(){var dn;return n.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return mr(It.Loading),xn.next=3,Object(s.Cb)({identifier:Me.id});case 3:if(dn=xn.sent,!((dn==null?void 0:dn.status)!==0)){xn.next=6;break}return xn.abrupt("return");case 6:mr(It.Finish),yt(dn.url),zr.current=dn.port,m.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return xn.stop()}},fn)}));return function(){return un.apply(this,arguments)}}(),rt=function(){f.a.destroyAll(),f.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:nr,format:"HH:mm:ss",onFinish:Pt})),"\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 fn=Object(a.a)(n.a.mark(function Kn(){var xn;return n.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,Object(s.a)({identifier:Me.id});case 2:if(xn=Pr.sent,!(xn.status===0)){Pr.next=7;break}return Pr.next=6,et();case 6:m.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Pr.stop()}},Kn)}));function dn(){return fn.apply(this,arguments)}return dn}()})},Pt=function(){f.a.destroyAll(),f.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(){mt()}})},zt=function(fn){tn({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},pn=function(){var un=Object(a.a)(n.a.mark(function fn(dn){return n.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.next=2,Object(s.Pb)({id:Me.id,startup_file:dn});case 2:Ie(),tn({type:"practiceSetting/getCommonData",payload:Object(K.a)({},Me)});case 4:case"end":return xn.stop()}},fn)}));return function(dn){return un.apply(this,arguments)}}();return b.a.createElement("div",{className:fa.a.warehouse},b.a.createElement(v.a,{className:"mt20 ml20 font14",align:"middle"},b.a.createElement(U.a,null,b.a.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),b.a.createElement(U.a,{flex:"300px",onClick:function(){return zt(Vt.ExecPath)}},b.a.createElement(W.a,{value:dt})),b.a.createElement(U.a,{flex:"1"},b.a.createElement(I.a,{type:"primary",className:"ml10",onClick:function(){return zt(Vt.ExecPath)}},"\u8BBE\u7F6E"))),b.a.createElement("iframe",{onLoad:function(fn){},src:dt,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),b.a.createElement(Rt,{fileType:"path",path:"",onFinish:function(fn){return pn(fn)}}))},yn=Object(E.a)(function(Cn){var Xt=Cn.loading,hn=Cn.globalSetting,Rn=Cn.practiceSetting,tn=Cn.shixunsDetail;return{globalSetting:hn,loading:Xt,practiceSetting:Rn,shixunsDetail:tn}})(rn),gn=function(Xt){var hn=Xt.tabsActive,Rn=Object(g.a)(Xt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,hn==="information"&&b.a.createElement(tt,null),hn==="warehouse"&&b.a.createElement(ut.default,null),hn==="level"&&b.a.createElement(Ye,Rn),hn==="collaborate"&&b.a.createElement(Tn,Rn),hn==="setting"&&b.a.createElement(Ln.a,null),hn==="environment"&&b.a.createElement(Qt,Rn),hn==="dataset"&&b.a.createElement(Ja,null),hn==="service"&&b.a.createElement(yn,Rn))},jn=gn,Dn=o("Jv0p"),an=o.n(Dn),Mn=o("luix"),_n=o.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(Xt){var hn,Rn=Xt.globalSetting,tn=Xt.loading,Sn=Xt.dispatch,vn=Xt.shixunsDetail,kn=Xt.practiceSetting,Fn=Object(g.a)(Xt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),ir=kn.base_info_warning,qn=kn.challenges_warning,Rr=kn.id,Lr=kn.repository_warning,Qn=kn.sideBar,Dr=kn.service_warning,mr=Object(w.h)(),zr=Object(w.i)();Object(A.useEffect)(function(){var nr,Kt,en=mr==null||((nr=mr.query)===null||nr===void 0)?void 0:nr.tabId,Yt=mr.pathname.split("/").length,Xn=vn!=null&&(Kt=vn.detail)!==null&&Kt!==void 0&&Kt.windows_vnc?Bn.filter(function(Un){return Un.tabId!=="dataset"}):Bn,$n=Xn.map(function(Un){return Un.tabId}).includes(en);if(en&&$n){Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:en}});return}if(Yt>4){Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!en||en&&!$n){Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[vn==null||((hn=vn.detail)===null||hn===void 0)?void 0:hn.windows_vnc]),Object(A.useEffect)(function(){return function(){Sn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},kn.sideBar),{},{selectPath:""})})}},[zr.id]);var Nr=function(Kt){var en;if(Kt===Qn.tabsActive)return;var Yt=function(){E.d.push("/shixuns/".concat(Rr,"/edit?tabId=").concat(Kt)),Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Kt,selectPath:"",confirmLeave:!1}})};kn!=null&&(en=kn.sideBar)!==null&&en!==void 0&&en.confirmLeave?f.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(){Yt()}}):Yt()},$r=function(){var Kt,en=vn!=null&&(Kt=vn.detail)!==null&&Kt!==void 0&&Kt.windows_vnc?Bn.filter(function(Yt){return Yt.tabId!=="dataset"}):Bn;return en.filter(function(Yt){var Xn;return vn!=null&&(Xn=vn.detail)!==null&&Xn!==void 0&&Xn.is_jupyter_lab?Yt.tabId!=="level":Yt.tabId!=="service"}).map(function(Yt){var Xn=Yt.name,$n=Yt.icon,Un=Yt.tabId;return b.a.createElement("div",{key:Un,className:kn.sideBar.tabsActive===Un?an.a.itemActive:an.a.item,onClick:function(){return Nr(Un)}},$n,b.a.createElement("span",{className:an.a.name},Xn),Un==="information"&&ir&&b.a.createElement(bn.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:_n.a,alt:""})),Un==="level"&&qn&&b.a.createElement(bn.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:_n.a,alt:""})),Un==="service"&&Dr&&b.a.createElement(bn.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:_n.a,alt:""})),Un==="warehouse"&&Lr&&b.a.createElement(bn.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},b.a.createElement("img",{src:_n.a,alt:""})))})};return b.a.createElement("div",{className:an.a.sidebar},b.a.createElement("div",{className:an.a.items},$r()),b.a.createElement("div",{className:an.a.question},b.a.createElement(bn.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:ca.t,height:44,width:44,alt:""})))))},Jn=Object(E.a)(function(Cn){var Xt=Cn.loading,hn=Cn.globalSetting,Rn=Cn.shixunsDetail,tn=Cn.practiceSetting;return{globalSetting:hn,loading:Xt,practiceSetting:tn,shixunsDetail:Rn}})(Pn),fr=function(Xt){var hn=Xt.globalSetting,Rn=Xt.loading,tn=Xt.dispatch,Sn=Xt.practiceSetting,vn=Object(g.a)(Xt,["globalSetting","loading","dispatch","practiceSetting"]),kn=Sn.sideBar,Fn=kn.tabsActive,ir=Object(w.i)();return Object(A.useEffect)(function(){return tn({type:"globalSetting/headerFooterToggle",payload:!1}),tn({type:"shixunsDetail/getShixunsDetail",payload:ir}),tn({type:"shixunsDetail/getSettingsData",payload:ir}),function(){tn({type:"globalSetting/headerFooterToggle",payload:!0}),tn({type:"practiceSetting/setParams",payload:{id:""}})}},[]),b.a.createElement("div",{className:C.a.practiceSetting},b.a.createElement("div",{className:C.a.wrapHeader},b.a.createElement(P,null)),b.a.createElement("div",{className:C.a.wrapLayout},b.a.createElement("div",{className:C.a.wrapSidebar},b.a.createElement(Jn,null)),b.a.createElement("div",{className:C.a.wrapContent},b.a.createElement(jn,Object(M.a)({},vn,{tabsActive:Sn.sideBar.tabsActive})))))},Fr=z.default=Object(E.a)(function(Cn){var Xt=Cn.loading,hn=Cn.globalSetting,Rn=Cn.practiceSetting;return{globalSetting:hn,loading:Xt,practiceSetting:Rn}})(fr)},WYAk:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){(function(){var g=M,A=g.lib,b=A.Base,y=g.enc,C=y.Utf8,O=g.algo,m=O.HMAC=b.extend({init:function(e,f){e=this._hasher=new e.init,typeof f=="string"&&(f=C.parse(f));var a=e.blockSize,u=a*4;f.sigBytes>u&&(f=e.finalize(f)),f.clamp();for(var n=this._oKey=f.clone(),i=this._iKey=f.clone(),r=n.words,c=i.words,h=0;h<a;h++)r[h]^=1549556828,c[h]^=909522486;n.sigBytes=i.sigBytes=u,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var f=this._hasher,a=f.finalize(e);f.reset();var u=f.finalize(this._oKey.clone().concat(a));return u}})})()})},WaYH:function(k,z,o){"use strict";var M=o("rePB"),g=o("Ff2n"),A=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),C=o("JX7q"),O=o("Ji7U"),m=o("LK+K"),e=o("q1tI"),f=o("TSYQ"),a=o.n(f),u=o("sboe"),n=o("OZM5"),i=function(P){var R=P.prefixCls,x=P.level,S=P.isStart,v=P.isEnd;if(!x)return null;for(var T="".concat(R,"-indent-unit"),U=[],L=0;L<x;L+=1){var N;U.push(e.createElement("span",{key:L,className:a()(T,(N={},Object(M.a)(N,"".concat(T,"-start"),S[L+1]),Object(M.a)(N,"".concat(T,"-end"),v[L+1]),Object(M.a)(N,"".concat(T,"-end-first-level"),!L&&v[0]),N))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(R,"-indent")},U)},r=i,c=o("815F"),h="open",d="close",s="---",l=function(_){Object(O.a)(R,_);var P=Object(m.a)(R);function R(){var x;return Object(b.a)(this,R),x=P.apply(this,arguments),x.state={dragNodeHighlight:!1},x.onSelectorClick=function(S){var v=x.props.context.onNodeClick;v(S,Object(c.b)(x.props)),x.isSelectable()?x.onSelect(S):x.onCheck(S)},x.onSelectorDoubleClick=function(S){var v=x.props.context.onNodeDoubleClick;v(S,Object(c.b)(x.props))},x.onSelect=function(S){if(x.isDisabled())return;var v=x.props.context.onNodeSelect;S.preventDefault(),v(S,Object(c.b)(x.props))},x.onCheck=function(S){if(x.isDisabled())return;var v=x.props,T=v.disableCheckbox,U=v.checked,L=x.props.context.onNodeCheck;if(!x.isCheckable()||T)return;S.preventDefault();var N=!U;L(S,Object(c.b)(x.props),N)},x.onMouseEnter=function(S){var v=x.props.context.onNodeMouseEnter;v(S,Object(c.b)(x.props))},x.onMouseLeave=function(S){var v=x.props.context.onNodeMouseLeave;v(S,Object(c.b)(x.props))},x.onContextMenu=function(S){var v=x.props.context.onNodeContextMenu;v(S,Object(c.b)(x.props))},x.onDragStart=function(S){var v=x.props.context.onNodeDragStart;S.stopPropagation(),x.setState({dragNodeHighlight:!0}),v(S,Object(C.a)(x));try{S.dataTransfer.setData("text/plain","")}catch(T){}},x.onDragEnter=function(S){var v=x.props.context.onNodeDragEnter;S.preventDefault(),S.stopPropagation(),v(S,Object(C.a)(x))},x.onDragOver=function(S){var v=x.props.context.onNodeDragOver;S.preventDefault(),S.stopPropagation(),v(S,Object(C.a)(x))},x.onDragLeave=function(S){var v=x.props.context.onNodeDragLeave;S.stopPropagation(),v(S,Object(C.a)(x))},x.onDragEnd=function(S){var v=x.props.context.onNodeDragEnd;S.stopPropagation(),x.setState({dragNodeHighlight:!1}),v(S,Object(C.a)(x))},x.onDrop=function(S){var v=x.props.context.onNodeDrop;S.preventDefault(),S.stopPropagation(),x.setState({dragNodeHighlight:!1}),v(S,Object(C.a)(x))},x.onExpand=function(S){var v=x.props.context.onNodeExpand;v(S,Object(c.b)(x.props))},x.setSelectHandle=function(S){x.selectHandle=S},x.getNodeState=function(){var S=x.props.expanded;return x.isLeaf()?null:S?h:d},x.hasChildren=function(){var S=x.props.eventKey,v=x.props.context.keyEntities,T=v[S]||{},U=T.children;return!!(U||[]).length},x.isLeaf=function(){var S=x.props,v=S.isLeaf,T=S.loaded,U=x.props.context.loadData,L=x.hasChildren();return v===!1?!1:v||!U&&!L||U&&T&&!L},x.isDisabled=function(){var S=x.props.disabled,v=x.props.context.disabled;return!!(v||S)},x.isCheckable=function(){var S=x.props.checkable,v=x.props.context.checkable;return!v||S===!1?!1:v},x.syncLoadData=function(S){var v=S.expanded,T=S.loading,U=S.loaded,L=x.props.context,N=L.loadData,V=L.onNodeLoad;if(T)return;N&&v&&!x.isLeaf()&&(!x.hasChildren()&&!U&&V(Object(c.b)(x.props)))},x.renderSwitcher=function(){var S=x.props,v=S.expanded,T=S.switcherIcon,U=x.props.context,L=U.prefixCls,N=U.switcherIcon,V=T||N;if(x.isLeaf())return e.createElement("span",{className:a()("".concat(L,"-switcher"),"".concat(L,"-switcher-noop"))},typeof V=="function"?V(Object(A.a)(Object(A.a)({},x.props),{},{isLeaf:!0})):V);var H=a()("".concat(L,"-switcher"),"".concat(L,"-switcher_").concat(v?h:d));return e.createElement("span",{onClick:x.onExpand,className:H},typeof V=="function"?V(Object(A.a)(Object(A.a)({},x.props),{},{isLeaf:!1})):V)},x.renderCheckbox=function(){var S=x.props,v=S.checked,T=S.halfChecked,U=S.disableCheckbox,L=x.props.context.prefixCls,N=x.isDisabled(),V=x.isCheckable();if(!V)return null;var H=typeof V!="boolean"?V:null;return e.createElement("span",{className:a()("".concat(L,"-checkbox"),v&&"".concat(L,"-checkbox-checked"),!v&&T&&"".concat(L,"-checkbox-indeterminate"),(N||U)&&"".concat(L,"-checkbox-disabled")),onClick:x.onCheck},H)},x.renderIcon=function(){var S=x.props.loading,v=x.props.context.prefixCls;return e.createElement("span",{className:a()("".concat(v,"-iconEle"),"".concat(v,"-icon__").concat(x.getNodeState()||"docu"),S&&"".concat(v,"-icon_loading"))})},x.renderSelector=function(){var S=x.state.dragNodeHighlight,v=x.props,T=v.title,U=v.selected,L=v.icon,N=v.loading,V=v.data,H=x.props.context,D=H.prefixCls,W=H.showIcon,F=H.icon,I=H.draggable,K=H.loadData,ee=H.titleRender,he=x.isDisabled(),de="".concat(D,"-node-content-wrapper"),Se;if(W){var Te=L||F;Se=Te?e.createElement("span",{className:a()("".concat(D,"-iconEle"),"".concat(D,"-icon__customize"))},typeof Te=="function"?Te(x.props):Te):x.renderIcon()}else K&&N&&(Se=x.renderIcon());var ce;typeof T=="function"?ce=T(V):ee?ce=ee(V):ce=T;var be=e.createElement("span",{className:"".concat(D,"-title")},ce);return e.createElement("span",{ref:x.setSelectHandle,title:typeof T=="string"?T:"",className:a()("".concat(de),"".concat(de,"-").concat(x.getNodeState()||"normal"),!he&&(U||S)&&"".concat(D,"-node-selected"),!he&&I&&"draggable"),draggable:!he&&I||void 0,"aria-grabbed":!he&&I||void 0,onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onContextMenu:x.onContextMenu,onClick:x.onSelectorClick,onDoubleClick:x.onSelectorDoubleClick,onDragStart:I?x.onDragStart:void 0},Se,be)},x}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 S=this.props.selectable,v=this.props.context.selectable;return typeof S=="boolean"?S:v}},{key:"render",value:function(){var S,v=this.props,T=v.eventKey,U=v.className,L=v.style,N=v.dragOver,V=v.dragOverGapTop,H=v.dragOverGapBottom,D=v.isLeaf,W=v.isStart,F=v.isEnd,I=v.expanded,K=v.selected,ee=v.checked,he=v.halfChecked,de=v.loading,Se=v.domRef,Te=v.active,ce=v.onMouseMove,be=Object(g.a)(v,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ye=this.props.context,ue=ye.prefixCls,se=ye.filterTreeNode,$=ye.draggable,me=ye.keyEntities,re=this.isDisabled(),ae=Object(n.f)(be),Oe=me[T]||{},le=Oe.level,te=F[F.length-1];return e.createElement("div",Object.assign({ref:Se,className:a()(U,"".concat(ue,"-treenode"),(S={},Object(M.a)(S,"".concat(ue,"-treenode-disabled"),re),Object(M.a)(S,"".concat(ue,"-treenode-switcher-").concat(I?"open":"close"),!D),Object(M.a)(S,"".concat(ue,"-treenode-checkbox-checked"),ee),Object(M.a)(S,"".concat(ue,"-treenode-checkbox-indeterminate"),he),Object(M.a)(S,"".concat(ue,"-treenode-selected"),K),Object(M.a)(S,"".concat(ue,"-treenode-loading"),de),Object(M.a)(S,"".concat(ue,"-treenode-active"),Te),Object(M.a)(S,"".concat(ue,"-treenode-leaf-last"),te),Object(M.a)(S,"drag-over",!re&&N),Object(M.a)(S,"drag-over-gap-top",!re&&V),Object(M.a)(S,"drag-over-gap-bottom",!re&&H),Object(M.a)(S,"filter-node",se&&se(Object(c.b)(this.props))),S)),style:L,onDragEnter:$?this.onDragEnter:void 0,onDragOver:$?this.onDragOver:void 0,onDragLeave:$?this.onDragLeave:void 0,onDrop:$?this.onDrop:void 0,onDragEnd:$?this.onDragEnd:void 0,onMouseMove:ce},ae),e.createElement(r,{prefixCls:ue,level:le,isStart:W,isEnd:F}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),R}(e.Component),w=function(P){return e.createElement(u.a.Consumer,null,function(R){return e.createElement(l,Object.assign({},P,{context:R}))})};w.displayName="TreeNode",w.defaultProps={title:s},w.isTreeNode=1;var E=z.a=w},XIdC:function(k,z,o){"use strict";var M=o("rePB"),g=o("ODXe"),A=o("Ff2n"),b=o("q1tI"),y=o.n(b),C=o("TSYQ"),O=o.n(C),m=o("6cGi"),e=o("4IlW"),f=b.forwardRef(function(a,u){var n,i=a.prefixCls,r=i===void 0?"rc-switch":i,c=a.className,h=a.checked,d=a.defaultChecked,s=a.disabled,l=a.loadingIcon,w=a.checkedChildren,E=a.unCheckedChildren,_=a.onClick,P=a.onChange,R=a.onKeyDown,x=Object(A.a)(a,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),S=Object(m.a)(!1,{value:h,defaultValue:d}),v=Object(g.a)(S,2),T=v[0],U=v[1];function L(D,W){var F=T;return s||(F=D,U(F),P==null||P(F,W)),F}function N(D){D.which===e.a.LEFT?L(!1,D):D.which===e.a.RIGHT&&L(!0,D),R==null||R(D)}function V(D){var W=L(!T,D);_==null||_(W,D)}var H=O()(r,c,(n={},Object(M.a)(n,"".concat(r,"-checked"),T),Object(M.a)(n,"".concat(r,"-disabled"),s),n));return b.createElement("button",Object.assign({},x,{type:"button",role:"switch","aria-checked":T,disabled:s,className:H,ref:u,onKeyDown:N,onClick:V}),l,b.createElement("span",{className:"".concat(r,"-inner")},T?w:E))});f.displayName="Switch",z.a=f},Xsq0:function(k,z,o){k.exports=o.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(k,z,o){"use strict";o.r(z),o.d(z,"ResizableTextArea",function(){return he});var M=o("wx14"),g=o("1OyB"),A=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),C=o("q1tI"),O=o("VTBJ"),m=o("rePB"),e=o("Zm9Q"),f=o("Kwbf"),a=o("c+Xe"),u=o("m+aA"),n=o("bdgK"),i=new Map;function r(Te){Te.forEach(function(ce){var be,ye=ce.target;(be=i.get(ye))===null||be===void 0||be.forEach(function(ue){return ue(ye)})})}var c=new n.default(r),h=null,d=null;function s(Te,ce){i.has(Te)||(i.set(Te,new Set),c.observe(Te)),i.get(Te).add(ce)}function l(Te,ce){i.has(Te)&&(i.get(Te).delete(ce),i.get(Te).size||(c.unobserve(Te),i.delete(Te)))}var w=function(Te){Object(b.a)(be,Te);var ce=Object(y.a)(be);function be(){return Object(g.a)(this,be),ce.apply(this,arguments)}return Object(A.a)(be,[{key:"render",value:function(){return this.props.children}}]),be}(C.Component),E=C.createContext(null);function _(Te){var ce=Te.children,be=Te.onBatchResize,ye=C.useRef(0),ue=C.useRef([]),se=C.useContext(E),$=C.useCallback(function(me,re,ae){ye.current+=1;var Oe=ye.current;ue.current.push({size:me,element:re,data:ae}),Promise.resolve().then(function(){Oe===ye.current&&(be==null||be(ue.current),ue.current=[])}),se==null||se(me,re,ae)},[be,se]);return C.createElement(E.Provider,{value:$},ce)}function P(Te){var ce=Te.children,be=Te.disabled,ye=C.useRef(null),ue=C.useRef(null),se=C.useContext(E),$=C.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),me=C.isValidElement(ce)&&Object(a.c)(ce),re=me?ce.ref:null,ae=C.useMemo(function(){return Object(a.a)(re,ye)},[re,ye]),Oe=C.useRef(Te);Oe.current=Te;var le=C.useCallback(function(te){var Q=Oe.current,J=Q.onResize,ve=Q.data,_e=te.getBoundingClientRect(),Ae=_e.width,Je=_e.height,tt=te.offsetWidth,ut=te.offsetHeight,ht=Math.floor(Ae),vt=Math.floor(Je);if($.current.width!==ht||$.current.height!==vt||$.current.offsetWidth!==tt||$.current.offsetHeight!==ut){var _t={width:ht,height:vt,offsetWidth:tt,offsetHeight:ut};$.current=_t;var Ve=tt===Math.round(Ae)?Ae:tt,Ue=ut===Math.round(Je)?Je:ut,pt=Object(O.a)(Object(O.a)({},_t),{},{offsetWidth:Ve,offsetHeight:Ue});se==null||se(pt,te,ve),J&&Promise.resolve().then(function(){J(pt,te)})}},[]);return C.useEffect(function(){var te=Object(u.a)(ye.current)||Object(u.a)(ue.current);return te&&!be&&s(te,le),function(){return l(te,le)}},[ye.current,be]),C.createElement(w,{ref:ue},me?C.cloneElement(ce,{ref:ae}):ce)}var R="rc-observer-key";function x(Te){var ce=Te.children,be=Object(e.a)(ce);return be.map(function(ye,ue){var se=(ye==null?void 0:ye.key)||"".concat(R,"-").concat(ue);return C.createElement(P,Object(M.a)({},Te,{key:se}),ye)})}x.Collection=_;var S=x,v=o("bT9E"),T=o("TSYQ"),U=o.n(T),L=`
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={},H;function D(Te){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(ce&&V[be])return V[be];var ye=window.getComputedStyle(Te),ue=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),se=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),$=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),me=N.map(function(ae){return"".concat(ae,":").concat(ye.getPropertyValue(ae))}).join(";"),re={sizingStyle:me,paddingSize:se,borderSize:$,boxSizing:ue};return ce&&be&&(V[be]=re),re}function W(Te){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),Te.getAttribute("wrap")?H.setAttribute("wrap",Te.getAttribute("wrap")):H.removeAttribute("wrap");var ue=D(Te,ce),se=ue.paddingSize,$=ue.borderSize,me=ue.boxSizing,re=ue.sizingStyle;H.setAttribute("style","".concat(re,";").concat(L)),H.value=Te.value||Te.placeholder||"";var ae=Number.MIN_SAFE_INTEGER,Oe=Number.MAX_SAFE_INTEGER,le=H.scrollHeight,te;if(me==="border-box"?le+=$:me==="content-box"&&(le-=se),be!==null||ye!==null){H.value=" ";var Q=H.scrollHeight-se;be!==null&&(ae=Q*be,me==="border-box"&&(ae=ae+se+$),le=Math.max(ae,le)),ye!==null&&(Oe=Q*ye,me==="border-box"&&(Oe=Oe+se+$),te=le>Oe?"":"hidden",le=Math.min(Oe,le))}return{height:le,minHeight:ae,maxHeight:Oe,overflowY:te,resize:"none"}}var F=o("Gytx"),I=o.n(F),K;(function(Te){Te[Te.NONE=0]="NONE",Te[Te.RESIZING=1]="RESIZING",Te[Te.RESIZED=2]="RESIZED"})(K||(K={}));var ee=function(Te){Object(b.a)(be,Te);var ce=Object(y.a)(be);function be(ye){var ue;return Object(g.a)(this,be),ue=ce.call(this,ye),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(se){ue.textArea=se},ue.handleResize=function(se){var $=ue.state.resizeStatus,me=ue.props,re=me.autoSize,ae=me.onResize;if($!==K.NONE)return;typeof ae=="function"&&ae(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 $=se.minRows,me=se.maxRows,re=W(ue.textArea,!1,$,me);ue.setState({textareaStyles:re,resizeStatus:K.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:K.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:K.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var se=ue.props,$=se.prefixCls,me=$===void 0?"rc-textarea":$,re=se.autoSize,ae=se.onResize,Oe=se.className,le=se.disabled,te=ue.state,Q=te.textareaStyles,J=te.resizeStatus,ve=Object(v.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=U()(me,Oe,Object(m.a)({},"".concat(me,"-disabled"),le));"value"in ve&&(ve.value=ve.value||"");var Ae=Object(O.a)(Object(O.a)(Object(O.a)({},ue.props.style),Q),J===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return C.createElement(S,{onResize:ue.handleResize,disabled:!(re||ae)},C.createElement("textarea",Object(M.a)({},ve,{className:_e,style:Ae,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:K.NONE},ue}return Object(A.a)(be,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!I()(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($){}}},{key:"render",value:function(){return this.renderTextArea()}}]),be}(C.Component),he=ee,de=function(Te){Object(b.a)(be,Te);var ce=Object(y.a)(be);function be(ye){var ue;Object(g.a)(this,be),ue=ce.call(this,ye),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function($){ue.resizableTextArea=$},ue.handleChange=function($){var me=ue.props.onChange;ue.setValue($.target.value,function(){ue.resizableTextArea.resizeTextarea()}),me&&me($)},ue.handleKeyDown=function($){var me=ue.props,re=me.onPressEnter,ae=me.onKeyDown;$.keyCode===13&&re&&re($),ae&&ae($)};var se=typeof ye.value=="undefined"||ye.value===null?ye.defaultValue:ye.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 C.createElement(he,Object(M.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}(C.Component),Se=z.default=de},ZJlW:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return F});var M=o("k1fw"),g=o("oBTY"),A=o("miYZ"),b=o("tsqr"),y=o("rAM+"),C=o("tJVT"),O=o("PpiC"),m=o("q1tI"),e=o.n(m),f=o("bdgK"),a=o("9og8"),u=o("WmNS"),n=o.n(u),i={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"]},r={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"]},c={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","friend","gcnew","generic","goto","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:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $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 <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},h={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(`
`)}]},d=o("5VLF"),s=o.n(d),l={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,ee){return ee.map(function(he){return{label:he,kind:K.languages.CompletionItemKind.Keyword,insertText:he}})},E=function(K){return Object.keys(l.tables).map(function(ee){return{label:ee,kind:K.languages.CompletionItemKind.Variable,insertText:ee}})},_=function(K,ee){var he=l.tables[K];return he?he.map(function(de){return{label:de,kind:ee.languages.CompletionItemKind.Field,insertText:de}}):[]};function P(I,K,ee,he,de){var Se=K.getWordUntilPosition(ee),Te={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},ce=he.map(function(be){return{label:be,kind:I.languages.CompletionItemKind.Keyword,insertText:be,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Te}});return de.map(function(be){ce.push(Object(M.a)(Object(M.a)({},be),{},{range:Te}))}),ce}var R=function(I){l.languages.map(function(de){return I.languages.registerDocumentFormattingEditProvider(de,{provideDocumentFormattingEdits:function(Te,ce,be){return Object(a.a)(n.a.mark(function ye(){var ue;return n.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return ue=s()(Te.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}),$.abrupt("return",[{range:Te.getFullModelRange(),text:ue}]);case 2:case"end":return $.stop()}},ye)}))()}}),de});var K=c.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ee=h.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),he=r.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}});I.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(c.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(c.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}}),I.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn};return{suggestions:Object(g.a)(i.keywords.map(function(ye){return{label:ye,kind:I.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}}))}}}),I.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(r.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(r.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}}),I.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(h.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(h.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}})},x="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",S=o("fjLI"),v=o("LvDl"),T=o("+ua5");function U(I){return/^\d+$/.test(I)?"".concat(I,"px"):I}function L(){}var N=!1,V={"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 H(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=I;if(Array.isArray(I)){for(var ee=0;ee<I.length;ee++){var he=V[I[ee]];if(he)return he}return K[0]}return V[K]||K}var D=null,W=z.b=function(I){var K=I.width,ee=K===void 0?"100%":K,he=I.height,de=he===void 0?"100%":he,Se=I.value,Te=I.language,ce=Te===void 0?"javascript":Te,be=I.style,ye=be===void 0?{}:be,ue=I.options,se=ue===void 0?{}:ue,$=I.overrideServices,me=$===void 0?{}:$,re=I.theme,ae=re===void 0?"vs-dark":re,Oe=I.onEditBlur,le=I.onSave,te=I.autoHeight,Q=te===void 0?!1:te,J=I.forbidCopy,ve=J===void 0?!1:J,_e=I.onChange,Ae=_e===void 0?L:_e,Je=I.editorDidMount,tt=Je===void 0?L:Je,ut=I.onFocus,ht=ut===void 0?L:ut,vt=I.filename,_t=vt===void 0?"educoder.txt":vt,Ve=I.errorLine,Ue=I.errorContent,pt=Ue===void 0?"":Ue,Ut=I.customTheme,Et=Ut===void 0?null:Ut,jt=Object(O.a)(I,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent","customTheme"]),Ze=Object(m.useRef)(),Be=Object(m.useRef)({}),Ye=Object(m.useRef)(),Ce=Object(m.useRef)(),Le=Object(m.useRef)(!1),He=Object(m.useRef)(),je=Object(m.useState)(!1),Ke=Object(C.a)(je,2),it=Ke[0],Ct=Ke[1];function Ft(){var on;return Ze.current&&(on=new f.default(function(Tn){var Ln=Object(y.a)(Tn),Nn;try{for(Ln.s();!(Nn=Ln.n()).done;){var ln=Nn.value;(ln.target.offsetHeight>0||ln.target.offsetWidth>0)&&Be.current.instance.layout()}}catch(ar){Ln.e(ar)}finally{Ln.f()}}),on.observe(Ze.current)),on}function Jt(){b.b.warn(decodeURIComponent(x))}var Ht=function(){var Tn=Be.current.instance;if(Se!=null&&Tn&&it){var Ln=Tn.getModel();Ln&&Se!==Ln.getValue()&&(N=!0,Ln.setValue(Se),Tn.layout(),N=!1)}};Object(m.useEffect)(function(){Ce.current&&clearTimeout(Ce.current),Ce.current=setTimeout(function(){Ht()},500)},[Se,it,Be.current]),Object(m.useEffect)(function(){if(Ve&&Be.current&&Be.current.instance){var on=Be.current.instance;on.changeViewZones(function(Ln){var Nn=document.createElement("div");Nn.style.padding="10px 20px",Nn.style.width="calc(100% - 20px)",Nn.className="my-error-line-wrp",Nn.innerHTML=pt,Ln.addZone({afterLineNumber:Ve||11,heightInLines:3,domNode:Nn})});var Tn={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}};on.addOverlayWidget(Tn),on.revealPositionInCenter({lineNumber:20,column:1})}},[Ve,Be.current,it]);function Ot(){var on=Be.current.instance;if(on){var Tn=on.getSelection(),Ln=Be.current.pastePos||{},Nn=new D.Range(Ln.startLineNumber||Tn.endLineNumber,Ln.startColumn||Tn.endColumn,Ln.endLineNumber||Tn.endLineNumber,Ln.endColumn||Tn.endColumn);setTimeout(function(){on.executeEdits("",[{range:Nn,text:""}])},300)}}function Fe(on){(window.navigator.platform.match("Mac")?on.metaKey:on.ctrlKey)&&on.keyCode==83&&(on.preventDefault(),le())}var at=function(){if(Q&&Be.current.instance){var Tn=Be.current.instance.getContentHeight();Zt(Tn<de?de:Tn)}else Zt(de)};function ot(on){var Tn=document.createEvent("MouseEvents");Tn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),on.dispatchEvent(Tn)}function Pe(on,Tn){var Ln=window.URL||window.webkitURL||window,Nn=new Blob([Tn]),ln=document.createElementNS("http://www.w3.org/1999/xhtml","a");ln.href=Ln.createObjectURL(Nn),ln.download=on,ot(ln)}Object(m.useEffect)(function(){at()},[at]),Object(m.useEffect)(function(){Ze.current&&!it&&Promise.all([o.e(16),o.e(29)]).then(o.t.bind(null,"M/lh",7)).then(function(on){try{D=on,Be.current.instance=D.editor.create(Ze.current,{value:Se,language:H(ce),theme:ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},me);var Tn=Be.current.instance,Ln=S.d._menuItems,Nn=Object(g.a)(Ln).find(function(Yn){return Yn[0]._debugName=="EditorContext"}),ln=Nn[1],ar=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xr=function(Or,cr){var sn=Or._first;do{var qt,On,Ir=cr.includes((qt=sn.element)===null||qt===void 0||((On=qt.command)===null||On===void 0)?void 0:On.id);Ir&&Or._remove(sn)}while(sn=sn.next)};if(tt(Tn,D),setTimeout(function(){at(),Be.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Pe(_t||"educoder.txt",Tn.getValue())}}),Tn.getDomNode().addEventListener("input",function(){Ye.current.autoFormat&&Tn.getAction("editor.action.formatDocument").run()})},500),Be.current.subscription=Tn.onDidChangeModelContent(function(Yn){Le.current?clearTimeout(He.current):(at(),Ae(Tn.getValue(),Yn)),He.current=setTimeout(function(){Le.current=!1},500)}),window.Monaco||R(D,H(ce)),ve&&(xr(ln,ar),Ze.current.classList.add("noCopyPaste"),Tn.onKeyDown(function(Yn){var Or=Yn.keyCode,cr=Yn.ctrlKey,sn=Yn.metaKey;(Or===33||Or===52)&&(sn||cr)&&(Jt(),Yn.preventDefault())})),window.Monaco=D,Oe&&Tn.onDidBlurEditorWidget(function(){Oe(Tn.getValue())}),ht&&Tn.onDidFocusEditorText(function(){ht(Tn.getValue())}),ve){Tn.addCommand(D.KeyMod.CtrlCmd|D.KeyCode.KEY_V,function(){return Jt(),null}),Tn.onDidPaste(function(Yn){Be.current.pastePos=Yn});try{window.addEventListener("paste",Ot)}catch(Yn){}}var Cr=Ft();return Ct(!0),function(){var Yn=Be.current.instance;Yn.dispose();var Or=Yn.getModel();Or&&Or.dispose(),Be.current.subscription&&Be.current.subscription.dispose(),ve&&window.removeEventListener("paste",Ot),Cr.unobserve(Ze.current)}}catch(Yn){}})},[]),Object(m.useEffect)(function(){var on=Be.current.instance;if(on&&it)return document.addEventListener("keydown",Fe,!1),function(){document.removeEventListener("keydown",Fe)}},[le,it]),Object(m.useEffect)(function(){var on=Be.current.instance;if(on&&it){var Tn=H(ce);D.editor.setModelLanguage(on.getModel(),Tn),console.log("language:",ce,on.getModel(),Tn)}},[ce,it]),Object(m.useEffect)(function(){var on=Be.current.instance;on&&it&&(Et?(D.editor.defineTheme("customTheme",Et),D.editor.setTheme("customTheme")):D.editor.setTheme(ae))},[ae,it,Et]),Object(m.useEffect)(function(){var on=Be.current.instance;Ye.current=se,on&&it&&(on.updateOptions(Object(M.a)({},se)),setTimeout(function(){on.getModel().updateOptions(Object(M.a)({},se))},200))},[JSON.stringify(se),it]),Object(m.useEffect)(function(){var on=Be.current.instance;on&&it&&on.layout()},[ee,de,it]);var Qe=Object(m.useState)(U(ee)),ft=Object(C.a)(Qe,2),bt=ft[0],Dt=ft[1],Mt=Object(m.useState)(U(de)),ct=Object(C.a)(Mt,2),Lt=ct[0],Zt=ct[1],An=Object(M.a)(Object(M.a)({},ye),{},{width:bt,height:Lt});return e.a.createElement("div",{className:"my-monaco-editor",ref:Ze,style:An})};function F(I){var K=I.width,ee=K===void 0?"100%":K,he=I.height,de=he===void 0?"100%":he,Se=I.original,Te=I.modified,ce=I.language,be=I.options,ye=be===void 0?{}:be,ue=Object(m.useRef)(),se=Object(m.useState)(null),$=Object(C.a)(se,2),me=$[0],re=$[1];function ae(Q){var J;return ue.current&&(J=new f.default(function(ve){var _e=Object(y.a)(ve),Ae;try{for(_e.s();!(Ae=_e.n()).done;){var Je=Ae.value;(Je.target.offsetHeight>0||Je.target.offsetWidth>0)&&Q.layout()}}catch(tt){_e.e(tt)}finally{_e.f()}}),J.observe(ue.current)),J}Object(m.useEffect)(function(){ue.current&&Promise.all([o.e(16),o.e(29)]).then(o.t.bind(null,"M/lh",7)).then(function(Q){D=Q;var J=D.editor.createDiffEditor(ue.current,Object(M.a)(Object(M.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},ye),{},{wordWrap:!0}));re(J);var ve=ae(J);return function(){J.dispose();var _e=J.getModel();_e&&_e.dispose(),ve.unobserve(ue.current)}})},[]),Object(m.useEffect)(function(){me&&me.setModel({original:D.editor.createModel(Se,ce),modified:D.editor.createModel(Te,ce)})},[Se,Te,ce,me]);var Oe=U(ee),le=U(de),te={width:Oe,height:le};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:te})}},ZpRC:function(k,z,o){"use strict";function M(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function g(a,u){return(!u||a!=="hidden")&&a!=="visible"&&a!=="clip"}function A(a,u){if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){var n=getComputedStyle(a,null);return g(n.overflowY,u)||g(n.overflowX,u)||function(i){var r=function(c){if(!c.ownerDocument||!c.ownerDocument.defaultView)return null;try{return c.ownerDocument.defaultView.frameElement}catch(h){return null}}(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)}(a)}return!1}function b(a,u,n,i,r,c,h,d){return c<a&&h>u||c>a&&h<u?0:c<=a&&d<=n||h>=u&&d>=n?c-a-i:h>u&&d<n||c<a&&d>n?h-u+r:0}var y=function(a,u){var n=window,i=u.scrollMode,r=u.block,c=u.inline,h=u.boundary,d=u.skipOverflowHiddenElements,s=typeof h=="function"?h:function(Q){return Q!==h};if(!M(a))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,w=[],E=a;M(E)&&s(E);){if((E=E.parentElement)===l){w.push(E);break}E!=null&&E===document.body&&A(E)&&!A(document.documentElement)||E!=null&&A(E,d)&&w.push(E)}for(var _=n.visualViewport?n.visualViewport.width:innerWidth,P=n.visualViewport?n.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,S=a.getBoundingClientRect(),v=S.height,T=S.width,U=S.top,L=S.right,N=S.bottom,V=S.left,H=r==="start"||r==="nearest"?U:r==="end"?N:U+v/2,D=c==="center"?V+T/2:c==="end"?L:V,W=[],F=0;F<w.length;F++){var I=w[F],K=I.getBoundingClientRect(),ee=K.height,he=K.width,de=K.top,Se=K.right,Te=K.bottom,ce=K.left;if(i==="if-needed"&&U>=0&&V>=0&&N<=P&&L<=_&&U>=de&&N<=Te&&V>=ce&&L<=Se)return W;var be=getComputedStyle(I),ye=parseInt(be.borderLeftWidth,10),ue=parseInt(be.borderTopWidth,10),se=parseInt(be.borderRightWidth,10),$=parseInt(be.borderBottomWidth,10),me=0,re=0,ae="offsetWidth"in I?I.offsetWidth-I.clientWidth-ye-se:0,Oe="offsetHeight"in I?I.offsetHeight-I.clientHeight-ue-$:0;if(l===I)me=r==="start"?H:r==="end"?H-P:r==="nearest"?b(x,x+P,P,ue,$,x+H,x+H+v,v):H-P/2,re=c==="start"?D:c==="center"?D-_/2:c==="end"?D-_:b(R,R+_,_,ye,se,R+D,R+D+T,T),me=Math.max(0,me+x),re=Math.max(0,re+R);else{me=r==="start"?H-de-ue:r==="end"?H-Te+$+Oe:r==="nearest"?b(de,Te,ee,ue,$+Oe,H,H+v,v):H-(de+ee/2)+Oe/2,re=c==="start"?D-ce-ye:c==="center"?D-(ce+he/2)+ae/2:c==="end"?D-Se+se+ae:b(ce,Se,he,ye,se+ae,D,D+T,T);var le=I.scrollLeft,te=I.scrollTop;H+=te-(me=Math.max(0,Math.min(te+me,I.scrollHeight-ee+Oe))),D+=le-(re=Math.max(0,Math.min(le+re,I.scrollWidth-he+ae)))}W.push({el:I,top:me,left:re})}return W};function C(a){return a===Object(a)&&Object.keys(a).length!==0}function O(a,u){u===void 0&&(u="auto");var n="scrollBehavior"in document.body.style;a.forEach(function(i){var r=i.el,c=i.top,h=i.left;r.scroll&&n?r.scroll({top:c,left:h,behavior:u}):(r.scrollTop=c,r.scrollLeft=h)})}function m(a){return a===!1?{block:"end",inline:"nearest"}:C(a)?a:{block:"start",inline:"nearest"}}function e(a,u){var n=!a.ownerDocument.documentElement.contains(a);if(C(u)&&typeof u.behavior=="function")return u.behavior(n?[]:y(a,u));if(n)return;var i=m(u);return O(y(a,i),i.behavior)}var f=z.a=e},Zss7:function(k,z,o){var M;(function(g){var A=/^\s+/,b=/\s+$/,y=0,C=g.round,O=g.min,m=g.max,e=g.random;function f($,me){if($=$||"",me=me||{},$ instanceof f)return $;if(!(this instanceof f))return new f($,me);var re=a($);this._originalInput=$,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=C(100*this._a)/100,this._format=me.format||re.format,this._gradientType=me.gradientType,this._r<1&&(this._r=C(this._r)),this._g<1&&(this._g=C(this._g)),this._b<1&&(this._b=C(this._b)),this._ok=re.ok,this._tc_id=y++}f.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 $=this.toRgb();return($.r*299+$.g*587+$.b*114)/1e3},getLuminance:function(){var $=this.toRgb(),me,re,ae,Oe,le,te;return me=$.r/255,re=$.g/255,ae=$.b/255,me<=.03928?Oe=me/12.92:Oe=g.pow((me+.055)/1.055,2.4),re<=.03928?le=re/12.92:le=g.pow((re+.055)/1.055,2.4),ae<=.03928?te=ae/12.92:te=g.pow((ae+.055)/1.055,2.4),.2126*Oe+.7152*le+.0722*te},setAlpha:function($){return this._a=W($),this._roundA=C(100*this._a)/100,this},toHsv:function(){var $=r(this._r,this._g,this._b);return{h:$.h*360,s:$.s,v:$.v,a:this._a}},toHsvString:function(){var $=r(this._r,this._g,this._b),me=C($.h*360),re=C($.s*100),ae=C($.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+ae+"%)":"hsva("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHsl:function(){var $=n(this._r,this._g,this._b);return{h:$.h*360,s:$.s,l:$.l,a:this._a}},toHslString:function(){var $=n(this._r,this._g,this._b),me=C($.h*360),re=C($.s*100),ae=C($.l*100);return this._a==1?"hsl("+me+", "+re+"%, "+ae+"%)":"hsla("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHex:function($){return h(this._r,this._g,this._b,$)},toHexString:function($){return"#"+this.toHex($)},toHex8:function($){return d(this._r,this._g,this._b,this._a,$)},toHex8String:function($){return"#"+this.toHex8($)},toRgb:function(){return{r:C(this._r),g:C(this._g),b:C(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+C(this._r)+", "+C(this._g)+", "+C(this._b)+")":"rgba("+C(this._r)+", "+C(this._g)+", "+C(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:C(F(this._r,255)*100)+"%",g:C(F(this._g,255)*100)+"%",b:C(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+C(F(this._r,255)*100)+"%, "+C(F(this._g,255)*100)+"%, "+C(F(this._b,255)*100)+"%)":"rgba("+C(F(this._r,255)*100)+"%, "+C(F(this._g,255)*100)+"%, "+C(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[h(this._r,this._g,this._b,!0)]||!1},toFilter:function($){var me="#"+s(this._r,this._g,this._b,this._a),re=me,ae=this._gradientType?"GradientType = 1, ":"";if($){var Oe=f($);re="#"+s(Oe._r,Oe._g,Oe._b,Oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+ae+"startColorstr="+me+",endColorstr="+re+")"},toString:function($){var me=!!$;$=$||this._format;var re=!1,ae=this._a<1&&this._a>=0,Oe=!me&&ae&&($==="hex"||$==="hex6"||$==="hex3"||$==="hex4"||$==="hex8"||$==="name");return Oe?$==="name"&&this._a===0?this.toName():this.toRgbString():($==="rgb"&&(re=this.toRgbString()),$==="prgb"&&(re=this.toPercentageRgbString()),($==="hex"||$==="hex6")&&(re=this.toHexString()),$==="hex3"&&(re=this.toHexString(!0)),$==="hex4"&&(re=this.toHex8String(!0)),$==="hex8"&&(re=this.toHex8String()),$==="name"&&(re=this.toName()),$==="hsl"&&(re=this.toHslString()),$==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function($,me){var re=$.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(_,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function($,me){return $.apply(null,[this].concat([].slice.call(me)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(U,arguments)},triad:function(){return this._applyCombination(v,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},f.fromRatio=function($,me){if(typeof $=="object"){var re={};for(var ae in $)$.hasOwnProperty(ae)&&(ae==="a"?re[ae]=$[ae]:re[ae]=Se($[ae]));$=re}return f($,me)};function a($){var me={r:0,g:0,b:0},re=1,ae=null,Oe=null,le=null,te=!1,Q=!1;return typeof $=="string"&&($=ue($)),typeof $=="object"&&(ye($.r)&&ye($.g)&&ye($.b)?(me=u($.r,$.g,$.b),te=!0,Q=String($.r).substr(-1)==="%"?"prgb":"rgb"):ye($.h)&&ye($.s)&&ye($.v)?(ae=Se($.s),Oe=Se($.v),me=c($.h,ae,Oe),te=!0,Q="hsv"):ye($.h)&&ye($.s)&&ye($.l)&&(ae=Se($.s),le=Se($.l),me=i($.h,ae,le),te=!0,Q="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=W(re),{ok:te,format:$.format||Q,r:O(255,m(me.r,0)),g:O(255,m(me.g,0)),b:O(255,m(me.b,0)),a:re}}function u($,me,re){return{r:F($,255)*255,g:F(me,255)*255,b:F(re,255)*255}}function n($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=O($,me,re),le,te,Q=(ae+Oe)/2;if(ae==Oe)le=te=0;else{var J=ae-Oe;te=Q>.5?J/(2-ae-Oe):J/(ae+Oe);switch(ae){case $:le=(me-re)/J+(me<re?6:0);break;case me:le=(re-$)/J+2;break;case re:le=($-me)/J+4;break}le/=6}return{h:le,s:te,l:Q}}function i($,me,re){var ae,Oe,le;$=F($,360),me=F(me,100),re=F(re,100);function te(ve,_e,Ae){return Ae<0&&(Ae+=1),Ae>1&&(Ae-=1),Ae<1/6?ve+(_e-ve)*6*Ae:Ae<1/2?_e:Ae<2/3?ve+(_e-ve)*(2/3-Ae)*6:ve}if(me===0)ae=Oe=le=re;else{var Q=re<.5?re*(1+me):re+me-re*me,J=2*re-Q;ae=te(J,Q,$+1/3),Oe=te(J,Q,$),le=te(J,Q,$-1/3)}return{r:ae*255,g:Oe*255,b:le*255}}function r($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=O($,me,re),le,te,Q=ae,J=ae-Oe;if(te=ae===0?0:J/ae,ae==Oe)le=0;else{switch(ae){case $:le=(me-re)/J+(me<re?6:0);break;case me:le=(re-$)/J+2;break;case re:le=($-me)/J+4;break}le/=6}return{h:le,s:te,v:Q}}function c($,me,re){$=F($,360)*6,me=F(me,100),re=F(re,100);var ae=g.floor($),Oe=$-ae,le=re*(1-me),te=re*(1-Oe*me),Q=re*(1-(1-Oe)*me),J=ae%6,ve=[re,te,le,le,Q,re][J],_e=[Q,re,re,te,le,le][J],Ae=[le,le,Q,re,re,te][J];return{r:ve*255,g:_e*255,b:Ae*255}}function h($,me,re,ae){var Oe=[de(C($).toString(16)),de(C(me).toString(16)),de(C(re).toString(16))];return ae&&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 d($,me,re,ae,Oe){var le=[de(C($).toString(16)),de(C(me).toString(16)),de(C(re).toString(16)),de(Te(ae))];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 s($,me,re,ae){var Oe=[de(Te(ae)),de(C($).toString(16)),de(C(me).toString(16)),de(C(re).toString(16))];return Oe.join("")}f.equals=function($,me){return!$||!me?!1:f($).toRgbString()==f(me).toRgbString()},f.random=function(){return f.fromRatio({r:e(),g:e(),b:e()})};function l($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.s-=me/100,re.s=I(re.s),f(re)}function w($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.s+=me/100,re.s=I(re.s),f(re)}function E($){return f($).desaturate(100)}function _($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.l+=me/100,re.l=I(re.l),f(re)}function P($,me){me=me===0?0:me||10;var re=f($).toRgb();return re.r=m(0,O(255,re.r-C(255*-(me/100)))),re.g=m(0,O(255,re.g-C(255*-(me/100)))),re.b=m(0,O(255,re.b-C(255*-(me/100)))),f(re)}function R($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.l-=me/100,re.l=I(re.l),f(re)}function x($,me){var re=f($).toHsl(),ae=(re.h+me)%360;return re.h=ae<0?360+ae:ae,f(re)}function S($){var me=f($).toHsl();return me.h=(me.h+180)%360,f(me)}function v($){var me=f($).toHsl(),re=me.h;return[f($),f({h:(re+120)%360,s:me.s,l:me.l}),f({h:(re+240)%360,s:me.s,l:me.l})]}function T($){var me=f($).toHsl(),re=me.h;return[f($),f({h:(re+90)%360,s:me.s,l:me.l}),f({h:(re+180)%360,s:me.s,l:me.l}),f({h:(re+270)%360,s:me.s,l:me.l})]}function U($){var me=f($).toHsl(),re=me.h;return[f($),f({h:(re+72)%360,s:me.s,l:me.l}),f({h:(re+216)%360,s:me.s,l:me.l})]}function L($,me,re){me=me||6,re=re||30;var ae=f($).toHsl(),Oe=360/re,le=[f($)];for(ae.h=(ae.h-(Oe*me>>1)+720)%360;--me;)ae.h=(ae.h+Oe)%360,le.push(f(ae));return le}function N($,me){me=me||6;for(var re=f($).toHsv(),ae=re.h,Oe=re.s,le=re.v,te=[],Q=1/me;me--;)te.push(f({h:ae,s:Oe,v:le})),le=(le+Q)%1;return te}f.mix=function($,me,re){re=re===0?0:re||50;var ae=f($).toRgb(),Oe=f(me).toRgb(),le=re/100,te={r:(Oe.r-ae.r)*le+ae.r,g:(Oe.g-ae.g)*le+ae.g,b:(Oe.b-ae.b)*le+ae.b,a:(Oe.a-ae.a)*le+ae.a};return f(te)},f.readability=function($,me){var re=f($),ae=f(me);return(g.max(re.getLuminance(),ae.getLuminance())+.05)/(g.min(re.getLuminance(),ae.getLuminance())+.05)},f.isReadable=function($,me,re){var ae=f.readability($,me),Oe,le;le=!1,Oe=se(re);switch(Oe.level+Oe.size){case"AAsmall":case"AAAlarge":le=ae>=4.5;break;case"AAlarge":le=ae>=3;break;case"AAAsmall":le=ae>=7;break}return le},f.mostReadable=function($,me,re){var ae=null,Oe=0,le,te,Q,J;re=re||{},te=re.includeFallbackColors,Q=re.level,J=re.size;for(var ve=0;ve<me.length;ve++)le=f.readability($,me[ve]),le>Oe&&(Oe=le,ae=f(me[ve]));return f.isReadable($,ae,{level:Q,size:J})||!te?ae:(re.includeFallbackColors=!1,f.mostReadable($,["#fff","#000"],re))};var V=f.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"},H=f.hexNames=D(V);function D($){var me={};for(var re in $)$.hasOwnProperty(re)&&(me[$[re]]=re);return me}function W($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function F($,me){ee($)&&($="100%");var re=he($);return $=O(me,m(0,parseFloat($))),re&&($=parseInt($*me,10)/100),g.abs($-me)<1e-6?1:$%me/parseFloat(me)}function I($){return O(1,m(0,$))}function K($){return parseInt($,16)}function ee($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function he($){return typeof $=="string"&&$.indexOf("%")!=-1}function de($){return $.length==1?"0"+$:""+$}function Se($){return $<=1&&($=$*100+"%"),$}function Te($){return g.round(parseFloat($)*255).toString(16)}function ce($){return K($)/255}var be=function(){var $="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+$+")",ae="[\\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"+ae),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+ae),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+ae),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 ye($){return!!be.CSS_UNIT.exec($)}function ue($){$=$.replace(A,"").replace(b,"").toLowerCase();var me=!1;if(V[$])$=V[$],me=!0;else if($=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=be.rgb.exec($))?{r:re[1],g:re[2],b:re[3]}:(re=be.rgba.exec($))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=be.hsl.exec($))?{h:re[1],s:re[2],l:re[3]}:(re=be.hsla.exec($))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=be.hsv.exec($))?{h:re[1],s:re[2],v:re[3]}:(re=be.hsva.exec($))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=be.hex8.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),a:ce(re[4]),format:me?"name":"hex8"}:(re=be.hex6.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),format:me?"name":"hex"}:(re=be.hex4.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),a:ce(re[4]+""+re[4]),format:me?"name":"hex8"}:(re=be.hex3.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),format:me?"name":"hex"}:!1}function se($){var me,re;return $=$||{level:"AA",size:"small"},me=($.level||"AA").toUpperCase(),re=($.size||"small").toLowerCase(),me!=="AA"&&me!=="AAA"&&(me="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:me,size:re}}k.exports?k.exports=f:!(M=function(){return f}.call(z,o,z,k),M!==void 0&&(k.exports=M))})(Math)},aBPH:function(k,z,o){k.exports={wrap:"wrap___1eujs",modal:"modal___3NBln",title:"title___26WI_",path:"path___HzdTG",colorBlue:"colorBlue___3sufs",width240:"width240___DJhZ8",filePath:"filePath___13aFg"}},auZk:function(k,z,o){k.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(k,z,o){k.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(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return function(g){var A=M,b=A.lib,y=b.CipherParams,C=A.enc,O=C.Hex,m=A.format,e=m.Hex={stringify:function(f){return f.ciphertext.toString(O)},parse:function(f){var a=O.parse(f);return y.create({ciphertext:a})}}}(),M.format.Hex})},bT9E:function(k,z,o){"use strict";o.d(z,"a",function(){return g});var M=o("VTBJ");function g(A,b){var y=Object(M.a)({},A);return Array.isArray(b)&&b.forEach(function(C){delete y[C]}),y}},bUJZ:function(k,z){k.exports="data:image/png;base64,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"},biw7:function(k,z,o){"use strict";var M=o("q1tI"),g=o.n(M),A=M.createContext(null);z.a=A},c5Ni:function(k,z,o){},cFMs:function(k,z){k.exports="data:image/png;base64,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"},cRFk:function(k,z,o){k.exports=o.p+"static/RepositoryNoneData.828085a8.png"},ch0t:function(k,z,o){"use strict";o.r(z);var M=o("+L6B"),g=o("2/Rp"),A=o("T2oS"),b=o("W9HT"),y=o("14J3"),C=o("BMrR"),O=o("2qtc"),m=o("kLXV"),e=o("jCWc"),f=o("kPKH"),a=o("qVdP"),u=o("jsC+"),n=o("k1fw"),i=o("lUTK"),r=o("BvKs"),c=o("9og8"),h=o("miYZ"),d=o("tsqr"),s=o("5Dmo"),l=o("3S7+"),w=o("tJVT"),E=o("PpiC"),_=o("Znn+"),P=o("ZTPi"),R=o("WmNS"),x=o.n(R),S=o("q1tI"),v=o.n(S),T=o("B6bo"),U=o.n(T),L=o("Ty5D"),N=o("9kvl"),V=o("BoS7"),H=o("Sdc0"),D=o("oBTY"),W=o("ozfa"),F=o("MJZm"),I=o("P5Jw"),K=o("5NDa"),ee=o("5rEg"),he=o("y8nQ"),de=o("Vl3Y"),Se=o("aBPH"),Te=o.n(Se),ce=function(Fe){var at=Fe.shixunsDetail,ot=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,ft=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),ct=Object(L.i)(),Lt=Object(S.useState)({}),Zt=Object(w.a)(Lt,2),An=Zt[0],on=Zt[1],Tn=Object(S.useRef)(),Ln=de.a.useForm(),Nn=Object(w.a)(Ln,1),ln=Nn[0],ar=Object(S.useState)(""),xr=Object(w.a)(ar,2),Cr=xr[0],Yn=xr[1];Object(S.useEffect)(function(){Dt.visible&&ln.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var qt=sn.split(",").join("/"),On=qt.indexOf("/")===0?qt.substr(1):qt;Yn(On)}},[]),Object(S.useEffect)(function(){var sn,qt;Tn.current=(sn=Mt.pathname)===null||sn===void 0||((qt=sn.split("/"))===null||qt===void 0)?void 0:qt[2]},[]);var Or=function(){var sn=Object(c.a)(x.a.mark(function qt(){var On,Ir,Ar=arguments;return x.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return On=Ar.length>0&&Ar[0]!==void 0?Ar[0]:{},pr.next=3,ft({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:On.commitMessage,content:"",path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),secret_repository:bt?void 0:!0}});case 3:Ir=pr.sent,Ir!=null&&Ir.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),name:On.path.split("/")[On.path.split("/").length-1]}),Dt.onClose());case 5:case"end":return pr.stop()}},qt)}));return function(){return sn.apply(this,arguments)}}(),cr=function(){var qt,On;N.d.push("/shixuns/".concat(Tn.current,"/").concat((qt=Mt.pathname)===null||qt===void 0||((On=qt.split("/"))===null||On===void 0)?void 0:On[3]).concat(Cr?"/master/shixun_show/".concat(Cr):""))};return v.a.createElement(m.a,{width:"60%",centered:!0,visible:Dt.visible,wrapClassName:Te.a.modal,onOk:function(){ln.submit()},onCancel:Dt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(de.a,{className:"mt10",form:ln,scrollToFirstError:!0,layout:"vertical",onFinish:Or,onChange:function(){var qt,On,Ir,Ar,yr=Object(n.a)({},ln.getFieldsValue()),pr=yr==null||((qt=yr.path)===null||qt===void 0)?void 0:qt.split(""),pe=yr==null||((On=yr.file)===null||On===void 0)?void 0:On.split("");pr!=null&&(Ir=pr.filter(function(X){return X=="/"}))!==null&&Ir!==void 0&&Ir.length&&(yr.path=yr.path.substring(0,yr.path.length-1)),pe!=null&&(Ar=pe.filter(function(X){return X=="/"}))!==null&&Ar!==void 0&&Ar.length&&(yr.file=yr.file.substring(0,yr.path.length-1)),ln.setFieldsValue(Object(n.a)({},yr)),on(yr)}},v.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:Te.a.filePath},Dt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),v.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},v.a.createElement(ee.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"})),v.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"}]},v.a.createElement(ee.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(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,ot=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:ot,user:Pe,loading:at.models.index}})(ce),ye=o("7ahc"),ue=function(Fe){var at=Fe.shixunsDetail,ot=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,ft=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),ct=Object(L.i)(),Lt=Object(S.useState)({}),Zt=Object(w.a)(Lt,2),An=Zt[0],on=Zt[1],Tn=Object(S.useRef)(),Ln=de.a.useForm(),Nn=Object(w.a)(Ln,1),ln=Nn[0],ar=Object(S.useState)(""),xr=Object(w.a)(ar,2),Cr=xr[0],Yn=xr[1];Object(S.useEffect)(function(){Dt.visible&&ln.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var qt=sn.split(",").join("/"),On=qt.indexOf("/")===0?qt.substr(1):qt;Yn(On)}},[]),Object(S.useEffect)(function(){var sn,qt;Tn.current=(sn=Mt.pathname)===null||sn===void 0||((qt=sn.split("/"))===null||qt===void 0)?void 0:qt[2]},[]);var Or=function(){var sn=Object(c.a)(x.a.mark(function qt(){var On,Ir,Ar=arguments;return x.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return On=Ar.length>0&&Ar[0]!==void 0?Ar[0]:{},pr.next=3,ft({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:On.commitMessage,content:On.codeMirror,path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path,secret_repository:bt?void 0:!0}});case 3:Ir=pr.sent,Ir!=null&&Ir.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path,name:On.path.split("/")[On.path.split("/").length-1]}),Dt.onClose());case 5:case"end":return pr.stop()}},qt)}));return function(){return sn.apply(this,arguments)}}(),cr=function(){var qt,On;N.d.push("/shixuns/".concat(Tn.current,"/").concat((qt=Mt.pathname)===null||qt===void 0||((On=qt.split("/"))===null||On===void 0)?void 0:On[3]).concat(Cr?"/master/shixun_show/".concat(Cr):""))};return v.a.createElement(m.a,{width:"60%",visible:Dt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){ln.submit()},onCancel:Dt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(de.a,{className:"mt10",form:ln,scrollToFirstError:!0,layout:"vertical",onFinish:Or,onChange:function(){var qt,On,Ir=Object(n.a)({},ln.getFieldsValue()),Ar=Ir==null||((qt=Ir.path)===null||qt===void 0)?void 0:qt.split("");(Ar==null||((On=Ar.filter(function(yr){return yr=="/"}))===null||On===void 0)?void 0:On.length)>1&&(Ir.path=Ir.path.substring(0,Ir.path.length-1)),ln.setFieldsValue(Object(n.a)({},Ir)),on(Ir)}},v.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:Te.a.filePath},Dt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),v.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"}]},v.a.createElement(ee.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"})),v.a.createElement("div",{className:"mt10 mb20"},v.a.createElement(de.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},v.a.createElement(ye.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(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,ot=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:ot,user:Pe,loading:at.models.index}})(ue),$=function(Fe){var at=Fe.shixunsDetail,ot=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,ft=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),ct=Object(L.i)(),Lt=Object(S.useState)({}),Zt=Object(w.a)(Lt,2),An=Zt[0],on=Zt[1],Tn=Object(S.useRef)(),Ln=de.a.useForm(),Nn=Object(w.a)(Ln,1),ln=Nn[0],ar=Object(S.useState)(""),xr=Object(w.a)(ar,2),Cr=xr[0],Yn=xr[1],Or=Object(S.useState)(""),cr=Object(w.a)(Or,2),sn=cr[0],qt=cr[1];Object(S.useEffect)(function(){Dt.visible&&ln.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var Ar=Dt.defaultPath.split("/");Ar.length===1?(Yn(""),qt(Dt.defaultPath)):(qt(Ar.pop()),Yn(Ar.join("/")+"/"))},[Dt.defaultPath]),Object(S.useEffect)(function(){var Ar,yr;Tn.current=(Ar=Mt.pathname)===null||Ar===void 0||((yr=Ar.split("/"))===null||yr===void 0)?void 0:yr[2]},[]);var On=function(){var Ar=Object(c.a)(x.a.mark(function yr(){var pr,pe,X=arguments;return x.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return pr=X.length>0&&X[0]!==void 0?X[0]:{},oe.next=3,ft({type:"shixunsDetail/moveGitFile",payload:{id:ct.id,from:Dt.defaultPath,to:Cr+pr.path,message:pr.commitMessage||"".concat(Dt.defaultPath," rename to ").concat(Cr).concat(pr.path," "),secret_repository:bt}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:pr.path,name:pr.path}),Dt.onClose());case 5:case"end":return oe.stop()}},yr)}));return function(){return Ar.apply(this,arguments)}}(),Ir=function(){var yr,pr;N.d.push("/shixuns/".concat(Tn.current,"/").concat((yr=Mt.pathname)===null||yr===void 0||((pr=yr.split("/"))===null||pr===void 0)?void 0:pr[3]).concat(Cr?"/master/shixun_show/".concat(Cr):""))};return v.a.createElement(m.a,{width:"40%",visible:Dt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){ln.submit()},onCancel:Dt.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(de.a,{className:"mt10",form:ln,scrollToFirstError:!0,layout:"vertical",onFinish:On,onChange:function(){var yr,pr,pe=Object(n.a)({},ln.getFieldsValue()),X=pe==null||((yr=pe.path)===null||yr===void 0)?void 0:yr.split("");(X==null||((pr=X.filter(function(q){return q=="/"}))===null||pr===void 0)?void 0:pr.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),ln.setFieldsValue(Object(n.a)({},pe)),on(pe)}},v.a.createElement(de.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,{flex:"1"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:sn}))))),v.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},v.a.createElement(ee.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Dt.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,ot=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:ot,user:Pe,loading:at.models.index}})($),re=o("DZo9"),ae=o("8z0m"),Oe=o("m3rI"),le=o("8j3D"),te=o("RC3E"),Q=o.n(te),J=ae.a.Dragger,ve=function(Fe){var at=Fe.shixunsDetail,ot=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,ft=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),ct=Object(L.i)(),Lt=Object(S.useState)({}),Zt=Object(w.a)(Lt,2),An=Zt[0],on=Zt[1],Tn=Object(S.useRef)(),Ln=de.a.useForm(),Nn=Object(w.a)(Ln,1),ln=Nn[0],ar=Object(S.useState)([]),xr=Object(w.a)(ar,2),Cr=xr[0],Yn=xr[1],Or=Object(S.useState)(),cr=Object(w.a)(Or,2),sn=cr[0],qt=cr[1],On;Object(S.useEffect)(function(){Dt.visible&&(ln.resetFields(),Yn([]))},[Dt.visible]),Object(S.useEffect)(function(){Tn.current=ct.id},[]),Object(S.useEffect)(function(){var X=sessionStorage.getItem("pathArray");if(X){var q=X.split(",").join("/"),oe=q.indexOf("/")===0?q.substr(1):q;qt(oe)}},[]);var Ir=function(q){if(On=q.file.name,q.file.status==="done"||q.file.status==="uploading"){var oe,De,fe;if(Yn(q.fileList),!q.file.response)return;if(((oe=q.file.response)===null||oe===void 0?void 0:oe.status)===0){d.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Yn(Cr.filter(function(st){return st.uid!==q.file.uid})),((De=q.file.response)===null||De===void 0?void 0:De.message)&&d.b.info((fe=q.file.response)===null||fe===void 0?void 0:fe.message)}},Ar=function(){var X=Object(c.a)(x.a.mark(function q(oe){var De;return x.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(oe.response){st.next=3;break}return d.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),st.abrupt("return");case 3:return st.next=5,ft({type:"shixunsDetail/deleteGitFile",payload:{id:ct.id,path:sn?"".concat(sn,"/").concat(oe.name):oe.name,message:ln.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(sn?"".concat(sn,"/").concat(oe.name):oe.name),secret_repository:bt?null:!0}});case 5:De=st.sent,De.status===0&&(Yn(Cr.filter(function(Qt){return Qt.uid!==oe.uid})),d.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return st.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),yr={height:300,multiple:!0,withCredentials:!0,data:function(){var X=Object(c.a)(x.a.mark(function oe(){return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.abrupt("return",new Promise(function(){var st=Object(c.a)(x.a.mark(function Qt(In,Vn){return x.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:setTimeout(Object(c.a)(x.a.mark(function cn(){var Br,ra;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,ln.getFieldsValue();case 2:Br=er.sent,ra=Object(n.a)(Object(n.a)({},{path:Dt.defaultPath?Dt.defaultPath:"",message:An.commitMessage||"\u4E0A\u4F20\u4E86".concat(On)}),bt?{}:{secret_repository:!0}),In(ra);case 5:case"end":return er.stop()}},cn)})),200);case 1:case"end":return bn.stop()}},Qt)}));return function(Qt,In){return st.apply(this,arguments)}}()));case 1:case"end":return fe.stop()}},oe)}));function q(){return X.apply(this,arguments)}return q}(),fileList:Cr,method:"post",action:"".concat(Oe.a.API_SERVER,"/api/shixuns/").concat(Tn.current,"/upload_git_file.json"),onChange:Ir,onRemove:Ar,beforeUpload:function(q){On=q.name}},pr=function(){var X=Object(c.a)(x.a.mark(function q(oe){return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,ln.validateFields();case 2:Dt.onClose(),Dt.onOK({path:Dt.defaultPath}),pe();case 5:case"end":return fe.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),pe=function(){var q,oe;N.d.push("/shixuns/".concat(Tn.current,"/").concat((q=Mt.pathname)===null||q===void 0||((oe=q.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(sn?"/master/shixun_show/".concat(sn):""))};return v.a.createElement(m.a,{visible:Dt.visible,onOk:pr,centered:!0,onCancel:Dt.onClose,width:"70%"},v.a.createElement("section",{className:Q.a.bg},v.a.createElement("div",{className:Q.a.wrap},v.a.createElement("div",{className:Q.a.title},"\u4E0A\u4F20\u6587\u4EF6"),v.a.createElement(de.a,{className:"mt10",form:ln,scrollToFirstError:!0,layout:"vertical",onFinish:pr,onValuesChange:function(){return on(Object(n.a)({},ln.getFieldsValue()))}},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),v.a.createElement(de.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},v.a.createElement(J,yr,v.a.createElement("div",null,v.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(Q.a.colorBlue)})),v.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",v.a.createElement("span",{className:"".concat(Q.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),v.a.createElement(le.a,{onFinish:function(q){return qt(q)}})))},_e=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,ot=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:ot,user:Pe,loading:at.models.index}})(ve),Ae=o("Bbdw"),Je=o.n(Ae),tt=o("HpfO"),ut=o.n(tt),ht=function(Fe){var at=Fe.shixunsDetail,ot=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.dispatch,ft=Fe.title,bt=Fe.pathList,Dt=bt===void 0?[]:bt,Mt=Fe.showInputPath,ct=Mt===void 0?!1:Mt,Lt=Fe.isMergeSelectFile,Zt=Lt===void 0?!1:Lt,An=Fe.onFinish,on=An===void 0?function(){}:An,Tn=de.a.useForm(),Ln=Object(w.a)(Tn,1),Nn=Ln[0],ln=Object(L.i)(),ar=Object(L.h)(),xr=Object(S.useRef)(),Cr=Object(S.useState)(""),Yn=Object(w.a)(Cr,2),Or=Yn[0],cr=Yn[1],sn=Object(S.useState)(""),qt=Object(w.a)(sn,2),On=qt[0],Ir=qt[1],Ar=Object(S.useState)([]),yr=Object(w.a)(Ar,2),pr=yr[0],pe=yr[1],X=Object(S.useState)([]),q=Object(w.a)(X,2),oe=q[0],De=q[1];Object(S.useEffect)(function(){var $t,bn;xr.current=(($t=ar.pathname)===null||$t===void 0||((bn=$t.split("/"))===null||bn===void 0)?void 0:bn[3])==="repository"},[]),Object(S.useEffect)(function(){if(at.actionTabs.key!=="Repository-SelectFilePath")return;var $t=Dt.join("/"),bn=[];Dt.map(function(cn,Br){Br===0?bn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(cn),path:$t}):bn.push({val:"/".concat(cn),path:$t})}),pe(bn),cr($t),Ir($t),fe($t)},[at.actionTabs.key]);var fe=function(){var $t=Object(c.a)(x.a.mark(function bn(cn){var Br;return x.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Qe({type:xr.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:ln.id,path:cn}});case 2:Br=oa.sent,Br&&De(Br.trees||[]);case 4:case"end":return oa.stop()}},bn)}));return function(cn){return $t.apply(this,arguments)}}(),st=function(bn){var cn=Or;bn.type==="tree"&&(pr.length?pr.push({val:"/".concat(bn.name),path:bn.name}):pr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(bn.name),path:bn.name}),pe(pr),cn=Or?"".concat(Or,"/").concat(bn.name):bn.name,cr(cn)),fe(cn)},Qt=function(bn,cn){var Br=pr.filter(function(oa,er){return er<=cn});pe(Br);var ra=Br.filter(function(oa,er){return er!==0}).map(function(oa){return oa.val}).join("").substr(1);cr(ra),fe(ra)},In=function(){var $t=Object(c.a)(x.a.mark(function bn(){var cn,Br,ra;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(cn=Nn==null?void 0:Nn.getFieldsValue(),Br=Or?"".concat(Or).concat(cn!=null&&cn.name?"/".concat(cn==null?void 0:cn.name):""):cn==null?void 0:cn.name,!Zt){er.next=6;break}return on(Br),Vn(),er.abrupt("return");case 6:if(!ct){er.next=16;break}return er.next=9,Nn.validateFields();case 9:return er.next=11,Qe({type:"shixunsDetail/uploadGitFolder",payload:Object(n.a)(Object(n.a)({},{id:ln.id,path:Br}),xr.current?{}:{secret_repository:!0})});case 11:ra=er.sent,on(On),ra.status===0&&d.b.info("\u65B0\u5EFA\u6210\u529F"),er.next=18;break;case 16:on(Br),d.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Vn();case 19:case"end":return er.stop()}},bn)}));return function(){return $t.apply(this,arguments)}}(),Vn=function(){Qe({type:"shixunsDetail/setActionTabs",payload:{}}),Nn.resetFields()};return v.a.createElement(m.a,{centered:!0,title:ft||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:at.actionTabs.key==="Repository-SelectFilePath",onOk:In,onCancel:Vn},v.a.createElement("div",{className:ut.a.wrap},v.a.createElement("div",{className:ut.a.content},v.a.createElement("div",{className:ut.a.mainPathWrap},!!(pr!=null&&pr.length)&&pr.map(function($t,bn){return v.a.createElement("a",{key:bn,onClick:function(){return Qt($t,bn)}},$t.val)})),!!(oe!=null&&oe.length)&&oe.map(function($t,bn){return $t.type==="tree"&&v.a.createElement("a",{key:bn,onClick:function(){return st($t)}},v.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(ut.a.colorBlue)}),$t.name)})),v.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),v.a.createElement("div",{className:"mt5 mb5"},Or),ct&&v.a.createElement(de.a,{form:Nn,scrollToFirstError:!0,className:"mt20"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},vt=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,ot=Ot.globalSetting;return{shixunsDetail:Fe,globalSetting:ot,loading:at.models.index}})(ht),_t=o("GZ0F"),Ve=o("8Skl"),Ue=o("HBuW"),pt=o("1vsH"),Ut=o("NLgs"),Et=o("lzim"),jt=F.a.DirectoryTree,Ze=function(Fe){var at,ot,Pe,Qe,ft,bt,Dt,Mt=Fe.shixunsDetail,ct=Fe.globalSetting,Lt=Fe.loading,Zt=Fe.user,An=Fe.activeKey,on=Fe.dispatch,Tn=Fe.practiceSetting,Ln=Fe.isRepository,Nn=Fe.treeData,ln=Fe.setTreeData,ar=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),xr=Object(L.i)(),Cr=Object(L.h)(),Yn=Object(S.useState)(),Or=Object(w.a)(Yn,2),cr=Or[0],sn=Or[1],qt=Object(S.useState)(!1),On=Object(w.a)(qt,2),Ir=On[0],Ar=On[1],yr=Object(S.useState)(!1),pr=Object(w.a)(yr,2),pe=pr[0],X=pr[1],q=Object(S.useState)(!1),oe=Object(w.a)(q,2),De=oe[0],fe=oe[1],st=Object(S.useState)(!1),Qt=Object(w.a)(st,2),In=Qt[0],Vn=Qt[1],$t=Object(S.useState)(""),bn=Object(w.a)($t,2),cn=bn[0],Br=bn[1],ra=Object(S.useState)([]),oa=Object(w.a)(ra,2),er=oa[0],Ba=oa[1],Ea=Object(S.useState)([]),ca=Object(w.a)(Ea,2),Ka=ca[0],Ta=ca[1],Ja=Object(S.useState)([]),Ua=Object(w.a)(Ja,2),li=Ua[0],oi=Ua[1],fa=Object(S.useState)(!1),ma=Object(w.a)(fa,2),la=ma[0],xe=ma[1],lt=Object(S.useState)(),Rt=Object(w.a)(lt,2),wt=Rt[0],Wt=Rt[1],It=Object(S.useState)(),Vt=Object(w.a)(It,2),rn=Vt[0],yn=Vt[1],gn=Object(S.useState)(""),jn=Object(w.a)(gn,2),Dn=jn[0],an=jn[1],Mn=Object(S.useState)(),_n=Object(w.a)(Mn,2),Bn=_n[0],Pn=_n[1],Jn=Object(S.useState)(!1),fr=Object(w.a)(Jn,2),Fr=fr[0],Cn=fr[1];Object(S.useEffect)(function(){ln([]),Fn(""),localStorage.warehouseHideTip||xe(!0)},[Cr.pathname,Ln]);var Xt=function(){var nr=Object(c.a)(x.a.mark(function Kt(){var en,Yt,Xn=arguments;return x.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:return en=Xn.length>0&&Xn[0]!==void 0?Xn[0]:"",Un.next=3,Object(Ue.Gb)({id:xr.id,secret_dir_path:en});case 3:Yt=Un.sent,Yt&&Pn(en);case 5:case"end":return Un.stop()}},Kt)}));return function(){return nr.apply(this,arguments)}}(),hn=function(Kt){var en;return v.a.createElement(r.a,{className:Je.a.menu,onClick:function(Xn){Br(Kt.path||"");switch(Xn.key){case"1":Object(pt.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Ar(!0);break;case"2":Object(pt.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),fe(!0);break;case"3":Object(pt.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Vn(!0);break;case"4":Object(pt.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),X(!0);break;case"5":Object(pt.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Rr(Kt.path,Kt.name,Kt);break;case"6":Object(pt.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Lr(Kt);break}}},(Kt.type==="topTree"||Kt.type==="tree")&&v.a.createElement(r.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Kt.type==="topTree"||Kt.type==="tree")&&v.a.createElement(r.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Kt.type==="topTree"||Kt.type==="tree")&&v.a.createElement(r.a.Item,{key:"3"},"\u4E0A\u4F20"),Kt.type!=="topTree"&&Kt.type!=="tree"&&(Mt==null||((en=Mt.detail)===null||en===void 0)?void 0:en.public)<2&&v.a.createElement(r.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Kt.type!=="topTree"&&v.a.createElement(I.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Ln?"":"secret/").concat(Kt==null?void 0:Kt.path),onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(r.a.Item,{key:"6"},v.a.createElement(v.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Kt.type!=="topTree"&&v.a.createElement(r.a.Item,{key:"5"},"\u5220\u9664"))},Rn=function(Kt,en){return Kt.map(function(Yt){return en==""?Yt.path=en+Yt.name:Yt.path=en+"/"+Yt.name,Yt.title=v.a.createElement(C.a,{className:"font14"},v.a.createElement(f.a,{flex:"1"},v.a.createElement(C.a,null,v.a.createElement(f.a,{flex:"20px"},Yt.type==="blob"&&v.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),v.a.createElement(f.a,{flex:"1"},v.a.createElement("span",{className:" multi_ellipsis1"},Yt.name)))),v.a.createElement(f.a,null,(Yt.type==="blob"||Yt.type==="tree")&&v.a.createElement(u.a,{overlay:hn(Yt),className:Je.a.ellipsis},v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Yt.disableCheckbox=cr&&cr!==Yt.name,Yt.className=Yt.type==="tree"?Je.a.pl23:"",Yt.checkable=Yt.type!=="tree",Yt.isLeaf=Yt.type!=="tree",Yt.children=Yt.type==="tree"&&[],Yt.key=Yt.path,Yt})},tn=function(Kt){on({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Kt}})},Sn=function(){var nr=Object(c.a)(x.a.mark(function Kt(en,Yt){var Xn;return x.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:return Xn=en.split("/"),Un.next=3,Fn(cn);case 3:setTimeout(function(){tn(en),er=[Xn[0]||""],Ka=[en],Ta(Object(D.a)(Ka)),Ba(Object(D.a)(er))},150);case 4:case"end":return Un.stop()}},Kt)}));return function(en,Yt){return nr.apply(this,arguments)}}(),vn=function(Kt,en){if(en=="")Nn=Object(D.a)(Kt),ln(Object(D.a)(Kt));else{var Yt=kn(Nn,en,Kt);Nn=Yt,ln(Object(D.a)(Yt))}};function kn(nr,Kt,en){return nr.map(function(Yt){return Yt.key===Kt?(Yt.children=Object(D.a)(en),Object(n.a)({},Yt)):Yt.children?Object(n.a)(Object(n.a)({},Yt),{},{children:kn(Yt.children,Kt,en)}):Yt})}var Fn=function(){var nr=Object(c.a)(x.a.mark(function Kt(){var en,Yt,Xn,$n,Un,rr=arguments;return x.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return en=rr.length>0&&rr[0]!==void 0?rr[0]:"",or.next=3,on({type:Ln?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:xr.id,path:en}});case 3:return Yt=or.sent,Yt&&((Xn=Yt.trees)!==null&&Xn!==void 0&&Xn.length?(Un=Rn(Object(D.a)(Yt.trees),en),vn(Un,en),oi(Yt.trees||[]),yn(en||""),console.log("handleGetRepository:",Un,en),setTimeout(function(){return console.log(Nn,Yt.trees,en,999999)},2e3)):en==""&&ln([]),Wt((($n=Yt.commits)===null||$n===void 0?void 0:$n[0])||{})),or.abrupt("return",Yt);case 6:case"end":return or.stop()}},Kt)}));return function(){return nr.apply(this,arguments)}}(),ir=function(){var nr=Object(c.a)(x.a.mark(function Kt(en){return x.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.abrupt("return",new Promise(function(){var $n=Object(c.a)(x.a.mark(function Un(rr,ur){return x.a.wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:return en.children.length&&rr(),an(en.path),qr.next=4,Fn(en.path);case 4:rr();case 5:case"end":return qr.stop()}},Un)}));return function(Un,rr){return $n.apply(this,arguments)}}()));case 1:case"end":return Xn.stop()}},Kt)}));return function(en){return nr.apply(this,arguments)}}(),qn=function(){var nr=Object(c.a)(x.a.mark(function Kt(en,Yt){var Xn,$n;return x.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(console.log("handleSelectTree",en,Yt.nativeEvent.target.nodeName,Yt),Xn=function(){tn(Yt.node.path),en=[Yt.node.path],Ta(Object(D.a)(en))},!(Yt.nativeEvent.target.nodeName==="svg"||Yt.nativeEvent.target.nodeName==="LI"||Yt.nativeEvent.target.nodeName==="I")){rr.next=4;break}return rr.abrupt("return");case 4:Yt.node.type==="blob"&&(Tn!=null&&($n=Tn.sideBar)!==null&&$n!==void 0&&$n.confirmLeave?m.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(),on({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Xn());case 5:case"end":return rr.stop()}},Kt)}));return function(en,Yt){return nr.apply(this,arguments)}}(),Rr=function(Kt,en,Yt){m.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Yt.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Xn=Object(c.a)(x.a.mark(function Un(){var rr,ur,or;return x.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,on({type:"shixunsDetail/deleteGitFile",payload:{id:xr.id,path:Kt,message:"\u5220\u9664".concat(Kt),secret_repository:Ln?null:!0}});case 2:if(rr=sr.sent,ur=Kt.split("/"),!((rr==null?void 0:rr.status)===0)){sr.next=20;break}return d.b.info("\u5220\u9664\u6210\u529F"),ur.splice(ur.length-1,1),sr.next=9,Fn(ur.length>1?ur.join("/"):"");case 9:if(or=sr.sent,!(or!=null&&or.trees)){sr.next=13;break}sr.next=16;break;case 13:return ur.splice(ur.length-1,1),sr.next=16,Fn(ur.length>1?ur.join("/"):"");case 16:return tn(""),sr.abrupt("return",!0);case 20:(rr==null?void 0:rr.status)===-3&&m.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:v.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(xr.id,"/edit/").concat(rr==null?void 0:rr.message,"/tab=2")}});case 21:case"end":return sr.stop()}},Un)}));function $n(){return Xn.apply(this,arguments)}return $n}()})},Lr=function(Kt){console.log(Kt,"item")},Qn=function(){var nr=Object(c.a)(x.a.mark(function Kt(en,Yt){return x.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:if(console.log("handleExpand",Yt),!(Yt.nativeEvent.target.nodeName==="svg"||Yt.nativeEvent.target.nodeName==="path"||Yt.nativeEvent.target.nodeName==="LI")){$n.next=5;break}return $n.abrupt("return",!0);case 5:return $n.next=7,ir(Yt.node);case 7:er.includes(Yt.node.path)?er.splice(er.indexOf(Yt.node.path),1):er.push(Yt.node.path);case 8:Ba(Object(D.a)(er));case 9:case"end":return $n.stop()}},Kt)}));return function(en,Yt){return nr.apply(this,arguments)}}(),Dr=function(){xe(!1),localStorage.warehouseHideTip=!0},mr=function(){var nr=Object(c.a)(x.a.mark(function Kt(en){var Yt,Xn,$n,Un,rr;return x.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:$n="",or.t0=Ln,or.next=or.t0===!0?4:or.t0===!1?9:11;break;case 4:return $n="\u5F00\u542F\u7248\u672C\u5E93",Un="\u5F00\u542F",rr="\u4E0D\u5F00\u542F",Xn=v.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"),or.abrupt("break",11);case 9:return Mt!=null&&(Yt=Mt.detail)!==null&&Yt!==void 0&&Yt.secret_repository?($n="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Un="\u786E\u5B9A",rr="\u53D6\u6D88",Xn=v.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")):($n="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Un="\u4E0D\u4F7F\u7528",rr="\u4F7F\u7528",Xn=v.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")),or.abrupt("break",11);case 11:if(!(!Ln&&Object(Ut.b)(on,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){or.next=13;break}return or.abrupt("return");case 13:m.a.confirm({title:$n,okText:Un,cancelText:rr,content:Xn,onOk:function(){var sr;Object(pt.eb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",$n]),!Ln&&!(Mt!=null&&(sr=Mt.detail)!==null&&sr!==void 0&&sr.secret_repository)||zr(en)},onCancel:function(){var sr;!Ln&&!(Mt!=null&&(sr=Mt.detail)!==null&&sr!==void 0&&sr.secret_repository)&&zr(en)}});case 14:case"end":return or.stop()}},Kt)}));return function(en){return nr.apply(this,arguments)}}(),zr=function(){var nr=Object(c.a)(x.a.mark(function Kt(en){return x.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(!Ln){Xn.next=6;break}return Xn.next=3,Object(Ue.r)(Object(n.a)({},xr));case 3:on({type:"practiceSetting/getCommonData",payload:Object(n.a)({},xr)}),Xn.next=8;break;case 6:return Xn.next=8,Object(Ue.t)(Object(n.a)(Object(n.a)({},xr),{},{is_secret_repository:en}));case 8:Fn(),on({type:"shixunsDetail/getShixunsDetail",payload:{id:xr.id}});case 10:case"end":return Xn.stop()}},Kt)}));return function(en){return nr.apply(this,arguments)}}(),Nr=function(Kt){console.log(Kt)},$r=function(){var nr=Object(c.a)(x.a.mark(function Kt(en){var Yt,Xn,$n,Un,rr,ur,or,qr,sr,da,Yr;return x.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(console.log(en),Yt=en.node.key,Xn=en.dragNode.key,$n=en.node.pos.split("-"),Un=en.dropPosition-Number($n[$n.length-1]),!(en.dragNode.type==="tree")){Sr.next=8;break}return d.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),Sr.abrupt("return");case 8:if(!(en.node.type!=="tree")){Sr.next=11;break}return d.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Sr.abrupt("return");case 11:return Sr.next=13,on({type:"shixunsDetail/moveGitFile",payload:{id:xr.id,from:en.dragNode.path,to:en.node.path+"/"+en.dragNode.name,message:"".concat(en.dragNode.path," move to ").concat(en.node.path+"/"+en.dragNode.name," ")}});case 13:if(rr=Sr.sent,!(rr.status===0)){Sr.next=26;break}return tn(""),Sr.next=18,Fn("");case 18:ur=0;case 19:if(!(ur<er.length)){Sr.next=26;break}if(!(er[ur]!="")){Sr.next=23;break}return Sr.next=23,Fn(er[ur]);case 23:ur++,Sr.next=19;break;case 26:return Sr.abrupt("return");case 32:case"end":return Sr.stop()}},Kt)}));return function(en){return nr.apply(this,arguments)}}();return v.a.createElement("section",{className:Je.a.bg},v.a.createElement("div",{className:Je.a.contentbg},v.a.createElement("div",{className:Je.a.wrap},v.a.createElement(C.a,{className:Je.a.gitCode},v.a.createElement(f.a,{flex:"1"},v.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),Ln?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",v.a.createElement(H.a,{className:Ln&&Mt!==null&&Mt!==void 0&&(at=Mt.detail)!==null&&at!==void 0&&at.init_repository?"hide":"ml10",checked:Ln?Mt==null||((Pe=Mt.detail)===null||Pe===void 0)?void 0:Pe.init_repository:Mt==null||((ot=Mt.detail)===null||ot===void 0)?void 0:ot.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:mr})),v.a.createElement(f.a,null,v.a.createElement(u.a,{overlay:hn({type:"topTree"}),className:"current"},v.a.createElement(l.a,{visible:la,title:v.a.createElement("div",{className:"font16"},v.a.createElement(_t.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",v.a.createElement("span",{onClick:function(){return Dr()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:Je.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},Ln&&(Mt==null||((Qe=Mt.detail)===null||Qe===void 0)?void 0:Qe.init_repository)&&v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!Ln&&(Mt==null||((ft=Mt.detail)===null||ft===void 0)?void 0:ft.secret_repository)&&v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!Nn.length&&!Ln&&v.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},v.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")),Nn.length?v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:Je.a.content},An==="1"&&v.a.createElement("div",{className:Je.a.tips},"\u63D0\u793A\uFF1A",v.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'),v.a.createElement(jt,{disabled:!!Lt.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:Nn,switcherIcon:v.a.createElement(Ve.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:Qn,expandedKeys:er,selectedKeys:Ka,onSelect:qn,draggable:!0,onDragEnter:Nr,onDrop:$r,allowDrop:function(Kt){var en=Kt.dropNode,Yt=Kt.dropPosition;return!1}}))):"",!Nn.length&&Ln&&(Mt==null||((bt=Mt.detail)===null||bt===void 0)?void 0:bt.init_repository)&&v.a.createElement(Be,null),!Nn.length&&!Ln&&(Mt==null||((Dt=Mt.detail)===null||Dt===void 0)?void 0:Dt.secret_repository)&&v.a.createElement(Be,null))),v.a.createElement(me,{visible:pe,defaultPath:cn,onClose:function(){return X(!1)},isRepository:!Ln,onOK:function(){var nr=Object(c.a)(x.a.mark(function Kt(en){var Yt;return x.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return Yt=cn.split("/"),Yt.pop(),$n.next=4,Fn(Yt.join("/"));case 4:tn("");case 5:case"end":return $n.stop()}},Kt)}));return function(Kt){return nr.apply(this,arguments)}}()}),v.a.createElement(se,{visible:Ir,defaultPath:cn,onClose:function(){return Ar(!1)},isRepository:Ln,onOK:function(Kt){Sn(Kt.path,Kt.name)}}),v.a.createElement(be,{visible:De,defaultPath:cn,onClose:function(){return fe(!1)},isRepository:Ln,onOK:function(Kt){Sn(Kt.path,Kt.name)}}),v.a.createElement(_e,{defaultPath:cn,visible:In,isRepository:Ln,onClose:function(){return Vn(!1)},onOK:function(){var nr=Object(c.a)(x.a.mark(function Kt(en){var Yt;return x.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return Yt=cn.split("/"),$n.next=3,Fn(cn);case 3:er=[Yt[0]||""],Ka=[cn],Ta(Object(D.a)(Ka)),Ba(Object(D.a)(er));case 7:case"end":return $n.stop()}},Kt)}));return function(Kt){return nr.apply(this,arguments)}}()}),v.a.createElement(vt,{pathList:cn==null?void 0:cn.split("/"),showInputPath:!0,isMergeSelectFile:Fr,onFinish:function(Kt){Fr?Xt(Kt):Fn(Kt),Cn(!1)}}))},Be=function(){return v.a.createElement("div",{className:"mt20 pb50 ".concat(Je.a.nodata)},v.a.createElement("div",{className:Je.a.headLeft},"\u63D0\u793A\uFF1A",v.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",v.a.createElement("br",null)),v.a.createElement("img",{width:"100%",src:Et.u}))},Ye=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,ot=Ot.globalSetting,Pe=Ot.practiceSetting,Qe=Ot.user;return{shixunsDetail:Fe,globalSetting:ot,user:Qe,practiceSetting:Pe,loading:at}})(Ze),Ce=o("/zsF"),Le=o("PArb"),He=o("yDYP"),je=o.n(He),Ke=function(Fe){var at=Fe.shixunsDetail,ot=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,ft=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.i)(),ct=Object(S.useState)([]),Lt=Object(w.a)(ct,2),Zt=Lt[0],An=Lt[1];Object(S.useEffect)(function(){on()},[bt]);var on=function(){var Tn=Object(c.a)(x.a.mark(function Ln(){var Nn;return x.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.next=2,ft({type:"shixunsDetail/getRepositoryCommit",payload:{id:Mt.id,secret_repository:bt?void 0:!0}});case 2:Nn=ar.sent,Nn&&An(Nn.commits||[]);case 4:case"end":return ar.stop()}},Ln)}));return function(){return Tn.apply(this,arguments)}}();return v.a.createElement(v.a.Fragment,null,Zt==""&&v.a.createElement("div",{className:je.a.empty},v.a.createElement("img",{src:Et.k,width:"258"}),v.a.createElement("br",null),v.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Zt!=""&&v.a.createElement("section",{className:je.a.bg},v.a.createElement("div",{className:je.a.wrap},v.a.createElement("div",{className:je.a.content},Zt==null?void 0:Zt.map(function(Tn){var Ln,Nn;return v.a.createElement("div",null,v.a.createElement(C.a,{align:"middle",className:"c-white font16"},v.a.createElement(f.a,null,Tn.title)),v.a.createElement(C.a,{align:"middle",className:"mt20 "},v.a.createElement(f.a,null,v.a.createElement("img",{className:je.a.imageUrl,src:Oe.a.IMG_SERVER+"/"+((Ln=Tn.author)===null||Ln===void 0?void 0:Ln.image_url)})),v.a.createElement(f.a,{className:je.a.blueLight},v.a.createElement("span",{className:"ml20"},(Nn=Tn.author)===null||Nn===void 0?void 0:Nn.username)),v.a.createElement(f.a,null,v.a.createElement("span",{className:"ml20 ".concat(je.a.blueLight)},"\u63D0\u4EA4\u4E8E"),v.a.createElement("span",{className:"ml20 ".concat(je.a.blueLight)},Tn.time))),v.a.createElement(Le.a,{className:je.a.divider}))})))))},it=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,ot=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:ot,user:Pe,loading:at.models.index}})(Ke),Ct=o("p5ED"),Ft=P.a.TabPane,Jt=function(Fe){var at,ot,Pe,Qe,ft,bt,Dt,Mt,ct,Lt,Zt,An,on,Tn,Ln,Nn,ln,ar,xr,Cr=Fe.globalSetting,Yn=Fe.loading,Or=Fe.dispatch,cr=Fe.practiceSetting,sn=Fe.shixunsDetail,qt=Object(E.a)(Fe,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),On=Object(S.useState)("1"),Ir=Object(w.a)(On,2),Ar=Ir[0],yr=Ir[1],pr=Object(S.useState)("1"),pe=Object(w.a)(pr,2),X=pe[0],q=pe[1],oe=Object(S.useState)(),De=Object(w.a)(oe,2),fe=De[0],st=De[1],Qt=Object(S.useRef)(),In=Object(S.useState)(!0),Vn=Object(w.a)(In,2),$t=Vn[0],bn=Vn[1],cn=Object(S.useState)(["2","1"]),Br=Object(w.a)(cn,2),ra=Br[0],oa=Br[1],er=Object(S.useState)([]),Ba=Object(w.a)(er,2),Ea=Ba[0],ca=Ba[1],Ka=Object(S.useRef)(),Ta=Object(L.i)(),Ja=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:v.a.createElement("span",null,v.a.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),v.a.createElement(l.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"},v.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(S.useEffect)(function(){try{var fa,ma,la,xe,lt;if(!!(sn!=null&&(fa=sn.fileContent)!==null&&fa!==void 0&&(ma=fa.content)!==null&&ma!==void 0&&(la=ma.content)!==null&&la!==void 0&&la.length)||(sn==null||((xe=sn.fileContent)===null||xe===void 0||((lt=xe.content)===null||lt===void 0))?void 0:lt.content)==""){var Rt;if((sn==null||((Rt=sn.fileContent)===null||Rt===void 0)?void 0:Rt.file_type)==="txt"){var wt,Wt,It,Vt;Qt.current=window.decodeURIComponent(escape(window.atob(sn==null||((wt=sn.fileContent)===null||wt===void 0||((Wt=wt.content)===null||Wt===void 0))?void 0:Wt.content))),fe=window.decodeURIComponent(escape(window.atob(sn==null||((It=sn.fileContent)===null||It===void 0||((Vt=It.content)===null||Vt===void 0))?void 0:Vt.content))),st(fe)}else{var rn,yn,gn,jn;Qt.current=sn==null||((rn=sn.fileContent)===null||rn===void 0||((yn=rn.content)===null||yn===void 0))?void 0:yn.content,fe=sn==null||((gn=sn.fileContent)===null||gn===void 0||((jn=gn.content)===null||jn===void 0))?void 0:jn.content,st(fe)}}}catch(Bn){var Dn,an,Mn,_n;Qt.current=window.atob(sn==null||((Dn=sn.fileContent)===null||Dn===void 0||((an=Dn.content)===null||an===void 0))?void 0:an.content),fe=window.atob(sn==null||((Mn=sn.fileContent)===null||Mn===void 0||((_n=Mn.content)===null||_n===void 0))?void 0:_n.content),st(fe),d.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}console.log("codeMirrorSourceValue1212:12",sn.fileContent.content)},[sn==null||((at=sn.fileContent)===null||at===void 0)?void 0:at.content]),Object(S.useEffect)(function(){var fa,ma=cr==null||((fa=cr.sideBar)===null||fa===void 0)?void 0:fa.selectPath.split("/");oa(ma)},[cr==null||((ot=cr.sideBar)===null||ot===void 0)?void 0:ot.selectPath]);var Ua=function(ma){st(ma);var la=-1;ma===Qt.current?la=0:la=1,la!==-1,Or({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!la}})};Object(S.useEffect)(function(){new Promise(function(){var fa=Object(c.a)(x.a.mark(function ma(la,xe){var lt,Rt,wt,Wt;return x.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!((cr==null||((lt=cr.sideBar)===null||lt===void 0)?void 0:lt.selectPath)!==""&&cr!==null&&cr!==void 0&&(Rt=cr.sideBar)!==null&&Rt!==void 0&&Rt.selectPath)){Vt.next=5;break}return Vt.next=3,Or({type:"shixunsDetail/getFileContent",payload:{id:Ta.id,path:cr==null||((wt=cr.sideBar)===null||wt===void 0)?void 0:wt.selectPath,secret_repository:$t?null:!0}});case 3:Wt=Vt.sent,Wt!=null&&Wt.content||(Wt==null?void 0:Wt.content)==""||Or({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return Vt.stop()}},ma)}));return function(ma,la){return fa.apply(this,arguments)}}())},[cr==null||((Pe=cr.sideBar)===null||Pe===void 0)?void 0:Pe.selectPath]);var li=v.a.createElement(r.a,{className:U.a.menu,onClick:function(ma){var la;!(sn!=null&&(la=sn.detail)!==null&&la!==void 0&&la.secret_repository)&&ma.key==="2"&&q("1"),yr(ma.key),ma.key==="1"?bn(!0):bn(!1)}},v.a.createElement(r.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),Ja.filter(function(fa){var ma,la;return!(sn!=null&&(ma=sn.detail)!==null&&ma!==void 0&&ma.init_repository)||sn!=null&&(la=sn.detail)!==null&&la!==void 0&&la.is_jupyter_lab?fa.id!=="2":fa}).map(function(fa,ma){return v.a.createElement(r.a.Item,{className:"leaveClick",key:fa.id},fa.name)})),oi=function(){var fa=Object(c.a)(x.a.mark(function ma(){var la,xe,lt;return x.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Or({type:"shixunsDetail/updateRepositoryFile",payload:{id:Ta.id,path:sn==null||((la=sn.fileContent)===null||la===void 0||((xe=la.params)===null||xe===void 0))?void 0:xe.path,content:fe,secret_repository:$t?null:!0}});case 2:lt=wt.sent,lt!=null&&lt.content&&(d.b.info("\u4FDD\u5B58\u6210\u529F"),Or({type:"practiceSetting/setSideBarTabs",payload:Object(n.a)(Object(n.a)({},cr.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return wt.stop()}},ma)}));return function(){return fa.apply(this,arguments)}}();return v.a.createElement("div",{className:U.a.warehouse},v.a.createElement("div",{className:U.a.header},v.a.createElement(C.a,{align:"middle",className:"w100 c-white",style:{height:60}},v.a.createElement(f.a,{flex:"1"},v.a.createElement(C.a,{align:"middle"},v.a.createElement(f.a,null,v.a.createElement(u.a,{overlay:li,className:U.a.menu},v.a.createElement("span",{className:"font16 c-white current ml20"},Ja.find(function(fa){return fa.id===Ar}).name," ",v.a.createElement("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})))),v.a.createElement(f.a,{flex:"81px"},v.a.createElement("div",{className:U.a.line})),v.a.createElement(f.a,null,v.a.createElement(P.a,{className:U.a.tabs,activeKey:X,onChange:function(ma){var la;cr!=null&&(la=cr.sideBar)!==null&&la!==void 0&&la.confirmLeave?m.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(){q(ma),Or({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(q(ma),Or({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},v.a.createElement(Ft,{tab:v.a.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),$t&&(sn==null||((Qe=sn.detail)===null||Qe===void 0)?void 0:Qe.init_repository)&&v.a.createElement(Ft,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!$t&&(sn==null||((ft=sn.detail)===null||ft===void 0)?void 0:ft.secret_repository)&&v.a.createElement(Ft,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),($t&&(sn==null||((bt=sn.repository)===null||bt===void 0)?void 0:bt.git_url)||!$t&&(sn==null||((Dt=sn.secretRepository)===null||Dt===void 0)?void 0:Dt.git_url))&&v.a.createElement(v.a.Fragment,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:U.a.title},"\u4ED3\u5E93\u5730\u5740:"),v.a.createElement("input",{value:$t?sn==null||((Mt=sn.repository)===null||Mt===void 0)?void 0:Mt.git_url:sn==null||((ct=sn.secretRepository)===null||ct===void 0)?void 0:ct.git_url}),v.a.createElement(I.CopyToClipboard,{text:$t?sn==null||((Lt=sn.repository)===null||Lt===void 0)?void 0:Lt.git_url:sn==null||((Zt=sn.secretRepository)===null||Zt===void 0)?void 0:Zt.git_url,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(l.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93"},v.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"}))))))),v.a.createElement("div",{className:U.a.content,style:{overflow:"auto"}},X==="1"&&v.a.createElement(v.a.Fragment,null,v.a.createElement("aside",{className:U.a.left},v.a.createElement(b.a,{spinning:!!Yn.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(U.a.loading," ").concat(U.a.bottom0)},v.a.createElement(Ye,{setTreeData:ca,treeData:Ea,activeKey:Ar,isRepository:$t}))),v.a.createElement("aside",{className:U.a.right,ref:Ka},(cr==null||((An=cr.sideBar)===null||An===void 0)?void 0:An.selectPath)!==""&&v.a.createElement(v.a.Fragment,null,v.a.createElement(b.a,{spinning:!!Yn.effects["shixunsDetail/getFileContent"],wrapperClassName:U.a.loading},v.a.createElement("div",{className:U.a.filePathWrp},v.a.createElement(C.a,{align:"middle",className:"w100"},v.a.createElement(f.a,null,v.a.createElement("span",{className:"iconfont icon-daimacangku2 c-white"})),v.a.createElement(f.a,{flex:"40px"},v.a.createElement("div",{className:U.a.line,style:{marginLeft:20}})),v.a.createElement(f.a,{className:U.a.filePath},ra.map(function(fa,ma){return v.a.createElement("span",{className:"c-blue"},fa)})))),v.a.createElement("div",{className:Yn.effects["shixunsDetail/getFileContent"]?"hide":"show"},v.a.createElement(Ct.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:sn==null||((on=sn.fileContent)===null||on===void 0)?void 0:on.filename,type:(sn==null||((Tn=sn.fileContent)===null||Tn===void 0)?void 0:Tn.file_type)==="office"?"download":sn==null||((Ln=sn.fileContent)===null||Ln===void 0)?void 0:Ln.file_type,data:fe,monacoEditor:{value:fe,language:sn==null||((Nn=sn.fileContent)===null||Nn===void 0)?void 0:Nn.language,onChange:function(ma){return Ua(ma)},options:{fontSize:14}}}))),(sn==null||((ln=sn.fileContent)===null||ln===void 0)?void 0:ln.file_type)==="txt"&&v.a.createElement(C.a,{align:"middle",justify:"center",className:U.a.footer},v.a.createElement(f.a,null,v.a.createElement(g.a,{type:"primary",size:"large",ghost:!0,onClick:function(){N.d.push("/shixuns/".concat(Ta.id,"/challenges"))}},"\u53D6\u6D88"),v.a.createElement(g.a,{type:"primary",size:"large",className:"ml40",onClick:oi},"\u63D0\u4EA4")))),(cr==null||((ar=cr.sideBar)===null||ar===void 0)?void 0:ar.selectPath)==""&&(sn==null||((xr=sn.detail)===null||xr===void 0)?void 0:xr.init_repository)&&v.a.createElement("div",{className:U.a.empty},v.a.createElement("img",{src:Et.j,width:"258"}),v.a.createElement("br",null),v.a.createElement("span",{className:"c-grey-c"},!!(Ea!=null&&Ea.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(Ea!=null&&Ea.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),X==="2"&&v.a.createElement("div",{className:U.a.commit},v.a.createElement(it,{isRepository:$t}))))},Ht=z.default=Object(N.a)(function(Ot){var Fe=Ot.loading,at=Ot.globalSetting,ot=Ot.practiceSetting,Pe=Ot.shixunsDetail;return{globalSetting:at,loading:Fe,practiceSetting:ot,shixunsDetail:Pe}})(Jt)},csWT:function(k,z,o){k.exports=o.p+"static/choose.4ad1045f.svg"},cv67:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(g){var A=M,b=A.lib,y=b.WordArray,C=b.Hasher,O=A.algo,m=[];(function(){for(var i=0;i<64;i++)m[i]=g.abs(g.sin(i+1))*4294967296|0})();var e=O.MD5=C.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(i,r){for(var c=0;c<16;c++){var h=r+c,d=i[h];i[h]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}var s=this._hash.words,l=i[r+0],w=i[r+1],E=i[r+2],_=i[r+3],P=i[r+4],R=i[r+5],x=i[r+6],S=i[r+7],v=i[r+8],T=i[r+9],U=i[r+10],L=i[r+11],N=i[r+12],V=i[r+13],H=i[r+14],D=i[r+15],W=s[0],F=s[1],I=s[2],K=s[3];W=f(W,F,I,K,l,7,m[0]),K=f(K,W,F,I,w,12,m[1]),I=f(I,K,W,F,E,17,m[2]),F=f(F,I,K,W,_,22,m[3]),W=f(W,F,I,K,P,7,m[4]),K=f(K,W,F,I,R,12,m[5]),I=f(I,K,W,F,x,17,m[6]),F=f(F,I,K,W,S,22,m[7]),W=f(W,F,I,K,v,7,m[8]),K=f(K,W,F,I,T,12,m[9]),I=f(I,K,W,F,U,17,m[10]),F=f(F,I,K,W,L,22,m[11]),W=f(W,F,I,K,N,7,m[12]),K=f(K,W,F,I,V,12,m[13]),I=f(I,K,W,F,H,17,m[14]),F=f(F,I,K,W,D,22,m[15]),W=a(W,F,I,K,w,5,m[16]),K=a(K,W,F,I,x,9,m[17]),I=a(I,K,W,F,L,14,m[18]),F=a(F,I,K,W,l,20,m[19]),W=a(W,F,I,K,R,5,m[20]),K=a(K,W,F,I,U,9,m[21]),I=a(I,K,W,F,D,14,m[22]),F=a(F,I,K,W,P,20,m[23]),W=a(W,F,I,K,T,5,m[24]),K=a(K,W,F,I,H,9,m[25]),I=a(I,K,W,F,_,14,m[26]),F=a(F,I,K,W,v,20,m[27]),W=a(W,F,I,K,V,5,m[28]),K=a(K,W,F,I,E,9,m[29]),I=a(I,K,W,F,S,14,m[30]),F=a(F,I,K,W,N,20,m[31]),W=u(W,F,I,K,R,4,m[32]),K=u(K,W,F,I,v,11,m[33]),I=u(I,K,W,F,L,16,m[34]),F=u(F,I,K,W,H,23,m[35]),W=u(W,F,I,K,w,4,m[36]),K=u(K,W,F,I,P,11,m[37]),I=u(I,K,W,F,S,16,m[38]),F=u(F,I,K,W,U,23,m[39]),W=u(W,F,I,K,V,4,m[40]),K=u(K,W,F,I,l,11,m[41]),I=u(I,K,W,F,_,16,m[42]),F=u(F,I,K,W,x,23,m[43]),W=u(W,F,I,K,T,4,m[44]),K=u(K,W,F,I,N,11,m[45]),I=u(I,K,W,F,D,16,m[46]),F=u(F,I,K,W,E,23,m[47]),W=n(W,F,I,K,l,6,m[48]),K=n(K,W,F,I,S,10,m[49]),I=n(I,K,W,F,H,15,m[50]),F=n(F,I,K,W,R,21,m[51]),W=n(W,F,I,K,N,6,m[52]),K=n(K,W,F,I,_,10,m[53]),I=n(I,K,W,F,U,15,m[54]),F=n(F,I,K,W,w,21,m[55]),W=n(W,F,I,K,v,6,m[56]),K=n(K,W,F,I,D,10,m[57]),I=n(I,K,W,F,x,15,m[58]),F=n(F,I,K,W,V,21,m[59]),W=n(W,F,I,K,P,6,m[60]),K=n(K,W,F,I,L,10,m[61]),I=n(I,K,W,F,E,15,m[62]),F=n(F,I,K,W,T,21,m[63]),s[0]=s[0]+W|0,s[1]=s[1]+F|0,s[2]=s[2]+I|0,s[3]=s[3]+K|0},_doFinalize:function(){var i=this._data,r=i.words,c=this._nDataBytes*8,h=i.sigBytes*8;r[h>>>5]|=128<<24-h%32;var d=g.floor(c/4294967296),s=c;r[(h+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,r[(h+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,i.sigBytes=(r.length+1)*4,this._process();for(var l=this._hash,w=l.words,E=0;E<4;E++){var _=w[E];w[E]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return l},clone:function(){var i=C.clone.call(this);return i._hash=this._hash.clone(),i}});function f(i,r,c,h,d,s,l){var w=i+(r&c|~r&h)+d+l;return(w<<s|w>>>32-s)+r}function a(i,r,c,h,d,s,l){var w=i+(r&h|c&~h)+d+l;return(w<<s|w>>>32-s)+r}function u(i,r,c,h,d,s,l){var w=i+(r^c^h)+d+l;return(w<<s|w>>>32-s)+r}function n(i,r,c,h,d,s,l){var w=i+(c^(r|~h))+d+l;return(w<<s|w>>>32-s)+r}A.MD5=C._createHelper(e),A.HmacMD5=C._createHmacHelper(e)}(Math),M.MD5})},cz0n:function(k,z,o){k.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(k,z,o){k.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(k,z,o){},djh8:function(k,z,o){k.exports=o.p+"static/qrCode.d852fdfc.png"},dmUQ:function(k,z,o){"use strict";var M=o("Ff2n"),g=o("rePB"),A=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),C=o("md7G"),O=o("foSv"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),u=o("4IlW");function n(v,T){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(v);T&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,L)}return U}function i(v){for(var T=1;T<arguments.length;T++){var U=arguments[T]!=null?arguments[T]:{};T%2?n(Object(U),!0).forEach(function(L){Object(g.a)(v,L,U[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(U)):n(Object(U)).forEach(function(L){Object.defineProperty(v,L,Object.getOwnPropertyDescriptor(U,L))})}return v}function r(v){var T=c();return function(){var L=Object(O.a)(v),N;if(T){var V=Object(O.a)(this).constructor;N=Reflect.construct(L,arguments,V)}else N=L.apply(this,arguments);return Object(C.a)(this,N)}}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(v){return!1}}function h(){}function d(v){v.preventDefault()}var s=function(T){return T.replace(/[^\w.-]+/g,"")},l=200,w=600,E=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,_=function(T){return T!=null},P=function(T,U){return U===T||typeof U=="number"&&typeof T=="number"&&isNaN(U)&&isNaN(T)},R=function(v){Object(y.a)(U,v);var T=r(U);function U(L){var N;Object(A.a)(this,U),N=T.call(this,L),N.onKeyDown=function(D){var W=N.props,F=W.onKeyDown,I=W.onPressEnter;if(D.keyCode===u.a.UP){var K=N.getRatio(D);N.up(D,K,null),N.stop()}else if(D.keyCode===u.a.DOWN){var ee=N.getRatio(D);N.down(D,ee,null),N.stop()}else D.keyCode===u.a.ENTER&&I&&I(D);if(N.recordCursorPosition(),N.lastKeyCode=D.keyCode,F){for(var he=arguments.length,de=new Array(he>1?he-1:0),Se=1;Se<he;Se++)de[Se-1]=arguments[Se];F.apply(void 0,[D].concat(de))}},N.onKeyUp=function(D){var W=N.props.onKeyUp;if(N.stop(),N.recordCursorPosition(),W){for(var F=arguments.length,I=new Array(F>1?F-1:0),K=1;K<F;K++)I[K-1]=arguments[K];W.apply(void 0,[D].concat(I))}},N.onChange=function(D){var W=N.props.onChange;N.state.focused&&(N.inputting=!0),N.rawInput=N.props.parser(N.getValueFromEvent(D)),N.setState({inputValue:N.rawInput}),W(N.toNumber(N.rawInput))},N.onMouseUp=function(){var D=N.props.onMouseUp;N.recordCursorPosition(),D&&D.apply(void 0,arguments)},N.onFocus=function(){var D;N.setState({focused:!0}),(D=N.props).onFocus.apply(D,arguments)},N.onBlur=function(){var D=N.props.onBlur;N.inputting=!1,N.setState({focused:!1});var W=N.getCurrentValidValue(N.state.inputValue),F=N.setValue(W,h);if(D){var I=N.input.value,K=N.getInputDisplayValue({focus:!1,value:F});N.input.value=K&&Number(K),D.apply(void 0,arguments),N.input.value=I}},N.getRatio=function(D){var W=1;return D.metaKey||D.ctrlKey?W=.1:D.shiftKey&&(W=10),W},N.getFullNum=function(D){return isNaN(D)?D:/e/i.test(String(D))?Number(D).toFixed(18).replace(/\.?0+$/,""):D},N.getPrecision=function(D){if(_(N.props.precision))return N.props.precision;var W=String(D);if(W.indexOf("e-")>=0)return parseInt(W.slice(W.indexOf("e-")+2),10);var F=0;return W.indexOf(".")>=0&&(F=W.length-W.indexOf(".")-1),F},N.getInputDisplayValue=function(D){var W=D||N.state,F=W.focused,I=W.inputValue,K=W.value,ee;F?ee=I:ee=N.toPrecisionAsStep(K),ee==null&&(ee="");var he=N.formatWrapper(ee);return _(N.props.decimalSeparator)&&(he=he.toString().replace(".",N.props.decimalSeparator)),he},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(D){}},N.restoreByAfter=function(D){if(D===void 0)return!1;var W=N.input.value,F=W.lastIndexOf(D);if(F===-1)return!1;var I=N.cursorBefore.length;return N.lastKeyCode===u.a.DELETE&&N.cursorBefore.charAt(I-1)===D[0]?(N.fixCaret(I,I),!0):F+D.length===W.length?(N.fixCaret(F,F),!0):!1},N.partRestoreByAfter=function(D){return D===void 0?!1:Array.prototype.some.call(D,function(W,F){var I=D.substring(F);return N.restoreByAfter(I)})},N.isNotCompleteNumber=function(D){return isNaN(D)||D===""||D===null||D&&D.toString().indexOf(".")===D.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(D,W,F){N.pressingUpOrDown=!0,N.step("down",D,W,F)},N.up=function(D,W,F){N.pressingUpOrDown=!0,N.step("up",D,W,F)},N.saveInput=function(D){N.input=D};var V=L.value;V===void 0&&(V=L.defaultValue),N.state={focused:L.autoFocus};var H=N.getValidValue(N.toNumber(V));return N.state=i(i({},N.state),{},{inputValue:N.toPrecisionAsStep(H),value:H}),N}return Object(b.a)(U,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var V=this.props,H=V.value,D=V.onChange,W=V.max,F=V.min,I=this.state.focused;if(N){if(!P(N.value,H)||!P(N.max,W)||!P(N.min,F)){var K=I?H:this.getValidValue(H),ee;this.pressingUpOrDown?ee=K:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:ee})}var he="value"in this.props?H:this.state.value;"max"in this.props&&N.max!==W&&typeof he=="number"&&he>W&&D&&D(W),"min"in this.props&&N.min!==F&&typeof he=="number"&&he<F&&D&&D(F)}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===u.a.BACKSPACE?de=this.cursorStart-1:this.lastKeyCode===u.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 u.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case u.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Se){}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 _(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,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,D=parseFloat(N);return isNaN(D)?N:(D<V&&(D=V),D>H&&(D=H),D)}},{key:"setValue",value:function(N,V){var H=this.props.precision,D=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),W=this.state.value,F=W===void 0?null:W,I=this.state.inputValue,K=I===void 0?null:I,ee=typeof D=="number"?D.toFixed(H):"".concat(D),he=D!==F||ee!=="".concat(K);return"value"in this.props?(K=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:K},V)):this.setState({value:D,inputValue:this.toPrecisionAsStep(N)},V),he&&this.props.onChange(D),D}},{key:"getMaxPrecision",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.props,D=H.precision,W=H.step;if(_(D))return D;var F=this.getPrecision(V),I=this.getPrecision(W),K=this.getPrecision(N);return N?Math.max(K,F+I):F+I}},{key:"getPrecisionFactor",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.getMaxPrecision(N,V);return Math.pow(10,H)}},{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,H=this.state.focused,D=N&&N.length>16&&H;return this.isNotCompleteNumber(N)||D?N:_(V)?Math.round(N*Math.pow(10,V))/Math.pow(10,V):Number(N)}},{key:"upStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N+D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"downStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N-D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"step",value:function(N,V){var H=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3?arguments[3]:void 0;this.stop(),V&&(V.persist(),V.preventDefault());var F=this.props;if(F.disabled)return;var I=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(I))return;var K=this["".concat(N,"Step")](I,D),ee=K>F.max||K<F.min;if(K>F.max?K=F.max:K<F.min&&(K=F.min),this.setValue(K,null),this.setState({focused:!0},function(){H.pressingUpOrDown=!1}),ee)return;this.autoStepTimer=setTimeout(function(){H[N](V,D,!0)},W?l:w)}},{key:"fixCaret",value:function(N,V){if(N===void 0||V===void 0||!this.input||!this.input.value)return;try{var H=this.input.selectionStart,D=this.input.selectionEnd;(N!==H||V!==D)&&this.input.setSelectionRange(N,V)}catch(W){}}},{key:"render",value:function(){var N,V=this.props,H=V.prefixCls,D=V.disabled,W=V.readOnly,F=V.useTouch,I=V.autoComplete,K=V.upHandler,ee=V.downHandler,he=V.className,de=V.max,Se=V.min,Te=V.style,ce=V.title,be=V.onMouseEnter,ye=V.onMouseLeave,ue=V.onMouseOver,se=V.onMouseOut,$=V.required,me=V.onClick,re=V.tabIndex,ae=V.type,Oe=V.placeholder,le=V.id,te=V.inputMode,Q=V.pattern,J=V.step,ve=V.maxLength,_e=V.autoFocus,Ae=V.name,Je=V.onPaste,tt=V.onInput,ut=Object(M.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"]),ht=this.state,vt=ht.value,_t=ht.focused,Ve=a()(H,(N={},Object(g.a)(N,he,!!he),Object(g.a)(N,"".concat(H,"-disabled"),D),Object(g.a)(N,"".concat(H,"-focused"),_t),N)),Ue={};Object.keys(ut).forEach(function(je){(je.substr(0,5)==="data-"||je.substr(0,5)==="aria-"||je==="role")&&(Ue[je]=ut[je])});var pt=!W&&!D,Ut=this.getInputDisplayValue(null),Et=(vt||vt===0)&&(isNaN(vt)||Number(vt)>=de),jt=(vt||vt===0)&&(isNaN(vt)||Number(vt)<=Se),Ze=Et||D||W,Be=jt||D||W,Ye=a()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(g.a)({},"".concat(H,"-handler-up-disabled"),Ze)),Ce=a()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(g.a)({},"".concat(H,"-handler-down-disabled"),Be)),Le=F?{onTouchStart:Ze?h:this.up,onTouchEnd:this.stop}:{onMouseDown:Ze?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},He=F?{onTouchStart:Be?h:this.down,onTouchEnd:this.stop}:{onMouseDown:Be?h:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Ve,style:Te,title:ce,onMouseEnter:be,onMouseLeave:ye,onMouseOver:ue,onMouseOut:se,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(H,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},Le,{role:"button","aria-label":"Increase Value","aria-disabled":Ze,className:Ye}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},He,{role:"button","aria-label":"Decrease Value","aria-disabled":Be,className:Ce}),ee||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-down-inner"),onClick:d}))),e.a.createElement("div",{className:"".concat(H,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Se,"aria-valuemax":de,"aria-valuenow":vt,required:$,type:ae,placeholder:Oe,onPaste:Je,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:re,autoComplete:I,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:pt?this.onKeyDown:h,onKeyUp:pt?this.onKeyUp:h,autoFocus:_e,maxLength:ve,readOnly:W,disabled:D,max:de,min:Se,step:J,name:Ae,title:ce,id:le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Ut),pattern:Q,inputMode:te,onInput:tt},Ue))))}}]),U}(e.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:h,onKeyDown:h,onPressEnter:h,onFocus:h,onBlur:h,parser:s,required:!1,autoComplete:"off"};var x=R,S=z.a=x},e7zE:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.Base,y=A.WordArray,C=g.algo,O=C.SHA1,m=C.HMAC,e=C.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:O,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,a){for(var u=this.cfg,n=m.create(u.hasher,f),i=y.create(),r=y.create([1]),c=i.words,h=r.words,d=u.keySize,s=u.iterations;c.length<d;){var l=n.update(a).finalize(r);n.reset();for(var w=l.words,E=w.length,_=l,P=1;P<s;P++){_=n.finalize(_),n.reset();for(var R=_.words,x=0;x<E;x++)w[x]^=R[x]}i.concat(l),h[0]++}return i.sigBytes=d*4,i}});g.PBKDF2=function(f,a,u){return e.create(u).compute(f,a)}}(),M.PBKDF2})},"f0W+":function(k,z,o){k.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(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return l.a});var M=o("rePB"),g=o("VTBJ"),A=o("KQm4"),b=o("1OyB"),y=o("vuIU"),C=o("Ji7U"),O=o("LK+K"),m=o("q1tI"),e=o("4IlW"),f=o("Kwbf"),a=o("TSYQ"),u=o.n(a),n=o("sboe"),i=o("OZM5"),r=o("815F"),c=o("ODXe"),h=o("Ff2n"),d=o("+nKL"),s=o("8XRh"),l=o("WaYH"),w=function(Se,Te){var ce=Se.className,be=Se.style,ye=Se.motion,ue=Se.motionNodes,se=Se.motionType,$=Se.onMotionStart,me=Se.onMotionEnd,re=Se.active,ae=Se.treeNodeRequiredProps,Oe=Object(h.a)(Se,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),le=m.useState(!0),te=Object(c.a)(le,2),Q=te[0],J=te[1],ve=m.useContext(n.a),_e=ve.prefixCls,Ae=m.useRef(!1),Je=function(){Ae.current||me(),Ae.current=!0};return Object(m.useEffect)(function(){ue&&se==="hide"&&Q&&J(!1)},[ue]),Object(m.useEffect)(function(){return ue&&$(),function(){ue&&Je()}},[]),ue?m.createElement(s.default,Object.assign({ref:Te,visible:Q},ye,{motionAppear:se==="show",onAppearEnd:Je,onLeaveEnd:Je}),function(tt,ut){var ht=tt.className,vt=tt.style;return m.createElement("div",{ref:ut,className:u()("".concat(_e,"-treenode-motion"),ht),style:vt},ue.map(function(_t){var Ve=_t.data,Ue=Ve.key,pt=Object(h.a)(Ve,["key"]),Ut=_t.isStart,Et=_t.isEnd;delete pt.children;var jt=Object(r.f)(Ue,ae);return m.createElement(l.a,Object.assign({},pt,jt,{active:re,data:_t.data,key:Ue,isStart:Ut,isEnd:Et}))}))}):m.createElement(l.a,Object.assign({domRef:Te,className:ce,style:be},Oe,{active:re}))};w.displayName="MotionTreeNode";var E=m.forwardRef(w),_=E;function P(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Te=de.length,ce=Se.length;if(Math.abs(Te-ce)!==1)return{add:!1,key:null};function be(ye,ue){var se=new Map;ye.forEach(function(me){se.set(me,!0)});var $=ue.filter(function(me){return!se.has(me)});return $.length===1?$[0]:null}return Te<ce?{add:!0,key:be(de,Se)}:{add:!1,key:be(Se,de)}}function R(de,Se,Te){var ce=de.findIndex(function(se){var $=se.data;return $.key===Te}),be=de[ce+1],ye=Se.findIndex(function(se){var $=se.data;return $.key===Te});if(be){var ue=Se.findIndex(function(se){var $=se.data;return $.key===be.data.key});return Se.slice(ye+1,ue)}return Se.slice(ye+1)}var x={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},S=function(){},v="RC_TREE_MOTION_".concat(Math.random()),T={key:v},U={key:v,level:0,index:0,pos:"0",node:T},L={parent:null,children:[],pos:U.pos,data:T,isStart:[],isEnd:[]};function N(de,Se,Te,ce){return Se===!1||!Te?de:de.slice(0,Math.ceil(Te/ce)+1)}function V(de){var Se=de.data.key,Te=de.pos;return Object(r.e)(Se,Te)}function H(de){for(var Se=String(de.data.key),Te=de;Te.parent;)Te=Te.parent,Se="".concat(Te.data.key," > ").concat(Se);return Se}var D=function(Se,Te){var ce=Se.prefixCls,be=Se.data,ye=Se.selectable,ue=Se.checkable,se=Se.expandedKeys,$=Se.selectedKeys,me=Se.checkedKeys,re=Se.loadedKeys,ae=Se.loadingKeys,Oe=Se.halfCheckedKeys,le=Se.keyEntities,te=Se.disabled,Q=Se.dragging,J=Se.dragOverNodeKey,ve=Se.dropPosition,_e=Se.motion,Ae=Se.height,Je=Se.itemHeight,tt=Se.virtual,ut=Se.focusable,ht=Se.activeItem,vt=Se.focused,_t=Se.tabIndex,Ve=Se.onKeyDown,Ue=Se.onFocus,pt=Se.onBlur,Ut=Se.onActiveChange,Et=Se.onListChangeStart,jt=Se.onListChangeEnd,Ze=Object(h.a)(Se,["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"]),Be=m.useRef(null);m.useImperativeHandle(Te,function(){return{scrollTo:function(An){Be.current.scrollTo(An)}}});var Ye=m.useState(se),Ce=Object(c.a)(Ye,2),Le=Ce[0],He=Ce[1],je=m.useState(be),Ke=Object(c.a)(je,2),it=Ke[0],Ct=Ke[1],Ft=m.useState(be),Jt=Object(c.a)(Ft,2),Ht=Jt[0],Ot=Jt[1],Fe=m.useState([]),at=Object(c.a)(Fe,2),ot=at[0],Pe=at[1],Qe=m.useState(null),ft=Object(c.a)(Qe,2),bt=ft[0],Dt=ft[1];function Mt(){Ct(be),Ot(be),Pe([]),Dt(null),jt()}m.useEffect(function(){He(se);var Zt=P(Le,se);if(Zt.key!==null)if(Zt.add){var An=it.findIndex(function(ar){var xr=ar.data.key;return xr===Zt.key}),on=N(R(it,be,Zt.key),tt,Ae,Je),Tn=it.slice();Tn.splice(An+1,0,L),Ot(Tn),Pe(on),Dt("show")}else{var Ln=be.findIndex(function(ar){var xr=ar.data.key;return xr===Zt.key}),Nn=N(R(be,it,Zt.key),tt,Ae,Je),ln=be.slice();ln.splice(Ln+1,0,L),Ot(ln),Pe(Nn),Dt("hide")}else it!==be&&(Ct(be),Ot(be))},[se,be]),m.useEffect(function(){Q||Mt()},[Q]);var ct=_e?Ht:be,Lt={expandedKeys:se,selectedKeys:$,loadedKeys:re,loadingKeys:ae,checkedKeys:me,halfCheckedKeys:Oe,dragOverNodeKey:J,dropPosition:ve,keyEntities:le};return m.createElement(m.Fragment,null,vt&&ht&&m.createElement("span",{style:x,"aria-live":"assertive"},H(ht)),m.createElement("div",{role:"tree"},m.createElement("input",{style:x,disabled:ut===!1||te,tabIndex:ut!==!1?_t:null,onKeyDown:Ve,onFocus:Ue,onBlur:pt,value:"",onChange:S})),m.createElement(d.a,Object.assign({},Ze,{data:ct,itemKey:V,height:Ae,fullHeight:!1,virtual:tt,itemHeight:Je,prefixCls:"".concat(ce,"-list"),ref:Be}),function(Zt){var An=Zt.pos,on=Zt.data,Tn=on.key,Ln=Object(h.a)(on,["key"]),Nn=Zt.isStart,ln=Zt.isEnd,ar=Object(r.e)(Tn,An);delete Ln.children;var xr=Object(r.f)(ar,Lt);return m.createElement(_,Object.assign({},Ln,xr,{active:ht&&Tn===ht.data.key,pos:An,data:Zt.data,isStart:Nn,isEnd:ln,motion:_e,motionNodes:Tn===v?ot:null,motionType:bt,onMotionStart:Et,onMotionEnd:Mt,treeNodeRequiredProps:Lt,onMouseMove:function(){Ut(null)}}))}))},W=m.forwardRef(D);W.displayName="NodeList";var F=W,I=o("NvD2"),K=function(de){Object(C.a)(Te,de);var Se=Object(O.a)(Te);function Te(){var ce;return Object(b.a)(this,Te),ce=Se.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=m.createRef(),ce.onNodeDragStart=function(be,ye){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ce.props.onDragStart,re=ye.props.eventKey;ce.dragNode=ye;var ae=Object(i.b)(se,re);ce.setState({dragging:!0,dragNodesKeys:Object(i.g)(re,$)}),ce.setExpandedKeys(ae),me&&me({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragEnter=function(be,ye){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ae=ye.props,Oe=ae.pos,le=ae.eventKey;if(!ce.dragNode||me.indexOf(le)!==-1)return;var te=Object(i.c)(be,ye);if(ce.dragNode.props.eventKey===le&&te===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:le,dropPosition:te}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(Q){clearTimeout(ce.delayedDragEnterLogic[Q])}),ce.delayedDragEnterLogic[Oe]=window.setTimeout(function(){if(!ce.state.dragging)return;var Q=Object(A.a)(se),J=$[le];J&&(J.children||[]).length&&(Q=Object(i.a)(se,le)),"expandedKeys"in ce.props||ce.setExpandedKeys(Q),re&&re({event:be,node:Object(r.b)(ye.props),expandedKeys:Q})},400)},0)},ce.onNodeDragOver=function(be,ye){var ue=ce.state.dragNodesKeys,se=ce.props.onDragOver,$=ye.props.eventKey;if(ue.indexOf($)!==-1)return;if(ce.dragNode&&$===ce.state.dragOverNodeKey){var me=Object(i.c)(be,ye);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}se&&se({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragLeave=function(be,ye){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragEnd=function(be,ye){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:be,node:Object(r.b)(ye.props)}),ce.dragNode=null},ce.onNodeDrop=function(be,ye){var ue=ce.state,se=ue.dragNodesKeys,$=se===void 0?[]:se,me=ue.dropPosition,re=ce.props.onDrop,ae=ye.props,Oe=ae.eventKey,le=ae.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),$.indexOf(Oe)!==-1){Object(f.a)(!1,"Can not drop to dragNode(include it's children node)");return}var te=Object(i.k)(le),Q={event:be,node:Object(r.b)(ye.props),dragNode:ce.dragNode?Object(r.b)(ce.dragNode.props):null,dragNodesKeys:$.slice(),dropPosition:me+Number(te[te.length-1]),dropToGap:!1};me!==0&&(Q.dropToGap=!0),re&&re(Q),ce.dragNode=null},ce.cleanDragState=function(){var be=ce.state.dragging;be&&ce.setState({dragging:!1})},ce.onNodeClick=function(be,ye){var ue=ce.props.onClick;ue&&ue(be,ye)},ce.onNodeDoubleClick=function(be,ye){var ue=ce.props.onDoubleClick;ue&&ue(be,ye)},ce.onNodeSelect=function(be,ye){var ue=ce.state.selectedKeys,se=ce.state.keyEntities,$=ce.props,me=$.onSelect,re=$.multiple,ae=ye.selected,Oe=ye.key,le=!ae;le?re?ue=Object(i.a)(ue,Oe):ue=[Oe]:ue=Object(i.b)(ue,Oe);var te=ue.map(function(Q){var J=se[Q];return J?J.node:null}).filter(function(Q){return Q});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:le,node:ye,selectedNodes:te,nativeEvent:be.nativeEvent})},ce.onNodeCheck=function(be,ye,ue){var se=ce.state,$=se.keyEntities,me=se.checkedKeys,re=se.halfCheckedKeys,ae=ce.props,Oe=ae.checkStrictly,le=ae.onCheck,te=ye.key,Q,J={event:"check",node:ye,checked:ue,nativeEvent:be.nativeEvent};if(Oe){var ve=ue?Object(i.a)(me,te):Object(i.b)(me,te),_e=Object(i.b)(re,te);Q={checked:ve,halfChecked:_e},J.checkedNodes=ve.map(function(vt){return $[vt]}).filter(function(vt){return vt}).map(function(vt){return vt.node}),ce.setUncontrolledState({checkedKeys:ve})}else{var Ae=Object(I.a)([].concat(Object(A.a)(me),[te]),!0,$),Je=Ae.checkedKeys,tt=Ae.halfCheckedKeys;if(!ue){var ut=new Set(Je);ut.delete(te);var ht=Object(I.a)(Array.from(ut),{checked:!1,halfCheckedKeys:tt},$);Je=ht.checkedKeys,tt=ht.halfCheckedKeys}Q=Je,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=tt,Je.forEach(function(vt){var _t=$[vt];if(!_t)return;var Ve=_t.node,Ue=_t.pos;J.checkedNodes.push(Ve),J.checkedNodesPositions.push({node:Ve,pos:Ue})}),ce.setUncontrolledState({checkedKeys:Je},!1,{halfCheckedKeys:tt})}le&&le(Q,J)},ce.onNodeLoad=function(be){return new Promise(function(ye){ce.setState(function(ue){var se=ue.loadedKeys,$=se===void 0?[]:se,me=ue.loadingKeys,re=me===void 0?[]:me,ae=ce.props,Oe=ae.loadData,le=ae.onLoad,te=be.key;if(!Oe||$.indexOf(te)!==-1||re.indexOf(te)!==-1)return{};var Q=Oe(be);return Q.then(function(){var J=ce.state,ve=J.loadedKeys,_e=J.loadingKeys,Ae=Object(i.a)(ve,te),Je=Object(i.b)(_e,te);le&&le(Ae,{event:"load",node:be}),ce.setUncontrolledState({loadedKeys:Ae}),ce.setState({loadingKeys:Je}),ye()}),{loadingKeys:Object(i.a)(re,te)}})})},ce.onNodeMouseEnter=function(be,ye){var ue=ce.props.onMouseEnter;ue&&ue({event:be,node:ye})},ce.onNodeMouseLeave=function(be,ye){var ue=ce.props.onMouseLeave;ue&&ue({event:be,node:ye})},ce.onNodeContextMenu=function(be,ye){var ue=ce.props.onRightClick;ue&&(be.preventDefault(),ue({event:be,node:ye}))},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,ye=be.expandedKeys,ue=be.selectedKeys,se=be.loadedKeys,$=be.loadingKeys,me=be.checkedKeys,re=be.halfCheckedKeys,ae=be.dragOverNodeKey,Oe=be.dropPosition,le=be.keyEntities;return{expandedKeys:ye||[],selectedKeys:ue||[],loadedKeys:se||[],loadingKeys:$||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ae,dropPosition:Oe,keyEntities:le}},ce.setExpandedKeys=function(be){var ye=ce.state.treeData,ue=Object(r.d)(ye,be);ce.setUncontrolledState({expandedKeys:be,flattenNodes:ue},!0)},ce.onNodeExpand=function(be,ye){var ue=ce.state.expandedKeys,se=ce.state.listChanging,$=ce.props,me=$.onExpand,re=$.loadData,ae=ye.key,Oe=ye.expanded;if(se)return;var le=ue.indexOf(ae),te=!Oe;if(Object(f.a)(Oe&&le!==-1||!Oe&&le===-1,"Expand state not sync with index check"),te?ue=Object(i.a)(ue,ae):ue=Object(i.b)(ue,ae),ce.setExpandedKeys(ue),me&&me(ue,{node:ye,expanded:te,nativeEvent:be.nativeEvent}),te&&re){var Q=ce.onNodeLoad(ye);Q&&Q.then(function(){var J=Object(r.d)(ce.state.treeData,ue);ce.setUncontrolledState({flattenNodes:J})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(be){var ye=ce.state.activeKey,ue=ce.props.onActiveChange;if(ye===be)return;ce.setState({activeKey:be}),be!==null&&ce.scrollTo({key:be}),ue&&ue(be)},ce.getActiveItem=function(){var be=ce.state,ye=be.activeKey,ue=be.flattenNodes;return ye===null?null:ue.find(function(se){var $=se.data.key;return $===ye})||null},ce.offsetActiveKey=function(be){var ye=ce.state,ue=ye.flattenNodes,se=ye.activeKey,$=ue.findIndex(function(ae){var Oe=ae.data.key;return Oe===se});$===-1&&be<0&&($=ue.length),$=($+be+ue.length)%ue.length;var me=ue[$];if(me){var re=me.data.key;ce.onActiveChange(re)}else ce.onActiveChange(null)},ce.onKeyDown=function(be){var ye=ce.state,ue=ye.activeKey,se=ye.expandedKeys,$=ye.checkedKeys,me=ce.props,re=me.onKeyDown,ae=me.checkable,Oe=me.selectable;switch(be.which){case e.a.UP:{ce.offsetActiveKey(-1),be.preventDefault();break}case e.a.DOWN:{ce.offsetActiveKey(1),be.preventDefault();break}}var le=ce.getActiveItem();if(le&&le.data){var te=ce.getTreeNodeRequiredProps(),Q=le.data.isLeaf===!1||!!(le.data.children||[]).length,J=Object(r.b)(Object(g.a)(Object(g.a)({},Object(r.f)(ue,te)),{},{data:le.data,active:!0}));switch(be.which){case e.a.LEFT:{Q&&se.includes(ue)?ce.onNodeExpand({},J):le.parent&&ce.onActiveChange(le.parent.data.key),be.preventDefault();break}case e.a.RIGHT:{Q&&!se.includes(ue)?ce.onNodeExpand({},J):le.children&&le.children.length&&ce.onActiveChange(le.children[0].data.key),be.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ae&&!J.disabled&&J.checkable!==!1&&!J.disableCheckbox?ce.onNodeCheck({},J,!$.includes(ue)):!ae&&Oe&&!J.disabled&&J.selectable!==!1&&ce.onNodeSelect({},J);break}}}re&&re(be)},ce.setUncontrolledState=function(be){var ye=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,$=!0,me={};Object.keys(be).forEach(function(re){if(re in ce.props){$=!1;return}se=!0,me[re]=be[re]}),se&&(!ye||$)&&ce.setState(Object(g.a)(Object(g.a)({},me),ue))},ce.scrollTo=function(be){ce.listRef.current.scrollTo(be)},ce}return Object(y.a)(Te,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var be,ye=this.state,ue=ye.focused,se=ye.flattenNodes,$=ye.keyEntities,me=ye.dragging,re=ye.activeKey,ae=this.props,Oe=ae.prefixCls,le=ae.className,te=ae.style,Q=ae.showLine,J=ae.focusable,ve=ae.tabIndex,_e=ve===void 0?0:ve,Ae=ae.selectable,Je=ae.showIcon,tt=ae.icon,ut=ae.switcherIcon,ht=ae.draggable,vt=ae.checkable,_t=ae.checkStrictly,Ve=ae.disabled,Ue=ae.motion,pt=ae.loadData,Ut=ae.filterTreeNode,Et=ae.height,jt=ae.itemHeight,Ze=ae.virtual,Be=ae.titleRender,Ye=ae.onContextMenu,Ce=Object(i.f)(this.props);return m.createElement(n.a.Provider,{value:{prefixCls:Oe,selectable:Ae,showIcon:Je,icon:tt,switcherIcon:ut,draggable:ht,checkable:vt,checkStrictly:_t,disabled:Ve,keyEntities:$,loadData:pt,filterTreeNode:Ut,titleRender:Be,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}},m.createElement("div",{className:u()(Oe,le,(be={},Object(M.a)(be,"".concat(Oe,"-show-line"),Q),Object(M.a)(be,"".concat(Oe,"-focused"),ue),Object(M.a)(be,"".concat(Oe,"-active-focused"),re!==null),be))},m.createElement(F,Object.assign({ref:this.listRef,prefixCls:Oe,style:te,data:se,disabled:Ve,selectable:Ae,checkable:!!vt,motion:Ue,dragging:me,height:Et,itemHeight:jt,virtual:Ze,focusable:J,focused:ue,tabIndex:_e,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ye},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(be,ye){var ue=ye.prevProps,se={prevProps:be};function $(tt){return!ue&&tt in be||ue&&ue[tt]!==be[tt]}var me;if($("treeData")?me=be.treeData:$("children")&&(Object(f.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),me=Object(r.c)(be.children)),me){se.treeData=me;var re=Object(r.a)(me);se.keyEntities=Object(g.a)(Object(M.a)({},v,U),re.keyEntities)}var ae=se.keyEntities||ye.keyEntities;if($("expandedKeys")||ue&&$("autoExpandParent"))se.expandedKeys=be.autoExpandParent||!ue&&be.defaultExpandParent?Object(i.e)(be.expandedKeys,ae):be.expandedKeys;else if(!ue&&be.defaultExpandAll){var Oe=Object(g.a)({},ae);delete Oe[v],se.expandedKeys=Object.keys(Oe).map(function(tt){return Oe[tt].key})}else!ue&&be.defaultExpandedKeys&&(se.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(i.e)(be.defaultExpandedKeys,ae):be.defaultExpandedKeys);if(se.expandedKeys||delete se.expandedKeys,me||se.expandedKeys){var le=Object(r.d)(me||ye.treeData,se.expandedKeys||ye.expandedKeys);se.flattenNodes=le}if(be.selectable&&($("selectedKeys")?se.selectedKeys=Object(i.d)(be.selectedKeys,be):!ue&&be.defaultSelectedKeys&&(se.selectedKeys=Object(i.d)(be.defaultSelectedKeys,be))),be.checkable){var te;if($("checkedKeys")?te=Object(i.j)(be.checkedKeys)||{}:!ue&&be.defaultCheckedKeys?te=Object(i.j)(be.defaultCheckedKeys)||{}:me&&(te=Object(i.j)(be.checkedKeys)||{checkedKeys:ye.checkedKeys,halfCheckedKeys:ye.halfCheckedKeys}),te){var Q=te,J=Q.checkedKeys,ve=J===void 0?[]:J,_e=Q.halfCheckedKeys,Ae=_e===void 0?[]:_e;if(!be.checkStrictly){var Je=Object(I.a)(ve,!0,ae);ve=Je.checkedKeys,Ae=Je.halfCheckedKeys}se.checkedKeys=ve,se.halfCheckedKeys=Ae}}return $("loadedKeys")&&(se.loadedKeys=be.loadedKeys),se}}]),Te}(m.Component);K.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:[]},K.TreeNode=l.a;var ee=K,he=z.b=ee},fKo2:function(k,z,o){},fjLI:function(k,z,o){"use strict";o.d(z,"f",function(){return n}),o.d(z,"b",function(){return i}),o.d(z,"a",function(){return r}),o.d(z,"d",function(){return c}),o.d(z,"e",function(){return h}),o.d(z,"c",function(){return d});var M=o("8HAY"),g=o("Vhoy"),A=o("MI8n"),b=o("JYp7"),y=o("pmY6"),C=o("24hK"),O=o("nnTU"),m=o("T8No"),e=o("Cg/j"),f=o("t9D7"),a=function(s,l,w,E){var _=arguments.length,P=_<3?l:E===null?E=Object.getOwnPropertyDescriptor(l,w):E,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(s,l,w,E);else for(var x=s.length-1;x>=0;x--)(R=s[x])&&(P=(_<3?R(P):_>3?R(l,w,P):R(l,w))||P);return _>3&&P&&Object.defineProperty(l,w,P),P},u=function(s,l){return function(w,E){l(w,E,s)}};function n(s){return s.command!==void 0}class i{constructor(s){this.id=i._idPool++,this._debugName=s}}i._idPool=0,i.CommandPalette=new i("CommandPalette"),i.EditorContext=new i("EditorContext"),i.SimpleEditorContext=new i("SimpleEditorContext"),i.EditorContextCopy=new i("EditorContextCopy"),i.EditorContextPeek=new i("EditorContextPeek"),i.MenubarEditMenu=new i("MenubarEditMenu"),i.MenubarCopy=new i("MenubarCopy"),i.MenubarGoMenu=new i("MenubarGoMenu"),i.MenubarSelectionMenu=new i("MenubarSelectionMenu"),i.InlineCompletionsActions=new i("InlineCompletionsActions");const r=Object(e.c)("menuService"),c=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new A.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===i.CommandPalette}}addCommand(s){return this.addCommands(b.a.single(s))}addCommands(s){for(const l of s)this._commands.set(l.id,l);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let l=!1;for(const w of s)l=this._commands.delete(w.id)||l;l&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((l,w)=>s.set(w,l)),s}appendMenuItem(s,l){return this.appendMenuItems(b.a.single({id:s,item:l}))}appendMenuItems(s){const l=new Set,w=new C.a;for(const{id:E,item:_}of s){let P=this._menuItems.get(E);P||(P=new C.a,this._menuItems.set(E,P)),w.push(P.push(_)),l.add(E)}return this._onDidChangeMenu.fire(l),Object(y.i)(()=>{if(w.size>0){for(let E of w)E();this._onDidChangeMenu.fire(l),w.clear()}})}getMenuItems(s){let l;return this._menuItems.has(s)?l=[...this._menuItems.get(s)]:l=[],s===i.CommandPalette&&this._appendImplicitItems(l),l}_appendImplicitItems(s){const l=new Set;for(const w of s)n(w)&&(l.add(w.command.id),w.alt&&l.add(w.alt.id));this._commands.forEach((w,E)=>{l.has(E)||s.push({command:w})})}};class h extends M.e{constructor(s,l,w,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=l,this._contextKeyService=w,this._options=E}get actions(){const s=[],l=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=l.getActions(this._options);l.dispose();for(const[,E]of w)E.length>0&&(s.push(...E),s.push(new M.d));return s.length&&s.pop(),s}}let d=class s{constructor(l,w,E,_,P){var R,x;if(this._commandService=P,this.id=l.id,this.label=(E==null?void 0:E.renderShortTitle)&&l.shortTitle?typeof l.shortTitle=="string"?l.shortTitle:l.shortTitle.value:typeof l.title=="string"?l.title:l.title.value,this.tooltip=(x=typeof l.tooltip=="string"?l.tooltip:(R=l.tooltip)===null||R===void 0?void 0:R.value)!==null&&x!==void 0?x:"",this.enabled=!l.precondition||_.contextMatchesRules(l.precondition),this.checked=void 0,l.toggled){const S=l.toggled.condition?l.toggled:{condition:l.toggled};this.checked=_.contextMatchesRules(S.condition),this.checked&&S.tooltip&&(this.tooltip=typeof S.tooltip=="string"?S.tooltip:S.tooltip.value),S.title&&(this.label=typeof S.title=="string"?S.title:S.title.value)}this.item=l,this.alt=w?new s(w,void 0,E,_,P):void 0,this._options=E,f.d.isThemeIcon(l.icon)&&(this.class=g.a.asClassName(l.icon))}dispose(){}run(...l){var w,E;let _=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(_=[..._,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(_=[..._,...l]),this._commandService.executeCommand(this.id,..._)}};d=a([u(3,m.b),u(4,O.b)],d)},fyJ8:function(k,z,o){"use strict";var M=o("rePB"),g=o("VTBJ"),A=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),C=o.n(y),O=o("TSYQ"),m=o.n(O),e=o("c+Xe"),f=o("sR1s");function a(c){return c&&Object(b.a)(c)==="object"&&!Array.isArray(c)&&!y.isValidElement(c)}function u(c){return typeof c=="string"?!0:Object(e.c)(c)}function n(c,h){var d,s=c.prefixCls,l=c.className,w=c.record,E=c.index,_=c.dataIndex,P=c.render,R=c.children,x=c.component,S=x===void 0?"td":x,v=c.colSpan,T=c.rowSpan,U=c.fixLeft,L=c.fixRight,N=c.firstFixLeft,V=c.lastFixLeft,H=c.firstFixRight,D=c.lastFixRight,W=c.appendNode,F=c.additionalProps,I=F===void 0?{}:F,K=c.ellipsis,ee=c.align,he=c.rowType,de=c.isSticky,Se="".concat(s,"-cell"),Te,ce;if(R)ce=R;else{var be=Object(f.b)(w,_);if(ce=be,P){var ye=P(be,w,E);a(ye)?(ce=ye.children,Te=ye.props):ce=ye}}Object(b.a)(ce)==="object"&&!Array.isArray(ce)&&!y.isValidElement(ce)&&(ce=null),K&&(V||H)&&(ce=y.createElement("span",{className:"".concat(Se,"-content")},ce));var ue=Te||{},se=ue.colSpan,$=ue.rowSpan,me=ue.style,re=ue.className,ae=Object(A.a)(ue,["colSpan","rowSpan","style","className"]),Oe=se!==void 0?se:v,le=$!==void 0?$:T;if(Oe===0||le===0)return null;var te={},Q=typeof U=="number",J=typeof L=="number";Q&&(te.position="sticky",te.left=U),J&&(te.position="sticky",te.right=L);var ve={};ee&&(ve.textAlign=ee);var _e,Ae=K===!0?{showTitle:!0}:K;Ae&&(Ae.showTitle||he==="header")&&(typeof ce=="string"||typeof ce=="number"?_e=ce.toString():y.isValidElement(ce)&&typeof ce.props.children=="string"&&(_e=ce.props.children));var Je=Object(g.a)(Object(g.a)(Object(g.a)({title:_e},ae),I),{},{colSpan:Oe&&Oe!==1?Oe:null,rowSpan:le&&le!==1?le:null,className:m()(Se,l,(d={},Object(M.a)(d,"".concat(Se,"-fix-left"),Q),Object(M.a)(d,"".concat(Se,"-fix-left-first"),N),Object(M.a)(d,"".concat(Se,"-fix-left-last"),V),Object(M.a)(d,"".concat(Se,"-fix-right"),J),Object(M.a)(d,"".concat(Se,"-fix-right-first"),H),Object(M.a)(d,"".concat(Se,"-fix-right-last"),D),Object(M.a)(d,"".concat(Se,"-ellipsis"),K),Object(M.a)(d,"".concat(Se,"-with-append"),W),Object(M.a)(d,"".concat(Se,"-fix-sticky"),(Q||J)&&de),d),I.className,re),style:Object(g.a)(Object(g.a)(Object(g.a)(Object(g.a)({},I.style),ve),te),me),ref:u(S)?h:null});return y.createElement(S,Object.assign({},Je),W,ce)}var i=y.forwardRef(n);i.displayName="Cell";var r=y.memo(i,function(c,h){return h.shouldCellUpdate?!h.shouldCellUpdate(h.record,c.record):!1});z.a=r},"gb/T":function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.ECB=function(){var g=M.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(A,b){this._cipher.encryptBlock(A,b)}}),g.Decryptor=g.extend({processBlock:function(A,b){this._cipher.decryptBlock(A,b)}}),g}(),M.mode.ECB})},"h/E3":function(k,z,o){k.exports={information:"information___wfVJL",scroll:"scroll___2bOg0",formWrap:"formWrap___3qgTO",img:"img___2zP-8"}},h78n:function(k,z,o){"use strict";o.d(z,"a",function(){return N});var M=o("q1tI"),g=o.n(M),A=o("TSYQ"),b=o.n(A),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},C=function(D){var W=D.map(function(){return Object(M.useRef)()}),F=Object(M.useRef)();return Object(M.useEffect)(function(){var I=Date.now(),K=!1;Object.keys(W).forEach(function(ee){var he=W[ee].current;if(!he)return;K=!0;var de=he.style;de.transitionDuration=".3s, .3s, .3s, .06s",F.current&&I-F.current<100&&(de.transitionDuration="0s, 0s")}),K&&(F.current=Date.now())}),[W]};function O(){return O=Object.assign||function(H){for(var D=1;D<arguments.length;D++){var W=arguments[D];for(var F in W)Object.prototype.hasOwnProperty.call(W,F)&&(H[F]=W[F])}return H},O.apply(this,arguments)}function m(H,D){return n(H)||u(H,D)||f(H,D)||e()}function e(){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 f(H,D){if(!H)return;if(typeof H=="string")return a(H,D);var W=Object.prototype.toString.call(H).slice(8,-1);if(W==="Object"&&H.constructor&&(W=H.constructor.name),W==="Map"||W==="Set")return Array.from(H);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return a(H,D)}function a(H,D){(D==null||D>H.length)&&(D=H.length);for(var W=0,F=new Array(D);W<D;W++)F[W]=H[W];return F}function u(H,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(H)))return;var W=[],F=!0,I=!1,K=void 0;try{for(var ee=H[Symbol.iterator](),he;!(F=(he=ee.next()).done)&&!(W.push(he.value),D&&W.length===D);F=!0);}catch(de){I=!0,K=de}finally{try{!F&&ee.return!=null&&ee.return()}finally{if(I)throw K}}return W}function n(H){if(Array.isArray(H))return H}function i(H,D){if(H==null)return{};var W=r(H,D),F,I;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(I=0;I<K.length;I++){if(F=K[I],D.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,F))continue;W[F]=H[F]}}return W}function r(H,D){if(H==null)return{};var W={},F=Object.keys(H),I,K;for(K=0;K<F.length;K++){if(I=F[K],D.indexOf(I)>=0)continue;W[I]=H[I]}return W}var c=function(D){var W=D.className,F=D.percent,I=D.prefixCls,K=D.strokeColor,ee=D.strokeLinecap,he=D.strokeWidth,de=D.style,Se=D.trailColor,Te=D.trailWidth,ce=D.transition,be=i(D,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete be.gapPosition;var ye=Array.isArray(F)?F:[F],ue=Array.isArray(K)?K:[K],se=C(ye),$=m(se,1),me=$[0],re=he/2,ae=100-he/2,Oe="M ".concat(ee==="round"?re:0,",").concat(re,`
L `).concat(ee==="round"?ae:100,",").concat(re),le="0 0 100 ".concat(he),te=0;return g.a.createElement("svg",O({className:b()("".concat(I,"-line"),W),viewBox:le,preserveAspectRatio:"none",style:de},be),g.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Oe,strokeLinecap:ee,stroke:Se,strokeWidth:Te||he,fillOpacity:"0"}),ye.map(function(Q,J){var ve={strokeDasharray:"".concat(Q,"px, 100px"),strokeDashoffset:"-".concat(te,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_e=ue[J]||ue[ue.length-1];return te+=Q,g.a.createElement("path",{key:J,className:"".concat(I,"-line-path"),d:Oe,strokeLinecap:ee,stroke:_e,strokeWidth:he,fillOpacity:"0",ref:me[J],style:ve})}))};c.defaultProps=y;var h=c;function d(){return d=Object.assign||function(H){for(var D=1;D<arguments.length;D++){var W=arguments[D];for(var F in W)Object.prototype.hasOwnProperty.call(W,F)&&(H[F]=W[F])}return H},d.apply(this,arguments)}function s(H,D){return P(H)||_(H,D)||w(H,D)||l()}function l(){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(H,D){if(!H)return;if(typeof H=="string")return E(H,D);var W=Object.prototype.toString.call(H).slice(8,-1);if(W==="Object"&&H.constructor&&(W=H.constructor.name),W==="Map"||W==="Set")return Array.from(H);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return E(H,D)}function E(H,D){(D==null||D>H.length)&&(D=H.length);for(var W=0,F=new Array(D);W<D;W++)F[W]=H[W];return F}function _(H,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(H)))return;var W=[],F=!0,I=!1,K=void 0;try{for(var ee=H[Symbol.iterator](),he;!(F=(he=ee.next()).done)&&!(W.push(he.value),D&&W.length===D);F=!0);}catch(de){I=!0,K=de}finally{try{!F&&ee.return!=null&&ee.return()}finally{if(I)throw K}}return W}function P(H){if(Array.isArray(H))return H}function R(H,D){if(H==null)return{};var W=x(H,D),F,I;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(I=0;I<K.length;I++){if(F=K[I],D.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,F))continue;W[F]=H[F]}}return W}function x(H,D){if(H==null)return{};var W={},F=Object.keys(H),I,K;for(K=0;K<F.length;K++){if(I=F[K],D.indexOf(I)>=0)continue;W[I]=H[I]}return W}var S=0;function v(H){return+H.replace("%","")}function T(H){return Array.isArray(H)?H:[H]}function U(H,D,W,F){var I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,K=arguments.length>5?arguments[5]:void 0,ee=50-F/2,he=0,de=-ee,Se=0,Te=-2*ee;switch(K){case"left":he=-ee,de=0,Se=2*ee,Te=0;break;case"right":he=ee,de=0,Se=-2*ee,Te=0;break;case"bottom":de=ee,Te=2*ee;break;default:}var ce="M 50,50 m ".concat(he,",").concat(de,`
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(Se,",").concat(-Te,`
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(-Se,",").concat(Te),be=Math.PI*2*ee,ye={stroke:W,strokeDasharray:"".concat(D/100*(be-I),"px ").concat(be,"px"),strokeDashoffset:"-".concat(I/2+H/100*(be-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:ye}}var L=function(D){var W=D.prefixCls,F=D.strokeWidth,I=D.trailWidth,K=D.gapDegree,ee=D.gapPosition,he=D.trailColor,de=D.strokeLinecap,Se=D.style,Te=D.className,ce=D.strokeColor,be=D.percent,ye=R(D,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(M.useMemo)(function(){return S+=1,S},[]),se=U(0,100,he,F,K,ee),$=se.pathString,me=se.pathStyle,re=T(be),ae=T(ce),Oe=ae.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),le=C(re),te=s(le,1),Q=te[0],J=function(){var _e=0;return re.map(function(Ae,Je){var tt=ae[Je]||ae[ae.length-1],ut=Object.prototype.toString.call(tt)==="[object Object]"?"url(#".concat(W,"-gradient-").concat(ue,")"):"",ht=U(_e,Ae,tt,F,K,ee);return _e+=Ae,g.a.createElement("path",{key:Je,className:"".concat(W,"-circle-path"),d:ht.pathString,stroke:ut,strokeLinecap:de,strokeWidth:F,opacity:Ae===0?0:1,fillOpacity:"0",style:ht.pathStyle,ref:Q[Je]})})};return g.a.createElement("svg",d({className:b()("".concat(W,"-circle"),Te),viewBox:"0 0 100 100",style:Se},ye),Oe&&g.a.createElement("defs",null,g.a.createElement("linearGradient",{id:"".concat(W,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Oe).sort(function(ve,_e){return v(ve)-v(_e)}).map(function(ve,_e){return g.a.createElement("stop",{key:_e,offset:ve,stopColor:Oe[ve]})}))),g.a.createElement("path",{className:"".concat(W,"-circle-trail"),d:$,stroke:he,strokeLinecap:de,strokeWidth:I||F,fillOpacity:"0",style:me}),J().reverse())};L.defaultProps=y;var N=L,V={Line:h,Circle:N}},hW5Z:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return b}),o.d(z,"c",function(){return y}),o.d(z,"b",function(){return C});var M=o("VTBJ"),g=o("Ff2n"),A=o("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function y(O){var m=O.expandable,e=Object(g.a)(O,["expandable"]);return"expandable"in O?Object(M.a)(Object(M.a)({},e),m):e}function C(O){return Object.keys(O).reduce(function(m,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(m[e]=O[e]),m},{})}},"iL++":function(k,z,o){k.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"}},ic2d:function(k,z,o){"use strict";o.d(z,"a",function(){return b});var M=o("FWmy"),g=o("746U");class A{constructor(){this.data=new Map}add(y,C){M.a(g.l(y)),M.a(g.k(C)),M.a(!this.data.has(y),"There is already an extension with this id"),this.data.set(y,C)}as(y){return this.data.get(y)||null}}const b=new A},jO9C:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso97971={pad:function(g,A){g.concat(M.lib.WordArray.create([2147483648],1)),M.pad.ZeroPadding.pad(g,A)},unpad:function(g){M.pad.ZeroPadding.unpad(g),g.sigBytes--}},M.pad.Iso97971})},ji0R:function(k,z,o){k.exports=o.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(k,z,o){"use strict";var M=o("g9YV"),g=o("wCAj"),A=o("miYZ"),b=o("tsqr"),y=o("5Dmo"),C=o("3S7+"),O=o("sRBo"),m=o("kaz8"),e=o("oBTY"),f=o("9og8"),a=o("tJVT"),u=o("k1fw"),n=o("+L6B"),i=o("2/Rp"),r=o("O3gP"),c=o("lrIw"),h=o("5NDa"),d=o("5rEg"),s=o("y8nQ"),l=o("Vl3Y"),w=o("OaEy"),E=o("2fM7"),_=o("WmNS"),P=o.n(_),R=o("q1tI"),x=o.n(R),S=o("55Ip"),v=o("wd/R"),T=o.n(v),U=o("RotF"),L=o.n(U),N=o("E7E6"),V=o.n(N),H=o("oUNq"),D=o("Nf5h"),W=o("Fhpe"),F=o.n(W),I=[];function K(Se){var Te=Se.onSearch,ce=Se.schools;return x.a.createElement(l.a,{colon:!1,layout:"inline",onFinish:Te,initialValues:{keyword:"",school_name:"",search_type:"1"},className:"search-form"},x.a.createElement(l.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},x.a.createElement(E.a,{dropdownClassName:F.a.selectdown,style:{width:148}},x.a.createElement(E.a.Option,{value:"1"},"\u59D3\u540D"),x.a.createElement(E.a.Option,{value:"2"},"\u624B\u673A\u53F7"),x.a.createElement(E.a.Option,{value:"3"},"\u90AE\u7BB1"))),x.a.createElement(l.a.Item,{label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",style:{marginLeft:44},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},x.a.createElement(d.a,{allowClear:!0,style:{width:170},size:"large"})),x.a.createElement(l.a.Item,{label:"\u5355\u4F4D",name:"school_name",style:{marginLeft:10}},x.a.createElement(c.a,{options:ce,style:{width:383},size:"large",showSearch:!0,filterOption:function(ye,ue){return ue.value.toUpperCase().indexOf(ye.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),x.a.createElement(l.a.Item,null,x.a.createElement(i.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 ee;(function(Se){Se[Se.INITDATA=0]="INITDATA",Se[Se.INITSCHOOLS=1]="INITSCHOOLS",Se[Se.SHOWLOADING=2]="SHOWLOADING",Se[Se.SELECTEDIDS=3]="SELECTEDIDS",Se[Se.SETQUERY=4]="SETQUERY",Se[Se.SETPAGE=5]="SETPAGE"})(ee||(ee={}));function he(Se,Te){switch(Te.type){case ee.INITDATA:return Object(u.a)(Object(u.a)({},Se),Te.payload);case ee.SETQUERY:return Object(u.a)(Object(u.a)({},Se),Te.payload);case ee.SETPAGE:return Object(u.a)(Object(u.a)({},Se),{},{page:Te.payload,reload:!1});case ee.SHOWLOADING:return Object(u.a)(Object(u.a)({},Se),{},{loading:Te.payload});case ee.INITSCHOOLS:return Object(u.a)(Object(u.a)({},Se),{},{schools:Te.payload});case ee.SELECTEDIDS:return Object(u.a)(Object(u.a)({},Se),{},{selectedIds:Te.payload});default:throw new Error}}var de={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};z.a=function(Se){var Te=Se.onSelect,ce=Se.onCancel,be=Se.container_id,ye=Se.container_type,ue=Object(R.useReducer)(he,de),se=Object(a.a)(ue,2),$=se[0],me=se[1],re=$.data,ae=$.schools,Oe=$.loading,le=$.selectedIds,te=$.page,Q=$.count,J=$.query,ve=$.reload;Object(R.useEffect)(function(){function vt(){return _t.apply(this,arguments)}function _t(){return _t=Object(f.a)(P.a.mark(function Ve(){var Ue,pt,Ut;return P.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(H.Ab)(Object(u.a)(Object(u.a)({},J),{},{page:te,container_type:ye,container_id:be}));case 2:Ue=jt.sent,pt=Ue.users,Ut=Ue.user_count,me({type:ee.INITDATA,payload:{data:ve?pt:[].concat(Object(e.a)(re),Object(e.a)(pt)),count:Ut}});case 6:case"end":return jt.stop()}},Ve)})),_t.apply(this,arguments)}J&&vt()},[te,J,ve,be,ye]),Object(R.useEffect)(function(){function vt(){return _t.apply(this,arguments)}function _t(){return _t=Object(f.a)(P.a.mark(function Ve(){var Ue,pt;return P.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,Object(H.nb)({});case 2:Ue=Et.sent,pt=Ue.school_names,me({type:ee.INITSCHOOLS,payload:pt.map(function(jt){return{value:jt}})});case 5:case"end":return Et.stop()}},Ve)})),_t.apply(this,arguments)}vt()},[]);var _e=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(_t,Ve){return x.a.createElement(m.a,{value:Ve.numid,checked:le.includes(Ve.numid),disabled:!!_t})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(_t,Ve){return x.a.createElement("div",null,x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement(S.a,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(Ve.login),target:"_blank"},_t||"--")))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(_t){return x.a.createElement("span",{style:{color:"#000000"}},_t?"\u662F":"\u5426")}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t?T()(_t).format("YYYY-MM-DD HH:mm"):"- -"},x.a.createElement("span",{style:{color:"#000000"}},_t?T()(_t).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(_t){if(_t===1)return x.a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Ae(vt){me({type:ee.SETQUERY,payload:{page:1,reload:!0,query:vt}})}function Je(vt){me({type:ee.SETPAGE,payload:vt})}function tt(vt){var _t=le.indexOf(vt);_t>=0?le.splice(_t,1):le.push(vt),me({type:ee.SELECTEDIDS,payload:Object(e.a)(le)})}function ut(){le.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Te(le,be),me({type:ee.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var ht=Q>te*10;return x.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},x.a.createElement(K,{onSearch:Ae,schools:ae}),J?x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{className:"flexd-table-header mt20"},x.a.createElement(D.f,null,x.a.createElement(g.a,{pagination:!1,dataSource:I,columns:_e}))),x.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},x.a.createElement(L.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:Je,hasMore:ht,useWindow:!1},x.a.createElement(D.f,null,x.a.createElement(g.a,{loading:Oe,showHeader:!1,pagination:!1,dataSource:re,columns:_e,onRow:function(_t){return{onClick:function(Ue){_t.added!==1&&tt(_t.numid)}}}})))),x.a.createElement("div",{className:"flex-container flex-end"},x.a.createElement(i.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ce},"\u53D6\u6D88"),x.a.createElement(i.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:ut},"\u786E\u5B9A"))):x.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},x.a.createElement("img",{src:V.a,width:"100",alt:""}),x.a.createElement("br",null),x.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(k,z,o){"use strict";o.d(z,"a",function(){return Yr});var M=o("rePB"),g=o("ODXe"),A=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),C=o("TSYQ"),O=o.n(C),m=o("Zm9Q"),e=o("6cGi"),f=o("KQm4"),a=o("xEkU"),u=o.n(a),n=o("t23M");function i(qe){var dt=Object(y.useRef)(),yt=Object(y.useRef)(!1);function nt(){for(var Me=arguments.length,Xe=new Array(Me),Ie=0;Ie<Me;Ie++)Xe[Ie]=arguments[Ie];yt.current||(u.a.cancel(dt.current),dt.current=u()(function(){qe.apply(void 0,Xe)}))}return Object(y.useEffect)(function(){return function(){yt.current=!0,u.a.cancel(dt.current)}},[]),nt}function r(qe){var dt=Object(y.useRef)([]),yt=Object(y.useState)({}),nt=Object(g.a)(yt,2),Me=nt[1],Xe=Object(y.useRef)(typeof qe=="function"?qe():qe),Ie=i(function(){var $e=Xe.current;dt.current.forEach(function(mt){$e=mt($e)}),dt.current=[],Xe.current=$e,Me({})});function et($e){dt.current.push($e),Ie()}return[Xe.current,et]}var c=o("4IlW");function h(qe,dt){var yt,nt=qe.prefixCls,Me=qe.id,Xe=qe.active,Ie=qe.rtl,et=qe.tab,$e=et.key,mt=et.tab,rt=et.disabled,Pt=et.closeIcon,zt=qe.tabBarGutter,pn=qe.tabPosition,un=qe.closable,fn=qe.renderWrapper,dn=qe.removeAriaLabel,Kn=qe.editable,xn=qe.onClick,jr=qe.onRemove,Pr=qe.onFocus,Qr="".concat(nt,"-tab");y.useEffect(function(){return jr},[]);var Wr={};pn==="top"||pn==="bottom"?Wr[Ie?"marginLeft":"marginRight"]=zt:Wr.marginBottom=zt;var ta=Kn&&un!==!1&&!rt;function Gn(En){if(rt)return;xn(En)}function wr(En){En.preventDefault(),En.stopPropagation(),Kn.onEdit("remove",{key:$e,event:En})}var zn=y.createElement("div",{key:$e,ref:dt,className:O()(Qr,(yt={},Object(M.a)(yt,"".concat(Qr,"-with-remove"),ta),Object(M.a)(yt,"".concat(Qr,"-active"),Xe),Object(M.a)(yt,"".concat(Qr,"-disabled"),rt),yt)),style:Wr,onClick:Gn},y.createElement("div",{role:"tab","aria-selected":Xe,id:Me&&"".concat(Me,"-tab-").concat($e),className:"".concat(Qr,"-btn"),"aria-controls":Me&&"".concat(Me,"-panel-").concat($e),"aria-disabled":rt,tabIndex:rt?null:0,onClick:function(Wn){Wn.stopPropagation(),Gn(Wn)},onKeyDown:function(Wn){[c.a.SPACE,c.a.ENTER].includes(Wn.which)&&(Wn.preventDefault(),Gn(Wn))},onFocus:Pr},mt),ta&&y.createElement("button",{type:"button","aria-label":dn||"remove",tabIndex:0,className:"".concat(Qr,"-remove"),onClick:function(Wn){Wn.stopPropagation(),wr(Wn)}},Pt||Kn.removeIcon||"\xD7"));return fn&&(zn=fn(zn)),zn}var d=y.forwardRef(h),s={width:0,height:0,left:0,top:0};function l(qe,dt,yt){return Object(y.useMemo)(function(){for(var nt,Me=new Map,Xe=dt.get((nt=qe[0])===null||nt===void 0?void 0:nt.key)||s,Ie=Xe.left+Xe.width,et=0;et<qe.length;et+=1){var $e=qe[et].key,mt=dt.get($e);if(!mt){var rt;mt=dt.get((rt=qe[et-1])===null||rt===void 0?void 0:rt.key)||s}var Pt=Me.get($e)||Object(b.a)({},mt);Pt.right=Ie-Pt.left-Pt.width,Me.set($e,Pt)}return Me},[qe.map(function(nt){return nt.key}).join("_"),dt,yt])}var w={width:0,height:0,left:0,top:0,right:0};function E(qe,dt,yt,nt,Me){var Xe=Me.tabs,Ie=Me.tabPosition,et=Me.rtl,$e,mt,rt;["top","bottom"].includes(Ie)?($e="width",mt=et?"right":"left",rt=Math.abs(dt.left)):($e="height",mt="top",rt=-dt.top);var Pt=dt[$e],zt=yt[$e],pn=nt[$e],un=Pt;return zt+pn>Pt&&(un=Pt-pn),Object(y.useMemo)(function(){if(!Xe.length)return[0,0];for(var fn=Xe.length,dn=fn,Kn=0;Kn<fn;Kn+=1){var xn=qe.get(Xe[Kn].key)||w;if(xn[mt]+xn[$e]>rt+un){dn=Kn-1;break}}for(var jr=0,Pr=fn-1;Pr>=0;Pr-=1){var Qr=qe.get(Xe[Pr].key)||w;if(Qr[mt]<rt){jr=Pr+1;break}}return[jr,dn]},[qe,rt,un,Ie,Xe.map(function(fn){return fn.key}).join("_"),et])}var _=o("wx14"),P=o("1OyB"),R=o("vuIU"),x=o("JX7q"),S=o("Ji7U"),v=o("LK+K"),T=o("I8Z2"),U=o("bT9E"),L=o("2GS6"),N=o("Gytx"),V=o.n(N),H=o("U8pU"),D=/iPhone/i,W=/iPod/i,F=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,K=/Android/i,ee=/\bAndroid(?:.+)SD4930UR\b/i,he=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,de=/Windows Phone/i,Se=/\bWindows(?:.+)ARM\b/i,Te=/BlackBerry/i,ce=/BB10/i,be=/Opera Mini/i,ye=/\b(CriOS|Chrome)(?:.+)Mobile/i,ue=/Mobile(?:.+)Firefox\b/i;function se(qe,dt){return qe.test(dt)}function $(qe){var dt=qe||(typeof navigator!="undefined"?navigator.userAgent:""),yt=(dt||"").split("[FBAN");if(typeof yt[1]!="undefined"){var nt=yt,Me=Object(g.a)(nt,1);dt=Me[0]}if(yt=dt.split("Twitter"),typeof yt[1]!="undefined"){var Xe=yt,Ie=Object(g.a)(Xe,1);dt=Ie[0]}var et={apple:{phone:se(D,dt)&&!se(de,dt),ipod:se(W,dt),tablet:!se(D,dt)&&se(F,dt)&&!se(de,dt),device:(se(D,dt)||se(W,dt)||se(F,dt))&&!se(de,dt)},amazon:{phone:se(ee,dt),tablet:!se(ee,dt)&&se(he,dt),device:se(ee,dt)||se(he,dt)},android:{phone:!se(de,dt)&&se(ee,dt)||!se(de,dt)&&se(I,dt),tablet:!se(de,dt)&&!se(ee,dt)&&!se(I,dt)&&(se(he,dt)||se(K,dt)),device:!se(de,dt)&&(se(ee,dt)||se(he,dt)||se(I,dt)||se(K,dt))||se(/\bokhttp\b/i,dt)},windows:{phone:se(de,dt),tablet:se(Se,dt),device:se(de,dt)||se(Se,dt)},other:{blackberry:se(Te,dt),blackberry10:se(ce,dt),opera:se(be,dt),firefox:se(ue,dt),chrome:se(ye,dt),device:se(Te,dt)||se(ce,dt)||se(be,dt)||se(ue,dt)||se(ye,dt)},any:null,phone:null,tablet:null};return et.any=et.apple.device||et.android.device||et.windows.device||et.other.device,et.phone=et.apple.phone||et.android.phone||et.windows.phone,et.tablet=et.apple.tablet||et.android.tablet||et.windows.tablet,et}var me=Object(b.a)(Object(b.a)({},$()),{},{isMobile:$}),re=me;function ae(){}function Oe(qe,dt,yt){var nt=dt||"";return qe.key||"".concat(nt,"item_").concat(yt)}function le(qe){return"".concat(qe,"-menu-")}function te(qe,dt){var yt=-1;y.Children.forEach(qe,function(nt){yt+=1,nt&&nt.type&&nt.type.isMenuItemGroup?y.Children.forEach(nt.props.children,function(Me){yt+=1,dt(Me,yt)}):dt(nt,yt)})}function Q(qe,dt,yt){if(!qe||yt.find)return;y.Children.forEach(qe,function(nt){if(nt){var Me=nt.type;if(!Me||!(Me.isSubMenu||Me.isMenuItem||Me.isMenuItemGroup))return;dt.indexOf(nt.key)!==-1?yt.find=!0:nt.props.children&&Q(nt.props.children,dt,yt)}})}var J=["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"],ve=function(dt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=dt&&typeof dt.getBoundingClientRect=="function"&&dt.getBoundingClientRect().width;if(nt){if(yt){var Me=getComputedStyle(dt),Xe=Me.marginLeft,Ie=Me.marginRight;nt+=+Xe.replace("px","")+ +Ie.replace("px","")}nt=+nt.toFixed(6)}return nt||0},_e=function(dt,yt,nt){dt&&Object(H.a)(dt.style)==="object"&&(dt.style[yt]=nt)},Ae=function(){return re.any},Je=o("bdgK"),tt=o("i8i4"),ut=o.n(tt),ht=o("wgJM"),vt=o("l4aY"),_t=o("m+aA"),Ve=o("c+Xe"),Ue=o("zT1h"),pt=o("QC+M");function Ut(qe,dt,yt){return yt?qe[0]===dt[0]:qe[0]===dt[0]&&qe[1]===dt[1]}function Et(qe,dt,yt){var nt=qe[dt]||{};return Object(b.a)(Object(b.a)({},nt),yt)}function jt(qe,dt,yt,nt){for(var Me=yt.points,Xe=Object.keys(qe),Ie=0;Ie<Xe.length;Ie+=1){var et=Xe[Ie];if(Ut(qe[et].points,Me,nt))return"".concat(dt,"-placement-").concat(et)}return""}var Ze=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var qe=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(qe)||/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(qe==null?void 0:qe.substr(0,4)))},Be=o("MNnm");function Ye(qe,dt){var yt={};return yt[qe.toLowerCase()]=dt.toLowerCase(),yt["Webkit".concat(qe)]="webkit".concat(dt),yt["Moz".concat(qe)]="moz".concat(dt),yt["ms".concat(qe)]="MS".concat(dt),yt["O".concat(qe)]="o".concat(dt.toLowerCase()),yt}function Ce(qe,dt){var yt={animationend:Ye("Animation","AnimationEnd"),transitionend:Ye("Transition","TransitionEnd")};return qe&&("AnimationEvent"in dt||delete yt.animationend.animation,"TransitionEvent"in dt||delete yt.transitionend.transition),yt}var Le=Ce(Object(Be.a)(),typeof window!="undefined"?window:{}),He={};if(Object(Be.a)()){var je=document.createElement("div");He=je.style}var Ke={};function it(qe){if(Ke[qe])return Ke[qe];var dt=Le[qe];if(dt)for(var yt=Object.keys(dt),nt=yt.length,Me=0;Me<nt;Me+=1){var Xe=yt[Me];if(Object.prototype.hasOwnProperty.call(dt,Xe)&&Xe in He)return Ke[qe]=dt[Xe],Ke[qe]}return""}var Ct=it("animationend"),Ft=it("transitionend"),Jt=!!(Ct&&Ft),Ht=Ct||"animationend",Ot=Ft||"transitionend";function Fe(qe,dt){if(!qe)return null;if(Object(H.a)(qe)==="object"){var yt=dt.replace(/-\w/g,function(nt){return nt[1].toUpperCase()});return qe[yt]}return"".concat(qe,"-").concat(dt)}var at="none",ot="appear",Pe="enter",Qe="leave",ft="none",bt="prepare",Dt="start",Mt="active",ct="end";function Lt(qe){var dt=Object(y.useRef)(!1),yt=Object(y.useState)(qe),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1];function Ie(et){dt.current||Xe(et)}return Object(y.useEffect)(function(){return function(){dt.current=!0}},[]),[Me,Ie]}var Zt=Object(Be.a)()?y.useLayoutEffect:y.useEffect,An=Zt,on=function(){var qe=y.useRef(null);function dt(){ht.a.cancel(qe.current)}function yt(nt){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;dt();var Xe=Object(ht.a)(function(){Me<=1?nt({isCanceled:function(){return Xe!==qe.current}}):yt(nt,Me-1)});qe.current=Xe}return y.useEffect(function(){return function(){dt()}},[]),[yt,dt]},Tn=[bt,Dt,Mt,ct],Ln=!1,Nn=!0;function ln(qe){return qe===Mt||qe===ct}var ar=function(qe,dt){var yt=y.useState(ft),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=on(),et=Object(g.a)(Ie,2),$e=et[0],mt=et[1];function rt(){Xe(bt)}return An(function(){if(Me!==ft&&Me!==ct){var Pt=Tn.indexOf(Me),zt=Tn[Pt+1],pn=dt(Me);pn===Ln?Xe(zt):$e(function(un){function fn(){if(un.isCanceled())return;Xe(zt)}pn===!0?fn():Promise.resolve(pn).then(fn)})}},[qe,Me]),y.useEffect(function(){return function(){mt()}},[]),[rt,Me]},xr=function(qe){var dt=Object(y.useRef)(),yt=Object(y.useRef)(qe);yt.current=qe;var nt=y.useCallback(function(Ie){yt.current(Ie)},[]);function Me(Ie){Ie&&(Ie.removeEventListener(Ot,nt),Ie.removeEventListener(Ht,nt))}function Xe(Ie){dt.current&&dt.current!==Ie&&Me(dt.current),Ie&&Ie!==dt.current&&(Ie.addEventListener(Ot,nt),Ie.addEventListener(Ht,nt),dt.current=Ie)}return y.useEffect(function(){return function(){Me(dt.current)}},[]),[Xe,Me]};function Cr(qe,dt,yt,nt){var Me=nt.motionEnter,Xe=Me===void 0?!0:Me,Ie=nt.motionAppear,et=Ie===void 0?!0:Ie,$e=nt.motionLeave,mt=$e===void 0?!0:$e,rt=nt.motionDeadline,Pt=nt.motionLeaveImmediately,zt=nt.onAppearPrepare,pn=nt.onEnterPrepare,un=nt.onLeavePrepare,fn=nt.onAppearStart,dn=nt.onEnterStart,Kn=nt.onLeaveStart,xn=nt.onAppearActive,jr=nt.onEnterActive,Pr=nt.onLeaveActive,Qr=nt.onAppearEnd,Wr=nt.onEnterEnd,ta=nt.onLeaveEnd,Gn=nt.onVisibleChanged,wr=Lt(),zn=Object(g.a)(wr,2),En=zn[0],Wn=zn[1],Vr=Lt(at),ua=Object(g.a)(Vr,2),dr=ua[0],aa=ua[1],Ca=Lt(null),ha=Object(g.a)(Ca,2),Sa=ha[0],Tr=ha[1],vr=Object(y.useRef)(!1),Mr=Object(y.useRef)(null),tr=Object(y.useRef)(!1),pa=Object(y.useRef)(null);function xa(){var ja=yt();return ja||pa.current}var ba=Object(y.useRef)(!1);function Aa(ja){var Ma=xa();if(ja&&!ja.deadline&&ja.target!==Ma)return;var Za;dr===ot&&ba.current?Za=Qr==null?void 0:Qr(Ma,ja):dr===Pe&&ba.current?Za=Wr==null?void 0:Wr(Ma,ja):dr===Qe&&ba.current&&(Za=ta==null?void 0:ta(Ma,ja)),Za!==!1&&!tr.current&&(aa(at),Tr(null))}var ga=xr(Aa),Na=Object(g.a)(ga,1),ka=Na[0],Fa=y.useMemo(function(){var ja,Ma,Za;switch(dr){case"appear":return ja={},Object(M.a)(ja,bt,zt),Object(M.a)(ja,Dt,fn),Object(M.a)(ja,Mt,xn),ja;case"enter":return Ma={},Object(M.a)(Ma,bt,pn),Object(M.a)(Ma,Dt,dn),Object(M.a)(Ma,Mt,jr),Ma;case"leave":return Za={},Object(M.a)(Za,bt,un),Object(M.a)(Za,Dt,Kn),Object(M.a)(Za,Mt,Pr),Za;default:return{}}},[dr]),ni=ar(dr,function(ja){if(ja===bt){var Ma=Fa[bt];return Ma?Ma(xa()):Ln}if(La in Fa){var Za;Tr(((Za=Fa[La])===null||Za===void 0?void 0:Za.call(Fa,xa(),null))||null)}return La===Mt&&(ka(xa()),rt>0&&(clearTimeout(Mr.current),Mr.current=setTimeout(function(){Aa({deadline:!0})},rt))),Nn}),Fi=Object(g.a)(ni,2),Ai=Fi[0],La=Fi[1],bi=ln(La);ba.current=bi,An(function(){Wn(dt);var ja=vr.current;if(vr.current=!0,!qe)return;var Ma;!ja&&dt&&et&&(Ma=ot),ja&&dt&&Xe&&(Ma=Pe),(ja&&!dt&&mt||!ja&&Pt&&!dt&&mt)&&(Ma=Qe),Ma&&(aa(Ma),Ai())},[dt]),Object(y.useEffect)(function(){(dr===ot&&!et||dr===Pe&&!Xe||dr===Qe&&!mt)&&aa(at)},[et,Xe,mt]),Object(y.useEffect)(function(){return function(){clearTimeout(Mr.current),tr.current=!0}},[]),Object(y.useEffect)(function(){En!==void 0&&dr===at&&(Gn==null||Gn(En))},[En,dr]);var Si=Sa;return Fa[bt]&&La===Dt&&(Si=Object(b.a)({transition:"none"},Si)),[dr,La,Si,En!=null?En:dt]}var Yn=function(qe){Object(S.a)(yt,qe);var dt=Object(v.a)(yt);function yt(){return Object(P.a)(this,yt),dt.apply(this,arguments)}return Object(R.a)(yt,[{key:"render",value:function(){return this.props.children}}]),yt}(y.Component),Or=Yn;function cr(qe){var dt=qe;Object(H.a)(qe)==="object"&&(dt=qe.transitionSupport);function yt(Me){return!!(Me.motionName&&dt)}var nt=y.forwardRef(function(Me,Xe){var Ie=Me.visible,et=Ie===void 0?!0:Ie,$e=Me.removeOnLeave,mt=$e===void 0?!0:$e,rt=Me.forceRender,Pt=Me.children,zt=Me.motionName,pn=Me.leavedClassName,un=Me.eventProps,fn=yt(Me),dn=Object(y.useRef)(),Kn=Object(y.useRef)();function xn(){try{return Object(_t.a)(dn.current||Kn.current)}catch(aa){return null}}var jr=Cr(fn,et,xn,Me),Pr=Object(g.a)(jr,4),Qr=Pr[0],Wr=Pr[1],ta=Pr[2],Gn=Pr[3],wr=y.useRef(Gn);Gn&&(wr.current=!0);var zn=Object(y.useRef)(Xe);zn.current=Xe;var En=y.useCallback(function(aa){dn.current=aa,Object(Ve.b)(zn.current,aa)},[]),Wn,Vr=Object(b.a)(Object(b.a)({},un),{},{visible:et});if(!Pt)Wn=null;else if(Qr===at||!yt(Me))Gn?Wn=Pt(Object(b.a)({},Vr),En):!mt&&wr.current?Wn=Pt(Object(b.a)(Object(b.a)({},Vr),{},{className:pn}),En):rt?Wn=Pt(Object(b.a)(Object(b.a)({},Vr),{},{style:{display:"none"}}),En):Wn=null;else{var ua,dr;Wr===bt?dr="prepare":ln(Wr)?dr="active":Wr===Dt&&(dr="start"),Wn=Pt(Object(b.a)(Object(b.a)({},Vr),{},{className:O()(Fe(zt,Qr),(ua={},Object(M.a)(ua,Fe(zt,"".concat(Qr,"-").concat(dr)),dr),Object(M.a)(ua,zt,typeof zt=="string"),ua)),style:ta}),En)}return y.createElement(Or,{ref:Kn},Wn)});return nt.displayName="CSSMotion",nt}var sn=cr(Jt),qt="add",On="keep",Ir="remove",Ar="removed";function yr(qe){var dt;return qe&&Object(H.a)(qe)==="object"&&"key"in qe?dt=qe:dt={key:qe},Object(b.a)(Object(b.a)({},dt),{},{key:String(dt.key)})}function pr(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return qe.map(yr)}function pe(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=[],nt=0,Me=dt.length,Xe=pr(qe),Ie=pr(dt);Xe.forEach(function(mt){for(var rt=!1,Pt=nt;Pt<Me;Pt+=1){var zt=Ie[Pt];if(zt.key===mt.key){nt<Pt&&(yt=yt.concat(Ie.slice(nt,Pt).map(function(pn){return Object(b.a)(Object(b.a)({},pn),{},{status:qt})})),nt=Pt),yt.push(Object(b.a)(Object(b.a)({},zt),{},{status:On})),nt+=1,rt=!0;break}}rt||yt.push(Object(b.a)(Object(b.a)({},mt),{},{status:Ir}))}),nt<Me&&(yt=yt.concat(Ie.slice(nt).map(function(mt){return Object(b.a)(Object(b.a)({},mt),{},{status:qt})})));var et={};yt.forEach(function(mt){var rt=mt.key;et[rt]=(et[rt]||0)+1});var $e=Object.keys(et).filter(function(mt){return et[mt]>1});return $e.forEach(function(mt){yt=yt.filter(function(rt){var Pt=rt.key,zt=rt.status;return Pt!==mt||zt!==Ir}),yt.forEach(function(rt){rt.key===mt&&(rt.status=On)})}),yt}var X=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function q(qe){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,yt=function(nt){Object(S.a)(Xe,nt);var Me=Object(v.a)(Xe);function Xe(){var Ie;return Object(P.a)(this,Xe),Ie=Me.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function(et){Ie.setState(function($e){var mt=$e.keyEntities;return{keyEntities:mt.map(function(rt){return rt.key!==et?rt:Object(b.a)(Object(b.a)({},rt),{},{status:Ar})})}})},Ie}return Object(R.a)(Xe,[{key:"render",value:function(){var et=this,$e=this.state.keyEntities,mt=this.props,rt=mt.component,Pt=mt.children,zt=mt.onVisibleChanged,pn=Object(A.a)(mt,["component","children","onVisibleChanged"]),un=rt||y.Fragment,fn={};return X.forEach(function(dn){fn[dn]=pn[dn],delete pn[dn]}),delete pn.keys,y.createElement(un,pn,$e.map(function(dn){var Kn=dn.status,xn=Object(A.a)(dn,["status"]),jr=Kn===qt||Kn===On;return y.createElement(dt,Object(_.a)({},fn,{key:xn.key,visible:jr,eventProps:xn,onVisibleChanged:function(Qr){zt==null||zt(Qr,{key:xn.key}),Qr||et.removeKey(xn.key)}}),Pt)}))}}],[{key:"getDerivedStateFromProps",value:function(et,$e){var mt=et.keys,rt=$e.keyEntities,Pt=pr(mt),zt=pe(rt,Pt);return{keyEntities:zt.filter(function(pn){var un=rt.find(function(fn){var dn=fn.key;return pn.key===dn});return!(un&&un.status===Ar&&pn.status===Ir)})}}}]),Xe}(y.Component);return yt.defaultProps={component:"div"},yt}var oe=q(Jt),De=sn;function fe(qe){var dt=qe.prefixCls,yt=qe.motion,nt=qe.animation,Me=qe.transitionName;return yt||(nt?{motionName:"".concat(dt,"-").concat(nt)}:Me?{motionName:Me}:null)}function st(qe){var dt=qe.prefixCls,yt=qe.visible,nt=qe.zIndex,Me=qe.mask,Xe=qe.maskMotion,Ie=qe.maskAnimation,et=qe.maskTransitionName;if(!Me)return null;var $e={};return(Xe||et||Ie)&&($e=Object(b.a)({motionAppear:!0},fe({motion:Xe,prefixCls:dt,transitionName:et,animation:Ie}))),y.createElement(De,Object(_.a)({},$e,{visible:yt,removeOnLeave:!0}),function(mt){var rt=mt.className;return y.createElement("div",{style:{zIndex:nt},className:O()("".concat(dt,"-mask"),rt)})})}var Qt=o("9mu1"),In=o("o0o1"),Vn=o.n(In),$t=o("HaE+"),bn=["measure","align",null,"motion"],cn=function(qe,dt){var yt=Object(y.useState)(null),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(y.useRef)(),et=Object(y.useRef)(!1);function $e(Pt){et.current||Xe(Pt)}function mt(){ht.a.cancel(Ie.current)}function rt(Pt){mt(),Ie.current=Object(ht.a)(function(){$e(function(zt){switch(Me){case"align":return"motion";case"motion":return"stable";default:}return zt}),Pt==null||Pt()})}return Object(y.useEffect)(function(){$e("measure")},[qe]),Object(y.useEffect)(function(){switch(Me){case"measure":dt();break;default:}Me&&(Ie.current=Object(ht.a)(Object($t.a)(Vn.a.mark(function Pt(){var zt,pn;return Vn.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:zt=bn.indexOf(Me),pn=bn[zt+1],pn&&zt!==-1&&$e(pn);case 3:case"end":return fn.stop()}},Pt)}))))},[Me]),Object(y.useEffect)(function(){return function(){et.current=!0,mt()}},[]),[Me,rt]},Br=function(qe){var dt=y.useState({width:0,height:0}),yt=Object(g.a)(dt,2),nt=yt[0],Me=yt[1];function Xe(et){Me({width:et.offsetWidth,height:et.offsetHeight})}var Ie=y.useMemo(function(){var et={};if(qe){var $e=nt.width,mt=nt.height;qe.indexOf("height")!==-1&&mt?et.height=mt:qe.indexOf("minHeight")!==-1&&mt&&(et.minHeight=mt),qe.indexOf("width")!==-1&&$e?et.width=$e:qe.indexOf("minWidth")!==-1&&$e&&(et.minWidth=$e)}return et},[qe,nt]);return[Ie,Xe]},ra=y.forwardRef(function(qe,dt){var yt=qe.visible,nt=qe.prefixCls,Me=qe.className,Xe=qe.style,Ie=qe.children,et=qe.zIndex,$e=qe.stretch,mt=qe.destroyPopupOnHide,rt=qe.forceRender,Pt=qe.align,zt=qe.point,pn=qe.getRootDomNode,un=qe.getClassNameFromAlign,fn=qe.onAlign,dn=qe.onMouseEnter,Kn=qe.onMouseLeave,xn=qe.onMouseDown,jr=qe.onTouchStart,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useState)(),ta=Object(g.a)(Wr,2),Gn=ta[0],wr=ta[1],zn=Br($e),En=Object(g.a)(zn,2),Wn=En[0],Vr=En[1];function ua(){$e&&Vr(pn())}var dr=cn(yt,ua),aa=Object(g.a)(dr,2),Ca=aa[0],ha=aa[1],Sa=Object(y.useRef)();function Tr(){return zt||pn}function vr(){var ga;(ga=Pr.current)===null||ga===void 0||ga.forceAlign()}function Mr(ga,Na){var ka=un(Na);Gn!==ka&&wr(ka),Ca==="align"&&(Gn!==ka?Promise.resolve().then(function(){vr()}):ha(function(){var Fa;(Fa=Sa.current)===null||Fa===void 0||Fa.call(Sa)}),fn==null||fn(ga,Na))}var tr=Object(b.a)({},fe(qe));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ga){var Na=tr[ga];tr[ga]=function(ka,Fa){return ha(),Na==null?void 0:Na(ka,Fa)}});function pa(){return new Promise(function(ga){Sa.current=ga})}y.useEffect(function(){!tr.motionName&&Ca==="motion"&&ha()},[tr.motionName,Ca]),y.useImperativeHandle(dt,function(){return{forceAlign:vr,getElement:function(){return Qr.current}}});var xa=Object(b.a)(Object(b.a)({},Wn),{},{zIndex:et,opacity:Ca==="motion"||Ca==="stable"||!yt?void 0:0,pointerEvents:Ca==="stable"?void 0:"none"},Xe),ba=!0;(Pt==null?void 0:Pt.points)&&(Ca==="align"||Ca==="stable")&&(ba=!1);var Aa=Ie;return y.Children.count(Ie)>1&&(Aa=y.createElement("div",{className:"".concat(nt,"-content")},Ie)),y.createElement(De,Object(_.a)({visible:yt,ref:Qr,leavedClassName:"".concat(nt,"-hidden")},tr,{onAppearPrepare:pa,onEnterPrepare:pa,removeOnLeave:mt,forceRender:rt}),function(ga,Na){var ka=ga.className,Fa=ga.style,ni=O()(nt,Me,Gn,ka);return y.createElement(Qt.a,{target:Tr(),key:"popup",ref:Pr,monitorWindowResize:!0,disabled:ba,align:Pt,onAlign:Mr},y.createElement("div",{ref:Na,className:ni,onMouseEnter:dn,onMouseLeave:Kn,onMouseDownCapture:xn,onTouchStartCapture:jr,style:Object(b.a)(Object(b.a)({},Fa),xa)},Aa))})});ra.displayName="PopupInner";var oa=ra,er=y.forwardRef(function(qe,dt){var yt=qe.prefixCls,nt=qe.visible,Me=qe.zIndex,Xe=qe.children,Ie=qe.mobile;Ie=Ie===void 0?{}:Ie;var et=Ie.popupClassName,$e=Ie.popupStyle,mt=Ie.popupMotion,rt=mt===void 0?{}:mt,Pt=Ie.popupRender,zt=y.useRef();y.useImperativeHandle(dt,function(){return{forceAlign:function(){},getElement:function(){return zt.current}}});var pn=Object(b.a)({zIndex:Me},$e),un=Xe;return y.Children.count(Xe)>1&&(un=y.createElement("div",{className:"".concat(yt,"-content")},Xe)),Pt&&(un=Pt(un)),y.createElement(De,Object(_.a)({visible:nt,ref:zt,removeOnLeave:!0},rt),function(fn,dn){var Kn=fn.className,xn=fn.style,jr=O()(yt,et,Kn);return y.createElement("div",{ref:dn,className:jr,style:Object(b.a)(Object(b.a)({},xn),pn)},un)})});er.displayName="MobilePopupInner";var Ba=er,Ea=["visible","mobile"],ca=y.forwardRef(function(qe,dt){var yt=qe.visible,nt=qe.mobile,Me=Object(A.a)(qe,Ea),Xe=Object(y.useState)(yt),Ie=Object(g.a)(Xe,2),et=Ie[0],$e=Ie[1],mt=Object(y.useState)(!1),rt=Object(g.a)(mt,2),Pt=rt[0],zt=rt[1],pn=Object(b.a)(Object(b.a)({},Me),{},{visible:et});Object(y.useEffect)(function(){$e(yt),yt&&nt&&zt(Ze())},[yt,nt]);var un=Pt?y.createElement(Ba,Object(_.a)({},pn,{mobile:nt,ref:dt})):y.createElement(oa,Object(_.a)({},pn,{ref:dt}));return y.createElement("div",null,y.createElement(st,pn),un)});ca.displayName="Popup";var Ka=ca,Ta=y.createContext(null),Ja=Ta;function Ua(){}function li(){return""}function oi(qe){return qe?qe.ownerDocument:window.document}var fa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ma(qe){var dt=function(yt){Object(S.a)(Me,yt);var nt=Object(v.a)(Me);function Me(Xe){var Ie;Object(P.a)(this,Me),Ie=nt.call(this,Xe),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($e){var mt=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",$e),Ie.delaySetPopupVisible(!0,mt,mt?null:$e)},Ie.onMouseMove=function($e){Ie.fireEvents("onMouseMove",$e),Ie.setPoint($e)},Ie.onMouseLeave=function($e){Ie.fireEvents("onMouseLeave",$e),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function($e){var mt;if($e.relatedTarget&&!$e.relatedTarget.setTimeout&&Object(vt.a)((mt=Ie.popupRef.current)===null||mt===void 0?void 0:mt.getElement(),$e.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function($e){Ie.fireEvents("onFocus",$e),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function($e){Ie.fireEvents("onMouseDown",$e),Ie.preClickTime=Date.now()},Ie.onTouchStart=function($e){Ie.fireEvents("onTouchStart",$e),Ie.preTouchTime=Date.now()},Ie.onBlur=function($e){Ie.fireEvents("onBlur",$e),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function($e){$e.preventDefault(),Ie.fireEvents("onContextMenu",$e),Ie.setPopupVisible(!0,$e)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function($e){if(Ie.fireEvents("onClick",$e),Ie.focusTime){var mt;if(Ie.preClickTime&&Ie.preTouchTime?mt=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?mt=Ie.preClickTime:Ie.preTouchTime&&(mt=Ie.preTouchTime),Math.abs(mt-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&$e&&$e.preventDefault&&$e.preventDefault();var rt=!Ie.state.popupVisible;(Ie.isClickToHide()&&!rt||rt&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,$e)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var $e;($e=Ie.context).onPopupMouseDown.apply($e,arguments)}},Ie.onDocumentClick=function($e){if(Ie.props.mask&&!Ie.props.maskClosable)return;var mt=$e.target,rt=Ie.getRootDomNode(),Pt=Ie.getPopupDomNode();(!Object(vt.a)(rt,mt)||Ie.isContextMenuOnly())&&!Object(vt.a)(Pt,mt)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var $e=Ie.props.getTriggerDOMNode;if($e)return $e(Ie.triggerRef.current);try{var mt=Object(_t.a)(Ie.triggerRef.current);if(mt)return mt}catch(rt){}return ut.a.findDOMNode(Object(x.a)(Ie))},Ie.getPopupClassNameFromAlign=function($e){var mt=[],rt=Ie.props,Pt=rt.popupPlacement,zt=rt.builtinPlacements,pn=rt.prefixCls,un=rt.alignPoint,fn=rt.getPopupClassNameFromAlign;return Pt&&zt&&mt.push(jt(zt,pn,$e,un)),fn&&mt.push(fn($e)),mt.join(" ")},Ie.getComponent=function(){var $e=Ie.props,mt=$e.prefixCls,rt=$e.destroyPopupOnHide,Pt=$e.popupClassName,zt=$e.onPopupAlign,pn=$e.popupMotion,un=$e.popupAnimation,fn=$e.popupTransitionName,dn=$e.popupStyle,Kn=$e.mask,xn=$e.maskAnimation,jr=$e.maskTransitionName,Pr=$e.maskMotion,Qr=$e.zIndex,Wr=$e.popup,ta=$e.stretch,Gn=$e.alignPoint,wr=$e.mobile,zn=$e.forceRender,En=Ie.state,Wn=En.popupVisible,Vr=En.point,ua=Ie.getPopupAlign(),dr={};return Ie.isMouseEnterToShow()&&(dr.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(dr.onMouseLeave=Ie.onPopupMouseLeave),dr.onMouseDown=Ie.onPopupMouseDown,dr.onTouchStart=Ie.onPopupMouseDown,y.createElement(Ka,Object(_.a)({prefixCls:mt,destroyPopupOnHide:rt,visible:Wn,point:Gn&&Vr,className:Pt,align:ua,onAlign:zt,animation:un,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},dr,{stretch:ta,getRootDomNode:Ie.getRootDomNode,style:dn,mask:Kn,zIndex:Qr,transitionName:fn,maskAnimation:xn,maskTransitionName:jr,maskMotion:Pr,ref:Ie.popupRef,motion:pn,mobile:wr,forceRender:zn}),typeof Wr=="function"?Wr():Wr)},Ie.attachParent=function($e){ht.a.cancel(Ie.attachId);var mt=Ie.props,rt=mt.getPopupContainer,Pt=mt.getDocument,zt=Ie.getRootDomNode(),pn;rt?(zt||rt.length===0)&&(pn=rt(zt)):pn=Pt(Ie.getRootDomNode()).body,pn?pn.appendChild($e):Ie.attachId=Object(ht.a)(function(){Ie.attachParent($e)})},Ie.getContainer=function(){var $e=Ie.props.getDocument,mt=$e(Ie.getRootDomNode()).createElement("div");return mt.style.position="absolute",mt.style.top="0",mt.style.left="0",mt.style.width="100%",Ie.attachParent(mt),mt},Ie.setPoint=function($e){var mt=Ie.props.alignPoint;if(!mt||!$e)return;Ie.setState({point:{pageX:$e.pageX,pageY:$e.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)},Ie.triggerContextValue={onPopupMouseDown:Ie.onPopupMouseDown};var et;return"popupVisible"in Xe?et=!!Xe.popupVisible:et=!!Xe.defaultPopupVisible,Ie.state={prevPopupVisible:et,popupVisible:et},fa.forEach(function($e){Ie["fire".concat($e)]=function(mt){Ie.fireEvents($e,mt)}}),Ie}return Object(R.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,et=this.state;if(et.popupVisible){var $e;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&($e=Ie.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ue.a)($e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||($e=$e||Ie.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ue.a)($e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&($e=$e||Ie.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ue.a)($e,"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),ht.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,et=Ie.popupPlacement,$e=Ie.popupAlign,mt=Ie.builtinPlacements;return et&&mt?Et(mt,et,$e):$e}},{key:"setPopupVisible",value:function(Ie,et){var $e=this.props.alignPoint,mt=this.state.popupVisible;this.clearDelayTimer(),mt!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:mt}),this.props.onPopupVisibleChange(Ie)),$e&&et&&Ie&&this.setPoint(et)}},{key:"delaySetPopupVisible",value:function(Ie,et,$e){var mt=this,rt=et*1e3;if(this.clearDelayTimer(),rt){var Pt=$e?{pageX:$e.pageX,pageY:$e.pageY}:null;this.delayTimer=window.setTimeout(function(){mt.setPopupVisible(Ie,Pt),mt.clearDelayTimer()},rt)}else this.setPopupVisible(Ie,$e)}},{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 et=this.props.children.props,$e=this.props;return et[Ie]&&$e[Ie]?this["fire".concat(Ie)]:et[Ie]||$e[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("click")!==-1||$e.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,et=Ie.action,$e=Ie.showAction;return et.indexOf("contextMenu")!==-1||$e.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("click")!==-1||$e.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("hover")!==-1||$e.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("hover")!==-1||$e.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("focus")!==-1||$e.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("focus")!==-1||$e.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,et){var $e=this.props.children.props[Ie];$e&&$e(et);var mt=this.props[Ie];mt&&mt(et)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,et=this.props,$e=et.children,mt=et.forceRender,rt=et.alignPoint,Pt=et.className,zt=et.autoDestroy,pn=y.Children.only($e),un={key:"trigger"};this.isContextMenuToShow()?un.onContextMenu=this.onContextMenu:un.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(un.onClick=this.onClick,un.onMouseDown=this.onMouseDown,un.onTouchStart=this.onTouchStart):(un.onClick=this.createTwoChains("onClick"),un.onMouseDown=this.createTwoChains("onMouseDown"),un.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(un.onMouseEnter=this.onMouseEnter,rt&&(un.onMouseMove=this.onMouseMove)):un.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?un.onMouseLeave=this.onMouseLeave:un.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(un.onFocus=this.onFocus,un.onBlur=this.onBlur):(un.onFocus=this.createTwoChains("onFocus"),un.onBlur=this.createTwoChains("onBlur"));var fn=O()(pn&&pn.props&&pn.props.className,Pt);fn&&(un.className=fn);var dn=Object(b.a)({},un);Object(Ve.c)(pn)&&(dn.ref=Object(Ve.a)(this.triggerRef,pn.ref));var Kn=y.cloneElement(pn,dn),xn;return(Ie||this.popupRef.current||mt)&&(xn=y.createElement(qe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&zt&&(xn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Kn,xn)}}],[{key:"getDerivedStateFromProps",value:function(Ie,et){var $e=Ie.popupVisible,mt={};return $e!==void 0&&et.popupVisible!==$e&&(mt.popupVisible=$e,mt.prevPopupVisible=et.popupVisible),mt}}]),Me}(y.Component);return dt.contextType=Ja,dt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:Ua,afterPopupVisibleChange:Ua,onPopupAlign:Ua,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},dt}var la=ma(pt.a),xe={adjustX:1,adjustY:1},lt={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},Rt={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},wt=lt,Wt=0,It={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Vt=function(dt,yt,nt){var Me=le(yt),Xe=dt.getState();dt.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},Xe.defaultActiveFirst),{},Object(M.a)({},Me,nt))})},rn=function(qe){Object(S.a)(yt,qe);var dt=Object(v.a)(yt);function yt(nt){var Me;Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onDestroy=function(rt){Me.props.onDestroy(rt)},Me.onKeyDown=function(rt){var Pt=rt.keyCode,zt=Me.menuInstance,pn=Me.props.store,un=Me.getVisible();if(Pt===c.a.ENTER)return Me.onTitleClick(rt),Vt(pn,Me.props.eventKey,!0),!0;if(Pt===c.a.RIGHT)return un?zt.onKeyDown(rt):(Me.triggerOpenChange(!0),Vt(pn,Me.props.eventKey,!0)),!0;if(Pt===c.a.LEFT){var fn;if(un)fn=zt.onKeyDown(rt);else return;return fn||(Me.triggerOpenChange(!1),fn=!0),fn}return un&&(Pt===c.a.UP||Pt===c.a.DOWN)?zt.onKeyDown(rt):void 0},Me.onOpenChange=function(rt){Me.props.onOpenChange(rt)},Me.onPopupVisibleChange=function(rt){Me.triggerOpenChange(rt,rt?"mouseenter":"mouseleave")},Me.onMouseEnter=function(rt){var Pt=Me.props,zt=Pt.eventKey,pn=Pt.onMouseEnter,un=Pt.store;Vt(un,Me.props.eventKey,!1),pn({key:zt,domEvent:rt})},Me.onMouseLeave=function(rt){var Pt=Me.props,zt=Pt.parentMenu,pn=Pt.eventKey,un=Pt.onMouseLeave;zt.subMenuInstance=Object(x.a)(Me),un({key:pn,domEvent:rt})},Me.onTitleMouseEnter=function(rt){var Pt=Me.props,zt=Pt.eventKey,pn=Pt.onItemHover,un=Pt.onTitleMouseEnter;pn({key:zt,hover:!0}),un({key:zt,domEvent:rt})},Me.onTitleMouseLeave=function(rt){var Pt=Me.props,zt=Pt.parentMenu,pn=Pt.eventKey,un=Pt.onItemHover,fn=Pt.onTitleMouseLeave;zt.subMenuInstance=Object(x.a)(Me),un({key:pn,hover:!1}),fn({key:pn,domEvent:rt})},Me.onTitleClick=function(rt){var Pt=Object(x.a)(Me),zt=Pt.props;if(zt.onTitleClick({key:zt.eventKey,domEvent:rt}),zt.triggerSubMenuAction==="hover")return;Me.triggerOpenChange(!Me.getVisible(),"click"),Vt(zt.store,Me.props.eventKey,!1)},Me.onSubMenuClick=function(rt){typeof Me.props.onClick=="function"&&Me.props.onClick(Me.addKeyPath(rt))},Me.onSelect=function(rt){Me.props.onSelect(rt)},Me.onDeselect=function(rt){Me.props.onDeselect(rt)},Me.getPrefixCls=function(){return"".concat(Me.props.rootPrefixCls,"-submenu")},Me.getActiveClassName=function(){return"".concat(Me.getPrefixCls(),"-active")},Me.getDisabledClassName=function(){return"".concat(Me.getPrefixCls(),"-disabled")},Me.getSelectedClassName=function(){return"".concat(Me.getPrefixCls(),"-selected")},Me.getOpenClassName=function(){return"".concat(Me.props.rootPrefixCls,"-submenu-open")},Me.getVisible=function(){return Me.state.isOpen},Me.getMode=function(){return Me.state.mode},Me.saveMenuInstance=function(rt){Me.menuInstance=rt},Me.addKeyPath=function(rt){return Object(b.a)(Object(b.a)({},rt),{},{keyPath:(rt.keyPath||[]).concat(Me.props.eventKey)})},Me.triggerOpenChange=function(rt,Pt){var zt=Me.props.eventKey,pn=function(){Me.onOpenChange({key:zt,item:Object(x.a)(Me),trigger:Pt,open:rt})};Pt==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){pn()},0):pn()},Me.isChildrenSelected=function(){var rt={find:!1};return Q(Me.props.children,Me.props.selectedKeys,rt),rt.find},Me.isInlineMode=function(){return Me.getMode()==="inline"},Me.adjustWidth=function(){if(!Me.subMenuTitle||!Me.menuInstance)return;var rt=tt.findDOMNode(Me.menuInstance);if(rt.offsetWidth>=Me.subMenuTitle.offsetWidth)return;rt.style.minWidth="".concat(Me.subMenuTitle.offsetWidth,"px")},Me.saveSubMenuTitle=function(rt){Me.subMenuTitle=rt},Me.getBaseProps=function(){var rt=Object(x.a)(Me),Pt=rt.props,zt=Me.getMode();return{mode:zt==="horizontal"?"vertical":zt,visible:Me.getVisible(),level:Pt.level+1,inlineIndent:Pt.inlineIndent,focusable:!1,onClick:Me.onSubMenuClick,onSelect:Me.onSelect,onDeselect:Me.onDeselect,onDestroy:Me.onDestroy,selectedKeys:Pt.selectedKeys,eventKey:"".concat(Pt.eventKey,"-menu-"),openKeys:Pt.openKeys,motion:Pt.motion,onOpenChange:Me.onOpenChange,subMenuOpenDelay:Pt.subMenuOpenDelay,parentMenu:Object(x.a)(Me),subMenuCloseDelay:Pt.subMenuCloseDelay,forceSubMenuRender:Pt.forceSubMenuRender,triggerSubMenuAction:Pt.triggerSubMenuAction,builtinPlacements:Pt.builtinPlacements,defaultActiveFirst:Pt.store.getState().defaultActiveFirst[le(Pt.eventKey)],multiple:Pt.multiple,prefixCls:Pt.rootPrefixCls,id:Me.internalMenuId,manualRef:Me.saveMenuInstance,itemIcon:Pt.itemIcon,expandIcon:Pt.expandIcon,direction:Pt.direction}},Me.getMotion=function(rt,Pt){var zt=Object(x.a)(Me),pn=zt.haveRendered,un=Me.props,fn=un.motion,dn=un.rootPrefixCls,Kn=Object(b.a)(Object(b.a)({},fn),{},{leavedClassName:"".concat(dn,"-hidden"),removeOnLeave:!1,motionAppear:pn||!Pt||rt!=="inline"});return Kn};var Xe=nt.store,Ie=nt.eventKey,et=Xe.getState(),$e=et.defaultActiveFirst;Me.isRootMenu=!1;var mt=!1;return $e&&(mt=$e[Ie]),Vt(Xe,Ie,mt),Me.state={mode:nt.mode,isOpen:nt.isOpen},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Xe=this.props,Ie=Xe.mode,et=Xe.parentMenu,$e=Xe.manualRef,mt=Xe.isOpen,rt=function(){Me.setState({mode:Ie,isOpen:mt})},Pt=mt!==this.state.isOpen,zt=Ie!==this.state.mode;if((zt||Pt)&&(ht.a.cancel(this.updateStateRaf),zt?this.updateStateRaf=Object(ht.a)(rt):rt()),$e&&$e(this),Ie!=="horizontal"||!(et==null?void 0:et.isRootMenu)||!mt)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Xe=Me.onDestroy,Ie=Me.eventKey;Xe&&Xe(Ie),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ht.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Me,Xe){var Ie=this.getBaseProps();return y.createElement(Xt,Object(_.a)({},Ie,{id:this.internalMenuId,className:Me,style:Xe}),this.props.children)}},{key:"renderChildren",value:function(){var Me=this,Xe=this.getBaseProps(),Ie=Xe.mode,et=Xe.visible,$e=Xe.forceSubMenuRender,mt=Xe.direction,rt=this.getMotion(Ie,et);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||et||$e,!this.haveOpened)return y.createElement("div",null);var Pt=O()("".concat(Xe.prefixCls,"-sub"),Object(M.a)({},"".concat(Xe.prefixCls,"-rtl"),mt==="rtl"));return this.isInlineMode()?y.createElement(De,Object(_.a)({visible:Xe.visible,forceRender:$e},rt),function(zt){var pn=zt.className,un=zt.style,fn=O()(Pt,pn);return Me.renderPopupMenu(fn,un)}):this.renderPopupMenu(Pt)}},{key:"render",value:function(){var Me,Xe,Ie,et=Object(b.a)({},this.props),$e=this.getVisible(),mt=this.getPrefixCls(),rt=this.isInlineMode(),Pt=this.getMode(),zt=O()(mt,"".concat(mt,"-").concat(Pt),(Me={},Object(M.a)(Me,et.className,!!et.className),Object(M.a)(Me,this.getOpenClassName(),$e),Object(M.a)(Me,this.getActiveClassName(),et.active||$e&&!rt),Object(M.a)(Me,this.getDisabledClassName(),et.disabled),Object(M.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||(et.eventKey?this.internalMenuId="".concat(et.eventKey,"$Menu"):(Wt+=1,this.internalMenuId="$__$".concat(Wt,"$Menu")));var pn={},un={},fn={};et.disabled||(pn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},un={onClick:this.onTitleClick},fn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var dn={},Kn=et.direction,xn=Kn==="rtl";rt&&(xn?dn.paddingRight=et.inlineIndent*et.level:dn.paddingLeft=et.inlineIndent*et.level);var jr={};this.getVisible()&&(jr={"aria-owns":this.internalMenuId});var Pr=null;Pt!=="horizontal"&&(Pr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Pr=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Qr=y.createElement("div",Object(_.a)({ref:this.saveSubMenuTitle,style:dn,className:"".concat(mt,"-title"),role:"button"},fn,un,{"aria-expanded":$e},jr,{"aria-haspopup":"true",title:typeof et.title=="string"?et.title:void 0}),et.title,Pr||y.createElement("i",{className:"".concat(mt,"-arrow")})),Wr=this.renderChildren(),ta=((Xe=et.parentMenu)===null||Xe===void 0?void 0:Xe.isRootMenu)?et.parentMenu.props.getPopupContainer:function(Tr){return Tr.parentNode},Gn=It[Pt],wr=et.popupOffset?{offset:et.popupOffset}:{},zn=O()((Ie={},Object(M.a)(Ie,et.popupClassName,et.popupClassName&&!rt),Object(M.a)(Ie,"".concat(mt,"-rtl"),xn),Ie)),En=et.disabled,Wn=et.triggerSubMenuAction,Vr=et.subMenuOpenDelay,ua=et.forceSubMenuRender,dr=et.subMenuCloseDelay,aa=et.builtinPlacements;J.forEach(function(Tr){return delete et[Tr]}),delete et.onClick;var Ca=xn?Object(b.a)(Object(b.a)({},Rt),aa):Object(b.a)(Object(b.a)({},lt),aa);delete et.direction;var ha=this.getBaseProps(),Sa=rt?null:this.getMotion(ha.mode,ha.visible);return y.createElement("li",Object(_.a)({},et,pn,{className:zt,role:"menuitem"}),y.createElement(la,{prefixCls:mt,popupClassName:O()("".concat(mt,"-popup"),zn),getPopupContainer:ta,builtinPlacements:Ca,popupPlacement:Gn,popupVisible:rt?!1:$e,popupAlign:wr,popup:rt?null:Wr,action:En||rt?[]:[Wn],mouseEnterDelay:Vr,mouseLeaveDelay:dr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ua,popupMotion:Sa},Qr),rt?Wr:null)}}]),yt}(y.Component);rn.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var yn=Object(T.b)(function(qe,dt){var yt=qe.openKeys,nt=qe.activeKey,Me=qe.selectedKeys,Xe=dt.eventKey,Ie=dt.subMenuKey;return{isOpen:yt.indexOf(Xe)>-1,active:nt[Ie]===Xe,selectedKeys:Me}})(rn);yn.isSubMenu=!0;var gn=yn,jn="menuitem-overflowed",Dn=.5,an=function(qe){Object(S.a)(yt,qe);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.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.childRef=y.createRef(),nt.getMenuItemNodes=function(){var Me=nt.props.prefixCls,Xe=nt.childRef.current;return Xe?[].slice.call(Xe.children).filter(function(Ie){return Ie.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Me,Xe,Ie){var et=nt.props,$e=et.overflowedIndicator,mt=et.level,rt=et.mode,Pt=et.prefixCls,zt=et.theme;if(mt!==1||rt!=="horizontal")return null;var pn=nt.props.children[0],un=pn.props,fn=un.children,dn=un.title,Kn=un.style,xn=Object(A.a)(un,["children","title","style"]),jr=Object(b.a)({},Kn),Pr="".concat(Me,"-overflowed-indicator"),Qr="".concat(Me,"-overflowed-indicator");Xe.length===0&&Ie!==!0?jr=Object(b.a)(Object(b.a)({},jr),{},{display:"none"}):Ie&&(jr=Object(b.a)(Object(b.a)({},jr),{},{visibility:"hidden",position:"absolute"}),Pr="".concat(Pr,"-placeholder"),Qr="".concat(Qr,"-placeholder"));var Wr=zt?"".concat(Pt,"-").concat(zt):"",ta={};return J.forEach(function(Gn){xn[Gn]!==void 0&&(ta[Gn]=xn[Gn])}),y.createElement(gn,Object(_.a)({title:$e,className:"".concat(Pt,"-overflowed-submenu"),popupClassName:Wr},ta,{key:Pr,eventKey:Qr,disabled:!1,style:jr}),Xe)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Xe=Me.children;if(!Xe||Xe.length===0)return;var Ie=Me.children[Xe.length-1];_e(Ie,"display","inline-block");var et=nt.getMenuItemNodes(),$e=et.filter(function(mt){return mt.className.split(" ").indexOf(jn)>=0});$e.forEach(function(mt){_e(mt,"display","inline-block")}),nt.menuItemSizes=et.map(function(mt){return ve(mt,!0)}),$e.forEach(function(mt){_e(mt,"display","none")}),nt.overflowedIndicatorWidth=ve(Me.children[Me.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(mt,rt){return mt+rt},0),nt.handleResize(),_e(Ie,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Xe=ve(Me);nt.overflowedItems=[];var Ie=0,et;nt.originalTotalWidth>Xe+Dn&&(et=-1,nt.menuItemSizes.forEach(function($e){Ie+=$e,Ie+nt.overflowedIndicatorWidth<=Xe&&(et+=1)})),nt.setState({lastVisibleIndex:et})},nt}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Xe=this.childRef.current;if(!Xe)return;this.resizeObserver=new Je.default(function(Ie){Ie.forEach(function(){var et=Me.cancelFrameId;cancelAnimationFrame(et),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),Me.setChildrenWidthAndResize()}),this.mutationObserver.observe(Xe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Me){var Xe=this,Ie=this.state.lastVisibleIndex;return(Me||[]).reduce(function(et,$e,mt){var rt=$e;if(Xe.props.mode==="horizontal"){var Pt=Xe.getOverflowedSubMenuItem($e.props.eventKey,[]);Ie!==void 0&&Xe.props.className.indexOf("".concat(Xe.props.prefixCls,"-root"))!==-1&&(mt>Ie&&(rt=y.cloneElement($e,{style:{display:"none"},eventKey:"".concat($e.props.eventKey,"-hidden"),className:"".concat(jn)})),mt===Ie+1&&(Xe.overflowedItems=Me.slice(Ie+1).map(function(pn){return y.cloneElement(pn,{key:pn.props.eventKey,mode:"vertical-left"})}),Pt=Xe.getOverflowedSubMenuItem($e.props.eventKey,Xe.overflowedItems)));var zt=[].concat(Object(f.a)(et),[Pt,rt]);return mt===Me.length-1&&zt.push(Xe.getOverflowedSubMenuItem($e.props.eventKey,[],!0)),zt}return[].concat(Object(f.a)(et),[rt])},[])}},{key:"render",value:function(){var Me=this.props,Xe=Me.visible,Ie=Me.prefixCls,et=Me.overflowedIndicator,$e=Me.mode,mt=Me.level,rt=Me.tag,Pt=Me.children,zt=Me.theme,pn=Object(A.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),un=rt;return y.createElement(un,Object(_.a)({ref:this.childRef},pn),this.renderChildren(Pt))}}]),yt}(y.Component);an.defaultProps={tag:"div",className:""};var Mn=an;function _n(qe){return qe.length?qe.every(function(dt){return!!dt.props.disabled}):!0}function Bn(qe,dt,yt){var nt=qe.getState();qe.setState({activeKey:Object(b.a)(Object(b.a)({},nt.activeKey),{},Object(M.a)({},dt,yt))})}function Pn(qe){return qe.eventKey||"0-menu-"}function Jn(qe,dt){var yt=dt,nt=qe.children,Me=qe.eventKey;if(yt){var Xe;if(te(nt,function(Ie,et){Ie&&Ie.props&&!Ie.props.disabled&&yt===Oe(Ie,Me,et)&&(Xe=!0)}),Xe)return yt}return yt=null,qe.defaultActiveFirst&&te(nt,function(Ie,et){!yt&&Ie&&!Ie.props.disabled&&(yt=Oe(Ie,Me,et))}),yt}function fr(qe){if(!qe)return;var dt=this.instanceArray.indexOf(qe);dt!==-1?this.instanceArray[dt]=qe:this.instanceArray.push(qe)}var Fr=function(qe){Object(S.a)(yt,qe);var dt=Object(v.a)(yt);function yt(nt){var Me;return Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onKeyDown=function(Xe,Ie){var et=Xe.keyCode,$e;if(Me.getFlatInstanceArray().forEach(function(rt){rt&&rt.props.active&&rt.onKeyDown&&($e=rt.onKeyDown(Xe))}),$e)return 1;var mt=null;return(et===c.a.UP||et===c.a.DOWN)&&(mt=Me.step(et===c.a.UP?-1:1)),mt?(Xe.preventDefault(),Bn(Me.props.store,Pn(Me.props),mt.props.eventKey),typeof Ie=="function"&&Ie(mt),1):void 0},Me.onItemHover=function(Xe){var Ie=Xe.key,et=Xe.hover;Bn(Me.props.store,Pn(Me.props),et?Ie:null)},Me.onDeselect=function(Xe){Me.props.onDeselect(Xe)},Me.onSelect=function(Xe){Me.props.onSelect(Xe)},Me.onClick=function(Xe){Me.props.onClick(Xe)},Me.onOpenChange=function(Xe){Me.props.onOpenChange(Xe)},Me.onDestroy=function(Xe){Me.props.onDestroy(Xe)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Xe){var Ie=Me.getFlatInstanceArray(),et=Me.props.store.getState().activeKey[Pn(Me.props)],$e=Ie.length;if(!$e)return null;Xe<0&&(Ie=Ie.concat().reverse());var mt=-1;if(Ie.every(function(pn,un){return pn&&pn.props.eventKey===et?(mt=un,!1):!0}),!Me.props.defaultActiveFirst&&mt!==-1&&_n(Ie.slice(mt,$e-1)))return;var rt=(mt+1)%$e,Pt=rt;do{var zt=Ie[Pt];if(!zt||zt.props.disabled)Pt=(Pt+1)%$e;else return zt}while(Pt!==rt);return null},Me.renderCommonMenuItem=function(Xe,Ie,et){var $e=Me.props.store.getState(),mt=Object(x.a)(Me),rt=mt.props,Pt=Oe(Xe,rt.eventKey,Ie),zt=Xe.props;if(!zt||typeof Xe.type=="string")return Xe;var pn=Pt===$e.activeKey,un=Object(b.a)(Object(b.a)({mode:zt.mode||rt.mode,level:rt.level,inlineIndent:rt.inlineIndent,renderMenuItem:Me.renderMenuItem,rootPrefixCls:rt.prefixCls,index:Ie,parentMenu:rt.parentMenu,manualRef:zt.disabled?void 0:Object(L.a)(Xe.ref,fr.bind(Object(x.a)(Me))),eventKey:Pt,active:!zt.disabled&&pn,multiple:rt.multiple,onClick:function(dn){(zt.onClick||ae)(dn),Me.onClick(dn)},onItemHover:Me.onItemHover,motion:rt.motion,subMenuOpenDelay:rt.subMenuOpenDelay,subMenuCloseDelay:rt.subMenuCloseDelay,forceSubMenuRender:rt.forceSubMenuRender,onOpenChange:Me.onOpenChange,onDeselect:Me.onDeselect,onSelect:Me.onSelect,builtinPlacements:rt.builtinPlacements,itemIcon:zt.itemIcon||Me.props.itemIcon,expandIcon:zt.expandIcon||Me.props.expandIcon},et),{},{direction:rt.direction});return(rt.mode==="inline"||Ae())&&(un.triggerSubMenuAction="click"),y.cloneElement(Xe,Object(b.a)(Object(b.a)({},un),{},{key:Pt||Ie}))},Me.renderMenuItem=function(Xe,Ie,et){if(!Xe)return null;var $e=Me.props.store.getState(),mt={openKeys:$e.openKeys,selectedKeys:$e.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:et};return Me.renderCommonMenuItem(Xe,Ie,mt)},nt.store.setState({activeKey:Object(b.a)(Object(b.a)({},nt.store.getState().activeKey),{},Object(M.a)({},nt.eventKey,Jn(nt,nt.activeKey)))}),Me.instanceArray=[],Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Me){return this.props.visible||Me.visible||this.props.className!==Me.className||!V()(this.props.style,Me.style)}},{key:"componentDidUpdate",value:function(Me){var Xe=this.props,Ie="activeKey"in Xe?Xe.activeKey:Xe.store.getState().activeKey[Pn(Xe)],et=Jn(Xe,Ie);if(et!==Ie)Bn(Xe.store,Pn(Xe),et);else if("activeKey"in Me){var $e=Jn(Me,Me.activeKey);et!==$e&&Bn(Xe.store,Pn(Xe),et)}}},{key:"render",value:function(){var Me=this,Xe=Object(_.a)({},this.props);this.instanceArray=[];var Ie=O()(Xe.prefixCls,Xe.className,"".concat(Xe.prefixCls,"-").concat(Xe.mode)),et={className:Ie,role:Xe.role||"menu"};Xe.id&&(et.id=Xe.id),Xe.focusable&&(et.tabIndex=0,et.onKeyDown=this.onKeyDown);var $e=Xe.prefixCls,mt=Xe.eventKey,rt=Xe.visible,Pt=Xe.level,zt=Xe.mode,pn=Xe.overflowedIndicator,un=Xe.theme;return J.forEach(function(fn){return delete Xe[fn]}),delete Xe.onClick,y.createElement(Mn,Object(_.a)({},Xe,{prefixCls:$e,mode:zt,tag:"ul",level:Pt,theme:un,visible:rt,overflowedIndicator:pn},et),Object(m.a)(Xe.children).map(function(fn,dn){return Me.renderMenuItem(fn,dn,mt||"0-menu-")}))}}]),yt}(y.Component);Fr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var Cn=Object(T.b)()(Fr),Xt=Cn,hn=o("Kwbf");function Rn(qe,dt,yt){var nt=qe.prefixCls,Me=qe.motion,Xe=qe.defaultMotions,Ie=Xe===void 0?{}:Xe,et=qe.openAnimation,$e=qe.openTransitionName,mt=dt.switchingModeFromInline;if(Me)return Me;if(Object(H.a)(et)==="object"&&et)Object(hn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof et=="string")return{motionName:"".concat(nt,"-open-").concat(et)};if($e)return{motionName:$e};var rt=Ie[yt];return rt||(mt?null:Ie.other)}var tn=function(qe){Object(S.a)(yt,qe);var dt=Object(v.a)(yt);function yt(nt){var Me;Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onSelect=function(et){var $e=Object(x.a)(Me),mt=$e.props;if(mt.selectable){var rt=Me.store.getState(),Pt=rt.selectedKeys,zt=et.key;mt.multiple?Pt=Pt.concat([zt]):Pt=[zt],"selectedKeys"in mt||Me.store.setState({selectedKeys:Pt}),mt.onSelect(Object(b.a)(Object(b.a)({},et),{},{selectedKeys:Pt}))}},Me.onClick=function(et){var $e=Me.getRealMenuMode(),mt=Object(x.a)(Me),rt=mt.store,Pt=mt.props.onOpenChange;$e!=="inline"&&!("openKeys"in Me.props)&&(rt.setState({openKeys:[]}),Pt([])),Me.props.onClick(et)},Me.onKeyDown=function(et,$e){Me.innerMenu.getWrappedInstance().onKeyDown(et,$e)},Me.onOpenChange=function(et){var $e=Object(x.a)(Me),mt=$e.props,rt=Me.store.getState().openKeys.concat(),Pt=!1,zt=function(un){var fn=!1;if(un.open)fn=rt.indexOf(un.key)===-1,fn&&rt.push(un.key);else{var dn=rt.indexOf(un.key);fn=dn!==-1,fn&&rt.splice(dn,1)}Pt=Pt||fn};Array.isArray(et)?et.forEach(zt):zt(et),Pt&&("openKeys"in Me.props||Me.store.setState({openKeys:rt}),mt.onOpenChange(rt))},Me.onDeselect=function(et){var $e=Object(x.a)(Me),mt=$e.props;if(mt.selectable){var rt=Me.store.getState().selectedKeys.concat(),Pt=et.key,zt=rt.indexOf(Pt);zt!==-1&&rt.splice(zt,1),"selectedKeys"in mt||Me.store.setState({selectedKeys:rt}),mt.onDeselect(Object(b.a)(Object(b.a)({},et),{},{selectedKeys:rt}))}},Me.onMouseEnter=function(et){Me.restoreModeVerticalFromInline();var $e=Me.props.onMouseEnter;$e&&$e(et)},Me.onTransitionEnd=function(et){var $e=et.propertyName==="width"&&et.target===et.currentTarget,mt=et.target.className,rt=Object.prototype.toString.call(mt)==="[object SVGAnimatedString]"?mt.animVal:mt,Pt=et.propertyName==="font-size"&&rt.indexOf("anticon")>=0;($e||Pt)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function(et){Me.innerMenu=et},Me.isRootMenu=!0;var Xe=nt.defaultSelectedKeys,Ie=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Xe=nt.selectedKeys||[]),"openKeys"in nt&&(Ie=nt.openKeys||[]),Me.store=Object(T.c)({selectedKeys:Xe,openKeys:Ie,activeKey:{"0-menu-":Jn(nt,nt.activeKey)}}),Me.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Me.store},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){var Xe=this.props,Ie=Xe.siderCollapsed,et=Xe.inlineCollapsed,$e=Xe.onOpenChange;(!Me.inlineCollapsed&&et||!Me.siderCollapsed&&Ie)&&$e([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Xe=this.store,Ie=this.prevOpenKeys,et=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");et?(this.prevOpenKeys=Xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ie&&(this.store.setState({openKeys:Ie}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Xe=this.state.switchingModeFromInline,Ie=this.getInlineCollapsed();return Xe&&Ie?"inline":Ie?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Xe=Me.inlineCollapsed,Ie=Me.siderCollapsed;return Ie!==void 0?Ie:Xe}},{key:"restoreModeVerticalFromInline",value:function(){var Me=this.state.switchingModeFromInline;Me&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Me=Object(b.a)({},Object(U.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Xe=this.getRealMenuMode();return Me.className+=" ".concat(Me.prefixCls,"-root"),Me.direction==="rtl"&&(Me.className+=" ".concat(Me.prefixCls,"-rtl")),Me=Object(b.a)(Object(b.a)({},Me),{},{mode:Xe,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,Xe)}),delete Me.openAnimation,delete Me.openTransitionName,y.createElement(T.a,{store:this.store},y.createElement(Xt,Object(_.a)({},Me,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Me,Xe){var Ie=Xe.prevProps,et=Xe.store,$e=et.getState(),mt={},rt={prevProps:Me};return Ie.mode==="inline"&&Me.mode!=="inline"&&(rt.switchingModeFromInline=!0),"openKeys"in Me?mt.openKeys=Me.openKeys||[]:((Me.inlineCollapsed&&!Ie.inlineCollapsed||Me.siderCollapsed&&!Ie.siderCollapsed)&&(rt.switchingModeFromInline=!0,rt.inlineOpenKeys=$e.openKeys,mt.openKeys=[]),(!Me.inlineCollapsed&&Ie.inlineCollapsed||!Me.siderCollapsed&&Ie.siderCollapsed)&&(mt.openKeys=Xe.inlineOpenKeys,rt.inlineOpenKeys=[])),Object.keys(mt).length&&et.setState(mt),rt}}]),yt}(y.Component);tn.defaultProps={selectable:!0,onClick:ae,onSelect:ae,onOpenChange:ae,onDeselect:ae,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 Sn=tn,vn=function(qe){Object(S.a)(yt,qe);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.onKeyDown=function(Me){var Xe=Me.keyCode;return Xe===c.a.ENTER?(nt.onClick(Me),!0):void 0},nt.onMouseLeave=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.onItemHover,$e=Xe.onMouseLeave;et({key:Ie,hover:!1}),$e({key:Ie,domEvent:Me})},nt.onMouseEnter=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.onItemHover,$e=Xe.onMouseEnter;et({key:Ie,hover:!0}),$e({key:Ie,domEvent:Me})},nt.onClick=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.multiple,$e=Xe.onClick,mt=Xe.onSelect,rt=Xe.onDeselect,Pt=Xe.isSelected,zt={key:Ie,keyPath:[Ie],item:Object(x.a)(nt),domEvent:Me};$e(zt),et?Pt?rt(zt):mt(zt):Pt||mt(zt)},nt.saveNode=function(Me){nt.node=Me},nt}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Me=this.props;Me.onDestroy&&Me.onDestroy(Me.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Me,Xe=Object(b.a)({},this.props),Ie=O()(this.getPrefixCls(),Xe.className,(Me={},Object(M.a)(Me,this.getActiveClassName(),!Xe.disabled&&Xe.active),Object(M.a)(Me,this.getSelectedClassName(),Xe.isSelected),Object(M.a)(Me,this.getDisabledClassName(),Xe.disabled),Me)),et=Object(b.a)(Object(b.a)({},Xe.attribute),{},{title:typeof Xe.title=="string"?Xe.title:void 0,className:Ie,role:Xe.role||"menuitem","aria-disabled":Xe.disabled});Xe.role==="option"?et=Object(b.a)(Object(b.a)({},et),{},{role:"option","aria-selected":Xe.isSelected}):(Xe.role===null||Xe.role==="none")&&(et.role="none");var $e={onClick:Xe.disabled?null:this.onClick,onMouseLeave:Xe.disabled?null:this.onMouseLeave,onMouseEnter:Xe.disabled?null:this.onMouseEnter},mt=Object(b.a)({},Xe.style);Xe.mode==="inline"&&(Xe.direction==="rtl"?mt.paddingRight=Xe.inlineIndent*Xe.level:mt.paddingLeft=Xe.inlineIndent*Xe.level),J.forEach(function(Pt){return delete Xe[Pt]}),delete Xe.direction;var rt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(rt=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(_.a)({},Object(U.a)(Xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),et,$e,{style:mt,ref:this.saveNode}),Xe.children,rt)}}]),yt}(y.Component);vn.isMenuItem=!0,vn.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var kn=Object(T.b)(function(qe,dt){var yt=qe.activeKey,nt=qe.selectedKeys,Me=dt.eventKey,Xe=dt.subMenuKey;return{active:yt[Xe]===Me,isSelected:Array.isArray(nt)?nt.indexOf(Me)!==-1:nt===Me}})(vn),Fn=kn,ir=function(qe){Object(S.a)(yt,qe);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.renderInnerMenuItem=function(Me){var Xe=nt.props,Ie=Xe.renderMenuItem,et=Xe.index;return Ie(Me,et,nt.props.subMenuKey)},nt}return Object(R.a)(yt,[{key:"render",value:function(){var Me=Object(_.a)({},this.props),Xe=Me.className,Ie=Xe===void 0?"":Xe,et=Me.rootPrefixCls,$e="".concat(et,"-item-group-title"),mt="".concat(et,"-item-group-list"),rt=Me.title,Pt=Me.children;return J.forEach(function(zt){return delete Me[zt]}),delete Me.direction,y.createElement("li",Object(_.a)({},Me,{onClick:function(pn){return pn.stopPropagation()},className:"".concat(Ie," ").concat(et,"-item-group")}),y.createElement("div",{className:$e,title:typeof rt=="string"?rt:void 0},rt),y.createElement("ul",{className:mt},y.Children.map(Pt,this.renderInnerMenuItem)))}}]),yt}(y.Component);ir.isMenuItemGroup=!0,ir.defaultProps={disabled:!0};var qn=ir,Rr=function(dt){var yt=dt.className,nt=dt.rootPrefixCls,Me=dt.style;return y.createElement("li",{className:"".concat(yt," ").concat(nt,"-item-divider"),style:Me})};Rr.defaultProps={disabled:!0,className:"",style:{}};var Lr=Rr,Qn=Sn,Dr=o("eDIo");function mr(qe,dt){var yt=qe.prefixCls,nt=qe.editable,Me=qe.locale,Xe=qe.style;return!nt||nt.showAdd===!1?null:y.createElement("button",{ref:dt,type:"button",className:"".concat(yt,"-nav-add"),style:Xe,"aria-label":(Me==null?void 0:Me.addAriaLabel)||"Add tab",onClick:function(et){nt.onEdit("add",{event:et})}},nt.addIcon||"+")}var zr=y.forwardRef(mr);function Nr(qe,dt){var yt=qe.prefixCls,nt=qe.id,Me=qe.tabs,Xe=qe.locale,Ie=qe.mobile,et=qe.moreIcon,$e=et===void 0?"More":et,mt=qe.moreTransitionName,rt=qe.style,Pt=qe.className,zt=qe.editable,pn=qe.tabBarGutter,un=qe.rtl,fn=qe.onTabClick,dn=Object(y.useState)(!1),Kn=Object(g.a)(dn,2),xn=Kn[0],jr=Kn[1],Pr=Object(y.useState)(null),Qr=Object(g.a)(Pr,2),Wr=Qr[0],ta=Qr[1],Gn="".concat(nt,"-more-popup"),wr="".concat(yt,"-dropdown"),zn=Wr!==null?"".concat(Gn,"-").concat(Wr):null,En=Xe==null?void 0:Xe.dropdownAriaLabel,Wn=y.createElement(Qn,{onClick:function(Sa){var Tr=Sa.key,vr=Sa.domEvent;fn(Tr,vr),jr(!1)},id:Gn,tabIndex:-1,role:"listbox","aria-activedescendant":zn,selectedKeys:[Wr],"aria-label":En!==void 0?En:"expanded dropdown"},Me.map(function(ha){return y.createElement(Fn,{key:ha.key,id:"".concat(Gn,"-").concat(ha.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(ha.key),disabled:ha.disabled},ha.tab)}));function Vr(ha){for(var Sa=Me.filter(function(pa){return!pa.disabled}),Tr=Sa.findIndex(function(pa){return pa.key===Wr})||0,vr=Sa.length,Mr=0;Mr<vr;Mr+=1){Tr=(Tr+ha+vr)%vr;var tr=Sa[Tr];if(!tr.disabled){ta(tr.key);return}}}function ua(ha){var Sa=ha.which;if(!xn){[c.a.DOWN,c.a.SPACE,c.a.ENTER].includes(Sa)&&(jr(!0),ha.preventDefault());return}switch(Sa){case c.a.UP:Vr(-1),ha.preventDefault();break;case c.a.DOWN:Vr(1),ha.preventDefault();break;case c.a.ESC:jr(!1);break;case c.a.SPACE:case c.a.ENTER:Wr!==null&&fn(Wr,ha);break}}Object(y.useEffect)(function(){var ha=document.getElementById(zn);ha&&ha.scrollIntoView&&ha.scrollIntoView(!1)},[Wr]),Object(y.useEffect)(function(){xn||ta(null)},[xn]);var dr=Object(M.a)({},un?"marginLeft":"marginRight",pn);Me.length||(dr.visibility="hidden",dr.order=1);var aa=O()(Object(M.a)({},"".concat(wr,"-rtl"),un)),Ca=Ie?null:y.createElement(Dr.a,{prefixCls:wr,overlay:Wn,trigger:["hover"],visible:xn,transitionName:mt,onVisibleChange:jr,overlayClassName:aa,mouseEnterDelay:.1,mouseLeaveDelay:.1},y.createElement("button",{type:"button",className:"".concat(yt,"-nav-more"),style:dr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Gn,id:"".concat(nt,"-more"),"aria-expanded":xn,onKeyDown:ua},$e));return y.createElement("div",{className:O()("".concat(yt,"-nav-operations"),Pt),style:rt,ref:dt},Ca,y.createElement(zr,{prefixCls:yt,locale:Xe,editable:zt}))}var $r=y.forwardRef(Nr),nr=Object(y.createContext)(null),Kt=.1,en=.01,Yt=20,Xn=Math.pow(.995,Yt);function $n(){var qe=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(qe)||/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(qe.substr(0,4)))}function Un(qe,dt){var yt=Object(y.useState)(),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(y.useState)(0),et=Object(g.a)(Ie,2),$e=et[0],mt=et[1],rt=Object(y.useState)(0),Pt=Object(g.a)(rt,2),zt=Pt[0],pn=Pt[1],un=Object(y.useState)(),fn=Object(g.a)(un,2),dn=fn[0],Kn=fn[1],xn=Object(y.useRef)();function jr(En){var Wn=En.touches[0],Vr=Wn.screenX,ua=Wn.screenY;Xe({x:Vr,y:ua}),window.clearInterval(xn.current)}function Pr(En){if(!Me)return;En.preventDefault();var Wn=En.touches[0],Vr=Wn.screenX,ua=Wn.screenY;Xe({x:Vr,y:ua});var dr=Vr-Me.x,aa=ua-Me.y;dt(dr,aa);var Ca=Date.now();mt(Ca),pn(Ca-$e),Kn({x:dr,y:aa})}function Qr(){if(!Me)return;if(Xe(null),Kn(null),dn){var En=dn.x/zt,Wn=dn.y/zt,Vr=Math.abs(En),ua=Math.abs(Wn);if(Math.max(Vr,ua)<Kt)return;var dr=En,aa=Wn;xn.current=window.setInterval(function(){if(Math.abs(dr)<en&&Math.abs(aa)<en){window.clearInterval(xn.current);return}dr*=Xn,aa*=Xn,dt(dr*Yt,aa*Yt)},Yt)}}var Wr=Object(y.useRef)(0),ta=Object(y.useRef)(!1),Gn=Object(y.useRef)();function wr(En){var Wn=En.deltaX,Vr=En.deltaY,ua=0,dr=Math.abs(Wn),aa=Math.abs(Vr);dr===aa?ua=Gn.current==="x"?Wn:Vr:dr>aa?(ua=Wn,Gn.current="x"):(ua=Vr,Gn.current="y");var Ca=Date.now();Ca-Wr.current>100&&(ta.current=!1),(dt(-ua,-ua)||ta.current)&&(En.preventDefault(),ta.current=!0),Wr.current=Ca}var zn=Object(y.useRef)(null);zn.current={onTouchStart:jr,onTouchMove:Pr,onTouchEnd:Qr,onWheel:wr},y.useEffect(function(){function En(dr){zn.current.onTouchStart(dr)}function Wn(dr){zn.current.onTouchMove(dr)}function Vr(dr){zn.current.onTouchEnd(dr)}function ua(dr){zn.current.onWheel(dr)}return document.addEventListener("touchmove",Wn,{passive:!1}),document.addEventListener("touchend",Vr,{passive:!1}),qe.current.addEventListener("touchstart",En,{passive:!1}),qe.current.addEventListener("wheel",ua),function(){document.removeEventListener("touchmove",Wn),document.removeEventListener("touchend",Vr)}},[])}function rr(){var qe=Object(y.useRef)(new Map);function dt(nt){return qe.current.has(nt)||qe.current.set(nt,y.createRef()),qe.current.get(nt)}function yt(nt){qe.current.delete(nt)}return[dt,yt]}function ur(qe,dt){var yt=y.useRef(qe),nt=y.useState({}),Me=Object(g.a)(nt,2),Xe=Me[1];function Ie(et){var $e=typeof et=="function"?et(yt.current):et;$e!==yt.current&&dt($e,yt.current),yt.current=$e,Xe({})}return[yt.current,Ie]}var or=function(dt){var yt=dt.position,nt=dt.prefixCls,Me=dt.extra;if(!Me)return null;var Xe,Ie=Me;return yt==="right"&&(Xe=Ie.right||!Ie.left&&Ie||null),yt==="left"&&(Xe=Ie.left||null),Xe?y.createElement("div",{className:"".concat(nt,"-extra-content")},Xe):null};function qr(qe,dt){var yt,nt=y.useContext(nr),Me=nt.prefixCls,Xe=nt.tabs,Ie=qe.className,et=qe.style,$e=qe.id,mt=qe.animated,rt=qe.activeKey,Pt=qe.rtl,zt=qe.extra,pn=qe.editable,un=qe.locale,fn=qe.tabPosition,dn=qe.tabBarGutter,Kn=qe.children,xn=qe.onTabClick,jr=qe.onTabScroll,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useRef)(),ta=Object(y.useRef)(),Gn=rr(),wr=Object(g.a)(Gn,2),zn=wr[0],En=wr[1],Wn=fn==="top"||fn==="bottom",Vr=ur(0,function(Da,ya){Wn&&jr&&jr({direction:Da>ya?"left":"right"})}),ua=Object(g.a)(Vr,2),dr=ua[0],aa=ua[1],Ca=ur(0,function(Da,ya){!Wn&&jr&&jr({direction:Da>ya?"top":"bottom"})}),ha=Object(g.a)(Ca,2),Sa=ha[0],Tr=ha[1],vr=Object(y.useState)(0),Mr=Object(g.a)(vr,2),tr=Mr[0],pa=Mr[1],xa=Object(y.useState)(0),ba=Object(g.a)(xa,2),Aa=ba[0],ga=ba[1],Na=Object(y.useState)(0),ka=Object(g.a)(Na,2),Fa=ka[0],ni=ka[1],Fi=Object(y.useState)(0),Ai=Object(g.a)(Fi,2),La=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),ja=Object(g.a)(Si,2),Ma=ja[0],Za=ja[1],to=Object(y.useState)(null),Mo=Object(g.a)(to,2),Ii=Mo[0],no=Mo[1],ro=Object(y.useState)(0),mi=Object(g.a)(ro,2),uo=mi[0],Io=mi[1],Lo=Object(y.useState)(0),bo=Object(g.a)(Lo,2),Vi=bo[0],co=bo[1],Xi=r(new Map),Yi=Object(g.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=l(Xe,No,tr),Ji="".concat(Me,"-nav-operations-hidden"),Qi=0,ei=0;Wn?Pt?(Qi=0,ei=Math.max(0,tr-Ma)):(Qi=Math.min(0,Ma-tr),ei=0):(Qi=Math.min(0,Ii-Aa),ei=0);function Li(Da){return Da<Qi?[Qi,!1]:Da>ei?[ei,!1]:[Da,!0]}var Di=Object(y.useRef)(),Zi=Object(y.useState)(),Ri=Object(g.a)(Zi,2),Eo=Ri[0],xo=Ri[1];function Co(){xo(Date.now())}function io(){window.clearTimeout(Di.current)}Un(Pr,function(Da,ya){var Ga=!1;function ui(eo,ki){eo(function(ho){var wi=Li(ho+ki),qa=Object(g.a)(wi,2),po=qa[0],Hi=qa[1];return Ga=Hi,po})}if(Wn){if(Ma>=tr)return Ga;ui(aa,Da)}else{if(Ii>=Aa)return Ga;ui(Tr,ya)}return io(),Co(),Ga}),Object(y.useEffect)(function(){return io(),Eo&&(Di.current=window.setTimeout(function(){xo(0)},100)),io},[Eo]);function Ni(){var Da=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rt,ya=ao.get(Da);if(!ya)return;if(Wn){var Ga=dr;Pt?ya.right<dr?Ga=ya.right:ya.right+ya.width>dr+Ma&&(Ga=ya.right+ya.width-Ma):ya.left<-dr?Ga=-ya.left:ya.left+ya.width>-dr+Ma&&(Ga=-(ya.left+ya.width-Ma)),Tr(0),aa(Li(Ga)[0])}else{var ui=Sa;ya.top<-Sa?ui=-ya.top:ya.top+ya.height>-Sa+Ii&&(ui=-(ya.top+ya.height-Ii)),aa(0),Tr(Li(ui)[0])}}var qi=E(ao,{width:Ma,height:Ii,left:dr,top:Sa},{width:Fa,height:La},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},qe),{},{tabs:Xe})),ko=Object(g.a)(qi,2),oo=ko[0],so=ko[1],So=Xe.map(function(Da){var ya=Da.key;return y.createElement(d,{id:$e,prefixCls:Me,key:ya,rtl:Pt,tab:Da,closable:Da.closable,editable:pn,active:ya===rt,tabPosition:fn,tabBarGutter:dn,renderWrapper:Kn,removeAriaLabel:un==null?void 0:un.removeAriaLabel,ref:zn(ya),onClick:function(ui){xn(ya,ui)},onRemove:function(){En(ya)},onFocus:function(){Ni(ya),Co(),Pt||(Pr.current.scrollLeft=0),Pr.current.scrollTop=0}})}),Uo=i(function(){var Da,ya,Ga,ui,eo,ki,ho,wi,qa,po=((Da=Pr.current)===null||Da===void 0?void 0:Da.offsetWidth)||0,Hi=((ya=Pr.current)===null||ya===void 0?void 0:ya.offsetHeight)||0,mo=((Ga=ta.current)===null||Ga===void 0?void 0:Ga.offsetWidth)||0,hi=((ui=ta.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Pa=((eo=Wr.current)===null||eo===void 0?void 0:eo.offsetWidth)||0,sa=((ki=Wr.current)===null||ki===void 0?void 0:ki.offsetHeight)||0;Za(po),no(Hi),Io(mo),co(hi);var Er=(((ho=Qr.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-mo,Zr=(((wi=Qr.current)===null||wi===void 0?void 0:wi.offsetHeight)||0)-hi;pa(Er),ga(Zr);var va=(qa=Wr.current)===null||qa===void 0?void 0:qa.className.includes(Ji);ni(Er-(va?0:Pa)),bi(Zr-(va?0:sa)),yo(function(){var Wa=new Map;return Xe.forEach(function(Ei){var Pi=Ei.key,$a=zn(Pi).current;$a&&Wa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Wa})}),jo=Xe.slice(0,oo),fi=Xe.slice(so+1),Ha=[].concat(Object(f.a)(jo),Object(f.a)(fi)),ri=Object(y.useState)(),Xa=Object(g.a)(ri,2),ai=Xa[0],wo=Xa[1],yi=ao.get(rt),Bo=Object(y.useRef)();function To(){u.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Da={};return yi&&(Wn?(Pt?Da.right=yi.right:Da.left=yi.left,Da.width=yi.width):(Da.top=yi.top,Da.height=yi.height)),To(),Bo.current=u()(function(){wo(Da)}),To},[yi,Wn,Pt]),Object(y.useEffect)(function(){Ni()},[rt,yi,ao,Wn]),Object(y.useEffect)(function(){Uo()},[Pt,dn,rt,Xe.map(function(Da){return Da.key}).join("_")]);var $i=!!Ha.length,Wi="".concat(Me,"-nav-wrap"),Oo,fo,Wo,lo;return Wn?Pt?(fo=dr>0,Oo=dr+Ma<tr):(Oo=dr<0,fo=-dr+Ma<tr):(Wo=Sa<0,lo=-Sa+Ii<Aa),y.createElement("div",{ref:dt,role:"tablist",className:O()("".concat(Me,"-nav"),Ie),style:et,onKeyDown:function(){Co()}},y.createElement(or,{position:"left",extra:zt,prefixCls:Me}),y.createElement(n.a,{onResize:Uo},y.createElement("div",{className:O()(Wi,(yt={},Object(M.a)(yt,"".concat(Wi,"-ping-left"),Oo),Object(M.a)(yt,"".concat(Wi,"-ping-right"),fo),Object(M.a)(yt,"".concat(Wi,"-ping-top"),Wo),Object(M.a)(yt,"".concat(Wi,"-ping-bottom"),lo),yt)),ref:Pr},y.createElement(n.a,{onResize:Uo},y.createElement("div",{ref:Qr,className:"".concat(Me,"-nav-list"),style:{transform:"translate(".concat(dr,"px, ").concat(Sa,"px)"),transition:Eo?"none":void 0}},So,y.createElement(zr,{ref:ta,prefixCls:Me,locale:un,editable:pn,style:{visibility:$i?"hidden":null}}),y.createElement("div",{className:O()("".concat(Me,"-ink-bar"),Object(M.a)({},"".concat(Me,"-ink-bar-animated"),mt.inkBar)),style:ai}))))),y.createElement($r,Object.assign({},qe,{ref:Wr,prefixCls:Me,tabs:Ha,className:!$i&&Ji})),y.createElement(or,{position:"right",extra:zt,prefixCls:Me}))}var sr=y.forwardRef(qr);function da(qe){var dt=qe.id,yt=qe.activeKey,nt=qe.animated,Me=qe.tabPosition,Xe=qe.rtl,Ie=qe.destroyInactiveTabPane,et=y.useContext(nr),$e=et.prefixCls,mt=et.tabs,rt=nt.tabPane,Pt=mt.findIndex(function(zt){return zt.key===yt});return y.createElement("div",{className:O()("".concat($e,"-content-holder"))},y.createElement("div",{className:O()("".concat($e,"-content"),"".concat($e,"-content-").concat(Me),Object(M.a)({},"".concat($e,"-content-animated"),rt)),style:Pt&&rt?Object(M.a)({},Xe?"marginRight":"marginLeft","-".concat(Pt,"00%")):null},mt.map(function(zt){return y.cloneElement(zt.node,{key:zt.key,prefixCls:$e,tabKey:zt.key,id:dt,animated:rt,active:zt.key===yt,destroyInactiveTabPane:Ie})})))}function Yr(qe){var dt=qe.prefixCls,yt=qe.forceRender,nt=qe.className,Me=qe.style,Xe=qe.id,Ie=qe.active,et=qe.animated,$e=qe.destroyInactiveTabPane,mt=qe.tabKey,rt=qe.children,Pt=y.useState(yt),zt=Object(g.a)(Pt,2),pn=zt[0],un=zt[1];y.useEffect(function(){Ie?un(!0):$e&&un(!1)},[Ie,$e]);var fn={};return Ie||(et?(fn.visibility="hidden",fn.height=0,fn.overflowY="hidden"):fn.display="none"),y.createElement("div",{id:Xe&&"".concat(Xe,"-panel-").concat(mt),role:"tabpanel",tabIndex:Ie?0:-1,"aria-labelledby":Xe&&"".concat(Xe,"-tab-").concat(mt),"aria-hidden":!Ie,style:Object(b.a)(Object(b.a)({},fn),Me),className:O()("".concat(dt,"-tabpane"),Ie&&"".concat(dt,"-tabpane-active"),nt)},(Ie||pn||yt)&&rt)}var gr=0;function Sr(qe){return Object(m.a)(qe).map(function(dt){if(y.isValidElement(dt)){var yt=dt.key!==void 0?String(dt.key):void 0;return Object(b.a)(Object(b.a)({key:yt},dt.props),{},{node:dt})}return null}).filter(function(dt){return dt})}function Kr(qe,dt){var yt,nt=qe.id,Me=qe.prefixCls,Xe=Me===void 0?"rc-tabs":Me,Ie=qe.className,et=qe.children,$e=qe.direction,mt=qe.activeKey,rt=qe.defaultActiveKey,Pt=qe.editable,zt=qe.animated,pn=qe.tabPosition,un=pn===void 0?"top":pn,fn=qe.tabBarGutter,dn=qe.tabBarStyle,Kn=qe.tabBarExtraContent,xn=qe.locale,jr=qe.moreIcon,Pr=qe.moreTransitionName,Qr=qe.destroyInactiveTabPane,Wr=qe.renderTabBar,ta=qe.onChange,Gn=qe.onTabClick,wr=qe.onTabScroll,zn=Object(A.a)(qe,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),En=Sr(et),Wn=$e==="rtl",Vr;zt===!1?Vr={inkBar:!1,tabPane:!1}:Vr=Object(b.a)({inkBar:!0,tabPane:!1},zt!==!0?zt:null);var ua=Object(y.useState)(!1),dr=Object(g.a)(ua,2),aa=dr[0],Ca=dr[1];Object(y.useEffect)(function(){Ca($n())},[]);var ha=Object(e.a)(function(){var La;return(La=En[0])===null||La===void 0?void 0:La.key},{value:mt,defaultValue:rt}),Sa=Object(g.a)(ha,2),Tr=Sa[0],vr=Sa[1],Mr=Object(y.useState)(function(){return En.findIndex(function(La){return La.key===Tr})}),tr=Object(g.a)(Mr,2),pa=tr[0],xa=tr[1];Object(y.useEffect)(function(){var La=En.findIndex(function(Si){return Si.key===Tr});if(La===-1){var bi;La=Math.max(0,Math.min(pa,En.length-1)),vr((bi=En[La])===null||bi===void 0?void 0:bi.key)}xa(La)},[En.map(function(La){return La.key}).join("_"),Tr,pa]);var ba=Object(e.a)(null,{value:nt}),Aa=Object(g.a)(ba,2),ga=Aa[0],Na=Aa[1],ka=un;aa&&!["left","right"].includes(un)&&(ka="top"),Object(y.useEffect)(function(){nt||(Na("rc-tabs-".concat(gr)),gr+=1)},[]);function Fa(La,bi){Gn==null||Gn(La,bi),vr(La),ta==null||ta(La)}var ni={id:ga,activeKey:Tr,animated:Vr,tabPosition:ka,rtl:Wn,mobile:aa},Fi,Ai=Object(b.a)(Object(b.a)({},ni),{},{editable:Pt,locale:xn,moreIcon:jr,moreTransitionName:Pr,tabBarGutter:fn,onTabClick:Fa,onTabScroll:wr,extra:Kn,style:dn,panes:et});return Wr?Fi=Wr(Ai,sr):Fi=y.createElement(sr,Object.assign({},Ai)),y.createElement(nr.Provider,{value:{tabs:En,prefixCls:Xe}},y.createElement("div",Object.assign({ref:dt,id:nt,className:O()(Xe,"".concat(Xe,"-").concat(ka),(yt={},Object(M.a)(yt,"".concat(Xe,"-mobile"),aa),Object(M.a)(yt,"".concat(Xe,"-editable"),Pt),Object(M.a)(yt,"".concat(Xe,"-rtl"),Wn),yt),Ie)},zn),Fi,y.createElement(da,Object.assign({destroyInactiveTabPane:Qr},ni,{animated:Vr}))))}var Jr=y.forwardRef(Kr);Jr.TabPane=Yr;var Oa=Jr,_a=z.b=Oa},kPWJ:function(k,z,o){k.exports=o.p+"static/question.cb52bef9.gif"},kPYp:function(k,z){k.exports="data:image/png;base64,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"},kSUc:function(k,z,o){},l2Kq:function(k,z,o){k.exports=o.p+"static/match_ad.24dc22fd.jpg"},lPiR:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(g){var A=M,b=A.lib,y=b.WordArray,C=b.Hasher,O=A.algo,m=[],e=[];(function(){function u(c){for(var h=g.sqrt(c),d=2;d<=h;d++)if(!(c%d))return!1;return!0}function n(c){return(c-(c|0))*4294967296|0}for(var i=2,r=0;r<64;)u(i)&&(r<8&&(m[r]=n(g.pow(i,1/2))),e[r]=n(g.pow(i,1/3)),r++),i++})();var f=[],a=O.SHA256=C.extend({_doReset:function(){this._hash=new y.init(m.slice(0))},_doProcessBlock:function(u,n){for(var i=this._hash.words,r=i[0],c=i[1],h=i[2],d=i[3],s=i[4],l=i[5],w=i[6],E=i[7],_=0;_<64;_++){if(_<16)f[_]=u[n+_]|0;else{var P=f[_-15],R=(P<<25|P>>>7)^(P<<14|P>>>18)^P>>>3,x=f[_-2],S=(x<<15|x>>>17)^(x<<13|x>>>19)^x>>>10;f[_]=R+f[_-7]+S+f[_-16]}var v=s&l^~s&w,T=r&c^r&h^c&h,U=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),L=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=E+L+v+e[_]+f[_],V=U+T;E=w,w=l,l=s,s=d+N|0,d=h,h=c,c=r,r=N+V|0}i[0]=i[0]+r|0,i[1]=i[1]+c|0,i[2]=i[2]+h|0,i[3]=i[3]+d|0,i[4]=i[4]+s|0,i[5]=i[5]+l|0,i[6]=i[6]+w|0,i[7]=i[7]+E|0},_doFinalize:function(){var u=this._data,n=u.words,i=this._nDataBytes*8,r=u.sigBytes*8;return n[r>>>5]|=128<<24-r%32,n[(r+64>>>9<<4)+14]=g.floor(i/4294967296),n[(r+64>>>9<<4)+15]=i,u.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var u=C.clone.call(this);return u._hash=this._hash.clone(),u}});A.SHA256=C._createHelper(a),A.HmacSHA256=C._createHmacHelper(a)}(Math),M.SHA256})},lZu9:function(k,z,o){(function(M){M(o("VrN/"),o("1eCo"),o("8EBN"))})(function(M){"use strict";M.defineMode("markdown",function(g,A){var b=M.getMode(g,"text/html"),y=b.name=="null";function C(F){if(M.findModeByName){var I=M.findModeByName(F);I&&(F=I.mime||I.mimes[0])}var K=M.getMode(g,F);return K.name=="null"?null:K}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 O={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 m in O)O.hasOwnProperty(m)&&A.tokenTypeOverrides[m]&&(O[m]=A.tokenTypeOverrides[m]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,f=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,u=A.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,n=/^ {0,3}(?:\={1,}|-{2,})\s*$/,i=/^[^#!\[\]*_\\<>` "'(~:]+/,r=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,c=/^\s*\[[^\]]+?\]:.*$/,h=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,d=" ";function s(F,I,K){return I.f=I.inline=K,K(F,I)}function l(F,I,K){return I.f=I.block=K,K(F,I)}function w(F){return!F||!/\S/.test(F.string)}function E(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==P){var I=y;if(!I){var K=M.innerMode(b,F.htmlState);I=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}I&&(F.f=v,F.block=_,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function _(F,I){var K=F.column()===I.indentation,ee=w(I.prevLine.stream),he=I.indentedCode,de=I.prevLine.hr,Se=I.list!==!1,Te=(I.listStack[I.listStack.length-1]||0)+3;I.indentedCode=!1;var ce=I.indentation;if(I.indentationDiff===null&&(I.indentationDiff=I.indentation,Se)){for(I.list=null;ce<I.listStack[I.listStack.length-1];)I.listStack.pop(),I.listStack.length?I.indentation=I.listStack[I.listStack.length-1]:I.list=!1;I.list!==!1&&(I.indentationDiff=ce-I.listStack[I.listStack.length-1])}var be=!ee&&!de&&!I.prevLine.header&&(!Se||!he)&&!I.prevLine.fencedCodeEnd,ye=(I.list===!1||de||ee)&&I.indentation<=Te&&F.match(e),ue=null;if(I.indentationDiff>=4&&(he||I.prevLine.fencedCodeEnd||I.prevLine.header||ee))return F.skipToEnd(),I.indentedCode=!0,O.code;if(F.eatSpace())return null;if(K&&I.indentation<=Te&&(ue=F.match(u))&&ue[1].length<=6)return I.quote=0,I.header=ue[1].length,I.thisLine.header=!0,A.highlightFormatting&&(I.formatting="header"),I.f=I.inline,x(I);if(I.indentation<=Te&&F.eat(">"))return I.quote=K?1:I.quote+1,A.highlightFormatting&&(I.formatting="quote"),F.eatSpace(),x(I);if(!ye&&!I.setext&&K&&I.indentation<=Te&&(ue=F.match(f))){var se=ue[1]?"ol":"ul";return I.indentation=ce+F.current().length,I.list=!0,I.quote=0,I.listStack.push(I.indentation),I.em=!1,I.strong=!1,I.code=!1,I.strikethrough=!1,A.taskLists&&F.match(a,!1)&&(I.taskList=!0),I.f=I.inline,A.highlightFormatting&&(I.formatting=["list","list-"+se]),x(I)}else{if(K&&I.indentation<=Te&&(ue=F.match(r,!0)))return I.quote=0,I.fencedEndRE=new RegExp(ue[1]+"+ *$"),I.localMode=A.fencedCodeBlockHighlighting&&C(ue[2]||A.fencedCodeBlockDefaultMode),I.localMode&&(I.localState=M.startState(I.localMode)),I.f=I.block=R,A.highlightFormatting&&(I.formatting="code-block"),I.code=-1,x(I);if(I.setext||(!be||!Se)&&!I.quote&&I.list===!1&&!I.code&&!ye&&!c.test(F.string)&&(ue=F.lookAhead(1))&&(ue=ue.match(n)))return I.setext?(I.header=I.setext,I.setext=0,F.skipToEnd(),A.highlightFormatting&&(I.formatting="header")):(I.header=ue[0].charAt(0)=="="?1:2,I.setext=I.header),I.thisLine.header=!0,I.f=I.inline,x(I);if(ye)return F.skipToEnd(),I.hr=!0,I.thisLine.hr=!0,O.hr;if(F.peek()==="[")return s(F,I,V)}return s(F,I,I.inline)}function P(F,I){var K=b.token(F,I.htmlState);if(!y){var ee=M.innerMode(b,I.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||I.md_inside&&F.current().indexOf(">")>-1)&&(I.f=v,I.block=_,I.htmlState=null)}return K}function R(F,I){var K=I.listStack[I.listStack.length-1]||0,ee=I.indentation<K,he=K+3;if(I.fencedEndRE&&I.indentation<=he&&(ee||F.match(I.fencedEndRE))){A.highlightFormatting&&(I.formatting="code-block");var de;return ee||(de=x(I)),I.localMode=I.localState=null,I.block=_,I.f=v,I.fencedEndRE=null,I.code=0,I.thisLine.fencedCodeEnd=!0,ee?l(F,I,I.block):de}else return I.localMode?I.localMode.token(F,I.localState):(F.skipToEnd(),O.code)}function x(F){var I=[];if(F.formatting){I.push(O.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var K=0;K<F.formatting.length;K++)I.push(O.formatting+"-"+F.formatting[K]),F.formatting[K]==="header"&&I.push(O.formatting+"-"+F.formatting[K]+"-"+F.header),F.formatting[K]==="quote"&&(!A.maxBlockquoteDepth||A.maxBlockquoteDepth>=F.quote?I.push(O.formatting+"-"+F.formatting[K]+"-"+F.quote):I.push("error"))}if(F.taskOpen)return I.push("meta"),I.length?I.join(" "):null;if(F.taskClosed)return I.push("property"),I.length?I.join(" "):null;if(F.linkHref?I.push(O.linkHref,"url"):(F.strong&&I.push(O.strong),F.em&&I.push(O.em),F.strikethrough&&I.push(O.strikethrough),F.emoji&&I.push(O.emoji),F.linkText&&I.push(O.linkText),F.code&&I.push(O.code),F.image&&I.push(O.image),F.imageAltText&&I.push(O.imageAltText,"link"),F.imageMarker&&I.push(O.imageMarker)),F.header&&I.push(O.header,O.header+"-"+F.header),F.quote&&(I.push(O.quote),!A.maxBlockquoteDepth||A.maxBlockquoteDepth>=F.quote?I.push(O.quote+"-"+F.quote):I.push(O.quote+"-"+A.maxBlockquoteDepth)),F.list!==!1){var ee=(F.listStack.length-1)%3;ee?ee===1?I.push(O.list2):I.push(O.list3):I.push(O.list1)}return F.trailingSpaceNewLine?I.push("trailing-space-new-line"):F.trailingSpace&&I.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),I.length?I.join(" "):null}function S(F,I){return F.match(i,!0)?x(I):void 0}function v(F,I){var K=I.text(F,I);if(typeof K!="undefined")return K;if(I.list)return I.list=null,x(I);if(I.taskList){var ee=F.match(a,!0)[1]===" ";return ee?I.taskOpen=!0:I.taskClosed=!0,A.highlightFormatting&&(I.formatting="task"),I.taskList=!1,x(I)}if(I.taskOpen=!1,I.taskClosed=!1,I.header&&F.match(/^#+$/,!0))return A.highlightFormatting&&(I.formatting="header"),x(I);var he=F.next();if(I.linkTitle){I.linkTitle=!1;var de=he;he==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Se="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(F.match(new RegExp(Se),!0))return O.linkHref}if(he==="`"){var Te=I.formatting;A.highlightFormatting&&(I.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(I.code==0&&(!I.quote||ce==1))return I.code=ce,x(I);if(ce==I.code){var be=x(I);return I.code=0,be}else return I.formatting=Te,x(I)}else if(I.code)return x(I);if(he==="\\"&&(F.next(),A.highlightFormatting)){var ye=x(I),ue=O.formatting+"-escape";return ye?ye+" "+ue:ue}if(he==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return I.imageMarker=!0,I.image=!0,A.highlightFormatting&&(I.formatting="image"),x(I);if(he==="["&&I.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return I.imageMarker=!1,I.imageAltText=!0,A.highlightFormatting&&(I.formatting="image"),x(I);if(he==="]"&&I.imageAltText){A.highlightFormatting&&(I.formatting="image");var ye=x(I);return I.imageAltText=!1,I.image=!1,I.inline=I.f=U,ye}if(he==="["&&!I.image)return I.linkText&&F.match(/^.*?\]/)||(I.linkText=!0,A.highlightFormatting&&(I.formatting="link")),x(I);if(he==="]"&&I.linkText){A.highlightFormatting&&(I.formatting="link");var ye=x(I);return I.linkText=!1,I.inline=I.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?U:v,ye}if(he==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=T,A.highlightFormatting&&(I.formatting="link");var ye=x(I);return ye?ye+=" ":ye="",ye+O.linkInline}if(he==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=T,A.highlightFormatting&&(I.formatting="link");var ye=x(I);return ye?ye+=" ":ye="",ye+O.linkEmail}if(A.xml&&he==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var se=F.string.indexOf(">",F.pos);if(se!=-1){var $=F.string.substring(F.start,se);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($)&&(I.md_inside=!0)}return F.backUp(1),I.htmlState=M.startState(b),l(F,I,P)}if(A.xml&&he==="<"&&F.match(/^\/\w*?>/))return I.md_inside=!1,"tag";if(he==="*"||he==="_"){for(var me=1,re=F.pos==1?" ":F.string.charAt(F.pos-2);me<3&&F.eat(he);)me++;var ae=F.peek()||" ",Oe=!/\s/.test(ae)&&(!h.test(ae)||/\s/.test(re)||h.test(re)),le=!/\s/.test(re)&&(!h.test(re)||/\s/.test(ae)||h.test(ae)),te=null,Q=null;if(me%2&&(!I.em&&Oe&&(he==="*"||!le||h.test(re))?te=!0:I.em==he&&le&&(he==="*"||!Oe||h.test(ae))&&(te=!1)),me>1&&(!I.strong&&Oe&&(he==="*"||!le||h.test(re))?Q=!0:I.strong==he&&le&&(he==="*"||!Oe||h.test(ae))&&(Q=!1)),Q!=null||te!=null){A.highlightFormatting&&(I.formatting=te==null?"strong":Q==null?"em":"strong em"),te===!0&&(I.em=he),Q===!0&&(I.strong=he);var be=x(I);return te===!1&&(I.em=!1),Q===!1&&(I.strong=!1),be}}else if(he===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return x(I);F.backUp(1)}if(A.strikethrough){if(he==="~"&&F.eatWhile(he)){if(I.strikethrough){A.highlightFormatting&&(I.formatting="strikethrough");var be=x(I);return I.strikethrough=!1,be}else if(F.match(/^[^\s]/,!1))return I.strikethrough=!0,A.highlightFormatting&&(I.formatting="strikethrough"),x(I)}else if(he===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return x(I);F.backUp(2)}}if(A.emoji&&he===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){I.emoji=!0,A.highlightFormatting&&(I.formatting="emoji");var J=x(I);return I.emoji=!1,J}return he===" "&&(F.match(/^ +$/,!1)?I.trailingSpace++:I.trailingSpace&&(I.trailingSpaceNewLine=!0)),x(I)}function T(F,I){var K=F.next();if(K===">"){I.f=I.inline=v,A.highlightFormatting&&(I.formatting="link");var ee=x(I);return ee?ee+=" ":ee="",ee+O.linkInline}return F.match(/^[^>]+/,!0),O.linkInline}function U(F,I){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(I.f=I.inline=N(K==="("?")":"]"),A.highlightFormatting&&(I.formatting="link-string"),I.linkHref=!0,x(I)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(I,K){var ee=I.next();if(ee===F){K.f=K.inline=v,A.highlightFormatting&&(K.formatting="link-string");var he=x(K);return K.linkHref=!1,he}return I.match(L[F]),K.linkHref=!0,x(K)}}function V(F,I){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(I.f=H,F.next(),A.highlightFormatting&&(I.formatting="link"),I.linkText=!0,x(I)):s(F,I,v)}function H(F,I){if(F.match(/^\]:/,!0)){I.f=I.inline=D,A.highlightFormatting&&(I.formatting="link");var K=x(I);return I.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),O.linkText}function D(F,I){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?I.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),I.f=I.inline=v,O.linkHref+" url")}var W={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:v,text:S,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(F){return{f:F.f,prevLine:F.prevLine,thisLine:F.thisLine,block:F.block,htmlState:F.htmlState&&M.copyState(b,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?M.copyState(F.localMode,F.localState):null,inline:F.inline,text:F.text,formatting:!1,linkText:F.linkText,linkTitle:F.linkTitle,linkHref:F.linkHref,code:F.code,em:F.em,strong:F.strong,strikethrough:F.strikethrough,emoji:F.emoji,header:F.header,setext:F.setext,hr:F.hr,taskList:F.taskList,list:F.list,listStack:F.listStack.slice(0),quote:F.quote,indentedCode:F.indentedCode,trailingSpace:F.trailingSpace,trailingSpaceNewLine:F.trailingSpaceNewLine,md_inside:F.md_inside,fencedEndRE:F.fencedEndRE}},token:function(F,I){if(I.formatting=!1,F!=I.thisLine.stream){if(I.header=0,I.hr=!1,F.match(/^\s*$/,!0))return E(I),null;if(I.prevLine=I.thisLine,I.thisLine={stream:F},I.taskList=!1,I.trailingSpace=0,I.trailingSpaceNewLine=!1,!I.localState&&(I.f=I.block,I.f!=P)){var K=F.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(I.indentation=K,I.indentationDiff=null,K>0)return null}}return I.f(F,I)},innerMode:function(F){return F.block==P?{state:F.htmlState,mode:b}:F.localState?{state:F.localState,mode:F.localMode}:{state:F,mode:W}},indent:function(F,I,K){return F.block==P&&b.indent?b.indent(F.htmlState,I,K):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,I,K):M.Pass},blankLine:E,getType:x,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return W},"xml"),M.defineMIME("text/markdown","markdown"),M.defineMIME("text/x-markdown","markdown")})},luix:function(k,z,o){k.exports=o.p+"static/tips.2ae2707a.svg"},lzim:function(k,z,o){"use strict";var M=o("E7E6"),g=o.n(M);o.d(z,"w",function(){return g.a});var A=o("/GNS"),b=o.n(A);o.d(z,"v",function(){return b.a});var y=o("FOrL"),C=o.n(y);o.d(z,"q",function(){return C.a});var O=o("HpTS"),m=o.n(O);o.d(z,"x",function(){return m.a});var e=o("tWlo"),f=o.n(e);o.d(z,"a",function(){return f.a});var a=o("7ZXX"),u=o.n(a);o.d(z,"l",function(){return u.a});var n=o("GABl"),i=o.n(n);o.d(z,"e",function(){return i.a});var r=o("onxn"),c=o.n(r);o.d(z,"n",function(){return c.a});var h=o("nKGa"),d=o.n(h);o.d(z,"m",function(){return d.a});var s=o("4qgm"),l=o.n(s);o.d(z,"y",function(){return l.a});var w=o("JeFH"),E=o.n(w);o.d(z,"b",function(){return E.a});var _=o("ji0R"),P=o.n(_);o.d(z,"i",function(){return P.a});var R=o("W6BS"),x=o.n(R);o.d(z,"z",function(){return x.a});var S=o("kPYp"),v=o.n(S);o.d(z,"A",function(){return v.a});var T=o("nukY"),U=o.n(T),L=o("4u4S"),N=o.n(L),V=o("yslc"),H=o.n(V),D=o("l2Kq"),W=o.n(D),F=o("RMFE"),I=o.n(F);o.d(z,"o",function(){return I.a});var K=o("TGq3"),ee=o.n(K),he=o("SMhR"),de=o.n(he),Se=o("8/bI"),Te=o.n(Se);o.d(z,"j",function(){return Te.a});var ce=o("JWDV"),be=o.n(ce),ye=o("Xsq0"),ue=o.n(ye);o.d(z,"p",function(){return ue.a});var se=o("Ohmc"),$=o.n(se);o.d(z,"c",function(){return $.a});var me=o("csWT"),re=o.n(me);o.d(z,"d",function(){return re.a});var ae=o("7v3h"),Oe=o.n(ae);o.d(z,"k",function(){return Oe.a});var le=o("cRFk"),te=o.n(le);o.d(z,"u",function(){return te.a});var Q=o("kPWJ"),J=o.n(Q);o.d(z,"t",function(){return J.a});var ve=o("qgvg"),_e=o.n(ve);o.d(z,"r",function(){return _e.a});var Ae=o("FPkq"),Je=o.n(Ae);o.d(z,"s",function(){return Je.a});var tt=o("A/g1"),ut=o.n(tt);o.d(z,"f",function(){return ut.a});var ht=o("Nmxd"),vt=o.n(ht);o.d(z,"g",function(){return vt.a});var _t=o("5D2P"),Ve=o.n(_t);o.d(z,"h",function(){return Ve.a});var Ue=o("djh8"),pt=o.n(Ue),Ut=o("Jq4h"),Et=o.n(Ut)},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(k){if(!0)module.exports=k();else var z})(function(){var define,module,exports;return function(){function k(z,o,M){function g(y,C){if(!o[y]){if(!z[y]){var O=typeof require=="function"&&require;if(!C&&O)return require(y,!0);if(A)return A(y,!0);var m=new Error("Cannot find module '"+y+"'");throw m.code="MODULE_NOT_FOUND",m}var e=o[y]={exports:{}};z[y][0].call(e.exports,function(f){var a=z[y][1][f];return g(a||f)},e,e.exports,k,z,o,M)}return o[y].exports}for(var A=typeof require=="function"&&require,b=0;b<M.length;b++)g(M[b]);return g}return k}()({1:[function(k,z,o){"use strict";var M=k("./browser/client");M.Buffer=k("buffer").Buffer,M.urllib=k("../shims/xhr"),M.version=k("./browser/version").version,z.exports=M},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(k,z,o){(function(M,g){"use strict";var A=k("babel-runtime/core-js/promise"),b=e(A),y=k("babel-runtime/regenerator"),C=e(y),O=k("babel-runtime/core-js/object/assign"),m=e(O);function e(V){return V&&V.__esModule?V:{default:V}}var f=k("debug")("ali-oss"),a=k("copy-to"),u=k("xml2js"),n=k("agentkeepalive"),i=k("merge-descriptors"),r=k("url"),c=k("is-type-of"),h=k("platform"),d=k("utility"),s=k("urllib"),l=k("./version"),w=k("bowser"),E=k("../common/signUtils"),_=k("../common/utils/isIP"),P=_.isIP,R=k("../common/client/initOptions"),x=k("../common/utils/createRequest"),S=x.createRequest,v=new n;function T(){var V=h.name,H=h.version;V&&V.toLowerCase&&V.toLowerCase()==="ie"&&H.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function U(){return location&&location.protocol==="https:"}function L(V,H){if(T(),!(this instanceof L))return new L(V,H);V&&V.inited?this.options=V:this.options=L.initOptions(V),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=s,this.agent=this.options.agent||v),this.ctx=H,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}z.exports=L,L.initOptions=function(H){H.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var D=(0,m.default)({secure:U(),useFetch:!1},H);return R(D)};var N=L.prototype;N.debug=f,i(N,k("./object")),i(N,k("../common/bucket/getBucketWebsite")),i(N,k("../common/bucket/putBucketWebsite")),i(N,k("../common/bucket/deleteBucketWebsite")),i(N,k("../common/bucket/getBucketLifecycle")),i(N,k("../common/bucket/putBucketLifecycle")),i(N,k("../common/bucket/deleteBucketLifecycle")),i(N,k("../common/bucket/putBucketVersioning")),i(N,k("../common/bucket/getBucketVersioning")),i(N,k("./managed-upload")),i(N,k("../common/multipart")),i(N,k("../common/parallel")),N.signature=function(H){return this.debug("authorization stringToSign: %s",H,"info"),E.computeSignature(this.options.accessKeySecret,H)},N.authorization=function(H,D,W,F){var I=E.buildCanonicalString(H.toUpperCase(),D,{headers:F,parameters:W});return E.authorization(this.options.accessKeyId,this.options.accessKeySecret,I)},N.request=function(H){var D,W,F,I,K,ee;return C.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return D=S.call(this,H),this.options.useFetch||(D.params.mode="disable-fetch"),W=void 0,F=void 0,I=!!H.stream,de.prev=5,de.next=8,C.default.awrap(this.urllib.request(D.url,D.params));case 8:W=de.sent,this.debug("response %s %s, got %s, headers: %j",H.method,D.url,W.status,W.headers,"info"),de.next=15;break;case 12:de.prev=12,de.t0=de.catch(5),F=de.t0;case 15:if(K=void 0,!(W&&H.successStatuses&&H.successStatuses.indexOf(W.status)===-1)){de.next=28;break}return de.next=19,C.default.awrap(this.requestError(W));case 19:if(K=de.sent,!(K.code==="RequestTimeTooSkewed"&&!I)){de.next=25;break}return this.options.amendTimeSkewed=+new Date(K.serverTime)-new Date,de.next=24,C.default.awrap(this.request(H));case 24:return de.abrupt("return",de.sent);case 25:K.params=H,de.next=32;break;case 28:if(!F){de.next=32;break}return de.next=31,C.default.awrap(this.requestError(F));case 31:K=de.sent;case 32:if(!K){de.next=34;break}throw K;case 34:if(!H.xmlResponse){de.next=39;break}return de.next=37,C.default.awrap(this.parseXML(W.data));case 37:ee=de.sent,W.data=ee;case 39:return de.abrupt("return",W);case 40:case"end":return de.stop()}},null,this,[[5,12]])},N._getResource=function(H){var D="/";return H.bucket&&(D+=H.bucket+"/"),H.object&&(D+=H.object),D},N._isIP=P,N._escape=function(H){return d.encodeURIComponent(H).replace(/%2F/g,"/")},N._getReqUrl=function(H){var D={};a(this.options.endpoint).to(D);var W=this._isIP(D.hostname),F=this.options.cname;H.bucket&&!F&&!W&&(D.host=H.bucket+"."+D.host);var I="/";H.bucket&&W&&(I+=H.bucket+"/"),H.object&&(I+=this._escape(H.object).replace(/\+/g,"%2B")),D.pathname=I;var K={};if(H.query&&i(K,H.query),H.subres){var ee={};c.string(H.subres)?ee[H.subres]="":c.array(H.subres)?H.subres.forEach(function(he){ee[he]=""}):ee=H.subres,i(K,ee)}return D.query=K,r.format(D)},N._getUserAgent=function(){var H=g&&g.browser?"js":"nodejs",D="aliyun-sdk-"+H+"/"+l.version,W=h.description;return!W&&g&&(W="Node.js "+g.version.slice(1)+" on "+g.platform+" "+g.arch),this._checkUserAgent(D+" "+W)},N._checkUserAgent=function(H){var D=H.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return D},N.checkBrowserAndVersion=function(H,D){return w.name===H&&w.version.split(".")[0]===D},N.parseXML=function(H){return new b.default(function(D,W){M.isBuffer(H)&&(H=H.toString()),u.parseString(H,{explicitRoot:!1,explicitArray:!1},function(F,I){F?W(F):D(I)})})},N.requestError=function(H){var D,W,F,I;return C.default.async(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(D=null,!(!H.data||!H.data.length)){ee.next=5;break}H.status===-1||H.status===-2?(D=new Error(H.message),D.name=H.name,D.status=H.status,D.code=H.name):(H.status===404?(D=new Error("Object not exists"),D.name="NoSuchKeyError",D.status=404,D.code="NoSuchKey"):H.status===412?(D=new Error("Pre condition failed"),D.name="PreconditionFailedError",D.status=412,D.code="PreconditionFailed"):(D=new Error("Unknow error, status: "+H.status),D.name="UnknowError",D.status=H.status),D.requestId=H.headers["x-oss-request-id"],D.host=""),ee.next=33;break;case 5:return W=String(H.data),this.debug("request response error data: %s",W,"error"),F=void 0,ee.prev=8,ee.next=11,C.default.awrap(this.parseXML(W));case 11:if(ee.t0=ee.sent,ee.t0){ee.next=14;break}ee.t0={};case 14:F=ee.t0,ee.next=24;break;case 17:return ee.prev=17,ee.t1=ee.catch(8),this.debug(W,"error"),ee.t1.message+=`
raw xml: `+W,ee.t1.status=H.status,ee.t1.requestId=H.headers["x-oss-request-id"],ee.abrupt("return",ee.t1);case 24:I=F.Message||"unknow request error, status: "+H.status,F.Condition&&(I+=" (condition: "+F.Condition+")"),D=new Error(I),D.name=F.Code?F.Code+"Error":"UnknowError",D.status=H.status,D.code=F.Code,D.requestId=F.RequestId,D.hostId=F.HostId,D.serverTime=F.ServerTime;case 33:return this.debug("generate error %j",D,"error"),ee.abrupt("return",D);case 35:case"end":return ee.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:k("../../node_modules/is-buffer/index.js")},k("_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(k,z,o){(function(M){"use strict";var g=k("babel-runtime/core-js/array/from"),A=m(g),b=k("babel-runtime/core-js/promise"),y=m(b),C=k("babel-runtime/regenerator"),O=m(C);function m(E){return E&&E.__esModule?E:{default:E}}var e=k("is-type-of"),f=k("util"),a=k("path"),u=k("mime"),n=k("copy-to"),i=k("../common/utils/isBlob"),r=i.isBlob,c=k("../common/utils/isFile"),h=c.isFile,d=o;d.multipartUpload=function(_,P,R){var x,S,v,T,U,L,N,V,H;return O.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:if(this.resetCancelFlag(),R=R||{},!(R.checkpoint&&R.checkpoint.uploadId)){W.next=6;break}return W.next=5,O.default.awrap(this._resumeMultipart(R.checkpoint,R));case 5:return W.abrupt("return",W.sent);case 6:return x=100*1024,R.mime||(h(P)?R.mime=u.getType(a.extname(P.name)):r(P)?R.mime=P.type:R.mime=u.getType(a.extname(P))),R.headers=R.headers||{},this._convertMetaToHeaders(R.meta,R.headers),W.next=12,O.default.awrap(this._getFileSize(P));case 12:if(S=W.sent,!(S<x)){W.next=25;break}return v=this._createStream(P,0,S),R.contentLength=S,W.next=18,O.default.awrap(this.putStream(_,v,R));case 18:if(T=W.sent,!(R&&R.progress)){W.next=22;break}return W.next=22,O.default.awrap(R.progress(1));case 22:return U={res:T.res,bucket:this.options.bucket,name:_,etag:T.res.headers.etag},(R.headers&&R.headers["x-oss-callback"]||R.callback)&&(U.data=T.data),W.abrupt("return",U);case 25:if(!(R.partSize&&!(parseInt(R.partSize,10)===R.partSize))){W.next=27;break}throw new Error("partSize must be int number");case 27:if(!(R.partSize&&R.partSize<x)){W.next=29;break}throw new Error("partSize must not be smaller than "+x);case 29:return W.next=31,O.default.awrap(this.initMultipartUpload(_,R));case 31:if(L=W.sent,N=L.uploadId,V=this._getPartSize(S,R.partSize),H={file:P,name:_,fileSize:S,partSize:V,uploadId:N,doneParts:[]},!(R&&R.progress)){W.next=38;break}return W.next=38,O.default.awrap(R.progress(0,H,L.res));case 38:return W.next=40,O.default.awrap(this._resumeMultipart(H,R));case 40:return W.abrupt("return",W.sent);case 41:case"end":return W.stop()}},null,this)},d._resumeMultipart=function(_,P){var R,x,S,v,T,U,L,N,V,H,D,W,F,I,K,ee,he,de;return O.default.async(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(R=this,!this.isCancel()){Te.next=3;break}throw this._makeCancelEvent();case 3:return x=_.file,S=_.fileSize,v=_.partSize,T=_.uploadId,U=_.doneParts,L=_.name,N=[],U.length>0&&n(U).to(N),V=this._divideParts(S,v),H=V.length,D=!1,W=function(be,ye){var ue=this;return new y.default(function($,me){var re,ae,Oe,le;return O.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(Q.prev=0,be.isCancel()){Q.next=18;break}return re=V[ye-1],ae={stream:be._createStream(x,re.start,re.end),size:re.end-re.start},Q.next=6,O.default.awrap(be._uploadPart(L,T,ye,ae));case 6:if(Oe=Q.sent,!(!be.isCancel()&&!D)){Q.next=15;break}if(_.doneParts.push({number:ye,etag:Oe.res.headers.etag}),!P.progress){Q.next=12;break}return Q.next=12,O.default.awrap(P.progress(U.length/H,_,Oe.res));case 12:$({number:ye,etag:Oe.res.headers.etag}),Q.next=16;break;case 15:$();case 16:Q.next=19;break;case 18:$();case 19:Q.next=30;break;case 21:Q.prev=21,Q.t0=Q.catch(0),le=new Error,le.name=Q.t0.name,le.message=Q.t0.message,le.stack=Q.t0.stack,le.partNum=ye,n(Q.t0).to(le),me(le);case 30:case"end":return Q.stop()}},null,ue,[[0,21]])})},F=(0,A.default)(new Array(H),function(ce,be){return be+1}),I=N.map(function(ce){return ce.number}),K=F.filter(function(ce){return I.indexOf(ce)<0}),ee=5,he=P.parallel||ee,Te.next=17,O.default.awrap(this._parallel(K,he,function(ce){return new y.default(function(be,ye){W(R,ce).then(function(ue){ue&&N.push(ue),be()}).catch(function(ue){ye(ue)})})}));case 17:if(de=Te.sent,D=!0,!this.isCancel()){Te.next=22;break}throw W=null,this._makeCancelEvent();case 22:if(!(de&&de.length>0)){Te.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 Te.next=27,O.default.awrap(this.completeMultipartUpload(L,T,N,P));case 27:return Te.abrupt("return",Te.sent);case 28:case"end":return Te.stop()}},null,this)},d._getFileSize=function(_){return O.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!e.buffer(_)){R.next=4;break}return R.abrupt("return",_.length);case 4:if(!(r(_)||h(_))){R.next=6;break}return R.abrupt("return",_.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return R.stop()}},null,this)};var s=k("stream"),l=s.Readable;function w(E,_){if(!(this instanceof w))return new w(E,_);l.call(this,_),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(w,l),w.prototype.readFileAndPush=function(_){if(this.fileBuffer)for(var P=!0;P&&this.fileBuffer&&this.start<this.fileBuffer.length;){var R=this.start,x=R+_;x=x>this.fileBuffer.length?this.fileBuffer.length:x,this.start=x,P=this.push(this.fileBuffer.slice(R,x))}},w.prototype._read=function(_){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;_=_||P;var R=this;this.reader.onload=function(S){R.fileBuffer=M.from(new Uint8Array(S.target.result)),R.file=null,R.readFileAndPush(_)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(_)},d._createStream=function(_,P,R){if(r(_)||h(_))return new w(_.slice(P,R));throw new Error("_createStream requires File/Blob.")},d._getPartSize=function(_,P){var R=10*1e3,x=1024*1024;return P?Math.max(Math.ceil(_/R),P):x},d._divideParts=function(_,P){for(var R=Math.ceil(_/P),x=[],S=0;S<R;S++){var v=P*S,T=Math.min(v+P,_);x.push({start:v,end:T})}return x}}).call(this,k("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(k,z,o){"use strict";var M=k("babel-runtime/core-js/promise"),g=e(M),A=k("babel-runtime/core-js/object/keys"),b=e(A),y=k("babel-runtime/core-js/object/assign"),C=e(y),O=k("babel-runtime/regenerator"),m=e(O);function e(R){return R&&R.__esModule?R:{default:R}}var f=k("utility"),a=k("fs"),u=k("is-type-of"),n=k("url"),i=k("copy-to"),r=k("path"),c=k("mime"),h=k("../common/callback"),d=k("../common/signUtils"),s=k("merge-descriptors"),l=k("../common/utils/isBlob"),w=l.isBlob,E=k("../common/utils/isFile"),_=E.isFile,P=o;P.append=function(x,S,v){var T;return m.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:return v=v||{},v.position===void 0&&(v.position="0"),v.subres={append:"",position:v.position},v.method="POST",L.next=6,m.default.awrap(this.put(x,S,v));case 6:return T=L.sent,T.nextAppendPosition=T.res.headers["x-oss-next-append-position"],L.abrupt("return",T);case 9:case"end":return L.stop()}},null,this)},P.put=function(x,S,v){var T,U,L,N,V,H,D;return m.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(T=void 0,v=v||{},x=this._objectName(x),!u.buffer(S)){F.next=7;break}T=S,F.next=33;break;case 7:if(!(w(S)||_(S))){F.next=32;break}return v.mime||(_(S)?v.mime=c.getType(r.extname(S.name)):v.mime=S.type),U=this._createStream(S,0,S.size),F.next=12,m.default.awrap(this._getFileSize(S));case 12:return v.contentLength=F.sent,F.prev=13,F.next=16,m.default.awrap(this.putStream(x,U,v));case 16:return L=F.sent,F.abrupt("return",L);case 20:if(F.prev=20,F.t0=F.catch(13),!(F.t0.code==="RequestTimeTooSkewed")){F.next=29;break}return this.options.amendTimeSkewed=+new Date(F.t0.serverTime)-new Date,F.next=26,m.default.awrap(this.put(x,S,v));case 26:return F.abrupt("return",F.sent);case 29:throw F.t0;case 30:F.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return v.headers=v.headers||{},this._convertMetaToHeaders(v.meta,v.headers),N=v.method||"PUT",V=this._objectRequestParams(N,x,v),h.encodeCallback(V,v),V.mime=v.mime,V.content=T,V.successStatuses=[200],F.next=43,m.default.awrap(this.request(V));case 43:return H=F.sent,D={name:x,url:this._objectUrl(x),res:H.res},V.headers&&V.headers["x-oss-callback"]&&(D.data=JSON.parse(H.data.toString())),F.abrupt("return",D);case 47:case"end":return F.stop()}},null,this,[[13,20]])},P.putStream=function(x,S,v){var T,U,L,N;return m.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:return v=v||{},v.headers=v.headers||{},x=this._objectName(x),v.contentLength?v.headers["Content-Length"]=v.contentLength:v.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(v.meta,v.headers),T=v.method||"PUT",U=this._objectRequestParams(T,x,v),h.encodeCallback(U,v),U.mime=v.mime,U.stream=S,U.successStatuses=[200],H.next=13,m.default.awrap(this.request(U));case 13:return L=H.sent,N={name:x,url:this._objectUrl(x),res:L.res},U.headers&&U.headers["x-oss-callback"]&&(N.data=JSON.parse(L.data.toString())),H.abrupt("return",N);case 17:case"end":return H.stop()}},null,this)},s(P,k("../common/object/copyObject")),s(P,k("../common/object/getObjectTagging")),s(P,k("../common/object/putObjectTagging")),s(P,k("../common/object/deleteObjectTagging")),s(P,k("../common/image")),s(P,k("../common/object/getBucketVersions")),s(P,k("../common/object/getACL")),s(P,k("../common/object/putACL")),s(P,k("../common/object/head")),s(P,k("../common/object/delete")),s(P,k("../common/object/get")),s(P,k("../common/object/putSymlink")),s(P,k("../common/object/getSymlink")),s(P,k("../common/object/deleteMulti")),s(P,k("../common/object/getObjectMeta")),P.putMeta=function(x,S,v){var T;return m.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,m.default.awrap(this.copy(x,x,{meta:S||{},timeout:v&&v.timeout,ctx:v&&v.ctx}));case 2:return T=L.sent,L.abrupt("return",T);case 4:case"end":return L.stop()}},null,this)},P.list=function(x,S){var v,T,U,L,N;return m.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:return v=this._objectRequestParams("GET","",S),v.query=x,v.xmlResponse=!0,v.successStatuses=[200],H.next=6,m.default.awrap(this.request(v));case 6:return T=H.sent,U=T.data.Contents,L=this,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(D){return{name:D.Key,url:L._objectUrl(D.Key),lastModified:D.LastModified,etag:D.ETag,type:D.Type,size:Number(D.Size),storageClass:D.StorageClass,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),N=T.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(D){return D.Prefix})),H.abrupt("return",{res:T.res,objects:U,prefixes:N,nextMarker:T.data.NextMarker||null,isTruncated:T.data.IsTruncated==="true"});case 13:case"end":return H.stop()}},null,this)},P.restore=function(x,S){var v,T;return m.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:return S=S||{},S.subres=(0,C.default)({restore:""},S.subres),S.versionId&&(S.subres.versionId=S.versionId),v=this._objectRequestParams("POST",x,S),v.successStatuses=[202],L.next=7,m.default.awrap(this.request(v));case 7:return T=L.sent,L.abrupt("return",{res:T.res});case 9:case"end":return L.stop()}},null,this)},P.signatureUrl=function(x,S){S=S||{},x=this._objectName(x),S.method=S.method||"GET";var v=f.timestamp()+(S.expires||1800),T={bucket:this.options.bucket,object:x},U=this._getResource(T);this.options.stsToken&&(S["security-token"]=this.options.stsToken);var L=d._signatureForURL(this.options.accessKeySecret,S,U,v),N=n.parse(this._getReqUrl(T));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:v,Signature:L.Signature},i(L.subResource).to(N.query),N.format()},P.getObjectUrl=function(x,S){return S?S[S.length-1]!=="/"&&(S+="/"):S=this.options.endpoint.format(),S+this._escape(this._objectName(x))},P._objectUrl=function(x){return this._getReqUrl({bucket:this.options.bucket,object:x})},P.generateObjectUrl=function(R,x){if(x)x[x.length-1]!=="/"&&(x+="/");else{x=this.options.endpoint.format();var S=n.parse(x),v=this.options.bucket;S.hostname=v+"."+S.hostname,S.host=v+"."+S.host,x=S.format()}return x+this._escape(this._objectName(R))},P._objectRequestParams=function(x,S,v){if(!this.options.bucket)throw new Error("Please create a bucket first");v=v||{},S=this._objectName(S);var T={object:S,bucket:this.options.bucket,method:x,subres:v&&v.subres,timeout:v&&v.timeout,ctx:v&&v.ctx};return v.headers&&(T.headers={},i(v.headers).to(T.headers)),T},P._objectName=function(x){return x.replace(/^\/+/,"")},P._convertMetaToHeaders=function(x,S){if(!x)return;(0,b.default)(x).forEach(function(v){S["x-oss-meta-"+v]=x[v]})},P._deleteFileSafe=function(x){var S=this;return new g.default(function(v){a.exists(x,function(T){T?a.unlink(x,function(U){U&&S.debug("unlink %j error: %s",x,U,"error"),v()}):v()})})}},{"../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(k,z,o){"use strict";o.version="6.10.0"},{}],6:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(O){return O&&O.__esModule?O:{default:O}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=o;C.deleteBucketLifecycle=function(m,e){var f,a;return g.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return y(m),f=this._bucketRequestParams("DELETE",m,"lifecycle",e),f.successStatuses=[204],n.next=5,g.default.awrap(this.request(f));case 5:return a=n.sent,n.abrupt("return",{res:a.res});case 7:case"end":return n.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(O){return O&&O.__esModule?O:{default:O}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=o;C.deleteBucketWebsite=function(m,e){var f,a;return g.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return y(m),f=this._bucketRequestParams("DELETE",m,"website",e),f.successStatuses=[204],n.next=5,g.default.awrap(this.request(f));case 5:return a=n.sent,n.abrupt("return",{res:a.res});case 7:case"end":return n.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isArray"),O=C.isArray,m=k("../utils/formatObjKey"),e=m.formatObjKey,f=o;f.getBucketLifecycle=function(u,n){var i,r,c;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return y(u),i=this._bucketRequestParams("GET",u,"lifecycle",n),i.successStatuses=[200],i.xmlResponse=!0,d.next=6,g.default.awrap(this.request(i));case 6:return r=d.sent,c=r.data.Rule||null,c&&(O(c)||(c=[c]),c=c.map(function(s){return s.ID&&(s.id=s.ID,delete s.ID),s.Tag&&!O(s.Tag)&&(s.Tag=[s.Tag]),e(s,"firstLowerCase")})),d.abrupt("return",{rules:c,res:r.res});case 10:case"end":return d.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(O){return O&&O.__esModule?O:{default:O}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=o;C.getBucketVersioning=function(m,e){var f,a,u;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return y(m),f=this._bucketRequestParams("GET",m,"versioning",e),f.xmlResponse=!0,f.successStatuses=[200],i.next=6,g.default.awrap(this.request(f));case 6:return a=i.sent,u=a.data.Status,i.abrupt("return",{status:a.status,versionStatus:u,res:a.res});case 9:case"end":return i.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isObject"),O=C.isObject,m=o;m.getBucketWebsite=function(f,a){var u,n,i;return g.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return y(f),u=this._bucketRequestParams("GET",f,"website",a),u.successStatuses=[200],u.xmlResponse=!0,c.next=6,g.default.awrap(this.request(u));case 6:return n=c.sent,i=[],n.data.RoutingRules&&n.data.RoutingRules.RoutingRule&&(O(n.data.RoutingRules.RoutingRule)?i=[n.data.RoutingRules.RoutingRule]:i=n.data.RoutingRules.RoutingRule),c.abrupt("return",{index:n.data.IndexDocument&&n.data.IndexDocument.Suffix||"",supportSubDir:n.data.IndexDocument&&n.data.IndexDocument.SupportSubDir||"false",type:n.data.IndexDocument&&n.data.IndexDocument.Type,routingRules:i,error:n.data.ErrorDocument&&n.data.ErrorDocument.Key||null,res:n.res});case 10:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(_){return _&&_.__esModule?_:{default:_}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isArray"),O=C.isArray,m=k("../utils/deepCopy"),e=m.deepCopy,f=k("../utils/isObject"),a=f.isObject,u=k("../utils/obj2xml"),n=u.obj2xml,i=k("../utils/checkObjectTag"),r=i.checkObjectTag,c=k("../utils/getStrBytesCount"),h=c.getStrBytesCount,d=o;d.putBucketLifecycle=function(P,R,x){var S,v,T,U,L;return g.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(y(P),O(R)){V.next=3;break}throw new Error("rules must be Array");case 3:return S=this._bucketRequestParams("PUT",P,"lifecycle",x),v=[],T={LifecycleConfiguration:{Rule:v}},R.forEach(function(H){s(H),E(H),H.id&&(H.ID=H.id,delete H.id),v.push(H)}),U=n(T,{headers:!0,firstUpperCase:!0}),S.content=U,S.mime="xml",S.successStatuses=[200],V.next=13,g.default.awrap(this.request(S));case 13:return L=V.sent,V.abrupt("return",{res:L.res});case 15:case"end":return V.stop()}},null,this)};function s(_){_.days&&(_.expiration={days:_.days}),_.date&&(_.expiration={createdBeforeDate:_.date})}function l(_,P){var R=_.days,x=_.createdBeforeDate;if(!R&&!x)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(x&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(x))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function w(_){if(!O(_)&&!a(_))throw new Error("tag must be Object or Array");_=a(_)?[_]:_;var P={},R=e(_);R.forEach(function(x){P[x.key]=x.value}),r(P)}function E(_){if(_.id&&h(_.id)>255)throw new Error("ID is composed of 255 bytes at most");if(_.prefix===""||_.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(_.status))throw new Error("Status must be Enabled or Disabled");if(_.transition){if(!["IA","Archive"].includes(_.transition.storageClass))throw new Error("StorageClass must be IA or Archive");l(_.transition,"Transition")}if(_.expiration){if(!_.expiration.expiredObjectDeleteMarker)l(_.expiration,"Expiration");else if(_.expiration.days||_.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(_.abortMultipartUpload&&l(_.abortMultipartUpload,"AbortMultipartUpload"),!_.expiration&&!_.abortMultipartUpload&&!_.transition&&!_.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(_.tag){if(_.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");w(_.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(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/obj2xml"),O=C.obj2xml,m=o;m.putBucketVersioning=function(f,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,r;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:if(y(f),["Enabled","Suspended"].includes(a)){h.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return n=this._bucketRequestParams("PUT",f,"versioning",u),i={VersioningConfiguration:{Status:a}},n.mime="xml",n.content=O(i,{headers:!0}),h.next=9,g.default.awrap(this.request(n));case 9:return r=h.sent,h.abrupt("return",{res:r.res,status:r.status});case 11:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/obj2xml"),O=C.obj2xml,m=k("../utils/isArray"),e=m.isArray,f=o;f.putBucketWebsite=function(u){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments[2],r,c,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(y(u),r=this._bucketRequestParams("PUT",u,"website",i),c={Suffix:n.index||"index.html"},h={IndexDocument:c},d={WebsiteConfiguration:h},n.supportSubDir&&(c.SupportSubDir=n.supportSubDir),n.type&&(c.Type=n.type),n.error&&(h.ErrorDocument={Key:n.error}),!(n.routingRules!==void 0)){w.next=12;break}if(e(n.routingRules)){w.next=11;break}throw new Error("RoutingRules must be Array");case 11:h.RoutingRules={RoutingRule:n.routingRules};case 12:return d=O(d),r.content=d,r.mime="xml",r.successStatuses=[200],w.next=18,g.default.awrap(this.request(r));case 18:return s=w.sent,w.abrupt("return",{res:s.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(k,z,o){(function(M){"use strict";var g=k("babel-runtime/core-js/object/keys"),A=C(g),b=k("babel-runtime/core-js/json/stringify"),y=C(b);function C(O){return O&&O.__esModule?O:{default:O}}o.encodeCallback=function(m,e){if(m.headers=m.headers||{},!Object.prototype.hasOwnProperty.call(m.headers,"x-oss-callback")&&e.callback){var f={callbackUrl:encodeURI(e.callback.url),callbackBody:e.callback.body};e.callback.host&&(f.callbackHost=e.callback.host),e.callback.contentType&&(f.callbackBodyType=e.callback.contentType);var a=M.from((0,y.default)(f)).toString("base64");if(m.headers["x-oss-callback"]=a,e.callback.customValue){var u={};(0,A.default)(e.callback.customValue).forEach(function(n){u["x:"+n]=e.callback.customValue[n]}),m.headers["x-oss-callback-var"]=M.from((0,y.default)(u)).toString("base64")}}}}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/assign"),g=A(M);function A(f){return f&&f.__esModule?f:{default:f}}var b=k("humanize-ms"),y=k("url"),C=k("../utils/checkBucketName"),O=C.checkBucketName;function m(f,a){var u=y.parse(f);if(u.protocol||(u=y.parse("http"+(a?"s":"")+"://"+f)),u.protocol!=="http:"&&u.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return u}function e(f,a,u){var n=u?"https://":"http://",i=a?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return f.substr(0,r.length)===r&&(i=".aliyuncs.com"),y.parse(n+f+i)}z.exports=function(f){if(!f||!f.accessKeyId||!f.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");f.bucket&&O(f.bucket);var a=(0,g.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},f);if(a.accessKeyId=a.accessKeyId.trim(),a.accessKeySecret=a.accessKeySecret.trim(),a.timeout&&(a.timeout=b(a.timeout)),a.endpoint)a.endpoint=m(a.endpoint,a.secure);else if(a.region)a.endpoint=e(a.region,a.internal,a.secure);else throw new Error("require options.endpoint or options.region");return a.inited=!0,a}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(k,z,o){"use strict";var M=k("merge-descriptors"),g=o;M(g,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("querystring"),O=k("js-base64"),m=O.Base64.encode,e=o;e.processObjectSave=function(u,n,i,r){var c,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return f(u,"sourceObject"),f(n,"targetObject"),f(i,"process"),n=this._objectName(n),r&&y(r),c=this._objectRequestParams("POST",u,{subres:"x-oss-process"}),h=r?",b_"+m(r):"",n=m(n),d={"x-oss-process":i+"|sys/saveas,o_"+n+h},c.content=C.stringify(d),w.next=12,g.default.awrap(this.request(c));case 12:return s=w.sent,w.abrupt("return",{res:s.res,status:s.res.status});case 14:case"end":return w.stop()}},null,this)};function f(a,u){if(!a)throw new Error(u+" is required");if(typeof a!="string")throw new Error(u+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=A(M);function A(e){return e&&e.__esModule?e:{default:e}}var b=k("copy-to"),y=k("./callback"),C=k("./utils/deepCopy"),O=C.deepCopy,m=o;m.listUploads=function(f,a){var u,n,i,r;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return a=a||{},u={},b(a).to(u),u.subres="uploads",n=this._objectRequestParams("GET","",u),n.query=f,n.xmlResponse=!0,n.successStatuses=[200],h.next=10,g.default.awrap(this.request(n));case 10:return i=h.sent,r=i.data.Upload||[],Array.isArray(r)||(r=[r]),r=r.map(function(d){return{name:d.Key,uploadId:d.UploadId,initiated:d.Initiated}}),h.abrupt("return",{res:i.res,uploads:r,bucket:i.data.Bucket,nextKeyMarker:i.data.NextKeyMarker,nextUploadIdMarker:i.data.NextUploadIdMarker,isTruncated:i.data.IsTruncated==="true"});case 15:case"end":return h.stop()}},null,this)},m.listParts=function(f,a,u,n){var i,r,c;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=n||{},i={},b(n).to(i),i.subres={uploadId:a},r=this._objectRequestParams("GET",f,i),r.query=u,r.xmlResponse=!0,r.successStatuses=[200],d.next=10,g.default.awrap(this.request(r));case 10:return c=d.sent,d.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return d.stop()}},null,this)},m.abortMultipartUpload=function(f,a,u){var n,i,r;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return this._stop(),u=u||{},n={},b(u).to(n),n.subres={uploadId:a},i=this._objectRequestParams("DELETE",f,n),i.successStatuses=[204],h.next=9,g.default.awrap(this.request(i));case 9:return r=h.sent,h.abrupt("return",{res:r.res});case 11:case"end":return h.stop()}},null,this)},m.initMultipartUpload=function(f,a){var u,n,i;return g.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return a=a||{},u={},b(a).to(u),u.headers=u.headers||{},this._convertMetaToHeaders(a.meta,u.headers),u.subres="uploads",n=this._objectRequestParams("POST",f,u),n.mime=a.mime,n.xmlResponse=!0,n.successStatuses=[200],c.next=12,g.default.awrap(this.request(n));case 12:return i=c.sent,c.abrupt("return",{res:i.res,bucket:i.data.Bucket,name:i.data.Key,uploadId:i.data.UploadId});case 14:case"end":return c.stop()}},null,this)},m.uploadPart=function(f,a,u,n,i,r,c){var h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return h={stream:this._createStream(n,i,r),size:r-i},s.next=3,g.default.awrap(this._uploadPart(f,a,u,h,c));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,this)},m.completeMultipartUpload=function(f,a,u,n){var i,r,c,h,d,s,l,w;return g.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:for(i=u.concat().sort(function(P,R){return P.number-R.number}).filter(function(P,R,x){return!R||P.number!==x[R-1].number}),r=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,c=0;c<i.length;c++)h=i[c],r+=`<Part>
`,r+="<PartNumber>"+h.number+`</PartNumber>
`,r+="<ETag>"+h.etag+`</ETag>
`,r+=`</Part>
`;return r+="</CompleteMultipartUpload>",n=n||{},d={},d=O(n),d.headers&&delete d.headers["x-oss-server-side-encryption"],d.subres={uploadId:a},s=this._objectRequestParams("POST",f,d),y.encodeCallback(s,d),s.mime="xml",s.content=r,s.headers&&s.headers["x-oss-callback"]||(s.xmlResponse=!0),s.successStatuses=[200],_.next=17,g.default.awrap(this.request(s));case 17:return l=_.sent,w={res:l.res,bucket:s.bucket,name:f,etag:l.res.headers.etag},s.headers&&s.headers["x-oss-callback"]&&(w.data=JSON.parse(l.data.toString())),_.abrupt("return",w);case 21:case"end":return _.stop()}},null,this)},m._uploadPart=function(f,a,u,n,i){var r,c,h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return i=i||{},r={},b(i).to(r),r.headers={"Content-Length":n.size},r.subres={partNumber:u,uploadId:a},c=this._objectRequestParams("PUT",f,r),c.mime=r.mime,c.stream=n.stream,c.successStatuses=[200],s.next=11,g.default.awrap(this.request(c));case 11:if(h=s.sent,h.res.headers.etag){s.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 n.stream=null,c.stream=null,s.abrupt("return",{name:f,etag:h.res.headers.etag,res:h.res});case 17:case"end":return s.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=O(M),A=k("babel-runtime/core-js/object/keys"),b=O(A),y=k("babel-runtime/helpers/typeof"),C=O(y);function O(a){return a&&a.__esModule?a:{default:a}}var m=k("../utils/checkBucketName"),e=m.checkBucketName,f=o;f.copy=function(u,n,i,r){var c,h,d;return g.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return(typeof i=="undefined"?"undefined":(0,C.default)(i))==="object"&&(r=i),r=r||{},r.headers=r.headers||{},(0,b.default)(r.headers).forEach(function(w){r.headers["x-oss-copy-source-"+w.toLowerCase()]=r.headers[w]}),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),n=this._getSourceName(n,i),r.versionId&&(n=n+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=n,c=this._objectRequestParams("PUT",u,r),c.xmlResponse=!0,c.successStatuses=[200,304],l.next=14,g.default.awrap(this.request(c));case 14:return h=l.sent,d=h.data,d&&(d={etag:d.ETag,lastModified:d.LastModified}),l.abrupt("return",{data:d,res:h.res});case 18:case"end":return l.stop()}},null,this)},f._getSourceName=function(u,n){return typeof n=="string"?u=this._objectName(u):u[0]!=="/"?n=this.options.bucket:(n=u.replace(/\/(.+?)(\/.*)/,"$1"),u=u.replace(/(\/.+?\/)(.*)/,"$2")),e(n),u=encodeURI(u),u="/"+n+"/"+u,u}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(O){return O&&O.__esModule?O:{default:O}}var C=o;C.delete=function(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return g.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e.subres=(0,b.default)({},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("DELETE",m,e),f.successStatuses=[204],n.next=6,g.default.awrap(this.request(f));case 6:return a=n.sent,n.abrupt("return",{res:a.res});case 8:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(f){return f&&f.__esModule?f:{default:f}}var C=k("utility"),O=k("../utils/obj2xml"),m=O.obj2xml,e=o;e.deleteMulti=function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,r,c,h,d,s,l,w,E,_,P;return g.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:if(n=[],!(!a||!a.length)){x.next=3;break}throw new Error("names is required");case 3:for(i=0;i<a.length;i++)r={},typeof a[i]=="string"?r.Key=C.escape(this._objectName(a[i])):(c=a[i],h=c.key,d=c.versionId,r.Key=C.escape(this._objectName(h)),r.VersionId=d),n.push(r);return s={Delete:{Quiet:!!u.quiet,Object:n}},l=m(s,{headers:!0}),u.subres=(0,b.default)({delete:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),w=this._objectRequestParams("POST","",u),w.mime="xml",w.content=l,w.xmlResponse=!0,w.successStatuses=[200],x.next=15,g.default.awrap(this.request(w));case 15:return E=x.sent,_=E.data,P=_&&_.Deleted||null,P&&(Array.isArray(P)||(P=[P])),x.abrupt("return",{res:E.res,deleted:P||[]});case 20:case"end":return x.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(O){return O&&O.__esModule?O:{default:O}}var C=o;C.deleteObjectTagging=function(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return g.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e.subres=(0,b.default)({tagging:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),m=this._objectName(m),f=this._objectRequestParams("DELETE",m,e),f.successStatuses=[204],n.next=7,g.default.awrap(this.request(f));case 7:return a=n.sent,n.abrupt("return",{status:a.status,res:a.res});case 9:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(e){return e&&e.__esModule?e:{default:e}}var C=k("fs"),O=k("is-type-of"),m=o;m.get=function(f,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,r,c;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=null,i=!1,O.writableStream(a)?n=a:O.string(a)?(n=C.createWriteStream(a),i=!0):u=a,u=u||{},u.subres=(0,b.default)({},u.subres),u.versionId&&(u.subres.versionId=u.versionId),u.process&&(u.subres["x-oss-process"]=u.process),r=void 0,d.prev=8,c=this._objectRequestParams("GET",f,u),c.writeStream=n,c.successStatuses=[200,206,304],d.next=14,g.default.awrap(this.request(c));case 14:r=d.sent,i&&n.destroy(),d.next=25;break;case 18:if(d.prev=18,d.t0=d.catch(8),!i){d.next=24;break}return n.destroy(),d.next=24,g.default.awrap(this._deleteFileSafe(a));case 24:throw d.t0;case 25:return d.abrupt("return",{res:r.res,content:r.data});case 26:case"end":return d.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(O){return O&&O.__esModule?O:{default:O}}var C=o;C.getACL=function(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return g.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e.subres=(0,b.default)({acl:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),m=this._objectName(m),f=this._objectRequestParams("GET",m,e),f.successStatuses=[200],f.xmlResponse=!0,n.next=8,g.default.awrap(this.request(f));case 8:return a=n.sent,n.abrupt("return",{acl:a.data.AccessControlList.Grant,owner:{id:a.data.Owner.ID,displayName:a.data.Owner.DisplayName},res:a.res});case 10:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),g=O(M),A=k("babel-runtime/regenerator"),b=O(A),y=k("babel-runtime/core-js/object/assign"),C=O(y);function O(c){return c&&c.__esModule?c:{default:c}}var m=o,e=k("../utils/isObject"),f=e.isObject,a=k("../utils/isArray"),u=a.isArray;m.getBucketVersions=n,m.listObjectVersions=n;function n(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,s,l,w,E,_;return b.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!(c.versionIdMarker&&c.keyMarker===void 0)){R.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return h.subres=(0,C.default)({versions:""},h.subres),h.versionId&&(h.subres.versionId=h.versionId),d=this._objectRequestParams("GET","",h),d.xmlResponse=!0,d.successStatuses=[200],d.query=r(c),R.next=10,b.default.awrap(this.request(d));case 10:return s=R.sent,l=s.data.Version||[],w=s.data.DeleteMarker||[],E=this,l&&(Array.isArray(l)||(l=[l]),l=l.map(function(x){return{name:x.Key,url:E._objectUrl(x.Key),lastModified:x.LastModified,isLatest:x.IsLatest==="true",versionId:x.VersionId,etag:x.ETag,type:x.Type,size:Number(x.Size),storageClass:x.StorageClass,owner:{id:x.Owner.ID,displayName:x.Owner.DisplayName}}})),w&&(u(w)||(w=[w]),w=w.map(function(x){return{name:x.Key,lastModified:x.LastModified,versionId:x.VersionId,owner:{id:x.Owner.ID,displayName:x.Owner.DisplayName}}})),_=s.data.CommonPrefixes||null,_&&(u(_)||(_=[_]),_=_.map(function(x){return x.Prefix})),R.abrupt("return",{res:s.res,objects:l,deleteMarker:w,prefixes:_,nextMarker:s.data.NextMarker||null,NextVersionIdMarker:s.data.NextVersionIdMarker||null,isTruncated:s.data.IsTruncated==="true"});case 19:case"end":return R.stop()}},null,this)}function i(c){return c.replace(/([A-Z])/g,"-$1").toLowerCase()}function r(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h={};return f(c)&&(0,g.default)(c).forEach(function(d){h[i(d)]=c[d]}),h}},{"../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(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(O){return O&&O.__esModule?O:{default:O}}var C=o;C.getObjectMeta=function(m,e){var f,a;return g.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e=e||{},m=this._objectName(m),e.subres=(0,b.default)({objectMeta:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("HEAD",m,e),f.successStatuses=[200],n.next=8,g.default.awrap(this.request(f));case 8:return a=n.sent,n.abrupt("return",{status:a.status,res:a.res});case 10:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(e){return e&&e.__esModule?e:{default:e}}var C=o,O=k("../utils/isObject"),m=O.isObject;C.getObjectTagging=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,n,i,r,c;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return a.subres=(0,b.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),f=this._objectName(f),u=this._objectRequestParams("GET",f,a),u.successStatuses=[200],d.next=7,g.default.awrap(this.request(u));case 7:return n=d.sent,d.next=10,g.default.awrap(this.parseXML(n.data));case 10:return i=d.sent,r=i.TagSet.Tag,r=r&&m(r)?[r]:r||[],c={},r.forEach(function(s){c[s.Key]=s.Value}),d.abrupt("return",{status:n.status,res:n.res,tag:c});case 16:case"end":return d.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(O){return O&&O.__esModule?O:{default:O}}var C=o;C.getSymlink=function(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a,u;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e.subres=(0,b.default)({symlink:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),m=this._objectName(m),f=this._objectRequestParams("GET",m,e),f.successStatuses=[200],i.next=7,g.default.awrap(this.request(f));case 7:return a=i.sent,u=a.res.headers["x-oss-symlink-target"],i.abrupt("return",{targetName:decodeURIComponent(u),res:a.res});case 10:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=O(M),A=k("babel-runtime/core-js/object/keys"),b=O(A),y=k("babel-runtime/core-js/object/assign"),C=O(y);function O(e){return e&&e.__esModule?e:{default:e}}var m=o;m.head=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,n,i;return g.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return a.subres=(0,C.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectRequestParams("HEAD",f,a),u.successStatuses=[200,304],c.next=6,g.default.awrap(this.request(u));case 6:return n=c.sent,i={meta:null,res:n.res,status:n.status},n.status===200&&(0,b.default)(n.headers).forEach(function(h){h.indexOf("x-oss-meta-")===0&&(i.meta||(i.meta={}),i.meta[h.substring(11)]=n.headers[h])}),c.abrupt("return",i);case 10:case"end":return c.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(O){return O&&O.__esModule?O:{default:O}}var C=o;C.putACL=function(m,e,f){var a,u;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return f=f||{},f.subres=(0,b.default)({acl:""},f.subres),f.versionId&&(f.subres.versionId=f.versionId),f.headers=f.headers||{},f.headers["x-oss-object-acl"]=e,m=this._objectName(m),a=this._objectRequestParams("PUT",m,f),a.successStatuses=[200],i.next=10,g.default.awrap(this.request(a));case 10:return u=i.sent,i.abrupt("return",{res:u.res});case 12:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=O(M),A=k("babel-runtime/core-js/object/keys"),b=O(A),y=k("babel-runtime/core-js/object/assign"),C=O(y);function O(n){return n&&n.__esModule?n:{default:n}}var m=k("../utils/obj2xml"),e=m.obj2xml,f=k("../utils/checkObjectTag"),a=f.checkObjectTag,u=o;u.putObjectTagging=function(i,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return a(r),c.subres=(0,C.default)({tagging:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),i=this._objectName(i),h=this._objectRequestParams("PUT",i,c),h.successStatuses=[200],r=(0,b.default)(r).map(function(E){return{Key:E,Value:r[E]}}),d={Tagging:{TagSet:{Tag:r}}},h.mime="xml",h.content=e(d),w.next=12,g.default.awrap(this.request(h));case 12:return s=w.sent,w.abrupt("return",{res:s.res,status:s.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(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/object/assign"),b=y(A);function y(O){return O&&O.__esModule?O:{default:O}}var C=o;C.putSymlink=function(m,e,f){var a,u;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return f=f||{},f.headers=f.headers||{},e=this._escape(this._objectName(e)),this._convertMetaToHeaders(f.meta,f.headers),f.headers["x-oss-symlink-target"]=e,f.subres=(0,b.default)({symlink:""},f.subres),f.versionId&&(f.subres.versionId=f.versionId),f.storageClass&&(f.headers["x-oss-storage-class"]=f.storageClass),m=this._objectName(m),a=this._objectRequestParams("PUT",m,f),a.successStatuses=[200],i.next=13,g.default.awrap(this.request(a));case 13:return u=i.sent,i.abrupt("return",{res:u.res});case 15:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=y(M),A=k("babel-runtime/core-js/promise"),b=y(A);function y(O){return O&&O.__esModule?O:{default:O}}var C=o;C._parallelNode=function(m,e,f,a){var u,n,i,r,c,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:u=this,n=[],i=[],r=m.length/e,c=m.length%e,h=c===0?r:(m.length-c)/e+1,d=1,s=0;case 8:if(!(s<m.length)){w.next=26;break}if(!u.isCancel()){w.next=11;break}return w.abrupt("break",26);case 11:if(a?i.push(f(u,m[s],a)):i.push(f(u,m[s])),!(i.length===e||d===h&&s===m.length-1)){w.next=23;break}return w.prev=13,d+=1,w.next=17,g.default.awrap(b.default.all(i));case 17:w.next=22;break;case 19:w.prev=19,w.t0=w.catch(13),n.push(w.t0);case 22:i=[];case 23:s++,w.next=8;break;case 26:return w.abrupt("return",n);case 27:case"end":return w.stop()}},null,this,[[13,19]])},C._parallel=function(m,e,f){var a=this;return new b.default(function(u){var n=[];if(e<=0||!m){u(n);return}function i(_){return function(){if(_===null)throw new Error("Callback was already called.");var P=_;_=null;for(var R=arguments.length,x=Array(R),S=0;S<R;S++)x[S]=arguments[S];P.apply(this,x)}}function r(_){var P=-1,R=_.length;return function(){return++P<R&&!a.isCancel()?{value:_[P],key:P}:null}}var c=r(m),h=!1,d=0,s=!1;function l(_,P){d-=1,_?(h=!0,n.push(_),u(n)):P==={}||h&&d<=0?(h=!0,u(n)):s||(a.isCancel()?u(n):E())}function w(_,P){f(_).then(function(R){P(null,R)}).catch(function(R){P(R)})}function E(){for(s=!0;d<e&&!h&&!a.isCancel();){var _=c();if(_===null||n.length>0){h=!0,d<=0&&u(n);return}d+=1,w(_.value,i(l))}s=!1}E()})},C.cancel=function(m){this.options.cancelFlag=!0,m&&this.abortMultipartUpload(m.name,m.uploadId,m.options)},C.isCancel=function(){return this.options.cancelFlag},C.resetCancelFlag=function(){this.options.cancelFlag=!1},C._stop=function(){this.options.cancelFlag=!0},C._makeCancelEvent=function(){var m={status:0,name:"cancel"};return m}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(k,z,o){(function(M){"use strict";var g=k("babel-runtime/core-js/json/stringify"),A=C(g),b=k("babel-runtime/core-js/object/keys"),y=C(b);function C(e){return e&&e.__esModule?e:{default:e}}var O=k("./../../shims/crypto/crypto.js"),m=k("is-type-of");o.buildCanonicalizedResource=function(f,a){var u=""+f,n="?";if(m.string(a)&&a.trim()!=="")u+=n+a;else if(m.array(a))a.sort(),u+=n+a.join("&");else if(a){var i=function(h,d){return h[0]>d[0]?1:h[0]<d[0]?-1:0},r=function(h){u+=n+h,a[h]&&(u+="="+a[h]),n="&"};(0,y.default)(a).sort(i).forEach(r)}return u},o.buildCanonicalString=function(f,a,u,n){u=u||{};var i=u.headers||{},r="x-oss-",c=[],h={},d=[f.toUpperCase(),i["Content-Md5"]||"",i["Content-Type"]||i["Content-Type".toLowerCase()],n||i["x-oss-date"]];return(0,y.default)(i).forEach(function(s){var l=s.toLowerCase();l.indexOf(r)===0&&(h[l]=String(i[s]).trim())}),(0,y.default)(h).sort().forEach(function(s){c.push(s+":"+h[s])}),d=d.concat(c),d.push(this.buildCanonicalizedResource(a,u.parameters)),d.join(`
`)},o.computeSignature=function(f,a){var u=O.createHmac("sha1",f);return u.update(M.from(a,"utf8")).digest("base64")},o.authorization=function(f,a,u){return"OSS "+f+":"+this.computeSignature(a,u)},o._signatureForURL=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments[2],n=arguments[3],i={},r=a.subResource,c=r===void 0?{}:r;if(a.process){var h="x-oss-process";c[h]=a.process}if(a.trafficLimit){var d="x-oss-traffic-limit";c[d]=a.trafficLimit}if(a.response&&(0,y.default)(a.response).forEach(function(E){var _="response-"+E.toLowerCase();c[_]=a.response[E]}),(0,y.default)(a).forEach(function(E){var _=E.toLowerCase(),P=a[E];_.indexOf("x-oss-")===0?i[_]=P:(_.indexOf("content-md5")===0||_.indexOf("content-type")===0)&&(i[E]=P)}),Object.prototype.hasOwnProperty.call(a,"security-token")&&(c["security-token"]=a["security-token"]),Object.prototype.hasOwnProperty.call(a,"callback")){var s={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};if(a.callback.host&&(s.callbackHost=a.callback.host),a.callback.contentType&&(s.callbackBodyType=a.callback.contentType),c.callback=M.from((0,A.default)(s)).toString("base64"),a.callback.customValue){var l={};(0,y.default)(a.callback.customValue).forEach(function(E){l["x:"+E]=a.callback.customValue[E]}),c["callback-var"]=M.from((0,A.default)(l)).toString("base64")}}var w=this.buildCanonicalString(a.method,u,{headers:i,parameters:c},n.toString());return{Signature:this.computeSignature(f,w),subResource:c}}}).call(this,k("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(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkBucketName=void 0,o.checkBucketName=function(M,g){var A=g?/^[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(M))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/entries"),g=A(M);function A(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(o,"__esModule",{value:!0}),o.checkObjectTag=void 0;var b=k("./checkValid"),y=b.checkValid,C=k("./isObject"),O=C.isObject,m=[{validator:function(u){if(typeof u!="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 (/)"}],e={key:[].concat(m,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(m,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function f(a){if(!O(a))throw new Error("tag must be Object");var u=(0,g.default)(a);if(u.length>10)throw new Error("maximum of 10 tags for a object");var n=["key","value"];u.forEach(function(i){i.forEach(function(r,c){y(r,e[n[c]])})})}o.checkObjectTag=f},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkValid=void 0;function M(g,A){A.forEach(function(b){if(b.validator)b.validator(g);else if(b.pattern&&!b.pattern.test(g))throw new Error(b.msg)})}o.checkValid=M},{}],38:[function(k,z,o){(function(M){"use strict";var g=k("babel-runtime/core-js/object/assign"),A=b(g);function b(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(o,"__esModule",{value:!0}),o.createRequest=void 0;var y=k("./../../../shims/crypto/crypto.js"),C=k("debug")("ali-oss"),O=k("mime"),m=k("dateformat"),e=k("copy-to"),f=k("path");function a(i,r){return i[r]||i[r.toLowerCase()]}function u(i,r){delete i[r],delete i[r.toLowerCase()]}function n(i){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var c={"x-oss-date":m(r,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(c["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,A.default)(c,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(c["x-oss-security-token"]=this.options.stsToken),e(i.headers).to(c),a(c,"Content-Type")||(i.mime&&i.mime.indexOf("/")>0?c["Content-Type"]=i.mime:c["Content-Type"]=O.getType(i.mime||f.extname(i.object||""))),a(c,"Content-Type")||u(c,"Content-Type"),i.content&&(c["Content-Md5"]=y.createHash("md5").update(M.from(i.content,"utf8")).digest("base64"),c["Content-Length"]||(c["Content-Length"]=i.content.length));var h=this._getResource(i);c.authorization=this.authorization(i.method,h,i.subres,c);var d=this._getReqUrl(i);C("request %s %s, with headers %j, !!stream: %s",i.method,d,c,!!i.stream);var s=i.timeout||this.options.timeout,l={method:i.method,content:i.content,stream:i.stream,headers:c,timeout:s,writeStream:i.writeStream,customResponse:i.customResponse,ctx:i.ctx||this.ctx};return this.agent&&(l.agent=this.agent),this.httpsAgent&&(l.httpsAgent=this.httpsAgent),{url:d,params:l}}o.createRequest=n}).call(this,k("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(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),g=y(M),A=k("babel-runtime/helpers/typeof"),b=y(A);function y(C){return C&&C.__esModule?C:{default:C}}Object.defineProperty(o,"__esModule",{value:!0}),o.deepCopy=void 0,o.deepCopy=function(C){if(C===null||(typeof C=="undefined"?"undefined":(0,b.default)(C))!=="object")return C;var O=Array.isArray(C)?[]:{};return(0,g.default)(C).forEach(function(m){O[m]=o.deepCopy(C[m])}),O}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),g=y(M),A=k("babel-runtime/helpers/typeof"),b=y(A);function y(m){return m&&m.__esModule?m:{default:m}}Object.defineProperty(o,"__esModule",{value:!0}),o.formatObjKey=void 0;function C(m,e){if(m===null||(typeof m=="undefined"?"undefined":(0,b.default)(m))!=="object")return m;var f=void 0;if(Array.isArray(m)){f=[];for(var a=0;a<m.length;a++)f.push(C(m[a],e))}else f={},(0,g.default)(m).forEach(function(u){f[O(u,e)]=C(m[u],e)});return f}o.formatObjKey=C;function O(m,e){return e==="firstUpperCase"?m=m.replace(/^./,function(f){return f.toUpperCase()}):e==="firstLowerCase"&&(m=m.replace(/^./,function(f){return f.toLowerCase()})),m}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getStrBytesCount=void 0;function M(g){for(var A=0,b=0;b<g.length;b++){var y=g.charAt(b);/^[\u00-\uff]$/.test(y)?A+=1:A+=2}return A}o.getStrBytesCount=M},{}],42:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isArray=void 0,o.isArray=function(M){return Object.prototype.toString.call(M)==="[object Array]"}},{}],43:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isBlob=void 0;function M(g){return typeof Blob!="undefined"&&g instanceof Blob}o.isBlob=M},{}],44:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isFile=void 0,o.isFile=function(M){return typeof File!="undefined"&&M instanceof File}},{}],45:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isIP=void 0,o.isIP=function(M){var g=/^(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 g.test(M)||A.test(M)}},{}],46:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isObject=void 0,o.isObject=function(M){return Object.prototype.toString.call(M)==="[object Object]"}},{}],47:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),g=A(M);function A(O){return O&&O.__esModule?O:{default:O}}Object.defineProperty(o,"__esModule",{value:!0}),o.obj2xml=void 0;var b=k("./formatObjKey");function y(O){return Object.prototype.toString.call(O).replace(/(.*? |])/g,"").toLowerCase()}function C(O,m){var e="";return m&&m.headers&&(e=`<?xml version="1.0" encoding="UTF-8"?>
`),m&&m.firstUpperCase&&(O=b.formatObjKey(O,"firstUpperCase")),y(O)==="object"?(0,g.default)(O).forEach(function(f){y(O[f])==="string"||y(O[f])==="number"?e+="<"+f+">"+O[f]+"</"+f+">":y(O[f])==="object"?e+="<"+f+">"+C(O[f])+"</"+f+">":y(O[f])==="array"?e+=O[f].map(function(a){return"<"+f+">"+C(a)+"</"+f+">"}).join(""):e+="<"+f+">"+O[f].toString()+"</"+f+">"}):e+=O.toString(),e}o.obj2xml=C},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(k,z,o){z.exports=M,z.exports.HttpsAgent=M;function M(){}},{}],49:[function(k,z,o){z.exports=k("./register")().Promise},{"./register":51}],50:[function(k,z,o){"use strict";var M="@@any-promise/REGISTRATION",g=null;z.exports=function(A,b){return function(C,O){C=C||null,O=O||{};var m=O.global!==!1;if(g===null&&m&&(g=A[M]||null),g!==null&&C!==null&&g.implementation!==C)throw new Error('any-promise already defined as "'+g.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return g===null&&(C!==null&&typeof O.Promise!="undefined"?g={Promise:O.Promise,implementation:C}:g=b(C),m&&(A[M]=g)),g}}},{}],51:[function(k,z,o){"use strict";z.exports=k("./loader")(window,M);function M(){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(k,z,o){z.exports={default:k("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(k,z,o){z.exports={default:k("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(k,z,o){z.exports={default:k("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(k,z,o){z.exports={default:k("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(k,z,o){z.exports={default:k("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(k,z,o){z.exports={default:k("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(k,z,o){z.exports={default:k("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(k,z,o){z.exports={default:k("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(k,z,o){"use strict";o.__esModule=!0;var M=k("../core-js/symbol/iterator"),g=C(M),A=k("../core-js/symbol"),b=C(A),y=typeof b.default=="function"&&typeof g.default=="symbol"?function(O){return typeof O}:function(O){return O&&typeof b.default=="function"&&O.constructor===b.default&&O!==b.default.prototype?"symbol":typeof O};function C(O){return O&&O.__esModule?O:{default:O}}o.default=typeof b.default=="function"&&y(g.default)==="symbol"?function(O){return typeof O=="undefined"?"undefined":y(O)}:function(O){return O&&typeof b.default=="function"&&O.constructor===b.default&&O!==b.default.prototype?"symbol":typeof O=="undefined"?"undefined":y(O)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(k,z,o){z.exports=k("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(k,z,o){"use strict";o.byteLength=m,o.toByteArray=f,o.fromByteArray=n;for(var M=[],g=[],A=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,C=b.length;y<C;++y)M[y]=b[y],g[b.charCodeAt(y)]=y;g["-".charCodeAt(0)]=62,g["_".charCodeAt(0)]=63;function O(i){var r=i.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=i.indexOf("=");c===-1&&(c=r);var h=c===r?0:4-c%4;return[c,h]}function m(i){var r=O(i),c=r[0],h=r[1];return(c+h)*3/4-h}function e(i,r,c){return(r+c)*3/4-c}function f(i){var r,c=O(i),h=c[0],d=c[1],s=new A(e(i,h,d)),l=0,w=d>0?h-4:h,E;for(E=0;E<w;E+=4)r=g[i.charCodeAt(E)]<<18|g[i.charCodeAt(E+1)]<<12|g[i.charCodeAt(E+2)]<<6|g[i.charCodeAt(E+3)],s[l++]=r>>16&255,s[l++]=r>>8&255,s[l++]=r&255;return d===2&&(r=g[i.charCodeAt(E)]<<2|g[i.charCodeAt(E+1)]>>4,s[l++]=r&255),d===1&&(r=g[i.charCodeAt(E)]<<10|g[i.charCodeAt(E+1)]<<4|g[i.charCodeAt(E+2)]>>2,s[l++]=r>>8&255,s[l++]=r&255),s}function a(i){return M[i>>18&63]+M[i>>12&63]+M[i>>6&63]+M[i&63]}function u(i,r,c){for(var h,d=[],s=r;s<c;s+=3)h=(i[s]<<16&16711680)+(i[s+1]<<8&65280)+(i[s+2]&255),d.push(a(h));return d.join("")}function n(i){for(var r,c=i.length,h=c%3,d=[],s=16383,l=0,w=c-h;l<w;l+=s)d.push(u(i,l,l+s>w?w:l+s));return h===1?(r=i[c-1],d.push(M[r>>2]+M[r<<4&63]+"==")):h===2&&(r=(i[c-2]<<8)+i[c-1],d.push(M[r>>10]+M[r>>4&63]+M[r<<2&63]+"=")),d.join("")}},{}],70:[function(k,z,o){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(M,g,A){typeof z!="undefined"&&z.exports?z.exports=A():typeof define=="function"&&define.amd?define(g,A):M[g]=A()}(this,"bowser",function(){var M=!0;function g(e){function f(W){var F=e.match(W);return F&&F.length>1&&F[1]||""}function a(W){var F=e.match(W);return F&&F.length>1&&F[2]||""}var u=f(/(ipod|iphone|ipad)/i).toLowerCase(),n=/like android/i.test(e),i=!n&&/android/i.test(e),r=/nexus\s*[0-6]\s*/i.test(e),c=!r&&/nexus\s*[0-9]+/i.test(e),h=/CrOS/.test(e),d=/silk/i.test(e),s=/sailfish/i.test(e),l=/tizen/i.test(e),w=/(web|hpw)(o|0)s/i.test(e),E=/windows phone/i.test(e),_=/SamsungBrowser/i.test(e),P=!E&&/windows/i.test(e),R=!u&&!d&&/macintosh/i.test(e),x=!i&&!s&&!l&&!w&&/linux/i.test(e),S=a(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),v=f(/version\/(\d+(\.\d+)?)/i),T=/tablet/i.test(e)&&!/tablet pc/i.test(e),U=!T&&/[^-]mobi/i.test(e),L=/xbox/i.test(e),N;/opera/i.test(e)?N={name:"Opera",opera:M,version:v||f(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?N={name:"Opera",opera:M,version:f(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||v}:/SamsungBrowser/i.test(e)?N={name:"Samsung Internet for Android",samsungBrowser:M,version:v||f(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(e)?N={name:"NAVER Whale browser",whale:M,version:f(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(e)?N={name:"MZ Browser",mzbrowser:M,version:f(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(e)?N={name:"Opera Coast",coast:M,version:v||f(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(e)?N={name:"Focus",focus:M,version:f(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(e)?N={name:"Yandex Browser",yandexbrowser:M,version:v||f(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?N={name:"UC Browser",ucbrowser:M,version:f(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?N={name:"Maxthon",maxthon:M,version:f(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?N={name:"Epiphany",epiphany:M,version:f(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?N={name:"Puffin",puffin:M,version:f(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?N={name:"Sleipnir",sleipnir:M,version:f(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?N={name:"K-Meleon",kMeleon:M,version:f(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:E?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:M},S?(N.msedge=M,N.version=S):(N.msie=M,N.version=f(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?N={name:"Internet Explorer",msie:M,version:f(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?N={name:"Chrome",osname:"Chrome OS",chromeos:M,chromeBook:M,chrome:M,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?N={name:"Microsoft Edge",msedge:M,version:S}:/vivaldi/i.test(e)?N={name:"Vivaldi",vivaldi:M,version:f(/vivaldi\/(\d+(\.\d+)?)/i)||v}:s?N={name:"Sailfish",osname:"Sailfish OS",sailfish:M,version:f(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?N={name:"SeaMonkey",seamonkey:M,version:f(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(N={name:"Firefox",firefox:M,version:f(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(N.firefoxos=M,N.osname="Firefox OS")):d?N={name:"Amazon Silk",silk:M,version:f(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?N={name:"PhantomJS",phantom:M,version:f(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?N={name:"SlimerJS",slimer:M,version:f(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:M,version:v||f(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:w?(N={name:"WebOS",osname:"WebOS",webos:M,version:v||f(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(N.touchpad=M)):/bada/i.test(e)?N={name:"Bada",osname:"Bada",bada:M,version:f(/dolfin\/(\d+(\.\d+)?)/i)}:l?N={name:"Tizen",osname:"Tizen",tizen:M,version:f(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||v}:/qupzilla/i.test(e)?N={name:"QupZilla",qupzilla:M,version:f(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||v}:/chromium/i.test(e)?N={name:"Chromium",chromium:M,version:f(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||v}:/chrome|crios|crmo/i.test(e)?N={name:"Chrome",chrome:M,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:i?N={name:"Android",version:v}:/safari|applewebkit/i.test(e)?(N={name:"Safari",safari:M},v&&(N.version=v)):u?(N={name:u=="iphone"?"iPhone":u=="ipad"?"iPad":"iPod"},v&&(N.version=v)):/googlebot/i.test(e)?N={name:"Googlebot",googlebot:M,version:f(/googlebot\/(\d+(\.\d+))/i)||v}:N={name:f(/^(.*)\/(.*) /),version:a(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(N.name=N.name||"Blink",N.blink=M):(N.name=N.name||"Webkit",N.webkit=M),!N.version&&v&&(N.version=v)):!N.opera&&/gecko\//i.test(e)&&(N.name=N.name||"Gecko",N.gecko=M,N.version=N.version||f(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(i||N.silk)?(N.android=M,N.osname="Android"):!N.windowsphone&&u?(N[u]=M,N.ios=M,N.osname="iOS"):R?(N.mac=M,N.osname="macOS"):L?(N.xbox=M,N.osname="Xbox"):P?(N.windows=M,N.osname="Windows"):x&&(N.linux=M,N.osname="Linux");function V(W){switch(W){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 H="";N.windows?H=V(f(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?H=f(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(H=f(/Mac OS X (\d+([_\.\s]\d+)*)/i),H=H.replace(/[_\s]/g,".")):u?(H=f(/os (\d+([_\s]\d+)*) like mac os x/i),H=H.replace(/[_\s]/g,".")):i?H=f(/android[ \/-](\d+(\.\d+)*)/i):N.webos?H=f(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?H=f(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?H=f(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(H=f(/tizen[\/\s](\d+(\.\d+)*)/i)),H&&(N.osversion=H);var D=!N.windows&&H.split(".")[0];return T||c||u=="ipad"||i&&(D==3||D>=4&&!U)||N.silk?N.tablet=M:(U||u=="iphone"||u=="ipod"||i||r||N.blackberry||N.webos||N.bada)&&(N.mobile=M),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&&C([N.version,"1.0"])===1||N.mzbrowser&&C([N.version,"6.0"])===1||N.focus&&C([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=M: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=M:N.x=M,N}var A=g(typeof navigator!="undefined"&&navigator.userAgent||"");A.test=function(e){for(var f=0;f<e.length;++f){var a=e[f];if(typeof a=="string"&&a in A)return!0}return!1};function b(e){return e.split(".").length}function y(e,f){var a=[],u;if(Array.prototype.map)return Array.prototype.map.call(e,f);for(u=0;u<e.length;u++)a.push(f(e[u]));return a}function C(e){for(var f=Math.max(b(e[0]),b(e[1])),a=y(e,function(u){var n=f-b(u);return u=u+new Array(n+1).join(".0"),y(u.split("."),function(i){return new Array(20-i.length).join("0")+i}).reverse()});--f>=0;){if(a[0][f]>a[1][f])return 1;if(a[0][f]===a[1][f]){if(f===0)return 0}else return-1}}function O(e,f,a){var u=A;typeof f=="string"&&(a=f,f=void 0),f===void 0&&(f=!1),a&&(u=g(a));var n=""+u.version;for(var i in e)if(e.hasOwnProperty(i)&&u[i]){if(typeof e[i]!="string")throw new Error("Browser version in the minVersion map should be a string: "+i+": "+String(e));return C([n,e[i]])<0}return f}function m(e,f,a){return!O(e,f,a)}return A.isUnsupportedBrowser=O,A.compareVersions=C,A.check=m,A._detect=g,A.detect=g,A})},{}],71:[function(k,z,o){},{}],72:[function(k,z,o){var M=k("buffer").Buffer,g=M.isEncoding||function(m){switch(m&&m.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(m){if(m&&!g(m))throw new Error("Unknown encoding: "+m)}var b=o.StringDecoder=function(m){this.encoding=(m||"utf8").toLowerCase().replace(/[-_]/,""),A(m);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=C;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=O;break;default:this.write=y;return}this.charBuffer=new M(6),this.charReceived=0,this.charLength=0};b.prototype.write=function(m){for(var e="";this.charLength;){var f=m.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:m.length;if(m.copy(this.charBuffer,this.charReceived,0,f),this.charReceived+=f,this.charReceived<this.charLength)return"";m=m.slice(f,m.length),e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var u=e.charCodeAt(e.length-1);if(u>=55296&&u<=56319){this.charLength+=this.surrogateSize,e="";continue}if(this.charReceived=this.charLength=0,m.length===0)return e;break}this.detectIncompleteChar(m);var a=m.length;this.charLength&&(m.copy(this.charBuffer,0,m.length-this.charReceived,a),a-=this.charReceived),e+=m.toString(this.encoding,0,a);var a=e.length-1,u=e.charCodeAt(a);if(u>=55296&&u<=56319){var n=this.surrogateSize;return this.charLength+=n,this.charReceived+=n,this.charBuffer.copy(this.charBuffer,n,0,n),m.copy(this.charBuffer,0,0,n),e.substring(0,a)}return e},b.prototype.detectIncompleteChar=function(m){for(var e=m.length>=3?3:m.length;e>0;e--){var f=m[m.length-e];if(e==1&&f>>5==6){this.charLength=2;break}if(e<=2&&f>>4==14){this.charLength=3;break}if(e<=3&&f>>3==30){this.charLength=4;break}}this.charReceived=e},b.prototype.end=function(m){var e="";if(m&&m.length&&(e=this.write(m)),this.charReceived){var f=this.charReceived,a=this.charBuffer,u=this.encoding;e+=a.slice(0,f).toString(u)}return e};function y(m){return m.toString(this.encoding)}function C(m){this.charReceived=m.length%2,this.charLength=this.charReceived?2:0}function O(m){this.charReceived=m.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(k,z,o){(function(M,g){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var A=k("base64-js"),b=k("ieee754"),y=k("isarray");o.Buffer=g,o.SlowBuffer=d,o.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=M.TYPED_ARRAY_SUPPORT!==void 0?M.TYPED_ARRAY_SUPPORT:C(),o.kMaxLength=O();function C(){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(te){return!1}}function O(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(le,te){if(O()<te)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(le=new Uint8Array(te),le.__proto__=g.prototype):(le===null&&(le=new g(te)),le.length=te),le}function g(le,te,Q){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(le,te,Q);if(typeof le=="number"){if(typeof te=="string")throw new Error("If encoding is specified then the first argument must be a string");return u(this,le)}return e(this,le,te,Q)}g.poolSize=8192,g._augment=function(le){return le.__proto__=g.prototype,le};function e(le,te,Q,J){if(typeof te=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&te instanceof ArrayBuffer?r(le,te,Q,J):typeof te=="string"?n(le,te,Q):c(le,te)}g.from=function(le,te,Q){return e(null,le,te,Q)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function f(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 a(le,te,Q,J){return f(te),te<=0?m(le,te):Q!==void 0?typeof J=="string"?m(le,te).fill(Q,J):m(le,te).fill(Q):m(le,te)}g.alloc=function(le,te,Q){return a(null,le,te,Q)};function u(le,te){if(f(te),le=m(le,te<0?0:h(te)|0),!g.TYPED_ARRAY_SUPPORT)for(var Q=0;Q<te;++Q)le[Q]=0;return le}g.allocUnsafe=function(le){return u(null,le)},g.allocUnsafeSlow=function(le){return u(null,le)};function n(le,te,Q){if((typeof Q!="string"||Q==="")&&(Q="utf8"),!g.isEncoding(Q))throw new TypeError('"encoding" must be a valid string encoding');var J=s(te,Q)|0;le=m(le,J);var ve=le.write(te,Q);return ve!==J&&(le=le.slice(0,ve)),le}function i(le,te){var Q=te.length<0?0:h(te.length)|0;le=m(le,Q);for(var J=0;J<Q;J+=1)le[J]=te[J]&255;return le}function r(le,te,Q,J){if(te.byteLength,Q<0||te.byteLength<Q)throw new RangeError("'offset' is out of bounds");if(te.byteLength<Q+(J||0))throw new RangeError("'length' is out of bounds");return Q===void 0&&J===void 0?te=new Uint8Array(te):J===void 0?te=new Uint8Array(te,Q):te=new Uint8Array(te,Q,J),g.TYPED_ARRAY_SUPPORT?(le=te,le.__proto__=g.prototype):le=i(le,te),le}function c(le,te){if(g.isBuffer(te)){var Q=h(te.length)|0;return le=m(le,Q),le.length===0||te.copy(le,0,0,Q),le}if(te){if(typeof ArrayBuffer!="undefined"&&te.buffer instanceof ArrayBuffer||"length"in te)return typeof te.length!="number"||Oe(te.length)?m(le,0):i(le,te);if(te.type==="Buffer"&&y(te.data))return i(le,te.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(le){if(le>=O())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O().toString(16)+" bytes");return le|0}function d(le){return+le!=le&&(le=0),g.alloc(+le)}g.isBuffer=function(te){return!!(te!=null&&te._isBuffer)},g.compare=function(te,Q){if(!g.isBuffer(te)||!g.isBuffer(Q))throw new TypeError("Arguments must be Buffers");if(te===Q)return 0;for(var J=te.length,ve=Q.length,_e=0,Ae=Math.min(J,ve);_e<Ae;++_e)if(te[_e]!==Q[_e]){J=te[_e],ve=Q[_e];break}return J<ve?-1:ve<J?1:0},g.isEncoding=function(te){switch(String(te).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}},g.concat=function(te,Q){if(!y(te))throw new TypeError('"list" argument must be an Array of Buffers');if(te.length===0)return g.alloc(0);var J;if(Q===void 0)for(Q=0,J=0;J<te.length;++J)Q+=te[J].length;var ve=g.allocUnsafe(Q),_e=0;for(J=0;J<te.length;++J){var Ae=te[J];if(!g.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(ve,_e),_e+=Ae.length}return ve};function s(le,te){if(g.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 Q=le.length;if(Q===0)return 0;for(var J=!1;;)switch(te){case"ascii":case"latin1":case"binary":return Q;case"utf8":case"utf-8":case void 0:return se(le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q*2;case"hex":return Q>>>1;case"base64":return re(le).length;default:if(J)return se(le).length;te=(""+te).toLowerCase(),J=!0}}g.byteLength=s;function l(le,te,Q){var J=!1;if((te===void 0||te<0)&&(te=0),te>this.length)return"";if((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)return"";if(Q>>>=0,te>>>=0,Q<=te)return"";for(le||(le="utf8");;)switch(le){case"hex":return W(this,te,Q);case"utf8":case"utf-8":return L(this,te,Q);case"ascii":return H(this,te,Q);case"latin1":case"binary":return D(this,te,Q);case"base64":return U(this,te,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,te,Q);default:if(J)throw new TypeError("Unknown encoding: "+le);le=(le+"").toLowerCase(),J=!0}}g.prototype._isBuffer=!0;function w(le,te,Q){var J=le[te];le[te]=le[Q],le[Q]=J}g.prototype.swap16=function(){var te=this.length;if(te%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;Q<te;Q+=2)w(this,Q,Q+1);return this},g.prototype.swap32=function(){var te=this.length;if(te%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Q=0;Q<te;Q+=4)w(this,Q,Q+3),w(this,Q+1,Q+2);return this},g.prototype.swap64=function(){var te=this.length;if(te%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Q=0;Q<te;Q+=8)w(this,Q,Q+7),w(this,Q+1,Q+6),w(this,Q+2,Q+5),w(this,Q+3,Q+4);return this},g.prototype.toString=function(){var te=this.length|0;return te===0?"":arguments.length===0?L(this,0,te):l.apply(this,arguments)},g.prototype.equals=function(te){if(!g.isBuffer(te))throw new TypeError("Argument must be a Buffer");return this===te?!0:g.compare(this,te)===0},g.prototype.inspect=function(){var te="",Q=o.INSPECT_MAX_BYTES;return this.length>0&&(te=this.toString("hex",0,Q).match(/.{2}/g).join(" "),this.length>Q&&(te+=" ... ")),"<Buffer "+te+">"},g.prototype.compare=function(te,Q,J,ve,_e){if(!g.isBuffer(te))throw new TypeError("Argument must be a Buffer");if(Q===void 0&&(Q=0),J===void 0&&(J=te?te.length:0),ve===void 0&&(ve=0),_e===void 0&&(_e=this.length),Q<0||J>te.length||ve<0||_e>this.length)throw new RangeError("out of range index");if(ve>=_e&&Q>=J)return 0;if(ve>=_e)return-1;if(Q>=J)return 1;if(Q>>>=0,J>>>=0,ve>>>=0,_e>>>=0,this===te)return 0;for(var Ae=_e-ve,Je=J-Q,tt=Math.min(Ae,Je),ut=this.slice(ve,_e),ht=te.slice(Q,J),vt=0;vt<tt;++vt)if(ut[vt]!==ht[vt]){Ae=ut[vt],Je=ht[vt];break}return Ae<Je?-1:Je<Ae?1:0};function E(le,te,Q,J,ve){if(le.length===0)return-1;if(typeof Q=="string"?(J=Q,Q=0):Q>2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),Q=+Q,isNaN(Q)&&(Q=ve?0:le.length-1),Q<0&&(Q=le.length+Q),Q>=le.length){if(ve)return-1;Q=le.length-1}else if(Q<0)if(ve)Q=0;else return-1;if(typeof te=="string"&&(te=g.from(te,J)),g.isBuffer(te))return te.length===0?-1:_(le,te,Q,J,ve);if(typeof te=="number")return te=te&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(le,te,Q):Uint8Array.prototype.lastIndexOf.call(le,te,Q):_(le,[te],Q,J,ve);throw new TypeError("val must be string, number or Buffer")}function _(le,te,Q,J,ve){var _e=1,Ae=le.length,Je=te.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(le.length<2||te.length<2)return-1;_e=2,Ae/=2,Je/=2,Q/=2}function tt(Ve,Ue){return _e===1?Ve[Ue]:Ve.readUInt16BE(Ue*_e)}var ut;if(ve){var ht=-1;for(ut=Q;ut<Ae;ut++)if(tt(le,ut)===tt(te,ht===-1?0:ut-ht)){if(ht===-1&&(ht=ut),ut-ht+1===Je)return ht*_e}else ht!==-1&&(ut-=ut-ht),ht=-1}else for(Q+Je>Ae&&(Q=Ae-Je),ut=Q;ut>=0;ut--){for(var vt=!0,_t=0;_t<Je;_t++)if(tt(le,ut+_t)!==tt(te,_t)){vt=!1;break}if(vt)return ut}return-1}g.prototype.includes=function(te,Q,J){return this.indexOf(te,Q,J)!==-1},g.prototype.indexOf=function(te,Q,J){return E(this,te,Q,J,!0)},g.prototype.lastIndexOf=function(te,Q,J){return E(this,te,Q,J,!1)};function P(le,te,Q,J){Q=Number(Q)||0;var ve=le.length-Q;J?(J=Number(J),J>ve&&(J=ve)):J=ve;var _e=te.length;if(_e%2!==0)throw new TypeError("Invalid hex string");J>_e/2&&(J=_e/2);for(var Ae=0;Ae<J;++Ae){var Je=parseInt(te.substr(Ae*2,2),16);if(isNaN(Je))return Ae;le[Q+Ae]=Je}return Ae}function R(le,te,Q,J){return ae(se(te,le.length-Q),le,Q,J)}function x(le,te,Q,J){return ae($(te),le,Q,J)}function S(le,te,Q,J){return x(le,te,Q,J)}function v(le,te,Q,J){return ae(re(te),le,Q,J)}function T(le,te,Q,J){return ae(me(te,le.length-Q),le,Q,J)}g.prototype.write=function(te,Q,J,ve){if(Q===void 0)ve="utf8",J=this.length,Q=0;else if(J===void 0&&typeof Q=="string")ve=Q,J=this.length,Q=0;else if(isFinite(Q))Q=Q|0,isFinite(J)?(J=J|0,ve===void 0&&(ve="utf8")):(ve=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var _e=this.length-Q;if((J===void 0||J>_e)&&(J=_e),te.length>0&&(J<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Ae=!1;;)switch(ve){case"hex":return P(this,te,Q,J);case"utf8":case"utf-8":return R(this,te,Q,J);case"ascii":return x(this,te,Q,J);case"latin1":case"binary":return S(this,te,Q,J);case"base64":return v(this,te,Q,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,te,Q,J);default:if(Ae)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(le,te,Q){return te===0&&Q===le.length?A.fromByteArray(le):A.fromByteArray(le.slice(te,Q))}function L(le,te,Q){Q=Math.min(le.length,Q);for(var J=[],ve=te;ve<Q;){var _e=le[ve],Ae=null,Je=_e>239?4:_e>223?3:_e>191?2:1;if(ve+Je<=Q){var tt,ut,ht,vt;switch(Je){case 1:_e<128&&(Ae=_e);break;case 2:tt=le[ve+1],(tt&192)===128&&(vt=(_e&31)<<6|tt&63,vt>127&&(Ae=vt));break;case 3:tt=le[ve+1],ut=le[ve+2],(tt&192)===128&&(ut&192)===128&&(vt=(_e&15)<<12|(tt&63)<<6|ut&63,vt>2047&&(vt<55296||vt>57343)&&(Ae=vt));break;case 4:tt=le[ve+1],ut=le[ve+2],ht=le[ve+3],(tt&192)===128&&(ut&192)===128&&(ht&192)===128&&(vt=(_e&15)<<18|(tt&63)<<12|(ut&63)<<6|ht&63,vt>65535&&vt<1114112&&(Ae=vt))}}Ae===null?(Ae=65533,Je=1):Ae>65535&&(Ae-=65536,J.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),J.push(Ae),ve+=Je}return V(J)}var N=4096;function V(le){var te=le.length;if(te<=N)return String.fromCharCode.apply(String,le);for(var Q="",J=0;J<te;)Q+=String.fromCharCode.apply(String,le.slice(J,J+=N));return Q}function H(le,te,Q){var J="";Q=Math.min(le.length,Q);for(var ve=te;ve<Q;++ve)J+=String.fromCharCode(le[ve]&127);return J}function D(le,te,Q){var J="";Q=Math.min(le.length,Q);for(var ve=te;ve<Q;++ve)J+=String.fromCharCode(le[ve]);return J}function W(le,te,Q){var J=le.length;(!te||te<0)&&(te=0),(!Q||Q<0||Q>J)&&(Q=J);for(var ve="",_e=te;_e<Q;++_e)ve+=ue(le[_e]);return ve}function F(le,te,Q){for(var J=le.slice(te,Q),ve="",_e=0;_e<J.length;_e+=2)ve+=String.fromCharCode(J[_e]+J[_e+1]*256);return ve}g.prototype.slice=function(te,Q){var J=this.length;te=~~te,Q=Q===void 0?J:~~Q,te<0?(te+=J,te<0&&(te=0)):te>J&&(te=J),Q<0?(Q+=J,Q<0&&(Q=0)):Q>J&&(Q=J),Q<te&&(Q=te);var ve;if(g.TYPED_ARRAY_SUPPORT)ve=this.subarray(te,Q),ve.__proto__=g.prototype;else{var _e=Q-te;ve=new g(_e,void 0);for(var Ae=0;Ae<_e;++Ae)ve[Ae]=this[Ae+te]}return ve};function I(le,te,Q){if(le%1!==0||le<0)throw new RangeError("offset is not uint");if(le+te>Q)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae<Q&&(_e*=256);)ve+=this[te+Ae]*_e;return ve},g.prototype.readUIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te+--Q],_e=1;Q>0&&(_e*=256);)ve+=this[te+--Q]*_e;return ve},g.prototype.readUInt8=function(te,Q){return Q||I(te,1,this.length),this[te]},g.prototype.readUInt16LE=function(te,Q){return Q||I(te,2,this.length),this[te]|this[te+1]<<8},g.prototype.readUInt16BE=function(te,Q){return Q||I(te,2,this.length),this[te]<<8|this[te+1]},g.prototype.readUInt32LE=function(te,Q){return Q||I(te,4,this.length),(this[te]|this[te+1]<<8|this[te+2]<<16)+this[te+3]*16777216},g.prototype.readUInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]*16777216+(this[te+1]<<16|this[te+2]<<8|this[te+3])},g.prototype.readIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae<Q&&(_e*=256);)ve+=this[te+Ae]*_e;return _e*=128,ve>=_e&&(ve-=Math.pow(2,8*Q)),ve},g.prototype.readIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=Q,_e=1,Ae=this[te+--ve];ve>0&&(_e*=256);)Ae+=this[te+--ve]*_e;return _e*=128,Ae>=_e&&(Ae-=Math.pow(2,8*Q)),Ae},g.prototype.readInt8=function(te,Q){return Q||I(te,1,this.length),this[te]&128?(255-this[te]+1)*-1:this[te]},g.prototype.readInt16LE=function(te,Q){Q||I(te,2,this.length);var J=this[te]|this[te+1]<<8;return J&32768?J|4294901760:J},g.prototype.readInt16BE=function(te,Q){Q||I(te,2,this.length);var J=this[te+1]|this[te]<<8;return J&32768?J|4294901760:J},g.prototype.readInt32LE=function(te,Q){return Q||I(te,4,this.length),this[te]|this[te+1]<<8|this[te+2]<<16|this[te+3]<<24},g.prototype.readInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]<<24|this[te+1]<<16|this[te+2]<<8|this[te+3]},g.prototype.readFloatLE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!0,23,4)},g.prototype.readFloatBE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!1,23,4)},g.prototype.readDoubleLE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!0,52,8)},g.prototype.readDoubleBE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!1,52,8)};function K(le,te,Q,J,ve,_e){if(!g.isBuffer(le))throw new TypeError('"buffer" argument must be a Buffer instance');if(te>ve||te<_e)throw new RangeError('"value" argument is out of bounds');if(Q+J>le.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,J=J|0,!ve){var _e=Math.pow(2,8*J)-1;K(this,te,Q,J,_e,0)}var Ae=1,Je=0;for(this[Q]=te&255;++Je<J&&(Ae*=256);)this[Q+Je]=te/Ae&255;return Q+J},g.prototype.writeUIntBE=function(te,Q,J,ve){if(te=+te,Q=Q|0,J=J|0,!ve){var _e=Math.pow(2,8*J)-1;K(this,te,Q,J,_e,0)}var Ae=J-1,Je=1;for(this[Q+Ae]=te&255;--Ae>=0&&(Je*=256);)this[Q+Ae]=te/Je&255;return Q+J},g.prototype.writeUInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,255,0),g.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),this[Q]=te&255,Q+1};function ee(le,te,Q,J){te<0&&(te=65535+te+1);for(var ve=0,_e=Math.min(le.length-Q,2);ve<_e;++ve)le[Q+ve]=(te&255<<8*(J?ve:1-ve))>>>(J?ve:1-ve)*8}g.prototype.writeUInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeUInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2};function he(le,te,Q,J){te<0&&(te=4294967295+te+1);for(var ve=0,_e=Math.min(le.length-Q,4);ve<_e;++ve)le[Q+ve]=te>>>(J?ve:3-ve)*8&255}g.prototype.writeUInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Q+3]=te>>>24,this[Q+2]=te>>>16,this[Q+1]=te>>>8,this[Q]=te&255):he(this,te,Q,!0),Q+4},g.prototype.writeUInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4},g.prototype.writeIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Ae=0,Je=1,tt=0;for(this[Q]=te&255;++Ae<J&&(Je*=256);)te<0&&tt===0&&this[Q+Ae-1]!==0&&(tt=1),this[Q+Ae]=(te/Je>>0)-tt&255;return Q+J},g.prototype.writeIntBE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Ae=J-1,Je=1,tt=0;for(this[Q+Ae]=te&255;--Ae>=0&&(Je*=256);)te<0&&tt===0&&this[Q+Ae+1]!==0&&(tt=1),this[Q+Ae]=(te/Je>>0)-tt&255;return Q+J},g.prototype.writeInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,127,-128),g.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),te<0&&(te=255+te+1),this[Q]=te&255,Q+1},g.prototype.writeInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2},g.prototype.writeInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8,this[Q+2]=te>>>16,this[Q+3]=te>>>24):he(this,te,Q,!0),Q+4},g.prototype.writeInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),te<0&&(te=4294967295+te+1),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4};function de(le,te,Q,J,ve,_e){if(Q+J>le.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Se(le,te,Q,J,ve){return ve||de(le,te,Q,4,34028234663852886e22,-34028234663852886e22),b.write(le,te,Q,J,23,4),Q+4}g.prototype.writeFloatLE=function(te,Q,J){return Se(this,te,Q,!0,J)},g.prototype.writeFloatBE=function(te,Q,J){return Se(this,te,Q,!1,J)};function Te(le,te,Q,J,ve){return ve||de(le,te,Q,8,17976931348623157e292,-17976931348623157e292),b.write(le,te,Q,J,52,8),Q+8}g.prototype.writeDoubleLE=function(te,Q,J){return Te(this,te,Q,!0,J)},g.prototype.writeDoubleBE=function(te,Q,J){return Te(this,te,Q,!1,J)},g.prototype.copy=function(te,Q,J,ve){if(J||(J=0),!ve&&ve!==0&&(ve=this.length),Q>=te.length&&(Q=te.length),Q||(Q=0),ve>0&&ve<J&&(ve=J),ve===J)return 0;if(te.length===0||this.length===0)return 0;if(Q<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),te.length-Q<ve-J&&(ve=te.length-Q+J);var _e=ve-J,Ae;if(this===te&&J<Q&&Q<ve)for(Ae=_e-1;Ae>=0;--Ae)te[Ae+Q]=this[Ae+J];else if(_e<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<_e;++Ae)te[Ae+Q]=this[Ae+J];else Uint8Array.prototype.set.call(te,this.subarray(J,J+_e),Q);return _e},g.prototype.fill=function(te,Q,J,ve){if(typeof te=="string"){if(typeof Q=="string"?(ve=Q,Q=0,J=this.length):typeof J=="string"&&(ve=J,J=this.length),te.length===1){var _e=te.charCodeAt(0);_e<256&&(te=_e)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!g.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof te=="number"&&(te=te&255);if(Q<0||this.length<Q||this.length<J)throw new RangeError("Out of range index");if(J<=Q)return this;Q=Q>>>0,J=J===void 0?this.length:J>>>0,te||(te=0);var Ae;if(typeof te=="number")for(Ae=Q;Ae<J;++Ae)this[Ae]=te;else{var Je=g.isBuffer(te)?te:se(new g(te,ve).toString()),tt=Je.length;for(Ae=0;Ae<J-Q;++Ae)this[Ae+Q]=Je[Ae%tt]}return this};var ce=/[^+\/0-9A-Za-z-_]/g;function be(le){if(le=ye(le).replace(ce,""),le.length<2)return"";for(;le.length%4!==0;)le=le+"=";return le}function ye(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,te){te=te||Infinity;for(var Q,J=le.length,ve=null,_e=[],Ae=0;Ae<J;++Ae){if(Q=le.charCodeAt(Ae),Q>55295&&Q<57344){if(!ve){if(Q>56319){(te-=3)>-1&&_e.push(239,191,189);continue}else if(Ae+1===J){(te-=3)>-1&&_e.push(239,191,189);continue}ve=Q;continue}if(Q<56320){(te-=3)>-1&&_e.push(239,191,189),ve=Q;continue}Q=(ve-55296<<10|Q-56320)+65536}else ve&&((te-=3)>-1&&_e.push(239,191,189));if(ve=null,Q<128){if((te-=1)<0)break;_e.push(Q)}else if(Q<2048){if((te-=2)<0)break;_e.push(Q>>6|192,Q&63|128)}else if(Q<65536){if((te-=3)<0)break;_e.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if((te-=4)<0)break;_e.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw new Error("Invalid code point")}return _e}function $(le){for(var te=[],Q=0;Q<le.length;++Q)te.push(le.charCodeAt(Q)&255);return te}function me(le,te){for(var Q,J,ve,_e=[],Ae=0;Ae<le.length&&!((te-=2)<0);++Ae)Q=le.charCodeAt(Ae),J=Q>>8,ve=Q%256,_e.push(ve),_e.push(J);return _e}function re(le){return A.toByteArray(be(le))}function ae(le,te,Q,J){for(var ve=0;ve<J&&!(ve+Q>=te.length||ve>=le.length);++ve)te[ve+Q]=le[ve];return ve}function Oe(le){return le!==le}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(k,z,o){z.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(k,z,o){z.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(k,z,o){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var M=Array.prototype.slice;z.exports=g;function g(b,y){if(!(this instanceof g))return new g(b,y);this.src=b,this._withAccess=y}g.prototype.withAccess=function(b){return this._withAccess=b!==!1,this},g.prototype.pick=function(b){return Array.isArray(b)||(b=M.call(arguments)),b.length&&(this.keys=b),this},g.prototype.to=function(b){if(b=b||{},!this.src)return b;var y=this.keys||Object.keys(this.src);if(!this._withAccess){for(var C=0;C<y.length;C++){if(O=y[C],b[O]!==void 0)continue;b[O]=this.src[O]}return b}for(var C=0;C<y.length;C++){var O=y[C];if(!A(b,O))continue;var m=this.src.__lookupGetter__(O),e=this.src.__lookupSetter__(O);m&&b.__defineGetter__(O,m),e&&b.__defineSetter__(O,e),!m&&!e&&(b[O]=this.src[O])}return b},g.prototype.toCover=function(b){for(var y=this.keys||Object.keys(this.src),C=0;C<y.length;C++){var O=y[C];delete b[O];var m=this.src.__lookupGetter__(O),e=this.src.__lookupSetter__(O);m&&b.__defineGetter__(O,m),e&&b.__defineSetter__(O,e),!m&&!e&&(b[O]=this.src[O])}},g.prototype.override=g.prototype.toCover,g.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(k,z,o){k("../../modules/es6.string.iterator"),k("../../modules/es6.array.from"),z.exports=k("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(k,z,o){var M=k("../../modules/_core"),g=M.JSON||(M.JSON={stringify:JSON.stringify});z.exports=function(b){return g.stringify.apply(g,arguments)}},{"../../modules/_core":99}],79:[function(k,z,o){k("../../modules/es6.object.assign"),z.exports=k("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(k,z,o){k("../../modules/es6.object.create");var M=k("../../modules/_core").Object;z.exports=function(A,b){return M.create(A,b)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(k,z,o){k("../../modules/es6.object.define-property");var M=k("../../modules/_core").Object;z.exports=function(A,b,y){return M.defineProperty(A,b,y)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(k,z,o){k("../../modules/es7.object.entries"),z.exports=k("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(k,z,o){k("../../modules/es6.object.get-own-property-names");var M=k("../../modules/_core").Object;z.exports=function(A){return M.getOwnPropertyNames(A)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(k,z,o){k("../../modules/es6.object.get-prototype-of"),z.exports=k("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(k,z,o){k("../../modules/es6.object.keys"),z.exports=k("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(k,z,o){k("../modules/es6.object.to-string"),k("../modules/es6.string.iterator"),k("../modules/web.dom.iterable"),k("../modules/es6.promise"),k("../modules/es7.promise.finally"),k("../modules/es7.promise.try"),z.exports=k("../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(k,z,o){k("../modules/web.immediate"),z.exports=k("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(k,z,o){k("../../modules/es6.string.from-code-point"),z.exports=k("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(k,z,o){k("../../modules/es6.function.has-instance"),z.exports=k("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(k,z,o){k("../../modules/es6.symbol"),k("../../modules/es6.object.to-string"),k("../../modules/es7.symbol.async-iterator"),k("../../modules/es7.symbol.observable"),z.exports=k("../../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(k,z,o){k("../../modules/es6.string.iterator"),k("../../modules/web.dom.iterable"),z.exports=k("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(k,z,o){z.exports=function(M){if(typeof M!="function")throw TypeError(M+" is not a function!");return M}},{}],93:[function(k,z,o){z.exports=function(){}},{}],94:[function(k,z,o){z.exports=function(M,g,A,b){if(!(M instanceof g)||b!==void 0&&b in M)throw TypeError(A+": incorrect invocation!");return M}},{}],95:[function(k,z,o){var M=k("./_is-object");z.exports=function(g){if(!M(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":119}],96:[function(k,z,o){var M=k("./_to-iobject"),g=k("./_to-length"),A=k("./_to-absolute-index");z.exports=function(b){return function(y,C,O){var m=M(y),e=g(m.length),f=A(O,e),a;if(b&&C!=C){for(;e>f;)if(a=m[f++],a!=a)return!0}else for(;e>f;f++)if((b||f in m)&&m[f]===C)return b||f||0;return!b&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,z,o){var M=k("./_cof"),g=k("./_wks")("toStringTag"),A=M(function(){return arguments}())=="Arguments",b=function(y,C){try{return y[C]}catch(O){}};z.exports=function(y){var C,O,m;return y===void 0?"Undefined":y===null?"Null":typeof(O=b(C=Object(y),g))=="string"?O:A?M(C):(m=M(C))=="Object"&&typeof C.callee=="function"?"Arguments":m}},{"./_cof":98,"./_wks":166}],98:[function(k,z,o){var M={}.toString;z.exports=function(g){return M.call(g).slice(8,-1)}},{}],99:[function(k,z,o){var M=z.exports={version:"2.6.11"};typeof __e=="number"&&(__e=M)},{}],100:[function(k,z,o){"use strict";var M=k("./_object-dp"),g=k("./_property-desc");z.exports=function(A,b,y){b in A?M.f(A,b,g(0,y)):A[b]=y}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,z,o){var M=k("./_a-function");z.exports=function(g,A,b){if(M(g),A===void 0)return g;switch(b){case 1:return function(y){return g.call(A,y)};case 2:return function(y,C){return g.call(A,y,C)};case 3:return function(y,C,O){return g.call(A,y,C,O)}}return function(){return g.apply(A,arguments)}}},{"./_a-function":92}],102:[function(k,z,o){z.exports=function(M){if(M==null)throw TypeError("Can't call method on "+M);return M}},{}],103:[function(k,z,o){z.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,z,o){var M=k("./_is-object"),g=k("./_global").document,A=M(g)&&M(g.createElement);z.exports=function(b){return A?g.createElement(b):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,z,o){z.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,z,o){var M=k("./_object-keys"),g=k("./_object-gops"),A=k("./_object-pie");z.exports=function(b){var y=M(b),C=g.f;if(C)for(var O=C(b),m=A.f,e=0,f;O.length>e;)m.call(b,f=O[e++])&&y.push(f);return y}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,z,o){var M=k("./_global"),g=k("./_core"),A=k("./_ctx"),b=k("./_hide"),y=k("./_has"),C="prototype",O=function(m,e,f){var a=m&O.F,u=m&O.G,n=m&O.S,i=m&O.P,r=m&O.B,c=m&O.W,h=u?g:g[e]||(g[e]={}),d=h[C],s=u?M:n?M[e]:(M[e]||{})[C],l,w,E;u&&(f=e);for(l in f){if(w=!a&&s&&s[l]!==void 0,w&&y(h,l))continue;E=w?s[l]:f[l],h[l]=u&&typeof s[l]!="function"?f[l]:r&&w?A(E,M):c&&s[l]==E?function(_){var P=function(R,x,S){if(this instanceof _){switch(arguments.length){case 0:return new _;case 1:return new _(R);case 2:return new _(R,x)}return new _(R,x,S)}return _.apply(this,arguments)};return P[C]=_[C],P}(E):i&&typeof E=="function"?A(Function.call,E):E,i&&((h.virtual||(h.virtual={}))[l]=E,m&O.R&&d&&!d[l]&&b(d,l,E))}};O.F=1,O.G=2,O.S=4,O.P=8,O.B=16,O.W=32,O.U=64,O.R=128,z.exports=O},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(k,z,o){z.exports=function(M){try{return!!M()}catch(g){return!0}}},{}],109:[function(k,z,o){var M=k("./_ctx"),g=k("./_iter-call"),A=k("./_is-array-iter"),b=k("./_an-object"),y=k("./_to-length"),C=k("./core.get-iterator-method"),O={},m={},o=z.exports=function(e,f,a,u,n){var i=n?function(){return e}:C(e),r=M(a,u,f?2:1),c=0,h,d,s,l;if(typeof i!="function")throw TypeError(e+" is not iterable!");if(A(i)){for(h=y(e.length);h>c;c++)if(l=f?r(b(d=e[c])[0],d[1]):r(e[c]),l===O||l===m)return l}else for(s=i.call(e);!(d=s.next()).done;)if(l=g(s,r,d.value,f),l===O||l===m)return l};o.BREAK=O,o.RETURN=m},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(k,z,o){var M=z.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=M)},{}],111:[function(k,z,o){var M={}.hasOwnProperty;z.exports=function(g,A){return M.call(g,A)}},{}],112:[function(k,z,o){var M=k("./_object-dp"),g=k("./_property-desc");z.exports=k("./_descriptors")?function(A,b,y){return M.f(A,b,g(1,y))}:function(A,b,y){return A[b]=y,A}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(k,z,o){var M=k("./_global").document;z.exports=M&&M.documentElement},{"./_global":110}],114:[function(k,z,o){z.exports=!k("./_descriptors")&&!k("./_fails")(function(){return Object.defineProperty(k("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(k,z,o){z.exports=function(M,g,A){var b=A===void 0;switch(g.length){case 0:return b?M():M.call(A);case 1:return b?M(g[0]):M.call(A,g[0]);case 2:return b?M(g[0],g[1]):M.call(A,g[0],g[1]);case 3:return b?M(g[0],g[1],g[2]):M.call(A,g[0],g[1],g[2]);case 4:return b?M(g[0],g[1],g[2],g[3]):M.call(A,g[0],g[1],g[2],g[3])}return M.apply(A,g)}},{}],116:[function(k,z,o){var M=k("./_cof");z.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return M(g)=="String"?g.split(""):Object(g)}},{"./_cof":98}],117:[function(k,z,o){var M=k("./_iterators"),g=k("./_wks")("iterator"),A=Array.prototype;z.exports=function(b){return b!==void 0&&(M.Array===b||A[g]===b)}},{"./_iterators":125,"./_wks":166}],118:[function(k,z,o){var M=k("./_cof");z.exports=Array.isArray||function(A){return M(A)=="Array"}},{"./_cof":98}],119:[function(k,z,o){z.exports=function(M){return typeof M=="object"?M!==null:typeof M=="function"}},{}],120:[function(k,z,o){var M=k("./_an-object");z.exports=function(g,A,b,y){try{return y?A(M(b)[0],b[1]):A(b)}catch(O){var C=g.return;throw C!==void 0&&M(C.call(g)),O}}},{"./_an-object":95}],121:[function(k,z,o){"use strict";var M=k("./_object-create"),g=k("./_property-desc"),A=k("./_set-to-string-tag"),b={};k("./_hide")(b,k("./_wks")("iterator"),function(){return this}),z.exports=function(y,C,O){y.prototype=M(b,{next:g(1,O)}),A(y,C+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(k,z,o){"use strict";var M=k("./_library"),g=k("./_export"),A=k("./_redefine"),b=k("./_hide"),y=k("./_iterators"),C=k("./_iter-create"),O=k("./_set-to-string-tag"),m=k("./_object-gpo"),e=k("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),a="@@iterator",u="keys",n="values",i=function(){return this};z.exports=function(r,c,h,d,s,l,w){C(h,c,d);var E=function(H){if(!f&&H in x)return x[H];switch(H){case u:return function(){return new h(this,H)};case n:return function(){return new h(this,H)}}return function(){return new h(this,H)}},_=c+" Iterator",P=s==n,R=!1,x=r.prototype,S=x[e]||x[a]||s&&x[s],v=S||E(s),T=s?P?E("entries"):v:void 0,U=c=="Array"&&x.entries||S,L,N,V;if(U&&(V=m(U.call(new r)),V!==Object.prototype&&V.next&&(O(V,_,!0),!M&&typeof V[e]!="function"&&b(V,e,i))),P&&S&&S.name!==n&&(R=!0,v=function(){return S.call(this)}),(!M||w)&&(f||R||!x[e])&&b(x,e,v),y[c]=v,y[_]=i,s)if(L={values:P?v:E(n),keys:l?v:E(u),entries:T},w)for(N in L)N in x||A(x,N,L[N]);else g(g.P+g.F*(f||R),c,L);return L}},{"./_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(k,z,o){var M=k("./_wks")("iterator"),g=!1;try{var A=[7][M]();A.return=function(){g=!0},Array.from(A,function(){throw 2})}catch(b){}z.exports=function(b,y){if(!y&&!g)return!1;var C=!1;try{var O=[7],m=O[M]();m.next=function(){return{done:C=!0}},O[M]=function(){return m},b(O)}catch(e){}return C}},{"./_wks":166}],124:[function(k,z,o){z.exports=function(M,g){return{value:g,done:!!M}}},{}],125:[function(k,z,o){z.exports={}},{}],126:[function(k,z,o){z.exports=!0},{}],127:[function(k,z,o){var M=k("./_uid")("meta"),g=k("./_is-object"),A=k("./_has"),b=k("./_object-dp").f,y=0,C=Object.isExtensible||function(){return!0},O=!k("./_fails")(function(){return C(Object.preventExtensions({}))}),m=function(n){b(n,M,{value:{i:"O"+ ++y,w:{}}})},e=function(n,i){if(!g(n))return typeof n=="symbol"?n:(typeof n=="string"?"S":"P")+n;if(!A(n,M)){if(!C(n))return"F";if(!i)return"E";m(n)}return n[M].i},f=function(n,i){if(!A(n,M)){if(!C(n))return!0;if(!i)return!1;m(n)}return n[M].w},a=function(n){return O&&u.NEED&&C(n)&&!A(n,M)&&m(n),n},u=z.exports={KEY:M,NEED:!1,fastKey:e,getWeak:f,onFreeze:a}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,z,o){var M=k("./_global"),g=k("./_task").set,A=M.MutationObserver||M.WebKitMutationObserver,b=M.process,y=M.Promise,C=k("./_cof")(b)=="process";z.exports=function(){var O,m,e,f=function(){var i,r;for(C&&(i=b.domain)&&i.exit();O;){r=O.fn,O=O.next;try{r()}catch(c){throw O?e():m=void 0,c}}m=void 0,i&&i.enter()};if(C)e=function(){b.nextTick(f)};else if(A&&!(M.navigator&&M.navigator.standalone)){var a=!0,u=document.createTextNode("");new A(f).observe(u,{characterData:!0}),e=function(){u.data=a=!a}}else if(y&&y.resolve){var n=y.resolve(void 0);e=function(){n.then(f)}}else e=function(){g.call(M,f)};return function(i){var r={fn:i,next:void 0};m&&(m.next=r),O||(O=r,e()),m=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,z,o){"use strict";var M=k("./_a-function");function g(A){var b,y;this.promise=new A(function(C,O){if(b!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");b=C,y=O}),this.resolve=M(b),this.reject=M(y)}z.exports.f=function(A){return new g(A)}},{"./_a-function":92}],130:[function(k,z,o){"use strict";var M=k("./_descriptors"),g=k("./_object-keys"),A=k("./_object-gops"),b=k("./_object-pie"),y=k("./_to-object"),C=k("./_iobject"),O=Object.assign;z.exports=!O||k("./_fails")(function(){var m={},e={},f=Symbol(),a="abcdefghijklmnopqrst";return m[f]=7,a.split("").forEach(function(u){e[u]=u}),O({},m)[f]!=7||Object.keys(O({},e)).join("")!=a})?function(e,f){for(var a=y(e),u=arguments.length,n=1,i=A.f,r=b.f;u>n;)for(var c=C(arguments[n++]),h=i?g(c).concat(i(c)):g(c),d=h.length,s=0,l;d>s;)l=h[s++],(!M||r.call(c,l))&&(a[l]=c[l]);return a}:O},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,z,o){var M=k("./_an-object"),g=k("./_object-dps"),A=k("./_enum-bug-keys"),b=k("./_shared-key")("IE_PROTO"),y=function(){},C="prototype",O=function(){var m=k("./_dom-create")("iframe"),e=A.length,f="<",a=">",u;for(m.style.display="none",k("./_html").appendChild(m),m.src="javascript:",u=m.contentWindow.document,u.open(),u.write(f+"script"+a+"document.F=Object"+f+"/script"+a),u.close(),O=u.F;e--;)delete O[C][A[e]];return O()};z.exports=Object.create||function(e,f){var a;return e!==null?(y[C]=M(e),a=new y,y[C]=null,a[b]=e):a=O(),f===void 0?a:g(a,f)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,z,o){var M=k("./_an-object"),g=k("./_ie8-dom-define"),A=k("./_to-primitive"),b=Object.defineProperty;o.f=k("./_descriptors")?Object.defineProperty:function(C,O,m){if(M(C),O=A(O,!0),M(m),g)try{return b(C,O,m)}catch(e){}if("get"in m||"set"in m)throw TypeError("Accessors not supported!");return"value"in m&&(C[O]=m.value),C}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,z,o){var M=k("./_object-dp"),g=k("./_an-object"),A=k("./_object-keys");z.exports=k("./_descriptors")?Object.defineProperties:function(y,C){g(y);for(var O=A(C),m=O.length,e=0,f;m>e;)M.f(y,f=O[e++],C[f]);return y}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,z,o){var M=k("./_object-pie"),g=k("./_property-desc"),A=k("./_to-iobject"),b=k("./_to-primitive"),y=k("./_has"),C=k("./_ie8-dom-define"),O=Object.getOwnPropertyDescriptor;o.f=k("./_descriptors")?O:function(e,f){if(e=A(e),f=b(f,!0),C)try{return O(e,f)}catch(a){}if(y(e,f))return g(!M.f.call(e,f),e[f])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,z,o){var M=k("./_to-iobject"),g=k("./_object-gopn").f,A={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(C){try{return g(C)}catch(O){return b.slice()}};z.exports.f=function(O){return b&&A.call(O)=="[object Window]"?y(O):g(M(O))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,z,o){var M=k("./_object-keys-internal"),g=k("./_enum-bug-keys").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(b){return M(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,z,o){o.f=Object.getOwnPropertySymbols},{}],138:[function(k,z,o){var M=k("./_has"),g=k("./_to-object"),A=k("./_shared-key")("IE_PROTO"),b=Object.prototype;z.exports=Object.getPrototypeOf||function(y){return y=g(y),M(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(k,z,o){var M=k("./_has"),g=k("./_to-iobject"),A=k("./_array-includes")(!1),b=k("./_shared-key")("IE_PROTO");z.exports=function(y,C){var O=g(y),m=0,e=[],f;for(f in O)f!=b&&(M(O,f)&&e.push(f));for(;C.length>m;)M(O,f=C[m++])&&(~A(e,f)||e.push(f));return e}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,z,o){var M=k("./_object-keys-internal"),g=k("./_enum-bug-keys");z.exports=Object.keys||function(b){return M(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,z,o){o.f={}.propertyIsEnumerable},{}],142:[function(k,z,o){var M=k("./_export"),g=k("./_core"),A=k("./_fails");z.exports=function(b,y){var C=(g.Object||{})[b]||Object[b],O={};O[b]=y(C),M(M.S+M.F*A(function(){C(1)}),"Object",O)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,z,o){var M=k("./_descriptors"),g=k("./_object-keys"),A=k("./_to-iobject"),b=k("./_object-pie").f;z.exports=function(y){return function(C){for(var O=A(C),m=g(O),e=m.length,f=0,a=[],u;e>f;)u=m[f++],(!M||b.call(O,u))&&a.push(y?[u,O[u]]:O[u]);return a}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,z,o){z.exports=function(M){try{return{e:!1,v:M()}}catch(g){return{e:!0,v:g}}}},{}],145:[function(k,z,o){var M=k("./_an-object"),g=k("./_is-object"),A=k("./_new-promise-capability");z.exports=function(b,y){if(M(b),g(y)&&y.constructor===b)return y;var C=A.f(b),O=C.resolve;return O(y),C.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,z,o){z.exports=function(M,g){return{enumerable:!(M&1),configurable:!(M&2),writable:!(M&4),value:g}}},{}],147:[function(k,z,o){var M=k("./_hide");z.exports=function(g,A,b){for(var y in A)b&&g[y]?g[y]=A[y]:M(g,y,A[y]);return g}},{"./_hide":112}],148:[function(k,z,o){z.exports=k("./_hide")},{"./_hide":112}],149:[function(k,z,o){"use strict";var M=k("./_global"),g=k("./_core"),A=k("./_object-dp"),b=k("./_descriptors"),y=k("./_wks")("species");z.exports=function(C){var O=typeof g[C]=="function"?g[C]:M[C];b&&O&&!O[y]&&A.f(O,y,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(k,z,o){var M=k("./_object-dp").f,g=k("./_has"),A=k("./_wks")("toStringTag");z.exports=function(b,y,C){b&&!g(b=C?b:b.prototype,A)&&M(b,A,{configurable:!0,value:y})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,z,o){var M=k("./_shared")("keys"),g=k("./_uid");z.exports=function(A){return M[A]||(M[A]=g(A))}},{"./_shared":152,"./_uid":162}],152:[function(k,z,o){var M=k("./_core"),g=k("./_global"),A="__core-js_shared__",b=g[A]||(g[A]={});(z.exports=function(y,C){return b[y]||(b[y]=C!==void 0?C:{})})("versions",[]).push({version:M.version,mode:k("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(k,z,o){var M=k("./_an-object"),g=k("./_a-function"),A=k("./_wks")("species");z.exports=function(b,y){var C=M(b).constructor,O;return C===void 0||(O=M(C)[A])==null?y:g(O)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,z,o){var M=k("./_to-integer"),g=k("./_defined");z.exports=function(A){return function(b,y){var C=String(g(b)),O=M(y),m=C.length,e,f;return O<0||O>=m?A?"":void 0:(e=C.charCodeAt(O),e<55296||e>56319||O+1===m||(f=C.charCodeAt(O+1))<56320||f>57343?A?C.charAt(O):e:A?C.slice(O,O+2):(e-55296<<10)+(f-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,z,o){var M=k("./_ctx"),g=k("./_invoke"),A=k("./_html"),b=k("./_dom-create"),y=k("./_global"),C=y.process,O=y.setImmediate,m=y.clearImmediate,e=y.MessageChannel,f=y.Dispatch,a=0,u={},n="onreadystatechange",i,r,c,h=function(){var s=+this;if(u.hasOwnProperty(s)){var l=u[s];delete u[s],l()}},d=function(s){h.call(s.data)};(!O||!m)&&(O=function(l){for(var w=[],E=1;arguments.length>E;)w.push(arguments[E++]);return u[++a]=function(){g(typeof l=="function"?l:Function(l),w)},i(a),a},m=function(l){delete u[l]},k("./_cof")(C)=="process"?i=function(s){C.nextTick(M(h,s,1))}:f&&f.now?i=function(s){f.now(M(h,s,1))}:e?(r=new e,c=r.port2,r.port1.onmessage=d,i=M(c.postMessage,c,1)):y.addEventListener&&typeof postMessage=="function"&&!y.importScripts?(i=function(s){y.postMessage(s+"","*")},y.addEventListener("message",d,!1)):n in b("script")?i=function(s){A.appendChild(b("script"))[n]=function(){A.removeChild(this),h.call(s)}}:i=function(s){setTimeout(M(h,s,1),0)}),z.exports={set:O,clear:m}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,z,o){var M=k("./_to-integer"),g=Math.max,A=Math.min;z.exports=function(b,y){return b=M(b),b<0?g(b+y,0):A(b,y)}},{"./_to-integer":157}],157:[function(k,z,o){var M=Math.ceil,g=Math.floor;z.exports=function(A){return isNaN(A=+A)?0:(A>0?g:M)(A)}},{}],158:[function(k,z,o){var M=k("./_iobject"),g=k("./_defined");z.exports=function(A){return M(g(A))}},{"./_defined":102,"./_iobject":116}],159:[function(k,z,o){var M=k("./_to-integer"),g=Math.min;z.exports=function(A){return A>0?g(M(A),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,z,o){var M=k("./_defined");z.exports=function(g){return Object(M(g))}},{"./_defined":102}],161:[function(k,z,o){var M=k("./_is-object");z.exports=function(g,A){if(!M(g))return g;var b,y;if(A&&typeof(b=g.toString)=="function"&&!M(y=b.call(g)))return y;if(typeof(b=g.valueOf)=="function"&&!M(y=b.call(g)))return y;if(!A&&typeof(b=g.toString)=="function"&&!M(y=b.call(g)))return y;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,z,o){var M=0,g=Math.random();z.exports=function(A){return"Symbol(".concat(A===void 0?"":A,")_",(++M+g).toString(36))}},{}],163:[function(k,z,o){var M=k("./_global"),g=M.navigator;z.exports=g&&g.userAgent||""},{"./_global":110}],164:[function(k,z,o){var M=k("./_global"),g=k("./_core"),A=k("./_library"),b=k("./_wks-ext"),y=k("./_object-dp").f;z.exports=function(C){var O=g.Symbol||(g.Symbol=A?{}:M.Symbol||{});C.charAt(0)!="_"&&!(C in O)&&y(O,C,{value:b.f(C)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(k,z,o){o.f=k("./_wks")},{"./_wks":166}],166:[function(k,z,o){var M=k("./_shared")("wks"),g=k("./_uid"),A=k("./_global").Symbol,b=typeof A=="function",y=z.exports=function(C){return M[C]||(M[C]=b&&A[C]||(b?A:g)("Symbol."+C))};y.store=M},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,z,o){var M=k("./_classof"),g=k("./_wks")("iterator"),A=k("./_iterators");z.exports=k("./_core").getIteratorMethod=function(b){if(b!=null)return b[g]||b["@@iterator"]||A[M(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,z,o){"use strict";var M=k("./_ctx"),g=k("./_export"),A=k("./_to-object"),b=k("./_iter-call"),y=k("./_is-array-iter"),C=k("./_to-length"),O=k("./_create-property"),m=k("./core.get-iterator-method");g(g.S+g.F*!k("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(f){var a=A(f),u=typeof this=="function"?this:Array,n=arguments.length,i=n>1?arguments[1]:void 0,r=i!==void 0,c=0,h=m(a),d,s,l,w;if(r&&(i=M(i,n>2?arguments[2]:void 0,2)),h!=null&&!(u==Array&&y(h)))for(w=h.call(a),s=new u;!(l=w.next()).done;c++)O(s,c,r?b(w,i,[l.value,c],!0):l.value);else for(d=C(a.length),s=new u(d);d>c;c++)O(s,c,r?i(a[c],c):a[c]);return s.length=c,s}})},{"./_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(k,z,o){"use strict";var M=k("./_add-to-unscopables"),g=k("./_iter-step"),A=k("./_iterators"),b=k("./_to-iobject");z.exports=k("./_iter-define")(Array,"Array",function(y,C){this._t=b(y),this._i=0,this._k=C},function(){var y=this._t,C=this._k,O=this._i++;return!y||O>=y.length?(this._t=void 0,g(1)):C=="keys"?g(0,O):C=="values"?g(0,y[O]):g(0,[O,y[O]])},"values"),A.Arguments=A.Array,M("keys"),M("values"),M("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(k,z,o){"use strict";var M=k("./_is-object"),g=k("./_object-gpo"),A=k("./_wks")("hasInstance"),b=Function.prototype;A in b||k("./_object-dp").f(b,A,{value:function(y){if(typeof this!="function"||!M(y))return!1;if(!M(this.prototype))return y instanceof this;for(;y=g(y);)if(this.prototype===y)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(k,z,o){var M=k("./_export");M(M.S+M.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,z,o){var M=k("./_export");M(M.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,z,o){var M=k("./_export");M(M.S+M.F*!k("./_descriptors"),"Object",{defineProperty:k("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(k,z,o){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,z,o){var M=k("./_to-object"),g=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(b){return g(M(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,z,o){var M=k("./_to-object"),g=k("./_object-keys");k("./_object-sap")("keys",function(){return function(b){return g(M(b))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,z,o){arguments[4][71][0].apply(o,arguments)},{dup:71}],178:[function(k,z,o){"use strict";var M=k("./_library"),g=k("./_global"),A=k("./_ctx"),b=k("./_classof"),y=k("./_export"),C=k("./_is-object"),O=k("./_a-function"),m=k("./_an-instance"),e=k("./_for-of"),f=k("./_species-constructor"),a=k("./_task").set,u=k("./_microtask")(),n=k("./_new-promise-capability"),i=k("./_perform"),r=k("./_user-agent"),c=k("./_promise-resolve"),h="Promise",d=g.TypeError,s=g.process,l=s&&s.versions,w=l&&l.v8||"",E=g[h],_=b(s)=="process",P=function(){},R,x,S,v,T=x=n.f,U=!!function(){try{var I=E.resolve(1),K=(I.constructor={})[k("./_wks")("species")]=function(ee){ee(P,P)};return(_||typeof PromiseRejectionEvent=="function")&&I.then(P)instanceof K&&w.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(ee){}}(),L=function(I){var K;return C(I)&&typeof(K=I.then)=="function"?K:!1},N=function(I,K){if(I._n)return;I._n=!0;var ee=I._c;u(function(){for(var he=I._v,de=I._s==1,Se=0,Te=function(ce){var be=de?ce.ok:ce.fail,ye=ce.resolve,ue=ce.reject,se=ce.domain,$,me,re;try{be?(de||(I._h==2&&D(I),I._h=1),be===!0?$=he:(se&&se.enter(),$=be(he),se&&(se.exit(),re=!0)),$===ce.promise?ue(d("Promise-chain cycle")):(me=L($))?me.call($,ye,ue):ye($)):ue(he)}catch(ae){se&&!re&&se.exit(),ue(ae)}};ee.length>Se;)Te(ee[Se++]);I._c=[],I._n=!1,K&&!I._h&&V(I)})},V=function(I){a.call(g,function(){var K=I._v,ee=H(I),he,de,Se;if(ee&&(he=i(function(){_?s.emit("unhandledRejection",K,I):(de=g.onunhandledrejection)?de({promise:I,reason:K}):(Se=g.console)&&Se.error&&Se.error("Unhandled promise rejection",K)}),I._h=_||H(I)?2:1),I._a=void 0,ee&&he.e)throw he.v})},H=function(I){return I._h!==1&&(I._a||I._c).length===0},D=function(I){a.call(g,function(){var K;_?s.emit("rejectionHandled",I):(K=g.onrejectionhandled)&&K({promise:I,reason:I._v})})},W=function(I){var K=this;if(K._d)return;K._d=!0,K=K._w||K,K._v=I,K._s=2,K._a||(K._a=K._c.slice()),N(K,!0)},F=function(I){var K=this,ee;if(K._d)return;K._d=!0,K=K._w||K;try{if(K===I)throw d("Promise can't be resolved itself");(ee=L(I))?u(function(){var he={_w:K,_d:!1};try{ee.call(I,A(F,he,1),A(W,he,1))}catch(de){W.call(he,de)}}):(K._v=I,K._s=1,N(K,!1))}catch(he){W.call({_w:K,_d:!1},he)}};U||(E=function(K){m(this,E,h,"_h"),O(K),R.call(this);try{K(A(F,this,1),A(W,this,1))}catch(ee){W.call(this,ee)}},R=function(K){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},R.prototype=k("./_redefine-all")(E.prototype,{then:function(K,ee){var he=T(f(this,E));return he.ok=typeof K=="function"?K:!0,he.fail=typeof ee=="function"&&ee,he.domain=_?s.domain:void 0,this._c.push(he),this._a&&this._a.push(he),this._s&&N(this,!1),he.promise},catch:function(I){return this.then(void 0,I)}}),S=function(){var I=new R;this.promise=I,this.resolve=A(F,I,1),this.reject=A(W,I,1)},n.f=T=function(I){return I===E||I===v?new S(I):x(I)}),y(y.G+y.W+y.F*!U,{Promise:E}),k("./_set-to-string-tag")(E,h),k("./_set-species")(h),v=k("./_core")[h],y(y.S+y.F*!U,h,{reject:function(K){var ee=T(this),he=ee.reject;return he(K),ee.promise}}),y(y.S+y.F*(M||!U),h,{resolve:function(K){return c(M&&this===v?E:this,K)}}),y(y.S+y.F*!(U&&k("./_iter-detect")(function(I){E.all(I).catch(P)})),h,{all:function(K){var ee=this,he=T(ee),de=he.resolve,Se=he.reject,Te=i(function(){var ce=[],be=0,ye=1;e(K,!1,function(ue){var se=be++,$=!1;ce.push(void 0),ye++,ee.resolve(ue).then(function(me){if($)return;$=!0,ce[se]=me,--ye||de(ce)},Se)}),--ye||de(ce)});return Te.e&&Se(Te.v),he.promise},race:function(K){var ee=this,he=T(ee),de=he.reject,Se=i(function(){e(K,!1,function(Te){ee.resolve(Te).then(he.resolve,de)})});return Se.e&&de(Se.v),he.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(k,z,o){var M=k("./_export"),g=k("./_to-absolute-index"),A=String.fromCharCode,b=String.fromCodePoint;M(M.S+M.F*(!!b&&b.length!=1),"String",{fromCodePoint:function(C){for(var O=[],m=arguments.length,e=0,f;m>e;){if(f=+arguments[e++],g(f,1114111)!==f)throw RangeError(f+" is not a valid code point");O.push(f<65536?A(f):A(((f-=65536)>>10)+55296,f%1024+56320))}return O.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,z,o){"use strict";var M=k("./_string-at")(!0);k("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g=this._t,A=this._i,b;return A>=g.length?{value:void 0,done:!0}:(b=M(g,A),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(k,z,o){"use strict";var M=k("./_global"),g=k("./_has"),A=k("./_descriptors"),b=k("./_export"),y=k("./_redefine"),C=k("./_meta").KEY,O=k("./_fails"),m=k("./_shared"),e=k("./_set-to-string-tag"),f=k("./_uid"),a=k("./_wks"),u=k("./_wks-ext"),n=k("./_wks-define"),i=k("./_enum-keys"),r=k("./_is-array"),c=k("./_an-object"),h=k("./_is-object"),d=k("./_to-object"),s=k("./_to-iobject"),l=k("./_to-primitive"),w=k("./_property-desc"),E=k("./_object-create"),_=k("./_object-gopn-ext"),P=k("./_object-gopd"),R=k("./_object-gops"),x=k("./_object-dp"),S=k("./_object-keys"),v=P.f,T=x.f,U=_.f,L=M.Symbol,N=M.JSON,V=N&&N.stringify,H="prototype",D=a("_hidden"),W=a("toPrimitive"),F={}.propertyIsEnumerable,I=m("symbol-registry"),K=m("symbols"),ee=m("op-symbols"),he=Object[H],de=typeof L=="function"&&!!R.f,Se=M.QObject,Te=!Se||!Se[H]||!Se[H].findChild,ce=A&&O(function(){return E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a!=7})?function(_e,Ae,Je){var tt=v(he,Ae);tt&&delete he[Ae],T(_e,Ae,Je),tt&&_e!==he&&T(he,Ae,tt)}:T,be=function(_e){var Ae=K[_e]=E(L[H]);return Ae._k=_e,Ae},ye=de&&typeof L.iterator=="symbol"?function(_e){return typeof _e=="symbol"}:function(_e){return _e instanceof L},ue=function(Ae,Je,tt){return Ae===he&&ue(ee,Je,tt),c(Ae),Je=l(Je,!0),c(tt),g(K,Je)?(tt.enumerable?(g(Ae,D)&&Ae[D][Je]&&(Ae[D][Je]=!1),tt=E(tt,{enumerable:w(0,!1)})):(g(Ae,D)||T(Ae,D,w(1,{})),Ae[D][Je]=!0),ce(Ae,Je,tt)):T(Ae,Je,tt)},se=function(Ae,Je){c(Ae);for(var tt=i(Je=s(Je)),ut=0,ht=tt.length,vt;ht>ut;)ue(Ae,vt=tt[ut++],Je[vt]);return Ae},$=function(Ae,Je){return Je===void 0?E(Ae):se(E(Ae),Je)},me=function(Ae){var Je=F.call(this,Ae=l(Ae,!0));return this===he&&g(K,Ae)&&!g(ee,Ae)?!1:Je||!g(this,Ae)||!g(K,Ae)||g(this,D)&&this[D][Ae]?Je:!0},re=function(Ae,Je){if(Ae=s(Ae),Je=l(Je,!0),Ae===he&&g(K,Je)&&!g(ee,Je))return;var tt=v(Ae,Je);return tt&&g(K,Je)&&!(g(Ae,D)&&Ae[D][Je])&&(tt.enumerable=!0),tt},ae=function(Ae){for(var Je=U(s(Ae)),tt=[],ut=0,ht;Je.length>ut;)!g(K,ht=Je[ut++])&&ht!=D&&ht!=C&&tt.push(ht);return tt},Oe=function(Ae){for(var Je=Ae===he,tt=U(Je?ee:s(Ae)),ut=[],ht=0,vt;tt.length>ht;)g(K,vt=tt[ht++])&&(Je?g(he,vt):!0)&&ut.push(K[vt]);return ut};de||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var Ae=f(arguments.length>0?arguments[0]:void 0),Je=function(tt){this===he&&Je.call(ee,tt),g(this,D)&&g(this[D],Ae)&&(this[D][Ae]=!1),ce(this,Ae,w(1,tt))};return A&&Te&&ce(he,Ae,{configurable:!0,set:Je}),be(Ae)},y(L[H],"toString",function(){return this._k}),P.f=re,x.f=ue,k("./_object-gopn").f=_.f=ae,k("./_object-pie").f=me,R.f=Oe,A&&!k("./_library")&&y(he,"propertyIsEnumerable",me,!0),u.f=function(_e){return be(a(_e))}),b(b.G+b.W+b.F*!de,{Symbol:L});for(var le="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;le.length>te;)a(le[te++]);for(var Q=S(a.store),J=0;Q.length>J;)n(Q[J++]);b(b.S+b.F*!de,"Symbol",{for:function(_e){return g(I,_e+="")?I[_e]:I[_e]=L(_e)},keyFor:function(Ae){if(!ye(Ae))throw TypeError(Ae+" is not a symbol!");for(var Je in I)if(I[Je]===Ae)return Je},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),b(b.S+b.F*!de,"Object",{create:$,defineProperty:ue,defineProperties:se,getOwnPropertyDescriptor:re,getOwnPropertyNames:ae,getOwnPropertySymbols:Oe});var ve=O(function(){R.f(1)});b(b.S+b.F*ve,"Object",{getOwnPropertySymbols:function(Ae){return R.f(d(Ae))}}),N&&b(b.S+b.F*(!de||O(function(){var _e=L();return V([_e])!="[null]"||V({a:_e})!="{}"||V(Object(_e))!="{}"})),"JSON",{stringify:function(Ae){for(var Je=[Ae],tt=1,ut,ht;arguments.length>tt;)Je.push(arguments[tt++]);return ht=ut=Je[1],!h(ut)&&Ae===void 0||ye(Ae)?void 0:(r(ut)||(ut=function(vt,_t){if(typeof ht=="function"&&(_t=ht.call(this,vt,_t)),!ye(_t))return _t}),Je[1]=ut,V.apply(N,Je))}}),L[H][W]||k("./_hide")(L[H],W,L[H].valueOf),e(L,"Symbol"),e(Math,"Math",!0),e(M.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(k,z,o){var M=k("./_export"),g=k("./_object-to-array")(!0);M(M.S,"Object",{entries:function(b){return g(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,z,o){"use strict";var M=k("./_export"),g=k("./_core"),A=k("./_global"),b=k("./_species-constructor"),y=k("./_promise-resolve");M(M.P+M.R,"Promise",{finally:function(C){var O=b(this,g.Promise||A.Promise),m=typeof C=="function";return this.then(m?function(e){return y(O,C()).then(function(){return e})}:C,m?function(e){return y(O,C()).then(function(){throw e})}:C)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,z,o){"use strict";var M=k("./_export"),g=k("./_new-promise-capability"),A=k("./_perform");M(M.S,"Promise",{try:function(b){var y=g.f(this),C=A(b);return(C.e?y.reject:y.resolve)(C.v),y.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(k,z,o){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,z,o){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,z,o){k("./es6.array.iterator");for(var M=k("./_global"),g=k("./_hide"),A=k("./_iterators"),b=k("./_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(","),C=0;C<y.length;C++){var O=y[C],m=M[O],e=m&&m.prototype;e&&!e[b]&&g(e,b,O),A[O]=A.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(k,z,o){var M=k("./_export"),g=k("./_task");M(M.G+M.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":107,"./_task":155}],189:[function(k,z,o){(function(M){"use strict";var g=k("babel-runtime/helpers/typeof"),A=b(g);function b(l){return l&&l.__esModule?l:{default:l}}function y(l){return Array.isArray?Array.isArray(l):s(l)==="[object Array]"}o.isArray=y;function C(l){return typeof l=="boolean"}o.isBoolean=C;function O(l){return l===null}o.isNull=O;function m(l){return l==null}o.isNullOrUndefined=m;function e(l){return typeof l=="number"}o.isNumber=e;function f(l){return typeof l=="string"}o.isString=f;function a(l){return(typeof l=="undefined"?"undefined":(0,A.default)(l))==="symbol"}o.isSymbol=a;function u(l){return l===void 0}o.isUndefined=u;function n(l){return s(l)==="[object RegExp]"}o.isRegExp=n;function i(l){return(typeof l=="undefined"?"undefined":(0,A.default)(l))==="object"&&l!==null}o.isObject=i;function r(l){return s(l)==="[object Date]"}o.isDate=r;function c(l){return s(l)==="[object Error]"||l instanceof Error}o.isError=c;function h(l){return typeof l=="function"}o.isFunction=h;function d(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||(typeof l=="undefined"?"undefined":(0,A.default)(l))==="symbol"||typeof l=="undefined"}o.isPrimitive=d,o.isBuffer=M.isBuffer;function s(l){return Object.prototype.toString.call(l)}}).call(this,{isBuffer:k("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(k,z,o){"use strict";var M=k("babel-runtime/helpers/typeof"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(b){"use strict";var y=function(){var f=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,a=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,u=/[^-+\dA-Z]/g;return function(n,i,r,c){if(arguments.length===1&&e(n)==="string"&&!/\d/.test(n)&&(i=n,n=void 0),n=n||new Date,n instanceof Date||(n=new Date(n)),isNaN(n))throw TypeError("Invalid date");i=String(y.masks[i]||i||y.masks.default);var h=i.slice(0,4);(h==="UTC:"||h==="GMT:")&&(i=i.slice(4),r=!0,h==="GMT:"&&(c=!0));var d=r?"getUTC":"get",s=n[d+"Date"](),l=n[d+"Day"](),w=n[d+"Month"](),E=n[d+"FullYear"](),_=n[d+"Hours"](),P=n[d+"Minutes"](),R=n[d+"Seconds"](),x=n[d+"Milliseconds"](),S=r?0:n.getTimezoneOffset(),v=O(n),T=m(n),U={d:s,dd:C(s),ddd:y.i18n.dayNames[l],dddd:y.i18n.dayNames[l+7],m:w+1,mm:C(w+1),mmm:y.i18n.monthNames[w],mmmm:y.i18n.monthNames[w+12],yy:String(E).slice(2),yyyy:E,h:_%12||12,hh:C(_%12||12),H:_,HH:C(_),M:P,MM:C(P),s:R,ss:C(R),l:C(x,3),L:C(Math.round(x/10)),t:_<12?"a":"p",tt:_<12?"am":"pm",T:_<12?"A":"P",TT:_<12?"AM":"PM",Z:c?"GMT":r?"UTC":(String(n).match(a)||[""]).pop().replace(u,""),o:(S>0?"-":"+")+C(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][s%10>3?0:(s%100-s%10!=10)*s%10],W:v,N:T};return i.replace(f,function(L){return L in U?U[L]:L.slice(1,L.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 C(f,a){for(f=String(f),a=a||2;f.length<a;)f="0"+f;return f}function O(f){var a=new Date(f.getFullYear(),f.getMonth(),f.getDate());a.setDate(a.getDate()-(a.getDay()+6)%7+3);var u=new Date(a.getFullYear(),0,4);u.setDate(u.getDate()-(u.getDay()+6)%7+3);var n=a.getTimezoneOffset()-u.getTimezoneOffset();a.setHours(a.getHours()-n);var i=(a-u)/(864e5*7);return 1+Math.floor(i)}function m(f){var a=f.getDay();return a===0&&(a=7),a}function e(f){return f===null?"null":f===void 0?"undefined":(typeof f=="undefined"?"undefined":(0,g.default)(f))!=="object"?typeof f=="undefined"?"undefined":(0,g.default)(f):Array.isArray(f)?"array":{}.toString.call(f).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return y}):(typeof o=="undefined"?"undefined":(0,g.default)(o))==="object"?z.exports=y:b.dateFormat=y})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(k,z,o){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var M=/["'&<>]/;z.exports=g;function g(A){var b=""+A,y=M.exec(b);if(!y)return b;var C,O="",m=0,e=0;for(m=y.index;m<b.length;m++){switch(b.charCodeAt(m)){case 34:C="&quot;";break;case 38:C="&amp;";break;case 39:C="&#39;";break;case 60:C="&lt;";break;case 62:C="&gt;";break;default:continue}e!==m&&(O+=b.substring(e,m)),e=m+1,O+=C}return e!==m?O+b.substring(e,m):O}},{}],192:[function(k,z,o){function M(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}z.exports=M,M.EventEmitter=M,M.prototype._events=void 0,M.prototype._maxListeners=void 0,M.defaultMaxListeners=10,M.prototype.setMaxListeners=function(C){if(!A(C)||C<0||isNaN(C))throw TypeError("n must be a positive number");return this._maxListeners=C,this},M.prototype.emit=function(C){var O,m,e,f,a,u;if(this._events||(this._events={}),C==="error"&&(!this._events.error||b(this._events.error)&&!this._events.error.length)){if(O=arguments[1],O instanceof Error)throw O;var n=new Error('Uncaught, unspecified "error" event. ('+O+")");throw n.context=O,n}if(m=this._events[C],y(m))return!1;if(g(m))switch(arguments.length){case 1:m.call(this);break;case 2:m.call(this,arguments[1]);break;case 3:m.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),m.apply(this,f)}else if(b(m))for(f=Array.prototype.slice.call(arguments,1),u=m.slice(),e=u.length,a=0;a<e;a++)u[a].apply(this,f);return!0},M.prototype.addListener=function(C,O){var m;if(!g(O))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",C,g(O.listener)?O.listener:O),this._events[C]?b(this._events[C])?this._events[C].push(O):this._events[C]=[this._events[C],O]:this._events[C]=O,b(this._events[C])&&!this._events[C].warned&&(y(this._maxListeners)?m=M.defaultMaxListeners:m=this._maxListeners,m&&m>0&&this._events[C].length>m&&(this._events[C].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[C].length),typeof console.trace=="function"&&console.trace())),this},M.prototype.on=M.prototype.addListener,M.prototype.once=function(C,O){if(!g(O))throw TypeError("listener must be a function");var m=!1;function e(){this.removeListener(C,e),m||(m=!0,O.apply(this,arguments))}return e.listener=O,this.on(C,e),this},M.prototype.removeListener=function(C,O){var m,e,f,a;if(!g(O))throw TypeError("listener must be a function");if(!this._events||!this._events[C])return this;if(m=this._events[C],f=m.length,e=-1,m===O||g(m.listener)&&m.listener===O)delete this._events[C],this._events.removeListener&&this.emit("removeListener",C,O);else if(b(m)){for(a=f;a-- >0;)if(m[a]===O||m[a].listener&&m[a].listener===O){e=a;break}if(e<0)return this;m.length===1?(m.length=0,delete this._events[C]):m.splice(e,1),this._events.removeListener&&this.emit("removeListener",C,O)}return this},M.prototype.removeAllListeners=function(C){var O,m;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[C]&&delete this._events[C],this;if(arguments.length===0){for(O in this._events){if(O==="removeListener")continue;this.removeAllListeners(O)}return this.removeAllListeners("removeListener"),this._events={},this}if(m=this._events[C],g(m))this.removeListener(C,m);else if(m)for(;m.length;)this.removeListener(C,m[m.length-1]);return delete this._events[C],this},M.prototype.listeners=function(C){var O;return!this._events||!this._events[C]?O=[]:g(this._events[C])?O=[this._events[C]]:O=this._events[C].slice(),O},M.prototype.listenerCount=function(C){if(this._events){var O=this._events[C];if(g(O))return 1;if(O)return O.length}return 0},M.listenerCount=function(C,O){return C.listenerCount(O)};function g(C){return typeof C=="function"}function A(C){return typeof C=="number"}function b(C){return typeof C=="object"&&C!==null}function y(C){return C===void 0}},{}],193:[function(k,z,o){var M=k("http"),g=z.exports;for(var A in M)M.hasOwnProperty(A)&&(g[A]=M[A]);g.request=function(b,y){return b||(b={}),b.scheme="https",b.protocol="https:",M.request.call(this,b,y)}},{http:231}],194:[function(k,z,o){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var M=k("util"),g=k("ms");z.exports=function(A){if(typeof A=="number")return A;var b=g(A);if(b===void 0){var y=new Error(M.format("humanize-ms(%j) result undefined",A));console.warn(y.stack)}return b}},{ms:204,util:243}],195:[function(k,z,o){o.read=function(M,g,A,b,y){var C,O,m=y*8-b-1,e=(1<<m)-1,f=e>>1,a=-7,u=A?y-1:0,n=A?-1:1,i=M[g+u];for(u+=n,C=i&(1<<-a)-1,i>>=-a,a+=m;a>0;C=C*256+M[g+u],u+=n,a-=8);for(O=C&(1<<-a)-1,C>>=-a,a+=b;a>0;O=O*256+M[g+u],u+=n,a-=8);if(C===0)C=1-f;else{if(C===e)return O?NaN:(i?-1:1)*Infinity;O=O+Math.pow(2,b),C=C-f}return(i?-1:1)*O*Math.pow(2,C-b)},o.write=function(M,g,A,b,y,C){var O,m,e,f=C*8-y-1,a=(1<<f)-1,u=a>>1,n=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=b?0:C-1,r=b?1:-1,c=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===Infinity?(m=isNaN(g)?1:0,O=a):(O=Math.floor(Math.log(g)/Math.LN2),g*(e=Math.pow(2,-O))<1&&(O--,e*=2),O+u>=1?g+=n/e:g+=n*Math.pow(2,1-u),g*e>=2&&(O++,e/=2),O+u>=a?(m=0,O=a):O+u>=1?(m=(g*e-1)*Math.pow(2,y),O=O+u):(m=g*Math.pow(2,u-1)*Math.pow(2,y),O=0));y>=8;M[A+i]=m&255,i+=r,m/=256,y-=8);for(O=O<<y|m,f+=y;f>0;M[A+i]=O&255,i+=r,O/=256,f-=8);M[A+i-r]|=c*128}},{}],196:[function(k,z,o){typeof Object.create=="function"?z.exports=function(g,A){A&&(g.super_=A,g.prototype=Object.create(A.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}))}:z.exports=function(g,A){if(A){g.super_=A;var b=function(){};b.prototype=A.prototype,g.prototype=new b,g.prototype.constructor=g}}},{}],197:[function(k,z,o){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/z.exports=function(A){return A!=null&&(M(A)||g(A)||!!A._isBuffer)};function M(A){return!!A.constructor&&typeof A.constructor.isBuffer=="function"&&A.constructor.isBuffer(A)}function g(A){return typeof A.readFloatLE=="function"&&typeof A.slice=="function"&&M(A.slice(0,0))}},{}],198:[function(k,z,o){var M={}.toString;z.exports=Array.isArray||function(g){return M.call(g)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(k,z){typeof exports=="object"&&typeof module!="undefined"?module.exports=z(k):typeof define=="function"&&define.amd?define(z):z(k)})(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(k){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(k){for(var z={},o=0,M=k.length;o<M;o++)z[k.charAt(o)]=o;return z}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(k){if(k.length<2){var z=k.charCodeAt(0);return z<128?k:z<2048?fromCharCode(192|z>>>6)+fromCharCode(128|z&63):fromCharCode(224|z>>>12&15)+fromCharCode(128|z>>>6&63)+fromCharCode(128|z&63)}else{var z=65536+(k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320);return fromCharCode(240|z>>>18&7)+fromCharCode(128|z>>>12&63)+fromCharCode(128|z>>>6&63)+fromCharCode(128|z&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(k){return k.replace(re_utob,cb_utob)},cb_encode=function(k){var z=[0,2,1][k.length%3],o=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),M=[b64chars.charAt(o>>>18),b64chars.charAt(o>>>12&63),z>=2?"=":b64chars.charAt(o>>>6&63),z>=1?"=":b64chars.charAt(o&63)];return M.join("")},btoa=global.btoa?function(k){return global.btoa(k)}:function(k){return k.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(k){var z=Object.prototype.toString.call(k)==="[object Uint8Array]";return z?k.toString("base64"):btoa(utob(String(k)))},encode=function(k,z){return z?_encode(String(k)).replace(/[+\/]/g,function(o){return o=="+"?"-":"_"}).replace(/=/g,""):_encode(k)},encodeURI=function(k){return encode(k,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(k){switch(k.length){case 4:var z=(7&k.charCodeAt(0))<<18|(63&k.charCodeAt(1))<<12|(63&k.charCodeAt(2))<<6|63&k.charCodeAt(3),o=z-65536;return fromCharCode((o>>>10)+55296)+fromCharCode((o&1023)+56320);case 3:return fromCharCode((15&k.charCodeAt(0))<<12|(63&k.charCodeAt(1))<<6|63&k.charCodeAt(2));default:return fromCharCode((31&k.charCodeAt(0))<<6|63&k.charCodeAt(1))}},btou=function(k){return k.replace(re_btou,cb_btou)},cb_decode=function(k){var z=k.length,o=z%4,M=(z>0?b64tab[k.charAt(0)]<<18:0)|(z>1?b64tab[k.charAt(1)]<<12:0)|(z>2?b64tab[k.charAt(2)]<<6:0)|(z>3?b64tab[k.charAt(3)]:0),g=[fromCharCode(M>>>16),fromCharCode(M>>>8&255),fromCharCode(M&255)];return g.length-=[0,0,2,1][o],g.join("")},_atob=global.atob?function(k){return global.atob(k)}:function(k){return k.replace(/\S{1,4}/g,cb_decode)},atob=function(k){return _atob(String(k).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(k){return(k.constructor===buffer.constructor?k:buffer.from(k,"base64")).toString()}:function(k){return(k.constructor===buffer.constructor?k:new buffer(k,"base64")).toString()}:function(k){return btou(_atob(k))},decode=function(k){return _decode(String(k).replace(/[-_]/g,function(z){return z=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var k=global.Base64;return global.Base64=_Base64,k};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(k){return{value:k,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(k){return encode(this,k)})),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(k,z,o){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";z.exports=g;var M=Object.prototype.hasOwnProperty;function g(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(O){if(!y&&M.call(A,O))return;var m=Object.getOwnPropertyDescriptor(b,O);Object.defineProperty(A,O,m)}),A}},{}],201:[function(k,z,o){"use strict";function M(){this._types=Object.create(null),this._extensions=Object.create(null);for(var g=0;g<arguments.length;g++)this.define(arguments[g]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}M.prototype.define=function(g,A){for(var b in g){var y=g[b].map(function(m){return m.toLowerCase()});b=b.toLowerCase();for(var C=0;C<y.length;C++){var O=y[C];if(O[0]=="*")continue;if(!A&&O in this._types)throw new Error('Attempt to change mapping for "'+O+'" extension from "'+this._types[O]+'" to "'+b+'". Pass `force=true` to allow this, otherwise remove "'+O+'" from the list of extensions for "'+b+'".');this._types[O]=b}if(A||!this._extensions[b]){var O=y[0];this._extensions[b]=O[0]!="*"?O:O.substr(1)}}},M.prototype.getType=function(g){g=String(g);var A=g.replace(/^.*[/\\]/,"").toLowerCase(),b=A.replace(/^.*\./,"").toLowerCase(),y=A.length<g.length,C=b.length<A.length-1;return(C||!y)&&this._types[b]||null},M.prototype.getExtension=function(g){return g=/^\s*([^;\s]*)/.test(g)&&RegExp.$1,g&&this._extensions[g.toLowerCase()]||null},z.exports=M},{}],202:[function(k,z,o){"use strict";var M=k("./Mime");z.exports=new M(k("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(k,z,o){z.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(k,z,o){var M=1e3,g=M*60,A=g*60,b=A*24,y=b*7,C=b*365.25;z.exports=function(a,u){u=u||{};var n=typeof a;if(n==="string"&&a.length>0)return O(a);if(n==="number"&&isFinite(a))return u.long?e(a):m(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function O(a){if(a=String(a),a.length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!u)return;var n=parseFloat(u[1]),i=(u[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*C;case"weeks":case"week":case"w":return n*y;case"days":case"day":case"d":return n*b;case"hours":case"hour":case"hrs":case"hr":case"h":return n*A;case"minutes":case"minute":case"mins":case"min":case"m":return n*g;case"seconds":case"second":case"secs":case"sec":case"s":return n*M;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}function m(a){var u=Math.abs(a);return u>=b?Math.round(a/b)+"d":u>=A?Math.round(a/A)+"h":u>=g?Math.round(a/g)+"m":u>=M?Math.round(a/M)+"s":a+"ms"}function e(a){var u=Math.abs(a);return u>=b?f(a,u,b,"day"):u>=A?f(a,u,A,"hour"):u>=g?f(a,u,g,"minute"):u>=M?f(a,u,M,"second"):a+" ms"}function f(a,u,n,i){var r=u>=n*1.5;return Math.round(a/n)+" "+i+(r?"s":"")}},{}],205:[function(k,z,o){(function(M){function g(C,O){for(var m=0,e=C.length-1;e>=0;e--){var f=C[e];f==="."?C.splice(e,1):f===".."?(C.splice(e,1),m++):m&&(C.splice(e,1),m--)}if(O)for(;m--;m)C.unshift("..");return C}o.resolve=function(){for(var C="",O=!1,m=arguments.length-1;m>=-1&&!O;m--){var e=m>=0?arguments[m]:M.cwd();if(typeof e!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!e)continue;C=e+"/"+C,O=e.charAt(0)==="/"}return C=g(b(C.split("/"),function(f){return!!f}),!O).join("/"),(O?"/":"")+C||"."},o.normalize=function(C){var O=o.isAbsolute(C),m=y(C,-1)==="/";return C=g(b(C.split("/"),function(e){return!!e}),!O).join("/"),!C&&!O&&(C="."),C&&m&&(C+="/"),(O?"/":"")+C},o.isAbsolute=function(C){return C.charAt(0)==="/"},o.join=function(){var C=Array.prototype.slice.call(arguments,0);return o.normalize(b(C,function(O,m){if(typeof O!="string")throw new TypeError("Arguments to path.join must be strings");return O}).join("/"))},o.relative=function(C,O){C=o.resolve(C).substr(1),O=o.resolve(O).substr(1);function m(r){for(var c=0;c<r.length&&!(r[c]!=="");c++);for(var h=r.length-1;h>=0&&!(r[h]!=="");h--);return c>h?[]:r.slice(c,h-c+1)}for(var e=m(C.split("/")),f=m(O.split("/")),a=Math.min(e.length,f.length),u=a,n=0;n<a;n++)if(e[n]!==f[n]){u=n;break}for(var i=[],n=u;n<e.length;n++)i.push("..");return i=i.concat(f.slice(u)),i.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(C){if(typeof C!="string"&&(C=C+""),C.length===0)return".";for(var O=C.charCodeAt(0),m=O===47,e=-1,f=!0,a=C.length-1;a>=1;--a)if(O=C.charCodeAt(a),O===47){if(!f){e=a;break}}else f=!1;return e===-1?m?"/":".":m&&e===1?"/":C.slice(0,e)};function A(C){typeof C!="string"&&(C=C+"");var O=0,m=-1,e=!0,f;for(f=C.length-1;f>=0;--f)if(C.charCodeAt(f)===47){if(!e){O=f+1;break}}else m===-1&&(e=!1,m=f+1);return m===-1?"":C.slice(O,m)}o.basename=function(C,O){var m=A(C);return O&&m.substr(-1*O.length)===O&&(m=m.substr(0,m.length-O.length)),m},o.extname=function(C){typeof C!="string"&&(C=C+"");for(var O=-1,m=0,e=-1,f=!0,a=0,u=C.length-1;u>=0;--u){var n=C.charCodeAt(u);if(n===47){if(!f){m=u+1;break}continue}e===-1&&(f=!1,e=u+1),n===46?O===-1?O=u:a!==1&&(a=1):O!==-1&&(a=-1)}return O===-1||e===-1||a===0||a===1&&O===e-1&&O===m+1?"":C.slice(O,e)};function b(C,O){if(C.filter)return C.filter(O);for(var m=[],e=0;e<C.length;e++)O(C[e],e,C)&&m.push(C[e]);return m}var y="ab".substr(-1)==="b"?function(C,O,m){return C.substr(O,m)}:function(C,O,m){return O<0&&(O=C.length+O),C.substr(O,m)}}).call(this,k("_process"))},{_process:208}],206:[function(k,z,o){(function(M){/*!
* 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 g={function:!0,object:!0},A=g[typeof window]&&window||this,b=A,y=g[typeof o]&&o,C=g[typeof z]&&z&&!z.nodeType&&z,O=y&&C&&typeof M=="object"&&M;O&&(O.global===O||O.window===O||O.self===O)&&(A=O);var m=Math.pow(2,53)-1,e=/\bOpera/,f=this,a=Object.prototype,u=a.hasOwnProperty,n=a.toString;function i(x){return x=String(x),x.charAt(0).toUpperCase()+x.slice(1)}function r(x,S,v){var T={"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 S&&v&&/^Win/i.test(x)&&!/^Windows Phone /i.test(x)&&(T=T[/[\d.]+$/.exec(x)])&&(x="Windows "+T),x=String(x),S&&v&&(x=x.replace(RegExp(S,"i"),v)),x=h(x.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]),x}function c(x,S){var v=-1,T=x?x.length:0;if(typeof T=="number"&&T>-1&&T<=m)for(;++v<T;)S(x[v],v,x);else d(x,S)}function h(x){return x=_(x),/^(?:webOS|i(?:OS|P))/.test(x)?x:i(x)}function d(x,S){for(var v in x)u.call(x,v)&&S(x[v],v,x)}function s(x){return x==null?i(x):n.call(x).slice(8,-1)}function l(x,S){var v=x!=null?typeof x[S]:"number";return!/^(?:boolean|number|string|undefined)$/.test(v)&&(v=="object"?!!x[S]:!0)}function w(x){return String(x).replace(/([ -])(?!$)/g,"$1?")}function E(x,S){var v=null;return c(x,function(T,U){v=S(v,T,U,x)}),v}function _(x){return String(x).replace(/^ +| +$/g,"")}function P(x){var S=A,v=x&&typeof x=="object"&&s(x)!="String";v&&(S=x,x=null);var T=S.navigator||{},U=T.userAgent||"";x||(x=U);var L=v||f==b,N=v?!!T.likeChrome:/\bChrome\b/.test(x)&&!/internal|\n/i.test(n.toString()),V="Object",H=v?V:"ScriptBridgingProxyObject",D=v?V:"Environment",W=v&&S.java?"JavaPackage":s(S.java),F=v?V:"RuntimeObject",I=/\bJava/.test(W)&&S.java,K=I&&s(S.environment)==D,ee=I?"a":"\u03B1",he=I?"b":"\u03B2",de=S.document||{},Se=S.operamini||S.opera,Te=e.test(Te=v&&Se?Se["[[Class]]"]:s(Se))?Te:Se=null,ce,be=x,ye=[],ue=null,se=x==U,$=se&&Se&&typeof Se.version=="function"&&Se.version(),me,re=Q([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ae=ve(["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=Ae([{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=J({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}}),te=_e(["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 Q(ht){return E(ht,function(vt,_t){return vt||RegExp("\\b"+(_t.pattern||w(_t))+"\\b","i").exec(x)&&(_t.label||_t)})}function J(ht){return E(ht,function(vt,_t,Ve){return vt||(_t[Oe]||_t[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Oe)]||RegExp("\\b"+w(Ve)+"(?:\\b|\\w*\\d)","i").exec(x))&&Ve})}function ve(ht){return E(ht,function(vt,_t){return vt||RegExp("\\b"+(_t.pattern||w(_t))+"\\b","i").exec(x)&&(_t.label||_t)})}function _e(ht){return E(ht,function(vt,_t){var Ve=_t.pattern||w(_t);return!vt&&(vt=RegExp("\\b"+Ve+"(?:/[\\d.]+|[ \\w.]*)","i").exec(x))&&(vt=r(vt,Ve,_t.label||_t)),vt})}function Ae(ht){return E(ht,function(vt,_t){var Ve=_t.pattern||w(_t);return!vt&&(vt=RegExp("\\b"+Ve+" *\\d+[.\\w_]*","i").exec(x)||RegExp("\\b"+Ve+" *\\w+-[\\w]*","i").exec(x)||RegExp("\\b"+Ve+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(x))&&((vt=String(_t.label&&!RegExp(Ve,"i").test(_t.label)?_t.label:vt).split("/"))[1]&&!/[\d.]+/.test(vt[0])&&(vt[0]+=" "+vt[1]),_t=_t.label||_t,vt=h(vt[0].replace(RegExp(Ve,"i"),_t).replace(RegExp("; *(?:"+_t+"[_-])?","i")," ").replace(RegExp("("+_t+")[-_.]?(\\w)","i"),"$1 $2"))),vt})}function Je(ht){return E(ht,function(vt,_t){return vt||(RegExp(_t+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(x)||0)[1]||null})}function tt(){return this.description||""}if(re&&(re=[re]),le&&!Oe&&(Oe=Ae([le])),(ce=/\bGoogle TV\b/.exec(Oe))&&(Oe=ce[0]),/\bSimulator\b/i.test(x)&&(Oe=(Oe?Oe+" ":"")+"Simulator"),ae=="Opera Mini"&&/\bOPiOS\b/.test(x)&&ye.push("running in Turbo/Uncompressed mode"),ae=="IE"&&/\blike iPhone OS\b/.test(x)?(ce=P(x.replace(/like iPhone OS/,"")),le=ce.manufacturer,Oe=ce.product):/^iP/.test(Oe)?(ae||(ae="Safari"),te="iOS"+((ce=/ OS ([\d_]+)/i.exec(x))?" "+ce[1].replace(/_/g,"."):"")):ae=="Konqueror"&&!/buntu/i.test(te)?te="Kubuntu":le&&le!="Google"&&(/Chrome/.test(ae)&&!/\bMobile Safari\b/i.test(x)||/\bVita\b/.test(Oe))||/\bAndroid\b/.test(te)&&/^Chrome/.test(ae)&&/\bVersion\//i.test(x)?(ae="Android Browser",te=/\bAndroid\b/.test(te)?te:"Android"):ae=="Silk"?(/\bMobi/i.test(x)||(te="Android",ye.unshift("desktop mode")),/Accelerated *= *true/i.test(x)&&ye.unshift("accelerated")):ae=="PaleMoon"&&(ce=/\bFirefox\/([\d.]+)\b/.exec(x))?ye.push("identifying as Firefox "+ce[1]):ae=="Firefox"&&(ce=/\b(Mobile|Tablet|TV)\b/i.exec(x))?(te||(te="Firefox OS"),Oe||(Oe=ce[1])):!ae||(ce=!/\bMinefield\b/i.test(x)&&/\b(?:Firefox|Safari)\b/.exec(ae))?(ae&&!Oe&&/[\/,]|^[^(]+?\)/.test(x.slice(x.indexOf(ce+"/")+8))&&(ae=null),(ce=Oe||le||te)&&(Oe||le||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(te))&&(ae=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(te)?te:ce)+" Browser")):ae=="Electron"&&(ce=(/\bChrome\/([\d.]+)\b/.exec(x)||0)[1])&&ye.push("Chromium "+ce),$||($=Je(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",w(ae),"(?:Firefox|Minefield|NetFront)"])),(ce=re=="iCab"&&parseFloat($)>3&&"WebKit"||/\bOpera\b/.test(ae)&&(/\bOPR\b/.test(x)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(x)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(x)&&(te=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ae)&&"NetFront")&&(re=[ce]),ae=="IE"&&(ce=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(x)||0)[1])?(ae+=" Mobile",te="Windows Phone "+(/\+$/.test(ce)?ce:ce+".x"),ye.unshift("desktop mode")):/\bWPDesktop\b/i.test(x)?(ae="IE Mobile",te="Windows Phone 8.x",ye.unshift("desktop mode"),$||($=(/\brv:([\d.]+)/.exec(x)||0)[1])):ae!="IE"&&re=="Trident"&&(ce=/\brv:([\d.]+)/.exec(x))&&(ae&&ye.push("identifying as "+ae+($?" "+$:"")),ae="IE",$=ce[1]),se){if(l(S,"global"))if(I&&(ce=I.lang.System,be=ce.getProperty("os.arch"),te=te||ce.getProperty("os.name")+" "+ce.getProperty("os.version")),K){try{$=S.require("ringo/engine").version.join("."),ae="RingoJS"}catch(ht){(ce=S.system)&&ce.global.system==S.system&&(ae="Narwhal",te||(te=ce[0].os||null))}ae||(ae="Rhino")}else typeof S.process=="object"&&!S.process.browser&&(ce=S.process)&&(typeof ce.versions=="object"&&(typeof ce.versions.electron=="string"?(ye.push("Node "+ce.versions.node),ae="Electron",$=ce.versions.electron):typeof ce.versions.nw=="string"&&(ye.push("Chromium "+$,"Node "+ce.versions.node),ae="NW.js",$=ce.versions.nw)),ae||(ae="Node.js",be=ce.arch,te=ce.platform,$=/[\d.]+/.exec(ce.version),$=$?$[0]:null));else s(ce=S.runtime)==H?(ae="Adobe AIR",te=ce.flash.system.Capabilities.os):s(ce=S.phantom)==F?(ae="PhantomJS",$=(ce=ce.version||null)&&ce.major+"."+ce.minor+"."+ce.patch):typeof de.documentMode=="number"&&(ce=/\bTrident\/(\d+)/i.exec(x))?($=[$,de.documentMode],(ce=+ce[1]+4)!=$[1]&&(ye.push("IE "+$[1]+" mode"),re&&(re[1]=""),$[1]=ce),$=ae=="IE"?String($[1].toFixed(1)):$[0]):typeof de.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ae)&&(ye.push("masking as "+ae+" "+$),ae="IE",$="11.0",re=["Trident"],te="Windows");te=te&&h(te)}if($&&(ce=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($)||/(?:alpha|beta)(?: ?\d)?/i.exec(x+";"+(se&&T.appMinorVersion))||/\bMinefield\b/i.test(x)&&"a")&&(ue=/b/i.test(ce)?"beta":"alpha",$=$.replace(RegExp(ce+"\\+?$"),"")+(ue=="beta"?he:ee)+(/\d+\+?/.exec(ce)||"")),ae=="Fennec"||ae=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(te))ae="Firefox Mobile";else if(ae=="Maxthon"&&$)$=$.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Oe))Oe=="Xbox 360"&&(te=null),Oe=="Xbox 360"&&/\bIEMobile\b/.test(x)&&ye.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ae)||ae&&!Oe&&!/Browser|Mobi/.test(ae))&&(te=="Windows CE"||/Mobi/i.test(x)))ae+=" Mobile";else if(ae=="IE"&&se)try{S.external===null&&ye.unshift("platform preview")}catch(ht){ye.unshift("embedded")}else(/\bBlackBerry\b/.test(Oe)||/\bBB10\b/.test(x))&&(ce=(RegExp(Oe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(x)||0)[1]||$)?(ce=[ce,/BB10/.test(x)],te=(ce[1]?(Oe=null,le="BlackBerry"):"Device Software")+" "+ce[0],$=null):this!=d&&Oe!="Wii"&&(se&&Se||/Opera/.test(ae)&&/\b(?:MSIE|Firefox)\b/i.test(x)||ae=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(te)||ae=="IE"&&(te&&!/^Win/.test(te)&&$>5.5||/\bWindows XP\b/.test(te)&&$>8||$==8&&!/\bTrident\b/.test(x)))&&!e.test(ce=P.call(d,x.replace(e,"")+";"))&&ce.name&&(ce="ing as "+ce.name+((ce=ce.version)?" "+ce:""),e.test(ae)?(/\bIE\b/.test(ce)&&te=="Mac OS"&&(te=null),ce="identify"+ce):(ce="mask"+ce,Te?ae=h(Te.replace(/([a-z])([A-Z])/g,"$1 $2")):ae="Opera",/\bIE\b/.test(ce)&&(te=null),se||($=null)),re=["Presto"],ye.push(ce));(ce=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(x)||0)[1])&&(ce=[parseFloat(ce.replace(/\.(\d)$/,".0$1")),ce],ae=="Safari"&&ce[1].slice(-1)=="+"?(ae="WebKit Nightly",ue="alpha",$=ce[1].slice(0,-1)):($==ce[1]||$==(ce[2]=(/\bSafari\/([\d.]+\+?)/i.exec(x)||0)[1]))&&($=null),ce[1]=(/\bChrome\/([\d.]+)/i.exec(x)||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)?"":"+")),ae=="Safari"&&(!$||parseInt($)>45)&&($=ce)),ae=="Opera"&&(ce=/\bzbov|zvav$/.exec(te))?(ae+=" ",ye.unshift("desktop mode"),ce=="zvav"?(ae+="Mini",$=null):ae+="Mobile",te=te.replace(RegExp(" *"+ce+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(ye.unshift("desktop mode"),ae="Chrome Mobile",$=null,/\bOS X\b/.test(te)?(le="Apple",te="iOS 4.3+"):te=null),$&&$.indexOf(ce=/[\d.]+$/.exec(te))==0&&x.indexOf("/"+ce+"-")>-1&&(te=_(te.replace(ce,""))),re&&!/\b(?:Avant|Nook)\b/.test(ae)&&(/Browser|Lunascape|Maxthon/.test(ae)||ae!="Safari"&&/^iOS/.test(te)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ae)&&re[1])&&((ce=re[re.length-1])&&ye.push(ce)),ye.length&&(ye=["("+ye.join("; ")+")"]),le&&Oe&&Oe.indexOf(le)<0&&ye.push("on "+le),Oe&&ye.push((/^on /.test(ye[ye.length-1])?"":"on ")+Oe),te&&(ce=/ ([\d.+]+)$/.exec(te),me=ce&&te.charAt(te.length-ce[0].length-1)=="/",te={architecture:32,family:ce&&!me?te.replace(ce[0],""):te,version:ce?ce[1]:null,toString:function(){var ht=this.version;return this.family+(ht&&!me?" "+ht:"")+(this.architecture==64?" 64-bit":"")}}),(ce=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be))&&!/\bi686\b/i.test(be)?(te&&(te.architecture=64,te.family=te.family.replace(RegExp(" *"+ce),"")),ae&&(/\bWOW64\b/i.test(x)||se&&/\w(?:86|32)$/.test(T.cpuClass||T.platform)&&!/\bWin64; x64\b/i.test(x))&&ye.unshift("32-bit")):te&&/^OS X/.test(te.family)&&ae=="Chrome"&&parseFloat($)>=39&&(te.architecture=64),x||(x=null);var ut={};return ut.description=x,ut.layout=re&&re[0],ut.manufacturer=le,ut.name=ae,ut.prerelease=ue,ut.product=Oe,ut.ua=x,ut.version=ae&&$,ut.os=te||{architecture:null,family:null,version:null,toString:function(){return"null"}},ut.parse=P,ut.toString=tt,ut.version&&ye.unshift($),ut.name&&ye.unshift(ae),te&&ae&&!(te==String(te).split(" ")[0]&&(te==ae.split(" ")[0]||Oe))&&ye.push(Oe?"("+te+")":"on "+te),ye.length&&(ut.description=ye.join(" ")),ut}var R=P();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(A.platform=R,define(function(){return R})):y&&C?d(R,function(x,S){y[S]=x}):A.platform=R}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,z,o){(function(M){"use strict";typeof M=="undefined"||!M.version||M.version.indexOf("v0.")===0||M.version.indexOf("v1.")===0&&M.version.indexOf("v1.8.")!==0?z.exports={nextTick:g}:z.exports=M;function g(A,b,y,C){if(typeof A!="function")throw new TypeError('"callback" argument must be a function');var O=arguments.length,m,e;switch(O){case 0:case 1:return M.nextTick(A);case 2:return M.nextTick(function(){A.call(null,b)});case 3:return M.nextTick(function(){A.call(null,b,y)});case 4:return M.nextTick(function(){A.call(null,b,y,C)});default:for(m=new Array(O-1),e=0;e<m.length;)m[e++]=arguments[e];return M.nextTick(function(){A.apply(null,m)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,z,o){var M=z.exports={},g,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"?g=setTimeout:g=b}catch(c){g=b}try{typeof clearTimeout=="function"?A=clearTimeout:A=y}catch(c){A=y}})();function C(c){if(g===setTimeout)return setTimeout(c,0);if((g===b||!g)&&setTimeout)return g=setTimeout,setTimeout(c,0);try{return g(c,0)}catch(h){try{return g.call(null,c,0)}catch(d){return g.call(this,c,0)}}}function O(c){if(A===clearTimeout)return clearTimeout(c);if((A===y||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(c);try{return A(c)}catch(h){try{return A.call(null,c)}catch(d){return A.call(this,c)}}}var m=[],e=!1,f,a=-1;function u(){if(!e||!f)return;e=!1,f.length?m=f.concat(m):a=-1,m.length&&n()}function n(){if(e)return;var c=C(u);e=!0;for(var h=m.length;h;){for(f=m,m=[];++a<h;)f&&f[a].run();a=-1,h=m.length}f=null,e=!1,O(c)}M.nextTick=function(c){var h=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)h[d-1]=arguments[d];m.push(new i(c,h)),m.length===1&&!e&&C(n)};function i(c,h){this.fun=c,this.array=h}i.prototype.run=function(){this.fun.apply(null,this.array)},M.title="browser",M.browser=!0,M.env={},M.argv=[],M.version="",M.versions={};function r(){}M.on=r,M.addListener=r,M.once=r,M.off=r,M.removeListener=r,M.removeAllListeners=r,M.emit=r,M.prependListener=r,M.prependOnceListener=r,M.listeners=function(c){return[]},M.binding=function(c){throw new Error("process.binding is not supported")},M.cwd=function(){return"/"},M.chdir=function(c){throw new Error("process.chdir is not supported")},M.umask=function(){return 0}},{}],209:[function(k,z,o){(function(M){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(g){var A=typeof o=="object"&&o&&!o.nodeType&&o,b=typeof z=="object"&&z&&!z.nodeType&&z,y=typeof M=="object"&&M;(y.global===y||y.window===y||y.self===y)&&(g=y);var C,O=2147483647,m=36,e=1,f=26,a=38,u=700,n=72,i=128,r="-",c=/^xn--/,h=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=m-e,w=Math.floor,E=String.fromCharCode,_;function P(W){throw new RangeError(s[W])}function R(W,F){for(var I=W.length,K=[];I--;)K[I]=F(W[I]);return K}function x(W,F){var I=W.split("@"),K="";I.length>1&&(K=I[0]+"@",W=I[1]),W=W.replace(d,".");var ee=W.split("."),he=R(ee,F).join(".");return K+he}function S(W){for(var F=[],I=0,K=W.length,ee,he;I<K;)ee=W.charCodeAt(I++),ee>=55296&&ee<=56319&&I<K?(he=W.charCodeAt(I++),(he&64512)==56320?F.push(((ee&1023)<<10)+(he&1023)+65536):(F.push(ee),I--)):F.push(ee);return F}function v(W){return R(W,function(F){var I="";return F>65535&&(F-=65536,I+=E(F>>>10&1023|55296),F=56320|F&1023),I+=E(F),I}).join("")}function T(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:m}function U(W,F){return W+22+75*(W<26)-((F!=0)<<5)}function L(W,F,I){var K=0;for(W=I?w(W/u):W>>1,W+=w(W/F);W>l*f>>1;K+=m)W=w(W/l);return w(K+(l+1)*W/(W+a))}function N(W){var F=[],I=W.length,K,ee=0,he=i,de=n,Se,Te,ce,be,ye,ue,se,$,me;for(Se=W.lastIndexOf(r),Se<0&&(Se=0),Te=0;Te<Se;++Te)W.charCodeAt(Te)>=128&&P("not-basic"),F.push(W.charCodeAt(Te));for(ce=Se>0?Se+1:0;ce<I;){for(be=ee,ye=1,ue=m;!(ce>=I&&P("invalid-input"),se=T(W.charCodeAt(ce++)),(se>=m||se>w((O-ee)/ye))&&P("overflow"),ee+=se*ye,$=ue<=de?e:ue>=de+f?f:ue-de,se<$);ue+=m)me=m-$,ye>w(O/me)&&P("overflow"),ye*=me;K=F.length+1,de=L(ee-be,K,be==0),w(ee/K)>O-he&&P("overflow"),he+=w(ee/K),ee%=K,F.splice(ee++,0,he)}return v(F)}function V(W){var F,I,K,ee,he,de,Se,Te,ce,be,ye,ue=[],se,$,me,re;for(W=S(W),se=W.length,F=i,I=0,he=n,de=0;de<se;++de)ye=W[de],ye<128&&ue.push(E(ye));for(K=ee=ue.length,ee&&ue.push(r);K<se;){for(Se=O,de=0;de<se;++de)ye=W[de],ye>=F&&ye<Se&&(Se=ye);for($=K+1,Se-F>w((O-I)/$)&&P("overflow"),I+=(Se-F)*$,F=Se,de=0;de<se;++de)if(ye=W[de],ye<F&&++I>O&&P("overflow"),ye==F){for(Te=I,ce=m;!(be=ce<=he?e:ce>=he+f?f:ce-he,Te<be);ce+=m)re=Te-be,me=m-be,ue.push(E(U(be+re%me,0))),Te=w(re/me);ue.push(E(U(Te,0))),he=L(I,$,K==ee),I=0,++K}++I,++F}return ue.join("")}function H(W){return x(W,function(F){return c.test(F)?N(F.slice(4).toLowerCase()):F})}function D(W){return x(W,function(F){return h.test(F)?"xn--"+V(F):F})}if(C={version:"1.4.1",ucs2:{decode:S,encode:v},decode:N,encode:V,toASCII:D,toUnicode:H},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(A&&b)if(z.exports==A)b.exports=C;else for(_ in C)C.hasOwnProperty(_)&&(A[_]=C[_]);else g.punycode=C})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(k,z,o){"use strict";function M(A,b){return Object.prototype.hasOwnProperty.call(A,b)}z.exports=function(A,b,y,C){b=b||"&",y=y||"=";var O={};if(typeof A!="string"||A.length===0)return O;var m=/\+/g;A=A.split(b);var e=1e3;C&&typeof C.maxKeys=="number"&&(e=C.maxKeys);var f=A.length;e>0&&f>e&&(f=e);for(var a=0;a<f;++a){var u=A[a].replace(m,"%20"),n=u.indexOf(y),i,r,c,h;n>=0?(i=u.substr(0,n),r=u.substr(n+1)):(i=u,r=""),c=decodeURIComponent(i),h=decodeURIComponent(r),M(O,c)?g(O[c])?O[c].push(h):O[c]=[O[c],h]:O[c]=h}return O};var g=Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"}},{}],211:[function(k,z,o){"use strict";var M=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};z.exports=function(y,C,O,m){return C=C||"&",O=O||"=",y===null&&(y=void 0),typeof y=="object"?A(b(y),function(e){var f=encodeURIComponent(M(e))+O;return g(y[e])?A(y[e],function(a){return f+encodeURIComponent(M(a))}).join(C):f+encodeURIComponent(M(y[e]))}).join(C):m?encodeURIComponent(M(m))+O+encodeURIComponent(M(y)):""};var g=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"};function A(y,C){if(y.map)return y.map(C);for(var O=[],m=0;m<y.length;m++)O.push(C(y[m],m));return O}var b=Object.keys||function(y){var C=[];for(var O in y)Object.prototype.hasOwnProperty.call(y,O)&&C.push(O);return C}},{}],212:[function(k,z,o){"use strict";o.decode=o.parse=k("./decode"),o.encode=o.stringify=k("./encode")},{"./decode":210,"./encode":211}],213:[function(k,z,o){z.exports=k("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=y(M),A=k("babel-runtime/core-js/object/keys"),b=y(A);function y(h){return h&&h.__esModule?h:{default:h}}var C=k("process-nextick-args"),O=b.default||function(h){var d=[];for(var s in h)d.push(s);return d};z.exports=i;var m=(0,g.default)(k("core-util-is"));m.inherits=k("inherits");var e=k("./_stream_readable"),f=k("./_stream_writable");m.inherits(i,e);for(var a=O(f.prototype),u=0;u<a.length;u++){var n=a[u];i.prototype[n]||(i.prototype[n]=f.prototype[n])}function i(h){if(!(this instanceof i))return new i(h);e.call(this,h),f.call(this,h),h&&h.readable===!1&&(this.readable=!1),h&&h.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,h&&h.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",r)}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function r(){if(this.allowHalfOpen||this._writableState.ended)return;C.nextTick(c,this)}function c(h){h.end()}Object.defineProperty(i.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=d,this._writableState.destroyed=d}}),i.prototype._destroy=function(h,d){this.push(null),this.end(),C.nextTick(d,h)}},{"./_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(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(O){return O&&O.__esModule?O:{default:O}}z.exports=C;var b=k("./_stream_transform"),y=(0,g.default)(k("core-util-is"));y.inherits=k("inherits"),y.inherits(C,b);function C(O){if(!(this instanceof C))return new C(O);b.call(this,O)}C.prototype._transform=function(O,m,e){e(null,O)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(k,z,o){(function(M,g){"use strict";var A=k("babel-runtime/core-js/object/get-prototype-of"),b=O(A),y=k("babel-runtime/core-js/object/create"),C=O(y);function O(re){return re&&re.__esModule?re:{default:re}}var m=k("process-nextick-args");z.exports=S;var e=k("isarray"),f;S.ReadableState=x;var a=k("events").EventEmitter,u=function(ae,Oe){return ae.listeners(Oe).length},n=k("./internal/streams/stream"),i=k("safe-buffer").Buffer,r=g.Uint8Array||function(){};function c(re){return i.from(re)}function h(re){return i.isBuffer(re)||re instanceof r}var d=(0,C.default)(k("core-util-is"));d.inherits=k("inherits");var s=k("util"),l=void 0;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var w=k("./internal/streams/BufferList"),E=k("./internal/streams/destroy"),_;d.inherits(S,n);var P=["error","close","destroy","pause","resume"];function R(re,ae,Oe){if(typeof re.prependListener=="function")return re.prependListener(ae,Oe);!re._events||!re._events[ae]?re.on(ae,Oe):e(re._events[ae])?re._events[ae].unshift(Oe):re._events[ae]=[Oe,re._events[ae]]}function x(re,ae){f=f||k("./_stream_duplex"),re=re||{};var Oe=ae instanceof f;this.objectMode=!!re.objectMode,Oe&&(this.objectMode=this.objectMode||!!re.readableObjectMode);var le=re.highWaterMark,te=re.readableHighWaterMark,Q=this.objectMode?16:16*1024;le||le===0?this.highWaterMark=le:Oe&&(te||te===0)?this.highWaterMark=te:this.highWaterMark=Q,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&&(_||(_=k("string_decoder/").StringDecoder),this.decoder=new _(re.encoding),this.encoding=re.encoding)}function S(re){if(f=f||k("./_stream_duplex"),!(this instanceof S))return new S(re);this._readableState=new x(re,this),this.readable=!0,re&&(typeof re.read=="function"&&(this._read=re.read),typeof re.destroy=="function"&&(this._destroy=re.destroy)),n.call(this)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ae){if(!this._readableState)return;this._readableState.destroyed=ae}}),S.prototype.destroy=E.destroy,S.prototype._undestroy=E.undestroy,S.prototype._destroy=function(re,ae){this.push(null),ae(re)},S.prototype.push=function(re,ae){var Oe=this._readableState,le;return Oe.objectMode?le=!0:typeof re=="string"&&(ae=ae||Oe.defaultEncoding,ae!==Oe.encoding&&(re=i.from(re,ae),ae=""),le=!0),v(this,re,ae,!1,le)},S.prototype.unshift=function(re){return v(this,re,null,!0,!1)};function v(re,ae,Oe,le,te){var Q=re._readableState;if(ae===null)Q.reading=!1,D(re,Q);else{var J;te||(J=U(Q,ae)),J?re.emit("error",J):Q.objectMode||ae&&ae.length>0?(typeof ae!="string"&&!Q.objectMode&&(0,b.default)(ae)!==i.prototype&&(ae=c(ae)),le?Q.endEmitted?re.emit("error",new Error("stream.unshift() after end event")):T(re,Q,ae,!0):Q.ended?re.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!Oe?(ae=Q.decoder.write(ae),Q.objectMode||ae.length!==0?T(re,Q,ae,!1):I(re,Q)):T(re,Q,ae,!1))):le||(Q.reading=!1)}return L(Q)}function T(re,ae,Oe,le){ae.flowing&&ae.length===0&&!ae.sync?(re.emit("data",Oe),re.read(0)):(ae.length+=ae.objectMode?1:Oe.length,le?ae.buffer.unshift(Oe):ae.buffer.push(Oe),ae.needReadable&&W(re)),I(re,ae)}function U(re,ae){var Oe;return!h(ae)&&typeof ae!="string"&&ae!==void 0&&!re.objectMode&&(Oe=new TypeError("Invalid non-string/buffer chunk")),Oe}function L(re){return!re.ended&&(re.needReadable||re.length<re.highWaterMark||re.length===0)}S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(re){return _||(_=k("string_decoder/").StringDecoder),this._readableState.decoder=new _(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 H(re,ae){return re<=0||ae.length===0&&ae.ended?0:ae.objectMode?1:re!==re?ae.flowing&&ae.length?ae.buffer.head.data.length:ae.length:(re>ae.highWaterMark&&(ae.highWaterMark=V(re)),re<=ae.length?re:ae.ended?ae.length:(ae.needReadable=!0,0))}S.prototype.read=function(re){l("read",re),re=parseInt(re,10);var ae=this._readableState,Oe=re;if(re!==0&&(ae.emittedReadable=!1),re===0&&ae.needReadable&&(ae.length>=ae.highWaterMark||ae.ended))return l("read: emitReadable",ae.length,ae.ended),ae.length===0&&ae.ended?se(this):W(this),null;if(re=H(re,ae),re===0&&ae.ended)return ae.length===0&&se(this),null;var le=ae.needReadable;l("need readable",le),(ae.length===0||ae.length-re<ae.highWaterMark)&&(le=!0,l("length less than watermark",le)),ae.ended||ae.reading?(le=!1,l("reading or ended",le)):le&&(l("do read"),ae.reading=!0,ae.sync=!0,ae.length===0&&(ae.needReadable=!0),this._read(ae.highWaterMark),ae.sync=!1,ae.reading||(re=H(Oe,ae)));var te;return re>0?te=ce(re,ae):te=null,te===null?(ae.needReadable=!0,re=0):ae.length-=re,ae.length===0&&(ae.ended||(ae.needReadable=!0),Oe!==re&&ae.ended&&se(this)),te!==null&&this.emit("data",te),te};function D(re,ae){if(ae.ended)return;if(ae.decoder){var Oe=ae.decoder.end();Oe&&Oe.length&&(ae.buffer.push(Oe),ae.length+=ae.objectMode?1:Oe.length)}ae.ended=!0,W(re)}function W(re){var ae=re._readableState;ae.needReadable=!1,ae.emittedReadable||(l("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?m.nextTick(F,re):F(re))}function F(re){l("emit readable"),re.emit("readable"),Te(re)}function I(re,ae){ae.readingMore||(ae.readingMore=!0,m.nextTick(K,re,ae))}function K(re,ae){for(var Oe=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length<ae.highWaterMark&&!(l("maybeReadMore read 0"),re.read(0),Oe===ae.length);)Oe=ae.length;ae.readingMore=!1}S.prototype._read=function(re){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(re,ae){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,l("pipe count=%d opts=%j",le.pipesCount,ae);var te=(!ae||ae.end!==!1)&&re!==M.stdout&&re!==M.stderr,Q=te?ve:Ve;le.endEmitted?m.nextTick(Q):Oe.once("end",Q),re.on("unpipe",J);function J(Ue,pt){l("onunpipe"),Ue===Oe&&(pt&&pt.hasUnpiped===!1&&(pt.hasUnpiped=!0,Je()))}function ve(){l("onend"),re.end()}var _e=ee(Oe);re.on("drain",_e);var Ae=!1;function Je(){l("cleanup"),re.removeListener("close",vt),re.removeListener("finish",_t),re.removeListener("drain",_e),re.removeListener("error",ht),re.removeListener("unpipe",J),Oe.removeListener("end",ve),Oe.removeListener("end",Ve),Oe.removeListener("data",ut),Ae=!0,le.awaitDrain&&(!re._writableState||re._writableState.needDrain)&&_e()}var tt=!1;Oe.on("data",ut);function ut(Ue){l("ondata"),tt=!1;var pt=re.write(Ue);pt===!1&&!tt&&((le.pipesCount===1&&le.pipes===re||le.pipesCount>1&&me(le.pipes,re)!==-1)&&!Ae&&(l("false write response, pause",Oe._readableState.awaitDrain),Oe._readableState.awaitDrain++,tt=!0),Oe.pause())}function ht(Ue){l("onerror",Ue),Ve(),re.removeListener("error",ht),u(re,"error")===0&&re.emit("error",Ue)}R(re,"error",ht);function vt(){re.removeListener("finish",_t),Ve()}re.once("close",vt);function _t(){l("onfinish"),re.removeListener("close",vt),Ve()}re.once("finish",_t);function Ve(){l("unpipe"),Oe.unpipe(re)}return re.emit("pipe",Oe),le.flowing||(l("pipe resume"),Oe.resume()),re};function ee(re){return function(){var ae=re._readableState;l("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&u(re,"data")&&(ae.flowing=!0,Te(re))}}S.prototype.unpipe=function(re){var ae=this._readableState,Oe={hasUnpiped:!1};if(ae.pipesCount===0)return this;if(ae.pipesCount===1)return re&&re!==ae.pipes?this:(re||(re=ae.pipes),ae.pipes=null,ae.pipesCount=0,ae.flowing=!1,re&&re.emit("unpipe",this,Oe),this);if(!re){var le=ae.pipes,te=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var Q=0;Q<te;Q++)le[Q].emit("unpipe",this,Oe);return this}var J=me(ae.pipes,re);return J===-1?this:(ae.pipes.splice(J,1),ae.pipesCount-=1,ae.pipesCount===1&&(ae.pipes=ae.pipes[0]),re.emit("unpipe",this,Oe),this)},S.prototype.on=function(re,ae){var Oe=n.prototype.on.call(this,re,ae);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&&W(this):m.nextTick(he,this))}return Oe},S.prototype.addListener=S.prototype.on;function he(re){l("readable nexttick read 0"),re.read(0)}S.prototype.resume=function(){var re=this._readableState;return re.flowing||(l("resume"),re.flowing=!0,de(this,re)),this};function de(re,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,m.nextTick(Se,re,ae))}function Se(re,ae){ae.reading||(l("resume read 0"),re.read(0)),ae.resumeScheduled=!1,ae.awaitDrain=0,re.emit("resume"),Te(re),ae.flowing&&!ae.reading&&re.read(0)}S.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Te(re){var ae=re._readableState;for(l("flow",ae.flowing);ae.flowing&&re.read()!==null;);}S.prototype.wrap=function(re){var ae=this,Oe=this._readableState,le=!1;re.on("end",function(){if(l("wrapped end"),Oe.decoder&&!Oe.ended){var J=Oe.decoder.end();J&&J.length&&ae.push(J)}ae.push(null)}),re.on("data",function(J){if(l("wrapped data"),Oe.decoder&&(J=Oe.decoder.write(J)),Oe.objectMode&&J==null)return;if(!Oe.objectMode&&(!J||!J.length))return;var ve=ae.push(J);ve||(le=!0,re.pause())});for(var te in re)this[te]===void 0&&typeof re[te]=="function"&&(this[te]=function(J){return function(){return re[J].apply(re,arguments)}}(te));for(var Q=0;Q<P.length;Q++)re.on(P[Q],this.emit.bind(this,P[Q]));return this._read=function(J){l("wrapped _read",J),le&&(le=!1,re.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=ce;function ce(re,ae){if(ae.length===0)return null;var Oe;return ae.objectMode?Oe=ae.buffer.shift():!re||re>=ae.length?(ae.decoder?Oe=ae.buffer.join(""):ae.buffer.length===1?Oe=ae.buffer.head.data:Oe=ae.buffer.concat(ae.length),ae.buffer.clear()):Oe=be(re,ae.buffer,ae.decoder),Oe}function be(re,ae,Oe){var le;return re<ae.head.data.length?(le=ae.head.data.slice(0,re),ae.head.data=ae.head.data.slice(re)):re===ae.head.data.length?le=ae.shift():le=Oe?ye(re,ae):ue(re,ae),le}function ye(re,ae){var Oe=ae.head,le=1,te=Oe.data;for(re-=te.length;Oe=Oe.next;){var Q=Oe.data,J=re>Q.length?Q.length:re;if(J===Q.length?te+=Q:te+=Q.slice(0,re),re-=J,re===0){J===Q.length?(++le,Oe.next?ae.head=Oe.next:ae.head=ae.tail=null):(ae.head=Oe,Oe.data=Q.slice(J));break}++le}return ae.length-=le,te}function ue(re,ae){var Oe=i.allocUnsafe(re),le=ae.head,te=1;for(le.data.copy(Oe),re-=le.data.length;le=le.next;){var Q=le.data,J=re>Q.length?Q.length:re;if(Q.copy(Oe,Oe.length-re,0,J),re-=J,re===0){J===Q.length?(++te,le.next?ae.head=le.next:ae.head=ae.tail=null):(ae.head=le,le.data=Q.slice(J));break}++te}return ae.length-=te,Oe}function se(re){var ae=re._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,m.nextTick($,ae,re))}function $(re,ae){!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ae.readable=!1,ae.emit("end"))}function me(re,ae){for(var Oe=0,le=re.length;Oe<le;Oe++)if(re[Oe]===ae)return Oe;return-1}}).call(this,k("_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(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(f){return f&&f.__esModule?f:{default:f}}z.exports=O;var b=k("./_stream_duplex"),y=(0,g.default)(k("core-util-is"));y.inherits=k("inherits"),y.inherits(O,b);function C(f,a){var u=this._transformState;u.transforming=!1;var n=u.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));u.writechunk=null,u.writecb=null,a!=null&&this.push(a),n(f);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function O(f){if(!(this instanceof O))return new O(f);b.call(this,f),this._transformState={afterTransform:C.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",m)}function m(){var f=this;typeof this._flush=="function"?this._flush(function(a,u){e(f,a,u)}):e(this,null,null)}O.prototype.push=function(f,a){return this._transformState.needTransform=!1,b.prototype.push.call(this,f,a)},O.prototype._transform=function(f,a,u){throw new Error("_transform() is not implemented")},O.prototype._write=function(f,a,u){var n=this._transformState;if(n.writecb=u,n.writechunk=f,n.writeencoding=a,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},O.prototype._read=function(f){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},O.prototype._destroy=function(f,a){var u=this;b.prototype._destroy.call(this,f,function(n){a(n),u.emit("close")})};function e(f,a,u){if(a)return f.emit("error",a);if(u!=null&&f.push(u),f._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(f._transformState.transforming)throw new Error("Calling transform done when still transforming");return f.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(k,z,o){(function(M,g){"use strict";var A=k("babel-runtime/core-js/object/define-property"),b=n(A),y=k("babel-runtime/core-js/symbol/has-instance"),C=n(y),O=k("babel-runtime/core-js/symbol"),m=n(O),e=k("babel-runtime/core-js/object/create"),f=n(e),a=k("babel-runtime/core-js/set-immediate"),u=n(a);function n(ue){return ue&&ue.__esModule?ue:{default:ue}}var i=k("process-nextick-args");z.exports=U;function r(ue,se,$){this.chunk=ue,this.encoding=se,this.callback=$,this.next=null}function c(ue){var se=this;this.next=null,this.entry=null,this.finish=function(){ye(se,ue)}}var h=!M.browser&&["v0.10","v0.9."].indexOf(M.version.slice(0,5))>-1?u.default:i.nextTick,d;U.WritableState=v;var s=(0,f.default)(k("core-util-is"));s.inherits=k("inherits");var l={deprecate:k("util-deprecate")},w=k("./internal/streams/stream"),E=k("safe-buffer").Buffer,_=g.Uint8Array||function(){};function P(ue){return E.from(ue)}function R(ue){return E.isBuffer(ue)||ue instanceof _}var x=k("./internal/streams/destroy");s.inherits(U,w);function S(){}function v(ue,se){d=d||k("./_stream_duplex"),ue=ue||{};var $=se instanceof d;this.objectMode=!!ue.objectMode,$&&(this.objectMode=this.objectMode||!!ue.writableObjectMode);var me=ue.highWaterMark,re=ue.writableHighWaterMark,ae=this.objectMode?16:16*1024;me||me===0?this.highWaterMark=me:$&&(re||re===0)?this.highWaterMark=re:this.highWaterMark=ae,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){I(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 c(this)}v.prototype.getBuffer=function(){for(var se=this.bufferedRequest,$=[];se;)$.push(se),se=se.next;return $},function(){try{Object.defineProperty(v.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var T;typeof m.default=="function"&&C.default&&typeof Function.prototype[C.default]=="function"?(T=Function.prototype[C.default],(0,b.default)(U,C.default,{value:function(se){return T.call(this,se)?!0:this!==U?!1:se&&se._writableState instanceof v}})):T=function(se){return se instanceof this};function U(ue){if(d=d||k("./_stream_duplex"),!T.call(U,this)&&!(this instanceof d))return new U(ue);this._writableState=new v(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)}U.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function L(ue,se){var $=new Error("write after end");ue.emit("error",$),i.nextTick(se,$)}function N(ue,se,$,me){var re=!0,ae=!1;return $===null?ae=new TypeError("May not write null values to stream"):typeof $!="string"&&$!==void 0&&!se.objectMode&&(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(ue.emit("error",ae),i.nextTick(me,ae),re=!1),re}U.prototype.write=function(ue,se,$){var me=this._writableState,re=!1,ae=!me.objectMode&&R(ue);return ae&&!E.isBuffer(ue)&&(ue=P(ue)),typeof se=="function"&&($=se,se=null),ae?se="buffer":se||(se=me.defaultEncoding),typeof $!="function"&&($=S),me.ended?L(this,$):(ae||N(this,me,ue,$))&&(me.pendingcb++,re=H(this,me,ae,ue,se,$)),re},U.prototype.cork=function(){var ue=this._writableState;ue.corked++},U.prototype.uncork=function(){var ue=this._writableState;ue.corked&&(ue.corked--,!ue.writing&&!ue.corked&&!ue.finished&&!ue.bufferProcessing&&ue.bufferedRequest&&he(this,ue))},U.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,$){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof se=="string"&&(se=E.from(se,$)),se}Object.defineProperty(U.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(ue,se,$,me,re,ae){if(!$){var Oe=V(se,me,re);me!==Oe&&($=!0,re="buffer",me=Oe)}var le=se.objectMode?1:me.length;se.length+=le;var te=se.length<se.highWaterMark;if(te||(se.needDrain=!0),se.writing||se.corked){var Q=se.lastBufferedRequest;se.lastBufferedRequest={chunk:me,encoding:re,isBuf:$,callback:ae,next:null},Q?Q.next=se.lastBufferedRequest:se.bufferedRequest=se.lastBufferedRequest,se.bufferedRequestCount+=1}else D(ue,se,!1,le,me,re,ae);return te}function D(ue,se,$,me,re,ae,Oe){se.writelen=me,se.writecb=Oe,se.writing=!0,se.sync=!0,$?ue._writev(re,se.onwrite):ue._write(re,ae,se.onwrite),se.sync=!1}function W(ue,se,$,me,re){--se.pendingcb,$?(i.nextTick(re,me),i.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 F(ue){ue.writing=!1,ue.writecb=null,ue.length-=ue.writelen,ue.writelen=0}function I(ue,se){var $=ue._writableState,me=$.sync,re=$.writecb;if(F($),se)W(ue,$,me,se,re);else{var ae=de($);!ae&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&he(ue,$),me?h(K,ue,$,ae,re):K(ue,$,ae,re)}}function K(ue,se,$,me){$||ee(ue,se),se.pendingcb--,me(),ce(ue,se)}function ee(ue,se){se.length===0&&se.needDrain&&(se.needDrain=!1,ue.emit("drain"))}function he(ue,se){se.bufferProcessing=!0;var $=se.bufferedRequest;if(ue._writev&&$&&$.next){var me=se.bufferedRequestCount,re=new Array(me),ae=se.corkedRequestsFree;ae.entry=$;for(var Oe=0,le=!0;$;)re[Oe]=$,$.isBuf||(le=!1),$=$.next,Oe+=1;re.allBuffers=le,D(ue,se,!0,se.length,re,"",ae.finish),se.pendingcb++,se.lastBufferedRequest=null,ae.next?(se.corkedRequestsFree=ae.next,ae.next=null):se.corkedRequestsFree=new c(se),se.bufferedRequestCount=0}else{for(;$;){var te=$.chunk,Q=$.encoding,J=$.callback,ve=se.objectMode?1:te.length;if(D(ue,se,!1,ve,te,Q,J),$=$.next,se.bufferedRequestCount--,se.writing)break}$===null&&(se.lastBufferedRequest=null)}se.bufferedRequest=$,se.bufferProcessing=!1}U.prototype._write=function(ue,se,$){$(new Error("_write() is not implemented"))},U.prototype._writev=null,U.prototype.end=function(ue,se,$){var me=this._writableState;typeof ue=="function"?($=ue,ue=null,se=null):typeof se=="function"&&($=se,se=null),ue!=null&&this.write(ue,se),me.corked&&(me.corked=1,this.uncork()),!me.ending&&!me.finished&&be(this,me,$)};function de(ue){return ue.ending&&ue.length===0&&ue.bufferedRequest===null&&!ue.finished&&!ue.writing}function Se(ue,se){ue._final(function($){se.pendingcb--,$&&ue.emit("error",$),se.prefinished=!0,ue.emit("prefinish"),ce(ue,se)})}function Te(ue,se){!se.prefinished&&!se.finalCalled&&(typeof ue._final=="function"?(se.pendingcb++,se.finalCalled=!0,i.nextTick(Se,ue,se)):(se.prefinished=!0,ue.emit("prefinish")))}function ce(ue,se){var $=de(se);return $&&(Te(ue,se),se.pendingcb===0&&(se.finished=!0,ue.emit("finish"))),$}function be(ue,se,$){se.ending=!0,ce(ue,se),$&&(se.finished?i.nextTick($):ue.once("finish",$)),se.ended=!0,ue.writable=!1}function ye(ue,se,$){var me=ue.entry;for(ue.entry=null;me;){var re=me.callback;se.pendingcb--,re($),me=me.next}se.corkedRequestsFree?se.corkedRequestsFree.next=ue:se.corkedRequestsFree=ue}Object.defineProperty(U.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(se){if(!this._writableState)return;this._writableState.destroyed=se}}),U.prototype.destroy=x.destroy,U.prototype._undestroy=x.undestroy,U.prototype._destroy=function(ue,se){this.end(),se(ue)}}).call(this,k("_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(k,z,o){"use strict";function M(y,C){if(!(y instanceof C))throw new TypeError("Cannot call a class as a function")}var g=k("safe-buffer").Buffer,A=k("util");function b(y,C,O){y.copy(C,O)}z.exports=function(){function y(){M(this,y),this.head=null,this.tail=null,this.length=0}return y.prototype.push=function(O){var m={data:O,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length},y.prototype.unshift=function(O){var m={data:O,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length},y.prototype.shift=function(){if(this.length===0)return;var O=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,O},y.prototype.clear=function(){this.head=this.tail=null,this.length=0},y.prototype.join=function(O){if(this.length===0)return"";for(var m=this.head,e=""+m.data;m=m.next;)e+=O+m.data;return e},y.prototype.concat=function(O){if(this.length===0)return g.alloc(0);if(this.length===1)return this.head.data;for(var m=g.allocUnsafe(O>>>0),e=this.head,f=0;e;)b(e.data,m,f),f+=e.data.length,e=e.next;return m},y}(),A&&A.inspect&&A.inspect.custom&&(z.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(k,z,o){"use strict";var M=k("process-nextick-args");function g(y,C){var O=this,m=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return m||e?(C?C(y):y&&(!this._writableState||!this._writableState.errorEmitted)&&M.nextTick(b,this,y),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(f){!C&&f?(M.nextTick(b,O,f),O._writableState&&(O._writableState.errorEmitted=!0)):C&&C(f)}),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,C){y.emit("error",C)}z.exports={destroy:g,undestroy:A}},{"process-nextick-args":207}],221:[function(k,z,o){"use strict";z.exports=k("events").EventEmitter},{events:192}],222:[function(k,z,o){z.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,z,o){o=z.exports=k("./lib/_stream_readable.js"),o.Stream=o,o.Readable=o,o.Writable=k("./lib/_stream_writable.js"),o.Duplex=k("./lib/_stream_duplex.js"),o.Transform=k("./lib/_stream_transform.js"),o.PassThrough=k("./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(k,z,o){z.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,z,o){z.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,z,o){var M=function(){return this}()||Function("return this")(),g=M.regeneratorRuntime&&Object.getOwnPropertyNames(M).indexOf("regeneratorRuntime")>=0,A=g&&M.regeneratorRuntime;if(M.regeneratorRuntime=void 0,z.exports=k("./runtime"),g)M.regeneratorRuntime=A;else try{delete M.regeneratorRuntime}catch(b){M.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,z,o){!function(M){"use strict";var g=Object.prototype,A=g.hasOwnProperty,b,y=typeof Symbol=="function"?Symbol:{},C=y.iterator||"@@iterator",O=y.asyncIterator||"@@asyncIterator",m=y.toStringTag||"@@toStringTag",e=typeof z=="object",f=M.regeneratorRuntime;if(f){e&&(z.exports=f);return}f=M.regeneratorRuntime=e?z.exports:{};function a(H,D,W,F){var I=D&&D.prototype instanceof d?D:d,K=Object.create(I.prototype),ee=new L(F||[]);return K._invoke=S(H,W,ee),K}f.wrap=a;function u(H,D,W){try{return{type:"normal",arg:H.call(D,W)}}catch(F){return{type:"throw",arg:F}}}var n="suspendedStart",i="suspendedYield",r="executing",c="completed",h={};function d(){}function s(){}function l(){}var w={};w[C]=function(){return this};var E=Object.getPrototypeOf,_=E&&E(E(N([])));_&&_!==g&&A.call(_,C)&&(w=_);var P=l.prototype=d.prototype=Object.create(w);s.prototype=P.constructor=l,l.constructor=s,l[m]=s.displayName="GeneratorFunction";function R(H){["next","throw","return"].forEach(function(D){H[D]=function(W){return this._invoke(D,W)}})}f.isGeneratorFunction=function(H){var D=typeof H=="function"&&H.constructor;return D?D===s||(D.displayName||D.name)==="GeneratorFunction":!1},f.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,l):(H.__proto__=l,m in H||(H[m]="GeneratorFunction")),H.prototype=Object.create(P),H},f.awrap=function(H){return{__await:H}};function x(H){function D(I,K,ee,he){var de=u(H[I],H,K);if(de.type==="throw")he(de.arg);else{var Se=de.arg,Te=Se.value;return Te&&typeof Te=="object"&&A.call(Te,"__await")?Promise.resolve(Te.__await).then(function(ce){D("next",ce,ee,he)},function(ce){D("throw",ce,ee,he)}):Promise.resolve(Te).then(function(ce){Se.value=ce,ee(Se)},he)}}var W;function F(I,K){function ee(){return new Promise(function(he,de){D(I,K,he,de)})}return W=W?W.then(ee,ee):ee()}this._invoke=F}R(x.prototype),x.prototype[O]=function(){return this},f.AsyncIterator=x,f.async=function(H,D,W,F){var I=new x(a(H,D,W,F));return f.isGeneratorFunction(D)?I:I.next().then(function(K){return K.done?K.value:I.next()})};function S(H,D,W){var F=n;return function(K,ee){if(F===r)throw new Error("Generator is already running");if(F===c){if(K==="throw")throw ee;return V()}for(W.method=K,W.arg=ee;;){var he=W.delegate;if(he){var de=v(he,W);if(de){if(de===h)continue;return de}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(F===n)throw F=c,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);F=r;var Se=u(H,D,W);if(Se.type==="normal"){if(F=W.done?c:i,Se.arg===h)continue;return{value:Se.arg,done:W.done}}else Se.type==="throw"&&(F=c,W.method="throw",W.arg=Se.arg)}}}function v(H,D){var W=H.iterator[D.method];if(W===b){if(D.delegate=null,D.method==="throw"){if(H.iterator.return&&(D.method="return",D.arg=b,v(H,D),D.method==="throw"))return h;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var F=u(W,H.iterator,D.arg);if(F.type==="throw")return D.method="throw",D.arg=F.arg,D.delegate=null,h;var I=F.arg;if(!I)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,h;if(I.done)D[H.resultName]=I.value,D.next=H.nextLoc,D.method!=="return"&&(D.method="next",D.arg=b);else return I;return D.delegate=null,h}R(P),P[m]="Generator",P[C]=function(){return this},P.toString=function(){return"[object Generator]"};function T(H){var D={tryLoc:H[0]};1 in H&&(D.catchLoc=H[1]),2 in H&&(D.finallyLoc=H[2],D.afterLoc=H[3]),this.tryEntries.push(D)}function U(H){var D=H.completion||{};D.type="normal",delete D.arg,H.completion=D}function L(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(T,this),this.reset(!0)}f.keys=function(H){var D=[];for(var W in H)D.push(W);return D.reverse(),function F(){for(;D.length;){var I=D.pop();if(I in H)return F.value=I,F.done=!1,F}return F.done=!0,F}};function N(H){if(H){var D=H[C];if(D)return D.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var W=-1,F=function I(){for(;++W<H.length;)if(A.call(H,W))return I.value=H[W],I.done=!1,I;return I.value=b,I.done=!0,I};return F.next=F}}return{next:V}}f.values=N;function V(){return{value:b,done:!0}}L.prototype={constructor:L,reset:function(H){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(U),!H)for(var D in this)D.charAt(0)==="t"&&A.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=b)},stop:function(){this.done=!0;var H=this.tryEntries[0],D=H.completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var D=this;function W(de,Se){return K.type="throw",K.arg=H,D.next=de,Se&&(D.method="next",D.arg=b),!!Se}for(var F=this.tryEntries.length-1;F>=0;--F){var I=this.tryEntries[F],K=I.completion;if(I.tryLoc==="root")return W("end");if(I.tryLoc<=this.prev){var ee=A.call(I,"catchLoc"),he=A.call(I,"finallyLoc");if(ee&&he){if(this.prev<I.catchLoc)return W(I.catchLoc,!0);if(this.prev<I.finallyLoc)return W(I.finallyLoc)}else if(ee){if(this.prev<I.catchLoc)return W(I.catchLoc,!0)}else if(he){if(this.prev<I.finallyLoc)return W(I.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(H,D){for(var W=this.tryEntries.length-1;W>=0;--W){var F=this.tryEntries[W];if(F.tryLoc<=this.prev&&A.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var I=F;break}}I&&(H==="break"||H==="continue")&&I.tryLoc<=D&&D<=I.finallyLoc&&(I=null);var K=I?I.completion:{};return K.type=H,K.arg=D,I?(this.method="next",this.next=I.finallyLoc,h):this.complete(K)},complete:function(H,D){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&D&&(this.next=D),h},finish:function(H){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.finallyLoc===H)return this.complete(W.completion,W.afterLoc),U(W),h}},catch:function(H){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.tryLoc===H){var F=W.completion;if(F.type==="throw"){var I=F.arg;U(W)}return I}}throw new Error("illegal catch attempt")},delegateYield:function(H,D,W){return this.delegate={iterator:N(H),resultName:D,nextLoc:W},this.method==="next"&&(this.arg=b),h}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,z,o){var M=k("buffer"),g=M.Buffer;function A(y,C){for(var O in y)C[O]=y[O]}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?z.exports=M:(A(M,o),o.Buffer=b);function b(y,C,O){return g(y,C,O)}A(g,b),b.from=function(y,C,O){if(typeof y=="number")throw new TypeError("Argument must not be a number");return g(y,C,O)},b.alloc=function(y,C,O){if(typeof y!="number")throw new TypeError("Argument must be a number");var m=g(y);return C!==void 0?typeof O=="string"?m.fill(C,O):m.fill(C):m.fill(0),m},b.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return g(y)},b.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return M.SlowBuffer(y)}},{buffer:73}],229:[function(k,z,o){(function(M){"use strict";var g=k("babel-runtime/core-js/string/from-code-point"),A=i(g),b=k("babel-runtime/core-js/json/stringify"),y=i(b),C=k("babel-runtime/helpers/typeof"),O=i(C),m=k("babel-runtime/core-js/object/define-property"),e=i(m),f=k("babel-runtime/core-js/object/keys"),a=i(f),u=k("babel-runtime/core-js/object/create"),n=i(u);function i(r){return r&&r.__esModule?r:{default:r}}(function(r){r.parser=function(Q,J){return new h(Q,J)},r.SAXParser=h,r.SAXStream=P,r.createStream=_,r.MAX_BUFFER_LENGTH=64*1024;var c=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function h(Q,J){if(!(this instanceof h))return new h(Q,J);var ve=this;s(ve),ve.q=ve.c="",ve.bufferCheckPosition=r.MAX_BUFFER_LENGTH,ve.opt=J||{},ve.opt.lowercase=ve.opt.lowercase||ve.opt.lowercasetags,ve.looseCase=ve.opt.lowercase?"toLowerCase":"toUpperCase",ve.tags=[],ve.closed=ve.closedRoot=ve.sawRoot=!1,ve.tag=ve.error=null,ve.strict=!!Q,ve.noscript=!!(Q||ve.opt.noscript),ve.state=K.BEGIN,ve.strictEntities=ve.opt.strictEntities,ve.ENTITIES=ve.strictEntities?(0,n.default)(r.XML_ENTITIES):(0,n.default)(r.ENTITIES),ve.attribList=[],ve.opt.xmlns&&(ve.ns=(0,n.default)(T)),ve.trackPosition=ve.opt.position!==!1,ve.trackPosition&&(ve.position=ve.line=ve.column=0),he(ve,"onready")}n.default||(Object.create=function(Q){function J(){}J.prototype=Q;var ve=new J;return ve}),a.default||(Object.keys=function(Q){var J=[];for(var ve in Q)Q.hasOwnProperty(ve)&&J.push(ve);return J});function d(Q){for(var J=Math.max(r.MAX_BUFFER_LENGTH,10),ve=0,_e=0,Ae=c.length;_e<Ae;_e++){var Je=Q[c[_e]].length;if(Je>J)switch(c[_e]){case"textNode":Se(Q);break;case"cdata":de(Q,"oncdata",Q.cdata),Q.cdata="";break;case"script":de(Q,"onscript",Q.script),Q.script="";break;default:ce(Q,"Max buffer length exceeded: "+c[_e])}ve=Math.max(ve,Je)}var tt=r.MAX_BUFFER_LENGTH-ve;Q.bufferCheckPosition=tt+Q.position}function s(Q){for(var J=0,ve=c.length;J<ve;J++)Q[c[J]]=""}function l(Q){Se(Q),Q.cdata!==""&&(de(Q,"oncdata",Q.cdata),Q.cdata=""),Q.script!==""&&(de(Q,"onscript",Q.script),Q.script="")}h.prototype={end:function(){be(this)},write:te,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){l(this)}};var w;try{w=k("stream").Stream}catch(Q){w=function(){}}var E=r.EVENTS.filter(function(Q){return Q!=="error"&&Q!=="end"});function _(Q,J){return new P(Q,J)}function P(Q,J){if(!(this instanceof P))return new P(Q,J);w.apply(this),this._parser=new h(Q,J),this.writable=!0,this.readable=!0;var ve=this;this._parser.onend=function(){ve.emit("end")},this._parser.onerror=function(_e){ve.emit("error",_e),ve._parser.error=null},this._decoder=null,E.forEach(function(_e){(0,e.default)(ve,"on"+_e,{get:function(){return ve._parser["on"+_e]},set:function(Je){if(!Je)return ve.removeAllListeners(_e),ve._parser["on"+_e]=Je,Je;ve.on(_e,Je)},enumerable:!0,configurable:!1})})}P.prototype=(0,n.default)(w.prototype,{constructor:{value:P}}),P.prototype.write=function(Q){if(typeof M=="function"&&typeof M.isBuffer=="function"&&M.isBuffer(Q)){if(!this._decoder){var J=k("string_decoder").StringDecoder;this._decoder=new J("utf8")}Q=this._decoder.write(Q)}return this._parser.write(Q.toString()),this.emit("data",Q),!0},P.prototype.end=function(Q){return Q&&Q.length&&this.write(Q),this._parser.end(),!0},P.prototype.on=function(Q,J){var ve=this;return!ve._parser["on"+Q]&&E.indexOf(Q)!==-1&&(ve._parser["on"+Q]=function(){var _e=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);_e.splice(0,0,Q),ve.emit.apply(ve,_e)}),w.prototype.on.call(ve,Q,J)};var R="[CDATA[",x="DOCTYPE",S="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",T={xml:S,xmlns:v},U=/[:_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]/,L=/[:_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 H(Q){return Q===" "||Q===`
`||Q==="\r"||Q===" "}function D(Q){return Q==='"'||Q==="'"}function W(Q){return Q===">"||H(Q)}function F(Q,J){return Q.test(J)}function I(Q,J){return!F(Q,J)}var K=0;r.STATE={BEGIN:K++,BEGIN_WHITESPACE:K++,TEXT:K++,TEXT_ENTITY:K++,OPEN_WAKA:K++,SGML_DECL:K++,SGML_DECL_QUOTED:K++,DOCTYPE:K++,DOCTYPE_QUOTED:K++,DOCTYPE_DTD:K++,DOCTYPE_DTD_QUOTED:K++,COMMENT_STARTING:K++,COMMENT:K++,COMMENT_ENDING:K++,COMMENT_ENDED:K++,CDATA:K++,CDATA_ENDING:K++,CDATA_ENDING_2:K++,PROC_INST:K++,PROC_INST_BODY:K++,PROC_INST_ENDING:K++,OPEN_TAG:K++,OPEN_TAG_SLASH:K++,ATTRIB:K++,ATTRIB_NAME:K++,ATTRIB_NAME_SAW_WHITE:K++,ATTRIB_VALUE:K++,ATTRIB_VALUE_QUOTED:K++,ATTRIB_VALUE_CLOSED:K++,ATTRIB_VALUE_UNQUOTED:K++,ATTRIB_VALUE_ENTITY_Q:K++,ATTRIB_VALUE_ENTITY_U:K++,CLOSE_TAG:K++,CLOSE_TAG_SAW_WHITE:K++,SCRIPT:K++,SCRIPT_ENDING:K++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.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,a.default)(r.ENTITIES).forEach(function(Q){var J=r.ENTITIES[Q],ve=typeof J=="number"?String.fromCharCode(J):J;r.ENTITIES[Q]=ve});for(var ee in r.STATE)r.STATE[r.STATE[ee]]=ee;K=r.STATE;function he(Q,J,ve){Q[J]&&Q[J](ve)}function de(Q,J,ve){Q.textNode&&Se(Q),he(Q,J,ve)}function Se(Q){Q.textNode=Te(Q.opt,Q.textNode),Q.textNode&&he(Q,"ontext",Q.textNode),Q.textNode=""}function Te(Q,J){return Q.trim&&(J=J.trim()),Q.normalize&&(J=J.replace(/\s+/g," ")),J}function ce(Q,J){return Se(Q),Q.trackPosition&&(J+=`
Line: `+Q.line+`
Column: `+Q.column+`
Char: `+Q.c),J=new Error(J),Q.error=J,he(Q,"onerror",J),Q}function be(Q){return Q.sawRoot&&!Q.closedRoot&&ye(Q,"Unclosed root tag"),Q.state!==K.BEGIN&&Q.state!==K.BEGIN_WHITESPACE&&Q.state!==K.TEXT&&ce(Q,"Unexpected end"),Se(Q),Q.c="",Q.closed=!0,he(Q,"onend"),h.call(Q,Q.strict,Q.opt),Q}function ye(Q,J){if((typeof Q=="undefined"?"undefined":(0,O.default)(Q))!=="object"||!(Q instanceof h))throw new Error("bad call to strictFail");Q.strict&&ce(Q,J)}function ue(Q){Q.strict||(Q.tagName=Q.tagName[Q.looseCase]());var J=Q.tags[Q.tags.length-1]||Q,ve=Q.tag={name:Q.tagName,attributes:{}};Q.opt.xmlns&&(ve.ns=J.ns),Q.attribList.length=0,de(Q,"onopentagstart",ve)}function se(Q,J){var ve=Q.indexOf(":"),_e=ve<0?["",Q]:Q.split(":"),Ae=_e[0],Je=_e[1];return J&&Q==="xmlns"&&(Ae="xmlns",Je=""),{prefix:Ae,local:Je}}function $(Q){if(Q.strict||(Q.attribName=Q.attribName[Q.looseCase]()),Q.attribList.indexOf(Q.attribName)!==-1||Q.tag.attributes.hasOwnProperty(Q.attribName)){Q.attribName=Q.attribValue="";return}if(Q.opt.xmlns){var J=se(Q.attribName,!0),ve=J.prefix,_e=J.local;if(ve==="xmlns")if(_e==="xml"&&Q.attribValue!==S)ye(Q,"xml: prefix must be bound to "+S+`
Actual: `+Q.attribValue);else if(_e==="xmlns"&&Q.attribValue!==v)ye(Q,"xmlns: prefix must be bound to "+v+`
Actual: `+Q.attribValue);else{var Ae=Q.tag,Je=Q.tags[Q.tags.length-1]||Q;Ae.ns===Je.ns&&(Ae.ns=(0,n.default)(Je.ns)),Ae.ns[_e]=Q.attribValue}Q.attribList.push([Q.attribName,Q.attribValue])}else Q.tag.attributes[Q.attribName]=Q.attribValue,de(Q,"onattribute",{name:Q.attribName,value:Q.attribValue});Q.attribName=Q.attribValue=""}function me(Q,J){if(Q.opt.xmlns){var ve=Q.tag,_e=se(Q.tagName);ve.prefix=_e.prefix,ve.local=_e.local,ve.uri=ve.ns[_e.prefix]||"",ve.prefix&&!ve.uri&&(ye(Q,"Unbound namespace prefix: "+(0,y.default)(Q.tagName)),ve.uri=_e.prefix);var Ae=Q.tags[Q.tags.length-1]||Q;ve.ns&&Ae.ns!==ve.ns&&(0,a.default)(ve.ns).forEach(function(Et){de(Q,"onopennamespace",{prefix:Et,uri:ve.ns[Et]})});for(var Je=0,tt=Q.attribList.length;Je<tt;Je++){var ut=Q.attribList[Je],ht=ut[0],vt=ut[1],_t=se(ht,!0),Ve=_t.prefix,Ue=_t.local,pt=Ve===""?"":ve.ns[Ve]||"",Ut={name:ht,value:vt,prefix:Ve,local:Ue,uri:pt};Ve&&Ve!=="xmlns"&&!pt&&(ye(Q,"Unbound namespace prefix: "+(0,y.default)(Ve)),Ut.uri=Ve),Q.tag.attributes[ht]=Ut,de(Q,"onattribute",Ut)}Q.attribList.length=0}Q.tag.isSelfClosing=!!J,Q.sawRoot=!0,Q.tags.push(Q.tag),de(Q,"onopentag",Q.tag),J||(!Q.noscript&&Q.tagName.toLowerCase()==="script"?Q.state=K.SCRIPT:Q.state=K.TEXT,Q.tag=null,Q.tagName=""),Q.attribName=Q.attribValue="",Q.attribList.length=0}function re(Q){if(!Q.tagName){ye(Q,"Weird empty close tag."),Q.textNode+="</>",Q.state=K.TEXT;return}if(Q.script){if(Q.tagName!=="script"){Q.script+="</"+Q.tagName+">",Q.tagName="",Q.state=K.SCRIPT;return}de(Q,"onscript",Q.script),Q.script=""}var J=Q.tags.length,ve=Q.tagName;Q.strict||(ve=ve[Q.looseCase]());for(var _e=ve;J--;){var Ae=Q.tags[J];if(Ae.name!==_e)ye(Q,"Unexpected close tag");else break}if(J<0){ye(Q,"Unmatched closing tag: "+Q.tagName),Q.textNode+="</"+Q.tagName+">",Q.state=K.TEXT;return}Q.tagName=ve;for(var Je=Q.tags.length;Je-- >J;){var tt=Q.tag=Q.tags.pop();Q.tagName=Q.tag.name,de(Q,"onclosetag",Q.tagName);var ut={};for(var ht in tt.ns)ut[ht]=tt.ns[ht];var vt=Q.tags[Q.tags.length-1]||Q;Q.opt.xmlns&&tt.ns!==vt.ns&&(0,a.default)(tt.ns).forEach(function(_t){var Ve=tt.ns[_t];de(Q,"onclosenamespace",{prefix:_t,uri:Ve})})}J===0&&(Q.closedRoot=!0),Q.tagName=Q.attribValue=Q.attribName="",Q.attribList.length=0,Q.state=K.TEXT}function ae(Q){var J=Q.entity,ve=J.toLowerCase(),_e,Ae="";return Q.ENTITIES[J]?Q.ENTITIES[J]:Q.ENTITIES[ve]?Q.ENTITIES[ve]:(J=ve,J.charAt(0)==="#"&&(J.charAt(1)==="x"?(J=J.slice(2),_e=parseInt(J,16),Ae=_e.toString(16)):(J=J.slice(1),_e=parseInt(J,10),Ae=_e.toString(10))),J=J.replace(/^0+/,""),isNaN(_e)||Ae.toLowerCase()!==J?(ye(Q,"Invalid character entity"),"&"+Q.entity+";"):(0,A.default)(_e))}function Oe(Q,J){J==="<"?(Q.state=K.OPEN_WAKA,Q.startTagPosition=Q.position):H(J)||(ye(Q,"Non-whitespace before first tag."),Q.textNode=J,Q.state=K.TEXT)}function le(Q,J){var ve="";return J<Q.length&&(ve=Q.charAt(J)),ve}function te(Q){var J=this;if(this.error)throw this.error;if(J.closed)return ce(J,"Cannot write after close. Assign an onready handler.");if(Q===null)return be(J);(typeof Q=="undefined"?"undefined":(0,O.default)(Q))==="object"&&(Q=Q.toString());for(var ve=0,_e="";!(_e=le(Q,ve++),J.c=_e,!_e);){J.trackPosition&&(J.position++,_e===`
`?(J.line++,J.column=0):J.column++);switch(J.state){case K.BEGIN:if(J.state=K.BEGIN_WHITESPACE,_e==="\uFEFF")continue;Oe(J,_e);continue;case K.BEGIN_WHITESPACE:Oe(J,_e);continue;case K.TEXT:if(J.sawRoot&&!J.closedRoot){for(var Ae=ve-1;_e&&_e!=="<"&&_e!=="&";)_e=le(Q,ve++),_e&&J.trackPosition&&(J.position++,_e===`
`?(J.line++,J.column=0):J.column++);J.textNode+=Q.substring(Ae,ve-1)}_e==="<"&&!(J.sawRoot&&J.closedRoot&&!J.strict)?(J.state=K.OPEN_WAKA,J.startTagPosition=J.position):(!H(_e)&&(!J.sawRoot||J.closedRoot)&&ye(J,"Text data outside of root node."),_e==="&"?J.state=K.TEXT_ENTITY:J.textNode+=_e);continue;case K.SCRIPT:_e==="<"?J.state=K.SCRIPT_ENDING:J.script+=_e;continue;case K.SCRIPT_ENDING:_e==="/"?J.state=K.CLOSE_TAG:(J.script+="<"+_e,J.state=K.SCRIPT);continue;case K.OPEN_WAKA:if(_e==="!")J.state=K.SGML_DECL,J.sgmlDecl="";else if(!H(_e))if(F(U,_e))J.state=K.OPEN_TAG,J.tagName=_e;else if(_e==="/")J.state=K.CLOSE_TAG,J.tagName="";else if(_e==="?")J.state=K.PROC_INST,J.procInstName=J.procInstBody="";else{if(ye(J,"Unencoded <"),J.startTagPosition+1<J.position){var Je=J.position-J.startTagPosition;_e=new Array(Je).join(" ")+_e}J.textNode+="<"+_e,J.state=K.TEXT}continue;case K.SGML_DECL:(J.sgmlDecl+_e).toUpperCase()===R?(de(J,"onopencdata"),J.state=K.CDATA,J.sgmlDecl="",J.cdata=""):J.sgmlDecl+_e==="--"?(J.state=K.COMMENT,J.comment="",J.sgmlDecl=""):(J.sgmlDecl+_e).toUpperCase()===x?(J.state=K.DOCTYPE,(J.doctype||J.sawRoot)&&ye(J,"Inappropriately located doctype declaration"),J.doctype="",J.sgmlDecl=""):_e===">"?(de(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=K.TEXT):(D(_e)&&(J.state=K.SGML_DECL_QUOTED),J.sgmlDecl+=_e);continue;case K.SGML_DECL_QUOTED:_e===J.q&&(J.state=K.SGML_DECL,J.q=""),J.sgmlDecl+=_e;continue;case K.DOCTYPE:_e===">"?(J.state=K.TEXT,de(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=_e,_e==="["?J.state=K.DOCTYPE_DTD:D(_e)&&(J.state=K.DOCTYPE_QUOTED,J.q=_e));continue;case K.DOCTYPE_QUOTED:J.doctype+=_e,_e===J.q&&(J.q="",J.state=K.DOCTYPE);continue;case K.DOCTYPE_DTD:J.doctype+=_e,_e==="]"?J.state=K.DOCTYPE:D(_e)&&(J.state=K.DOCTYPE_DTD_QUOTED,J.q=_e);continue;case K.DOCTYPE_DTD_QUOTED:J.doctype+=_e,_e===J.q&&(J.state=K.DOCTYPE_DTD,J.q="");continue;case K.COMMENT:_e==="-"?J.state=K.COMMENT_ENDING:J.comment+=_e;continue;case K.COMMENT_ENDING:_e==="-"?(J.state=K.COMMENT_ENDED,J.comment=Te(J.opt,J.comment),J.comment&&de(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+_e,J.state=K.COMMENT);continue;case K.COMMENT_ENDED:_e!==">"?(ye(J,"Malformed comment"),J.comment+="--"+_e,J.state=K.COMMENT):J.state=K.TEXT;continue;case K.CDATA:_e==="]"?J.state=K.CDATA_ENDING:J.cdata+=_e;continue;case K.CDATA_ENDING:_e==="]"?J.state=K.CDATA_ENDING_2:(J.cdata+="]"+_e,J.state=K.CDATA);continue;case K.CDATA_ENDING_2:_e===">"?(J.cdata&&de(J,"oncdata",J.cdata),de(J,"onclosecdata"),J.cdata="",J.state=K.TEXT):_e==="]"?J.cdata+="]":(J.cdata+="]]"+_e,J.state=K.CDATA);continue;case K.PROC_INST:_e==="?"?J.state=K.PROC_INST_ENDING:H(_e)?J.state=K.PROC_INST_BODY:J.procInstName+=_e;continue;case K.PROC_INST_BODY:if(!J.procInstBody&&H(_e))continue;_e==="?"?J.state=K.PROC_INST_ENDING:J.procInstBody+=_e;continue;case K.PROC_INST_ENDING:_e===">"?(de(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=K.TEXT):(J.procInstBody+="?"+_e,J.state=K.PROC_INST_BODY);continue;case K.OPEN_TAG:F(L,_e)?J.tagName+=_e:(ue(J),_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:(H(_e)||ye(J,"Invalid character in tag name"),J.state=K.ATTRIB));continue;case K.OPEN_TAG_SLASH:_e===">"?(me(J,!0),re(J)):(ye(J,"Forward-slash in opening tag not followed by >"),J.state=K.ATTRIB);continue;case K.ATTRIB:if(H(_e))continue;_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):ye(J,"Invalid attribute name");continue;case K.ATTRIB_NAME:_e==="="?J.state=K.ATTRIB_VALUE:_e===">"?(ye(J,"Attribute without value"),J.attribValue=J.attribName,$(J),me(J)):H(_e)?J.state=K.ATTRIB_NAME_SAW_WHITE:F(L,_e)?J.attribName+=_e:ye(J,"Invalid attribute name");continue;case K.ATTRIB_NAME_SAW_WHITE:if(_e==="=")J.state=K.ATTRIB_VALUE;else{if(H(_e))continue;ye(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",de(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",_e===">"?me(J):F(U,_e)?(J.attribName=_e,J.state=K.ATTRIB_NAME):(ye(J,"Invalid attribute name"),J.state=K.ATTRIB)}continue;case K.ATTRIB_VALUE:if(H(_e))continue;D(_e)?(J.q=_e,J.state=K.ATTRIB_VALUE_QUOTED):(ye(J,"Unquoted attribute value"),J.state=K.ATTRIB_VALUE_UNQUOTED,J.attribValue=_e);continue;case K.ATTRIB_VALUE_QUOTED:if(_e!==J.q){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=_e;continue}$(J),J.q="",J.state=K.ATTRIB_VALUE_CLOSED;continue;case K.ATTRIB_VALUE_CLOSED:H(_e)?J.state=K.ATTRIB:_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(ye(J,"No whitespace between attributes"),J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):ye(J,"Invalid attribute name");continue;case K.ATTRIB_VALUE_UNQUOTED:if(!W(_e)){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_U:J.attribValue+=_e;continue}$(J),_e===">"?me(J):J.state=K.ATTRIB;continue;case K.CLOSE_TAG:if(J.tagName)_e===">"?re(J):F(L,_e)?J.tagName+=_e:J.script?(J.script+="</"+J.tagName,J.tagName="",J.state=K.SCRIPT):(H(_e)||ye(J,"Invalid tagname in closing tag"),J.state=K.CLOSE_TAG_SAW_WHITE);else{if(H(_e))continue;I(U,_e)?J.script?(J.script+="</"+_e,J.state=K.SCRIPT):ye(J,"Invalid tagname in closing tag."):J.tagName=_e}continue;case K.CLOSE_TAG_SAW_WHITE:if(H(_e))continue;_e===">"?re(J):ye(J,"Invalid characters in closing tag");continue;case K.TEXT_ENTITY:case K.ATTRIB_VALUE_ENTITY_Q:case K.ATTRIB_VALUE_ENTITY_U:var tt,ut;switch(J.state){case K.TEXT_ENTITY:tt=K.TEXT,ut="textNode";break;case K.ATTRIB_VALUE_ENTITY_Q:tt=K.ATTRIB_VALUE_QUOTED,ut="attribValue";break;case K.ATTRIB_VALUE_ENTITY_U:tt=K.ATTRIB_VALUE_UNQUOTED,ut="attribValue";break}_e===";"?(J[ut]+=ae(J),J.entity="",J.state=tt):F(J.entity.length?V:N,_e)?J.entity+=_e:(ye(J,"Invalid character in entity name"),J[ut]+="&"+J.entity+_e,J.entity="",J.state=tt);continue;default:throw new Error(J,"Unknown state: "+J.state)}}return J.position>=J.bufferCheckPosition&&d(J),J}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */A.default||function(){var Q=String.fromCharCode,J=Math.floor,ve=function(){var Ae=16384,Je=[],tt,ut,ht=-1,vt=arguments.length;if(!vt)return"";for(var _t="";++ht<vt;){var Ve=Number(arguments[ht]);if(!isFinite(Ve)||Ve<0||Ve>1114111||J(Ve)!==Ve)throw RangeError("Invalid code point: "+Ve);Ve<=65535?Je.push(Ve):(Ve-=65536,tt=(Ve>>10)+55296,ut=Ve%1024+56320,Je.push(tt,ut)),(ht+1===vt||Je.length>Ae)&&(_t+=Q.apply(null,Je),Je.length=0)}return _t};e.default?Object.defineProperty(String,"fromCodePoint",{value:ve,configurable:!0,writable:!0}):String.fromCodePoint=ve}()})(typeof o=="undefined"?(void 0).sax={}:o)}).call(this,k("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(k,z,o){z.exports=A;var M=k("events").EventEmitter,g=k("inherits");g(A,M),A.Readable=k("readable-stream/readable.js"),A.Writable=k("readable-stream/writable.js"),A.Duplex=k("readable-stream/duplex.js"),A.Transform=k("readable-stream/transform.js"),A.PassThrough=k("readable-stream/passthrough.js"),A.Stream=A;function A(){M.call(this)}A.prototype.pipe=function(b,y){var C=this;function O(i){b.writable&&(b.write(i)===!1&&C.pause&&C.pause())}C.on("data",O);function m(){C.readable&&C.resume&&C.resume()}b.on("drain",m),!b._isStdio&&(!y||y.end!==!1)&&(C.on("end",f),C.on("close",a));var e=!1;function f(){if(e)return;e=!0,b.end()}function a(){if(e)return;e=!0,typeof b.destroy=="function"&&b.destroy()}function u(i){if(n(),M.listenerCount(this,"error")===0)throw i}C.on("error",u),b.on("error",u);function n(){C.removeListener("data",O),b.removeListener("drain",m),C.removeListener("end",f),C.removeListener("close",a),C.removeListener("error",u),b.removeListener("error",u),C.removeListener("end",n),C.removeListener("close",n),b.removeListener("close",n)}return C.on("end",n),C.on("close",n),b.on("close",n),b.emit("pipe",C),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(k,z,o){(function(M){var g=k("./lib/request"),A=k("./lib/response"),b=k("xtend"),y=k("builtin-status-codes"),C=k("url"),O=o;O.request=function(m,e){typeof m=="string"?m=C.parse(m):m=b(m);var f=M.location.protocol.search(/^https?:$/)===-1?"http:":"",a=m.protocol||f,u=m.hostname||m.host,n=m.port,i=m.path||"/";u&&u.indexOf(":")!==-1&&(u="["+u+"]"),m.url=(u?a+"//"+u:"")+(n?":"+n:"")+i,m.method=(m.method||"GET").toUpperCase(),m.headers=m.headers||{};var r=new g(m);return e&&r.on("response",e),r},O.get=function(e,f){var a=O.request(e,f);return a.end(),a},O.ClientRequest=g,O.IncomingMessage=A.IncomingMessage,O.Agent=function(){},O.Agent.defaultMaxSockets=4,O.globalAgent=new O.Agent,O.STATUS_CODES=y,O.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(k,z,o){(function(M){"use strict";o.fetch=O(M.fetch)&&O(M.ReadableStream),o.writableStream=O(M.WritableStream),o.abortController=O(M.AbortController),o.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),o.blobConstructor=!0}catch(m){}var g;function A(){if(g!==void 0)return g;if(M.XMLHttpRequest){g=new M.XMLHttpRequest;try{g.open("GET",M.XDomainRequest?"/":"https://example.com")}catch(m){g=null}}else g=null;return g}function b(m){var e=A();if(!e)return!1;try{return e.responseType=m,e.responseType===m}catch(f){}return!1}var y=typeof M.ArrayBuffer!="undefined",C=y&&O(M.ArrayBuffer.prototype.slice);o.arraybuffer=o.fetch||y&&b("arraybuffer"),o.msstream=!o.fetch&&C&&b("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&y&&b("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(A()?O(A().overrideMimeType):!1),o.vbArray=O(M.VBArray);function O(m){return typeof m=="function"}g=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,z,o){(function(M,g,A){"use strict";var b=k("babel-runtime/core-js/object/keys"),y=C(b);function C(d){return d&&d.__esModule?d:{default:d}}var O=k("./capability"),m=k("inherits"),e=k("./response"),f=k("readable-stream"),a=k("to-arraybuffer"),u=e.IncomingMessage,n=e.readyStates;function i(d,s){return O.fetch&&s?"fetch":O.mozchunkedarraybuffer?"moz-chunked-arraybuffer":O.msstream?"ms-stream":O.arraybuffer&&d?"arraybuffer":O.vbArray&&d?"text:vbarray":"text"}var r=z.exports=function(d){var s=this;f.Writable.call(s),s._opts=d,s._body=[],s._headers={},d.auth&&s.setHeader("Authorization","Basic "+new A(d.auth).toString("base64")),(0,y.default)(d.headers).forEach(function(E){s.setHeader(E,d.headers[E])});var l,w=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!O.abortController)w=!1,l=!0;else if(d.mode==="prefer-streaming")l=!1;else if(d.mode==="allow-wrong-content-type")l=!O.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")l=!0;else throw new Error("Invalid value for opts.mode");s._mode=i(l,w),s._fetchTimer=null,s.on("finish",function(){s._onFinish()})};m(r,f.Writable),r.prototype.setHeader=function(d,s){var l=this,w=d.toLowerCase();if(h.indexOf(w)!==-1)return;l._headers[w]={name:d,value:s}},r.prototype.getHeader=function(d){var s=this._headers[d.toLowerCase()];return s?s.value:null},r.prototype.removeHeader=function(d){var s=this;delete s._headers[d.toLowerCase()]},r.prototype._onFinish=function(){var d=this;if(d._destroyed)return;var s=d._opts,l=d._headers,w=null;s.method!=="GET"&&s.method!=="HEAD"&&(O.arraybuffer?w=a(A.concat(d._body)):O.blobConstructor?w=new g.Blob(d._body.map(function(S){return a(S)}),{type:(l["content-type"]||{}).value||""}):w=A.concat(d._body).toString());var E=[];if((0,y.default)(l).forEach(function(S){var v=l[S].name,T=l[S].value;Array.isArray(T)?T.forEach(function(U){E.push([v,U])}):E.push([v,T])}),d._mode==="fetch"){var _=null,P=null;if(O.abortController){var R=new AbortController;_=R.signal,d._fetchAbortController=R,"requestTimeout"in s&&s.requestTimeout!==0&&(d._fetchTimer=g.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},s.requestTimeout))}g.fetch(d._opts.url,{method:d._opts.method,headers:E,body:w||void 0,mode:"cors",credentials:s.withCredentials?"include":"same-origin",signal:_}).then(function(S){d._fetchResponse=S,d._connect()},function(S){g.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",S)})}else{var x=d._xhr=new g.XMLHttpRequest;try{x.open(d._opts.method,d._opts.url,!0)}catch(S){M.nextTick(function(){d.emit("error",S)});return}"responseType"in x&&(x.responseType=d._mode.split(":")[0]),"withCredentials"in x&&(x.withCredentials=!!s.withCredentials),d._mode==="text"&&"overrideMimeType"in x&&x.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in s&&(x.timeout=s.requestTimeout,x.ontimeout=function(){d.emit("requestTimeout")}),E.forEach(function(S){x.setRequestHeader(S[0],S[1])}),d._response=null,x.onreadystatechange=function(){switch(x.readyState){case n.LOADING:case n.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(x.onprogress=function(){d._onXHRProgress()}),x.onerror=function(){if(d._destroyed)return;d.emit("error",new Error("XHR error"))};try{x.send(w)}catch(S){M.nextTick(function(){d.emit("error",S)});return}}};function c(d){try{var s=d.status;return s!==null&&s!==0}catch(l){return!1}}r.prototype._onXHRProgress=function(){var d=this;if(!c(d._xhr)||d._destroyed)return;d._response||d._connect(),d._response._onXHRProgress()},r.prototype._connect=function(){var d=this;if(d._destroyed)return;d._response=new u(d._xhr,d._fetchResponse,d._mode,d._fetchTimer),d._response.on("error",function(s){d.emit("error",s)}),d.emit("response",d._response)},r.prototype._write=function(d,s,l){var w=this;w._body.push(d),l()},r.prototype.abort=r.prototype.destroy=function(){var d=this;d._destroyed=!0,g.clearTimeout(d._fetchTimer),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort()},r.prototype.end=function(d,s,l){var w=this;typeof d=="function"&&(l=d,d=void 0),f.Writable.prototype.end.call(w,d,s,l)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var h=["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,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("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(k,z,o){(function(M,g,A){"use strict";var b=k("babel-runtime/core-js/promise"),y=C(b);function C(u){return u&&u.__esModule?u:{default:u}}var O=k("./capability"),m=k("inherits"),e=k("readable-stream"),f=o.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=o.IncomingMessage=function(u,n,i,r){var c=this;if(e.Readable.call(c),c._mode=i,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){M.nextTick(function(){c.emit("close")})}),i==="fetch"){var h=function _(){s.read().then(function(P){if(c._destroyed)return;if(P.done){g.clearTimeout(r),c.push(null);return}c.push(new A(P.value)),_()}).catch(function(P){g.clearTimeout(r),c._destroyed||c.emit("error",P)})};if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach(function(_,P){c.headers[P.toLowerCase()]=_,c.rawHeaders.push(P,_)}),O.writableStream){var d=new WritableStream({write:function(P){return new y.default(function(R,x){c._destroyed?x():c.push(new A(P))?R():c._resumeFetch=R})},close:function(){g.clearTimeout(r),c._destroyed||c.push(null)},abort:function(P){c._destroyed||c.emit("error",P)}});try{n.body.pipeTo(d).catch(function(_){g.clearTimeout(r),c._destroyed||c.emit("error",_)});return}catch(_){}}var s=n.body.getReader();h()}else{c._xhr=u,c._pos=0,c.url=u.responseURL,c.statusCode=u.status,c.statusMessage=u.statusText;var l=u.getAllResponseHeaders().split(/\r?\n/);if(l.forEach(function(_){var P=_.match(/^([^:]+):\s*(.*)/);if(P){var R=P[1].toLowerCase();R==="set-cookie"?(c.headers[R]===void 0&&(c.headers[R]=[]),c.headers[R].push(P[2])):c.headers[R]!==void 0?c.headers[R]+=", "+P[2]:c.headers[R]=P[2],c.rawHeaders.push(P[1],P[2])}}),c._charset="x-user-defined",!O.overrideMimeType){var w=c.rawHeaders["mime-type"];if(w){var E=w.match(/;\s*charset=([^;])(;|$)/);E&&(c._charset=E[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};m(a,e.Readable),a.prototype._read=function(){var u=this,n=u._resumeFetch;n&&(u._resumeFetch=null,n())},a.prototype._onXHRProgress=function(){var u=this,n=u._xhr,i=null;switch(u._mode){case"text:vbarray":if(n.readyState!==f.DONE)break;try{i=new g.VBArray(n.responseBody).toArray()}catch(s){}if(i!==null){u.push(new A(i));break}case"text":try{i=n.responseText}catch(s){u._mode="text:vbarray";break}if(i.length>u._pos){var r=i.substr(u._pos);if(u._charset==="x-user-defined"){for(var c=new A(r.length),h=0;h<r.length;h++)c[h]=r.charCodeAt(h)&255;u.push(c)}else u.push(r,u._charset);u._pos=i.length}break;case"arraybuffer":if(n.readyState!==f.DONE||!n.response)break;i=n.response,u.push(new A(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=n.response,n.readyState!==f.LOADING||!i)break;u.push(new A(new Uint8Array(i)));break;case"ms-stream":if(i=n.response,n.readyState!==f.LOADING)break;var d=new g.MSStreamReader;d.onprogress=function(){d.result.byteLength>u._pos&&(u.push(new A(new Uint8Array(d.result.slice(u._pos)))),u._pos=d.result.byteLength)},d.onload=function(){u.push(null)},d.readAsArrayBuffer(i);break}u._xhr.readyState===f.DONE&&u._mode!=="ms-stream"&&u.push(null)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(k,z,o){"use strict";var M=k("safe-buffer").Buffer,g=M.isEncoding||function(d){d=""+d;switch(d&&d.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(d){if(!d)return"utf8";for(var s;;)switch(d){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 d;default:if(s)return;d=(""+d).toLowerCase(),s=!0}}function b(d){var s=A(d);if(typeof s!="string"&&(M.isEncoding===g||!g(d)))throw new Error("Unknown encoding: "+d);return s||d}o.StringDecoder=y;function y(d){this.encoding=b(d);var s;switch(this.encoding){case"utf16le":this.text=u,this.end=n,s=4;break;case"utf8":this.fillLast=e,s=4;break;case"base64":this.text=i,this.end=r,s=3;break;default:this.write=c,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=M.allocUnsafe(s)}y.prototype.write=function(d){if(d.length===0)return"";var s,l;if(this.lastNeed){if(s=this.fillLast(d),s===void 0)return"";l=this.lastNeed,this.lastNeed=0}else l=0;return l<d.length?s?s+this.text(d,l):this.text(d,l):s||""},y.prototype.end=a,y.prototype.text=f,y.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length};function C(d){return d<=127?0:d>>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function O(d,s,l){var w=s.length-1;if(w<l)return 0;var E=C(s[w]);return E>=0?(E>0&&(d.lastNeed=E-1),E):--w<l||E===-2?0:(E=C(s[w]),E>=0?(E>0&&(d.lastNeed=E-2),E):--w<l||E===-2?0:(E=C(s[w]),E>=0?(E>0&&(E===2?E=0:d.lastNeed=E-3),E):0))}function m(d,s,l){if((s[0]&192)!==128)return d.lastNeed=0,"\uFFFD";if(d.lastNeed>1&&s.length>1){if((s[1]&192)!==128)return d.lastNeed=1,"\uFFFD";if(d.lastNeed>2&&s.length>2&&(s[2]&192)!==128)return d.lastNeed=2,"\uFFFD"}}function e(d){var s=this.lastTotal-this.lastNeed,l=m(this,d,s);if(l!==void 0)return l;if(this.lastNeed<=d.length)return d.copy(this.lastChar,s,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,s,0,d.length),this.lastNeed-=d.length}function f(d,s){var l=O(this,d,s);if(!this.lastNeed)return d.toString("utf8",s);this.lastTotal=l;var w=d.length-(l-this.lastNeed);return d.copy(this.lastChar,0,w),d.toString("utf8",s,w)}function a(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+"\uFFFD":s}function u(d,s){if((d.length-s)%2===0){var l=d.toString("utf16le",s);if(l){var w=l.charCodeAt(l.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],l.slice(0,-1)}return l}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",s,d.length-1)}function n(d){var s=d&&d.length?this.write(d):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,l)}return s}function i(d,s){var l=(d.length-s)%3;return l===0?d.toString("base64",s):(this.lastNeed=3-l,this.lastTotal=3,l===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",s,d.length-l))}function r(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+this.lastChar.toString("base64",0,3-this.lastNeed):s}function c(d){return d.toString(this.encoding)}function h(d){return d&&d.length?this.write(d):""}},{"safe-buffer":228}],236:[function(k,z,o){(function(M,g){var A=k("process/browser.js").nextTick,b=Function.prototype.apply,y=Array.prototype.slice,C={},O=0;o.setTimeout=function(){return new m(b.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new m(b.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(e){e.close()};function m(e,f){this._id=e,this._clearFn=f}m.prototype.unref=m.prototype.ref=function(){},m.prototype.close=function(){this._clearFn.call(window,this._id)},o.enroll=function(e,f){clearTimeout(e._idleTimeoutId),e._idleTimeout=f},o.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},o._unrefActive=o.active=function(e){clearTimeout(e._idleTimeoutId);var f=e._idleTimeout;f>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},f))},o.setImmediate=typeof M=="function"?M:function(e){var f=O++,a=arguments.length<2?!1:y.call(arguments,1);return C[f]=!0,A(function(){C[f]&&(a?e.apply(null,a):e.call(null),o.clearImmediate(f))}),f},o.clearImmediate=typeof g=="function"?g:function(e){delete C[e]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,z,o){var M=k("buffer").Buffer;z.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(M.isBuffer(g)){for(var A=new Uint8Array(g.length),b=g.length,y=0;y<b;y++)A[y]=g[y];return A.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(k,z,o){"use strict";var M=k("punycode"),g=k("./util");o.parse=s,o.resolve=w,o.resolveObject=E,o.format=l,o.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]*$/,C=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,O=["<",">",'"',"`"," ","\r",`
`," "],m=["{","}","|","\\","^","`"].concat(O),e=["'"].concat(m),f=["%","/","?",";","#"].concat(e),a=["/","?","#"],u=255,n=/^[+a-z0-9A-Z_-]{0,63}$/,i=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,r={javascript:!0,"javascript:":!0},c={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},d=k("querystring");function s(_,P,R){if(_&&g.isObject(_)&&_ instanceof A)return _;var x=new A;return x.parse(_,P,R),x}A.prototype.parse=function(_,P,R){if(!g.isString(_))throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var x=_.indexOf("?"),S=x!==-1&&x<_.indexOf("#")?"?":"#",v=_.split(S),T=/\\/g;v[0]=v[0].replace(T,"/"),_=v.join(S);var U=_;if(U=U.trim(),!R&&_.split("#").length===1){var L=C.exec(U);if(L)return this.path=U,this.href=U,this.pathname=L[1],L[2]?(this.search=L[2],P?this.query=d.parse(this.search.substr(1)):this.query=this.search.substr(1)):P&&(this.search="",this.query={}),this}var N=b.exec(U);if(N){N=N[0];var V=N.toLowerCase();this.protocol=V,U=U.substr(N.length)}if(R||N||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var H=U.substr(0,2)==="//";H&&!(N&&c[N])&&(U=U.substr(2),this.slashes=!0)}if(!c[N]&&(H||N&&!h[N])){for(var D=-1,W=0;W<a.length;W++){var F=U.indexOf(a[W]);F!==-1&&(D===-1||F<D)&&(D=F)}var I,K;D===-1?K=U.lastIndexOf("@"):K=U.lastIndexOf("@",D),K!==-1&&(I=U.slice(0,K),U=U.slice(K+1),this.auth=decodeURIComponent(I)),D=-1;for(var W=0;W<f.length;W++){var F=U.indexOf(f[W]);F!==-1&&(D===-1||F<D)&&(D=F)}D===-1&&(D=U.length),this.host=U.slice(0,D),U=U.slice(D),this.parseHost(),this.hostname=this.hostname||"";var ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ee)for(var he=this.hostname.split(/\./),W=0,de=he.length;W<de;W++){var Se=he[W];if(!Se)continue;if(!Se.match(n)){for(var Te="",ce=0,be=Se.length;ce<be;ce++)Se.charCodeAt(ce)>127?Te+="x":Te+=Se[ce];if(!Te.match(n)){var ye=he.slice(0,W),ue=he.slice(W+1),se=Se.match(i);se&&(ye.push(se[1]),ue.unshift(se[2])),ue.length&&(U="/"+ue.join(".")+U),this.hostname=ye.join(".");break}}}this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),ee||(this.hostname=M.toASCII(this.hostname));var $=this.port?":"+this.port:"",me=this.hostname||"";this.host=me+$,this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!r[V])for(var W=0,de=e.length;W<de;W++){var re=e[W];if(U.indexOf(re)===-1)continue;var ae=encodeURIComponent(re);ae===re&&(ae=escape(re)),U=U.split(re).join(ae)}var Oe=U.indexOf("#");Oe!==-1&&(this.hash=U.substr(Oe),U=U.slice(0,Oe));var le=U.indexOf("?");if(le!==-1?(this.search=U.substr(le),this.query=U.substr(le+1),P&&(this.query=d.parse(this.query)),U=U.slice(0,le)):P&&(this.search="",this.query={}),U&&(this.pathname=U),h[V]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var $=this.pathname||"",te=this.search||"";this.path=$+te}return this.href=this.format(),this};function l(_){return g.isString(_)&&(_=s(_)),_ instanceof A?_.format():A.prototype.format.call(_)}A.prototype.format=function(){var _=this.auth||"";_&&(_=encodeURIComponent(_),_=_.replace(/%3A/i,":"),_+="@");var P=this.protocol||"",R=this.pathname||"",x=this.hash||"",S=!1,v="";this.host?S=_+this.host:this.hostname&&(S=_+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(S+=":"+this.port)),this.query&&g.isObject(this.query)&&Object.keys(this.query).length&&(v=d.stringify(this.query));var T=this.search||v&&"?"+v||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||h[P])&&S!==!1?(S="//"+(S||""),R&&R.charAt(0)!=="/"&&(R="/"+R)):S||(S=""),x&&x.charAt(0)!=="#"&&(x="#"+x),T&&T.charAt(0)!=="?"&&(T="?"+T),R=R.replace(/[?#]/g,function(U){return encodeURIComponent(U)}),T=T.replace("#","%23"),P+S+R+T+x};function w(_,P){return s(_,!1,!0).resolve(P)}A.prototype.resolve=function(_){return this.resolveObject(s(_,!1,!0)).format()};function E(_,P){return _?s(_,!1,!0).resolveObject(P):P}A.prototype.resolveObject=function(_){if(g.isString(_)){var P=new A;P.parse(_,!1,!0),_=P}for(var R=new A,x=Object.keys(this),S=0;S<x.length;S++){var v=x[S];R[v]=this[v]}if(R.hash=_.hash,_.href==="")return R.href=R.format(),R;if(_.slashes&&!_.protocol){for(var T=Object.keys(_),U=0;U<T.length;U++){var L=T[U];L!=="protocol"&&(R[L]=_[L])}return h[R.protocol]&&R.hostname&&!R.pathname&&(R.path=R.pathname="/"),R.href=R.format(),R}if(_.protocol&&_.protocol!==R.protocol){if(!h[_.protocol]){for(var N=Object.keys(_),V=0;V<N.length;V++){var H=N[V];R[H]=_[H]}return R.href=R.format(),R}if(R.protocol=_.protocol,!_.host&&!c[_.protocol]){for(var de=(_.pathname||"").split("/");de.length&&!(_.host=de.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),R.pathname=de.join("/")}else R.pathname=_.pathname;if(R.search=_.search,R.query=_.query,R.host=_.host||"",R.auth=_.auth,R.hostname=_.hostname||_.host,R.port=_.port,R.pathname||R.search){var D=R.pathname||"",W=R.search||"";R.path=D+W}return R.slashes=R.slashes||_.slashes,R.href=R.format(),R}var F=R.pathname&&R.pathname.charAt(0)==="/",I=_.host||_.pathname&&_.pathname.charAt(0)==="/",K=I||F||R.host&&_.pathname,ee=K,he=R.pathname&&R.pathname.split("/")||[],de=_.pathname&&_.pathname.split("/")||[],Se=R.protocol&&!h[R.protocol];if(Se&&(R.hostname="",R.port=null,R.host&&(he[0]===""?he[0]=R.host:he.unshift(R.host)),R.host="",_.protocol&&(_.hostname=null,_.port=null,_.host&&(de[0]===""?de[0]=_.host:de.unshift(_.host)),_.host=null),K=K&&(de[0]===""||he[0]==="")),I)R.host=_.host||_.host===""?_.host:R.host,R.hostname=_.hostname||_.hostname===""?_.hostname:R.hostname,R.search=_.search,R.query=_.query,he=de;else if(de.length)he||(he=[]),he.pop(),he=he.concat(de),R.search=_.search,R.query=_.query;else if(!g.isNullOrUndefined(_.search)){if(Se){R.hostname=R.host=he.shift();var Te=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Te&&(R.auth=Te.shift(),R.host=R.hostname=Te.shift())}return R.search=_.search,R.query=_.query,(!g.isNull(R.pathname)||!g.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.href=R.format(),R}if(!he.length)return R.pathname=null,R.search?R.path="/"+R.search:R.path=null,R.href=R.format(),R;for(var ce=he.slice(-1)[0],be=(R.host||_.host||he.length>1)&&(ce==="."||ce==="..")||ce==="",ye=0,ue=he.length;ue>=0;ue--)ce=he[ue],ce==="."?he.splice(ue,1):ce===".."?(he.splice(ue,1),ye++):ye&&(he.splice(ue,1),ye--);if(!K&&!ee)for(;ye--;ye)he.unshift("..");K&&he[0]!==""&&(!he[0]||he[0].charAt(0)!=="/")&&he.unshift(""),be&&he.join("/").substr(-1)!=="/"&&he.push("");var se=he[0]===""||he[0]&&he[0].charAt(0)==="/";if(Se){R.hostname=R.host=se?"":he.length?he.shift():"";var Te=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Te&&(R.auth=Te.shift(),R.host=R.hostname=Te.shift())}return K=K||R.host&&he.length,K&&!se&&he.unshift(""),he.length?R.pathname=he.join("/"):(R.pathname=null,R.path=null),(!g.isNull(R.pathname)||!g.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.auth=_.auth||R.auth,R.slashes=R.slashes||_.slashes,R.href=R.format(),R},A.prototype.parseHost=function(){var _=this.host,P=y.exec(_);P&&(P=P[0],P!==":"&&(this.port=P.substr(1)),_=_.substr(0,_.length-P.length)),_&&(this.hostname=_)}},{"./util":239,punycode:209,querystring:212}],239:[function(k,z,o){"use strict";z.exports={isString:function(M){return typeof M=="string"},isObject:function(M){return typeof M=="object"&&M!==null},isNull:function(M){return M===null},isNullOrUndefined:function(M){return M==null}}},{}],240:[function(k,z,o){(function(M){z.exports=g;function g(b,y){if(A("noDeprecation"))return b;var C=!1;function O(){if(!C){if(A("throwDeprecation"))throw new Error(y);A("traceDeprecation")?console.trace(y):console.warn(y),C=!0}return b.apply(this,arguments)}return O}function A(b){try{if(!M.localStorage)return!1}catch(C){return!1}var y=M.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(k,z,o){typeof Object.create=="function"?z.exports=function(g,A){g.super_=A,g.prototype=Object.create(A.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:z.exports=function(g,A){g.super_=A;var b=function(){};b.prototype=A.prototype,g.prototype=new b,g.prototype.constructor=g}},{}],242:[function(k,z,o){z.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}},{}],243:[function(k,z,o){(function(M,g){var A=/%[sdj%]/g;o.format=function(D){if(!w(D)){for(var W=[],F=0;F<arguments.length;F++)W.push(C(arguments[F]));return W.join(" ")}for(var F=1,I=arguments,K=I.length,ee=String(D).replace(A,function(de){if(de==="%%")return"%";if(F>=K)return de;switch(de){case"%s":return String(I[F++]);case"%d":return Number(I[F++]);case"%j":try{return JSON.stringify(I[F++])}catch(Se){return"[Circular]"}default:return de}}),he=I[F];F<K;he=I[++F])d(he)||!R(he)?ee+=" "+he:ee+=" "+C(he);return ee},o.deprecate=function(D,W){if(_(g.process))return function(){return o.deprecate(D,W).apply(this,arguments)};if(M.noDeprecation===!0)return D;var F=!1;function I(){if(!F){if(M.throwDeprecation)throw new Error(W);M.traceDeprecation?console.trace(W):console.error(W),F=!0}return D.apply(this,arguments)}return I};var b={},y;o.debuglog=function(D){if(_(y)&&(y=M.env.NODE_DEBUG||""),D=D.toUpperCase(),!b[D])if(new RegExp("\\b"+D+"\\b","i").test(y)){var W=M.pid;b[D]=function(){var F=o.format.apply(o,arguments);console.error("%s %d: %s",D,W,F)}}else b[D]=function(){};return b[D]};function C(D,W){var F={seen:[],stylize:m};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),h(W)?F.showHidden=W:W&&o._extend(F,W),_(F.showHidden)&&(F.showHidden=!1),_(F.depth)&&(F.depth=2),_(F.colors)&&(F.colors=!1),_(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=O),f(F,D,F.depth)}o.inspect=C,C.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]},C.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function O(D,W){var F=C.styles[W];return F?"["+C.colors[F][0]+"m"+D+"["+C.colors[F][1]+"m":D}function m(D,W){return D}function e(D){var W={};return D.forEach(function(F,I){W[F]=!0}),W}function f(D,W,F){if(D.customInspect&&W&&v(W.inspect)&&W.inspect!==o.inspect&&!(W.constructor&&W.constructor.prototype===W)){var I=W.inspect(F,D);return w(I)||(I=f(D,I,F)),I}var K=a(D,W);if(K)return K;var ee=Object.keys(W),he=e(ee);if(D.showHidden&&(ee=Object.getOwnPropertyNames(W)),S(W)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return u(W);if(ee.length===0){if(v(W)){var de=W.name?": "+W.name:"";return D.stylize("[Function"+de+"]","special")}if(P(W))return D.stylize(RegExp.prototype.toString.call(W),"regexp");if(x(W))return D.stylize(Date.prototype.toString.call(W),"date");if(S(W))return u(W)}var Se="",Te=!1,ce=["{","}"];if(c(W)&&(Te=!0,ce=["[","]"]),v(W)){var be=W.name?": "+W.name:"";Se=" [Function"+be+"]"}if(P(W)&&(Se=" "+RegExp.prototype.toString.call(W)),x(W)&&(Se=" "+Date.prototype.toUTCString.call(W)),S(W)&&(Se=" "+u(W)),ee.length===0&&(!Te||W.length==0))return ce[0]+Se+ce[1];if(F<0)return P(W)?D.stylize(RegExp.prototype.toString.call(W),"regexp"):D.stylize("[Object]","special");D.seen.push(W);var ye;return Te?ye=n(D,W,F,he,ee):ye=ee.map(function(ue){return i(D,W,F,he,ue,Te)}),D.seen.pop(),r(ye,Se,ce)}function a(D,W){if(_(W))return D.stylize("undefined","undefined");if(w(W)){var F="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(F,"string")}if(l(W))return D.stylize(""+W,"number");if(h(W))return D.stylize(""+W,"boolean");if(d(W))return D.stylize("null","null")}function u(D){return"["+Error.prototype.toString.call(D)+"]"}function n(D,W,F,I,K){for(var ee=[],he=0,de=W.length;he<de;++he)H(W,String(he))?ee.push(i(D,W,F,I,String(he),!0)):ee.push("");return K.forEach(function(Se){Se.match(/^\d+$/)||ee.push(i(D,W,F,I,Se,!0))}),ee}function i(D,W,F,I,K,ee){var he,de,Se;if(Se=Object.getOwnPropertyDescriptor(W,K)||{value:W[K]},Se.get?Se.set?de=D.stylize("[Getter/Setter]","special"):de=D.stylize("[Getter]","special"):Se.set&&(de=D.stylize("[Setter]","special")),H(I,K)||(he="["+K+"]"),de||(D.seen.indexOf(Se.value)<0?(d(F)?de=f(D,Se.value,null):de=f(D,Se.value,F-1),de.indexOf(`
`)>-1&&(ee?de=de.split(`
`).map(function(Te){return" "+Te}).join(`
`).substr(2):de=`
`+de.split(`
`).map(function(Te){return" "+Te}).join(`
`))):de=D.stylize("[Circular]","special")),_(he)){if(ee&&K.match(/^\d+$/))return de;he=JSON.stringify(""+K),he.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(he=he.substr(1,he.length-2),he=D.stylize(he,"name")):(he=he.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),he=D.stylize(he,"string"))}return he+": "+de}function r(D,W,F){var I=0,K=D.reduce(function(ee,he){return I++,he.indexOf(`
`)>=0&&I++,ee+he.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?F[0]+(W===""?"":W+`
`)+" "+D.join(`,
`)+" "+F[1]:F[0]+W+" "+D.join(", ")+" "+F[1]}function c(D){return Array.isArray(D)}o.isArray=c;function h(D){return typeof D=="boolean"}o.isBoolean=h;function d(D){return D===null}o.isNull=d;function s(D){return D==null}o.isNullOrUndefined=s;function l(D){return typeof D=="number"}o.isNumber=l;function w(D){return typeof D=="string"}o.isString=w;function E(D){return typeof D=="symbol"}o.isSymbol=E;function _(D){return D===void 0}o.isUndefined=_;function P(D){return R(D)&&U(D)==="[object RegExp]"}o.isRegExp=P;function R(D){return typeof D=="object"&&D!==null}o.isObject=R;function x(D){return R(D)&&U(D)==="[object Date]"}o.isDate=x;function S(D){return R(D)&&(U(D)==="[object Error]"||D instanceof Error)}o.isError=S;function v(D){return typeof D=="function"}o.isFunction=v;function T(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D=="undefined"}o.isPrimitive=T,o.isBuffer=k("./support/isBuffer");function U(D){return Object.prototype.toString.call(D)}function L(D){return D<10?"0"+D.toString(10):D.toString(10)}var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var D=new Date,W=[L(D.getHours()),L(D.getMinutes()),L(D.getSeconds())].join(":");return[D.getDate(),N[D.getMonth()],W].join(" ")}o.log=function(){console.log("%s - %s",V(),o.format.apply(o,arguments))},o.inherits=k("inherits"),o._extend=function(D,W){if(!W||!R(W))return D;for(var F=Object.keys(W),I=F.length;I--;)D[F[I]]=W[F[I]];return D};function H(D,W){return Object.prototype.hasOwnProperty.call(D,W)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(k,z,o){"use strict";(function(){"use strict";o.stripBOM=function(M){return M[0]==="\uFEFF"?M.substring(1):M}}).call(void 0)},{}],245:[function(k,z,o){"use strict";var M=k("babel-runtime/helpers/typeof"),g=y(M),A=k("babel-runtime/core-js/object/keys"),b=y(A);function y(C){return C&&C.__esModule?C:{default:C}}(function(){"use strict";var C,O,m,e,f,a={}.hasOwnProperty;C=k("xmlbuilder"),O=k("./defaults").defaults,e=function(n){return typeof n=="string"&&(n.indexOf("&")>=0||n.indexOf(">")>=0||n.indexOf("<")>=0)},f=function(n){return"<![CDATA["+m(n)+"]]>"},m=function(n){return n.replace("]]>","]]]]><![CDATA[>")},o.Builder=function(){function u(n){var i,r,c;this.options={},r=O["0.2"];for(i in r){if(!a.call(r,i))continue;c=r[i],this.options[i]=c}for(i in n){if(!a.call(n,i))continue;c=n[i],this.options[i]=c}}return u.prototype.buildObject=function(n){var i,r,c,h,d;return i=this.options.attrkey,r=this.options.charkey,(0,b.default)(n).length===1&&this.options.rootName===O["0.2"].rootName?(d=(0,b.default)(n)[0],n=n[d]):d=this.options.rootName,c=function(s){return function(l,w){var E,_,P,R,x,S;if((typeof w=="undefined"?"undefined":(0,g.default)(w))!=="object")s.options.cdata&&e(w)?l.raw(f(w)):l.txt(w);else if(Array.isArray(w))for(R in w){if(!a.call(w,R))continue;_=w[R];for(x in _)P=_[x],l=c(l.ele(x),P).up()}else for(x in w){if(!a.call(w,x))continue;if(_=w[x],x===i){if((typeof _=="undefined"?"undefined":(0,g.default)(_))==="object")for(E in _)S=_[E],l=l.att(E,S)}else if(x===r)s.options.cdata&&e(_)?l=l.raw(f(_)):l=l.txt(_);else if(Array.isArray(_))for(R in _){if(!a.call(_,R))continue;P=_[R],typeof P=="string"?s.options.cdata&&e(P)?l=l.ele(x).raw(f(P)).up():l=l.ele(x,P).up():l=c(l.ele(x),P).up()}else(typeof _=="undefined"?"undefined":(0,g.default)(_))==="object"?l=c(l.ele(x),_).up():typeof _=="string"&&s.options.cdata&&e(_)?l=l.ele(x).raw(f(_)).up():(_==null&&(_=""),l=l.ele(x,_.toString()).up())}return l}}(this),h=C.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(h,n).end(this.options.renderOpts)},u}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(k,z,o){"use strict";(function(){o.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(k,z,o){"use strict";var M=k("babel-runtime/core-js/promise"),g=e(M),A=k("babel-runtime/core-js/object/get-own-property-names"),b=e(A),y=k("babel-runtime/core-js/object/keys"),C=e(y),O=k("babel-runtime/helpers/typeof"),m=e(O);function e(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,a,u,n,i,r,c,h,d=function(E,_){return function(){return E.apply(_,arguments)}},s=function(E,_){for(var P in _)l.call(_,P)&&(E[P]=_[P]);function R(){this.constructor=E}return R.prototype=_.prototype,E.prototype=new R,E.__super__=_.prototype,E},l={}.hasOwnProperty;c=k("sax"),u=k("events"),f=k("./bom"),r=k("./processors"),h=k("timers").setImmediate,a=k("./defaults").defaults,n=function(E){return(typeof E=="undefined"?"undefined":(0,m.default)(E))==="object"&&E!=null&&(0,C.default)(E).length===0},i=function(E,_,P){var R,x,S;for(R=0,x=E.length;R<x;R++)S=E[R],_=S(_,P);return _},o.Parser=function(w){s(E,w);function E(_){this.parseStringPromise=d(this.parseStringPromise,this),this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this);var P,R,x;if(!(this instanceof o.Parser))return new o.Parser(_);this.options={},R=a["0.2"];for(P in R){if(!l.call(R,P))continue;x=R[P],this.options[P]=x}for(P in _){if(!l.call(_,P))continue;x=_[P],this.options[P]=x}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(r.normalize)),this.reset()}return E.prototype.processAsync=function(){var _,P;try{return this.remaining.length<=this.options.chunkSize?(_=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(_),this.saxParser.close()):(_=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(_),h(this.processAsync))}catch(R){if(P=R,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(P)}},E.prototype.assignOrPush=function(_,P,R){return P in _?(_[P]instanceof Array||(_[P]=[_[P]]),_[P].push(R)):this.options.explicitArray?_[P]=[R]:_[P]=R},E.prototype.reset=function(){var _,P,R,x;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(S){return function(v){if(S.saxParser.resume(),!S.saxParser.errThrown)return S.saxParser.errThrown=!0,S.emit("error",v)}}(this),this.saxParser.onend=function(S){return function(){if(!S.saxParser.ended)return S.saxParser.ended=!0,S.emit("end",S.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,x=[],_=this.options.attrkey,P=this.options.charkey,this.saxParser.onopentag=function(S){return function(v){var T,U,L,N,V;if(L={},L[P]="",!S.options.ignoreAttrs){V=v.attributes;for(T in V){if(!l.call(V,T))continue;!(_ in L)&&!S.options.mergeAttrs&&(L[_]={}),U=S.options.attrValueProcessors?i(S.options.attrValueProcessors,v.attributes[T],T):v.attributes[T],N=S.options.attrNameProcessors?i(S.options.attrNameProcessors,T):T,S.options.mergeAttrs?S.assignOrPush(L,N,U):L[_][N]=U}}return L["#name"]=S.options.tagNameProcessors?i(S.options.tagNameProcessors,v.name):v.name,S.options.xmlns&&(L[S.options.xmlnskey]={uri:v.uri,local:v.local}),x.push(L)}}(this),this.saxParser.onclosetag=function(S){return function(){var v,T,U,L,N,V,H,D,W,F;if(V=x.pop(),N=V["#name"],(!S.options.explicitChildren||!S.options.preserveChildrenOrder)&&delete V["#name"],V.cdata===!0&&(v=V.cdata,delete V.cdata),W=x[x.length-1],V[P].match(/^\s*$/)&&!v?(T=V[P],delete V[P]):(S.options.trim&&(V[P]=V[P].trim()),S.options.normalize&&(V[P]=V[P].replace(/\s{2,}/g," ").trim()),V[P]=S.options.valueProcessors?i(S.options.valueProcessors,V[P],N):V[P],(0,C.default)(V).length===1&&P in V&&!S.EXPLICIT_CHARKEY&&(V=V[P])),n(V)&&(V=S.options.emptyTag!==""?S.options.emptyTag:T),S.options.validator!=null&&(F="/"+function(){var I,K,ee;for(ee=[],I=0,K=x.length;I<K;I++)L=x[I],ee.push(L["#name"]);return ee}().concat(N).join("/"),function(){var I;try{return V=S.options.validator(F,W&&W[N],V)}catch(K){return I=K,S.emit("error",I)}}()),S.options.explicitChildren&&!S.options.mergeAttrs&&(typeof V=="undefined"?"undefined":(0,m.default)(V))==="object"){if(!S.options.preserveChildrenOrder)L={},S.options.attrkey in V&&(L[S.options.attrkey]=V[S.options.attrkey],delete V[S.options.attrkey]),!S.options.charsAsChildren&&S.options.charkey in V&&(L[S.options.charkey]=V[S.options.charkey],delete V[S.options.charkey]),(0,b.default)(V).length>0&&(L[S.options.childkey]=V),V=L;else if(W){W[S.options.childkey]=W[S.options.childkey]||[],H={};for(U in V){if(!l.call(V,U))continue;H[U]=V[U]}W[S.options.childkey].push(H),delete V["#name"],(0,C.default)(V).length===1&&P in V&&!S.EXPLICIT_CHARKEY&&(V=V[P])}}return x.length>0?S.assignOrPush(W,N,V):(S.options.explicitRoot&&(D=V,V={},V[N]=D),S.resultObject=V,S.saxParser.ended=!0,S.emit("end",S.resultObject))}}(this),R=function(S){return function(v){var T,U;if(U=x[x.length-1],U)return U[P]+=v,S.options.explicitChildren&&S.options.preserveChildrenOrder&&S.options.charsAsChildren&&(S.options.includeWhiteChars||v.replace(/\\n/g,"").trim()!=="")&&(U[S.options.childkey]=U[S.options.childkey]||[],T={"#name":"__text__"},T[P]=v,S.options.normalize&&(T[P]=T[P].replace(/\s{2,}/g," ").trim()),U[S.options.childkey].push(T)),U}}(this),this.saxParser.ontext=R,this.saxParser.oncdata=function(S){return function(v){var T;if(T=R(v),T)return T.cdata=!0}}(this)},E.prototype.parseString=function(_,P){var R;P!=null&&typeof P=="function"&&(this.on("end",function(x){return this.reset(),P(null,x)}),this.on("error",function(x){return this.reset(),P(x)}));try{return _=_.toString(),_.trim()===""?(this.emit("end",null),!0):(_=f.stripBOM(_),this.options.async?(this.remaining=_,h(this.processAsync),this.saxParser):this.saxParser.write(_).close())}catch(x){if(R=x,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw R}else return this.emit("error",R),this.saxParser.errThrown=!0}},E.prototype.parseStringPromise=function(_){return new g.default(function(P){return function(R,x){return P.parseString(_,function(S,v){return S?x(S):R(v)})}}(this))},E}(u),o.parseString=function(w,E,_){var P,R,x;return _!=null?(typeof _=="function"&&(P=_),(typeof E=="undefined"?"undefined":(0,m.default)(E))==="object"&&(R=E)):(typeof E=="function"&&(P=E),R={}),x=new o.Parser(R),x.parseString(w,P)},o.parseStringPromise=function(w,E){var _,P;return(typeof E=="undefined"?"undefined":(0,m.default)(E))==="object"&&(_=E),P=new o.Parser(_),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(k,z,o){"use strict";(function(){"use strict";var M;M=new RegExp(/(?!xmlns)^.*:/),o.normalize=function(g){return g.toLowerCase()},o.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},o.stripPrefix=function(g){return g.replace(M,"")},o.parseNumbers=function(g){return isNaN(g)||(g=g%1===0?parseInt(g,10):parseFloat(g)),g},o.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],249:[function(k,z,o){"use strict";(function(){"use strict";var M,g,A,b,y=function(m,e){for(var f in e)C.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},C={}.hasOwnProperty;g=k("./defaults"),M=k("./builder"),A=k("./parser"),b=k("./processors"),o.defaults=g.defaults,o.processors=b,o.ValidationError=function(O){y(m,O);function m(e){this.message=e}return m}(Error),o.Builder=M.Builder,o.Parser=A.Parser,o.parseString=A.parseString,o.parseStringPromise=A.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(k,z,o){"use strict";(function(){z.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(k,z,o){"use strict";(function(){z.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(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/get-prototype-of"),g=O(M),A=k("babel-runtime/helpers/typeof"),b=O(A),y=k("babel-runtime/core-js/object/assign"),C=O(y);function O(m){return m&&m.__esModule?m:{default:m}}(function(){var m,e,f,a,u,n,i,r=[].slice,c={}.hasOwnProperty;m=function(){var d,s,l,w,E,_;if(_=arguments[0],E=2<=arguments.length?r.call(arguments,1):[],u(C.default))C.default.apply(null,arguments);else for(d=0,l=E.length;d<l;d++)if(w=E[d],w!=null)for(s in w){if(!c.call(w,s))continue;_[s]=w[s]}return _},u=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},n=function(d){var s;return!!d&&((s=typeof d=="undefined"?"undefined":(0,b.default)(d))==="function"||s==="object")},f=function(d){return u(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},a=function(d){var s;if(f(d))return!d.length;for(s in d){if(!c.call(d,s))continue;return!1}return!0},i=function(d){var s,l;return n(d)&&(l=(0,g.default)(d))&&(s=l.constructor)&&typeof s=="function"&&s instanceof s&&Function.prototype.toString.call(s)===Function.prototype.toString.call(Object)},e=function(d){return u(d.valueOf)?d.valueOf():d},z.exports.assign=m,z.exports.isFunction=u,z.exports.isObject=n,z.exports.isArray=f,z.exports.isEmpty=a,z.exports.isPlainObject=i,z.exports.getValue=e}).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(k,z,o){"use strict";(function(){z.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C;b=k("./NodeType"),C=k("./XMLNode"),z.exports=y=function(){function O(m,e,f){if(this.parent=m,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),e==null)throw new Error("Missing attribute name. "+this.debugInfo(e));this.name=this.stringify.name(e),this.value=this.stringify.attValue(f),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(O.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(O.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(O.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(O.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(O.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(O.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(O.prototype,"specified",{get:function(){return!0}}),O.prototype.clone=function(){return(0,g.default)(this)},O.prototype.toString=function(m){return this.options.writer.attribute(this,this.options.writer.filterOptions(m))},O.prototype.debugInfo=function(m){return m=m||this.name,m==null?"parent: <"+this.parent.name+">":"attribute: {"+m+"}, parent: <"+this.parent.name+">"},O.prototype.isEqualNode=function(m){return m.namespaceURI!==this.namespaceURI||(m.prefix!==this.prefix||m.localName!==this.localName)?!1:!(m.value!==this.value)},O}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),C=k("./XMLCharacterData"),z.exports=y=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(u)}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C=function(e,f){for(var a in f)O.call(f,a)&&(e[a]=f[a]);function u(){this.constructor=e}return u.prototype=f.prototype,e.prototype=new u,e.__super__=f.prototype,e},O={}.hasOwnProperty;y=k("./XMLNode"),z.exports=b=function(m){C(e,m);function e(f){e.__super__.constructor.call(this,f),this.value=""}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.substringData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.appendData=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.insertData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.deleteData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceData=function(f,a,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isEqualNode=function(f){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(f)?!(f.data!==this.data):!1},e}(y)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=C=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(u)}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),g=y(M),A=k("babel-runtime/core-js/object/create"),b=y(A);function y(C){return C&&C.__esModule?C:{default:C}}(function(){var C,O,m;O=k("./XMLDOMErrorHandler"),m=k("./XMLDOMStringList"),z.exports=C=function(){function e(){var f;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new O,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=f=(0,b.default)(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new m((0,g.default)(this.defaultParams))}}),e.prototype.getParameter=function(f){return this.params.hasOwnProperty(f)?this.params[f]:null},e.prototype.canSetParameter=function(f,a){return!0},e.prototype.setParameter=function(f,a){return a!=null?this.params[f]=a:delete this.params[f]},e}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function g(){}return g.prototype.handleError=function(A){throw new Error(A)},g}()}).call(void 0)},{}],260:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function g(){}return g.prototype.hasFeature=function(A,b){return!0},g.prototype.createDocumentType=function(A,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createDocument=function(A,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createHTMLDocument=function(A){throw new Error("This DOM method is not implemented.")},g.prototype.getFeature=function(A,b){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{}],261:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function g(A){this.arr=A||[]}return Object.defineProperty(g.prototype,"length",{get:function(){return this.arr.length}}),g.prototype.item=function(A){return this.arr[A]||null},g.prototype.contains=function(A){return this.arr.indexOf(A)!==-1},g}()}).call(void 0)},{}],262:[function(k,z,o){"use strict";(function(){var M,g,A,b=function(O,m){for(var e in m)y.call(m,e)&&(O[e]=m[e]);function f(){this.constructor=O}return f.prototype=m.prototype,O.prototype=new f,O.__super__=m.prototype,O},y={}.hasOwnProperty;A=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(C){b(O,C);function O(m,e,f,a,u,n){if(O.__super__.constructor.call(this,m),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(f==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(e));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(e));if(!u)throw new Error("Missing DTD attribute default. "+this.debugInfo(e));if(u.indexOf("#")!==0&&(u="#"+u),!u.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(e));if(n&&!u.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(e));this.elementName=this.stringify.name(e),this.type=M.AttributeDeclaration,this.attributeName=this.stringify.name(f),this.attributeType=this.stringify.dtdAttType(a),n&&(this.defaultValue=this.stringify.dtdAttDefault(n)),this.defaultValueType=u}return O.prototype.toString=function(m){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(m))},O}(A)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,z,o){"use strict";(function(){var M,g,A,b=function(O,m){for(var e in m)y.call(m,e)&&(O[e]=m[e]);function f(){this.constructor=O}return f.prototype=m.prototype,O.prototype=new f,O.__super__=m.prototype,O},y={}.hasOwnProperty;A=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(C){b(O,C);function O(m,e,f){if(O.__super__.constructor.call(this,m),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());f||(f="(#PCDATA)"),Array.isArray(f)&&(f="("+f.join(",")+")"),this.name=this.stringify.name(e),this.type=M.ElementDeclaration,this.value=this.stringify.dtdElementValue(f)}return O.prototype.toString=function(m){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(m))},O}(A)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,z,o){"use strict";(function(){var M,g,A,b,y=function(m,e){for(var f in e)C.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},C={}.hasOwnProperty;b=k("./Utility").isObject,A=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(O){y(m,O);function m(e,f,a,u){if(m.__super__.constructor.call(this,e),a==null)throw new Error("Missing DTD entity name. "+this.debugInfo(a));if(u==null)throw new Error("Missing DTD entity value. "+this.debugInfo(a));if(this.pe=!!f,this.name=this.stringify.name(a),this.type=M.EntityDeclaration,!b(u))this.value=this.stringify.dtdEntityValue(u),this.internal=!0;else{if(!u.pubID&&!u.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(a));if(u.pubID&&!u.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a));if(this.internal=!1,u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID)),u.nData!=null&&(this.nData=this.stringify.dtdNData(u.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(a))}}return Object.defineProperty(m.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(m.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(m.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(m.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"xmlVersion",{get:function(){return null}}),m.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},m}(A)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,z,o){"use strict";(function(){var M,g,A,b=function(O,m){for(var e in m)y.call(m,e)&&(O[e]=m[e]);function f(){this.constructor=O}return f.prototype=m.prototype,O.prototype=new f,O.__super__=m.prototype,O},y={}.hasOwnProperty;A=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(C){b(O,C);function O(m,e,f){if(O.__super__.constructor.call(this,m),e==null)throw new Error("Missing DTD notation name. "+this.debugInfo(e));if(!f.pubID&&!f.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(e));this.name=this.stringify.name(e),this.type=M.NotationDeclaration,f.pubID!=null&&(this.pubID=this.stringify.dtdPubID(f.pubID)),f.sysID!=null&&(this.sysID=this.stringify.dtdSysID(f.sysID))}return Object.defineProperty(O.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(O.prototype,"systemId",{get:function(){return this.sysID}}),O.prototype.toString=function(m){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(m))},O}(A)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,z,o){"use strict";(function(){var M,g,A,b,y=function(m,e){for(var f in e)C.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},C={}.hasOwnProperty;b=k("./Utility").isObject,A=k("./XMLNode"),M=k("./NodeType"),z.exports=g=function(O){y(m,O);function m(e,f,a,u){var n;m.__super__.constructor.call(this,e),b(f)&&(n=f,f=n.version,a=n.encoding,u=n.standalone),f||(f="1.0"),this.type=M.Declaration,this.version=this.stringify.xmlVersion(f),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),u!=null&&(this.standalone=this.stringify.xmlStandalone(u))}return m.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},m}(A)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,z,o){"use strict";(function(){var M,g,A,b,y,C,O,m,e,f=function(n,i){for(var r in i)a.call(i,r)&&(n[r]=i[r]);function c(){this.constructor=n}return c.prototype=i.prototype,n.prototype=new c,n.__super__=i.prototype,n},a={}.hasOwnProperty;e=k("./Utility").isObject,m=k("./XMLNode"),M=k("./NodeType"),g=k("./XMLDTDAttList"),b=k("./XMLDTDEntity"),A=k("./XMLDTDElement"),y=k("./XMLDTDNotation"),O=k("./XMLNamedNodeMap"),z.exports=C=function(u){f(n,u);function n(i,r,c){var h,d,s,l,w,E;if(n.__super__.constructor.call(this,i),this.type=M.DocType,i.children){for(l=i.children,d=0,s=l.length;d<s;d++)if(h=l[d],h.type===M.Element){this.name=h.name;break}}this.documentObject=i,e(r)&&(w=r,r=w.pubID,c=w.sysID),c==null&&(E=[r,c],c=E[0],r=E[1]),r!=null&&(this.pubID=this.stringify.dtdPubID(r)),c!=null&&(this.sysID=this.stringify.dtdSysID(c))}return Object.defineProperty(n.prototype,"entities",{get:function(){var r,c,h,d,s;for(d={},s=this.children,c=0,h=s.length;c<h;c++)r=s[c],r.type===M.EntityDeclaration&&!r.pe&&(d[r.name]=r);return new O(d)}}),Object.defineProperty(n.prototype,"notations",{get:function(){var r,c,h,d,s;for(d={},s=this.children,c=0,h=s.length;c<h;c++)r=s[c],r.type===M.NotationDeclaration&&(d[r.name]=r);return new O(d)}}),Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),n.prototype.element=function(i,r){var c;return c=new A(this,i,r),this.children.push(c),this},n.prototype.attList=function(i,r,c,h,d){var s;return s=new g(this,i,r,c,h,d),this.children.push(s),this},n.prototype.entity=function(i,r){var c;return c=new b(this,!1,i,r),this.children.push(c),this},n.prototype.pEntity=function(i,r){var c;return c=new b(this,!0,i,r),this.children.push(c),this},n.prototype.notation=function(i,r){var c;return c=new y(this,i,r),this.children.push(c),this},n.prototype.toString=function(i){return this.options.writer.docType(this,this.options.writer.filterOptions(i))},n.prototype.ele=function(i,r){return this.element(i,r)},n.prototype.att=function(i,r,c,h,d){return this.attList(i,r,c,h,d)},n.prototype.ent=function(i,r){return this.entity(i,r)},n.prototype.pent=function(i,r){return this.pEntity(i,r)},n.prototype.not=function(i,r){return this.notation(i,r)},n.prototype.up=function(){return this.root()||this.documentObject},n.prototype.isEqualNode=function(i){return n.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?i.name!==this.name||i.publicId!==this.publicId?!1:!(i.systemId!==this.systemId):!1},n}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(k,z,o){"use strict";(function(){var M,g,A,b,y,C,O,m,e=function(u,n){for(var i in n)f.call(n,i)&&(u[i]=n[i]);function r(){this.constructor=u}return r.prototype=n.prototype,u.prototype=new r,u.__super__=n.prototype,u},f={}.hasOwnProperty;m=k("./Utility").isPlainObject,A=k("./XMLDOMImplementation"),g=k("./XMLDOMConfiguration"),y=k("./XMLNode"),M=k("./NodeType"),O=k("./XMLStringifier"),C=k("./XMLStringWriter"),z.exports=b=function(a){e(u,a);function u(n){u.__super__.constructor.call(this,null),this.name="#document",this.type=M.Document,this.documentURI=null,this.domConfig=new g,n||(n={}),n.writer||(n.writer=new C),this.options=n,this.stringify=new O(n)}return Object.defineProperty(u.prototype,"implementation",{value:new A}),Object.defineProperty(u.prototype,"doctype",{get:function(){var i,r,c,h;for(h=this.children,r=0,c=h.length;r<c;r++)if(i=h[r],i.type===M.DocType)return i;return null}}),Object.defineProperty(u.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(u.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(u.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].encoding:null}}),Object.defineProperty(u.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(u.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(u.prototype,"origin",{get:function(){return null}}),Object.defineProperty(u.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(u.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(u.prototype,"contentType",{get:function(){return null}}),u.prototype.end=function(n){var i;return i={},n?m(n)&&(i=n,n=this.options.writer):n=this.options.writer,n.document(this,n.filterOptions(i))},u.prototype.toString=function(n){return this.options.writer.document(this,this.options.writer.filterOptions(n))},u.prototype.createElement=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createTextNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createComment=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createCDATASection=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createProcessingInstruction=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createAttribute=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createEntityReference=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementsByTagName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.importNode=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createElementNS=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createAttributeNS=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementsByTagNameNS=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementById=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.adoptNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.renameNode=function(n,i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementsByClassName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createEvent=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createNodeIterator=function(n,i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createTreeWalker=function(n,i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u}(y)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(k,z,o){"use strict";(function(){var M,g,A,b,y,C,O,m,e,f,a,u,n,i,r,c,h,d,s,l,w,E,_,P,R={}.hasOwnProperty;P=k("./Utility"),E=P.isObject,w=P.isFunction,_=P.isPlainObject,l=P.getValue,M=k("./NodeType"),u=k("./XMLDocument"),i=k("./XMLElement"),b=k("./XMLCData"),y=k("./XMLComment"),c=k("./XMLRaw"),s=k("./XMLText"),r=k("./XMLProcessingInstruction"),f=k("./XMLDeclaration"),a=k("./XMLDocType"),C=k("./XMLDTDAttList"),m=k("./XMLDTDEntity"),O=k("./XMLDTDElement"),e=k("./XMLDTDNotation"),A=k("./XMLAttribute"),d=k("./XMLStringifier"),h=k("./XMLStringWriter"),g=k("./WriterState"),z.exports=n=function(){function x(S,v,T){var U;this.name="?xml",this.type=M.Document,S||(S={}),U={},S.writer?_(S.writer)&&(U=S.writer,S.writer=new h):S.writer=new h,this.options=S,this.writer=S.writer,this.writerOptions=this.writer.filterOptions(U),this.stringify=new d(S),this.onDataCallback=v||function(){},this.onEndCallback=T||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return x.prototype.createChildNode=function(S){var v,T,U,L,N,V,H,D;switch(S.type){case M.CData:this.cdata(S.value);break;case M.Comment:this.comment(S.value);break;case M.Element:U={},H=S.attribs;for(T in H){if(!R.call(H,T))continue;v=H[T],U[T]=v.value}this.node(S.name,U);break;case M.Dummy:this.dummy();break;case M.Raw:this.raw(S.value);break;case M.Text:this.text(S.value);break;case M.ProcessingInstruction:this.instruction(S.target,S.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+S.constructor.name)}for(D=S.children,N=0,V=D.length;N<V;N++)L=D[N],this.createChildNode(L),L.type===M.Element&&this.up();return this},x.prototype.dummy=function(){return this},x.prototype.node=function(S,v,T){var U;if(S==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(S));return this.openCurrent(),S=l(S),v==null&&(v={}),v=l(v),E(v)||(U=[v,T],T=U[0],v=U[1]),this.currentNode=new i(this,S,v),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,T!=null&&this.text(T),this},x.prototype.element=function(S,v,T){var U,L,N,V,H,D;if(this.currentNode&&this.currentNode.type===M.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(S)||E(S)||w(S))for(V=this.options.noValidation,this.options.noValidation=!0,D=new u(this.options).element("TEMP_ROOT"),D.element(S),this.options.noValidation=V,H=D.children,L=0,N=H.length;L<N;L++)U=H[L],this.createChildNode(U),U.type===M.Element&&this.up();else this.node(S,v,T);return this},x.prototype.attribute=function(S,v){var T,U;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null&&(S=l(S)),E(S))for(T in S){if(!R.call(S,T))continue;U=S[T],this.attribute(T,U)}else w(v)&&(v=v.apply()),this.options.keepNullAttributes&&v==null?this.currentNode.attribs[S]=new A(this,S,""):v!=null&&(this.currentNode.attribs[S]=new A(this,S,v));return this},x.prototype.text=function(S){var v;return this.openCurrent(),v=new s(this,S),this.onData(this.writer.text(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.cdata=function(S){var v;return this.openCurrent(),v=new b(this,S),this.onData(this.writer.cdata(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.comment=function(S){var v;return this.openCurrent(),v=new y(this,S),this.onData(this.writer.comment(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.raw=function(S){var v;return this.openCurrent(),v=new c(this,S),this.onData(this.writer.raw(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.instruction=function(S,v){var T,U,L,N,V;if(this.openCurrent(),S!=null&&(S=l(S)),v!=null&&(v=l(v)),Array.isArray(S))for(T=0,N=S.length;T<N;T++)U=S[T],this.instruction(U);else if(E(S))for(U in S){if(!R.call(S,U))continue;L=S[U],this.instruction(U,L)}else w(v)&&(v=v.apply()),V=new r(this,S,v),this.onData(this.writer.processingInstruction(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},x.prototype.declaration=function(S,v,T){var U;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return U=new f(this,S,v,T),this.onData(this.writer.declaration(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.doctype=function(S,v,T){if(this.openCurrent(),S==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 a(this,v,T),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},x.prototype.dtdElement=function(S,v){var T;return this.openCurrent(),T=new O(this,S,v),this.onData(this.writer.dtdElement(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.attList=function(S,v,T,U,L){var N;return this.openCurrent(),N=new C(this,S,v,T,U,L),this.onData(this.writer.dtdAttList(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.entity=function(S,v){var T;return this.openCurrent(),T=new m(this,!1,S,v),this.onData(this.writer.dtdEntity(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.pEntity=function(S,v){var T;return this.openCurrent(),T=new m(this,!0,S,v),this.onData(this.writer.dtdEntity(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.notation=function(S,v){var T;return this.openCurrent(),T=new e(this,S,v),this.onData(this.writer.dtdNotation(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.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},x.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},x.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},x.prototype.openNode=function(S){var v,T,U,L;if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S.type===M.Element&&(this.root=S),T="",S.type===M.Element){this.writerOptions.state=g.OpenTag,T=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<"+S.name,L=S.attribs;for(U in L){if(!R.call(L,U))continue;v=L[U],T+=this.writer.attribute(v,this.writerOptions,this.currentLevel)}T+=(S.children?">":"/>")+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=g.InsideTag}else this.writerOptions.state=g.OpenTag,T=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+S.rootNodeName,S.pubID&&S.sysID?T+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(T+=' SYSTEM "'+S.sysID+'"'),S.children?(T+=" [",this.writerOptions.state=g.InsideTag):(this.writerOptions.state=g.CloseTag,T+=">"),T+=this.writer.endline(S,this.writerOptions,this.currentLevel);return this.onData(T,this.currentLevel),S.isOpen=!0}},x.prototype.closeNode=function(S){var v;if(!S.isClosed)return v="",this.writerOptions.state=g.CloseTag,S.type===M.Element?v=this.writer.indent(S,this.writerOptions,this.currentLevel)+"</"+S.name+">"+this.writer.endline(S,this.writerOptions,this.currentLevel):v=this.writer.indent(S,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=g.None,this.onData(v,this.currentLevel),S.isClosed=!0},x.prototype.onData=function(S,v){return this.documentStarted=!0,this.onDataCallback(S,v+1)},x.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},x.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},x.prototype.ele=function(){return this.element.apply(this,arguments)},x.prototype.nod=function(S,v,T){return this.node(S,v,T)},x.prototype.txt=function(S){return this.text(S)},x.prototype.dat=function(S){return this.cdata(S)},x.prototype.com=function(S){return this.comment(S)},x.prototype.ins=function(S,v){return this.instruction(S,v)},x.prototype.dec=function(S,v,T){return this.declaration(S,v,T)},x.prototype.dtd=function(S,v,T){return this.doctype(S,v,T)},x.prototype.e=function(S,v,T){return this.element(S,v,T)},x.prototype.n=function(S,v,T){return this.node(S,v,T)},x.prototype.t=function(S){return this.text(S)},x.prototype.d=function(S){return this.cdata(S)},x.prototype.c=function(S){return this.comment(S)},x.prototype.r=function(S){return this.raw(S)},x.prototype.i=function(S,v){return this.instruction(S,v)},x.prototype.att=function(){return this.currentNode&&this.currentNode.type===M.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},x.prototype.a=function(){return this.currentNode&&this.currentNode.type===M.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},x.prototype.ent=function(S,v){return this.entity(S,v)},x.prototype.pent=function(S,v){return this.pEntity(S,v)},x.prototype.not=function(S,v){return this.notation(S,v)},x}()}).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(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},m={}.hasOwnProperty;C=k("./XMLNode"),b=k("./NodeType"),z.exports=y=function(e){O(f,e);function f(a){f.__super__.constructor.call(this,a),this.type=b.Dummy}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return""},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,O,m,e,f,a,u,n=function(c,h){for(var d in h)i.call(h,d)&&(c[d]=h[d]);function s(){this.constructor=c}return s.prototype=h.prototype,c.prototype=new s,c.__super__=h.prototype,c},i={}.hasOwnProperty;u=k("./Utility"),a=u.isObject,f=u.isFunction,e=u.getValue,m=k("./XMLNode"),b=k("./NodeType"),y=k("./XMLAttribute"),O=k("./XMLNamedNodeMap"),z.exports=C=function(r){n(c,r);function c(h,d,s){var l,w,E,_;if(c.__super__.constructor.call(this,h),d==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,s!=null&&this.attribute(s),h.type===b.Document&&(this.isRoot=!0,this.documentObject=h,h.rootObject=this,h.children)){for(_=h.children,w=0,E=_.length;w<E;w++)if(l=_[w],l.type===b.DocType){l.name=this.name;break}}}return Object.defineProperty(c.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new O(this.attribs)),this.attributeMap}}),c.prototype.clone=function(){var h,d,s,l;s=(0,g.default)(this),s.isRoot&&(s.documentObject=null),s.attribs={},l=this.attribs;for(d in l){if(!i.call(l,d))continue;h=l[d],s.attribs[d]=h.clone()}return s.children=[],this.children.forEach(function(w){var E;return E=w.clone(),E.parent=s,s.children.push(E)}),s},c.prototype.attribute=function(h,d){var s,l;if(h!=null&&(h=e(h)),a(h))for(s in h){if(!i.call(h,s))continue;l=h[s],this.attribute(s,l)}else f(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.attribs[h]=new y(this,h,""):d!=null&&(this.attribs[h]=new y(this,h,d));return this},c.prototype.removeAttribute=function(h){var d,s,l;if(h==null)throw new Error("Missing attribute name. "+this.debugInfo());if(h=e(h),Array.isArray(h))for(s=0,l=h.length;s<l;s++)d=h[s],delete this.attribs[d];else delete this.attribs[h];return this},c.prototype.toString=function(h){return this.options.writer.element(this,this.options.writer.filterOptions(h))},c.prototype.att=function(h,d){return this.attribute(h,d)},c.prototype.a=function(h,d){return this.attribute(h,d)},c.prototype.getAttribute=function(h){return this.attribs.hasOwnProperty(h)?this.attribs[h].value:null},c.prototype.setAttribute=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNode=function(h){return this.attribs.hasOwnProperty(h)?this.attribs[h]:null},c.prototype.setAttributeNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNS=function(h,d,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNodeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNodeNS=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.hasAttribute=function(h){return this.attribs.hasOwnProperty(h)},c.prototype.hasAttributeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttribute=function(h,d){return this.attribs.hasOwnProperty(h)?this.attribs[h].isId:d},c.prototype.setIdAttributeNS=function(h,d,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttributeNode=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(h){var d,s,l;if(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(h))return!1;if(h.namespaceURI!==this.namespaceURI)return!1;if(h.prefix!==this.prefix)return!1;if(h.localName!==this.localName)return!1;if(h.attribs.length!==this.attribs.length)return!1;for(d=s=0,l=this.attribs.length-1;0<=l?s<=l:s>=l;d=0<=l?++s:--s)if(!this.attribs[d].isEqualNode(h.attribs[d]))return!1;return!0},c}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/keys"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b;z.exports=b=function(){function y(C){this.nodes=C}return Object.defineProperty(y.prototype,"length",{get:function(){return(0,g.default)(this.nodes).length||0}}),y.prototype.clone=function(){return this.nodes=null},y.prototype.getNamedItem=function(C){return this.nodes[C]},y.prototype.setNamedItem=function(C){var O;return O=this.nodes[C.nodeName],this.nodes[C.nodeName]=C,O||null},y.prototype.removeNamedItem=function(C){var O;return O=this.nodes[C],delete this.nodes[C],O||null},y.prototype.item=function(C){return this.nodes[(0,g.default)(this.nodes)[C]]||null},y.prototype.getNamedItemNS=function(C,O){throw new Error("This DOM method is not implemented.")},y.prototype.setNamedItemNS=function(C){throw new Error("This DOM method is not implemented.")},y.prototype.removeNamedItemNS=function(C,O){throw new Error("This DOM method is not implemented.")},y}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(k,z,o){"use strict";(function(){var M,g,A,b,y,C,O,m,e,f,a,u,n,i,r,c,h,d,s,l={}.hasOwnProperty;s=k("./Utility"),d=s.isObject,h=s.isFunction,c=s.isEmpty,r=s.getValue,m=null,A=null,b=null,y=null,C=null,n=null,i=null,u=null,O=null,g=null,a=null,e=null,M=null,z.exports=f=function(){function w(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,m||(m=k("./XMLElement"),A=k("./XMLCData"),b=k("./XMLComment"),y=k("./XMLDeclaration"),C=k("./XMLDocType"),n=k("./XMLRaw"),i=k("./XMLText"),u=k("./XMLProcessingInstruction"),O=k("./XMLDummy"),g=k("./NodeType"),a=k("./XMLNodeList"),e=k("./XMLNamedNodeMap"),M=k("./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 a(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 _;return _=this.parent.children.indexOf(this),this.parent.children[_-1]||null}}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){var _;return _=this.parent.children.indexOf(this),this.parent.children[_+1]||null}}),Object.defineProperty(w.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(w.prototype,"textContent",{get:function(){var _,P,R,x,S;if(this.nodeType===g.Element||this.nodeType===g.DocumentFragment){for(S="",x=this.children,P=0,R=x.length;P<R;P++)_=x[P],_.textContent&&(S+=_.textContent);return S}else return null},set:function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),w.prototype.setParent=function(E){var _,P,R,x,S;for(this.parent=E,E&&(this.options=E.options,this.stringify=E.stringify),x=this.children,S=[],P=0,R=x.length;P<R;P++)_=x[P],S.push(_.setParent(this));return S},w.prototype.element=function(E,_,P){var R,x,S,v,T,U,L,N,V,H,D;if(U=null,_===null&&P==null&&(V=[{},null],_=V[0],P=V[1]),_==null&&(_={}),_=r(_),d(_)||(H=[_,P],P=H[0],_=H[1]),E!=null&&(E=r(E)),Array.isArray(E))for(S=0,L=E.length;S<L;S++)x=E[S],U=this.element(x);else if(h(E))U=this.element(E.apply());else if(d(E))for(T in E){if(!l.call(E,T))continue;if(D=E[T],h(D)&&(D=D.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&T.indexOf(this.stringify.convertAttKey)===0)U=this.attribute(T.substr(this.stringify.convertAttKey.length),D);else if(!this.options.separateArrayItems&&Array.isArray(D)&&c(D))U=this.dummy();else if(d(D)&&c(D))U=this.element(T);else if(!this.options.keepNullNodes&&D==null)U=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(D))for(v=0,N=D.length;v<N;v++)x=D[v],R={},R[T]=x,U=this.element(R);else d(D)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&T.indexOf(this.stringify.convertTextKey)===0?U=this.element(D):(U=this.element(T),U.element(D)):U=this.element(T,D)}else!this.options.keepNullNodes&&P===null?U=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&E.indexOf(this.stringify.convertTextKey)===0?U=this.text(P):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&E.indexOf(this.stringify.convertCDataKey)===0?U=this.cdata(P):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&E.indexOf(this.stringify.convertCommentKey)===0?U=this.comment(P):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&E.indexOf(this.stringify.convertRawKey)===0?U=this.raw(P):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&E.indexOf(this.stringify.convertPIKey)===0?U=this.instruction(E.substr(this.stringify.convertPIKey.length),P):U=this.node(E,_,P);if(U==null)throw new Error("Could not create any elements with: "+E+". "+this.debugInfo());return U},w.prototype.insertBefore=function(E,_,P){var R,x,S,v,T;if(E!=null?E.type:void 0)return S=E,v=_,S.setParent(this),v?(x=children.indexOf(v),T=children.splice(x),children.push(S),Array.prototype.push.apply(children,T)):children.push(S),S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return x=this.parent.children.indexOf(this),T=this.parent.children.splice(x),R=this.parent.element(E,_,P),Array.prototype.push.apply(this.parent.children,T),R},w.prototype.insertAfter=function(E,_,P){var R,x,S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return x=this.parent.children.indexOf(this),S=this.parent.children.splice(x+1),R=this.parent.element(E,_,P),Array.prototype.push.apply(this.parent.children,S),R},w.prototype.remove=function(){var E,_;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return E=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[E,E-E+1].concat(_=[])),this.parent},w.prototype.node=function(E,_,P){var R,x;return E!=null&&(E=r(E)),_||(_={}),_=r(_),d(_)||(x=[_,P],P=x[0],_=x[1]),R=new m(this,E,_),P!=null&&R.text(P),this.children.push(R),R},w.prototype.text=function(E){var _;return d(E)&&this.element(E),_=new i(this,E),this.children.push(_),this},w.prototype.cdata=function(E){var _;return _=new A(this,E),this.children.push(_),this},w.prototype.comment=function(E){var _;return _=new b(this,E),this.children.push(_),this},w.prototype.commentBefore=function(E){var _,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P),_=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,R),this},w.prototype.commentAfter=function(E){var _,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P+1),_=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,R),this},w.prototype.raw=function(E){var _;return _=new n(this,E),this.children.push(_),this},w.prototype.dummy=function(){var E;return E=new O(this),E},w.prototype.instruction=function(E,_){var P,R,x,S,v;if(E!=null&&(E=r(E)),_!=null&&(_=r(_)),Array.isArray(E))for(S=0,v=E.length;S<v;S++)P=E[S],this.instruction(P);else if(d(E))for(P in E){if(!l.call(E,P))continue;R=E[P],this.instruction(P,R)}else h(_)&&(_=_.apply()),x=new u(this,E,_),this.children.push(x);return this},w.prototype.instructionBefore=function(E,_){var P,R,x;return R=this.parent.children.indexOf(this),x=this.parent.children.splice(R),P=this.parent.instruction(E,_),Array.prototype.push.apply(this.parent.children,x),this},w.prototype.instructionAfter=function(E,_){var P,R,x;return R=this.parent.children.indexOf(this),x=this.parent.children.splice(R+1),P=this.parent.instruction(E,_),Array.prototype.push.apply(this.parent.children,x),this},w.prototype.declaration=function(E,_,P){var R,x;return R=this.document(),x=new y(R,E,_,P),R.children.length===0?R.children.unshift(x):R.children[0].type===g.Declaration?R.children[0]=x:R.children.unshift(x),R.root()||R},w.prototype.dtd=function(E,_){var P,R,x,S,v,T,U,L,N,V;for(R=this.document(),x=new C(R,E,_),N=R.children,S=v=0,U=N.length;v<U;S=++v)if(P=N[S],P.type===g.DocType)return R.children[S]=x,x;for(V=R.children,S=T=0,L=V.length;T<L;S=++T)if(P=V[S],P.isRoot)return R.children.splice(S,0,x),x;return R.children.push(x),x},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 E;for(E=this;E;){if(E.type===g.Document)return E.rootObject;if(E.isRoot)return E;E=E.parent}},w.prototype.document=function(){var E;for(E=this;E;){if(E.type===g.Document)return E;E=E.parent}},w.prototype.end=function(E){return this.document().end(E)},w.prototype.prev=function(){var E;if(E=this.parent.children.indexOf(this),E<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[E-1]},w.prototype.next=function(){var E;if(E=this.parent.children.indexOf(this),E===-1||E===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[E+1]},w.prototype.importDocument=function(E){var _;return _=E.root().clone(),_.parent=this,_.isRoot=!1,this.children.push(_),this},w.prototype.debugInfo=function(E){var _,P;return E=E||this.name,E==null&&!((_=this.parent)!=null?_.name:void 0)?"":E==null?"parent: <"+this.parent.name+">":((P=this.parent)!=null?P.name:void 0)?"node: <"+E+">, parent: <"+this.parent.name+">":"node: <"+E+">"},w.prototype.ele=function(E,_,P){return this.element(E,_,P)},w.prototype.nod=function(E,_,P){return this.node(E,_,P)},w.prototype.txt=function(E){return this.text(E)},w.prototype.dat=function(E){return this.cdata(E)},w.prototype.com=function(E){return this.comment(E)},w.prototype.ins=function(E,_){return this.instruction(E,_)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(E,_,P){return this.declaration(E,_,P)},w.prototype.e=function(E,_,P){return this.element(E,_,P)},w.prototype.n=function(E,_,P){return this.node(E,_,P)},w.prototype.t=function(E){return this.text(E)},w.prototype.d=function(E){return this.cdata(E)},w.prototype.c=function(E){return this.comment(E)},w.prototype.r=function(E){return this.raw(E)},w.prototype.i=function(E,_){return this.instruction(E,_)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(E){return this.importDocument(E)},w.prototype.replaceChild=function(E,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.appendChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasChildNodes=function(){return this.children.length!==0},w.prototype.cloneNode=function(E){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(E,_){return!0},w.prototype.hasAttributes=function(){return this.attribs.length!==0},w.prototype.compareDocumentPosition=function(E){var _,P;return _=this,_===E?0:this.document()!==E.document()?(P=M.Disconnected|M.ImplementationSpecific,Math.random()<.5?P|=M.Preceding:P|=M.Following,P):_.isAncestor(E)?M.Contains|M.Preceding:_.isDescendant(E)?M.Contains|M.Following:_.isPreceding(E)?M.Preceding:M.Following},w.prototype.isSameNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupPrefix=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isDefaultNamespace=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupNamespaceURI=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(E){var _,P,R;if(E.nodeType!==this.nodeType)return!1;if(E.children.length!==this.children.length)return!1;for(_=P=0,R=this.children.length-1;0<=R?P<=R:P>=R;_=0<=R?++P:--P)if(!this.children[_].isEqualNode(E.children[_]))return!1;return!0},w.prototype.getFeature=function(E,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setUserData=function(E,_,P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getUserData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.contains=function(E){return E?E===this||this.isDescendant(E):!1},w.prototype.isDescendant=function(E){var _,P,R,x,S;for(S=this.children,R=0,x=S.length;R<x;R++){if(_=S[R],E===_)return!0;if(P=_.isDescendant(E),P)return!0}return!1},w.prototype.isAncestor=function(E){return E.isDescendant(this)},w.prototype.isPreceding=function(E){var _,P;return _=this.treePosition(E),P=this.treePosition(this),_===-1||P===-1?!1:_<P},w.prototype.isFollowing=function(E){var _,P;return _=this.treePosition(E),P=this.treePosition(this),_===-1||P===-1?!1:_>P},w.prototype.treePosition=function(E){var _,P;return P=0,_=!1,this.foreachTreeNode(this.document(),function(R){if(P++,!_&&R===E)return _=!0}),_?P:-1},w.prototype.foreachTreeNode=function(E,_){var P,R,x,S,v;for(E||(E=this.document()),S=E.children,R=0,x=S.length;R<x;R++){if(P=S[R],v=_(P))return v;if(v=this.foreachTreeNode(P,_),v)return v}},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(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function g(A){this.nodes=A}return Object.defineProperty(g.prototype,"length",{get:function(){return this.nodes.length||0}}),g.prototype.clone=function(){return this.nodes=null},g.prototype.item=function(A){return this.nodes[A]||null},g}()}).call(void 0)},{}],275:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=C=function(e){O(f,e);function f(a,u,n){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(u),this.name=this.target,n&&(this.value=this.stringify.insValue(n))}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},f.prototype.isEqualNode=function(a){return f.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?!(a.target!==this.target):!1},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLNode"),z.exports=C=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(u)}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(k,z,o){"use strict";(function(){var M,g,A,b,y=function(m,e){for(var f in e)C.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},C={}.hasOwnProperty;M=k("./NodeType"),b=k("./XMLWriterBase"),g=k("./WriterState"),z.exports=A=function(O){y(m,O);function m(e,f){this.stream=e,m.__super__.constructor.call(this,f)}return m.prototype.endline=function(e,f,a){return e.isLastRootNode&&f.state===g.CloseTag?"":m.__super__.endline.call(this,e,f,a)},m.prototype.document=function(e,f){var a,u,n,i,r,c,h,d,s;for(h=e.children,u=n=0,r=h.length;n<r;u=++n)a=h[u],a.isLastRootNode=u===e.children.length-1;for(f=this.filterOptions(f),d=e.children,s=[],i=0,c=d.length;i<c;i++)a=d[i],s.push(this.writeChildNode(a,f,0));return s},m.prototype.attribute=function(e,f,a){return this.stream.write(m.__super__.attribute.call(this,e,f,a))},m.prototype.cdata=function(e,f,a){return this.stream.write(m.__super__.cdata.call(this,e,f,a))},m.prototype.comment=function(e,f,a){return this.stream.write(m.__super__.comment.call(this,e,f,a))},m.prototype.declaration=function(e,f,a){return this.stream.write(m.__super__.declaration.call(this,e,f,a))},m.prototype.docType=function(e,f,a){var u,n,i,r;if(a||(a=0),this.openNode(e,f,a),f.state=g.OpenTag,this.stream.write(this.indent(e,f,a)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e,f,a)),f.state=g.InsideTag,r=e.children,n=0,i=r.length;n<i;n++)u=r[n],this.writeChildNode(u,f,a+1);f.state=g.CloseTag,this.stream.write("]")}return f.state=g.CloseTag,this.stream.write(f.spaceBeforeSlash+">"),this.stream.write(this.endline(e,f,a)),f.state=g.None,this.closeNode(e,f,a)},m.prototype.element=function(e,f,a){var u,n,i,r,c,h,d,s,l,w;a||(a=0),this.openNode(e,f,a),f.state=g.OpenTag,this.stream.write(this.indent(e,f,a)+"<"+e.name),l=e.attribs;for(d in l){if(!C.call(l,d))continue;u=l[d],this.attribute(u,f,a)}if(i=e.children.length,r=i===0?null:e.children[0],i===0||e.children.every(function(E){return(E.type===M.Text||E.type===M.Raw)&&E.value===""}))f.allowEmpty?(this.stream.write(">"),f.state=g.CloseTag,this.stream.write("</"+e.name+">")):(f.state=g.CloseTag,this.stream.write(f.spaceBeforeSlash+"/>"));else if(f.pretty&&i===1&&(r.type===M.Text||r.type===M.Raw)&&r.value!=null)this.stream.write(">"),f.state=g.InsideTag,f.suppressPrettyCount++,s=!0,this.writeChildNode(r,f,a+1),f.suppressPrettyCount--,s=!1,f.state=g.CloseTag,this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.endline(e,f,a)),f.state=g.InsideTag,w=e.children,c=0,h=w.length;c<h;c++)n=w[c],this.writeChildNode(n,f,a+1);f.state=g.CloseTag,this.stream.write(this.indent(e,f,a)+"</"+e.name+">")}return this.stream.write(this.endline(e,f,a)),f.state=g.None,this.closeNode(e,f,a)},m.prototype.processingInstruction=function(e,f,a){return this.stream.write(m.__super__.processingInstruction.call(this,e,f,a))},m.prototype.raw=function(e,f,a){return this.stream.write(m.__super__.raw.call(this,e,f,a))},m.prototype.text=function(e,f,a){return this.stream.write(m.__super__.text.call(this,e,f,a))},m.prototype.dtdAttList=function(e,f,a){return this.stream.write(m.__super__.dtdAttList.call(this,e,f,a))},m.prototype.dtdElement=function(e,f,a){return this.stream.write(m.__super__.dtdElement.call(this,e,f,a))},m.prototype.dtdEntity=function(e,f,a){return this.stream.write(m.__super__.dtdEntity.call(this,e,f,a))},m.prototype.dtdNotation=function(e,f,a){return this.stream.write(m.__super__.dtdNotation.call(this,e,f,a))},m}(b)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,z,o){"use strict";(function(){var M,g,A=function(C,O){for(var m in O)b.call(O,m)&&(C[m]=O[m]);function e(){this.constructor=C}return e.prototype=O.prototype,C.prototype=new e,C.__super__=O.prototype,C},b={}.hasOwnProperty;g=k("./XMLWriterBase"),z.exports=M=function(y){A(C,y);function C(O){C.__super__.constructor.call(this,O)}return C.prototype.document=function(O,m){var e,f,a,u,n;for(m=this.filterOptions(m),u="",n=O.children,f=0,a=n.length;f<a;f++)e=n[f],u+=this.writeChildNode(e,m,0);return m.pretty&&u.slice(-m.newline.length)===m.newline&&(u=u.slice(0,-m.newline.length)),u},C}(g)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,z,o){"use strict";(function(){var M,g=function(y,C){return function(){return y.apply(C,arguments)}},A={}.hasOwnProperty;z.exports=M=function(){function b(y){this.assertLegalName=g(this.assertLegalName,this),this.assertLegalChar=g(this.assertLegalChar,this);var C,O,m;y||(y={}),this.options=y,this.options.version||(this.options.version="1.0"),O=y.stringify||{};for(C in O){if(!A.call(O,C))continue;m=O[C],this[C]=m}}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 C,O;if(this.options.noValidation)return y;if(C="",this.options.version==="1.0"){if(C=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=y.match(C))throw new Error("Invalid character in string: "+y+" at index "+O.index)}else if(this.options.version==="1.1"&&(C=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=y.match(C)))throw new Error("Invalid character in string: "+y+" at index "+O.index);return y},b.prototype.assertLegalName=function(y){var C;if(this.options.noValidation)return y;if(this.assertLegalChar(y),C=/^([: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(C))throw new Error("Invalid character in name");return y},b.prototype.textEscape=function(y){var C;return this.options.noValidation?y:(C=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(C,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},b.prototype.attEscape=function(y){var C;return this.options.noValidation?y:(C=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(C,"&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(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),g=A(M);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function n(){this.constructor=f}return n.prototype=a.prototype,f.prototype=new n,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=C=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(u)}return Object.defineProperty(f.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(f.prototype,"wholeText",{get:function(){var u,n,i;for(i="",n=this.previousSibling;n;)i=n.data+i,n=n.previousSibling;for(i+=this.data,u=this.nextSibling;u;)i=i+u.data,u=u.nextSibling;return i}}),f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},f.prototype.splitText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.replaceWholeText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(k,z,o){"use strict";(function(){var M,g,A,b,y,C,O,m,e,f,a,u,n,i,r,c,h,d={}.hasOwnProperty;h=k("./Utility").assign,M=k("./NodeType"),e=k("./XMLDeclaration"),f=k("./XMLDocType"),A=k("./XMLCData"),b=k("./XMLComment"),u=k("./XMLElement"),i=k("./XMLRaw"),r=k("./XMLText"),n=k("./XMLProcessingInstruction"),a=k("./XMLDummy"),y=k("./XMLDTDAttList"),C=k("./XMLDTDElement"),O=k("./XMLDTDEntity"),m=k("./XMLDTDNotation"),g=k("./WriterState"),z.exports=c=function(){function s(l){var w,E,_;l||(l={}),this.options=l,E=l.writer||{};for(w in E){if(!d.call(E,w))continue;_=E[w],this["_"+w]=this[w],this[w]=_}}return s.prototype.filterOptions=function(l){var w,E,_,P,R,x,S,v;return l||(l={}),l=h({},this.options,l),w={writer:this},w.pretty=l.pretty||!1,w.allowEmpty=l.allowEmpty||!1,w.indent=(E=l.indent)!=null?E:" ",w.newline=(_=l.newline)!=null?_:`
`,w.offset=(P=l.offset)!=null?P:0,w.dontPrettyTextNodes=(R=(x=l.dontPrettyTextNodes)!=null?x:l.dontprettytextnodes)!=null?R:0,w.spaceBeforeSlash=(S=(v=l.spaceBeforeSlash)!=null?v:l.spacebeforeslash)!=null?S:"",w.spaceBeforeSlash===!0&&(w.spaceBeforeSlash=" "),w.suppressPrettyCount=0,w.user={},w.state=g.None,w},s.prototype.indent=function(l,w,E){var _;return!w.pretty||w.suppressPrettyCount?"":w.pretty&&(_=(E||0)+w.offset+1,_>0)?new Array(_).join(w.indent):""},s.prototype.endline=function(l,w,E){return!w.pretty||w.suppressPrettyCount?"":w.newline},s.prototype.attribute=function(l,w,E){var _;return this.openAttribute(l,w,E),_=" "+l.name+'="'+l.value+'"',this.closeAttribute(l,w,E),_},s.prototype.cdata=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E)+"<![CDATA[",w.state=g.InsideTag,_+=l.value,w.state=g.CloseTag,_+="]]>"+this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.comment=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E)+"<!-- ",w.state=g.InsideTag,_+=l.value,w.state=g.CloseTag,_+=" -->"+this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.declaration=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E)+"<?xml",w.state=g.InsideTag,_+=' version="'+l.version+'"',l.encoding!=null&&(_+=' encoding="'+l.encoding+'"'),l.standalone!=null&&(_+=' standalone="'+l.standalone+'"'),w.state=g.CloseTag,_+=w.spaceBeforeSlash+"?>",_+=this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.docType=function(l,w,E){var _,P,R,x,S;if(E||(E=0),this.openNode(l,w,E),w.state=g.OpenTag,x=this.indent(l,w,E),x+="<!DOCTYPE "+l.root().name,l.pubID&&l.sysID?x+=' PUBLIC "'+l.pubID+'" "'+l.sysID+'"':l.sysID&&(x+=' SYSTEM "'+l.sysID+'"'),l.children.length>0){for(x+=" [",x+=this.endline(l,w,E),w.state=g.InsideTag,S=l.children,P=0,R=S.length;P<R;P++)_=S[P],x+=this.writeChildNode(_,w,E+1);w.state=g.CloseTag,x+="]"}return w.state=g.CloseTag,x+=w.spaceBeforeSlash+">",x+=this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),x},s.prototype.element=function(l,w,E){var _,P,R,x,S,v,T,U,L,N,V,H,D,W;E||(E=0),N=!1,V="",this.openNode(l,w,E),w.state=g.OpenTag,V+=this.indent(l,w,E)+"<"+l.name,H=l.attribs;for(L in H){if(!d.call(H,L))continue;_=H[L],V+=this.attribute(_,w,E)}if(R=l.children.length,x=R===0?null:l.children[0],R===0||l.children.every(function(F){return(F.type===M.Text||F.type===M.Raw)&&F.value===""}))w.allowEmpty?(V+=">",w.state=g.CloseTag,V+="</"+l.name+">"+this.endline(l,w,E)):(w.state=g.CloseTag,V+=w.spaceBeforeSlash+"/>"+this.endline(l,w,E));else if(w.pretty&&R===1&&(x.type===M.Text||x.type===M.Raw)&&x.value!=null)V+=">",w.state=g.InsideTag,w.suppressPrettyCount++,N=!0,V+=this.writeChildNode(x,w,E+1),w.suppressPrettyCount--,N=!1,w.state=g.CloseTag,V+="</"+l.name+">"+this.endline(l,w,E);else{if(w.dontPrettyTextNodes){for(D=l.children,S=0,T=D.length;S<T;S++)if(P=D[S],(P.type===M.Text||P.type===M.Raw)&&P.value!=null){w.suppressPrettyCount++,N=!0;break}}for(V+=">"+this.endline(l,w,E),w.state=g.InsideTag,W=l.children,v=0,U=W.length;v<U;v++)P=W[v],V+=this.writeChildNode(P,w,E+1);w.state=g.CloseTag,V+=this.indent(l,w,E)+"</"+l.name+">",N&&w.suppressPrettyCount--,V+=this.endline(l,w,E),w.state=g.None}return this.closeNode(l,w,E),V},s.prototype.writeChildNode=function(l,w,E){switch(l.type){case M.CData:return this.cdata(l,w,E);case M.Comment:return this.comment(l,w,E);case M.Element:return this.element(l,w,E);case M.Raw:return this.raw(l,w,E);case M.Text:return this.text(l,w,E);case M.ProcessingInstruction:return this.processingInstruction(l,w,E);case M.Dummy:return"";case M.Declaration:return this.declaration(l,w,E);case M.DocType:return this.docType(l,w,E);case M.AttributeDeclaration:return this.dtdAttList(l,w,E);case M.ElementDeclaration:return this.dtdElement(l,w,E);case M.EntityDeclaration:return this.dtdEntity(l,w,E);case M.NotationDeclaration:return this.dtdNotation(l,w,E);default:throw new Error("Unknown XML node type: "+l.constructor.name)}},s.prototype.processingInstruction=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E)+"<?",w.state=g.InsideTag,_+=l.target,l.value&&(_+=" "+l.value),w.state=g.CloseTag,_+=w.spaceBeforeSlash+"?>",_+=this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.raw=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E),w.state=g.InsideTag,_+=l.value,w.state=g.CloseTag,_+=this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.text=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E),w.state=g.InsideTag,_+=l.value,w.state=g.CloseTag,_+=this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.dtdAttList=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E)+"<!ATTLIST",w.state=g.InsideTag,_+=" "+l.elementName+" "+l.attributeName+" "+l.attributeType,l.defaultValueType!=="#DEFAULT"&&(_+=" "+l.defaultValueType),l.defaultValue&&(_+=' "'+l.defaultValue+'"'),w.state=g.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.dtdElement=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E)+"<!ELEMENT",w.state=g.InsideTag,_+=" "+l.name+" "+l.value,w.state=g.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.dtdEntity=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E)+"<!ENTITY",w.state=g.InsideTag,l.pe&&(_+=" %"),_+=" "+l.name,l.value?_+=' "'+l.value+'"':(l.pubID&&l.sysID?_+=' PUBLIC "'+l.pubID+'" "'+l.sysID+'"':l.sysID&&(_+=' SYSTEM "'+l.sysID+'"'),l.nData&&(_+=" NDATA "+l.nData)),w.state=g.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.dtdNotation=function(l,w,E){var _;return this.openNode(l,w,E),w.state=g.OpenTag,_=this.indent(l,w,E)+"<!NOTATION",w.state=g.InsideTag,_+=" "+l.name,l.pubID&&l.sysID?_+=' PUBLIC "'+l.pubID+'" "'+l.sysID+'"':l.pubID?_+=' PUBLIC "'+l.pubID+'"':l.sysID&&(_+=' SYSTEM "'+l.sysID+'"'),w.state=g.CloseTag,_+=w.spaceBeforeSlash+">"+this.endline(l,w,E),w.state=g.None,this.closeNode(l,w,E),_},s.prototype.openNode=function(l,w,E){},s.prototype.closeNode=function(l,w,E){},s.prototype.openAttribute=function(l,w,E){},s.prototype.closeAttribute=function(l,w,E){},s}()}).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(k,z,o){"use strict";(function(){var M,g,A,b,y,C,O,m,e,f;f=k("./Utility"),m=f.assign,e=f.isFunction,A=k("./XMLDOMImplementation"),b=k("./XMLDocument"),y=k("./XMLDocumentCB"),O=k("./XMLStringWriter"),C=k("./XMLStreamWriter"),M=k("./NodeType"),g=k("./WriterState"),z.exports.create=function(a,u,n,i){var r,c;if(a==null)throw new Error("Root element needs a name.");return i=m({},u,n,i),r=new b(i),c=r.element(a),i.headless||(r.declaration(i),(i.pubID!=null||i.sysID!=null)&&r.dtd(i)),c},z.exports.begin=function(a,u,n){var i;return e(a)&&(i=[a,u],u=i[0],n=i[1],a={}),u?new y(a,u,n):new b(a)},z.exports.stringWriter=function(a){return new O(a)},z.exports.streamWriter=function(a,u){return new C(a,u)},z.exports.implementation=new A,z.exports.nodeType=M,z.exports.writerState=g}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(k,z,o){z.exports=g;var M=Object.prototype.hasOwnProperty;function g(){for(var A={},b=0;b<arguments.length;b++){var y=arguments[b];for(var C in y)M.call(y,C)&&(A[C]=y[C])}return A}},{}],284:[function(k,z,o){"use strict";var M=k("buffer").Buffer,g=k("./sha"),A=k("./md5"),b={sha1:g,md5:A},y=64,C=M.alloc(y);C.fill(0);function O(f,a,u){M.isBuffer(a)||(a=M.from(a)),M.isBuffer(u)||(u=M.from(u)),a.length>y?a=f(a):a.length<y&&(a=M.concat([a,C],y));for(var n=M.alloc(y),i=M.alloc(y),r=0;r<y;r++)n[r]=a[r]^54,i[r]=a[r]^92;var c=f(M.concat([n,u]));return f(M.concat([i,c]))}function m(f,a){f=f||"sha1";var u=b[f],n=[],i=0;return u||e("algorithm:",f,"is not yet supported"),{update:function(c){return M.isBuffer(c)||(c=M.from(c)),n.push(c),i+=c.length,this},digest:function(c){var h=M.concat(n),d=a?O(u,a,h):u(h);return n=null,c?d.toString(c):d}}}function e(){var f=[].slice.call(arguments).join(" ");throw new Error([f,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}o.createHash=function(f){return m(f)},o.createHmac=function(f,a){return m(f,a)},o.createCredentials=function(){e("sorry,createCredentials is not implemented yet")},o.createCipher=function(){e("sorry,createCipher is not implemented yet")},o.createCipheriv=function(){e("sorry,createCipheriv is not implemented yet")},o.createDecipher=function(){e("sorry,createDecipher is not implemented yet")},o.createDecipheriv=function(){e("sorry,createDecipheriv is not implemented yet")},o.createSign=function(){e("sorry,createSign is not implemented yet")},o.createVerify=function(){e("sorry,createVerify is not implemented yet")},o.createDiffieHellman=function(){e("sorry,createDiffieHellman is not implemented yet")},o.pbkdf2=function(){e("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(k,z,o){"use strict";var M=k("buffer").Buffer,g=4,A=M.alloc(g);A.fill(0);var b=8;function y(m,e){if(m.length%g!==0){var f=m.length+(g-m.length%g);m=M.concat([m,A],f)}for(var a=[],u=e?m.readInt32BE:m.readInt32LE,n=0;n<m.length;n+=g)a.push(u.call(m,n));return a}function C(m,e,f){for(var a=M.alloc(e),u=f?a.writeInt32BE:a.writeInt32LE,n=0;n<m.length;n++)u.call(a,m[n],n*4,!0);return a}function O(m,e,f,a){M.isBuffer(m)||(m=M.from(m));var u=e(y(m,a),m.length*b);return C(u,f,a)}z.exports={hash:O}},{buffer:73}],286:[function(k,z,o){"use strict";var M=k("./helpers");function g(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function A(a,u){a[u>>5]|=128<<u%32,a[(u+64>>>9<<4)+14]=u;for(var n=1732584193,i=-271733879,r=-1732584194,c=271733878,h=0;h<a.length;h+=16){var d=n,s=i,l=r,w=c;n=y(n,i,r,c,a[h+0],7,-680876936),c=y(c,n,i,r,a[h+1],12,-389564586),r=y(r,c,n,i,a[h+2],17,606105819),i=y(i,r,c,n,a[h+3],22,-1044525330),n=y(n,i,r,c,a[h+4],7,-176418897),c=y(c,n,i,r,a[h+5],12,1200080426),r=y(r,c,n,i,a[h+6],17,-1473231341),i=y(i,r,c,n,a[h+7],22,-45705983),n=y(n,i,r,c,a[h+8],7,1770035416),c=y(c,n,i,r,a[h+9],12,-1958414417),r=y(r,c,n,i,a[h+10],17,-42063),i=y(i,r,c,n,a[h+11],22,-1990404162),n=y(n,i,r,c,a[h+12],7,1804603682),c=y(c,n,i,r,a[h+13],12,-40341101),r=y(r,c,n,i,a[h+14],17,-1502002290),i=y(i,r,c,n,a[h+15],22,1236535329),n=C(n,i,r,c,a[h+1],5,-165796510),c=C(c,n,i,r,a[h+6],9,-1069501632),r=C(r,c,n,i,a[h+11],14,643717713),i=C(i,r,c,n,a[h+0],20,-373897302),n=C(n,i,r,c,a[h+5],5,-701558691),c=C(c,n,i,r,a[h+10],9,38016083),r=C(r,c,n,i,a[h+15],14,-660478335),i=C(i,r,c,n,a[h+4],20,-405537848),n=C(n,i,r,c,a[h+9],5,568446438),c=C(c,n,i,r,a[h+14],9,-1019803690),r=C(r,c,n,i,a[h+3],14,-187363961),i=C(i,r,c,n,a[h+8],20,1163531501),n=C(n,i,r,c,a[h+13],5,-1444681467),c=C(c,n,i,r,a[h+2],9,-51403784),r=C(r,c,n,i,a[h+7],14,1735328473),i=C(i,r,c,n,a[h+12],20,-1926607734),n=O(n,i,r,c,a[h+5],4,-378558),c=O(c,n,i,r,a[h+8],11,-2022574463),r=O(r,c,n,i,a[h+11],16,1839030562),i=O(i,r,c,n,a[h+14],23,-35309556),n=O(n,i,r,c,a[h+1],4,-1530992060),c=O(c,n,i,r,a[h+4],11,1272893353),r=O(r,c,n,i,a[h+7],16,-155497632),i=O(i,r,c,n,a[h+10],23,-1094730640),n=O(n,i,r,c,a[h+13],4,681279174),c=O(c,n,i,r,a[h+0],11,-358537222),r=O(r,c,n,i,a[h+3],16,-722521979),i=O(i,r,c,n,a[h+6],23,76029189),n=O(n,i,r,c,a[h+9],4,-640364487),c=O(c,n,i,r,a[h+12],11,-421815835),r=O(r,c,n,i,a[h+15],16,530742520),i=O(i,r,c,n,a[h+2],23,-995338651),n=m(n,i,r,c,a[h+0],6,-198630844),c=m(c,n,i,r,a[h+7],10,1126891415),r=m(r,c,n,i,a[h+14],15,-1416354905),i=m(i,r,c,n,a[h+5],21,-57434055),n=m(n,i,r,c,a[h+12],6,1700485571),c=m(c,n,i,r,a[h+3],10,-1894986606),r=m(r,c,n,i,a[h+10],15,-1051523),i=m(i,r,c,n,a[h+1],21,-2054922799),n=m(n,i,r,c,a[h+8],6,1873313359),c=m(c,n,i,r,a[h+15],10,-30611744),r=m(r,c,n,i,a[h+6],15,-1560198380),i=m(i,r,c,n,a[h+13],21,1309151649),n=m(n,i,r,c,a[h+4],6,-145523070),c=m(c,n,i,r,a[h+11],10,-1120210379),r=m(r,c,n,i,a[h+2],15,718787259),i=m(i,r,c,n,a[h+9],21,-343485551),n=e(n,d),i=e(i,s),r=e(r,l),c=e(c,w)}return Array(n,i,r,c)}function b(a,u,n,i,r,c){return e(f(e(e(u,a),e(i,c)),r),n)}function y(a,u,n,i,r,c,h){return b(u&n|~u&i,a,u,r,c,h)}function C(a,u,n,i,r,c,h){return b(u&i|n&~i,a,u,r,c,h)}function O(a,u,n,i,r,c,h){return b(u^n^i,a,u,r,c,h)}function m(a,u,n,i,r,c,h){return b(n^(u|~i),a,u,r,c,h)}function e(a,u){var n=(a&65535)+(u&65535),i=(a>>16)+(u>>16)+(n>>16);return i<<16|n&65535}function f(a,u){return a<<u|a>>>32-u}z.exports=function(u){return M.hash(u,A,16)}},{"./helpers":285}],287:[function(k,z,o){"use strict";var M=k("./helpers");function g(O,m){O[m>>5]|=128<<24-m%32,O[(m+64>>9<<4)+15]=m;for(var e=Array(80),f=1732584193,a=-271733879,u=-1732584194,n=271733878,i=-1009589776,r=0;r<O.length;r+=16){for(var c=f,h=a,d=u,s=n,l=i,w=0;w<80;w++){w<16?e[w]=O[r+w]:e[w]=C(e[w-3]^e[w-8]^e[w-14]^e[w-16],1);var E=y(y(C(f,5),A(w,a,u,n)),y(y(i,e[w]),b(w)));i=n,n=u,u=C(a,30),a=f,f=E}f=y(f,c),a=y(a,h),u=y(u,d),n=y(n,s),i=y(i,l)}return Array(f,a,u,n,i)}function A(O,m,e,f){return O<20?m&e|~m&f:O<40?m^e^f:O<60?m&e|m&f|e&f:m^e^f}function b(O){return O<20?1518500249:O<40?1859775393:O<60?-1894007588:-899497514}function y(O,m){var e=(O&65535)+(m&65535),f=(O>>16)+(m>>16)+(e>>16);return f<<16|e&65535}function C(O,m){return O<<m|O>>>32-m}z.exports=function(m){return M.hash(m,g,20,!0)}},{"./helpers":285}],288:[function(k,z,o){"use strict";z.exports=function(){return function(){}}},{}],289:[function(k,z,o){(function(M){"use strict";var g=k("babel-runtime/helpers/typeof"),A=b(g);function b(f){return f&&f.__esModule?f:{default:f}}var y=k("stream"),C=y.Stream,O=k("../lib/common/utils/isArray"),m=O.isArray;z.exports.string=function(a){return typeof a=="string"},z.exports.array=m,z.exports.buffer=M.isBuffer;function e(f){return f instanceof C}z.exports.writableStream=function(a){return e(a)&&typeof a._write=="function"&&(0,A.default)(a._writableState)==="object"}}).call(this,{isBuffer:k("../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(k,z,o){"use strict";o.encodeURIComponent=function(M){try{return encodeURIComponent(M)}catch(g){return M}},o.escape=k("escape-html"),o.timestamp=function(g){if(g){var A=g;return typeof A=="string"&&(A=Number(A)),String(g).length===10&&(A*=1e3),new Date(A)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,z,o){(function(M,g){"use strict";var A=k("babel-runtime/core-js/json/stringify"),b=O(A),y=k("babel-runtime/helpers/typeof"),C=O(y);function O(w){return w&&w.__esModule?w:{default:w}}var m=k("util"),e=k("url"),f=k("http"),a=k("https"),u=k("debug")("urllib"),n=k("humanize-ms"),i,r=0,c=Math.pow(2,31)-10,h=/^https?:\/\//i;function d(w,E){return w===void 0?E:w}function s(w,E){return function(_,P,R){if(_)return E(_);w({data:P,status:R.statusCode,headers:R.headers,res:R})}}o.TIMEOUTS=[n("300s"),n("300s")];var l=["json","text"];o.request=function(E,_,P){return arguments.length===2&&typeof _=="function"&&(P=_,_=null),typeof P=="function"?o.requestWithCallback(E,_,P):(i||(i=k("any-promise")),new i(function(R,x){o.requestWithCallback(E,_,s(R,x))}))},o.requestWithCallback=function(E,_,P){if(!E||typeof E!="string"&&(typeof E=="undefined"?"undefined":(0,C.default)(E))!=="object"){var R=m.format("expect request url to be a string or a http request options, but got %j",E);throw new Error(R)}arguments.length===2&&typeof _=="function"&&(P=_,_=null),_=_||{},r>=c&&(r=0);var x=++r;_.requestUrls=_.requestUrls||[];var S={requestId:x,url:E,args:_,ctx:_.ctx};_.emitter&&_.emitter.emit("request",S),_.timeout=_.timeout||o.TIMEOUTS,_.maxRedirects=_.maxRedirects||10,_.streaming=_.streaming||_.customResponse;var v=Date.now(),T;typeof E=="string"?(h.test(E)||(E="http://"+E),T=e.parse(E)):T=E;var U=(_.type||_.method||T.method||"GET").toUpperCase(),L=T.port||80,N=f,V=d(_.agent,o.agent),H=_.fixJSONCtlChars;T.protocol==="https:"&&(N=a,V=d(_.httpsAgent,o.httpsAgent),T.port||(L=443));var D={host:T.hostname||T.host||"localhost",path:T.path||"/",method:U,port:L,agent:V,headers:_.headers||{},lookup:_.lookup};Array.isArray(_.timeout)?D.requestTimeout=_.timeout[_.timeout.length-1]:typeof _.timeout!="undefined"&&(D.requestTimeout=_.timeout);for(var W=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],F=0;F<W.length;F++){var I=W[F];_.hasOwnProperty(I)&&(D[I]=_[I])}D.rejectUnauthorized===!1&&!D.hasOwnProperty("secureOptions")&&(D.secureOptions=k("constants").SSL_OP_NO_TLSv1_2);var K=_.auth||T.auth;K&&(D.auth=K);var ee=_.content||_.data,he=U==="GET"||U==="HEAD"||_.dataAsQueryString;if(!_.content&&(ee&&!(typeof ee=="string"||g.isBuffer(ee))))if(he)ee=_.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee);else{var de=D.headers["Content-Type"]||D.headers["content-type"];de||(_.contentType==="json"?de="application/json":de="application/x-www-form-urlencoded",D.headers["Content-Type"]=de),parseContentType(de).type==="application/json"?ee=(0,b.default)(ee):ee=_.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee)}he&&ee&&(D.path+=(T.query?"&":"?")+ee,ee=null);var Se=0;if(ee){var Te=ee.length;g.isBuffer(ee)||(Te=g.byteLength(ee)),Se=D.headers["Content-Length"]=Te}_.dataType==="json"&&(D.headers.Accept="application/json"),typeof _.beforeRequest=="function"&&_.beforeRequest(D);var ce=null,be=null,ye=null,ue=!1,se=!1,$=0,me=-1,re=!1,ae="",Oe="",le=null;_.timing&&(le={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function te(){ce&&(clearTimeout(ce),ce=null)}function Q(){be&&(clearTimeout(be),be=null)}function J(Ue,pt,Ut){if(Q(),!P){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),x,M.pid,D.method,E),Ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),x,M.pid,Ue.name,Ue.message,Ue.stack);return}var Et=P;P=null;var jt={};if(Ut&&(me=Ut.statusCode,jt=Ut.headers),me===401&&jt["www-authenticate"]&&(!_.headers||!_.headers.Authorization)&&_.digestAuth){var Ze=jt["www-authenticate"];if(Ze.indexOf("Digest ")>=0)return u("Request#%d %s: got digest auth header WWW-Authenticate: %s",x,E,Ze),_.headers=_.headers||{},_.headers.Authorization=digestAuthHeader(D.method,D.path,Ze,_.digestAuth),u("Request#%d %s: auth with digest header: %s",x,E,_.headers.Authorization),Ut.headers["set-cookie"]&&(_.headers.Cookie=Ut.headers["set-cookie"].join(";")),o.requestWithCallback(E,_,Et)}var Be=Date.now()-v;le&&(le.contentDownload=Be),u("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Be,$,me,D.method,D.host,D.path,se,le);var Ye={status:me,statusCode:me,headers:jt,size:$,aborted:re,rt:Be,keepAliveSocket:se,data:pt,requestUrls:_.requestUrls,timing:le,remoteAddress:ae,remotePort:Oe};if(Ue){var Ce="";V&&typeof V.getCurrentStatus=="function"&&(Ce=", agent status: "+(0,b.default)(V.getCurrentStatus())),Ue.message+=", "+D.method+" "+E+" "+me+" (connected: "+ue+", keepalive socket: "+se+Ce+`)
headers: `+(0,b.default)(jt),Ue.data=pt,Ue.path=D.path,Ue.status=me,Ue.headers=jt,Ue.res=Ye}Et(Ue,pt,_.streaming?Ut:Ye),_.emitter&&(S.url=E,S.socket=_t&&_t.connection,S.options=D,S.size=Se,_.emitter.emit("response",{requestId:x,error:Ue,ctx:_.ctx,req:S,res:Ye}))}function ve(Ue){var pt=null;if(_.followRedirect&&statuses.redirect[Ue.statusCode]){_._followRedirectCount=(_._followRedirectCount||0)+1;var Ut=Ue.headers.location;if(!Ut)pt=new Error("Got statusCode "+Ue.statusCode+" but cannot resolve next location from headers"),pt.name="FollowRedirectError";else if(_._followRedirectCount>_.maxRedirects)pt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+E),pt.name="MaxRedirectError";else{var Et=_.formatRedirectUrl?_.formatRedirectUrl(E,Ut):e.resolve(E,Ut);u("Request#%d %s: `redirected` from %s to %s",x,D.path,E,Et),Q(),_.headers&&_.headers.Host&&h.test(Ut)&&(_.headers.Host=null);var jt=P;return P=null,o.requestWithCallback(Et,_,jt),{redirect:!0,error:null}}}return{redirect:!1,error:pt}}!D.headers["User-Agent"]&&!D.headers["user-agent"]&&(D.headers["User-Agent"]=navigator.userAgent),_.gzip&&(!D.headers["Accept-Encoding"]&&!D.headers["accept-encoding"]&&(D.headers["Accept-Encoding"]="gzip"));function _e(Ue,pt,Ut){var Et=Ue.headers["content-encoding"];return Ut(null,pt,Et)}var Ae=_.writeStream;u("Request#%d %s %s with headers %j, options.path: %s",x,U,E,D.headers,D.path),_.requestUrls.push(E);function Je(Ue){if(le&&(le.waiting=Date.now()-v),u("Request#%d %s `req response` event emit: status %d, headers: %j",x,E,Ue.statusCode,Ue.headers),_.streaming){var pt=ve(Ue);if(pt.redirect){Ue.resume();return}return pt.error?(Ue.resume(),J(pt.error,null,Ue)):J(null,null,Ue)}if(Ue.on("close",function(){u("Request#%d %s: `res close` event emit, total size %d",x,E,$)}),Ue.on("error",function(){u("Request#%d %s: `res error` event emit, total size %d",x,E,$)}),Ue.on("aborted",function(){re=!0,u("Request#%d %s: `res aborted` event emit, total size %d",x,E,$)}),Ae){var pt=ve(Ue);if(pt.redirect){Ue.resume();return}return pt.error?(Ue.resume(),Ae.end(),J(pt.error,null,Ue)):(_.consumeWriteStream===!1?Ue.on("end",J.bind(null,null,null,Ue)):isNode010||isNode012?first([[Ae,"close"],[Ue,"aborted"]],function(jt,Ze,Be){u("Request#%d %s: writeStream or res %s event emitted",x,E,Be),J(ye||null,null,Ue)}):Ae.on("close",function(){u("Request#%d %s: writeStream close event emitted",x,E),J(ye||null,null,Ue)}),Ue.pipe(Ae))}var Ut=[];Ue.on("data",function(Et){u("Request#%d %s: `res data` event emit, size %d",x,E,Et.length),$+=Et.length,Ut.push(Et)}),Ue.on("end",function(){var Et=g.concat(Ut,$);if(u("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",x,E,$,Ue._dumped),ye)return J(ye,Et,Ue);var jt=ve(Ue);if(jt.error)return J(jt.error,Et,Ue);if(jt.redirect)return;_e(Ue,Et,function(Ze,Be,Ye){if(Ze)return J(Ze,Et,Ue);if(!Ye&&l.indexOf(_.dataType)>=0){try{Be=decodeBodyByCharset(Be,Ue)}catch(Le){return u("decodeBodyByCharset error: %s",Le),J(null,Be,Ue)}if(_.dataType==="json")if($===0)Be=null;else{var Ce=parseJSON(Be,H);Ce.error?Ze=Ce.error:Be=Ce.data}}re&&u("Request#%d %s: Remote socket was terminated before `response.end()` was called",x,E),J(Ze,Be,Ue)})})}var tt,ut;Array.isArray(_.timeout)?(tt=n(_.timeout[0]),ut=n(_.timeout[1])):tt=ut=n(_.timeout),u("ConnectTimeout: %d, ResponseTimeout: %d",tt,ut);function ht(){u("Connect timer ticking, timeout: %d",tt),ce=setTimeout(function(){ce=null,me===-1&&(me=-2);var Ue="Connect timeout for "+tt+"ms",pt="ConnectionTimeoutError";_t.socket||(pt="SocketAssignTimeoutError",Ue+=", working sockets is full"),ye=new Error(Ue),ye.name=pt,ye.requestId=x,u("ConnectTimeout: Request#%d %s %s: %s, connected: %s",x,E,ye.name,Ue,ue),Ve()},tt)}function vt(){u("Response timer ticking, timeout: %d",ut),be=setTimeout(function(){be=null;var Ue="Response timeout for "+ut+"ms",pt="ResponseTimeoutError";ye=new Error(Ue),ye.name=pt,ye.requestId=x,u("ResponseTimeout: Request#%d %s %s: %s, connected: %s",x,E,ye.name,Ue,ue),Ve()},ut)}var _t;D.mode=_.mode?_.mode:"";try{_t=N.request(D,Je)}catch(Ue){return J(Ue)}typeof window=="undefined"?ht():_t.on("requestTimeout",function(){me===-1&&(me=-2);var Ue="Connect timeout for "+tt+"ms",pt="ConnectionTimeoutError";ye=new Error(Ue),ye.name=pt,ye.requestId=x,Ve()});function Ve(){u("Request#%d %s abort, connected: %s",x,E,ue),_t.socket||(ye.noSocket=!0,J(ye)),_t.abort()}return le&&_t.on("finish",function(){le.requestSent=Date.now()-v}),_t.once("socket",function(Ue){le&&(le.queuing=Date.now()-v),isNode010&&Ue.socket&&(Ue=Ue.socket);var pt=Ue.readyState;if(pt==="opening"){Ue.once("lookup",function(Ut,Et,jt){u("Request#%d %s lookup: %s, %s, %s",x,E,Ut,Et,jt),le&&(le.dnslookup=Date.now()-v),Et&&(ae=Et)}),Ue.once("connect",function(){le&&(le.connected=Date.now()-v),te(),vt(),u("Request#%d %s new socket connected",x,E),ue=!0,ae||(ae=Ue.remoteAddress),Oe=Ue.remotePort});return}u("Request#%d %s reuse socket connected, readyState: %s",x,E,pt),ue=!0,se=!0,ae||(ae=Ue.remoteAddress),Oe=Ue.remotePort,te(),vt()}),_t.on("error",function(Ue){(Ue.name==="Error"||Ue.name==="TypeError")&&(Ue.name=ue?"ResponseError":"RequestError"),Ue.message+=' (req "error")',u("Request#%d %s `req error` event emit, %s: %s",x,E,Ue.name,Ue.message),J(ye||Ue)}),Ae&&Ae.once("error",function(Ue){Ue.message+=' (writeStream "error")',ye=Ue,u("Request#%d %s `writeStream error` event emit, %s: %s",x,E,Ue.name,Ue.message),Ve()}),_.stream?(_.stream.pipe(_t),_.stream.once("error",function(Ue){Ue.message+=' (stream "error")',ye=Ue,u("Request#%d %s `readStream error` event emit, %s: %s",x,E,Ue.name,Ue.message),Ve()})):_t.end(ee),_t.requestId=x,_t}}).call(this,k("_process"),k("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(k,z,o){"use strict";o.d(z,"a",function(){return m});var M=o("q1tI"),g=o("biw7"),A=o("fyJ8");function b(e){var f=e.className,a=e.index,u=e.children,n=e.colSpan,i=e.rowSpan,r=M.useContext(g.a),c=r.prefixCls,h=r.fixedInfoList,d=h[a];return M.createElement(A.a,Object.assign({className:f,index:a,component:"td",prefixCls:c,record:null,dataIndex:null,render:function(){return{children:u,props:{colSpan:n,rowSpan:i}}}},d))}function y(e){return M.createElement("tr",Object.assign({},e))}function C(e){var f=e.children,a=M.useContext(g.a),u=a.prefixCls;return M.createElement("tfoot",{className:"".concat(u,"-summary")},f)}var O=z.b=C,m={Cell:b,Row:y}},nEHx:function(k,z,o){"use strict";o.d(z,"a",function(){return M});var M;(function(g){g.DARK="dark",g.LIGHT="light",g.HIGH_CONTRAST="hc"})(M||(M={}))},nKGa:function(k,z,o){k.exports=o.p+"static/export_exercise-template.f7655c19.png"},ngQI:function(k,z,o){"use strict";o.d(z,"a",function(){return jl}),o.d(z,"b",function(){return Dl}),o.d(z,"c",function(){return Rl});var M=o("q1tI"),g=o.n(M),A=o("dI71"),b=o("wx14"),y=o("ANjH"),C=o("/MKj");function O(Y,Z){if(Y.length!==Z.length)return!1;for(var ie=0;ie<Y.length;ie++)if(Y[ie]!==Z[ie])return!1;return!0}function m(Y,Z){var ie=Object(M.useState)(function(){return{inputs:Z,result:Y()}})[0],Ee=Object(M.useRef)(!0),Ne=Object(M.useRef)(ie),ke=Ee.current||Boolean(Z&&Ne.current.inputs&&O(Z,Ne.current.inputs)),Ge=ke?Ne.current:{inputs:Z,result:Y()};return Object(M.useEffect)(function(){Ee.current=!1,Ne.current=Ge},[Ge]),Ge.result}function e(Y,Z){return m(function(){return Y},Z)}var f=m,a=e,u=o("9R94"),n=function(Z){var ie=Z.top,Ee=Z.right,Ne=Z.bottom,ke=Z.left,Ge=Ee-ke,ze=Ne-ie,xt={top:ie,right:Ee,bottom:Ne,left:ke,width:Ge,height:ze,x:ke,y:ie,center:{x:(Ee+ke)/2,y:(Ne+ie)/2}};return xt},i=function(Z,ie){return{top:Z.top-ie.top,left:Z.left-ie.left,bottom:Z.bottom+ie.bottom,right:Z.right+ie.right}},r=function(Z,ie){return{top:Z.top+ie.top,left:Z.left+ie.left,bottom:Z.bottom-ie.bottom,right:Z.right-ie.right}},c=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},h={top:0,right:0,bottom:0,left:0},d=function(Z){var ie=Z.borderBox,Ee=Z.margin,Ne=Ee===void 0?h:Ee,ke=Z.border,Ge=ke===void 0?h:ke,ze=Z.padding,xt=ze===void 0?h:ze,kt=n(i(ie,Ne)),Bt=n(r(ie,Ge)),Tt=n(r(Bt,xt));return{marginBox:kt,borderBox:n(ie),paddingBox:Bt,contentBox:Tt,margin:Ne,border:Ge,padding:xt}},s=function(Z){var ie=Z.slice(0,-2),Ee=Z.slice(-2);if(Ee!=="px")return 0;var Ne=Number(ie);return isNaN(Ne)&&Object(u.a)(!1),Ne},l=function(){return{x:window.pageXOffset,y:window.pageYOffset}},w=function(Z,ie){var Ee=Z.borderBox,Ne=Z.border,ke=Z.margin,Ge=Z.padding,ze=c(Ee,ie);return d({borderBox:ze,border:Ne,margin:ke,padding:Ge})},E=function(Z,ie){return ie===void 0&&(ie=l()),w(Z,ie)},_=function(Z,ie){var Ee={top:s(ie.marginTop),right:s(ie.marginRight),bottom:s(ie.marginBottom),left:s(ie.marginLeft)},Ne={top:s(ie.paddingTop),right:s(ie.paddingRight),bottom:s(ie.paddingBottom),left:s(ie.paddingLeft)},ke={top:s(ie.borderTopWidth),right:s(ie.borderRightWidth),bottom:s(ie.borderBottomWidth),left:s(ie.borderLeftWidth)};return d({borderBox:Z,margin:Ee,padding:Ne,border:ke})},P=function(Z){var ie=Z.getBoundingClientRect(),Ee=window.getComputedStyle(Z);return _(ie,Ee)},R=Number.isNaN||function(Z){return typeof Z=="number"&&Z!==Z};function x(Y,Z){return Y===Z?!0:!!(R(Y)&&R(Z))}function S(Y,Z){if(Y.length!==Z.length)return!1;for(var ie=0;ie<Y.length;ie++)if(!x(Y[ie],Z[ie]))return!1;return!0}function v(Y,Z){Z===void 0&&(Z=S);var ie,Ee=[],Ne,ke=!1;function Ge(){for(var ze=[],xt=0;xt<arguments.length;xt++)ze[xt]=arguments[xt];return ke&&ie===this&&Z(ze,Ee)||(Ne=Y.apply(this,ze),ke=!0,ie=this,Ee=ze),Ne}return Ge}var T=v,U=function(Z){var ie=[],Ee=null,Ne=function(){for(var Ge=arguments.length,ze=new Array(Ge),xt=0;xt<Ge;xt++)ze[xt]=arguments[xt];if(ie=ze,Ee)return;Ee=requestAnimationFrame(function(){Ee=null,Z.apply(void 0,ie)})};return Ne.cancel=function(){if(!Ee)return;cancelAnimationFrame(Ee),Ee=null},Ne},L=U,N=o("i8i4"),V=o.n(N),H=!0,D=/[ \t]{2,}/g,W=/^[ \t]*/gm,F=function(Z){return Z.replace(D," ").replace(W,"").trim()},I=function(Z){return F(`
%creact-beautiful-dnd
%c`+F(Z)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},K=function(Z){return[I(Z),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ee="__react-beautiful-dnd-disable-dev-warnings";function he(Y,Z){var ie;if(H)return;if(typeof window!="undefined"&&window[ee])return;(ie=console)[Y].apply(ie,K(Z))}var de=he.bind(null,"warn"),Se=he.bind(null,"error");function Te(){}function ce(Y,Z){return Object(b.a)({},Y,{},Z)}function be(Y,Z,ie){var Ee=Z.map(function(Ne){var ke=ce(ie,Ne.options);return Y.addEventListener(Ne.eventName,Ne.fn,ke),function(){Y.removeEventListener(Ne.eventName,Ne.fn,ke)}});return function(){Ee.forEach(function(ke){ke()})}}var ye=!0,ue="Invariant failed";function se(Y){this.message=Y}se.prototype.toString=function(){return this.message};function $(Y,Z){if(Y)return;throw ye?new se(ue):new se(ue+": "+(Z||""))}var me=function(Y){Object(A.a)(Z,Y);function Z(){for(var Ee,Ne=arguments.length,ke=new Array(Ne),Ge=0;Ge<Ne;Ge++)ke[Ge]=arguments[Ge];return Ee=Y.call.apply(Y,[this].concat(ke))||this,Ee.callbacks=null,Ee.unbind=Te,Ee.onWindowError=function(ze){var xt=Ee.getCallbacks();xt.isDragging()&&xt.tryAbort();var kt=ze.error;kt instanceof se&&ze.preventDefault()},Ee.getCallbacks=function(){if(!Ee.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Ee.callbacks},Ee.setCallbacks=function(ze){Ee.callbacks=ze},Ee}var ie=Z.prototype;return ie.componentDidMount=function(){this.unbind=be(window,[{eventName:"error",fn:this.onWindowError}])},ie.componentWillUnmount=function(){this.unbind()},ie.componentDidCatch=function(Ne){if(Ne instanceof se){this.setState({});return}throw Ne},ie.render=function(){return this.props.children(this.setCallbacks)},Z}(g.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
`,ae=function(Z){return Z+1},Oe=function(Z){return`
You have lifted an item in position `+ae(Z.source.index)+`
`},le=function(Z,ie){var Ee=Z.droppableId===ie.droppableId,Ne=ae(Z.index),ke=ae(ie.index);return Ee?`
You have moved the item from position `+Ne+`
to position `+ke+`
`:`
You have moved the item from position `+Ne+`
in list `+Z.droppableId+`
to list `+ie.droppableId+`
in position `+ke+`
`},te=function(Z,ie,Ee){var Ne=ie.droppableId===Ee.droppableId;return Ne?`
The item `+Z+`
has been combined with `+Ee.draggableId:`
The item `+Z+`
in list `+ie.droppableId+`
has been combined with `+Ee.draggableId+`
in list `+Ee.droppableId+`
`},Q=function(Z){var ie=Z.destination;if(ie)return le(Z.source,ie);var Ee=Z.combine;return Ee?te(Z.draggableId,Z.source,Ee):"You are over an area that cannot be dropped on"},J=function(Z){return`
The item has returned to its starting position
of `+ae(Z.index)+`
`},ve=function(Z){if(Z.reason==="CANCEL")return`
Movement cancelled.
`+J(Z.source)+`
`;var ie=Z.destination,Ee=Z.combine;return ie?`
You have dropped the item.
`+le(Z.source,ie)+`
`:Ee?`
You have dropped the item.
`+te(Z.draggableId,Z.source,Ee)+`
`:`
The item has been dropped while not over a drop area.
`+J(Z.source)+`
`},_e={dragHandleUsageInstructions:re,onDragStart:Oe,onDragUpdate:Q,onDragEnd:ve},Ae={x:0,y:0},Je=function(Z,ie){return{x:Z.x+ie.x,y:Z.y+ie.y}},tt=function(Z,ie){return{x:Z.x-ie.x,y:Z.y-ie.y}},ut=function(Z,ie){return Z.x===ie.x&&Z.y===ie.y},ht=function(Z){return{x:Z.x!==0?-Z.x:0,y:Z.y!==0?-Z.y:0}},vt=function(Z,ie,Ee){var Ne;return Ee===void 0&&(Ee=0),Ne={},Ne[Z]=ie,Ne[Z==="x"?"y":"x"]=Ee,Ne},_t=function(Z,ie){return Math.sqrt(Math.pow(ie.x-Z.x,2)+Math.pow(ie.y-Z.y,2))},Ve=function(Z,ie){return Math.min.apply(Math,ie.map(function(Ee){return _t(Z,Ee)}))},Ue=function(Z){return function(ie){return{x:Z(ie.x),y:Z(ie.y)}}},pt=function(Y,Z){var ie=n({top:Math.max(Z.top,Y.top),right:Math.min(Z.right,Y.right),bottom:Math.min(Z.bottom,Y.bottom),left:Math.max(Z.left,Y.left)});return ie.width<=0||ie.height<=0?null:ie},Ut=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},Et=function(Z){return[{x:Z.left,y:Z.top},{x:Z.right,y:Z.top},{x:Z.left,y:Z.bottom},{x:Z.right,y:Z.bottom}]},jt={top:0,right:0,bottom:0,left:0},Ze=function(Z,ie){return ie?Ut(Z,ie.scroll.diff.displacement):Z},Be=function(Z,ie,Ee){if(Ee&&Ee.increasedBy){var Ne;return Object(b.a)({},Z,(Ne={},Ne[ie.end]=Z[ie.end]+Ee.increasedBy[ie.line],Ne))}return Z},Ye=function(Z,ie){return ie&&ie.shouldClipSubject?pt(ie.pageMarginBox,Z):n(Z)},Ce=function(Y){var Z=Y.page,ie=Y.withPlaceholder,Ee=Y.axis,Ne=Y.frame,ke=Ze(Z.marginBox,Ne),Ge=Be(ke,Ee,ie),ze=Ye(Ge,Ne);return{page:Z,withPlaceholder:ie,active:ze}},Le=function(Y,Z){Y.frame||$(!1);var ie=Y.frame,Ee=tt(Z,ie.scroll.initial),Ne=ht(Ee),ke=Object(b.a)({},ie,{scroll:{initial:ie.scroll.initial,current:Z,diff:{value:Ee,displacement:Ne},max:ie.scroll.max}}),Ge=Ce({page:Y.subject.page,withPlaceholder:Y.subject.withPlaceholder,axis:Y.axis,frame:ke}),ze=Object(b.a)({},Y,{frame:ke,subject:Ge});return ze};function He(Y){return Number.isInteger?Number.isInteger(Y):typeof Y=="number"&&isFinite(Y)&&Math.floor(Y)===Y}function je(Y){return Object.values?Object.values(Y):Object.keys(Y).map(function(Z){return Y[Z]})}function Ke(Y,Z){if(Y.findIndex)return Y.findIndex(Z);for(var ie=0;ie<Y.length;ie++)if(Z(Y[ie]))return ie;return-1}function it(Y,Z){if(Y.find)return Y.find(Z);var ie=Ke(Y,Z);return ie!==-1?Y[ie]:void 0}function Ct(Y){return Array.prototype.slice.call(Y)}var Ft=T(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),Jt=T(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),Ht=T(function(Y){return je(Y)}),Ot=T(function(Y){return je(Y)}),Fe=T(function(Y,Z){var ie=Ot(Z).filter(function(Ee){return Y===Ee.descriptor.droppableId}).sort(function(Ee,Ne){return Ee.descriptor.index-Ne.descriptor.index});return ie});function at(Y){return Y.at&&Y.at.type==="REORDER"?Y.at.destination:null}function ot(Y){return Y.at&&Y.at.type==="COMBINE"?Y.at.combine:null}var Pe=T(function(Y,Z){return Z.filter(function(ie){return ie.descriptor.id!==Y.descriptor.id})}),Qe=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.previousImpact;if(!Ee.isCombineEnabled)return null;var Ge=at(ke);if(!Ge)return null;function ze(lr){var hr={type:"COMBINE",combine:{draggableId:lr,droppableId:Ee.descriptor.id}};return Object(b.a)({},ke,{at:hr})}var xt=ke.displaced.all,kt=xt.length?xt[0]:null;if(Z)return kt?ze(kt):null;var Bt=Pe(ie,Ne);if(!kt){if(!Bt.length)return null;var Tt=Bt[Bt.length-1];return ze(Tt.descriptor.id)}var St=Ke(Bt,function(lr){return lr.descriptor.id===kt});St!==-1||$(!1);var Nt=St-1;if(Nt<0)return null;var mn=Bt[Nt];return ze(mn.descriptor.id)},ft=function(Y,Z){return Y.descriptor.droppableId===Z.descriptor.id},bt={point:Ae,value:0},Dt={invisible:{},visible:{},all:[]},Mt={displaced:Dt,displacedBy:bt,at:null},ct=function(Y,Z){return function(ie){return Y<=ie&&ie<=Z}},Lt=function(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(Ee){var Ne=Z(Ee.top)&&Z(Ee.bottom)&&ie(Ee.left)&&ie(Ee.right);if(Ne)return!0;var ke=Z(Ee.top)||Z(Ee.bottom),Ge=ie(Ee.left)||ie(Ee.right),ze=ke&&Ge;if(ze)return!0;var xt=Ee.top<Y.top&&Ee.bottom>Y.bottom,kt=Ee.left<Y.left&&Ee.right>Y.right,Bt=xt&&kt;if(Bt)return!0;var Tt=xt&&Ge||kt&&ke;return Tt}},Zt=function(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(Ee){var Ne=Z(Ee.top)&&Z(Ee.bottom)&&ie(Ee.left)&&ie(Ee.right);return Ne}},An={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},on={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Tn=function(Y){return function(Z){var ie=ct(Z.top,Z.bottom),Ee=ct(Z.left,Z.right);return function(Ne){return Y===An?ie(Ne.top)&&ie(Ne.bottom):Ee(Ne.left)&&Ee(Ne.right)}}},Ln=function(Z,ie){var Ee=ie.frame?ie.frame.scroll.diff.displacement:Ae;return Ut(Z,Ee)},Nn=function(Z,ie,Ee){return ie.subject.active?Ee(ie.subject.active)(Z):!1},ln=function(Z,ie,Ee){return Ee(ie)(Z)},ar=function(Z){var ie=Z.target,Ee=Z.destination,Ne=Z.viewport,ke=Z.withDroppableDisplacement,Ge=Z.isVisibleThroughFrameFn,ze=ke?Ln(ie,Ee):ie;return Nn(ze,Ee,Ge)&&ln(ze,Ne,Ge)},xr=function(Z){return ar(Object(b.a)({},Z,{isVisibleThroughFrameFn:Lt}))},Cr=function(Z){return ar(Object(b.a)({},Z,{isVisibleThroughFrameFn:Zt}))},Yn=function(Z){return ar(Object(b.a)({},Z,{isVisibleThroughFrameFn:Tn(Z.destination.axis)}))},Or=function(Z,ie,Ee){if(typeof Ee=="boolean")return Ee;if(!ie)return!0;var Ne=ie.invisible,ke=ie.visible;if(Ne[Z])return!1;var Ge=ke[Z];return Ge?Ge.shouldAnimate:!0};function cr(Y,Z){var ie=Y.page.marginBox,Ee={top:Z.point.y,right:0,bottom:0,left:Z.point.x};return n(i(ie,Ee))}function sn(Y){var Z=Y.afterDragging,ie=Y.destination,Ee=Y.displacedBy,Ne=Y.viewport,ke=Y.forceShouldAnimate,Ge=Y.last;return Z.reduce(function(xt,kt){var Bt=cr(kt,Ee),Tt=kt.descriptor.id;xt.all.push(Tt);var St=xr({target:Bt,destination:ie,viewport:Ne,withDroppableDisplacement:!0});if(!St)return xt.invisible[kt.descriptor.id]=!0,xt;var Nt=Or(Tt,Ge,ke),mn={draggableId:Tt,shouldAnimate:Nt};return xt.visible[Tt]=mn,xt},{all:[],visible:{},invisible:{}})}function qt(Y,Z){if(!Y.length)return 0;var ie=Y[Y.length-1].descriptor.index;return Z.inHomeList?ie:ie+1}function On(Y){var Z=Y.insideDestination,ie=Y.inHomeList,Ee=Y.displacedBy,Ne=Y.destination,ke=qt(Z,{inHomeList:ie});return{displaced:Dt,displacedBy:Ee,at:{type:"REORDER",destination:{droppableId:Ne.descriptor.id,index:ke}}}}function Ir(Y){var Z=Y.draggable,ie=Y.insideDestination,Ee=Y.destination,Ne=Y.viewport,ke=Y.displacedBy,Ge=Y.last,ze=Y.index,xt=Y.forceShouldAnimate,kt=ft(Z,Ee);if(ze==null)return On({insideDestination:ie,inHomeList:kt,displacedBy:ke,destination:Ee});var Bt=it(ie,function(lr){return lr.descriptor.index===ze});if(!Bt)return On({insideDestination:ie,inHomeList:kt,displacedBy:ke,destination:Ee});var Tt=Pe(Z,ie),St=ie.indexOf(Bt),Nt=Tt.slice(St),mn=sn({afterDragging:Nt,destination:Ee,displacedBy:ke,last:Ge,viewport:Ne.frame,forceShouldAnimate:xt});return{displaced:mn,displacedBy:ke,at:{type:"REORDER",destination:{droppableId:Ee.descriptor.id,index:ze}}}}function Ar(Y,Z){return Boolean(Z.effected[Y])}var yr=function(Y){var Z=Y.isMovingForward,ie=Y.destination,Ee=Y.draggables,Ne=Y.combine,ke=Y.afterCritical;if(!ie.isCombineEnabled)return null;var Ge=Ne.draggableId,ze=Ee[Ge],xt=ze.descriptor.index,kt=Ar(Ge,ke);return kt?Z?xt:xt-1:Z?xt+1:xt},pr=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,Ee=Y.insideDestination,Ne=Y.location;if(!Ee.length)return null;var ke=Ne.index,Ge=Z?ke+1:ke-1,ze=Ee[0].descriptor.index,xt=Ee[Ee.length-1].descriptor.index,kt=ie?xt:xt+1;return Ge<ze||Ge>kt?null:Ge},pe=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,Ee=Y.draggable,Ne=Y.draggables,ke=Y.destination,Ge=Y.insideDestination,ze=Y.previousImpact,xt=Y.viewport,kt=Y.afterCritical,Bt=ze.at;if(Bt||$(!1),Bt.type==="REORDER"){var Tt=pr({isMovingForward:Z,isInHomeList:ie,location:Bt.destination,insideDestination:Ge});return Tt==null?null:Ir({draggable:Ee,insideDestination:Ge,destination:ke,viewport:xt,last:ze.displaced,displacedBy:ze.displacedBy,index:Tt})}var St=yr({isMovingForward:Z,destination:ke,displaced:ze.displaced,draggables:Ne,combine:Bt.combine,afterCritical:kt});return St==null?null:Ir({draggable:Ee,insideDestination:Ge,destination:ke,viewport:xt,last:ze.displaced,displacedBy:ze.displacedBy,index:St})},X=function(Y){var Z=Y.displaced,ie=Y.afterCritical,Ee=Y.combineWith,Ne=Y.displacedBy,ke=Boolean(Z.visible[Ee]||Z.invisible[Ee]);return Ar(Ee,ie)?ke?Ae:ht(Ne.point):ke?Ne.point:Ae},q=function(Y){var Z=Y.afterCritical,ie=Y.impact,Ee=Y.draggables,Ne=ot(ie);Ne||$(!1);var ke=Ne.draggableId,Ge=Ee[ke].page.borderBox.center,ze=X({displaced:ie.displaced,afterCritical:Z,combineWith:ke,displacedBy:ie.displacedBy});return Je(Ge,ze)},oe=function(Z,ie){return ie.margin[Z.start]+ie.borderBox[Z.size]/2},De=function(Z,ie){return ie.margin[Z.end]+ie.borderBox[Z.size]/2},fe=function(Z,ie,Ee){return ie[Z.crossAxisStart]+Ee.margin[Z.crossAxisStart]+Ee.borderBox[Z.crossAxisSize]/2},st=function(Z){var ie=Z.axis,Ee=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,Ee.marginBox[ie.end]+oe(ie,Ne),fe(ie,Ee.marginBox,Ne))},Qt=function(Z){var ie=Z.axis,Ee=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,Ee.marginBox[ie.start]-De(ie,Ne),fe(ie,Ee.marginBox,Ne))},In=function(Z){var ie=Z.axis,Ee=Z.moveInto,Ne=Z.isMoving;return vt(ie.line,Ee.contentBox[ie.start]+oe(ie,Ne),fe(ie,Ee.contentBox,Ne))},Vn=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.draggables,Ne=Y.droppable,ke=Y.afterCritical,Ge=Fe(Ne.descriptor.id,Ee),ze=ie.page,xt=Ne.axis;if(!Ge.length)return In({axis:xt,moveInto:Ne.page,isMoving:ze});var kt=Z.displaced,Bt=Z.displacedBy,Tt=kt.all[0];if(Tt){var St=Ee[Tt];if(Ar(Tt,ke))return Qt({axis:xt,moveRelativeTo:St.page,isMoving:ze});var Nt=w(St.page,Bt.point);return Qt({axis:xt,moveRelativeTo:Nt,isMoving:ze})}var mn=Ge[Ge.length-1];if(mn.descriptor.id===ie.descriptor.id)return ze.borderBox.center;if(Ar(mn.descriptor.id,ke)){var lr=w(mn.page,ht(ke.displacedBy.point));return st({axis:xt,moveRelativeTo:lr,isMoving:ze})}return st({axis:xt,moveRelativeTo:mn.page,isMoving:ze})},$t=function(Y,Z){var ie=Y.frame;return ie?Je(Z,ie.scroll.diff.displacement):Z},bn=function(Z){var ie=Z.impact,Ee=Z.draggable,Ne=Z.droppable,ke=Z.draggables,Ge=Z.afterCritical,ze=Ee.page.borderBox.center,xt=ie.at;return Ne&&xt?xt.type==="REORDER"?Vn({impact:ie,draggable:Ee,draggables:ke,droppable:Ne,afterCritical:Ge}):q({impact:ie,draggables:ke,afterCritical:Ge}):ze},cn=function(Y){var Z=bn(Y),ie=Y.droppable,Ee=ie?$t(ie,Z):Z;return Ee},Br=function(Y,Z){var ie=tt(Z,Y.scroll.initial),Ee=ht(ie),Ne=n({top:Z.y,bottom:Z.y+Y.frame.height,left:Z.x,right:Z.x+Y.frame.width}),ke={frame:Ne,scroll:{initial:Y.scroll.initial,max:Y.scroll.max,current:Z,diff:{value:ie,displacement:Ee}}};return ke};function ra(Y,Z){return Y.map(function(ie){return Z[ie]})}function oa(Y,Z){for(var ie=0;ie<Z.length;ie++){var Ee=Z[ie].visible[Y];if(Ee)return Ee}return null}var er=function(Y){var Z=Y.impact,ie=Y.viewport,Ee=Y.destination,Ne=Y.draggables,ke=Y.maxScrollChange,Ge=Br(ie,Je(ie.scroll.current,ke)),ze=Ee.frame?Le(Ee,Je(Ee.frame.scroll.current,ke)):Ee,xt=Z.displaced,kt=sn({afterDragging:ra(xt.all,Ne),destination:Ee,displacedBy:Z.displacedBy,viewport:Ge.frame,last:xt,forceShouldAnimate:!1}),Bt=sn({afterDragging:ra(xt.all,Ne),destination:ze,displacedBy:Z.displacedBy,viewport:ie.frame,last:xt,forceShouldAnimate:!1}),Tt={},St={},Nt=[xt,kt,Bt];xt.all.forEach(function(lr){var hr=oa(lr,Nt);if(hr){St[lr]=hr;return}Tt[lr]=!0});var mn=Object(b.a)({},Z,{displaced:{all:xt.all,invisible:Tt,visible:St}});return mn},Ba=function(Y,Z){return Je(Y.scroll.diff.displacement,Z)},Ea=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.draggable,Ee=Y.viewport,Ne=Ba(Ee,Z),ke=tt(Ne,ie.page.borderBox.center);return Je(ie.client.borderBox.center,ke)},ca=function(Y){var Z=Y.draggable,ie=Y.destination,Ee=Y.newPageBorderBoxCenter,Ne=Y.viewport,ke=Y.withDroppableDisplacement,Ge=Y.onlyOnMainAxis,ze=Ge===void 0?!1:Ge,xt=tt(Ee,Z.page.borderBox.center),kt=Ut(Z.page.borderBox,xt),Bt={target:kt,destination:ie,withDroppableDisplacement:ke,viewport:Ne};return ze?Yn(Bt):Cr(Bt)},Ka=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,Ee=Y.destination,Ne=Y.draggables,ke=Y.previousImpact,Ge=Y.viewport,ze=Y.previousPageBorderBoxCenter,xt=Y.previousClientSelection,kt=Y.afterCritical;if(!Ee.isEnabled)return null;var Bt=Fe(Ee.descriptor.id,Ne),Tt=ft(ie,Ee),St=Qe({isMovingForward:Z,draggable:ie,destination:Ee,insideDestination:Bt,previousImpact:ke})||pe({isMovingForward:Z,isInHomeList:Tt,draggable:ie,draggables:Ne,destination:Ee,insideDestination:Bt,previousImpact:ke,viewport:Ge,afterCritical:kt});if(!St)return null;var Nt=cn({impact:St,draggable:ie,droppable:Ee,draggables:Ne,afterCritical:kt}),mn=ca({draggable:ie,destination:Ee,newPageBorderBoxCenter:Nt,viewport:Ge.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(mn){var lr=Ea({pageBorderBoxCenter:Nt,draggable:ie,viewport:Ge});return{clientSelection:lr,impact:St,scrollJumpRequest:null}}var hr=tt(Nt,ze),kr=er({impact:St,viewport:Ge,destination:Ee,draggables:Ne,maxScrollChange:hr});return{clientSelection:xt,impact:kr,scrollJumpRequest:hr}},Ta=function(Z){var ie=Z.subject.active;return ie||$(!1),ie},Ja=function(Y){var Z=Y.isMovingForward,ie=Y.pageBorderBoxCenter,Ee=Y.source,Ne=Y.droppables,ke=Y.viewport,Ge=Ee.subject.active;if(!Ge)return null;var ze=Ee.axis,xt=ct(Ge[ze.start],Ge[ze.end]),kt=Ht(Ne).filter(function(Tt){return Tt!==Ee}).filter(function(Tt){return Tt.isEnabled}).filter(function(Tt){return Boolean(Tt.subject.active)}).filter(function(Tt){return Lt(ke.frame)(Ta(Tt))}).filter(function(Tt){var St=Ta(Tt);return Z?Ge[ze.crossAxisEnd]<St[ze.crossAxisEnd]:St[ze.crossAxisStart]<Ge[ze.crossAxisStart]}).filter(function(Tt){var St=Ta(Tt),Nt=ct(St[ze.start],St[ze.end]);return xt(St[ze.start])||xt(St[ze.end])||Nt(Ge[ze.start])||Nt(Ge[ze.end])}).sort(function(Tt,St){var Nt=Ta(Tt)[ze.crossAxisStart],mn=Ta(St)[ze.crossAxisStart];return Z?Nt-mn:mn-Nt}).filter(function(Tt,St,Nt){return Ta(Tt)[ze.crossAxisStart]===Ta(Nt[0])[ze.crossAxisStart]});if(!kt.length)return null;if(kt.length===1)return kt[0];var Bt=kt.filter(function(Tt){var St=ct(Ta(Tt)[ze.start],Ta(Tt)[ze.end]);return St(ie[ze.line])});return Bt.length===1?Bt[0]:Bt.length>1?Bt.sort(function(Tt,St){return Ta(Tt)[ze.start]-Ta(St)[ze.start]})[0]:kt.sort(function(Tt,St){var Nt=Ve(ie,Et(Ta(Tt))),mn=Ve(ie,Et(Ta(St)));return Nt!==mn?Nt-mn:Ta(Tt)[ze.start]-Ta(St)[ze.start]})[0]},Ua=function(Z,ie){var Ee=Z.page.borderBox.center;return Ar(Z.descriptor.id,ie)?tt(Ee,ie.displacedBy.point):Ee},li=function(Z,ie){var Ee=Z.page.borderBox;return Ar(Z.descriptor.id,ie)?Ut(Ee,ht(ie.displacedBy.point)):Ee},oi=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.viewport,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.afterCritical,Ge=Ne.filter(function(ze){return Cr({target:li(ze,ke),destination:Ee,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(ze,xt){var kt=_t(Z,$t(Ee,Ua(ze,ke))),Bt=_t(Z,$t(Ee,Ua(xt,ke)));return kt<Bt?-1:Bt<kt?1:ze.descriptor.index-xt.descriptor.index});return Ge[0]||null},fa=T(function(Z,ie){var Ee=ie[Z.line];return{value:Ee,point:vt(Z.line,Ee)}}),ma=function(Z,ie,Ee){var Ne=Z.axis;if(Z.descriptor.mode==="virtual")return vt(Ne.line,ie[Ne.line]);var ke=Z.subject.page.contentBox[Ne.size],Ge=Fe(Z.descriptor.id,Ee),ze=Ge.reduce(function(Bt,Tt){return Bt+Tt.client.marginBox[Ne.size]},0),xt=ze+ie[Ne.line],kt=xt-ke;return kt<=0?null:vt(Ne.line,kt)},la=function(Z,ie){return Object(b.a)({},Z,{scroll:Object(b.a)({},Z.scroll,{max:ie})})},xe=function(Z,ie,Ee){var Ne=Z.frame;ft(ie,Z)&&$(!1),Z.subject.withPlaceholder&&$(!1);var ke=fa(Z.axis,ie.displaceBy).point,Ge=ma(Z,ke,Ee),ze={placeholderSize:ke,increasedBy:Ge,oldFrameMaxScroll:Z.frame?Z.frame.scroll.max:null};if(!Ne){var xt=Ce({page:Z.subject.page,withPlaceholder:ze,axis:Z.axis,frame:Z.frame});return Object(b.a)({},Z,{subject:xt})}var kt=Ge?Je(Ne.scroll.max,Ge):Ne.scroll.max,Bt=la(Ne,kt),Tt=Ce({page:Z.subject.page,withPlaceholder:ze,axis:Z.axis,frame:Bt});return Object(b.a)({},Z,{subject:Tt,frame:Bt})},lt=function(Z){var ie=Z.subject.withPlaceholder;ie||$(!1);var Ee=Z.frame;if(!Ee){var Ne=Ce({page:Z.subject.page,axis:Z.axis,frame:null,withPlaceholder:null});return Object(b.a)({},Z,{subject:Ne})}var ke=ie.oldFrameMaxScroll;ke||$(!1);var Ge=la(Ee,ke),ze=Ce({page:Z.subject.page,axis:Z.axis,frame:Ge,withPlaceholder:null});return Object(b.a)({},Z,{subject:ze,frame:Ge})},Rt=function(Y){var Z=Y.previousPageBorderBoxCenter,ie=Y.moveRelativeTo,Ee=Y.insideDestination,Ne=Y.draggable,ke=Y.draggables,Ge=Y.destination,ze=Y.viewport,xt=Y.afterCritical;if(!ie){if(Ee.length)return null;var kt={displaced:Dt,displacedBy:bt,at:{type:"REORDER",destination:{droppableId:Ge.descriptor.id,index:0}}},Bt=cn({impact:kt,draggable:Ne,droppable:Ge,draggables:ke,afterCritical:xt}),Tt=ft(Ne,Ge)?Ge:xe(Ge,Ne,ke),St=ca({draggable:Ne,destination:Tt,newPageBorderBoxCenter:Bt,viewport:ze.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return St?kt:null}var Nt=Boolean(Z[Ge.axis.line]<=ie.page.borderBox.center[Ge.axis.line]),mn=function(){var hr=ie.descriptor.index;return ie.descriptor.id===Ne.descriptor.id||Nt?hr:hr+1}(),lr=fa(Ge.axis,Ne.displaceBy);return Ir({draggable:Ne,insideDestination:Ee,destination:Ge,viewport:ze,displacedBy:lr,last:Dt,index:mn})},wt=function(Y){var Z=Y.isMovingForward,ie=Y.previousPageBorderBoxCenter,Ee=Y.draggable,Ne=Y.isOver,ke=Y.draggables,Ge=Y.droppables,ze=Y.viewport,xt=Y.afterCritical,kt=Ja({isMovingForward:Z,pageBorderBoxCenter:ie,source:Ne,droppables:Ge,viewport:ze});if(!kt)return null;var Bt=Fe(kt.descriptor.id,ke),Tt=oi({pageBorderBoxCenter:ie,viewport:ze,destination:kt,insideDestination:Bt,afterCritical:xt}),St=Rt({previousPageBorderBoxCenter:ie,destination:kt,draggable:Ee,draggables:ke,moveRelativeTo:Tt,insideDestination:Bt,viewport:ze,afterCritical:xt});if(!St)return null;var Nt=cn({impact:St,draggable:Ee,droppable:kt,draggables:ke,afterCritical:xt}),mn=Ea({pageBorderBoxCenter:Nt,draggable:Ee,viewport:ze});return{clientSelection:mn,impact:St,scrollJumpRequest:null}},Wt=function(Y){var Z=Y.at;return Z?Z.type==="REORDER"?Z.destination.droppableId:Z.combine.droppableId:null},It=function(Z,ie){var Ee=Wt(Z);return Ee?ie[Ee]:null},Vt=function(Y){var Z=Y.state,ie=Y.type,Ee=It(Z.impact,Z.dimensions.droppables),Ne=Boolean(Ee),ke=Z.dimensions.droppables[Z.critical.droppable.id],Ge=Ee||ke,ze=Ge.axis.direction,xt=ze==="vertical"&&(ie==="MOVE_UP"||ie==="MOVE_DOWN")||ze==="horizontal"&&(ie==="MOVE_LEFT"||ie==="MOVE_RIGHT");if(xt&&!Ne)return null;var kt=ie==="MOVE_DOWN"||ie==="MOVE_RIGHT",Bt=Z.dimensions.draggables[Z.critical.draggable.id],Tt=Z.current.page.borderBoxCenter,St=Z.dimensions,Nt=St.draggables,mn=St.droppables;return xt?Ka({isMovingForward:kt,previousPageBorderBoxCenter:Tt,draggable:Bt,destination:Ge,draggables:Nt,viewport:Z.viewport,previousClientSelection:Z.current.client.selection,previousImpact:Z.impact,afterCritical:Z.afterCritical}):wt({isMovingForward:kt,previousPageBorderBoxCenter:Tt,draggable:Bt,isOver:Ge,draggables:Nt,droppables:mn,viewport:Z.viewport,afterCritical:Z.afterCritical})};function rn(Y){return Y.phase==="DRAGGING"||Y.phase==="COLLECTING"}function yn(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(Ne){return Z(Ne.y)&&ie(Ne.x)}}function gn(Y,Z){return Y.left<Z.right&&Y.right>Z.left&&Y.top<Z.bottom&&Y.bottom>Z.top}function jn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,Ee=Y.candidates,Ne=ie.page.borderBox.center,ke=Ee.map(function(Ge){var ze=Ge.axis,xt=vt(Ge.axis.line,Z.center[ze.line],Ge.page.borderBox.center[ze.crossAxisLine]);return{id:Ge.descriptor.id,distance:_t(Ne,xt)}}).sort(function(Ge,ze){return ze.distance-Ge.distance});return ke[0]?ke[0].id:null}function Dn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,Ee=Y.droppables,Ne=Ht(Ee).filter(function(ke){if(!ke.isEnabled)return!1;var Ge=ke.subject.active;if(!Ge)return!1;if(!gn(Z,Ge))return!1;if(yn(Ge)(Z.center))return!0;var ze=ke.axis,xt=Ge.center[ze.crossAxisLine],kt=Z[ze.crossAxisStart],Bt=Z[ze.crossAxisEnd],Tt=ct(Ge[ze.crossAxisStart],Ge[ze.crossAxisEnd]),St=Tt(kt),Nt=Tt(Bt);return!St&&!Nt?!0:St?kt<xt:Bt>xt});return Ne.length?Ne.length===1?Ne[0].descriptor.id:jn({pageBorderBox:Z,draggable:ie,candidates:Ne}):null}var an=function(Z,ie){return n(Ut(Z,ie))},Mn=function(Y,Z){var ie=Y.frame;return ie?an(Z,ie.scroll.diff.value):Z};function _n(Y){var Z=Y.displaced,ie=Y.id;return Boolean(Z.visible[ie]||Z.invisible[ie])}function Bn(Y){var Z=Y.draggable,ie=Y.closest,Ee=Y.inHomeList;return ie?Ee&&ie.descriptor.index>Z.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var Pn=function(Y){var Z=Y.pageBorderBoxWithDroppableScroll,ie=Y.draggable,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.last,Ge=Y.viewport,ze=Y.afterCritical,xt=Ee.axis,kt=fa(Ee.axis,ie.displaceBy),Bt=kt.value,Tt=Z[xt.start],St=Z[xt.end],Nt=Pe(ie,Ne),mn=it(Nt,function(hr){var kr=hr.descriptor.id,Gr=hr.page.borderBox.center[xt.line],na=Ar(kr,ze),Hr=_n({displaced:ke,id:kr});return na?Hr?St<=Gr:Tt<Gr-Bt:Hr?St<=Gr+Bt:Tt<Gr}),lr=Bn({draggable:ie,closest:mn,inHomeList:ft(ie,Ee)});return Ir({draggable:ie,insideDestination:Ne,destination:Ee,viewport:Ge,last:ke,displacedBy:kt,index:lr})},Jn=4,fr=function(Y){var Z=Y.draggable,ie=Y.pageBorderBoxWithDroppableScroll,Ee=Y.previousImpact,Ne=Y.destination,ke=Y.insideDestination,Ge=Y.afterCritical;if(!Ne.isCombineEnabled)return null;var ze=Ne.axis,xt=fa(Ne.axis,Z.displaceBy),kt=xt.value,Bt=ie[ze.start],Tt=ie[ze.end],St=Pe(Z,ke),Nt=it(St,function(lr){var hr=lr.descriptor.id,kr=lr.page.borderBox,Gr=kr[ze.size],na=Gr/Jn,Hr=Ar(hr,Ge),Ia=_n({displaced:Ee.displaced,id:hr});return Hr?Ia?Tt>kr[ze.start]+na&&Tt<kr[ze.end]-na:Bt>kr[ze.start]-kt+na&&Bt<kr[ze.end]-kt-na:Ia?Tt>kr[ze.start]+kt+na&&Tt<kr[ze.end]+kt-na:Bt>kr[ze.start]+na&&Bt<kr[ze.end]-na});if(!Nt)return null;var mn={displacedBy:xt,displaced:Ee.displaced,at:{type:"COMBINE",combine:{draggableId:Nt.descriptor.id,droppableId:Ne.descriptor.id}}};return mn},Fr=function(Y){var Z=Y.pageOffset,ie=Y.draggable,Ee=Y.draggables,Ne=Y.droppables,ke=Y.previousImpact,Ge=Y.viewport,ze=Y.afterCritical,xt=an(ie.page.borderBox,Z),kt=Dn({pageBorderBox:xt,draggable:ie,droppables:Ne});if(!kt)return Mt;var Bt=Ne[kt],Tt=Fe(Bt.descriptor.id,Ee),St=Mn(Bt,xt);return fr({pageBorderBoxWithDroppableScroll:St,draggable:ie,previousImpact:ke,destination:Bt,insideDestination:Tt,afterCritical:ze})||Pn({pageBorderBoxWithDroppableScroll:St,draggable:ie,destination:Bt,insideDestination:Tt,last:ke.displaced,viewport:Ge,afterCritical:ze})},Cn=function(Y,Z){var ie;return Object(b.a)({},Y,(ie={},ie[Z.descriptor.id]=Z,ie))},Xt=function(Z){var ie=Z.previousImpact,Ee=Z.impact,Ne=Z.droppables,ke=Wt(ie),Ge=Wt(Ee);if(!ke)return Ne;if(ke===Ge)return Ne;var ze=Ne[ke];if(!ze.subject.withPlaceholder)return Ne;var xt=lt(ze);return Cn(Ne,xt)},hn=function(Y){var Z=Y.draggable,ie=Y.draggables,Ee=Y.droppables,Ne=Y.previousImpact,ke=Y.impact,Ge=Xt({previousImpact:Ne,impact:ke,droppables:Ee}),ze=Wt(ke);if(!ze)return Ge;var xt=Ee[ze];if(ft(Z,xt))return Ge;if(xt.subject.withPlaceholder)return Ge;var kt=xe(xt,Z,ie);return Cn(Ge,kt)},Rn=function(Y){var Z=Y.state,ie=Y.clientSelection,Ee=Y.dimensions,Ne=Y.viewport,ke=Y.impact,Ge=Y.scrollJumpRequest,ze=Ne||Z.viewport,xt=Ee||Z.dimensions,kt=ie||Z.current.client.selection,Bt=tt(kt,Z.initial.client.selection),Tt={offset:Bt,selection:kt,borderBoxCenter:Je(Z.initial.client.borderBoxCenter,Bt)},St={selection:Je(Tt.selection,ze.scroll.current),borderBoxCenter:Je(Tt.borderBoxCenter,ze.scroll.current),offset:Je(Tt.offset,ze.scroll.diff.value)},Nt={client:Tt,page:St};if(Z.phase==="COLLECTING")return Object(b.a)({phase:"COLLECTING"},Z,{dimensions:xt,viewport:ze,current:Nt});var mn=xt.draggables[Z.critical.draggable.id],lr=ke||Fr({pageOffset:St.offset,draggable:mn,draggables:xt.draggables,droppables:xt.droppables,previousImpact:Z.impact,viewport:ze,afterCritical:Z.afterCritical}),hr=hn({draggable:mn,impact:lr,previousImpact:Z.impact,draggables:xt.draggables,droppables:xt.droppables}),kr=Object(b.a)({},Z,{current:Nt,dimensions:{draggables:xt.draggables,droppables:hr},impact:lr,viewport:ze,scrollJumpRequest:Ge||null,forceShouldAnimate:Ge?!1:null});return kr};function tn(Y,Z){return Y.map(function(ie){return Z[ie]})}var Sn=function(Y){var Z=Y.impact,ie=Y.viewport,Ee=Y.draggables,Ne=Y.destination,ke=Y.forceShouldAnimate,Ge=Z.displaced,ze=tn(Ge.all,Ee),xt=sn({afterDragging:ze,destination:Ne,displacedBy:Z.displacedBy,viewport:ie.frame,forceShouldAnimate:ke,last:Ge});return Object(b.a)({},Z,{displaced:xt})},vn=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.droppable,Ne=Y.draggables,ke=Y.viewport,Ge=Y.afterCritical,ze=cn({impact:Z,draggable:ie,draggables:Ne,droppable:Ee,afterCritical:Ge});return Ea({pageBorderBoxCenter:ze,draggable:ie,viewport:ke})},kn=function(Y){var Z=Y.state,ie=Y.dimensions,Ee=Y.viewport;Z.movementMode==="SNAP"||$(!1);var Ne=Z.impact,ke=Ee||Z.viewport,Ge=ie||Z.dimensions,ze=Ge.draggables,xt=Ge.droppables,kt=ze[Z.critical.draggable.id],Bt=Wt(Ne);Bt||$(!1);var Tt=xt[Bt],St=Sn({impact:Ne,viewport:ke,destination:Tt,draggables:ze}),Nt=vn({impact:St,draggable:kt,droppable:Tt,draggables:ze,viewport:ke,afterCritical:Z.afterCritical});return Rn({impact:St,clientSelection:Nt,state:Z,dimensions:Ge,viewport:ke})},Fn=function(Y){return{index:Y.index,droppableId:Y.droppableId}},ir=function(Y){var Z=Y.draggable,ie=Y.home,Ee=Y.draggables,Ne=Y.viewport,ke=fa(ie.axis,Z.displaceBy),Ge=Fe(ie.descriptor.id,Ee),ze=Ge.indexOf(Z);ze!==-1||$(!1);var xt=Ge.slice(ze+1),kt=xt.reduce(function(Nt,mn){return Nt[mn.descriptor.id]=!0,Nt},{}),Bt={inVirtualList:ie.descriptor.mode==="virtual",displacedBy:ke,effected:kt},Tt=sn({afterDragging:xt,destination:ie,displacedBy:ke,last:null,viewport:Ne.frame,forceShouldAnimate:!1}),St={displaced:Tt,displacedBy:ke,at:{type:"REORDER",destination:Fn(Z.descriptor)}};return{impact:St,afterCritical:Bt}},qn=function(Y,Z){return{draggables:Y.draggables,droppables:Cn(Y.droppables,Z)}},Rr=function(Z){},Lr=function(Z){},Qn=function(Y){var Z=Y.draggable,ie=Y.offset,Ee=Y.initialWindowScroll,Ne=w(Z.client,ie),ke=E(Ne,Ee),Ge=Object(b.a)({},Z,{placeholder:Object(b.a)({},Z.placeholder,{client:Ne}),client:Ne,page:ke});return Ge},Dr=function(Y){var Z=Y.frame;return Z||$(!1),Z},mr=function(Y){var Z=Y.additions,ie=Y.updatedDroppables,Ee=Y.viewport,Ne=Ee.scroll.diff.value;return Z.map(function(ke){var Ge=ke.descriptor.droppableId,ze=ie[Ge],xt=Dr(ze),kt=xt.scroll.diff.value,Bt=Je(Ne,kt),Tt=Qn({draggable:ke,offset:Bt,initialWindowScroll:Ee.scroll.initial});return Tt})},zr=function(Y){var Z=Y.state,ie=Y.published;Rr();var Ee=ie.modified.map(function(na){var Hr=Z.dimensions.droppables[na.droppableId],Ia=Le(Hr,na.scroll);return Ia}),Ne=Object(b.a)({},Z.dimensions.droppables,{},Ft(Ee)),ke=Jt(mr({additions:ie.additions,updatedDroppables:Ne,viewport:Z.viewport})),Ge=Object(b.a)({},Z.dimensions.draggables,{},ke);ie.removals.forEach(function(na){delete Ge[na]});var ze={droppables:Ne,draggables:Ge},xt=Wt(Z.impact),kt=xt?ze.droppables[xt]:null,Bt=ze.draggables[Z.critical.draggable.id],Tt=ze.droppables[Z.critical.droppable.id],St=ir({draggable:Bt,home:Tt,draggables:Ge,viewport:Z.viewport}),Nt=St.impact,mn=St.afterCritical,lr=kt&&kt.isCombineEnabled?Z.impact:Nt,hr=Fr({pageOffset:Z.current.page.offset,draggable:ze.draggables[Z.critical.draggable.id],draggables:ze.draggables,droppables:ze.droppables,previousImpact:lr,viewport:Z.viewport,afterCritical:mn});Lr();var kr=Object(b.a)({phase:"DRAGGING"},Z,{phase:"DRAGGING",impact:hr,onLiftImpact:Nt,dimensions:ze,afterCritical:mn,forceShouldAnimate:!1});if(Z.phase==="COLLECTING")return kr;var Gr=Object(b.a)({phase:"DROP_PENDING"},kr,{phase:"DROP_PENDING",reason:Z.reason,isWaiting:!1});return Gr},Nr=function(Z){return Z.movementMode==="SNAP"},$r=function(Z,ie,Ee){var Ne=qn(Z.dimensions,ie);return!Nr(Z)||Ee?Rn({state:Z,dimensions:Ne}):kn({state:Z,dimensions:Ne})};function nr(Y){return Y.isDragging&&Y.movementMode==="SNAP"?Object(b.a)({phase:"DRAGGING"},Y,{scrollJumpRequest:null}):Y}var Kt={phase:"IDLE",completed:null,shouldFlush:!1},en=function(Y,Z){if(Y===void 0&&(Y=Kt),Z.type==="FLUSH")return Object(b.a)({},Kt,{shouldFlush:!0});if(Z.type==="INITIAL_PUBLISH"){Y.phase==="IDLE"||$(!1);var ie=Z.payload,Ee=ie.critical,Ne=ie.clientSelection,ke=ie.viewport,Ge=ie.dimensions,ze=ie.movementMode,xt=Ge.draggables[Ee.draggable.id],kt=Ge.droppables[Ee.droppable.id],Bt={selection:Ne,borderBoxCenter:xt.client.borderBox.center,offset:Ae},Tt={client:Bt,page:{selection:Je(Bt.selection,ke.scroll.initial),borderBoxCenter:Je(Bt.selection,ke.scroll.initial),offset:Je(Bt.selection,ke.scroll.diff.value)}},St=Ht(Ge.droppables).every(function(ea){return!ea.isFixedOnPage}),Nt=ir({draggable:xt,home:kt,draggables:Ge.draggables,viewport:ke}),mn=Nt.impact,lr=Nt.afterCritical,hr={phase:"DRAGGING",isDragging:!0,critical:Ee,movementMode:ze,dimensions:Ge,initial:Tt,current:Tt,isWindowScrollAllowed:St,impact:mn,afterCritical:lr,onLiftImpact:mn,viewport:ke,scrollJumpRequest:null,forceShouldAnimate:null};return hr}if(Z.type==="COLLECTION_STARTING"){if(Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING")return Y;Y.phase==="DRAGGING"||$(!1);var kr=Object(b.a)({phase:"COLLECTING"},Y,{phase:"COLLECTING"});return kr}if(Z.type==="PUBLISH_WHILE_DRAGGING")return Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING"||$(!1),zr({state:Y,published:Z.payload});if(Z.type==="MOVE"){if(Y.phase==="DROP_PENDING")return Y;rn(Y)||$(!1);var Gr=Z.payload.client;return ut(Gr,Y.current.client.selection)?Y:Rn({state:Y,clientSelection:Gr,impact:Nr(Y)?Y.impact:null})}if(Z.type==="UPDATE_DROPPABLE_SCROLL"){if(Y.phase==="DROP_PENDING")return nr(Y);if(Y.phase==="COLLECTING")return nr(Y);rn(Y)||$(!1);var na=Z.payload,Hr=na.id,Ia=na.newScroll,Ra=Y.dimensions.droppables[Hr];if(!Ra)return Y;var za=Le(Ra,Ia);return $r(Y,za,!1)}if(Z.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(Y.phase==="DROP_PENDING")return Y;rn(Y)||$(!1);var si=Z.payload,t=si.id,p=si.isEnabled,B=Y.dimensions.droppables[t];B||$(!1),B.isEnabled!==p||$(!1);var j=Object(b.a)({},B,{isEnabled:p});return $r(Y,j,!0)}if(Z.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(Y.phase==="DROP_PENDING")return Y;rn(Y)||$(!1);var G=Z.payload,ne=G.id,ge=G.isCombineEnabled,we=Y.dimensions.droppables[ne];we||$(!1),we.isCombineEnabled!==ge||$(!1);var Re=Object(b.a)({},we,{isCombineEnabled:ge});return $r(Y,Re,!0)}if(Z.type==="MOVE_BY_WINDOW_SCROLL"){if(Y.phase==="DROP_PENDING"||Y.phase==="DROP_ANIMATING")return Y;rn(Y)||$(!1),Y.isWindowScrollAllowed||$(!1);var We=Z.payload.newScroll;if(ut(Y.viewport.scroll.current,We))return nr(Y);var gt=Br(Y.viewport,We);return Nr(Y)?kn({state:Y,viewport:gt}):Rn({state:Y,viewport:gt})}if(Z.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!rn(Y))return Y;var At=Z.payload.maxScroll;if(ut(At,Y.viewport.scroll.max))return Y;var nn=Object(b.a)({},Y.viewport,{scroll:Object(b.a)({},Y.viewport.scroll,{max:At})});return Object(b.a)({phase:"DRAGGING"},Y,{viewport:nn})}if(Z.type==="MOVE_UP"||Z.type==="MOVE_DOWN"||Z.type==="MOVE_LEFT"||Z.type==="MOVE_RIGHT"){if(Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING")return Y;Y.phase==="DRAGGING"||$(!1);var Gt=Vt({state:Y,type:Z.type});return Gt?Rn({state:Y,impact:Gt.impact,clientSelection:Gt.clientSelection,scrollJumpRequest:Gt.scrollJumpRequest}):Y}if(Z.type==="DROP_PENDING"){var wn=Z.payload.reason;Y.phase==="COLLECTING"||$(!1);var Hn=Object(b.a)({phase:"DROP_PENDING"},Y,{phase:"DROP_PENDING",isWaiting:!0,reason:wn});return Hn}if(Z.type==="DROP_ANIMATE"){var Zn=Z.payload,_r=Zn.completed,Ur=Zn.dropDuration,br=Zn.newHomeClientOffset;Y.phase==="DRAGGING"||Y.phase==="DROP_PENDING"||$(!1);var Xr={phase:"DROP_ANIMATING",completed:_r,dropDuration:Ur,newHomeClientOffset:br,dimensions:Y.dimensions};return Xr}if(Z.type==="DROP_COMPLETE"){var ia=Z.payload.completed;return{phase:"IDLE",completed:ia,shouldFlush:!1}}return Y},Yt=function(Z){return{type:"BEFORE_INITIAL_CAPTURE",payload:Z}},Xn=function(Z){return{type:"LIFT",payload:Z}},$n=function(Z){return{type:"INITIAL_PUBLISH",payload:Z}},Un=function(Z){return{type:"PUBLISH_WHILE_DRAGGING",payload:Z}},rr=function(){return{type:"COLLECTION_STARTING",payload:null}},ur=function(Z){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Z}},or=function(Z){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Z}},qr=function(Z){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Z}},sr=function(Z){return{type:"MOVE",payload:Z}},da=function(Z){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Z}},Yr=function(Z){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Z}},gr=function(){return{type:"MOVE_UP",payload:null}},Sr=function(){return{type:"MOVE_DOWN",payload:null}},Kr=function(){return{type:"MOVE_RIGHT",payload:null}},Jr=function(){return{type:"MOVE_LEFT",payload:null}},Oa=function(){return{type:"FLUSH",payload:null}},_a=function(Z){return{type:"DROP_ANIMATE",payload:Z}},qe=function(Z){return{type:"DROP_COMPLETE",payload:Z}},dt=function(Z){return{type:"DROP",payload:Z}},yt=function(Z){return{type:"DROP_PENDING",payload:Z}},nt=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Me(Y){if(Y.length<=1)return;for(var Z=Y.map(function(ze){return ze.descriptor.index}),ie={},Ee=1;Ee<Z.length;Ee++){var Ne=Z[Ee],ke=Z[Ee-1];Ne!==ke+1&&(ie[Ne]=!0)}if(!Object.keys(ie).length)return;var Ge=Z.map(function(ze){var xt=Boolean(ie[ze]);return xt?"[\u{1F525}"+ze+"]":""+ze}).join(", ")}function Xe(Y,Z){if(!1)var ie}var Ie=function(Y){return function(Z){var ie=Z.getState,Ee=Z.dispatch;return function(Ne){return function(ke){if(ke.type!=="LIFT"){Ne(ke);return}var Ge=ke.payload,ze=Ge.id,xt=Ge.clientSelection,kt=Ge.movementMode,Bt=ie();Bt.phase==="DROP_ANIMATING"&&Ee(qe({completed:Bt.completed})),ie().phase==="IDLE"||$(!1),Ee(Oa()),Ee(Yt({draggableId:ze,movementMode:kt}));var Tt={shouldPublishImmediately:kt==="SNAP"},St={draggableId:ze,scrollOptions:Tt},Nt=Y.startPublishing(St),mn=Nt.critical,lr=Nt.dimensions,hr=Nt.viewport;Xe(mn,lr),Ee($n({critical:mn,dimensions:lr,clientSelection:xt,movementMode:kt,viewport:hr}))}}}},et=function(Y){return function(){return function(Z){return function(ie){ie.type==="INITIAL_PUBLISH"&&Y.dragging(),ie.type==="DROP_ANIMATE"&&Y.dropping(ie.payload.completed.result.reason),(ie.type==="FLUSH"||ie.type==="DROP_COMPLETE")&&Y.resting(),Z(ie)}}}},$e={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},mt={opacity:{drop:0,combining:.7},scale:{drop:.75}},rt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Pt=rt.outOfTheWay+"s "+$e.outOfTheWay,zt={fluid:"opacity "+Pt,snap:"transform "+Pt+", opacity "+Pt,drop:function(Z){var ie=Z+"s "+$e.drop;return"transform "+ie+", opacity "+ie},outOfTheWay:"transform "+Pt,placeholder:"height "+Pt+", width "+Pt+", margin "+Pt},pn=function(Z){return ut(Z,Ae)?null:"translate("+Z.x+"px, "+Z.y+"px)"},un={moveTo:pn,drop:function(Z,ie){var Ee=pn(Z);return Ee?ie?Ee+" scale("+mt.scale.drop+")":Ee:null}},fn=rt.minDropTime,dn=rt.maxDropTime,Kn=dn-fn,xn=1500,jr=.6,Pr=function(Y){var Z=Y.current,ie=Y.destination,Ee=Y.reason,Ne=_t(Z,ie);if(Ne<=0)return fn;if(Ne>=xn)return dn;var ke=Ne/xn,Ge=fn+Kn*ke,ze=Ee==="CANCEL"?Ge*jr:Ge;return Number(ze.toFixed(2))},Qr=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.dimensions,Ne=Y.viewport,ke=Y.afterCritical,Ge=Ee.draggables,ze=Ee.droppables,xt=Wt(Z),kt=xt?ze[xt]:null,Bt=ze[ie.descriptor.droppableId],Tt=vn({impact:Z,draggable:ie,draggables:Ge,afterCritical:ke,droppable:kt||Bt,viewport:Ne}),St=tt(Tt,ie.client.borderBox.center);return St},Wr=function(Y){var Z=Y.draggables,ie=Y.reason,Ee=Y.lastImpact,Ne=Y.home,ke=Y.viewport,Ge=Y.onLiftImpact;if(!Ee.at||ie!=="DROP"){var ze=Sn({draggables:Z,impact:Ge,destination:Ne,viewport:ke,forceShouldAnimate:!0});return{impact:ze,didDropInsideDroppable:!1}}if(Ee.at.type==="REORDER")return{impact:Ee,didDropInsideDroppable:!0};var xt=Object(b.a)({},Ee,{displaced:Dt});return{impact:xt,didDropInsideDroppable:!0}},ta=function(Y){var Z=Y.getState,ie=Y.dispatch;return function(Ee){return function(Ne){if(Ne.type!=="DROP"){Ee(Ne);return}var ke=Z(),Ge=Ne.payload.reason;if(ke.phase==="COLLECTING"){ie(yt({reason:Ge}));return}if(ke.phase==="IDLE")return;var ze=ke.phase==="DROP_PENDING"&&ke.isWaiting;ze&&$(!1),ke.phase==="DRAGGING"||ke.phase==="DROP_PENDING"||$(!1);var xt=ke.critical,kt=ke.dimensions,Bt=kt.draggables[ke.critical.draggable.id],Tt=Wr({reason:Ge,lastImpact:ke.impact,afterCritical:ke.afterCritical,onLiftImpact:ke.onLiftImpact,home:ke.dimensions.droppables[ke.critical.droppable.id],viewport:ke.viewport,draggables:ke.dimensions.draggables}),St=Tt.impact,Nt=Tt.didDropInsideDroppable,mn=Nt?at(St):null,lr=Nt?ot(St):null,hr={index:xt.draggable.index,droppableId:xt.droppable.id},kr={draggableId:Bt.descriptor.id,type:Bt.descriptor.type,source:hr,reason:Ge,mode:ke.movementMode,destination:mn,combine:lr},Gr=Qr({impact:St,draggable:Bt,dimensions:kt,viewport:ke.viewport,afterCritical:ke.afterCritical}),na={critical:ke.critical,afterCritical:ke.afterCritical,result:kr,impact:St},Hr=!ut(ke.current.client.offset,Gr)||Boolean(kr.combine);if(!Hr){ie(qe({completed:na}));return}var Ia=Pr({current:ke.current.client.offset,destination:Gr,reason:Ge}),Ra={newHomeClientOffset:Gr,dropDuration:Ia,completed:na};ie(_a(Ra))}}},Gn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function wr(Y){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){if(ie.target!==window&&ie.target!==window.document)return;Y()}}}function zn(Y){var Z=Y.onWindowScroll;function ie(){Z(Gn())}var Ee=L(ie),Ne=wr(Ee),ke=Te;function Ge(){return ke!==Te}function ze(){Ge()&&$(!1),ke=be(window,[Ne])}function xt(){Ge()||$(!1),Ee.cancel(),ke(),ke=Te}return{start:ze,stop:xt,isActive:Ge}}var En=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},Wn=function(Y){var Z=zn({onWindowScroll:function(Ee){Y.dispatch(da({newScroll:Ee}))}});return function(ie){return function(Ee){!Z.isActive()&&Ee.type==="INITIAL_PUBLISH"&&Z.start(),Z.isActive()&&En(Ee)&&Z.stop(),ie(Ee)}}},Vr=function(Y){var Z=!1,ie=!1,Ee=setTimeout(function(){ie=!0}),Ne=function(Ge){if(Z)return;if(ie)return;Z=!0,Y(Ge),clearTimeout(Ee)};return Ne.wasCalled=function(){return Z},Ne},ua=function(){var Y=[],Z=function(ke){var Ge=Ke(Y,function(kt){return kt.timerId===ke});Ge!==-1||$(!1);var ze=Y.splice(Ge,1),xt=ze[0];xt.callback()},ie=function(ke){var Ge=setTimeout(function(){return Z(Ge)}),ze={timerId:Ge,callback:ke};Y.push(ze)},Ee=function(){if(!Y.length)return;var ke=[].concat(Y);Y.length=0,ke.forEach(function(Ge){clearTimeout(Ge.timerId),Ge.callback()})};return{add:ie,flush:Ee}},dr=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.droppableId===ie.droppableId&&Z.index===ie.index},aa=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.draggableId===ie.draggableId&&Z.droppableId===ie.droppableId},Ca=function(Z,ie){if(Z===ie)return!0;var Ee=Z.draggable.id===ie.draggable.id&&Z.draggable.droppableId===ie.draggable.droppableId&&Z.draggable.type===ie.draggable.type&&Z.draggable.index===ie.draggable.index,Ne=Z.droppable.id===ie.droppable.id&&Z.droppable.type===ie.droppable.type;return Ee&&Ne},ha=function(Z,ie){Rr(),ie(),Lr()},Sa=function(Z,ie){return{draggableId:Z.draggable.id,type:Z.droppable.type,source:{droppableId:Z.droppable.id,index:Z.draggable.index},mode:ie}},Tr=function(Z,ie,Ee,Ne){if(!Z){Ee(Ne(ie));return}var ke=Vr(Ee),Ge={announce:ke};Z(ie,Ge),ke.wasCalled()||Ee(Ne(ie))},vr=function(Y,Z){var ie=ua(),Ee=null,Ne=function(St,Nt){Ee&&$(!1),ha("onBeforeCapture",function(){var mn=Y().onBeforeCapture;if(mn){var lr={draggableId:St,mode:Nt};mn(lr)}})},ke=function(St,Nt){Ee&&$(!1),ha("onBeforeDragStart",function(){var mn=Y().onBeforeDragStart;mn&&mn(Sa(St,Nt))})},Ge=function(St,Nt){Ee&&$(!1);var mn=Sa(St,Nt);Ee={mode:Nt,lastCritical:St,lastLocation:mn.source,lastCombine:null},ie.add(function(){ha("onDragStart",function(){return Tr(Y().onDragStart,mn,Z,_e.onDragStart)})})},ze=function(St,Nt){var mn=at(Nt),lr=ot(Nt);Ee||$(!1);var hr=!Ca(St,Ee.lastCritical);hr&&(Ee.lastCritical=St);var kr=!dr(Ee.lastLocation,mn);kr&&(Ee.lastLocation=mn);var Gr=!aa(Ee.lastCombine,lr);if(Gr&&(Ee.lastCombine=lr),!hr&&!kr&&!Gr)return;var na=Object(b.a)({},Sa(St,Ee.mode),{combine:lr,destination:mn});ie.add(function(){ha("onDragUpdate",function(){return Tr(Y().onDragUpdate,na,Z,_e.onDragUpdate)})})},xt=function(){Ee||$(!1),ie.flush()},kt=function(St){Ee||$(!1),Ee=null,ha("onDragEnd",function(){return Tr(Y().onDragEnd,St,Z,_e.onDragEnd)})},Bt=function(){if(!Ee)return;var St=Object(b.a)({},Sa(Ee.lastCritical,Ee.mode),{combine:null,destination:null,reason:"CANCEL"});kt(St)};return{beforeCapture:Ne,beforeStart:ke,start:Ge,update:ze,flush:xt,drop:kt,abort:Bt}},Mr=function(Y,Z){var ie=vr(Y,Z);return function(Ee){return function(Ne){return function(ke){if(ke.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(ke.payload.draggableId,ke.payload.movementMode);return}if(ke.type==="INITIAL_PUBLISH"){var Ge=ke.payload.critical;ie.beforeStart(Ge,ke.payload.movementMode),Ne(ke),ie.start(Ge,ke.payload.movementMode);return}if(ke.type==="DROP_COMPLETE"){var ze=ke.payload.completed.result;ie.flush(),Ne(ke),ie.drop(ze);return}if(Ne(ke),ke.type==="FLUSH"){ie.abort();return}var xt=Ee.getState();xt.phase==="DRAGGING"&&ie.update(xt.critical,xt.impact)}}}},tr=function(Y){return function(Z){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){Z(ie);return}var Ee=Y.getState();Ee.phase==="DROP_ANIMATING"||$(!1),Y.dispatch(qe({completed:Ee.completed}))}}},pa=function(Y){var Z=null,ie=null;function Ee(){ie&&(cancelAnimationFrame(ie),ie=null),Z&&(Z(),Z=null)}return function(Ne){return function(ke){if((ke.type==="FLUSH"||ke.type==="DROP_COMPLETE"||ke.type==="DROP_ANIMATION_FINISHED")&&Ee(),Ne(ke),ke.type!=="DROP_ANIMATE")return;var Ge={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var xt=Y.getState();xt.phase==="DROP_ANIMATING"&&Y.dispatch(nt())}};ie=requestAnimationFrame(function(){ie=null,Z=be(window,[Ge])})}}},xa=function(Y){return function(){return function(Z){return function(ie){(ie.type==="DROP_COMPLETE"||ie.type==="FLUSH"||ie.type==="DROP_ANIMATE")&&Y.stopPublishing(),Z(ie)}}}},ba=function(Y){var Z=!1;return function(){return function(ie){return function(Ee){if(Ee.type==="INITIAL_PUBLISH"){Z=!0,Y.tryRecordFocus(Ee.payload.critical.draggable.id),ie(Ee),Y.tryRestoreFocusRecorded();return}if(ie(Ee),!Z)return;if(Ee.type==="FLUSH"){Z=!1,Y.tryRestoreFocusRecorded();return}if(Ee.type==="DROP_COMPLETE"){Z=!1;var Ne=Ee.payload.completed.result;Ne.combine&&Y.tryShiftRecord(Ne.draggableId,Ne.combine.draggableId),Y.tryRestoreFocusRecorded()}}}}},Aa=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},ga=function(Y){return function(Z){return function(ie){return function(Ee){if(Aa(Ee)){Y.stop(),ie(Ee);return}if(Ee.type==="INITIAL_PUBLISH"){ie(Ee);var Ne=Z.getState();Ne.phase==="DRAGGING"||$(!1),Y.start(Ne);return}ie(Ee),Y.scroll(Z.getState())}}}},Na=function(Y){return function(Z){return function(ie){if(Z(ie),ie.type!=="PUBLISH_WHILE_DRAGGING")return;var Ee=Y.getState();if(Ee.phase!=="DROP_PENDING")return;if(Ee.isWaiting)return;Y.dispatch(dt({reason:Ee.reason}))}}},ka=y.d,Fa=function(Y){var Z=Y.dimensionMarshal,ie=Y.focusMarshal,Ee=Y.styleMarshal,Ne=Y.getResponders,ke=Y.announce,Ge=Y.autoScroller;return Object(y.e)(en,ka(Object(y.a)(et(Ee),xa(Z),Ie(Z),ta,tr,pa,Na,ga(Ge),Wn,ba(ie),Mr(Ne,ke))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(Y){var Z=Y.registry,ie=Y.callbacks,Ee=ni(),Ne=null,ke=function(){if(Ne)return;ie.collectionStarting(),Ne=requestAnimationFrame(function(){Ne=null,Rr();var Bt=Ee,Tt=Bt.additions,St=Bt.removals,Nt=Bt.modified,mn=Object.keys(Tt).map(function(kr){return Z.draggable.getById(kr).getDimension(Ae)}).sort(function(kr,Gr){return kr.descriptor.index-Gr.descriptor.index}),lr=Object.keys(Nt).map(function(kr){var Gr=Z.droppable.getById(kr),na=Gr.callbacks.getScrollWhileDragging();return{droppableId:kr,scroll:na}}),hr={additions:mn,removals:Object.keys(St),modified:lr};Ee=ni(),Lr(),ie.publish(hr)})},Ge=function(Bt){var Tt=Bt.descriptor.id;Ee.additions[Tt]=Bt,Ee.modified[Bt.descriptor.droppableId]=!0,Ee.removals[Tt]&&delete Ee.removals[Tt],ke()},ze=function(Bt){var Tt=Bt.descriptor;Ee.removals[Tt.id]=!0,Ee.modified[Tt.droppableId]=!0,Ee.additions[Tt.id]&&delete Ee.additions[Tt.id],ke()},xt=function(){if(!Ne)return;cancelAnimationFrame(Ne),Ne=null,Ee=ni()};return{add:Ge,remove:ze,stop:xt}}var Ai=function(Y){var Z=Y.scrollHeight,ie=Y.scrollWidth,Ee=Y.height,Ne=Y.width,ke=tt({x:ie,y:Z},{x:Ne,y:Ee}),Ge={x:Math.max(0,ke.x),y:Math.max(0,ke.y)};return Ge},La=function(){var Y=document.documentElement;return Y||$(!1),Y},bi=function(){var Y=La(),Z=Ai({scrollHeight:Y.scrollHeight,scrollWidth:Y.scrollWidth,width:Y.clientWidth,height:Y.clientHeight});return Z},Si=function(){var Y=Gn(),Z=bi(),ie=Y.y,Ee=Y.x,Ne=La(),ke=Ne.clientWidth,Ge=Ne.clientHeight,ze=Ee+ke,xt=ie+Ge,kt=n({top:ie,left:Ee,right:ze,bottom:xt}),Bt={frame:kt,scroll:{initial:Y,current:Y,max:Z,diff:{value:Ae,displacement:Ae}}};return Bt},ja=function(Y){var Z=Y.critical,ie=Y.scrollOptions,Ee=Y.registry;Rr();var Ne=Si(),ke=Ne.scroll.current,Ge=Z.droppable,ze=Ee.droppable.getAllByType(Ge.type).map(function(Tt){return Tt.callbacks.getDimensionAndWatchScroll(ke,ie)}),xt=Ee.draggable.getAllByType(Z.draggable.type).map(function(Tt){return Tt.getDimension(ke)}),kt={draggables:Jt(xt),droppables:Ft(ze)};Lr();var Bt={dimensions:kt,critical:Z,viewport:Ne};return Bt};function Ma(Y,Z,ie){if(ie.descriptor.id===Z.id)return!1;if(ie.descriptor.type!==Z.type)return!1;var Ee=Y.droppable.getById(ie.descriptor.droppableId);return!(Ee.descriptor.mode!=="virtual")}var Za=function(Y,Z){var ie=null,Ee=Fi({callbacks:{publish:Z.publishWhileDragging,collectionStarting:Z.collectionStarting},registry:Y}),Ne=function(Nt,mn){if(Y.droppable.exists(Nt)||$(!1),!ie)return;Z.updateDroppableIsEnabled({id:Nt,isEnabled:mn})},ke=function(Nt,mn){if(!ie)return;Y.droppable.exists(Nt)||$(!1),Z.updateDroppableIsCombineEnabled({id:Nt,isCombineEnabled:mn})},Ge=function(Nt,mn){if(!ie)return;Y.droppable.exists(Nt)||$(!1),Z.updateDroppableScroll({id:Nt,newScroll:mn})},ze=function(Nt,mn){if(!ie)return;Y.droppable.getById(Nt).callbacks.scroll(mn)},xt=function(){if(!ie)return;Ee.stop();var Nt=ie.critical.droppable;Y.droppable.getAllByType(Nt.type).forEach(function(mn){return mn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null},kt=function(Nt){ie||$(!1);var mn=ie.critical.draggable;Nt.type==="ADDITION"&&(Ma(Y,mn,Nt.value)&&Ee.add(Nt.value)),Nt.type==="REMOVAL"&&(Ma(Y,mn,Nt.value)&&Ee.remove(Nt.value))},Bt=function(Nt){ie&&$(!1);var mn=Y.draggable.getById(Nt.draggableId),lr=Y.droppable.getById(mn.descriptor.droppableId),hr={draggable:mn.descriptor,droppable:lr.descriptor},kr=Y.subscribe(kt);return ie={critical:hr,unsubscribe:kr},ja({critical:hr,registry:Y,scrollOptions:Nt.scrollOptions})},Tt={updateDroppableIsEnabled:Ne,updateDroppableIsCombineEnabled:ke,scrollDroppable:ze,updateDroppableScroll:Ge,startPublishing:Bt,stopPublishing:xt};return Tt},to=function(Y,Z){return Y.phase==="IDLE"?!0:Y.phase!=="DROP_ANIMATING"||Y.completed.result.draggableId===Z?!1:Y.completed.result.reason==="DROP"},Mo=function(Y){window.scrollBy(Y.x,Y.y)},Ii=T(function(Y){return Ht(Y).filter(function(Z){return Z.isEnabled?!!Z.frame:!1})}),no=function(Z,ie){var Ee=it(Ii(ie),function(Ne){return Ne.frame||$(!1),yn(Ne.frame.pageMarginBox)(Z)});return Ee},ro=function(Y){var Z=Y.center,ie=Y.destination,Ee=Y.droppables;if(ie){var Ne=Ee[ie];return Ne.frame?Ne:null}var ke=no(Z,Ee);return ke},mi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Z){return Math.pow(Z,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},uo=function(Y,Z){var ie=Y[Z.size]*mi.startFromPercentage,Ee=Y[Z.size]*mi.maxScrollAtPercentage,Ne={startScrollingFrom:ie,maxScrollValueAt:Ee};return Ne},Io=function(Y){var Z=Y.startOfRange,ie=Y.endOfRange,Ee=Y.current,Ne=ie-Z;if(Ne===0)return 0;var ke=Ee-Z,Ge=ke/Ne;return Ge},Lo=1,bo=function(Y,Z){if(Y>Z.startScrollingFrom)return 0;if(Y<=Z.maxScrollValueAt)return mi.maxPixelScroll;if(Y===Z.startScrollingFrom)return Lo;var ie=Io({startOfRange:Z.maxScrollValueAt,endOfRange:Z.startScrollingFrom,current:Y}),Ee=1-ie,Ne=mi.maxPixelScroll*mi.ease(Ee);return Math.ceil(Ne)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(Y,Z){var ie=Z,Ee=co,Ne=Date.now(),ke=Ne-ie;if(ke>=co)return Y;if(ke<Vi)return Lo;var Ge=Io({startOfRange:Vi,endOfRange:Ee,current:ke}),ze=Y*mi.ease(Ge);return Math.ceil(ze)},Yi=function(Y){var Z=Y.distanceToEdge,ie=Y.thresholds,Ee=Y.dragStartTime,Ne=Y.shouldUseTimeDampening,ke=bo(Z,ie);return ke===0?0:Ne?Math.max(Xi(ke,Ee),Lo):ke},No=function(Y){var Z=Y.container,ie=Y.distanceToEdges,Ee=Y.dragStartTime,Ne=Y.axis,ke=Y.shouldUseTimeDampening,Ge=uo(Z,Ne),ze=ie[Ne.end]<ie[Ne.start];return ze?Yi({distanceToEdge:ie[Ne.end],thresholds:Ge,dragStartTime:Ee,shouldUseTimeDampening:ke}):-1*Yi({distanceToEdge:ie[Ne.start],thresholds:Ge,dragStartTime:Ee,shouldUseTimeDampening:ke})},yo=function(Y){var Z=Y.container,ie=Y.subject,Ee=Y.proposedScroll,Ne=ie.height>Z.height,ke=ie.width>Z.width;return!ke&&!Ne?Ee:ke&&Ne?null:{x:ke?0:Ee.x,y:Ne?0:Ee.y}},ao=Ue(function(Y){return Y===0?0:Y}),Ji=function(Y){var Z=Y.dragStartTime,ie=Y.container,Ee=Y.subject,Ne=Y.center,ke=Y.shouldUseTimeDampening,Ge={top:Ne.y-ie.top,right:ie.right-Ne.x,bottom:ie.bottom-Ne.y,left:Ne.x-ie.left},ze=No({container:ie,distanceToEdges:Ge,dragStartTime:Z,axis:An,shouldUseTimeDampening:ke}),xt=No({container:ie,distanceToEdges:Ge,dragStartTime:Z,axis:on,shouldUseTimeDampening:ke}),kt=ao({x:xt,y:ze});if(ut(kt,Ae))return null;var Bt=yo({container:ie,subject:Ee,proposedScroll:kt});return Bt?ut(Bt,Ae)?null:Bt:null},Qi=Ue(function(Y){return Y===0?0:Y>0?1:-1}),ei=function(){var Y=function(ie,Ee){return ie<0?ie:ie>Ee?ie-Ee:0};return function(Z){var ie=Z.current,Ee=Z.max,Ne=Z.change,ke=Je(ie,Ne),Ge={x:Y(ke.x,Ee.x),y:Y(ke.y,Ee.y)};return ut(Ge,Ae)?null:Ge}}(),Li=function(Z){var ie=Z.max,Ee=Z.current,Ne=Z.change,ke={x:Math.max(Ee.x,ie.x),y:Math.max(Ee.y,ie.y)},Ge=Qi(Ne),ze=ei({max:ke,current:Ee,change:Ge});return ze?Ge.x!==0&&ze.x===0?!0:Ge.y!==0&&ze.y===0:!0},Di=function(Z,ie){return Li({current:Z.scroll.current,max:Z.scroll.max,change:ie})},Zi=function(Z,ie){if(!Di(Z,ie))return null;var Ee=Z.scroll.max,Ne=Z.scroll.current;return ei({current:Ne,max:Ee,change:ie})},Ri=function(Z,ie){var Ee=Z.frame;return Ee?Li({current:Ee.scroll.current,max:Ee.scroll.max,change:ie}):!1},Eo=function(Z,ie){var Ee=Z.frame;return Ee&&Ri(Z,ie)?ei({current:Ee.scroll.current,max:Ee.scroll.max,change:ie}):null},xo=function(Y){var Z=Y.viewport,ie=Y.subject,Ee=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,Ge=Ji({dragStartTime:Ne,container:Z.frame,subject:ie,center:Ee,shouldUseTimeDampening:ke});return Ge&&Di(Z,Ge)?Ge:null},Co=function(Y){var Z=Y.droppable,ie=Y.subject,Ee=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,Ge=Z.frame;if(!Ge)return null;var ze=Ji({dragStartTime:Ne,container:Ge.pageMarginBox,subject:ie,center:Ee,shouldUseTimeDampening:ke});return ze&&Ri(Z,ze)?ze:null},io=function(Y){var Z=Y.state,ie=Y.dragStartTime,Ee=Y.shouldUseTimeDampening,Ne=Y.scrollWindow,ke=Y.scrollDroppable,Ge=Z.current.page.borderBoxCenter,ze=Z.dimensions.draggables[Z.critical.draggable.id],xt=ze.page.marginBox;if(Z.isWindowScrollAllowed){var kt=Z.viewport,Bt=xo({dragStartTime:ie,viewport:kt,subject:xt,center:Ge,shouldUseTimeDampening:Ee});if(Bt){Ne(Bt);return}}var Tt=ro({center:Ge,destination:Wt(Z.impact),droppables:Z.dimensions.droppables});if(!Tt)return;var St=Co({dragStartTime:ie,droppable:Tt,subject:xt,center:Ge,shouldUseTimeDampening:Ee});St&&ke(Tt.descriptor.id,St)},Ni=function(Y){var Z=Y.scrollWindow,ie=Y.scrollDroppable,Ee=L(Z),Ne=L(ie),ke=null,Ge=function(Bt){ke||$(!1);var Tt=ke,St=Tt.shouldUseTimeDampening,Nt=Tt.dragStartTime;io({state:Bt,scrollWindow:Ee,scrollDroppable:Ne,dragStartTime:Nt,shouldUseTimeDampening:St})},ze=function(Bt){Rr(),ke&&$(!1);var Tt=Date.now(),St=!1,Nt=function(){St=!0};io({state:Bt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Nt,scrollDroppable:Nt}),ke={dragStartTime:Tt,shouldUseTimeDampening:St},Lr(),St&&Ge(Bt)},xt=function(){if(!ke)return;Ee.cancel(),Ne.cancel(),ke=null};return{start:ze,stop:xt,scroll:Ge}},qi=function(Y){var Z=Y.move,ie=Y.scrollDroppable,Ee=Y.scrollWindow,Ne=function(kt,Bt){var Tt=Je(kt.current.client.selection,Bt);Z({client:Tt})},ke=function(kt,Bt){if(!Ri(kt,Bt))return Bt;var Tt=Eo(kt,Bt);if(!Tt)return ie(kt.descriptor.id,Bt),null;var St=tt(Bt,Tt);ie(kt.descriptor.id,St);var Nt=tt(Bt,St);return Nt},Ge=function(kt,Bt,Tt){if(!kt)return Tt;if(!Di(Bt,Tt))return Tt;var St=Zi(Bt,Tt);if(!St)return Ee(Tt),null;var Nt=tt(Tt,St);Ee(Nt);var mn=tt(Tt,Nt);return mn},ze=function(kt){var Bt=kt.scrollJumpRequest;if(!Bt)return;var Tt=Wt(kt.impact);Tt||$(!1);var St=ke(kt.dimensions.droppables[Tt],Bt);if(!St)return;var Nt=kt.viewport,mn=Ge(kt.isWindowScrollAllowed,Nt,St);if(!mn)return;Ne(kt,mn)};return ze},ko=function(Y){var Z=Y.scrollDroppable,ie=Y.scrollWindow,Ee=Y.move,Ne=Ni({scrollWindow:ie,scrollDroppable:Z}),ke=qi({move:Ee,scrollWindow:ie,scrollDroppable:Z}),Ge=function(kt){if(kt.phase!=="DRAGGING")return;if(kt.movementMode==="FLUID"){Ne.scroll(kt);return}if(!kt.scrollJumpRequest)return;ke(kt)},ze={scroll:Ge,start:Ne.start,stop:Ne.stop};return ze},oo="data-rbd",so=function(){var Y=oo+"-drag-handle";return{base:Y,draggableId:Y+"-draggable-id",contextId:Y+"-context-id"}}(),So=function(){var Y=oo+"-draggable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),Uo=function(){var Y=oo+"-droppable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),jo={contextId:oo+"-scroll-container-context-id"},fi=function(Z){return function(ie){return"["+ie+'="'+Z+'"]'}},Ha=function(Z,ie){return Z.map(function(Ee){var Ne=Ee.styles[ie];return Ne?Ee.selector+" { "+Ne+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(Y){var Z=fi(Y),ie=function(){var ze=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Z(so.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:ze,dragging:ri,dropAnimating:ze}}}(),Ee=function(){var ze=`
transition: `+zt.outOfTheWay+`;
`;return{selector:Z(So.contextId),styles:{dragging:ze,dropAnimating:ze,userCancel:ze}}}(),Ne={selector:Z(Uo.contextId),styles:{always:"overflow-anchor: none;"}},ke={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;
`}},Ge=[Ee,ie,Ne,ke];return{always:Ha(Ge,"always"),resting:Ha(Ge,"resting"),dragging:Ha(Ge,"dragging"),dropAnimating:Ha(Ge,"dropAnimating"),userCancel:Ha(Ge,"userCancel")}},ai=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?M.useLayoutEffect:M.useEffect,wo=function(){var Z=document.querySelector("head");return Z||$(!1),Z},yi=function(Z){var ie=document.createElement("style");return Z&&ie.setAttribute("nonce",Z),ie.type="text/css",ie};function Bo(Y,Z){var ie=f(function(){return Xa(Y)},[Y]),Ee=Object(M.useRef)(null),Ne=Object(M.useRef)(null),ke=a(T(function(Tt){var St=Ne.current;St||$(!1),St.textContent=Tt}),[]),Ge=a(function(Tt){var St=Ee.current;St||$(!1),St.textContent=Tt},[]);ai(function(){!Ee.current&&!Ne.current||$(!1);var Tt=yi(Z),St=yi(Z);return Ee.current=Tt,Ne.current=St,Tt.setAttribute(oo+"-always",Y),St.setAttribute(oo+"-dynamic",Y),wo().appendChild(Tt),wo().appendChild(St),Ge(ie.always),ke(ie.resting),function(){var Nt=function(lr){var hr=lr.current;hr||$(!1),wo().removeChild(hr),lr.current=null};Nt(Ee),Nt(Ne)}},[Z,Ge,ke,ie.always,ie.resting,Y]);var ze=a(function(){return ke(ie.dragging)},[ke,ie.dragging]),xt=a(function(Tt){if(Tt==="DROP"){ke(ie.dropAnimating);return}ke(ie.userCancel)},[ke,ie.dropAnimating,ie.userCancel]),kt=a(function(){if(!Ne.current)return;ke(ie.resting)},[ke,ie.resting]),Bt=f(function(){return{dragging:ze,dropping:xt,resting:kt}},[ze,xt,kt]);return Bt}var To=function(Y){return Y&&Y.ownerDocument?Y.ownerDocument.defaultView:window};function $i(Y){return Y instanceof To(Y).HTMLElement}function Wi(Y,Z){var ie="["+so.contextId+'="'+Y+'"]',Ee=Ct(document.querySelectorAll(ie));if(!Ee.length)return null;var Ne=it(Ee,function(ke){return ke.getAttribute(so.draggableId)===Z});return Ne&&$i(Ne)?Ne:null}function Oo(Y){var Z=Object(M.useRef)({}),ie=Object(M.useRef)(null),Ee=Object(M.useRef)(null),Ne=Object(M.useRef)(!1),ke=a(function(St,Nt){var mn={id:St,focus:Nt};return Z.current[St]=mn,function(){var hr=Z.current,kr=hr[St];kr!==mn&&delete hr[St]}},[]),Ge=a(function(St){var Nt=Wi(Y,St);Nt&&Nt!==document.activeElement&&Nt.focus()},[Y]),ze=a(function(St,Nt){ie.current===St&&(ie.current=Nt)},[]),xt=a(function(){if(Ee.current)return;if(!Ne.current)return;Ee.current=requestAnimationFrame(function(){Ee.current=null;var St=ie.current;St&&Ge(St)})},[Ge]),kt=a(function(St){ie.current=null;var Nt=document.activeElement;if(!Nt)return;if(Nt.getAttribute(so.draggableId)!==St)return;ie.current=St},[]);ai(function(){return Ne.current=!0,function(){Ne.current=!1;var St=Ee.current;St&&cancelAnimationFrame(St)}},[]);var Bt=f(function(){return{register:ke,tryRecordFocus:kt,tryRestoreFocusRecorded:xt,tryShiftRecord:ze}},[ke,kt,xt,ze]);return Bt}function fo(){var Y={draggables:{},droppables:{}},Z=[];function ie(Tt){return Z.push(Tt),function(){var Nt=Z.indexOf(Tt);if(Nt===-1)return;Z.splice(Nt,1)}}function Ee(Tt){Z.length&&Z.forEach(function(St){return St(Tt)})}function Ne(Tt){return Y.draggables[Tt]||null}function ke(Tt){var St=Ne(Tt);return St||$(!1),St}var Ge={register:function(St){Y.draggables[St.descriptor.id]=St,Ee({type:"ADDITION",value:St})},update:function(St,Nt){var mn=Y.draggables[Nt.descriptor.id];if(!mn)return;if(mn.uniqueId!==St.uniqueId)return;delete Y.draggables[Nt.descriptor.id],Y.draggables[St.descriptor.id]=St},unregister:function(St){var Nt=St.descriptor.id,mn=Ne(Nt);if(!mn)return;if(St.uniqueId!==mn.uniqueId)return;delete Y.draggables[Nt],Ee({type:"REMOVAL",value:St})},getById:ke,findById:Ne,exists:function(St){return Boolean(Ne(St))},getAllByType:function(St){return je(Y.draggables).filter(function(Nt){return Nt.descriptor.type===St})}};function ze(Tt){return Y.droppables[Tt]||null}function xt(Tt){var St=ze(Tt);return St||$(!1),St}var kt={register:function(St){Y.droppables[St.descriptor.id]=St},unregister:function(St){var Nt=ze(St.descriptor.id);if(!Nt)return;if(St.uniqueId!==Nt.uniqueId)return;delete Y.droppables[St.descriptor.id]},getById:xt,findById:ze,exists:function(St){return Boolean(ze(St))},getAllByType:function(St){return je(Y.droppables).filter(function(Nt){return Nt.descriptor.type===St})}};function Bt(){Y.draggables={},Y.droppables={},Z.length=0}return{draggable:Ge,droppable:kt,subscribe:ie,clean:Bt}}function Wo(){var Y=f(fo,[]);return Object(M.useEffect)(function(){return function(){requestAnimationFrame(Y.clean)}},[Y]),Y}var lo=g.a.createContext(null),Da=function(){var Y=document.body;return Y||$(!1),Y},ya={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ga=function(Z){return"rbd-announcement-"+Z};function ui(Y){var Z=f(function(){return Ga(Y)},[Y]),ie=Object(M.useRef)(null);Object(M.useEffect)(function(){var ke=document.createElement("div");return ie.current=ke,ke.id=Z,ke.setAttribute("aria-live","assertive"),ke.setAttribute("aria-atomic","true"),Object(b.a)(ke.style,ya),Da().appendChild(ke),function(){setTimeout(function(){var xt=Da();xt.contains(ke)&&xt.removeChild(ke),ke===ie.current&&(ie.current=null)})}},[Z]);var Ee=a(function(Ne){var ke=ie.current;if(ke){ke.textContent=Ne;return}},[]);return Ee}var eo=0,ki={separator:"::"};function ho(){eo=0}function wi(Y,Z){return Z===void 0&&(Z=ki),f(function(){return""+Y+Z.separator+eo++},[Z.separator,Y])}function qa(Y){var Z=Y.contextId,ie=Y.uniqueId;return"rbd-hidden-text-"+Z+"-"+ie}function po(Y){var Z=Y.contextId,ie=Y.text,Ee=wi("hidden-text",{separator:"-"}),Ne=f(function(){return qa({contextId:Z,uniqueId:Ee})},[Ee,Z]);return Object(M.useEffect)(function(){var Ge=document.createElement("div");return Ge.id=Ne,Ge.textContent=ie,Ge.style.display="none",Da().appendChild(Ge),function(){var xt=Da();xt.contains(Ge)&&xt.removeChild(Ge)}},[Ne,ie]),Ne}var Hi=g.a.createContext(null),mo={react:"^16.8.5","react-dom":"^16.8.5"},hi=/(\d+)\.(\d+)\.(\d+)/,Pa=function(Z){var ie=hi.exec(Z);ie!=null||$(!1);var Ee=Number(ie[1]),Ne=Number(ie[2]),ke=Number(ie[3]);return{major:Ee,minor:Ne,patch:ke,raw:Z}},sa=function(Z,ie){return ie.major>Z.major?!0:ie.major<Z.major?!1:ie.minor>Z.minor?!0:ie.minor<Z.minor?!1:ie.patch>=Z.patch},Er=function(Y,Z){var ie=Pa(Y),Ee=Pa(Z);if(sa(ie,Ee))return},Zr=`
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
`,va=function(Y){var Z=Y.doctype;if(!Z)return;Z.name.toLowerCase()!=="html",Z.publicId!==""};function Wa(Y){}function Ei(Y,Z){Wa(function(){Object(M.useEffect)(function(){try{Y()}catch(ie){Se(`
A setup problem was encountered.
> `+ie.message+`
`)}},Z)})}function Pi(){Ei(function(){Er(mo.react,g.a.version),va(document)},[])}function $a(Y){var Z=Object(M.useRef)(Y);return Object(M.useEffect)(function(){Z.current=Y}),Z}function xi(){var Y=null;function Z(){return Boolean(Y)}function ie(Ge){return Ge===Y}function Ee(Ge){Y&&$(!1);var ze={abandon:Ge};return Y=ze,ze}function Ne(){Y||$(!1),Y=null}function ke(){Y&&(Y.abandon(),Ne())}return{isClaimed:Z,isActive:ie,claim:Ee,release:Ne,tryAbandon:ke}}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(Y){ms[Y.keyCode]&&Y.preventDefault()},gs=function(){var Y="visibilitychange";if(typeof document=="undefined")return Y;var Z=[Y,"ms"+Y,"webkit"+Y,"moz"+Y,"o"+Y],ie=it(Z,function(Ee){return"on"+Ee in document});return ie||Y}(),Zs=0,Ps=5;function Ho(Y,Z){return Math.abs(Z.x-Y.x)>=Ps||Math.abs(Z.y-Y.y)>=Ps}var vs={type:"IDLE"};function _s(Y){var Z=Y.cancel,ie=Y.completed,Ee=Y.getPhase,Ne=Y.setPhase;return[{eventName:"mousemove",fn:function(Ge){var ze=Ge.button,xt=Ge.clientX,kt=Ge.clientY;if(ze!==Zs)return;var Bt={x:xt,y:kt},Tt=Ee();if(Tt.type==="DRAGGING"){Ge.preventDefault(),Tt.actions.move(Bt);return}Tt.type==="PENDING"||$(!1);var St=Tt.point;if(!Ho(St,Bt))return;Ge.preventDefault();var Nt=Tt.actions.fluidLift(Bt);Ne({type:"DRAGGING",actions:Nt})}},{eventName:"mouseup",fn:function(Ge){var ze=Ee();if(ze.type!=="DRAGGING"){Z();return}Ge.preventDefault(),ze.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(Ge){Ee().type==="DRAGGING"&&Ge.preventDefault(),Z()}},{eventName:"keydown",fn:function(Ge){var ze=Ee();if(ze.type==="PENDING"){Z();return}if(Ge.keyCode===Qa){Ge.preventDefault(),Z();return}Rs(Ge)}},{eventName:"resize",fn:Z},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ee().type==="PENDING"&&Z()}},{eventName:"webkitmouseforcedown",fn:function(Ge){var ze=Ee();if(ze.type!=="IDLE"||$(!1),ze.actions.shouldRespectForcePress()){Z();return}Ge.preventDefault()}},{eventName:gs,fn:Z}]}function $s(Y){var Z=Object(M.useRef)(vs),ie=Object(M.useRef)(Te),Ee=f(function(){return{eventName:"mousedown",fn:function(Tt){if(Tt.defaultPrevented)return;if(Tt.button!==Zs)return;if(Tt.ctrlKey||Tt.metaKey||Tt.shiftKey||Tt.altKey)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var Nt=Y.tryGetLock(St,Ge,{sourceEvent:Tt});if(!Nt)return;Tt.preventDefault();var mn={x:Tt.clientX,y:Tt.clientY};ie.current(),kt(Nt,mn)}}},[Y]),Ne=f(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Tt){if(Tt.defaultPrevented)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var Nt=Y.findOptionsForDraggable(St);if(!Nt)return;if(Nt.shouldRespectForcePress)return;if(!Y.canGetLock(St))return;Tt.preventDefault()}}},[Y]),ke=a(function(){var Tt={passive:!1,capture:!0};ie.current=be(window,[Ne,Ee],Tt)},[Ne,Ee]),Ge=a(function(){var Bt=Z.current;if(Bt.type==="IDLE")return;Z.current=vs,ie.current(),ke()},[ke]),ze=a(function(){var Bt=Z.current;Ge(),Bt.type==="DRAGGING"&&Bt.actions.cancel({shouldBlockNextClick:!0}),Bt.type==="PENDING"&&Bt.actions.abort()},[Ge]),xt=a(function(){var Tt={capture:!0,passive:!1},St=_s({cancel:ze,completed:Ge,getPhase:function(){return Z.current},setPhase:function(mn){Z.current=mn}});ie.current=be(window,St,Tt)},[ze,Ge]),kt=a(function(Tt,St){Z.current.type==="IDLE"||$(!1),Z.current={type:"PENDING",point:St,actions:Tt},xt()},[xt]);ai(function(){return ke(),function(){ie.current()}},[ke])}var Ao;function el(){}var Ll=(Ao={},Ao[Pl]=!0,Ao[Ys]=!0,Ao[Ds]=!0,Ao[hs]=!0,Ao);function tl(Y,Z){function ie(){Z(),Y.cancel()}function Ee(){Z(),Y.drop()}return[{eventName:"keydown",fn:function(ke){if(ke.keyCode===Qa){ke.preventDefault(),ie();return}if(ke.keyCode===As){ke.preventDefault(),Ee();return}if(ke.keyCode===Il){ke.preventDefault(),Y.moveDown();return}if(ke.keyCode===Ml){ke.preventDefault(),Y.moveUp();return}if(ke.keyCode===Qs){ke.preventDefault(),Y.moveRight();return}if(ke.keyCode===Js){ke.preventDefault(),Y.moveLeft();return}if(Ll[ke.keyCode]){ke.preventDefault();return}Rs(ke)}},{eventName:"mousedown",fn:ie},{eventName:"mouseup",fn:ie},{eventName:"click",fn:ie},{eventName:"touchstart",fn:ie},{eventName:"resize",fn:ie},{eventName:"wheel",fn:ie,options:{passive:!0}},{eventName:gs,fn:ie}]}function gi(Y){var Z=Object(M.useRef)(el),ie=f(function(){return{eventName:"keydown",fn:function(ke){if(ke.defaultPrevented)return;if(ke.keyCode!==As)return;var Ge=Y.findClosestDraggableId(ke);if(!Ge)return;var ze=Y.tryGetLock(Ge,Bt,{sourceEvent:ke});if(!ze)return;ke.preventDefault();var xt=!0,kt=ze.snapLift();Z.current();function Bt(){xt||$(!1),xt=!1,Z.current(),Ee()}Z.current=be(window,tl(kt,Bt),{capture:!0,passive:!1})}}},[Y]),Ee=a(function(){var ke={passive:!1,capture:!0};Z.current=be(window,[ie],ke)},[ie]);ai(function(){return Ee(),function(){Z.current()}},[Ee])}var Ko={type:"IDLE"},nl=120,rl=.15;function al(Y){var Z=Y.cancel,ie=Y.getPhase;return[{eventName:"orientationchange",fn:Z},{eventName:"resize",fn:Z},{eventName:"contextmenu",fn:function(Ne){Ne.preventDefault()}},{eventName:"keydown",fn:function(Ne){if(ie().type!=="DRAGGING"){Z();return}Ne.keyCode===Qa&&Ne.preventDefault(),Z()}},{eventName:gs,fn:Z}]}function Go(Y){var Z=Y.cancel,ie=Y.completed,Ee=Y.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ke){var Ge=Ee();if(Ge.type!=="DRAGGING"){Z();return}Ge.hasMoved=!0;var ze=ke.touches[0],xt=ze.clientX,kt=ze.clientY,Bt={x:xt,y:kt};ke.preventDefault(),Ge.actions.move(Bt)}},{eventName:"touchend",fn:function(ke){var Ge=Ee();if(Ge.type!=="DRAGGING"){Z();return}ke.preventDefault(),Ge.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(ke){if(Ee().type!=="DRAGGING"){Z();return}ke.preventDefault(),Z()}},{eventName:"touchforcechange",fn:function(ke){var Ge=Ee();Ge.type!=="IDLE"||$(!1);var ze=ke.touches[0];if(!ze)return;var xt=ze.force>=rl;if(!xt)return;var kt=Ge.actions.shouldRespectForcePress();if(Ge.type==="PENDING"){kt&&Z();return}if(kt){if(Ge.hasMoved){ke.preventDefault();return}Z();return}ke.preventDefault()}},{eventName:gs,fn:Z}]}function bs(Y){var Z=Object(M.useRef)(Ko),ie=Object(M.useRef)(Te),Ee=a(function(){return Z.current},[]),Ne=a(function(Nt){Z.current=Nt},[]),ke=f(function(){return{eventName:"touchstart",fn:function(Nt){if(Nt.defaultPrevented)return;var mn=Y.findClosestDraggableId(Nt);if(!mn)return;var lr=Y.tryGetLock(mn,ze,{sourceEvent:Nt});if(!lr)return;var hr=Nt.touches[0],kr=hr.clientX,Gr=hr.clientY,na={x:kr,y:Gr};ie.current(),Tt(lr,na)}}},[Y]),Ge=a(function(){var Nt={capture:!0,passive:!1};ie.current=be(window,[ke],Nt)},[ke]),ze=a(function(){var St=Z.current;if(St.type==="IDLE")return;St.type==="PENDING"&&clearTimeout(St.longPressTimerId),Ne(Ko),ie.current(),Ge()},[Ge,Ne]),xt=a(function(){var St=Z.current;ze(),St.type==="DRAGGING"&&St.actions.cancel({shouldBlockNextClick:!0}),St.type==="PENDING"&&St.actions.abort()},[ze]),kt=a(function(){var Nt={capture:!0,passive:!1},mn={cancel:xt,completed:ze,getPhase:Ee},lr=be(window,Go(mn),Nt),hr=be(window,al(mn),Nt);ie.current=function(){lr(),hr()}},[xt,Ee,ze]),Bt=a(function(){var Nt=Ee();Nt.type==="PENDING"||$(!1);var mn=Nt.actions.fluidLift(Nt.point);Ne({type:"DRAGGING",actions:mn,hasMoved:!1})},[Ee,Ne]),Tt=a(function(Nt,mn){Ee().type==="IDLE"||$(!1);var lr=setTimeout(Bt,nl);Ne({type:"PENDING",point:mn,actions:Nt,longPressTimerId:lr}),kt()},[kt,Ee,Ne,Bt]);ai(function(){return Ge(),function(){ie.current();var mn=Ee();mn.type==="PENDING"&&(clearTimeout(mn.longPressTimerId),Ne(Ko))}},[Ee,Ge,Ne]),ai(function(){var Nt=be(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Nt},[])}function il(Y){Wa(function(){var Z=$a(Y);Ei(function(){Z.current.length===Y.length||$(!1)})})}var ol={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(Y,Z){if(Z==null)return!1;var ie=Boolean(ol[Z.tagName.toLowerCase()]);if(ie)return!0;var Ee=Z.getAttribute("contenteditable");return Ee==="true"||Ee===""?!0:Z===Y?!1:Ms(Y,Z.parentElement)}function zo(Y,Z){var ie=Z.target;return $i(ie)?Ms(Y,ie):!1}var sl=function(Y){return n(Y.getBoundingClientRect()).center};function ys(Y){return Y instanceof To(Y).Element}var ll=function(){var Y="matches";if(typeof document=="undefined")return Y;var Z=[Y,"msMatchesSelector","webkitMatchesSelector"],ie=it(Z,function(Ee){return Ee in Element.prototype});return ie||Y}();function Vo(Y,Z){return Y==null?null:Y[ll](Z)?Y:Vo(Y.parentElement,Z)}function Nl(Y,Z){return Y.closest?Y.closest(Z):Vo(Y,Z)}function Xo(Y){return"["+so.contextId+'="'+Y+'"]'}function ul(Y,Z){var ie=Z.target;if(!ys(ie))return null;var Ee=Xo(Y),Ne=Nl(ie,Ee);return Ne&&$i(Ne)?Ne:null}function cl(Y,Z){var ie=ul(Y,Z);return ie?ie.getAttribute(so.draggableId):null}function dl(Y,Z){var ie="["+So.contextId+'="'+Y+'"]',Ee=Ct(document.querySelectorAll(ie)),Ne=it(Ee,function(ke){return ke.getAttribute(So.id)===Z});return Ne&&$i(Ne)?Ne:null}function ts(Y){Y.preventDefault()}function Do(Y){var Z=Y.expected,ie=Y.phase,Ee=Y.isLockActive,Ne=Y.shouldWarn;return Ee()?!(Z!==ie):!1}function Yo(Y){var Z=Y.lockAPI,ie=Y.store,Ee=Y.registry,Ne=Y.draggableId;if(Z.isClaimed())return!1;var ke=Ee.draggable.findById(Ne);return ke&&ke.options.isEnabled?!!to(ie.getState(),Ne):!1}function ns(Y){var Z=Y.lockAPI,ie=Y.contextId,Ee=Y.store,Ne=Y.registry,ke=Y.draggableId,Ge=Y.forceSensorStop,ze=Y.sourceEvent,xt=Yo({lockAPI:Z,store:Ee,registry:Ne,draggableId:ke});if(!xt)return null;var kt=Ne.draggable.getById(ke),Bt=dl(ie,kt.descriptor.id);if(!Bt)return null;if(ze&&!kt.options.canDragInteractiveElements&&zo(Bt,ze))return null;var Tt=Z.claim(Ge||Te),St="PRE_DRAG";function Nt(){return kt.options.shouldRespectForcePress}function mn(){return Z.isActive(Tt)}function lr(Ra,za){Do({expected:Ra,phase:St,isLockActive:mn,shouldWarn:!0})&&Ee.dispatch(za())}var hr=lr.bind(null,"DRAGGING");function kr(Ra){function za(){Z.release(),St="COMPLETED"}St!=="PRE_DRAG"&&(za(),St==="PRE_DRAG"||$(!1)),Ee.dispatch(Xn(Ra.liftActionArgs)),St="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Ra.cleanup(),p.shouldBlockNextClick){var B=be(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(B)}za(),Ee.dispatch(dt({reason:t}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:St,isLockActive:mn,shouldWarn:!1})},shouldRespectForcePress:Nt,drop:function(p){return si("DROP",p)},cancel:function(p){return si("CANCEL",p)}},Ra.actions)}function Gr(Ra){var za=L(function(t){hr(function(){return sr({client:t})})}),si=kr({liftActionArgs:{id:ke,clientSelection:Ra,movementMode:"FLUID"},cleanup:function(){return za.cancel()},actions:{move:za}});return Object(b.a)({},si,{move:za})}function na(){var Ra={moveUp:function(){return hr(gr)},moveRight:function(){return hr(Kr)},moveDown:function(){return hr(Sr)},moveLeft:function(){return hr(Jr)}};return kr({liftActionArgs:{id:ke,clientSelection:sl(Bt),movementMode:"SNAP"},cleanup:Te,actions:Ra})}function Hr(){var Ra=Do({expected:"PRE_DRAG",phase:St,isLockActive:mn,shouldWarn:!0});Ra&&Z.release()}var Ia={isActive:function(){return Do({expected:"PRE_DRAG",phase:St,isLockActive:mn,shouldWarn:!1})},shouldRespectForcePress:Nt,fluidLift:Gr,snapLift:na,abort:Hr};return Ia}var fl=[$s,gi,bs];function kl(Y){var Z=Y.contextId,ie=Y.store,Ee=Y.registry,Ne=Y.customSensors,ke=Y.enableDefaultSensors,Ge=[].concat(ke?fl:[],Ne||[]),ze=Object(M.useState)(function(){return xi()})[0],xt=a(function(Gr,na){Gr.isDragging&&!na.isDragging&&ze.tryAbandon()},[ze]);ai(function(){var Gr=ie.getState(),na=ie.subscribe(function(){var Hr=ie.getState();xt(Gr,Hr),Gr=Hr});return na},[ze,ie,xt]),ai(function(){return ze.tryAbandon},[ze.tryAbandon]);var kt=a(function(kr){return Yo({lockAPI:ze,registry:Ee,store:ie,draggableId:kr})},[ze,Ee,ie]),Bt=a(function(kr,Gr,na){return ns({lockAPI:ze,registry:Ee,contextId:Z,store:ie,draggableId:kr,forceSensorStop:Gr,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Z,ze,Ee,ie]),Tt=a(function(kr){return cl(Z,kr)},[Z]),St=a(function(kr){var Gr=Ee.draggable.findById(kr);return Gr?Gr.options:null},[Ee.draggable]),Nt=a(function(){if(!ze.isClaimed())return;ze.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Oa())},[ze,ie]),mn=a(ze.isClaimed,[ze]),lr=f(function(){return{canGetLock:kt,tryGetLock:Bt,findClosestDraggableId:Tt,findOptionsForDraggable:St,tryReleaseLock:Nt,isLockClaimed:mn}},[kt,Bt,Tt,St,Nt,mn]);il(Ge);for(var hr=0;hr<Ge.length;hr++)Ge[hr](lr)}var hl=function(Z){return{onBeforeCapture:Z.onBeforeCapture,onBeforeDragStart:Z.onBeforeDragStart,onDragStart:Z.onDragStart,onDragEnd:Z.onDragEnd,onDragUpdate:Z.onDragUpdate}};function Gi(Y){return Y.current||$(!1),Y.current}function Jo(Y){var Z=Y.contextId,ie=Y.setCallbacks,Ee=Y.sensors,Ne=Y.nonce,ke=Y.dragHandleUsageInstructions,Ge=Object(M.useRef)(null);Pi();var ze=$a(Y),xt=a(function(){return hl(ze.current)},[ze]),kt=ui(Z),Bt=po({contextId:Z,text:ke}),Tt=Bo(Z,Ne),St=a(function(t){Gi(Ge).dispatch(t)},[]),Nt=f(function(){return Object(y.b)({publishWhileDragging:Un,updateDroppableScroll:ur,updateDroppableIsEnabled:or,updateDroppableIsCombineEnabled:qr,collectionStarting:rr},St)},[St]),mn=Wo(),lr=f(function(){return Za(mn,Nt)},[mn,Nt]),hr=f(function(){return ko(Object(b.a)({scrollWindow:Mo,scrollDroppable:lr.scrollDroppable},Object(y.b)({move:sr},St)))},[lr.scrollDroppable,St]),kr=Oo(Z),Gr=f(function(){return Fa({announce:kt,autoScroller:hr,dimensionMarshal:lr,focusMarshal:kr,getResponders:xt,styleMarshal:Tt})},[kt,hr,lr,kr,xt,Tt]);Ge.current=Gr;var na=a(function(){var t=Gi(Ge),p=t.getState();p.phase!=="IDLE"&&t.dispatch(Oa())},[]),Hr=a(function(){var t=Gi(Ge).getState();return t.isDragging||t.phase==="DROP_ANIMATING"},[]),Ia=f(function(){return{isDragging:Hr,tryAbort:na}},[Hr,na]);ie(Ia);var Ra=a(function(t){return to(Gi(Ge).getState(),t)},[]),za=a(function(){return rn(Gi(Ge).getState())},[]),si=f(function(){return{marshal:lr,focus:kr,contextId:Z,canLift:Ra,isMovementAllowed:za,dragHandleUsageInstructionsId:Bt,registry:mn}},[Z,lr,Bt,kr,Ra,za,mn]);return kl({contextId:Z,store:Gr,registry:mn,customSensors:Ee,enableDefaultSensors:Y.enableDefaultSensors!==!1}),Object(M.useEffect)(function(){return na},[na]),g.a.createElement(Hi.Provider,{value:si},g.a.createElement(C.a,{context:lo,store:Gr},Y.children))}var Qo=0;function Ul(){Qo=0}function pl(){return f(function(){return""+Qo++},[])}function iu(){Ul(),ho()}function jl(Y){var Z=pl(),ie=Y.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return g.a.createElement(me,null,function(Ee){return g.a.createElement(Jo,{nonce:Y.nonce,contextId:Z,setCallbacks:Ee,dragHandleUsageInstructions:ie,enableDefaultSensors:Y.enableDefaultSensors,sensors:Y.sensors,onBeforeCapture:Y.onBeforeCapture,onBeforeDragStart:Y.onBeforeDragStart,onDragStart:Y.onDragStart,onDragUpdate:Y.onDragUpdate,onDragEnd:Y.onDragEnd},Y.children)})}var Is=function(Z){return function(ie){return Z===ie}},Ti=Is("scroll"),ml=Is("auto"),Bl=Is("visible"),gl=function(Z,ie){return ie(Z.overflowX)||ie(Z.overflowY)},Fl=function(Z,ie){return ie(Z.overflowX)&&ie(Z.overflowY)},Ls=function(Z){var ie=window.getComputedStyle(Z),Ee={overflowX:ie.overflowX,overflowY:ie.overflowY};return gl(Ee,Ti)||gl(Ee,ml)},vl=function(){return!1;var Z,ie;if(!Ls(Z))return!1;var Ee,Ne;if(Fl(Ne,Bl))return!1},Ns=function Y(Z){return Z==null?null:Z===document.body?vl()?Z:null:Z===document.documentElement?null:Ls(Z)?Z:Y(Z.parentElement)},ou=function(Y){if(!Y)return;var Z=Ns(Y.parentElement);if(!Z)return},ks=function(Y){return{x:Y.scrollLeft,y:Y.scrollTop}},Wl=function Y(Z){if(!Z)return!1;var ie=window.getComputedStyle(Z);return ie.position==="fixed"?!0:Y(Z.parentElement)},Ro=function(Y){var Z=Ns(Y),ie=Wl(Y);return{closestScrollable:Z,isFixedOnPage:ie}},rs=function(Y){var Z=Y.descriptor,ie=Y.isEnabled,Ee=Y.isCombineEnabled,Ne=Y.isFixedOnPage,ke=Y.direction,Ge=Y.client,ze=Y.page,xt=Y.closest,kt=function(){if(!xt)return null;var Nt=xt.scrollSize,mn=xt.client,lr=Ai({scrollHeight:Nt.scrollHeight,scrollWidth:Nt.scrollWidth,height:mn.paddingBox.height,width:mn.paddingBox.width});return{pageMarginBox:xt.page.marginBox,frameClient:mn,scrollSize:Nt,shouldClipSubject:xt.shouldClipSubject,scroll:{initial:xt.scroll,current:xt.scroll,max:lr,diff:{value:Ae,displacement:Ae}}}}(),Bt=ke==="vertical"?An:on,Tt=Ce({page:ze,withPlaceholder:null,axis:Bt,frame:kt}),St={descriptor:Z,isCombineEnabled:Ee,isFixedOnPage:Ne,axis:Bt,isEnabled:ie,client:Ge,page:ze,frame:kt,subject:Tt};return St},Es=function(Z,ie){var Ee=P(Z);if(!ie)return Ee;if(Z!==ie)return Ee;var Ne=Ee.paddingBox.top-ie.scrollTop,ke=Ee.paddingBox.left-ie.scrollLeft,Ge=Ne+ie.scrollHeight,ze=ke+ie.scrollWidth,xt={top:Ne,right:ze,bottom:Ge,left:ke},kt=i(xt,Ee.border),Bt=d({borderBox:kt,margin:Ee.margin,border:Ee.border,padding:Ee.padding});return Bt},as=function(Y){var Z=Y.ref,ie=Y.descriptor,Ee=Y.env,Ne=Y.windowScroll,ke=Y.direction,Ge=Y.isDropDisabled,ze=Y.isCombineEnabled,xt=Y.shouldClipSubject,kt=Ee.closestScrollable,Bt=Es(Z,kt),Tt=E(Bt,Ne),St=function(){if(!kt)return null;var mn=P(kt),lr={scrollHeight:kt.scrollHeight,scrollWidth:kt.scrollWidth};return{client:mn,page:E(mn,Ne),scroll:ks(kt),scrollSize:lr,shouldClipSubject:xt}}(),Nt=rs({descriptor:ie,isEnabled:!Ge,isCombineEnabled:ze,isFixedOnPage:Ee.isFixedOnPage,direction:ke,client:Bt,page:Tt,closest:St});return Nt},vo={passive:!1},Hl={passive:!0},_l=function(Y){return Y.shouldPublishImmediately?vo:Hl};function _o(Y){var Z=Object(M.useContext)(Y);return Z||$(!1),Z}var is=function(Z){return Z&&Z.env.closestScrollable||null};function bl(Y){var Z=Object(M.useRef)(null),ie=_o(Hi),Ee=wi("droppable"),Ne=ie.registry,ke=ie.marshal,Ge=$a(Y),ze=f(function(){return{id:Y.droppableId,type:Y.type,mode:Y.mode}},[Y.droppableId,Y.mode,Y.type]),xt=Object(M.useRef)(ze),kt=f(function(){return T(function(Hr,Ia){Z.current||$(!1);var Ra={x:Hr,y:Ia};ke.updateDroppableScroll(ze.id,Ra)})},[ze.id,ke]),Bt=a(function(){var Hr=Z.current;return!Hr||!Hr.env.closestScrollable?Ae:ks(Hr.env.closestScrollable)},[]),Tt=a(function(){var Hr=Bt();kt(Hr.x,Hr.y)},[Bt,kt]),St=f(function(){return L(Tt)},[Tt]),Nt=a(function(){var Hr=Z.current,Ia=is(Hr);Hr&&Ia||$(!1);var Ra=Hr.scrollOptions;if(Ra.shouldPublishImmediately){Tt();return}St()},[St,Tt]),mn=a(function(Hr,Ia){Z.current&&$(!1);var Ra=Ge.current,za=Ra.getDroppableRef();za||$(!1);var si=Ro(za),t={ref:za,descriptor:ze,env:si,scrollOptions:Ia};Z.current=t;var p=as({ref:za,descriptor:ze,env:si,windowScroll:Hr,direction:Ra.direction,isDropDisabled:Ra.isDropDisabled,isCombineEnabled:Ra.isCombineEnabled,shouldClipSubject:!Ra.ignoreContainerClipping}),B=si.closestScrollable;return B&&(B.setAttribute(jo.contextId,ie.contextId),B.addEventListener("scroll",Nt,_l(t.scrollOptions))),p},[ie.contextId,ze,Nt,Ge]),lr=a(function(){var Hr=Z.current,Ia=is(Hr);return Hr&&Ia||$(!1),ks(Ia)},[]),hr=a(function(){var Hr=Z.current;Hr||$(!1);var Ia=is(Hr);if(Z.current=null,!Ia)return;St.cancel(),Ia.removeAttribute(jo.contextId),Ia.removeEventListener("scroll",Nt,_l(Hr.scrollOptions))},[Nt,St]),kr=a(function(Hr){var Ia=Z.current;Ia||$(!1);var Ra=is(Ia);Ra||$(!1),Ra.scrollTop+=Hr.y,Ra.scrollLeft+=Hr.x},[]),Gr=f(function(){return{getDimensionAndWatchScroll:mn,getScrollWhileDragging:lr,dragStopped:hr,scroll:kr}},[hr,mn,lr,kr]),na=f(function(){return{uniqueId:Ee,descriptor:ze,callbacks:Gr}},[Gr,ze,Ee]);ai(function(){return xt.current=na.descriptor,Ne.droppable.register(na),function(){Z.current&&hr(),Ne.droppable.unregister(na)}},[Gr,ze,hr,na,ke,Ne.droppable]),ai(function(){if(!Z.current)return;ke.updateDroppableIsEnabled(xt.current.id,!Y.isDropDisabled)},[Y.isDropDisabled,ke]),ai(function(){if(!Z.current)return;ke.updateDroppableIsCombineEnabled(xt.current.id,Y.isCombineEnabled)},[Y.isCombineEnabled,ke])}function xs(){}var os={width:0,height:0,margin:jt},Zo=function(Z){var ie=Z.isAnimatingOpenOnMount,Ee=Z.placeholder,Ne=Z.animate;return ie||Ne==="close"?os:{height:Ee.client.borderBox.height,width:Ee.client.borderBox.width,margin:Ee.client.margin}},Us=function(Z){var ie=Z.isAnimatingOpenOnMount,Ee=Z.placeholder,Ne=Z.animate,ke=Zo({isAnimatingOpenOnMount:ie,placeholder:Ee,animate:Ne});return{display:Ee.display,boxSizing:"border-box",width:ke.width,height:ke.height,marginTop:ke.margin.top,marginRight:ke.margin.right,marginBottom:ke.margin.bottom,marginLeft:ke.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Ne!=="none"?zt.placeholder:null}};function js(Y){var Z=Object(M.useRef)(null),ie=a(function(){if(!Z.current)return;clearTimeout(Z.current),Z.current=null},[]),Ee=Y.animate,Ne=Y.onTransitionEnd,ke=Y.onClose,Ge=Y.contextId,ze=Object(M.useState)(Y.animate==="open"),xt=ze[0],kt=ze[1];Object(M.useEffect)(function(){return xt?Ee!=="open"?(ie(),kt(!1),xs):Z.current?xs:(Z.current=setTimeout(function(){Z.current=null,kt(!1)}),ie):xs},[Ee,xt,ie]);var Bt=a(function(St){if(St.propertyName!=="height")return;Ne(),Ee==="close"&&ke()},[Ee,ke,Ne]),Tt=Us({isAnimatingOpenOnMount:xt,animate:Y.animate,placeholder:Y.placeholder});return g.a.createElement(Y.placeholder.tagName,{style:Tt,"data-rbd-placeholder-context-id":Ge,onTransitionEnd:Bt,ref:Y.innerRef})}var Bs=g.a.memo(js),Fs=g.a.createContext(null);function qo(Y){Y&&$i(Y)||$(!1)}function Cs(Y){return typeof Y=="boolean"}function Ws(Y,Z){Z.forEach(function(ie){return ie(Y)})}var yl=[function(Z){var ie=Z.props;ie.droppableId||$(!1),typeof ie.droppableId=="string"||$(!1)},function(Z){var ie=Z.props;Cs(ie.isDropDisabled)||$(!1),Cs(ie.isCombineEnabled)||$(!1),Cs(ie.ignoreContainerClipping)||$(!1)},function(Z){var ie=Z.getDroppableRef;qo(ie())}],Ss=[function(Z){var ie=Z.props,Ee=Z.getPlaceholderRef;if(!ie.placeholder)return;var Ne=Ee();if(Ne)return}],Kl=[function(Z){var ie=Z.props;ie.renderClone||$(!1)},function(Z){var ie=Z.getPlaceholderRef;ie()&&$(!1)}];function Gl(Y){Ei(function(){Ws(Y,yl),Y.props.mode==="standard"&&Ws(Y,Ss),Y.props.mode==="virtual"&&Ws(Y,Kl)})}var ss=function(Y){Object(A.a)(Z,Y);function Z(){for(var Ee,Ne=arguments.length,ke=new Array(Ne),Ge=0;Ge<Ne;Ge++)ke[Ge]=arguments[Ge];return Ee=Y.call.apply(Y,[this].concat(ke))||this,Ee.state={isVisible:Boolean(Ee.props.on),data:Ee.props.on,animate:Ee.props.shouldAnimate&&Ee.props.on?"open":"none"},Ee.onClose=function(){if(Ee.state.animate!=="close")return;Ee.setState({isVisible:!1})},Ee}Z.getDerivedStateFromProps=function(Ne,ke){return Ne.shouldAnimate?Ne.on?{isVisible:!0,data:Ne.on,animate:"open"}:ke.isVisible?{isVisible:!0,data:ke.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(Ne.on),data:Ne.on,animate:"none"}};var ie=Z.prototype;return ie.render=function(){if(!this.state.isVisible)return null;var Ne={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Ne)},Z}(g.a.PureComponent),Hs={dragging:5e3,dropAnimating:4500},El=function(Z,ie){return ie?zt.drop(ie.duration):Z?zt.snap:zt.fluid},zl=function(Z,ie){return Z?ie?mt.opacity.drop:mt.opacity.combining:null},Ks=function(Z){return Z.forceShouldAnimate!=null?Z.forceShouldAnimate:Z.mode==="SNAP"};function xl(Y){var Z=Y.dimension,ie=Z.client,Ee=Y.offset,Ne=Y.combineWith,ke=Y.dropping,Ge=Boolean(Ne),ze=Ks(Y),xt=Boolean(ke),kt=xt?un.drop(Ee,Ge):un.moveTo(Ee),Bt={position:"fixed",top:ie.marginBox.top,left:ie.marginBox.left,boxSizing:"border-box",width:ie.borderBox.width,height:ie.borderBox.height,transition:El(ze,ke),transform:kt,opacity:zl(Ge,xt),zIndex:xt?Hs.dropAnimating:Hs.dragging,pointerEvents:"none"};return Bt}function Vl(Y){return{transform:un.moveTo(Y.offset),transition:Y.shouldAnimateDisplacement?null:"none"}}function Cl(Y){return Y.type==="DRAGGING"?xl(Y):Vl(Y)}function Sl(Y,Z,ie){ie===void 0&&(ie=Ae);var Ee=window.getComputedStyle(Z),Ne=Z.getBoundingClientRect(),ke=_(Ne,Ee),Ge=E(ke,ie),ze={client:ke,tagName:Z.tagName.toLowerCase(),display:Ee.display},xt={x:ke.marginBox.width,y:ke.marginBox.height},kt={descriptor:Y,placeholder:ze,displaceBy:xt,client:ke,page:Ge};return kt}function Xl(Y){var Z=wi("draggable"),ie=Y.descriptor,Ee=Y.registry,Ne=Y.getDraggableRef,ke=Y.canDragInteractiveElements,Ge=Y.shouldRespectForcePress,ze=Y.isEnabled,xt=f(function(){return{canDragInteractiveElements:ke,shouldRespectForcePress:Ge,isEnabled:ze}},[ke,ze,Ge]),kt=a(function(Nt){var mn=Ne();return mn||$(!1),Sl(ie,mn,Nt)},[ie,Ne]),Bt=f(function(){return{uniqueId:Z,descriptor:ie,options:xt,getDimension:kt}},[ie,kt,xt,Z]),Tt=Object(M.useRef)(Bt),St=Object(M.useRef)(!0);ai(function(){return Ee.draggable.register(Tt.current),function(){return Ee.draggable.unregister(Tt.current)}},[Ee.draggable]),ai(function(){if(St.current){St.current=!1;return}var Nt=Tt.current;Tt.current=Bt,Ee.draggable.update(Bt,Nt)},[Bt,Ee.draggable])}function Gs(Y,Z,ie){Ei(function(){function Ee(ke){return"Draggable[id: "+ke+"]: "}var Ne=Y.draggableId;if(Ne||$(!1),typeof Ne=="string"||$(!1),He(Y.index)||$(!1),Y.mapped.type==="DRAGGING")return;qo(ie()),Y.isEnabled&&(Wi(Z,Ne)||$(!1))})}function ls(Y){Wa(function(){var Z=Object(M.useRef)(Y);Ei(function(){Y===Z.current||$(!1)},[Y])})}function us(Y){Y.preventDefault()}function Yl(Y){var Z=Object(M.useRef)(null),ie=a(function(t){Z.current=t},[]),Ee=a(function(){return Z.current},[]),Ne=_o(Hi),ke=Ne.contextId,Ge=Ne.dragHandleUsageInstructionsId,ze=Ne.registry,xt=_o(Fs),kt=xt.type,Bt=xt.droppableId,Tt=f(function(){return{id:Y.draggableId,index:Y.index,type:kt,droppableId:Bt}},[Y.draggableId,Y.index,kt,Bt]),St=Y.children,Nt=Y.draggableId,mn=Y.isEnabled,lr=Y.shouldRespectForcePress,hr=Y.canDragInteractiveElements,kr=Y.isClone,Gr=Y.mapped,na=Y.dropAnimationFinished;if(Gs(Y,ke,Ee),ls(kr),!kr){var Hr=f(function(){return{descriptor:Tt,registry:ze,getDraggableRef:Ee,canDragInteractiveElements:hr,shouldRespectForcePress:lr,isEnabled:mn}},[Tt,ze,Ee,hr,lr,mn]);Xl(Hr)}var Ia=f(function(){return mn?{tabIndex:0,role:"button","aria-describedby":Ge,"data-rbd-drag-handle-draggable-id":Nt,"data-rbd-drag-handle-context-id":ke,draggable:!1,onDragStart:us}:null},[ke,Ge,Nt,mn]),Ra=a(function(t){if(Gr.type!=="DRAGGING")return;if(!Gr.dropping)return;if(t.propertyName!=="transform")return;na()},[na,Gr]),za=f(function(){var t=Cl(Gr),p=Gr.type==="DRAGGING"&&Gr.dropping?Ra:null,B={innerRef:ie,draggableProps:{"data-rbd-draggable-context-id":ke,"data-rbd-draggable-id":Nt,style:t,onTransitionEnd:p},dragHandleProps:Ia};return B},[ke,Ia,Nt,Gr,Ra,ie]),si=f(function(){return{draggableId:Tt.id,type:Tt.type,source:{index:Tt.index,droppableId:Tt.droppableId}}},[Tt.droppableId,Tt.id,Tt.index,Tt.type]);return St(za,Gr.snapshot,si)}var zs=function(Y,Z){return Y===Z},wl=function(Y){var Z=Y.combine,ie=Y.destination;return ie?ie.droppableId:Z?Z.droppableId:null},Jl=function(Z){return Z.combine?Z.combine.draggableId:null},Ql=function(Z){return Z.at&&Z.at.type==="COMBINE"?Z.at.combine.draggableId:null};function Zl(){var Y=T(function(Ne,ke){return{x:Ne,y:ke}}),Z=T(function(Ne,ke,Ge,ze,xt){return{isDragging:!0,isClone:ke,isDropAnimating:Boolean(xt),dropAnimation:xt,mode:Ne,draggingOver:Ge,combineWith:ze,combineTargetFor:null}}),ie=T(function(Ne,ke,Ge,ze,xt,kt,Bt){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:xt,combineWith:kt,mode:ke,offset:Ne,dimension:Ge,forceShouldAnimate:Bt,snapshot:Z(ke,ze,xt,kt,null)}}}),Ee=function(ke,Ge){if(ke.isDragging){if(ke.critical.draggable.id!==Ge.draggableId)return null;var ze=ke.current.client.offset,xt=ke.dimensions.draggables[Ge.draggableId],kt=Wt(ke.impact),Bt=Ql(ke.impact),Tt=ke.forceShouldAnimate;return ie(Y(ze.x,ze.y),ke.movementMode,xt,Ge.isClone,kt,Bt,Tt)}if(ke.phase==="DROP_ANIMATING"){var St=ke.completed;if(St.result.draggableId!==Ge.draggableId)return null;var Nt=Ge.isClone,mn=ke.dimensions.draggables[Ge.draggableId],lr=St.result,hr=lr.mode,kr=wl(lr),Gr=Jl(lr),na=ke.dropDuration,Hr={duration:na,curve:$e.drop,moveTo:ke.newHomeClientOffset,opacity:Gr?mt.opacity.drop:null,scale:Gr?mt.scale.drop:null};return{mapped:{type:"DRAGGING",offset:ke.newHomeClientOffset,dimension:mn,dropping:Hr,draggingOver:kr,combineWith:Gr,mode:hr,forceShouldAnimate:null,snapshot:Z(hr,Nt,kr,Gr,Hr)}}}return null};return Ee}function Vs(Y){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Y,combineWith:null}}var ql={mapped:{type:"SECONDARY",offset:Ae,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Vs(null)}};function $l(){var Y=T(function(Ge,ze){return{x:Ge,y:ze}}),Z=T(Vs),ie=T(function(Ge,ze,xt){return ze===void 0&&(ze=null),{mapped:{type:"SECONDARY",offset:Ge,combineTargetFor:ze,shouldAnimateDisplacement:xt,snapshot:Z(ze)}}}),Ee=function(ze){return ze?ie(Ae,ze,!0):null},Ne=function(ze,xt,kt,Bt){var Tt=kt.displaced.visible[ze],St=Boolean(Bt.inVirtualList&&Bt.effected[ze]),Nt=ot(kt),mn=Nt&&Nt.draggableId===ze?xt:null;if(!Tt){if(!St)return Ee(mn);if(kt.displaced.invisible[ze])return null;var lr=ht(Bt.displacedBy.point),hr=Y(lr.x,lr.y);return ie(hr,mn,!0)}if(St)return Ee(mn);var kr=kt.displacedBy.point,Gr=Y(kr.x,kr.y);return ie(Gr,mn,Tt.shouldAnimate)},ke=function(ze,xt){if(ze.isDragging)return ze.critical.draggable.id===xt.draggableId?null:Ne(xt.draggableId,ze.critical.draggable.id,ze.impact,ze.afterCritical);if(ze.phase==="DROP_ANIMATING"){var kt=ze.completed;return kt.result.draggableId===xt.draggableId?null:Ne(xt.draggableId,kt.result.draggableId,kt.impact,kt.afterCritical)}return null};return ke}var Tl=function(){var Z=Zl(),ie=$l(),Ee=function(ke,Ge){return Z(ke,Ge)||ie(ke,Ge)||ql};return Ee},Xs={dropAnimationFinished:nt},Ol=Object(C.c)(Tl,Xs,null,{context:lo,pure:!0,areStatePropsEqual:zs})(Yl);function Al(Y){var Z=_o(Fs),ie=Z.isUsingCloneFor;return ie===Y.draggableId&&!Y.isClone?null:g.a.createElement(Ol,Y)}function Dl(Y){var Z=typeof Y.isDragDisabled=="boolean"?!Y.isDragDisabled:!0,ie=Boolean(Y.disableInteractiveElementBlocking),Ee=Boolean(Y.shouldRespectForcePress);return g.a.createElement(Al,Object(b.a)({},Y,{isClone:!1,isEnabled:Z,canDragInteractiveElements:ie,shouldRespectForcePress:Ee}))}function $o(Y){var Z=Object(M.useContext)(Hi);Z||$(!1);var ie=Z.contextId,Ee=Z.isMovementAllowed,Ne=Object(M.useRef)(null),ke=Object(M.useRef)(null),Ge=Y.children,ze=Y.droppableId,xt=Y.type,kt=Y.mode,Bt=Y.direction,Tt=Y.ignoreContainerClipping,St=Y.isDropDisabled,Nt=Y.isCombineEnabled,mn=Y.snapshot,lr=Y.useClone,hr=Y.updateViewportMaxScroll,kr=Y.getContainerForClone,Gr=a(function(){return Ne.current},[]),na=a(function(j){Ne.current=j},[]),Hr=a(function(){return ke.current},[]),Ia=a(function(j){ke.current=j},[]);Gl({props:Y,getDroppableRef:Gr,getPlaceholderRef:Hr});var Ra=a(function(){Ee()&&hr({maxScroll:bi()})},[Ee,hr]);bl({droppableId:ze,type:xt,mode:kt,direction:Bt,isDropDisabled:St,isCombineEnabled:Nt,ignoreContainerClipping:Tt,getDroppableRef:Gr});var za=g.a.createElement(ss,{on:Y.placeholder,shouldAnimate:Y.shouldAnimatePlaceholder},function(j){var G=j.onClose,ne=j.data,ge=j.animate;return g.a.createElement(Bs,{placeholder:ne,onClose:G,innerRef:Ia,animate:ge,contextId:ie,onTransitionEnd:Ra})}),si=f(function(){return{innerRef:na,placeholder:za,droppableProps:{"data-rbd-droppable-id":ze,"data-rbd-droppable-context-id":ie}}},[ie,ze,za,na]),t=lr?lr.dragging.draggableId:null,p=f(function(){return{droppableId:ze,type:xt,isUsingCloneFor:t}},[ze,t,xt]);function B(){if(!lr)return null;var j=lr.dragging,G=lr.render,ne=g.a.createElement(Al,{draggableId:j.draggableId,index:j.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ge,we){return G(ge,we,j)});return V.a.createPortal(ne,kr())}return g.a.createElement(Fs.Provider,{value:p},Ge(si,mn),B())}var ws=function(Z,ie){return Z===ie.droppable.type},cs=function(Z,ie){return ie.draggables[Z.draggable.id]},eu=function(){var Z={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ie=Object(b.a)({},Z,{shouldAnimatePlaceholder:!1}),Ee=T(function(Ge){return{draggableId:Ge.id,type:Ge.type,source:{index:Ge.index,droppableId:Ge.droppableId}}}),Ne=T(function(Ge,ze,xt,kt,Bt,Tt){var St=Bt.descriptor.id,Nt=Bt.descriptor.droppableId===Ge;if(Nt){var mn=Tt?{render:Tt,dragging:Ee(Bt.descriptor)}:null,lr={isDraggingOver:xt,draggingOverWith:xt?St:null,draggingFromThisWith:St,isUsingPlaceholder:!0};return{placeholder:Bt.placeholder,shouldAnimatePlaceholder:!1,snapshot:lr,useClone:mn}}if(!ze)return ie;if(!kt)return Z;var hr={isDraggingOver:xt,draggingOverWith:St,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Bt.placeholder,shouldAnimatePlaceholder:!0,snapshot:hr,useClone:null}}),ke=function(ze,xt){var kt=xt.droppableId,Bt=xt.type,Tt=!xt.isDropDisabled,St=xt.renderClone;if(ze.isDragging){var Nt=ze.critical;if(!ws(Bt,Nt))return ie;var mn=cs(Nt,ze.dimensions),lr=Wt(ze.impact)===kt;return Ne(kt,Tt,lr,lr,mn,St)}if(ze.phase==="DROP_ANIMATING"){var hr=ze.completed;if(!ws(Bt,hr.critical))return ie;var kr=cs(hr.critical,ze.dimensions);return Ne(kt,Tt,wl(hr.result)===kt,Wt(hr.impact)===kt,kr,St)}if(ze.phase==="IDLE"&&ze.completed&&!ze.shouldFlush){var Gr=ze.completed;if(!ws(Bt,Gr.critical))return ie;var na=Wt(Gr.impact)===kt,Hr=Boolean(Gr.impact.at&&Gr.impact.at.type==="COMBINE"),Ia=Gr.critical.droppable.id===kt;return na?Hr?Z:ie:Ia?Z:ie}return ie};return ke},tu={updateViewportMaxScroll:Yr};function nu(){return document.body||$(!1),document.body}var Ya={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nu},Rl=Object(C.c)(eu,tu,null,{context:lo,pure:!0,areStatePropsEqual:zs})($o);Rl.defaultProps=Ya},nnTU:function(k,z,o){"use strict";o.d(z,"b",function(){return O}),o.d(z,"a",function(){return m});var M=o("MI8n"),g=o("JYp7"),A=o("pmY6"),b=o("24hK"),y=o("746U"),C=o("Cg/j");const O=Object(C.c)("commandService"),m=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new M.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,f){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!f)throw new Error("invalid command");return this.registerCommand({id:e,handler:f})}if(e.description){const r=[];for(let h of e.description.args)r.push(h.constraint);const c=e.handler;e.handler=function(h,...d){return Object(y.o)(d,r),c(h,...d)}}const{id:a}=e;let u=this._commands.get(a);u||(u=new b.a,this._commands.set(a,u));let n=u.unshift(e),i=Object(A.i)(()=>{n();const r=this._commands.get(a);(r==null?void 0:r.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),i}registerCommandAlias(e,f){return m.registerCommand(e,(a,...u)=>a.get(O).executeCommand(f,...u))}getCommand(e){const f=this._commands.get(e);return!f||f.isEmpty()?void 0:g.a.first(f)}getCommands(){const e=new Map;for(const f of this._commands.keys()){const a=this.getCommand(f);a&&e.set(f,a)}return e}};m.registerCommand("noop",()=>{})},nukY:function(k,z){k.exports="data:image/png;base64,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"},oRuE:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso10126={pad:function(g,A){var b=A*4,y=b-g.sigBytes%b;g.concat(M.lib.WordArray.random(y-1)).concat(M.lib.WordArray.create([y<<24],1))},unpad:function(g){var A=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=A}},M.pad.Iso10126})},oaGz:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return ma});var M=o("1OyB"),g=o("vuIU"),A=o("Ji7U"),b=o("LK+K"),y=o("rePB"),C=o("VTBJ"),O=o("ODXe"),m=o("q1tI"),e=o("TSYQ"),f=o.n(e),a=o("Kwbf"),u=o("6cGi"),n=o("U8pU"),i=o("4IlW"),r=m.createContext({}),c=r,h={visibility:"hidden"};function d(xe){var lt=xe.prefixCls,Rt=xe.prevIcon,wt=Rt===void 0?"\u2039":Rt,Wt=xe.nextIcon,It=Wt===void 0?"\u203A":Wt,Vt=xe.superPrevIcon,rn=Vt===void 0?"\xAB":Vt,yn=xe.superNextIcon,gn=yn===void 0?"\xBB":yn,jn=xe.onSuperPrev,Dn=xe.onSuperNext,an=xe.onPrev,Mn=xe.onNext,_n=xe.children,Bn=m.useContext(c),Pn=Bn.hideNextBtn,Jn=Bn.hidePrevBtn;return m.createElement("div",{className:lt},jn&&m.createElement("button",{type:"button",onClick:jn,tabIndex:-1,className:"".concat(lt,"-super-prev-btn"),style:Jn?h:{}},rn),an&&m.createElement("button",{type:"button",onClick:an,tabIndex:-1,className:"".concat(lt,"-prev-btn"),style:Jn?h:{}},wt),m.createElement("div",{className:"".concat(lt,"-view")},_n),Mn&&m.createElement("button",{type:"button",onClick:Mn,tabIndex:-1,className:"".concat(lt,"-next-btn"),style:Pn?h:{}},It),Dn&&m.createElement("button",{type:"button",onClick:Dn,tabIndex:-1,className:"".concat(lt,"-super-next-btn"),style:Pn?h:{}},gn))}var s=d;function l(xe){var lt=m.useContext(c),Rt=lt.hideHeader;if(Rt)return null;var wt=xe.prefixCls,Wt=xe.generateConfig,It=xe.locale,Vt=xe.value,rn=xe.format,yn="".concat(wt,"-header");return m.createElement(s,{prefixCls:yn},Vt?Wt.locale.format(It.locale,Vt,rn):"\xA0")}var w=l,E=o("YrtM"),_=o("KQm4"),P=new Map;function R(xe,lt,Rt){if(P.get(xe)&&cancelAnimationFrame(P.get(xe)),Rt<=0){P.set(xe,requestAnimationFrame(function(){xe.scrollTop=lt}));return}var wt=lt-xe.scrollTop,Wt=wt/Rt*10;P.set(xe,requestAnimationFrame(function(){xe.scrollTop+=Wt,xe.scrollTop!==lt&&R(xe,lt,Rt-10)}))}function x(xe,lt){var Rt=lt.onLeftRight,wt=lt.onCtrlLeftRight,Wt=lt.onUpDown,It=lt.onPageUpDown,Vt=lt.onEnter,rn=xe.which,yn=xe.ctrlKey,gn=xe.metaKey;switch(rn){case i.a.LEFT:if(yn||gn){if(wt)return wt(-1),!0}else if(Rt)return Rt(-1),!0;break;case i.a.RIGHT:if(yn||gn){if(wt)return wt(1),!0}else if(Rt)return Rt(1),!0;break;case i.a.UP:if(Wt)return Wt(-1),!0;break;case i.a.DOWN:if(Wt)return Wt(1),!0;break;case i.a.PAGE_UP:if(It)return It(-1),!0;break;case i.a.PAGE_DOWN:if(It)return It(1),!0;break;case i.a.ENTER:if(Vt)return Vt(),!0;break}return!1}function S(xe,lt,Rt,wt){var Wt=xe;if(!Wt)switch(lt){case"time":Wt=wt?"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=Rt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Wt}function v(xe,lt){var Rt=xe==="time"?8:10;return Math.max(Rt,lt.length)+2}var T=null,U=new Set;function L(xe){return!T&&typeof window!="undefined"&&window.addEventListener&&(T=function(Rt){Object(_.a)(U).forEach(function(wt){wt(Rt)})},window.addEventListener("mousedown",T)),U.add(xe),function(){U.delete(xe),U.size===0&&(window.removeEventListener("mousedown",T),T=null)}}var N=function(lt){return lt==="month"||lt==="date"?"year":lt},V=function(lt){return lt==="date"?"month":lt},H=function(lt){return lt==="month"||lt==="date"?"quarter":lt},D=function(lt){return lt==="date"?"week":lt},W={year:N,month:V,quarter:H,week:D,time:null,date:null};function F(xe,lt){return xe.some(function(Rt){return Rt&&Rt.contains(lt)})}function I(xe){var lt=xe.prefixCls,Rt=xe.units,wt=xe.onSelect,Wt=xe.value,It=xe.active,Vt=xe.hideDisabledOptions,rn="".concat(lt,"-cell"),yn=m.useContext(c),gn=yn.open,jn=m.useRef(null),Dn=m.useRef(new Map);return m.useLayoutEffect(function(){var an=Dn.current.get(Wt);an&&gn!==!1&&R(jn.current,an.offsetTop,120)},[Wt]),m.useLayoutEffect(function(){if(gn){var an=Dn.current.get(Wt);an&&R(jn.current,an.offsetTop,0)}},[gn]),m.createElement("ul",{className:f()("".concat(lt,"-column"),Object(y.a)({},"".concat(lt,"-column-active"),It)),ref:jn,style:{position:"relative"}},Rt.map(function(an){var Mn;return Vt&&an.disabled?null:m.createElement("li",{key:an.value,ref:function(Bn){Dn.current.set(an.value,Bn)},className:f()(rn,(Mn={},Object(y.a)(Mn,"".concat(rn,"-disabled"),an.disabled),Object(y.a)(Mn,"".concat(rn,"-selected"),Wt===an.value),Mn)),onClick:function(){if(an.disabled)return;wt(an.value)}},m.createElement("div",{className:"".concat(rn,"-inner")},an.label))}))}var K=I;function ee(xe,lt){for(var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",wt=String(xe);wt.length<lt;)wt="".concat(Rt).concat(xe);return wt}var he=function(){for(var lt=arguments.length,Rt=new Array(lt),wt=0;wt<lt;wt++)Rt[wt]=arguments[wt];return Rt};function de(xe){return xe==null?[]:Array.isArray(xe)?xe:[xe]}function Se(xe){var lt={};return Object.keys(xe).forEach(function(Rt){(Rt.substr(0,5)==="data-"||Rt.substr(0,5)==="aria-"||Rt==="role"||Rt==="name")&&Rt.substr(0,7)!=="data-__"&&(lt[Rt]=xe[Rt])}),lt}function Te(xe,lt){return xe?xe[lt]:null}function ce(xe,lt,Rt){var wt=[Te(xe,0),Te(xe,1)];return wt[Rt]=typeof lt=="function"?lt(wt[Rt]):lt,!wt[0]&&!wt[1]?null:wt}function be(xe,lt,Rt,wt,Wt){var It=xe.setHour(lt,Rt);return It=xe.setMinute(It,wt),It=xe.setSecond(It,Wt),It}function ye(xe,lt,Rt,wt,Wt,It){var Vt=Math.floor(xe/wt)*wt;if(Vt<xe)return[Vt,60-Wt,60-It];var rn=Math.floor(lt/Wt)*Wt;if(rn<lt)return[Vt,rn,60-It];var yn=Math.floor(Rt/It)*It;return[Vt,rn,yn]}function ue(xe,lt){if(xe.length!==lt.length)return!0;for(var Rt=0;Rt<xe.length;Rt+=1)if(xe[Rt].disabled!==lt[Rt].disabled)return!0;return!1}function se(xe,lt,Rt,wt){for(var Wt=[],It=xe;It<=lt;It+=Rt)Wt.push({label:ee(It,2),value:It,disabled:(wt||[]).includes(It)});return Wt}function $(xe){var lt=xe.generateConfig,Rt=xe.prefixCls,wt=xe.operationRef,Wt=xe.activeColumnIndex,It=xe.value,Vt=xe.showHour,rn=xe.showMinute,yn=xe.showSecond,gn=xe.use12Hours,jn=xe.hourStep,Dn=jn===void 0?1:jn,an=xe.minuteStep,Mn=an===void 0?1:an,_n=xe.secondStep,Bn=_n===void 0?1:_n,Pn=xe.disabledHours,Jn=xe.disabledMinutes,fr=xe.disabledSeconds,Fr=xe.hideDisabledOptions,Cn=xe.onSelect,Xt=[],hn="".concat(Rt,"-content"),Rn="".concat(Rt,"-time-panel"),tn,Sn=It?lt.getHour(It):-1,vn=It?lt.getMinute(It):-1,kn=It?lt.getSecond(It):-1,Fn=function(en,Yt,Xn,$n){var Un=It||lt.getNow(),rr=Math.max(0,Yt),ur=Math.max(0,Xn),or=Math.max(0,$n);return Un=be(lt,Un,!gn||!en?rr:rr+12,ur,or),Un},ir=se(0,23,Dn,Pn&&Pn()),qn=Object(E.a)(function(){return ir},ir,ue);gn&&(tn=Sn>=12,Sn%=12);var Rr=m.useMemo(function(){if(!gn)return[!1,!1];var Kt=[!0,!0];return qn.forEach(function(en){var Yt=en.disabled,Xn=en.value;if(Yt)return;Xn>=12?Kt[1]=!1:Kt[0]=!1}),Kt},[gn,qn]),Lr=Object(O.a)(Rr,2),Qn=Lr[0],Dr=Lr[1],mr=m.useMemo(function(){return gn?qn.filter(tn?function(Kt){return Kt.value>=12}:function(Kt){return Kt.value<12}).map(function(Kt){var en=Kt.value%12,Yt=en===0?"12":ee(en,2);return Object(C.a)(Object(C.a)({},Kt),{},{label:Yt,value:en})}):qn},[gn,qn]),zr=se(0,59,Mn,Jn&&Jn(Sn)),Nr=se(0,59,Bn,fr&&fr(Sn,vn));wt.current={onUpDown:function(en){var Yt=Xt[Wt];if(Yt)for(var Xn=Yt.units.findIndex(function(ur){return ur.value===Yt.value}),$n=Yt.units.length,Un=1;Un<$n;Un+=1){var rr=Yt.units[(Xn+en*Un+$n)%$n];if(rr.disabled!==!0){Yt.onSelect(rr.value);break}}}};function $r(Kt,en,Yt,Xn,$n){Kt!==!1&&Xt.push({node:m.cloneElement(en,{prefixCls:Rn,value:Yt,active:Wt===Xt.length,onSelect:$n,units:Xn,hideDisabledOptions:Fr}),onSelect:$n,value:Yt,units:Xn})}$r(Vt,m.createElement(K,{key:"hour"}),Sn,mr,function(Kt){Cn(Fn(tn,Kt,vn,kn),"mouse")}),$r(rn,m.createElement(K,{key:"minute"}),vn,zr,function(Kt){Cn(Fn(tn,Sn,Kt,kn),"mouse")}),$r(yn,m.createElement(K,{key:"second"}),kn,Nr,function(Kt){Cn(Fn(tn,Sn,vn,Kt),"mouse")});var nr=-1;return typeof tn=="boolean"&&(nr=tn?1:0),$r(gn===!0,m.createElement(K,{key:"12hours"}),nr,[{label:"AM",value:0,disabled:Qn},{label:"PM",value:1,disabled:Dr}],function(Kt){Cn(Fn(!!Kt,Sn,vn,kn),"mouse")}),m.createElement("div",{className:hn},Xt.map(function(Kt){var en=Kt.node;return en}))}var me=$,re=function(lt){return lt.filter(function(Rt){return Rt!==!1}).length};function ae(xe){var lt=xe.generateConfig,Rt=xe.format,wt=Rt===void 0?"HH:mm:ss":Rt,Wt=xe.prefixCls,It=xe.active,Vt=xe.operationRef,rn=xe.showHour,yn=xe.showMinute,gn=xe.showSecond,jn=xe.use12Hours,Dn=jn===void 0?!1:jn,an=xe.onSelect,Mn=xe.value,_n="".concat(Wt,"-time-panel"),Bn=m.useRef(),Pn=m.useState(-1),Jn=Object(O.a)(Pn,2),fr=Jn[0],Fr=Jn[1],Cn=re([rn,yn,gn,Dn]);return Vt.current={onKeyDown:function(hn){return x(hn,{onLeftRight:function(tn){Fr((fr+tn+Cn)%Cn)},onUpDown:function(tn){fr===-1?Fr(0):Bn.current&&Bn.current.onUpDown(tn)},onEnter:function(){an(Mn||lt.getNow(),"key"),Fr(-1)}})},onBlur:function(){Fr(-1)}},m.createElement("div",{className:f()(_n,Object(y.a)({},"".concat(_n,"-active"),It))},m.createElement(w,Object.assign({},xe,{format:wt,prefixCls:Wt})),m.createElement(me,Object.assign({},xe,{prefixCls:Wt,activeColumnIndex:fr,operationRef:Bn})))}var Oe=ae,le=7;function te(xe,lt){return!xe&&!lt?!0:!xe||!lt?!1:void 0}function Q(xe,lt,Rt){var wt=te(lt,Rt);if(typeof wt=="boolean")return wt;var Wt=Math.floor(xe.getYear(lt)/10),It=Math.floor(xe.getYear(Rt)/10);return Wt===It}function J(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:xe.getYear(lt)===xe.getYear(Rt)}function ve(xe,lt){var Rt=Math.floor(xe.getMonth(lt)/3);return Rt+1}function _e(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:J(xe,lt,Rt)&&ve(xe,lt)===ve(xe,Rt)}function Ae(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:J(xe,lt,Rt)&&xe.getMonth(lt)===xe.getMonth(Rt)}function Je(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:xe.getYear(lt)===xe.getYear(Rt)&&xe.getMonth(lt)===xe.getMonth(Rt)&&xe.getDate(lt)===xe.getDate(Rt)}function tt(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:xe.getHour(lt)===xe.getHour(Rt)&&xe.getMinute(lt)===xe.getMinute(Rt)&&xe.getSecond(lt)===xe.getSecond(Rt)}function ut(xe,lt,Rt,wt){var Wt=te(Rt,wt);return typeof Wt=="boolean"?Wt:xe.locale.getWeek(lt,Rt)===xe.locale.getWeek(lt,wt)}function ht(xe,lt,Rt){return Je(xe,lt,Rt)&&tt(xe,lt,Rt)}function vt(xe,lt,Rt,wt){return!lt||!Rt||!wt?!1:!Je(xe,lt,wt)&&!Je(xe,Rt,wt)&&xe.isAfter(wt,lt)&&xe.isAfter(Rt,wt)}function _t(xe,lt,Rt){var wt=lt.locale.getWeekFirstDay(xe),Wt=lt.setDate(Rt,1),It=lt.getWeekDay(Wt),Vt=lt.addDate(Wt,wt-It);return lt.getMonth(Vt)===lt.getMonth(Rt)&&lt.getDate(Vt)>1&&(Vt=lt.addDate(Vt,-7)),Vt}function Ve(xe,lt,Rt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(lt){case"year":return Rt.addYear(xe,wt*10);case"quarter":case"month":return Rt.addYear(xe,wt);default:return Rt.addMonth(xe,wt)}}var Ue=m.createContext({}),pt=Ue;function Ut(xe){var lt=xe.cellPrefixCls,Rt=xe.generateConfig,wt=xe.rangedValue,Wt=xe.hoverRangedValue,It=xe.isInView,Vt=xe.isSameCell,rn=xe.offsetCell,yn=xe.today,gn=xe.value;function jn(Dn){var an,Mn=rn(Dn,-1),_n=rn(Dn,1),Bn=Te(wt,0),Pn=Te(wt,1),Jn=Te(Wt,0),fr=Te(Wt,1),Fr=vt(Rt,Jn,fr,Dn);function Cn(vn){return Vt(Bn,vn)}function Xt(vn){return Vt(Pn,vn)}var hn=Vt(Jn,Dn),Rn=Vt(fr,Dn),tn=(Fr||Rn)&&(!It(Mn)||Xt(Mn)),Sn=(Fr||hn)&&(!It(_n)||Cn(_n));return an={},Object(y.a)(an,"".concat(lt,"-in-view"),It(Dn)),Object(y.a)(an,"".concat(lt,"-in-range"),vt(Rt,Bn,Pn,Dn)),Object(y.a)(an,"".concat(lt,"-range-start"),Cn(Dn)),Object(y.a)(an,"".concat(lt,"-range-end"),Xt(Dn)),Object(y.a)(an,"".concat(lt,"-range-start-single"),Cn(Dn)&&!Pn),Object(y.a)(an,"".concat(lt,"-range-end-single"),Xt(Dn)&&!Bn),Object(y.a)(an,"".concat(lt,"-range-start-near-hover"),Cn(Dn)&&(Vt(Mn,Jn)||vt(Rt,Jn,fr,Mn))),Object(y.a)(an,"".concat(lt,"-range-end-near-hover"),Xt(Dn)&&(Vt(_n,fr)||vt(Rt,Jn,fr,_n))),Object(y.a)(an,"".concat(lt,"-range-hover"),Fr),Object(y.a)(an,"".concat(lt,"-range-hover-start"),hn),Object(y.a)(an,"".concat(lt,"-range-hover-end"),Rn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start"),tn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-end"),Sn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start-near-range"),tn&&Vt(Mn,Pn)),Object(y.a)(an,"".concat(lt,"-range-hover-edge-end-near-range"),Sn&&Vt(_n,Bn)),Object(y.a)(an,"".concat(lt,"-today"),Vt(yn,Dn)),Object(y.a)(an,"".concat(lt,"-selected"),Vt(gn,Dn)),an}return jn}function Et(xe){for(var lt=xe.prefixCls,Rt=xe.disabledDate,wt=xe.onSelect,Wt=xe.rowNum,It=xe.colNum,Vt=xe.prefixColumn,rn=xe.rowClassName,yn=xe.baseDate,gn=xe.getCellClassName,jn=xe.getCellText,Dn=xe.getCellNode,an=xe.getCellDate,Mn=xe.titleCell,_n=xe.headerCells,Bn=m.useContext(c),Pn=Bn.onDateMouseEnter,Jn=Bn.onDateMouseLeave,fr="".concat(lt,"-cell"),Fr=[],Cn=0;Cn<Wt;Cn+=1){for(var Xt=[],hn=void 0,Rn=function(vn){var kn=Cn*It+vn,Fn=an(yn,kn),ir=Rt&&Rt(Fn);vn===0&&(hn=Fn,Vt&&Xt.push(Vt(hn))),Xt.push(m.createElement("td",{key:vn,title:Mn&&Mn(Fn),className:f()(fr,Object(C.a)(Object(y.a)({},"".concat(fr,"-disabled"),ir),gn(Fn))),onClick:function(){ir||wt(Fn)},onMouseEnter:function(){!ir&&Pn&&Pn(Fn)},onMouseLeave:function(){!ir&&Jn&&Jn(Fn)}},Dn?Dn(Fn):m.createElement("div",{className:"".concat(fr,"-inner")},jn(Fn))))},tn=0;tn<It;tn+=1)Rn(tn);Fr.push(m.createElement("tr",{key:Cn,className:rn&&rn(hn)},Xt))}return m.createElement("div",{className:"".concat(lt,"-body")},m.createElement("table",{className:"".concat(lt,"-content")},_n&&m.createElement("thead",null,m.createElement("tr",null,_n)),m.createElement("tbody",null,Fr)))}function jt(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.prefixColumn,Wt=xe.locale,It=xe.rowCount,Vt=xe.viewDate,rn=xe.value,yn=xe.dateRender,gn=m.useContext(pt),jn=gn.rangedValue,Dn=gn.hoverRangedValue,an=_t(Wt.locale,Rt,Vt),Mn="".concat(lt,"-cell"),_n=Rt.locale.getWeekFirstDay(Wt.locale),Bn=Rt.getNow(),Pn=[],Jn=Wt.shortWeekDays||(Rt.locale.getShortWeekDays?Rt.locale.getShortWeekDays(Wt.locale):[]);wt&&Pn.push(m.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var fr=0;fr<le;fr+=1)Pn.push(m.createElement("th",{key:fr},Jn[(fr+_n)%le]));var Fr=Ut({cellPrefixCls:Mn,today:Bn,value:rn,generateConfig:Rt,rangedValue:wt?null:jn,hoverRangedValue:wt?null:Dn,isSameCell:function(hn,Rn){return Je(Rt,hn,Rn)},isInView:function(hn){return Ae(Rt,hn,Vt)},offsetCell:function(hn,Rn){return Rt.addDate(hn,Rn)}}),Cn=yn?function(Xt){return yn(Xt,Bn)}:void 0;return m.createElement(Et,Object.assign({},xe,{rowNum:It,colNum:le,baseDate:an,getCellNode:Cn,getCellText:Rt.getDate,getCellClassName:Fr,getCellDate:Rt.addDate,titleCell:function(hn){return Rt.locale.format(Wt.locale,hn,"YYYY-MM-DD")},headerCells:Pn}))}var Ze=jt;function Be(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Wt=xe.viewDate,It=xe.onNextMonth,Vt=xe.onPrevMonth,rn=xe.onNextYear,yn=xe.onPrevYear,gn=xe.onYearClick,jn=xe.onMonthClick,Dn=m.useContext(c),an=Dn.hideHeader;if(an)return null;var Mn="".concat(lt,"-header"),_n=wt.shortMonths||(Rt.locale.getShortMonths?Rt.locale.getShortMonths(wt.locale):[]),Bn=Rt.getMonth(Wt),Pn=m.createElement("button",{type:"button",key:"year",onClick:gn,tabIndex:-1,className:"".concat(lt,"-year-btn")},Rt.locale.format(wt.locale,Wt,wt.yearFormat)),Jn=m.createElement("button",{type:"button",key:"month",onClick:jn,tabIndex:-1,className:"".concat(lt,"-month-btn")},wt.monthFormat?Rt.locale.format(wt.locale,Wt,wt.monthFormat):_n[Bn]),fr=wt.monthBeforeYear?[Jn,Pn]:[Pn,Jn];return m.createElement(s,Object.assign({},xe,{prefixCls:Mn,onSuperPrev:yn,onPrev:Vt,onNext:It,onSuperNext:rn}),fr)}var Ye=Be,Ce=6;function Le(xe){var lt=xe.prefixCls,Rt=xe.panelName,wt=Rt===void 0?"date":Rt,Wt=xe.keyboardConfig,It=xe.active,Vt=xe.operationRef,rn=xe.generateConfig,yn=xe.value,gn=xe.viewDate,jn=xe.onViewDateChange,Dn=xe.onPanelChange,an=xe.onSelect,Mn="".concat(lt,"-").concat(wt,"-panel");Vt.current={onKeyDown:function(Jn){return x(Jn,Object(C.a)({onLeftRight:function(Fr){an(rn.addDate(yn||gn,Fr),"key")},onCtrlLeftRight:function(Fr){an(rn.addYear(yn||gn,Fr),"key")},onUpDown:function(Fr){an(rn.addDate(yn||gn,Fr*le),"key")},onPageUpDown:function(Fr){an(rn.addMonth(yn||gn,Fr),"key")}},Wt))}};var _n=function(Jn){var fr=rn.addYear(gn,Jn);jn(fr),Dn(null,fr)},Bn=function(Jn){var fr=rn.addMonth(gn,Jn);jn(fr),Dn(null,fr)};return m.createElement("div",{className:f()(Mn,Object(y.a)({},"".concat(Mn,"-active"),It))},m.createElement(Ye,Object.assign({},xe,{prefixCls:lt,value:yn,viewDate:gn,onPrevYear:function(){_n(-1)},onNextYear:function(){_n(1)},onPrevMonth:function(){Bn(-1)},onNextMonth:function(){Bn(1)},onMonthClick:function(){Dn("month",gn)},onYearClick:function(){Dn("year",gn)}})),m.createElement(Ze,Object.assign({},xe,{onSelect:function(Jn){return an(Jn,"mouse")},prefixCls:lt,value:yn,viewDate:gn,rowCount:Ce})))}var He=Le;function je(xe,lt,Rt){if(!Rt)return lt;var wt=lt;return wt=xe.setHour(wt,xe.getHour(Rt)),wt=xe.setMinute(wt,xe.getMinute(Rt)),wt=xe.setSecond(wt,xe.getSecond(Rt)),wt}var Ke=he("date","time");function it(xe){var lt=xe.prefixCls,Rt=xe.operationRef,wt=xe.generateConfig,Wt=xe.value,It=xe.defaultValue,Vt=xe.disabledTime,rn=xe.showTime,yn=xe.onSelect,gn="".concat(lt,"-datetime-panel"),jn=m.useState(null),Dn=Object(O.a)(jn,2),an=Dn[0],Mn=Dn[1],_n=m.useRef({}),Bn=m.useRef({}),Pn=Object(n.a)(rn)==="object"?Object(C.a)({},rn):{};function Jn(Xt){var hn=Ke.indexOf(an)+Xt,Rn=Ke[hn]||null;return Rn}var fr=function(hn){Bn.current.onBlur&&Bn.current.onBlur(hn),Mn(null)};Rt.current={onKeyDown:function(hn){if(hn.which===i.a.TAB){var Rn=Jn(hn.shiftKey?-1:1);return Mn(Rn),Rn&&hn.preventDefault(),!0}if(an){var tn=an==="date"?_n:Bn;return tn.current&&tn.current.onKeyDown&&tn.current.onKeyDown(hn),!0}return[i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN].includes(hn.which)?(Mn("date"),!0):!1},onBlur:fr,onClose:fr};var Fr=function(hn,Rn){var tn=hn;Rn==="date"&&!Wt&&Pn.defaultValue?(tn=wt.setHour(tn,wt.getHour(Pn.defaultValue)),tn=wt.setMinute(tn,wt.getMinute(Pn.defaultValue)),tn=wt.setSecond(tn,wt.getSecond(Pn.defaultValue))):Rn==="time"&&!Wt&&It&&(tn=wt.setYear(tn,wt.getYear(It)),tn=wt.setMonth(tn,wt.getMonth(It)),tn=wt.setDate(tn,wt.getDate(It))),yn&&yn(tn,"mouse")},Cn=Vt?Vt(Wt||null):{};return m.createElement("div",{className:f()(gn,Object(y.a)({},"".concat(gn,"-active"),an))},m.createElement(He,Object.assign({},xe,{operationRef:_n,active:an==="date",onSelect:function(hn){Fr(je(wt,hn,rn&&Object(n.a)(rn)==="object"?rn.defaultValue:null),"date")}})),m.createElement(Oe,Object.assign({},xe,{format:void 0},Pn,Cn,{defaultValue:void 0,operationRef:Bn,active:an==="time",onSelect:function(hn){Fr(hn,"time")}})))}var Ct=it;function Ft(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Wt=xe.value,It="".concat(lt,"-cell"),Vt=function(jn){return m.createElement("td",{key:"week",className:f()(It,"".concat(It,"-week"))},Rt.locale.getWeek(wt.locale,jn))},rn="".concat(lt,"-week-panel-row"),yn=function(jn){return f()(rn,Object(y.a)({},"".concat(rn,"-selected"),ut(Rt,wt.locale,Wt,jn)))};return m.createElement(He,Object.assign({},xe,{panelName:"week",prefixColumn:Vt,rowClassName:yn,keyboardConfig:{onLeftRight:null}}))}var Jt=Ft;function Ht(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Wt=xe.viewDate,It=xe.onNextYear,Vt=xe.onPrevYear,rn=xe.onYearClick,yn=m.useContext(c),gn=yn.hideHeader;if(gn)return null;var jn="".concat(lt,"-header");return m.createElement(s,Object.assign({},xe,{prefixCls:jn,onSuperPrev:Vt,onSuperNext:It}),m.createElement("button",{type:"button",onClick:rn,className:"".concat(lt,"-year-btn")},Rt.locale.format(wt.locale,Wt,wt.yearFormat)))}var Ot=Ht,Fe=3,at=4;function ot(xe){var lt=xe.prefixCls,Rt=xe.locale,wt=xe.value,Wt=xe.viewDate,It=xe.generateConfig,Vt=xe.monthCellRender,rn=m.useContext(pt),yn=rn.rangedValue,gn=rn.hoverRangedValue,jn="".concat(lt,"-cell"),Dn=Ut({cellPrefixCls:jn,value:wt,generateConfig:It,rangedValue:yn,hoverRangedValue:gn,isSameCell:function(Pn,Jn){return Ae(It,Pn,Jn)},isInView:function(){return!0},offsetCell:function(Pn,Jn){return It.addMonth(Pn,Jn)}}),an=Rt.shortMonths||(It.locale.getShortMonths?It.locale.getShortMonths(Rt.locale):[]),Mn=It.setMonth(Wt,0),_n=Vt?function(Bn){return Vt(Bn,Rt)}:void 0;return m.createElement(Et,Object.assign({},xe,{rowNum:at,colNum:Fe,baseDate:Mn,getCellNode:_n,getCellText:function(Pn){return Rt.monthFormat?It.locale.format(Rt.locale,Pn,Rt.monthFormat):an[It.getMonth(Pn)]},getCellClassName:Dn,getCellDate:It.addMonth,titleCell:function(Pn){return It.locale.format(Rt.locale,Pn,"YYYY-MM")}}))}var Pe=ot;function Qe(xe){var lt=xe.prefixCls,Rt=xe.operationRef,wt=xe.onViewDateChange,Wt=xe.generateConfig,It=xe.value,Vt=xe.viewDate,rn=xe.onPanelChange,yn=xe.onSelect,gn="".concat(lt,"-month-panel");Rt.current={onKeyDown:function(an){return x(an,{onLeftRight:function(_n){yn(Wt.addMonth(It||Vt,_n),"key")},onCtrlLeftRight:function(_n){yn(Wt.addYear(It||Vt,_n),"key")},onUpDown:function(_n){yn(Wt.addMonth(It||Vt,_n*Fe),"key")},onEnter:function(){rn("date",It||Vt)}})}};var jn=function(an){var Mn=Wt.addYear(Vt,an);wt(Mn),rn(null,Mn)};return m.createElement("div",{className:gn},m.createElement(Ot,Object.assign({},xe,{prefixCls:lt,onPrevYear:function(){jn(-1)},onNextYear:function(){jn(1)},onYearClick:function(){rn("year",Vt)}})),m.createElement(Pe,Object.assign({},xe,{prefixCls:lt,onSelect:function(an){yn(an,"mouse"),rn("date",an)}})))}var ft=Qe;function bt(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Wt=xe.viewDate,It=xe.onNextYear,Vt=xe.onPrevYear,rn=xe.onYearClick,yn=m.useContext(c),gn=yn.hideHeader;if(gn)return null;var jn="".concat(lt,"-header");return m.createElement(s,Object.assign({},xe,{prefixCls:jn,onSuperPrev:Vt,onSuperNext:It}),m.createElement("button",{type:"button",onClick:rn,className:"".concat(lt,"-year-btn")},Rt.locale.format(wt.locale,Wt,wt.yearFormat)))}var Dt=bt,Mt=4,ct=1;function Lt(xe){var lt=xe.prefixCls,Rt=xe.locale,wt=xe.value,Wt=xe.viewDate,It=xe.generateConfig,Vt=m.useContext(pt),rn=Vt.rangedValue,yn=Vt.hoverRangedValue,gn="".concat(lt,"-cell"),jn=Ut({cellPrefixCls:gn,value:wt,generateConfig:It,rangedValue:rn,hoverRangedValue:yn,isSameCell:function(Mn,_n){return _e(It,Mn,_n)},isInView:function(){return!0},offsetCell:function(Mn,_n){return It.addMonth(Mn,_n*3)}}),Dn=It.setDate(It.setMonth(Wt,0),1);return m.createElement(Et,Object.assign({},xe,{rowNum:ct,colNum:Mt,baseDate:Dn,getCellText:function(Mn){return It.locale.format(Rt.locale,Mn,Rt.quarterFormat||"[Q]Q")},getCellClassName:jn,getCellDate:function(Mn,_n){return It.addMonth(Mn,_n*3)},titleCell:function(Mn){return It.locale.format(Rt.locale,Mn,"YYYY-[Q]Q")}}))}var Zt=Lt;function An(xe){var lt=xe.prefixCls,Rt=xe.operationRef,wt=xe.onViewDateChange,Wt=xe.generateConfig,It=xe.value,Vt=xe.viewDate,rn=xe.onPanelChange,yn=xe.onSelect,gn="".concat(lt,"-quarter-panel");Rt.current={onKeyDown:function(an){return x(an,{onLeftRight:function(_n){yn(Wt.addMonth(It||Vt,_n*3),"key")},onCtrlLeftRight:function(_n){yn(Wt.addYear(It||Vt,_n),"key")},onUpDown:function(_n){yn(Wt.addYear(It||Vt,_n),"key")}})}};var jn=function(an){var Mn=Wt.addYear(Vt,an);wt(Mn),rn(null,Mn)};return m.createElement("div",{className:gn},m.createElement(Dt,Object.assign({},xe,{prefixCls:lt,onPrevYear:function(){jn(-1)},onNextYear:function(){jn(1)},onYearClick:function(){rn("year",Vt)}})),m.createElement(Zt,Object.assign({},xe,{prefixCls:lt,onSelect:function(an){yn(an,"mouse")}})))}var on=An;function Tn(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.viewDate,Wt=xe.onPrevDecade,It=xe.onNextDecade,Vt=xe.onDecadeClick,rn=m.useContext(c),yn=rn.hideHeader;if(yn)return null;var gn="".concat(lt,"-header"),jn=Rt.getYear(wt),Dn=Math.floor(jn/Cr)*Cr,an=Dn+Cr-1;return m.createElement(s,Object.assign({},xe,{prefixCls:gn,onSuperPrev:Wt,onSuperNext:It}),m.createElement("button",{type:"button",onClick:Vt,className:"".concat(lt,"-decade-btn")},Dn,"-",an))}var Ln=Tn,Nn=3,ln=4;function ar(xe){var lt=xe.prefixCls,Rt=xe.value,wt=xe.viewDate,Wt=xe.locale,It=xe.generateConfig,Vt=m.useContext(pt),rn=Vt.rangedValue,yn=Vt.hoverRangedValue,gn="".concat(lt,"-cell"),jn=It.getYear(wt),Dn=Math.floor(jn/Cr)*Cr,an=Dn+Cr-1,Mn=It.setYear(wt,Dn-Math.ceil((Nn*ln-Cr)/2)),_n=function(Jn){var fr=It.getYear(Jn);return Dn<=fr&&fr<=an},Bn=Ut({cellPrefixCls:gn,value:Rt,generateConfig:It,rangedValue:rn,hoverRangedValue:yn,isSameCell:function(Jn,fr){return J(It,Jn,fr)},isInView:_n,offsetCell:function(Jn,fr){return It.addYear(Jn,fr)}});return m.createElement(Et,Object.assign({},xe,{rowNum:ln,colNum:Nn,baseDate:Mn,getCellText:It.getYear,getCellClassName:Bn,getCellDate:It.addYear,titleCell:function(Jn){return It.locale.format(Wt.locale,Jn,"YYYY")}}))}var xr=ar,Cr=10;function Yn(xe){var lt=xe.prefixCls,Rt=xe.operationRef,wt=xe.onViewDateChange,Wt=xe.generateConfig,It=xe.value,Vt=xe.viewDate,rn=xe.sourceMode,yn=xe.onSelect,gn=xe.onPanelChange,jn="".concat(lt,"-year-panel");Rt.current={onKeyDown:function(Mn){return x(Mn,{onLeftRight:function(Bn){yn(Wt.addYear(It||Vt,Bn),"key")},onCtrlLeftRight:function(Bn){yn(Wt.addYear(It||Vt,Bn*Cr),"key")},onUpDown:function(Bn){yn(Wt.addYear(It||Vt,Bn*Nn),"key")},onEnter:function(){gn(rn==="date"?"date":"month",It||Vt)}})}};var Dn=function(Mn){var _n=Wt.addYear(Vt,Mn*10);wt(_n),gn(null,_n)};return m.createElement("div",{className:jn},m.createElement(Ln,Object.assign({},xe,{prefixCls:lt,onPrevDecade:function(){Dn(-1)},onNextDecade:function(){Dn(1)},onDecadeClick:function(){gn("decade",Vt)}})),m.createElement(xr,Object.assign({},xe,{prefixCls:lt,onSelect:function(Mn){gn(rn==="date"?"date":"month",Mn),yn(Mn,"mouse")}})))}var Or=Yn;function cr(xe){var lt=xe.prefixCls,Rt=xe.generateConfig,wt=xe.viewDate,Wt=xe.onPrevDecades,It=xe.onNextDecades,Vt=m.useContext(c),rn=Vt.hideHeader;if(rn)return null;var yn="".concat(lt,"-header"),gn=Rt.getYear(wt),jn=Math.floor(gn/pr)*pr,Dn=jn+pr-1;return m.createElement(s,Object.assign({},xe,{prefixCls:yn,onSuperPrev:Wt,onSuperNext:It}),jn,"-",Dn)}var sn=cr,qt=3,On=4;function Ir(xe){var lt=yr-1,Rt=xe.prefixCls,wt=xe.viewDate,Wt=xe.generateConfig,It=xe.disabledDate,Vt="".concat(Rt,"-cell"),rn=Wt.getYear(wt),yn=Math.floor(rn/yr)*yr,gn=Math.floor(rn/pr)*pr,jn=gn+pr-1,Dn=Wt.setYear(wt,gn-Math.ceil((qt*On*yr-pr)/2)),an=function(_n){var Bn,Pn=It&&It(_n),Jn=Wt.getYear(_n),fr=Jn+lt;return Bn={},Object(y.a)(Bn,"".concat(Vt,"-disabled"),Pn),Object(y.a)(Bn,"".concat(Vt,"-in-view"),gn<=Jn&&fr<=jn),Object(y.a)(Bn,"".concat(Vt,"-selected"),Jn===yn),Bn};return m.createElement(Et,Object.assign({},xe,{rowNum:On,colNum:qt,baseDate:Dn,getCellText:function(_n){var Bn=Wt.getYear(_n);return"".concat(Bn,"-").concat(Bn+lt)},getCellClassName:an,getCellDate:function(_n,Bn){return Wt.addYear(_n,Bn*yr)}}))}var Ar=Ir,yr=10,pr=yr*10;function pe(xe){var lt=xe.prefixCls,Rt=xe.onViewDateChange,wt=xe.generateConfig,Wt=xe.viewDate,It=xe.operationRef,Vt=xe.onSelect,rn=xe.onPanelChange,yn="".concat(lt,"-decade-panel");It.current={onKeyDown:function(an){return x(an,{onLeftRight:function(_n){Vt(wt.addYear(Wt,_n*yr),"key")},onCtrlLeftRight:function(_n){Vt(wt.addYear(Wt,_n*pr),"key")},onUpDown:function(_n){Vt(wt.addYear(Wt,_n*yr*qt),"key")},onEnter:function(){rn("year",Wt)}})}};var gn=function(an){var Mn=wt.addYear(Wt,an*pr);Rt(Mn),rn(null,Mn)},jn=function(an){Vt(an,"mouse"),rn("year",an)};return m.createElement("div",{className:yn},m.createElement(sn,Object.assign({},xe,{prefixCls:lt,onPrevDecades:function(){gn(-1)},onNextDecades:function(){gn(1)}})),m.createElement(Ar,Object.assign({},xe,{prefixCls:lt,onSelect:jn})))}var X=pe;function q(xe,lt,Rt){return Rt?m.createElement("div",{className:"".concat(xe,"-footer-extra")},Rt(lt)):null}function oe(xe){var lt=xe.prefixCls,Rt=xe.rangeList,wt=Rt===void 0?[]:Rt,Wt=xe.components,It=Wt===void 0?{}:Wt,Vt=xe.needConfirmButton,rn=xe.onNow,yn=xe.onOk,gn=xe.okDisabled,jn=xe.showNow,Dn=xe.locale,an,Mn;if(wt.length){var _n=It.rangeItem||"span";an=m.createElement(m.Fragment,null,wt.map(function(Pn){var Jn=Pn.label,fr=Pn.onClick,Fr=Pn.onMouseEnter,Cn=Pn.onMouseLeave;return m.createElement("li",{key:Jn,className:"".concat(lt,"-preset")},m.createElement(_n,{onClick:fr,onMouseEnter:Fr,onMouseLeave:Cn},Jn))}))}if(Vt){var Bn=It.button||"button";rn&&!an&&jn!==!1&&(an=m.createElement("li",{className:"".concat(lt,"-now")},m.createElement("a",{className:"".concat(lt,"-now-btn"),onClick:rn},Dn.now))),Mn=Vt&&m.createElement("li",{className:"".concat(lt,"-ok")},m.createElement(Bn,{disabled:gn,onClick:yn},Dn.ok))}return!an&&!Mn?null:m.createElement("ul",{className:"".concat(lt,"-ranges")},an,Mn)}function De(xe){var lt,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Wt=xe.className,It=xe.style,Vt=xe.locale,rn=xe.generateConfig,yn=xe.value,gn=xe.defaultValue,jn=xe.pickerValue,Dn=xe.defaultPickerValue,an=xe.disabledDate,Mn=xe.mode,_n=xe.picker,Bn=_n===void 0?"date":_n,Pn=xe.tabIndex,Jn=Pn===void 0?0:Pn,fr=xe.showNow,Fr=xe.showTime,Cn=xe.showToday,Xt=xe.renderExtraFooter,hn=xe.hideHeader,Rn=xe.onSelect,tn=xe.onChange,Sn=xe.onPanelChange,vn=xe.onMouseDown,kn=xe.onPickerValueChange,Fn=xe.onOk,ir=xe.components,qn=xe.direction,Rr=xe.hourStep,Lr=Rr===void 0?1:Rr,Qn=xe.minuteStep,Dr=Qn===void 0?1:Qn,mr=xe.secondStep,zr=mr===void 0?1:mr,Nr=Bn==="date"&&!!Fr||Bn==="time",$r=24%Lr===0,nr=60%Dr===0,Kt=60%zr===0,en=m.useContext(c),Yt=en.operationRef,Xn=en.panelRef,$n=en.onSelect,Un=en.hideRanges,rr=en.defaultOpenValue,ur=m.useContext(pt),or=ur.inRange,qr=ur.panelPosition,sr=ur.rangedValue,da=ur.hoverRangedValue,Yr=m.useRef({}),gr=m.useRef(!0),Sr=Object(u.a)(null,{value:yn,defaultValue:gn,postState:function(En){return!En&&rr&&Bn==="time"?rr:En}}),Kr=Object(O.a)(Sr,2),Jr=Kr[0],Oa=Kr[1],_a=Object(u.a)(null,{value:jn,defaultValue:Dn||Jr,postState:function(En){return En||rn.getNow()}}),qe=Object(O.a)(_a,2),dt=qe[0],yt=qe[1],nt=function(En){yt(En),kn&&kn(En)},Me=function(En){var Wn=W[Bn];return Wn?Wn(En):En},Xe=Object(u.a)(function(){return Bn==="time"?"time":Me("date")},{value:Mn}),Ie=Object(O.a)(Xe,2),et=Ie[0],$e=Ie[1];m.useEffect(function(){$e(Bn)},[Bn]);var mt=m.useState(function(){return et}),rt=Object(O.a)(mt,2),Pt=rt[0],zt=rt[1],pn=function(En,Wn){var Vr=Me(En||et);zt(et),$e(Vr),Sn&&(et!==Vr||ht(rn,dt,dt))&&Sn(Wn,Vr)},un=function(En,Wn){var Vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(et===Bn||Vr)&&(Oa(En),Rn&&Rn(En),$n&&$n(En,Wn),tn&&!ht(rn,En,Jr)&&tn(En))},fn=function(En){return Yr.current&&Yr.current.onKeyDown?([i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN,i.a.PAGE_UP,i.a.PAGE_DOWN,i.a.ENTER].includes(En.which)&&En.preventDefault(),Yr.current.onKeyDown(En)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},dn=function(En){Yr.current&&Yr.current.onBlur&&Yr.current.onBlur(En)};Yt&&qr!=="right"&&(Yt.current={onKeyDown:fn,onClose:function(){Yr.current&&Yr.current.onClose&&Yr.current.onClose()}}),m.useEffect(function(){yn&&!gr.current&&yt(yn)},[yn]),m.useEffect(function(){gr.current=!1},[]);var Kn,xn=Object(C.a)(Object(C.a)({},xe),{},{operationRef:Yr,prefixCls:wt,viewDate:dt,value:Jr,onViewDateChange:nt,sourceMode:Pt,onPanelChange:pn,disabledDate:et!=="decade"?an:void 0});delete xn.onChange,delete xn.onSelect;switch(et){case"decade":Kn=m.createElement(X,Object.assign({},xn,{onSelect:function(En,Wn){nt(En),un(En,Wn)}}));break;case"year":Kn=m.createElement(Or,Object.assign({},xn,{onSelect:function(En,Wn){nt(En),un(En,Wn)}}));break;case"month":Kn=m.createElement(ft,Object.assign({},xn,{onSelect:function(En,Wn){nt(En),un(En,Wn)}}));break;case"quarter":Kn=m.createElement(on,Object.assign({},xn,{onSelect:function(En,Wn){nt(En),un(En,Wn)}}));break;case"week":Kn=m.createElement(Jt,Object.assign({},xn,{onSelect:function(En,Wn){nt(En),un(En,Wn)}}));break;case"time":delete xn.showTime,Kn=m.createElement(Oe,Object.assign({},xn,Object(n.a)(Fr)==="object"?Fr:null,{onSelect:function(En,Wn){nt(En),un(En,Wn)}}));break;default:Fr?Kn=m.createElement(Ct,Object.assign({},xn,{onSelect:function(En,Wn){nt(En),un(En,Wn)}})):Kn=m.createElement(He,Object.assign({},xn,{onSelect:function(En,Wn){nt(En),un(En,Wn)}}))}var jr,Pr,Qr=function(){var En=rn.getNow(),Wn=ye(rn.getHour(En),rn.getMinute(En),rn.getSecond(En),$r?Lr:1,nr?Dr:1,Kt?zr:1),Vr=be(rn,En,Wn[0],Wn[1],Wn[2]);un(Vr,"submit")};Un||(jr=q(wt,et,Xt),Pr=oe({prefixCls:wt,components:ir,needConfirmButton:Nr,okDisabled:!Jr||an&&an(Jr),locale:Vt,showNow:fr,onNow:Nr&&Qr,onOk:function(){Jr&&(un(Jr,"submit",!0),Fn&&Fn(Jr))}}));var Wr;if(Cn&&et==="date"&&Bn==="date"&&!Fr){var ta=rn.getNow(),Gn="".concat(wt,"-today-btn"),wr=an&&an(ta);Wr=m.createElement("a",{className:f()(Gn,wr&&"".concat(Gn,"-disabled")),"aria-disabled":wr,onClick:function(){wr||un(ta,"mouse",!0)}},Vt.today)}return m.createElement(c.Provider,{value:Object(C.a)(Object(C.a)({},en),{},{hideHeader:"hideHeader"in xe?hn:en.hideHeader,hidePrevBtn:or&&qr==="right",hideNextBtn:or&&qr==="left"})},m.createElement("div",{tabIndex:Jn,className:f()("".concat(wt,"-panel"),Wt,(lt={},Object(y.a)(lt,"".concat(wt,"-panel-has-range"),sr&&sr[0]&&sr[1]),Object(y.a)(lt,"".concat(wt,"-panel-has-range-hover"),da&&da[0]&&da[1]),Object(y.a)(lt,"".concat(wt,"-panel-rtl"),qn==="rtl"),lt)),style:It,onKeyDown:fn,onBlur:dn,onMouseDown:vn,ref:Xn},Kn,jr||Pr||Wr?m.createElement("div",{className:"".concat(wt,"-footer")},jr,Pr,Wr):null))}var fe=De,st=o("uciX"),Qt={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 In(xe){var lt,Rt=xe.prefixCls,wt=xe.popupElement,Wt=xe.popupStyle,It=xe.visible,Vt=xe.dropdownClassName,rn=xe.dropdownAlign,yn=xe.transitionName,gn=xe.getPopupContainer,jn=xe.children,Dn=xe.range,an=xe.popupPlacement,Mn=xe.direction,_n="".concat(Rt,"-dropdown"),Bn=function(){return an!==void 0?an:Mn==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(st.a,{showAction:[],hideAction:[],popupPlacement:Bn(),builtinPlacements:Qt,prefixCls:_n,popupTransitionName:yn,popup:wt,popupAlign:rn,popupVisible:It,popupClassName:f()(Vt,(lt={},Object(y.a)(lt,"".concat(_n,"-range"),Dn),Object(y.a)(lt,"".concat(_n,"-rtl"),Mn==="rtl"),lt)),popupStyle:Wt,getPopupContainer:gn},jn)}var Vn=In;function $t(xe){var lt=xe.open,Rt=xe.value,wt=xe.isClickOutside,Wt=xe.triggerOpen,It=xe.forwardKeyDown,Vt=xe.blurToCancel,rn=xe.onSubmit,yn=xe.onCancel,gn=xe.onFocus,jn=xe.onBlur,Dn=Object(m.useState)(!1),an=Object(O.a)(Dn,2),Mn=an[0],_n=an[1],Bn=Object(m.useState)(!1),Pn=Object(O.a)(Bn,2),Jn=Pn[0],fr=Pn[1],Fr=Object(m.useRef)(!1),Cn=Object(m.useRef)(!1),Xt={onMouseDown:function(){_n(!0),Wt(!0)},onKeyDown:function(Rn){switch(Rn.which){case i.a.ENTER:{lt?rn()!==!1&&_n(!0):Wt(!0),Rn.preventDefault();return}case i.a.TAB:{Mn&&lt&&!Rn.shiftKey?(_n(!1),Rn.preventDefault()):!Mn&&lt&&(!It(Rn)&&Rn.shiftKey&&(_n(!0),Rn.preventDefault()));return}case i.a.ESC:{_n(!0),yn();return}}!lt&&![i.a.SHIFT].includes(Rn.which)?Wt(!0):Mn||It(Rn)},onFocus:function(Rn){_n(!0),fr(!0),gn&&gn(Rn)},onBlur:function(Rn){if(Fr.current||!wt(document.activeElement)){Fr.current=!1;return}Vt?setTimeout(function(){wt(document.activeElement)&&yn()},0):lt&&(Wt(!1),Cn.current&&rn()),fr(!1),jn&&jn(Rn)}};return Object(m.useEffect)(function(){Cn.current=!1},[lt]),Object(m.useEffect)(function(){Cn.current=!0},[Rt]),Object(m.useEffect)(function(){return L(function(hn){var Rn=hn.target;lt&&(wt(Rn)?Jn||Wt(!1):(Fr.current=!0,requestAnimationFrame(function(){Fr.current=!1})))})}),[Xt,{focused:Jn,typing:Mn}]}function bn(xe){var lt=xe.valueTexts,Rt=xe.onTextChange,wt=m.useState(""),Wt=Object(O.a)(wt,2),It=Wt[0],Vt=Wt[1],rn=m.useRef([]);rn.current=lt;function yn(jn){Vt(jn),Rt(jn)}function gn(){Vt(rn.current[0])}return m.useEffect(function(){lt.every(function(jn){return jn!==It})&&gn()},[lt.join("||")]),[It,yn,gn]}var cn=o("Gytx"),Br=o.n(cn);function ra(xe,lt){var Rt=lt.formatList,wt=lt.generateConfig,Wt=lt.locale;return Object(E.a)(function(){if(!xe)return[[""],""];for(var It="",Vt=[],rn=0;rn<Rt.length;rn+=1){var yn=Rt[rn],gn=wt.locale.format(Wt.locale,xe,yn);Vt.push(gn),rn===0&&(It=gn)}return[Vt,It]},[xe,Rt],function(It,Vt){return It[0]!==Vt[0]||!Br()(It[1],Vt[1])})}function oa(xe,lt){var Rt=lt.formatList,wt=lt.generateConfig,Wt=lt.locale,It=Object(m.useState)(null),Vt=Object(O.a)(It,2),rn=Vt[0],yn=Vt[1],gn=Object(m.useRef)(null);function jn(Pn){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(gn.current),Jn){yn(Pn);return}gn.current=requestAnimationFrame(function(){yn(Pn)})}var Dn=ra(rn,{formatList:Rt,generateConfig:wt,locale:Wt}),an=Object(O.a)(Dn,2),Mn=an[1];function _n(Pn){jn(Pn)}function Bn(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;jn(null,Pn)}return Object(m.useEffect)(function(){Bn(!0)},[xe]),Object(m.useEffect)(function(){return function(){return cancelAnimationFrame(gn.current)}},[]),[Mn,_n,Bn]}function er(xe){var lt,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Wt=xe.id,It=xe.tabIndex,Vt=xe.style,rn=xe.className,yn=xe.dropdownClassName,gn=xe.dropdownAlign,jn=xe.popupStyle,Dn=xe.transitionName,an=xe.generateConfig,Mn=xe.locale,_n=xe.inputReadOnly,Bn=xe.allowClear,Pn=xe.autoFocus,Jn=xe.showTime,fr=xe.picker,Fr=fr===void 0?"date":fr,Cn=xe.format,Xt=xe.use12Hours,hn=xe.value,Rn=xe.defaultValue,tn=xe.open,Sn=xe.defaultOpen,vn=xe.defaultOpenValue,kn=xe.suffixIcon,Fn=xe.clearIcon,ir=xe.disabled,qn=xe.disabledDate,Rr=xe.placeholder,Lr=xe.getPopupContainer,Qn=xe.pickerRef,Dr=xe.panelRender,mr=xe.onChange,zr=xe.onOpenChange,Nr=xe.onFocus,$r=xe.onBlur,nr=xe.onMouseDown,Kt=xe.onMouseUp,en=xe.onMouseEnter,Yt=xe.onMouseLeave,Xn=xe.onContextMenu,$n=xe.onClick,Un=xe.direction,rr=xe.autoComplete,ur=rr===void 0?"off":rr,or=m.useRef(null),qr=Fr==="date"&&!!Jn||Fr==="time",sr=de(S(Cn,Fr,Jn,Xt)),da=m.useRef(null),Yr=m.useRef(null),gr=Object(u.a)(null,{value:hn,defaultValue:Rn}),Sr=Object(O.a)(gr,2),Kr=Sr[0],Jr=Sr[1],Oa=m.useState(Kr),_a=Object(O.a)(Oa,2),qe=_a[0],dt=_a[1],yt=m.useRef(null),nt=Object(u.a)(!1,{value:tn,defaultValue:Sn,postState:function(tr){return ir?!1:tr},onChange:function(tr){zr&&zr(tr),!tr&&yt.current&&yt.current.onClose&&yt.current.onClose()}}),Me=Object(O.a)(nt,2),Xe=Me[0],Ie=Me[1],et=ra(qe,{formatList:sr,generateConfig:an,locale:Mn}),$e=Object(O.a)(et,2),mt=$e[0],rt=$e[1],Pt=bn({valueTexts:mt,onTextChange:function(tr){var pa=an.locale.parse(Mn.locale,tr,sr);pa&&(!qn||!qn(pa))&&dt(pa)}}),zt=Object(O.a)(Pt,3),pn=zt[0],un=zt[1],fn=zt[2],dn=function(tr){dt(tr),Jr(tr),mr&&!ht(an,Kr,tr)&&mr(tr,tr?an.locale.format(Mn.locale,tr,sr[0]):"")},Kn=function(tr){if(ir&&tr)return;Ie(tr)},xn=function(tr){return Xe&&yt.current&&yt.current.onKeyDown?yt.current.onKeyDown(tr):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},jr=function(){Kt&&Kt.apply(void 0,arguments),or.current&&(or.current.focus(),Kn(!0))},Pr=$t({blurToCancel:qr,open:Xe,value:pn,triggerOpen:Kn,forwardKeyDown:xn,isClickOutside:function(tr){return!F([da.current,Yr.current],tr)},onSubmit:function(){return qn&&qn(qe)?!1:(dn(qe),Kn(!1),fn(),!0)},onCancel:function(){Kn(!1),dt(Kr),fn()},onFocus:Nr,onBlur:$r}),Qr=Object(O.a)(Pr,2),Wr=Qr[0],ta=Qr[1],Gn=ta.focused,wr=ta.typing;m.useEffect(function(){Xe||(dt(Kr),!mt.length||mt[0]===""?un(""):rt!==pn&&fn())},[Xe,mt]),m.useEffect(function(){Xe||fn()},[Fr]),m.useEffect(function(){dt(Kr)},[Kr]),Qn&&(Qn.current={focus:function(){or.current&&or.current.focus()},blur:function(){or.current&&or.current.blur()}});var zn=Object(C.a)(Object(C.a)({},xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),En=m.createElement(fe,Object.assign({},zn,{generateConfig:an,className:f()(Object(y.a)({},"".concat(wt,"-panel-focused"),!wr)),value:qe,locale:Mn,tabIndex:-1,onChange:dt,direction:Un}));Dr&&(En=Dr(En));var Wn=m.createElement("div",{className:"".concat(wt,"-panel-container"),onMouseDown:function(tr){tr.preventDefault()}},En),Vr;kn&&(Vr=m.createElement("span",{className:"".concat(wt,"-suffix")},kn));var ua;Bn&&Kr&&!ir&&(ua=m.createElement("span",{onMouseDown:function(tr){tr.preventDefault(),tr.stopPropagation()},onMouseUp:function(tr){tr.preventDefault(),tr.stopPropagation(),dn(null),Kn(!1)},className:"".concat(wt,"-clear")},Fn||m.createElement("span",{className:"".concat(wt,"-clear-btn")})));var dr=function(tr,pa){(pa==="submit"||pa!=="key"&&!qr)&&(dn(tr),Kn(!1))},aa=Un==="rtl"?"bottomRight":"bottomLeft",Ca=oa(pn,{formatList:sr,generateConfig:an,locale:Mn}),ha=Object(O.a)(Ca,3),Sa=ha[0],Tr=ha[1],vr=ha[2];return m.createElement(c.Provider,{value:{operationRef:yt,hideHeader:Fr==="time",panelRef:da,onSelect:dr,open:Xe,defaultOpenValue:vn,onDateMouseEnter:Tr,onDateMouseLeave:vr}},m.createElement(Vn,{visible:Xe,popupElement:Wn,popupStyle:jn,prefixCls:wt,dropdownClassName:yn,dropdownAlign:gn,getPopupContainer:Lr,transitionName:Dn,popupPlacement:aa,direction:Un},m.createElement("div",{className:f()(wt,rn,(lt={},Object(y.a)(lt,"".concat(wt,"-disabled"),ir),Object(y.a)(lt,"".concat(wt,"-focused"),Gn),Object(y.a)(lt,"".concat(wt,"-rtl"),Un==="rtl"),lt)),style:Vt,onMouseDown:nr,onMouseUp:jr,onMouseEnter:en,onMouseLeave:Yt,onContextMenu:Xn,onClick:$n},m.createElement("div",{className:f()("".concat(wt,"-input"),Object(y.a)({},"".concat(wt,"-input-placeholder"),!!Sa)),ref:Yr},m.createElement("input",Object.assign({id:Wt,tabIndex:It,disabled:ir,readOnly:_n||!wr,value:Sa||pn,onChange:function(tr){un(tr.target.value)},autoFocus:Pn,placeholder:Rr,ref:or,title:pn},Wr,{size:v(Fr,sr[0])},Se(xe),{autoComplete:ur})),Vr,ua))))}var Ba=function(xe){Object(A.a)(Rt,xe);var lt=Object(b.a)(Rt);function Rt(){var wt;return Object(M.a)(this,Rt),wt=lt.apply(this,arguments),wt.pickerRef=m.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Rt,[{key:"render",value:function(){return m.createElement(er,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),Ea=Ba;function ca(xe,lt,Rt){var wt=xe.picker,Wt=xe.locale,It=xe.selectedValue,Vt=xe.disabledDate,rn=xe.disabled,yn=xe.generateConfig,gn=Te(It,0),jn=Te(It,1);function Dn(Pn){var Jn=yn.getYear(Pn),fr=yn.locale.getWeek(Wt.locale,Pn);return Jn*100+fr}function an(Pn){var Jn=yn.getYear(Pn),fr=yn.getMonth(Pn);return Jn*100+fr}function Mn(Pn){var Jn=yn.getYear(Pn),fr=ve(yn,Pn);return Jn*10+fr}var _n=m.useCallback(function(Pn){if(Vt&&Vt(Pn))return!0;if(rn[1]&&jn)return!Je(yn,Pn,jn)&&yn.isAfter(Pn,jn);if(lt&&jn)switch(wt){case"quarter":return Mn(Pn)>Mn(jn);case"month":return an(Pn)>an(jn);case"week":return Dn(Pn)>Dn(jn);default:return!Je(yn,Pn,jn)&&yn.isAfter(Pn,jn)}return!1},[Vt,rn[1],jn,lt]),Bn=m.useCallback(function(Pn){if(Vt&&Vt(Pn))return!0;if(rn[0]&&gn)return!Je(yn,Pn,jn)&&yn.isAfter(gn,Pn);if(Rt&&gn)switch(wt){case"quarter":return Mn(Pn)<Mn(gn);case"month":return an(Pn)<an(gn);case"week":return Dn(Pn)<Dn(gn);default:return!Je(yn,Pn,gn)&&yn.isAfter(gn,Pn)}return!1},[Vt,rn[0],gn,Rt]);return[_n,Bn]}function Ka(xe,lt,Rt,wt){var Wt=Ve(xe,Rt,wt,1);function It(Vt){return Vt(xe,lt)?"same":Vt(Wt,lt)?"closing":"far"}switch(Rt){case"year":return It(function(Vt,rn){return Q(wt,Vt,rn)});case"quarter":case"month":return It(function(Vt,rn){return J(wt,Vt,rn)});default:return It(function(Vt,rn){return Ae(wt,Vt,rn)})}}function Ta(xe,lt,Rt,wt){var Wt=Te(xe,0),It=Te(xe,1);if(lt===0)return Wt;if(Wt&&It){var Vt=Ka(Wt,It,Rt,wt);switch(Vt){case"same":return Wt;case"closing":return Wt;default:return Ve(It,Rt,wt,-1)}}return Wt}function Ja(xe){var lt=xe.values,Rt=xe.picker,wt=xe.defaultDates,Wt=xe.generateConfig,It=m.useState(function(){return[Te(wt,0),Te(wt,1)]}),Vt=Object(O.a)(It,2),rn=Vt[0],yn=Vt[1],gn=m.useState(null),jn=Object(O.a)(gn,2),Dn=jn[0],an=jn[1],Mn=Te(lt,0),_n=Te(lt,1);function Bn(Jn){return rn[Jn]?rn[Jn]:Te(Dn,Jn)||Ta(lt,Jn,Rt,Wt)||Mn||_n||Wt.getNow()}function Pn(Jn,fr){if(Jn){var Fr=ce(Dn,Jn,fr);yn(ce(rn,null,fr)||[null,null]);var Cn=(fr+1)%2;Te(lt,Cn)||(Fr=ce(Fr,Jn,Cn)),an(Fr)}else(Mn||_n)&&an(null)}return[Bn,Pn]}function Ua(xe,lt){return xe&&xe[0]&&xe[1]&&lt.isAfter(xe[0],xe[1])?[xe[1],xe[0]]:xe}function li(xe,lt,Rt,wt){return xe||wt&&wt[lt]?!0:!!Rt[(lt+1)%2]}function oi(xe){var lt,Rt,wt,Wt=xe.prefixCls,It=Wt===void 0?"rc-picker":Wt,Vt=xe.id,rn=xe.style,yn=xe.className,gn=xe.popupStyle,jn=xe.dropdownClassName,Dn=xe.transitionName,an=xe.dropdownAlign,Mn=xe.getPopupContainer,_n=xe.generateConfig,Bn=xe.locale,Pn=xe.placeholder,Jn=xe.autoFocus,fr=xe.disabled,Fr=xe.format,Cn=xe.picker,Xt=Cn===void 0?"date":Cn,hn=xe.showTime,Rn=xe.use12Hours,tn=xe.separator,Sn=tn===void 0?"~":tn,vn=xe.value,kn=xe.defaultValue,Fn=xe.defaultPickerValue,ir=xe.open,qn=xe.defaultOpen,Rr=xe.disabledDate,Lr=xe.disabledTime,Qn=xe.dateRender,Dr=xe.panelRender,mr=xe.ranges,zr=xe.allowEmpty,Nr=xe.allowClear,$r=xe.suffixIcon,nr=xe.clearIcon,Kt=xe.pickerRef,en=xe.inputReadOnly,Yt=xe.mode,Xn=xe.renderExtraFooter,$n=xe.onChange,Un=xe.onOpenChange,rr=xe.onPanelChange,ur=xe.onCalendarChange,or=xe.onFocus,qr=xe.onBlur,sr=xe.onOk,da=xe.components,Yr=xe.order,gr=xe.direction,Sr=xe.activePickerIndex,Kr=xe.autoComplete,Jr=Kr===void 0?"off":Kr,Oa=Xt==="date"&&!!hn||Xt==="time",_a=Object(m.useRef)({}),qe=Object(m.useRef)(null),dt=Object(m.useRef)(null),yt=Object(m.useRef)(null),nt=Object(m.useRef)(null),Me=Object(m.useRef)(null),Xe=Object(m.useRef)(null),Ie=Object(m.useRef)(null),et=de(S(Fr,Xt,hn,Rn)),$e=Object(u.a)(0,{value:Sr}),mt=Object(O.a)($e,2),rt=mt[0],Pt=mt[1],zt=Object(m.useRef)(null),pn=m.useMemo(function(){return Array.isArray(fr)?fr:[fr||!1,fr||!1]},[fr]),un=Object(u.a)(null,{value:vn,defaultValue:kn,postState:function(Er){return Xt==="time"&&!Yr?Er:Ua(Er,_n)}}),fn=Object(O.a)(un,2),dn=fn[0],Kn=fn[1],xn=Ja({values:dn,picker:Xt,defaultDates:Fn,generateConfig:_n}),jr=Object(O.a)(xn,2),Pr=jr[0],Qr=jr[1],Wr=Object(u.a)(dn,{postState:function(Er){var Zr=Er;if(pn[0]&&pn[1])return Zr;for(var va=0;va<2;va+=1)pn[va]&&!Te(Zr,va)&&!Te(zr,va)&&(Zr=ce(Zr,_n.getNow(),va));return Zr}}),ta=Object(O.a)(Wr,2),Gn=ta[0],wr=ta[1],zn=Object(u.a)([Xt,Xt],{value:Yt}),En=Object(O.a)(zn,2),Wn=En[0],Vr=En[1];Object(m.useEffect)(function(){Vr([Xt,Xt])},[Xt]);var ua=function(Er,Zr){Vr(Er),rr&&rr(Zr,Er)},dr=ca({picker:Xt,selectedValue:Gn,locale:Bn,disabled:pn,disabledDate:Rr,generateConfig:_n},_a.current[1],_a.current[0]),aa=Object(O.a)(dr,2),Ca=aa[0],ha=aa[1],Sa=Object(u.a)(!1,{value:ir,defaultValue:qn,postState:function(Er){return pn[rt]?!1:Er},onChange:function(Er){Un&&Un(Er),!Er&&zt.current&&zt.current.onClose&&zt.current.onClose()}}),Tr=Object(O.a)(Sa,2),vr=Tr[0],Mr=Tr[1],tr=vr&&rt===0,pa=vr&&rt===1,xa=Object(m.useState)(0),ba=Object(O.a)(xa,2),Aa=ba[0],ga=ba[1];Object(m.useEffect)(function(){!vr&&qe.current&&ga(qe.current.offsetWidth)},[vr]);var Na=m.useRef();function ka(sa,Er){if(sa)clearTimeout(Na.current),_a.current[Er]=!0,Pt(Er),Mr(sa),vr||Qr(null,Er);else if(rt===Er){Mr(sa);var Zr=_a.current;Na.current=setTimeout(function(){Zr===_a.current&&(_a.current={})})}}function Fa(sa){ka(!0,sa),setTimeout(function(){var Er=[Xe,Ie][sa];Er.current&&Er.current.focus()},0)}function ni(sa,Er){var Zr=sa,va=Te(Zr,0),Wa=Te(Zr,1);va&&Wa&&_n.isAfter(va,Wa)&&(Xt==="week"&&!ut(_n,Bn.locale,va,Wa)||Xt==="quarter"&&!_e(_n,va,Wa)||Xt!=="week"&&Xt!=="quarter"&&Xt!=="time"&&!Je(_n,va,Wa)?(Er===0?(Zr=[va,null],Wa=null):(va=null,Zr=[null,Wa]),_a.current=Object(y.a)({},Er,!0)):(Xt!=="time"||Yr!==!1)&&(Zr=Ua(Zr,_n))),wr(Zr);var Ei=Zr&&Zr[0]?_n.locale.format(Bn.locale,Zr[0],et[0]):"",Pi=Zr&&Zr[1]?_n.locale.format(Bn.locale,Zr[1],et[0]):"";if(ur){var $a={range:Er===0?"start":"end"};ur(Zr,[Ei,Pi],$a)}var xi=li(va,0,pn,zr),Ki=li(Wa,1,pn,zr),go=Zr===null||xi&&Ki;go&&(Kn(Zr),$n&&(!ht(_n,Te(dn,0),va)||!ht(_n,Te(dn,1),Wa))&&$n(Zr,[Ei,Pi]));var Qa=null;Er===0&&!pn[1]?Qa=1:Er===1&&!pn[0]&&(Qa=0),Qa!==null&&Qa!==rt&&(!_a.current[Qa]||!Te(Zr,Qa))&&Te(Zr,Er)?Fa(Qa):ka(!1,Er)}var Fi=function(Er){return vr&&zt.current&&zt.current.onKeyDown?zt.current.onKeyDown(Er):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ai={formatList:et,generateConfig:_n,locale:Bn},La=ra(Te(Gn,0),Ai),bi=Object(O.a)(La,2),Si=bi[0],ja=bi[1],Ma=ra(Te(Gn,1),Ai),Za=Object(O.a)(Ma,2),to=Za[0],Mo=Za[1],Ii=function(Er,Zr){var va=_n.locale.parse(Bn.locale,Er,et),Wa=Zr===0?Ca:ha;va&&!Wa(va)&&(wr(ce(Gn,va,Zr)),Qr(va,Zr))},no=bn({valueTexts:Si,onTextChange:function(Er){return Ii(Er,0)}}),ro=Object(O.a)(no,3),mi=ro[0],uo=ro[1],Io=ro[2],Lo=bn({valueTexts:to,onTextChange:function(Er){return Ii(Er,1)}}),bo=Object(O.a)(Lo,3),Vi=bo[0],co=bo[1],Xi=bo[2],Yi=Object(m.useState)(null),No=Object(O.a)(Yi,2),yo=No[0],ao=No[1],Ji=Object(m.useState)(null),Qi=Object(O.a)(Ji,2),ei=Qi[0],Li=Qi[1],Di=oa(mi,{formatList:et,generateConfig:_n,locale:Bn}),Zi=Object(O.a)(Di,3),Ri=Zi[0],Eo=Zi[1],xo=Zi[2],Co=oa(Vi,{formatList:et,generateConfig:_n,locale:Bn}),io=Object(O.a)(Co,3),Ni=io[0],qi=io[1],ko=io[2],oo=function(Er){Li(ce(Gn,Er,rt)),rt===0?Eo(Er):qi(Er)},so=function(){Li(ce(Gn,null,rt)),rt===0?xo():ko()},So=function(Er,Zr){return{blurToCancel:Oa,forwardKeyDown:Fi,onBlur:qr,isClickOutside:function(Wa){return!F([dt.current,yt.current,nt.current],Wa)},onFocus:function(Wa){Pt(Er),or&&or(Wa)},triggerOpen:function(Wa){ka(Wa,Er)},onSubmit:function(){ni(Gn,Er),Zr()},onCancel:function(){ka(!1,Er),wr(dn),Zr()}}},Uo=$t(Object(C.a)(Object(C.a)({},So(0,Io)),{},{open:tr,value:mi})),jo=Object(O.a)(Uo,2),fi=jo[0],Ha=jo[1],ri=Ha.focused,Xa=Ha.typing,ai=$t(Object(C.a)(Object(C.a)({},So(1,Xi)),{},{open:pa,value:Vi})),wo=Object(O.a)(ai,2),yi=wo[0],Bo=wo[1],To=Bo.focused,$i=Bo.typing,Wi=function(Er){!vr&&!Xe.current.contains(Er.target)&&!Ie.current.contains(Er.target)&&(pn[0]?pn[1]||Fa(1):Fa(0))},Oo=function(Er){vr&&(ri||To)&&!Xe.current.contains(Er.target)&&!Ie.current.contains(Er.target)&&Er.preventDefault()},fo=dn&&dn[0]?_n.locale.format(Bn.locale,dn[0],"YYYYMMDDHHmmss"):"",Wo=dn&&dn[1]?_n.locale.format(Bn.locale,dn[1],"YYYYMMDDHHmmss"):"";Object(m.useEffect)(function(){vr||(wr(dn),!Si.length||Si[0]===""?uo(""):ja!==mi&&Io(),!to.length||to[0]===""?co(""):Mo!==Vi&&Xi())},[vr,Si,to]),Object(m.useEffect)(function(){wr(dn)},[fo,Wo]),Kt&&(Kt.current={focus:function(){Xe.current&&Xe.current.focus()},blur:function(){Xe.current&&Xe.current.blur(),Ie.current&&Ie.current.blur()}});var lo=Object.keys(mr||{}),Da=lo.map(function(sa){var Er=mr[sa],Zr=typeof Er=="function"?Er():Er;return{label:sa,onClick:function(){ni(Zr,null),ka(!1,rt)},onMouseEnter:function(){ao(Zr)},onMouseLeave:function(){ao(null)}}});function ya(){var sa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zr=null;vr&&ei&&ei[0]&&ei[1]&&_n.isAfter(ei[1],ei[0])&&(Zr=ei);var va=hn;if(hn&&Object(n.a)(hn)==="object"&&hn.defaultValue){var Wa=hn.defaultValue;va=Object(C.a)(Object(C.a)({},hn),{},{defaultValue:Te(Wa,rt)||void 0})}var Ei=null;return Qn&&(Ei=function($a,xi){return Qn($a,xi,{range:rt?"end":"start"})}),m.createElement(pt.Provider,{value:{inRange:!0,panelPosition:sa,rangedValue:yo||Gn,hoverRangedValue:Zr}},m.createElement(fe,Object.assign({},xe,Er,{dateRender:Ei,showTime:va,mode:Wn[rt],generateConfig:_n,style:void 0,direction:gr,disabledDate:rt===0?Ca:ha,disabledTime:function($a){return Lr?Lr($a,rt===0?"start":"end"):!1},className:f()(Object(y.a)({},"".concat(It,"-panel-focused"),rt===0?!Xa:!$i)),value:Te(Gn,rt),locale:Bn,tabIndex:-1,onPanelChange:function($a,xi){ua(ce(Wn,xi,rt),ce(Gn,$a,rt));var Ki=$a;sa==="right"&&Wn[rt]===xi&&(Ki=Ve(Ki,xi,_n,-1)),Qr(Ki,rt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ga=0,ui=0;rt&&yt.current&&Me.current&&dt.current&&(Ga=yt.current.offsetWidth+Me.current.offsetWidth,dt.current.offsetWidth&&Ga>dt.current.offsetWidth&&(ui=Ga));var eo=gr==="rtl"?{right:Ga}:{left:Ga};function ki(){var sa,Er=q(It,Wn[rt],Xn),Zr=oe({prefixCls:It,components:da,needConfirmButton:Oa,okDisabled:!Te(Gn,rt)||Rr&&Rr(Gn[rt]),locale:Bn,rangeList:Da,onOk:function(){Te(Gn,rt)&&(ni(Gn,rt),sr&&sr(Gn))}});if(Xt!=="time"&&!hn){var va=Pr(rt),Wa=Ve(va,Xt,_n),Ei=Wn[rt],Pi=Ei===Xt,$a=ya(Pi?"left":!1,{pickerValue:va,onPickerValueChange:function(Qa){Qr(Qa,rt)}}),xi=ya("right",{pickerValue:Wa,onPickerValueChange:function(Qa){Qr(Ve(Qa,Xt,_n,-1),rt)}});gr==="rtl"?sa=m.createElement(m.Fragment,null,xi,Pi&&$a):sa=m.createElement(m.Fragment,null,$a,Pi&&xi)}else sa=ya();var Ki=m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(It,"-panels")},sa),(Er||Zr)&&m.createElement("div",{className:"".concat(It,"-footer")},Er,Zr));return Dr&&(Ki=Dr(Ki)),m.createElement("div",{className:"".concat(It,"-panel-container"),style:{marginLeft:ui},ref:dt,onMouseDown:function(Qa){Qa.preventDefault()}},Ki)}var ho=m.createElement("div",{className:f()("".concat(It,"-range-wrapper"),"".concat(It,"-").concat(Xt,"-range-wrapper")),style:{minWidth:Aa}},m.createElement("div",{className:"".concat(It,"-range-arrow"),style:eo}),ki()),wi;$r&&(wi=m.createElement("span",{className:"".concat(It,"-suffix")},$r));var qa;Nr&&(Te(dn,0)&&!pn[0]||Te(dn,1)&&!pn[1])&&(qa=m.createElement("span",{onMouseDown:function(Er){Er.preventDefault(),Er.stopPropagation()},onMouseUp:function(Er){Er.preventDefault(),Er.stopPropagation();var Zr=dn;pn[0]||(Zr=ce(Zr,null,0)),pn[1]||(Zr=ce(Zr,null,1)),ni(Zr,null),ka(!1,rt)},className:"".concat(It,"-clear")},nr||m.createElement("span",{className:"".concat(It,"-clear-btn")})));var po={size:v(Xt,et[0])},Hi=0,mo=0;yt.current&&nt.current&&Me.current&&(rt===0?mo=yt.current.offsetWidth:(Hi=Ga,mo=nt.current.offsetWidth));var hi=gr==="rtl"?{right:Hi}:{left:Hi},Pa=function(Er,Zr){var va=ce(Gn,Er,rt);Zr==="submit"||Zr!=="key"&&!Oa?(ni(va,rt),rt===0?xo():ko()):wr(va)};return m.createElement(c.Provider,{value:{operationRef:zt,hideHeader:Xt==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Pa,open:vr}},m.createElement(Vn,{visible:vr,popupElement:ho,popupStyle:gn,prefixCls:It,dropdownClassName:jn,dropdownAlign:an,getPopupContainer:Mn,transitionName:Dn,range:!0,direction:gr},m.createElement("div",Object.assign({ref:qe,className:f()(It,"".concat(It,"-range"),yn,(lt={},Object(y.a)(lt,"".concat(It,"-disabled"),pn[0]&&pn[1]),Object(y.a)(lt,"".concat(It,"-focused"),rt===0?ri:To),Object(y.a)(lt,"".concat(It,"-rtl"),gr==="rtl"),lt)),style:rn,onClick:Wi,onMouseDown:Oo},Se(xe)),m.createElement("div",{className:f()("".concat(It,"-input"),(Rt={},Object(y.a)(Rt,"".concat(It,"-input-active"),rt===0),Object(y.a)(Rt,"".concat(It,"-input-placeholder"),!!Ri),Rt)),ref:yt},m.createElement("input",Object.assign({id:Vt,disabled:pn[0],readOnly:en||!Xa,value:Ri||mi,onChange:function(Er){uo(Er.target.value)},autoFocus:Jn,placeholder:Te(Pn,0)||"",ref:Xe},fi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(It,"-range-separator"),ref:Me},Sn),m.createElement("div",{className:f()("".concat(It,"-input"),(wt={},Object(y.a)(wt,"".concat(It,"-input-active"),rt===1),Object(y.a)(wt,"".concat(It,"-input-placeholder"),!!Ni),wt)),ref:nt},m.createElement("input",Object.assign({disabled:pn[1],readOnly:en||!$i,value:Ni||Vi,onChange:function(Er){co(Er.target.value)},placeholder:Te(Pn,1)||"",ref:Ie},yi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(It,"-active-bar"),style:Object(C.a)(Object(C.a)({},hi),{},{width:mo,position:"absolute"})}),wi,qa)))}var fa=function(xe){Object(A.a)(Rt,xe);var lt=Object(b.a)(Rt);function Rt(){var wt;return Object(M.a)(this,Rt),wt=lt.apply(this,arguments),wt.pickerRef=m.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Rt,[{key:"render",value:function(){return m.createElement(oi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),ma=fa,la=z.b=Ea},onxn:function(k,z){k.exports="data:image/png;base64,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"},osHv:function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";var g=M.Pos;function A(h,d){return h.line-d.line||h.ch-d.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",C=new RegExp("<(/?)(["+b+"]["+y+"]*)","g");function O(h,d,s,l){this.line=d,this.ch=s,this.cm=h,this.text=h.getLine(d),this.min=l?Math.max(l.from,h.firstLine()):h.firstLine(),this.max=l?Math.min(l.to-1,h.lastLine()):h.lastLine()}function m(h,d){var s=h.cm.getTokenTypeAt(g(h.line,d));return s&&/\btag\b/.test(s)}function e(h){return h.line>=h.max?void 0:(h.ch=0,h.text=h.cm.getLine(++h.line),!0)}function f(h){return h.line<=h.min?void 0:(h.text=h.cm.getLine(--h.line),h.ch=h.text.length,!0)}function a(h){for(;;){var d=h.text.indexOf(">",h.ch);if(d==-1){if(e(h))continue;return}if(!m(h,d+1)){h.ch=d+1;continue}var s=h.text.lastIndexOf("/",d),l=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,l?"selfClose":"regular"}}function u(h){for(;;){var d=h.ch?h.text.lastIndexOf("<",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!m(h,d+1)){h.ch=d;continue}C.lastIndex=d,h.ch=d;var s=C.exec(h.text);if(s&&s.index==d)return s}}function n(h){for(;;){C.lastIndex=h.ch;var d=C.exec(h.text);if(!d){if(e(h))continue;return}if(!m(h,d.index+1)){h.ch=d.index+1;continue}return h.ch=d.index+d[0].length,d}}function i(h){for(;;){var d=h.ch?h.text.lastIndexOf(">",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!m(h,d+1)){h.ch=d;continue}var s=h.text.lastIndexOf("/",d),l=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,l?"selfClose":"regular"}}function r(h,d){for(var s=[];;){var l=n(h),w,E=h.line,_=h.ch-(l?l[0].length:0);if(!l||!(w=a(h)))return;if(w=="selfClose")continue;if(l[1]){for(var P=s.length-1;P>=0;--P)if(s[P]==l[2]){s.length=P;break}if(P<0&&(!d||d==l[2]))return{tag:l[2],from:g(E,_),to:g(h.line,h.ch)}}else s.push(l[2])}}function c(h,d){for(var s=[];;){var l=i(h);if(!l)return;if(l=="selfClose"){u(h);continue}var w=h.line,E=h.ch,_=u(h);if(!_)return;if(_[1])s.push(_[2]);else{for(var P=s.length-1;P>=0;--P)if(s[P]==_[2]){s.length=P;break}if(P<0&&(!d||d==_[2]))return{tag:_[2],from:g(h.line,h.ch),to:g(w,E)}}}}M.registerHelper("fold","xml",function(h,d){for(var s=new O(h,d.line,0);;){var l=n(s);if(!l||s.line!=d.line)return;var w=a(s);if(!w)return;if(!l[1]&&w!="selfClose"){var E=g(s.line,s.ch),_=r(s,l[2]);return _&&A(_.from,E)>0?{from:E,to:_.from}:null}}}),M.findMatchingTag=function(h,d,s){var l=new O(h,d.line,d.ch,s);if(l.text.indexOf(">")==-1&&l.text.indexOf("<")==-1)return;var w=a(l),E=w&&g(l.line,l.ch),_=w&&u(l);if(!w||!_||A(l,d)>0)return;var P={from:g(l.line,l.ch),to:E,tag:_[2]};return w=="selfClose"?{open:P,close:null,at:"open"}:_[1]?{open:c(l,_[2]),close:P,at:"close"}:(l=new O(h,E.line,E.ch,s),{open:P,close:r(l,_[2]),at:"open"})},M.findEnclosingTag=function(h,d,s,l){for(var w=new O(h,d.line,d.ch,s);;){var E=c(w,l);if(!E)break;var _=new O(h,d.line,d.ch,s),P=r(_,E.tag);if(P)return{open:E,close:P}}},M.scanForClosingTag=function(h,d,s,l){var w=new O(h,d.line,d.ch,l?{from:0,to:l}:null);return r(w,s)}})},p5ED:function(k,z,o){"use strict";var M=o("+L6B"),g=o("2/Rp"),A=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),C=o("9og8"),O=o("tJVT"),m=o("WmNS"),e=o.n(m),f=o("q1tI"),a=o.n(f),u=o("vHTk"),n=o.n(u),i=o("yEEn"),r=o("ZW9T"),c=o("1vsH"),h=o("V0Rq"),d=o("m3rI");z.a=function(s){var l,w,E,_,P,R,x,S=s.editOffice,v=S===void 0?"view":S,T=s.data,U=s.theme,L=s.type,N=s.filename,V=s.monacoEditor,H=s.className,D=s.style,W=s.close,F=s.onClose,I=s.hasMask,K=s.disabledDownload,ee=Object(f.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),he=Object(O.a)(ee,2),de=he[0],Se=he[1],Te=Object(f.useState)(""),ce=Object(O.a)(Te,2),be=ce[0],ye=ce[1],ue=Object(f.useState)(),se=Object(O.a)(ue,2),$=se[0],me=se[1],re=window.ENV==="build"?"/react/build":"",ae=d.a.PROXY_SERVER||location.origin,Oe,le=1024*1024,te=10*le,Q=Object(f.useRef)();(l=T)!==null&&l!==void 0&&l.startsWith("/api")&&L!=="txt"&&(T=d.a.API_SERVER+T),L==="office"&&(Oe=Object(c.V)(T).filesize,Oe>te&&(L="other")),N&&V&&(V.filename=N),Object(f.useEffect)(function(){var Ae,Je,tt=(Ae=document.cookie)===null||Ae===void 0||((Je=Ae.replace(/\s/g,""))===null||Je===void 0)?void 0:Je.split(";");tt==null||tt.map(function(ut){var ht=ut.split("=");ht[0]==="_educoder_session"&&ye(ht[1])})},[]),Object(f.useEffect)(function(){L==="office"&&J()},[L,T]);var J=function(){var Ae=Object(C.a)(e.a.mark(function Je(){var tt,ut,ht;return e.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return console.log("data:",T),tt=T,T.startsWith("http")||(tt=location.origin+tt),ut=new URL(tt).pathname.split("/").pop(),_t.next=6,Object(h.V)({attachment_id:ut});case 6:ht=_t.sent,me(ht);case 8:case"end":return _t.stop()}},Je)}));return function(){return Ae.apply(this,arguments)}}(),ve=function(){if(T.startsWith("http")||T.startsWith("blob:")){_e();return}Object(c.B)(N||"educoder",T,N)},_e=function(){Object(c.z)(N||"educoder",decodeURIComponent(T))};return a.a.createElement("div",{style:Object(y.a)({},D||{}),className:"".concat(I&&n.a.bgBlack," ").concat(L?n.a.wrp:"hide")},W&&a.a.createElement("div",{className:n.a.close,ref:Q},!K&&a.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Q.current}},a.a.createElement("span",{onClick:_e},a.a.createElement("i",{className:"icon-quxiaozhiding"}))),a.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Q.current}},a.a.createElement("span",{className:"",onClick:F},a.a.createElement("i",{className:"icon-guanbi1"})))),a.a.createElement("div",{className:"".concat(n.a[H]," ").concat(H," ").concat(n.a.monaco," ").concat(L==="txt"?"show":"hide")},L==="txt"&&a.a.createElement(r.b,V)),L==="audio"&&a.a.createElement("audio",{src:"".concat(((w=T)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((E=T)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(T),autoPlay:!0}),L==="video"&&a.a.createElement(a.a.Fragment,null,((_=T)===null||_===void 0?void 0:_.indexOf("http"))>-1?a.a.createElement("video",{controls:!0,src:"".concat(T),autoPlay:!0}):a.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(T),autoPlay:!0})),L==="office"&&$&&a.a.createElement("iframe",{src:"".concat(re,"/office.html?key=").concat($.key,"&url=").concat(ae+$.url,"&callbackUrl=").concat(ae+$.callbackUrl,"&fileType=").concat($.fileType,"&title=").concat($.title,"&model=").concat(v,"&officeServer=").concat(d.a.OFFICE_SERVER,"&disabledDownload=").concat(!!K)}),L==="html"&&a.a.createElement("iframe",{src:T+"&disposition=inline"}),L==="pdf"&&a.a.createElement("iframe",{src:"".concat(re,"/js/pdfview/index.html?url=").concat(T,"&disabledDownload=").concat(!!K)}),L==="image"&&a.a.createElement("img",{src:"".concat(((P=T)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((R=T)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(x=T)!==null&&x!==void 0&&x.startsWith("/api")?"":"data:image/png;base64,").concat(T)}),L==="other"&&a.a.createElement("div",null,a.a.createElement(g.a,{type:"primary",size:"large",onClick:ve},a.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),L==="download"&&a.a.createElement(g.a,{type:"primary",size:"large",onClick:ve},a.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(k,z,o){},pA7S:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.WordArray,y=A.BlockCipher,C=g.algo,O=[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],m=[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],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{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}],a=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=C.DES=y.extend({_doReset:function(){for(var c=this._key,h=c.words,d=[],s=0;s<56;s++){var l=O[s]-1;d[s]=h[l>>>5]>>>31-l%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var _=w[E]=[],P=e[E],s=0;s<24;s++)_[s/6|0]|=d[(m[s]-1+P)%28]<<31-s%6,_[4+(s/6|0)]|=d[28+(m[s+24]-1+P)%28]<<31-s%6;_[0]=_[0]<<1|_[0]>>>31;for(var s=1;s<7;s++)_[s]=_[s]>>>(s-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var R=this._invSubKeys=[],s=0;s<16;s++)R[s]=w[15-s]},encryptBlock:function(c,h){this._doCryptBlock(c,h,this._subKeys)},decryptBlock:function(c,h){this._doCryptBlock(c,h,this._invSubKeys)},_doCryptBlock:function(c,h,d){this._lBlock=c[h],this._rBlock=c[h+1],n.call(this,4,252645135),n.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),n.call(this,1,1431655765);for(var s=0;s<16;s++){for(var l=d[s],w=this._lBlock,E=this._rBlock,_=0,P=0;P<8;P++)_|=f[P][((E^l[P])&a[P])>>>0];this._lBlock=E,this._rBlock=w^_}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,n.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),n.call(this,16,65535),n.call(this,4,252645135),c[h]=this._lBlock,c[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function n(c,h){var d=(this._lBlock>>>c^this._rBlock)&h;this._rBlock^=d,this._lBlock^=d<<c}function i(c,h){var d=(this._rBlock>>>c^this._lBlock)&h;this._lBlock^=d,this._rBlock^=d<<c}g.DES=y._createHelper(u);var r=C.TripleDES=y.extend({_doReset:function(){var c=this._key,h=c.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var d=h.slice(0,2),s=h.length<4?h.slice(0,2):h.slice(2,4),l=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=u.createEncryptor(b.create(d)),this._des2=u.createEncryptor(b.create(s)),this._des3=u.createEncryptor(b.create(l))},encryptBlock:function(c,h){this._des1.encryptBlock(c,h),this._des2.decryptBlock(c,h),this._des3.encryptBlock(c,h)},decryptBlock:function(c,h){this._des3.decryptBlock(c,h),this._des2.encryptBlock(c,h),this._des1.decryptBlock(c,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=y._createHelper(r)}(),M.TripleDES})},pUFm:function(k,z,o){k.exports=o.p+"static/no-data.c803c40c.png"},pmY6:function(k,z,o){"use strict";o.d(z,"h",function(){return f}),o.d(z,"g",function(){return u}),o.d(z,"f",function(){return n}),o.d(z,"e",function(){return i}),o.d(z,"i",function(){return r}),o.d(z,"b",function(){return c}),o.d(z,"a",function(){return h}),o.d(z,"d",function(){return d}),o.d(z,"c",function(){return s});var M=o("C/vA"),g=o("JYp7");const A=!1;let b=null;function y(l){b=l}if(A){const l="__is_disposable_tracked__";y(new class{trackDisposable(w){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[l]||console.log(E)},3e3)}setParent(w,E){if(w&&w!==h.None)try{w[l]=!0}catch(_){}}markAsDisposed(w){if(w&&w!==h.None)try{w[l]=!0}catch(E){}}markAsSingleton(w){}})}function C(l){return b==null||b.trackDisposable(l),l}function O(l){b==null||b.markAsDisposed(l)}function m(l,w){b==null||b.setParent(l,w)}function e(l,w){if(!b)return;for(const E of l)b.setParent(E,w)}function f(l){return b==null||b.markAsSingleton(l),l}class a extends Error{constructor(l){super(`Encountered errors while disposing of store. Errors: [${l.join(", ")}]`);this.errors=l}}function u(l){return typeof l.dispose=="function"&&l.dispose.length===0}function n(l){if(g.a.is(l)){let w=[];for(const E of l)if(E)try{E.dispose()}catch(_){w.push(_)}if(w.length===1)throw w[0];if(w.length>1)throw new a(w);return Array.isArray(l)?[]:l}else if(l)return l.dispose(),l}function i(...l){const w=r(()=>n(l));return e(l,w),w}function r(l){const w=C({dispose:Object(M.a)(()=>{O(w),l()})});return w}class c{constructor(){this._toDispose=new Set,this._isDisposed=!1,C(this)}dispose(){if(this._isDisposed)return;O(this),this._isDisposed=!0,this.clear()}clear(){try{n(this._toDispose.values())}finally{this._toDispose.clear()}}add(l){if(!l)return l;if(l===this)throw new Error("Cannot register a disposable on itself!");return m(l,this),this._isDisposed?c.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(l),l}}c.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new c,C(this),m(this._store,this)}dispose(){O(this),this._store.dispose()}_register(l){if(l===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(l)}}h.None=Object.freeze({dispose(){}});class d{constructor(){this._isDisposed=!1,C(this)}get value(){return this._isDisposed?void 0:this._value}set value(l){var w;if(this._isDisposed||l===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),l&&m(l,this),this._value=l}clear(){this.value=void 0}dispose(){var l;this._isDisposed=!0,O(this),(l=this._value)===null||l===void 0||l.dispose(),this._value=void 0}clearAndLeak(){const l=this._value;return this._value=void 0,l&&m(l,null),l}}class s{constructor(l){this.object=l}dispose(){}}},psGv:function(k,z,o){var M,g;(function(){var A;(function(){"use strict";var O=[,,function(a){function u(r){this.__parent=r,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=[]}u.prototype.clone_empty=function(){var r=new u(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},u.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},u.prototype.has_match=function(r){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(r))return!0;return!1},u.prototype.set_indent=function(r,c){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},u.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)},u.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},u.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},u.prototype.is_empty=function(){return this.__items.length===0},u.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},u.prototype.push=function(r){this.__items.push(r);var c=r.lastIndexOf(`
`);c!==-1?this.__character_count=r.length-c:this.__character_count+=r.length},u.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},u.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},u.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},u.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},u.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function n(r,c){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),c=c||"",r.indent_level>0&&(c=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}n.prototype.get_indent_size=function(r,c){var h=this.__base_string_length;return c=c||0,r<0&&(h=0),h+=r*this.__indent_size,h+=c,h},n.prototype.get_indent_string=function(r,c){var h=this.__base_string;return c=c||0,r<0&&(r=0,h=""),c+=r*this.__indent_size,this.__ensure_cache(c),h+=this.__cache[c],h},n.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var r=this.__cache.length,c=0,h="";this.__indent_size&&r>=this.__indent_size&&(c=Math.floor(r/this.__indent_size),r-=c*this.__indent_size,h=new Array(c+1).join(this.__indent_string)),r&&(h+=new Array(r+1).join(" ")),this.__cache.push(h)};function i(r,c){this.__indent_cache=new n(r,c),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new u(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(r,c){return this.__indent_cache.get_indent_string(r,c)},i.prototype.get_indent_size=function(r,c){return this.__indent_cache.get_indent_size(r,c)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(r){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(`
`);return r!==`
`&&(h=h.replace(/[\n]/g,r)),h},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(r,c){return r=r||0,c=c||0,this.next_line.set_indent(r,c),this.__lines.length>1?(this.current_line.set_indent(r,c),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(r){for(var c=0;c<r.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.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(" "))},i.prototype.remove_indent=function(r){for(var c=this.__lines.length;r<c;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&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},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(r,c){for(var h=this.__lines.length-2;h>=0;){var d=this.__lines[h];if(d.is_empty())break;if(d.item(0).indexOf(r)!==0&&d.item(-1)!==c){this.__lines.splice(h+1,0,new u(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},a.exports.Output=i},function(a){function u(n,i,r,c){this.type=n,this.text=i,this.comments_before=null,this.newlines=r||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}a.exports.Token=u},,,function(a){function u(r,c){this.raw_options=n(r,c),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"])}u.prototype._get_array=function(r,c){var h=this.raw_options[r],d=c||[];return typeof h=="object"?h!==null&&typeof h.concat=="function"&&(d=h.concat()):typeof h=="string"&&(d=h.split(/[^a-zA-Z0-9_\/\-]+/)),d},u.prototype._get_boolean=function(r,c){var h=this.raw_options[r],d=h===void 0?!!c:!!h;return d},u.prototype._get_characters=function(r,c){var h=this.raw_options[r],d=c||"";return typeof h=="string"&&(d=h.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),d},u.prototype._get_number=function(r,c){var h=this.raw_options[r];c=parseInt(c,10),isNaN(c)&&(c=0);var d=parseInt(h,10);return isNaN(d)&&(d=c),d},u.prototype._get_selection=function(r,c,h){var d=this._get_selection_list(r,c,h);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
`+c+`
You passed in: '`+this.raw_options[r]+"'");return d[0]},u.prototype._get_selection_list=function(r,c,h){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[c[0]],!this._is_valid_selection(h,c))throw new Error("Invalid Default Value!");var d=this._get_array(r,h);if(!this._is_valid_selection(d,c))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
`+c+`
You passed in: '`+this.raw_options[r]+"'");return d},u.prototype._is_valid_selection=function(r,c){return r.length&&c.length&&!r.some(function(h){return c.indexOf(h)===-1})};function n(r,c){var h={};r=i(r);var d;for(d in r)d!==c&&(h[d]=r[d]);if(c&&r[c])for(d in r[c])h[d]=r[c][d];return h}function i(r){var c={},h;for(h in r){var d=h.replace(/-/g,"_");c[d]=r[h]}return c}a.exports.Options=u,a.exports.normalizeOpts=i,a.exports.mergeOpts=n},,function(a){var u=RegExp.prototype.hasOwnProperty("sticky");function n(i){this.__input=i||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},n.prototype.peek=function(i){var r=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(r=this.__input.charAt(i)),r},n.prototype.__match=function(i,r){i.lastIndex=r;var c=i.exec(this.__input);return c&&!(u&&i.sticky)&&(c.index!==r&&(c=null)),c},n.prototype.test=function(i,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(i,r):!1},n.prototype.testChar=function(i,r){var c=this.peek(r);return i.lastIndex=0,c!==null&&i.test(c)},n.prototype.match=function(i){var r=this.__match(i,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(i,r,c){var h="",d;return i&&(d=this.match(i),d&&(h+=d[0])),r&&(d||!i)&&(h+=this.readUntil(r,c)),h},n.prototype.readUntil=function(i,r){var c="",h=this.__position;i.lastIndex=this.__position;var d=i.exec(this.__input);return d?(h=d.index,r&&(h+=d[0].length)):h=this.__input_length,c=this.__input.substring(this.__position,h),this.__position=h,c},n.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},n.prototype.get_regexp=function(i,r){var c=null,h="g";return r&&u&&(h="y"),typeof i=="string"&&i!==""?c=new RegExp(i,h):i&&(c=new RegExp(i.source,h)),c},n.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(i){var r=this.__position,c=this.readUntilAfter(i);return this.__position=r,c},n.prototype.lookBack=function(i){var r=this.__position-1;return r>=i.length&&this.__input.substring(r-i.length,r).toLowerCase()===i},a.exports.InputScanner=n},function(a,u,n){var i=n(8).InputScanner,r=n(3).Token,c=n(10).TokenStream,h=n(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(l,w){this._input=new i(l),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new h(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var l,w=new r(d.START,""),E=null,_=[],P=new c;w.type!==d.EOF;){for(l=this._get_next_token(w,E);this._is_comment(l);)P.add(l),l=this._get_next_token(w,E);P.isEmpty()||(l.comments_before=P,P=new c),l.parent=E,this._is_opening(l)?(_.push(E),E=l):E&&this._is_closing(l,E)&&(l.opened=E,E.closed=l,E=_.pop(),l.parent=E),l.previous=w,w.next=l,this.__tokens.add(l),w=l}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(l,w){this._readWhitespace();var E=this._input.read(/.+/g);return E?this._create_token(d.RAW,E):this._create_token(d.EOF,"")},s.prototype._is_comment=function(l){return!1},s.prototype._is_opening=function(l){return!1},s.prototype._is_closing=function(l,w){return!1},s.prototype._create_token=function(l,w){var E=new r(l,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return E},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},a.exports.Tokenizer=s,a.exports.TOKEN=d},function(a){function u(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}u.prototype.restart=function(){this.__position=0},u.prototype.isEmpty=function(){return this.__tokens_length===0},u.prototype.hasNext=function(){return this.__position<this.__tokens_length},u.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},u.prototype.peek=function(n){var i=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(i=this.__tokens[n]),i},u.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},a.exports.TokenStream=u},function(a,u,n){var i=n(12).Pattern;function r(c,h){i.call(this,c,h),h?this._line_regexp=this._input.get_regexp(h._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new i,r.prototype.__set_whitespace_patterns=function(c,h){c+="\\t ",h+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+h+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+h+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var c=this._input.read(this._match_pattern);if(c===" ")this.whitespace_before_token=" ";else if(c){var h=this.__split(this._newline_regexp,c);this.newline_count=h.length-1,this.whitespace_before_token=h[this.newline_count]}return c},r.prototype.matching=function(c,h){var d=this._create();return d.__set_whitespace_patterns(c,h),d._update(),d},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(c,h){c.lastIndex=0;for(var d=0,s=[],l=c.exec(h);l;)s.push(h.substring(d,l.index)),d=l.index+l[0].length,l=c.exec(h);return d<h.length?s.push(h.substring(d,h.length)):s.push(""),s},a.exports.WhitespacePattern=r},function(a){function u(n,i){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,i&&(this._starting_pattern=this._input.get_regexp(i._starting_pattern,!0),this._match_pattern=this._input.get_regexp(i._match_pattern,!0),this._until_pattern=this._input.get_regexp(i._until_pattern),this._until_after=i._until_after)}u.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},u.prototype.read_match=function(){return this._input.match(this._match_pattern)},u.prototype.until_after=function(n){var i=this._create();return i._until_after=!0,i._until_pattern=this._input.get_regexp(n),i._update(),i},u.prototype.until=function(n){var i=this._create();return i._until_after=!1,i._until_pattern=this._input.get_regexp(n),i._update(),i},u.prototype.starting_with=function(n){var i=this._create();return i._starting_pattern=this._input.get_regexp(n,!0),i._update(),i},u.prototype.matching=function(n){var i=this._create();return i._match_pattern=this._input.get_regexp(n,!0),i._update(),i},u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){},a.exports.Pattern=u},function(a){function u(n,i){n=typeof n=="string"?n:n.source,i=typeof i=="string"?i:i.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+i,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+i,"g")}u.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)i[r[1]]=r[2],r=this.__directive_pattern.exec(n);return i},u.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},a.exports.Directives=u},function(a,u,n){var i=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function c(h,d){i.call(this,h,d),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),d&&(this.__template_pattern=this._input.get_regexp(d.__template_pattern),this._excluded=Object.assign(this._excluded,d._excluded),this._disabled=Object.assign(this._disabled,d._disabled));var s=new i(h);this.__patterns={handlebars_comment:s.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:s.starting_with(/{{{/).until_after(/}}}/),handlebars:s.starting_with(/{{/).until_after(/}}/),php:s.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new i,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(h){var d=this._create();return d._disabled[h]=!0,d._update(),d},c.prototype.read_options=function(h){var d=this._create();for(var s in r)d._disabled[s]=h.templating.indexOf(s)===-1;return d._update(),d},c.prototype.exclude=function(h){var d=this._create();return d._excluded[h]=!0,d._update(),d},c.prototype.read=function(){var h="";this._match_pattern?h=this._input.read(this._starting_pattern):h=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),h+=d,d=this._read_template();return this._until_after&&(h+=this._input.readUntilAfter(this._until_pattern)),h},c.prototype.__set_templated_pattern=function(){var h=[];this._disabled.php||h.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||h.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||h.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(h.push(this.__patterns.django._starting_pattern.source),h.push(this.__patterns.django_value._starting_pattern.source),h.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||h.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&h.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+h.join("|")+")")},c.prototype._read_template=function(){var h="",d=this._input.peek();if(d==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(h=h||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(h=h||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(h=h||this.__patterns.handlebars_comment.read(),h=h||this.__patterns.handlebars_unescaped.read(),h=h||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(h=h||this.__patterns.django_value.read()),this._excluded.django||(h=h||this.__patterns.django_comment.read(),h=h||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(h=h||this.__patterns.smarty_comment.read(),h=h||this.__patterns.smarty_literal.read(),h=h||this.__patterns.smarty.read()));return h},a.exports.TemplatablePattern=c},,,,function(a,u,n){var i=n(19).Beautifier,r=n(20).Options;function c(h,d,s,l){var w=new i(h,d,s,l);return w.beautify()}a.exports=c,a.exports.defaultOptions=function(){return new r}},function(a,u,n){var i=n(20).Options,r=n(2).Output,c=n(21).Tokenizer,h=n(21).TOKEN,d=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,l=function(U,L){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=U.max_preserve_newlines,this.preserve_newlines=U.preserve_newlines,this._output=new r(U,L)};l.prototype.current_line_has_match=function(U){return this._output.current_line.has_match(U)},l.prototype.set_space_before_token=function(U,L){this._output.space_before_token=U,this._output.non_breaking_space=L},l.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},l.prototype.add_raw_token=function(U){this._output.add_raw_token(U)},l.prototype.print_preserved_newlines=function(U){var L=0;U.type!==h.TEXT&&U.previous.type!==h.TEXT&&(L=U.newlines?1:0),this.preserve_newlines&&(L=U.newlines<this.max_preserve_newlines+1?U.newlines:this.max_preserve_newlines+1);for(var N=0;N<L;N++)this.print_newline(N>0);return L!==0},l.prototype.traverse_whitespace=function(U){return U.whitespace_before||U.newlines?(this.print_preserved_newlines(U)||(this._output.space_before_token=!0),!0):!1},l.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},l.prototype.print_newline=function(U){this._output.add_new_line(U)},l.prototype.print_token=function(U){U.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(U.text))},l.prototype.indent=function(){this.indent_level++},l.prototype.get_full_indent=function(U){return U=this.indent_level+(U||0),U<1?"":this._output.get_indent_string(U)};var w=function(U){for(var L=null,N=U.next;N.type!==h.EOF&&U.closed!==N;){if(N.type===h.ATTRIBUTE&&N.text==="type"){N.next&&N.next.type===h.EQUALS&&N.next.next&&N.next.next.type===h.VALUE&&(L=N.next.next.text);break}N=N.next}return L},E=function(U,L){var N=null,V=null;return L.closed?(U==="script"?N="text/javascript":U==="style"&&(N="text/css"),N=w(L)||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 _(U,L){return L.indexOf(U)!==-1}function P(U,L,N){this.parent=U||null,this.tag=L?L.tag_name:"",this.indent_level=N||0,this.parser_token=L||null}function R(U){this._printer=U,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(U){var L=new P(this._current_frame,U,this._printer.indent_level);this._current_frame=L},R.prototype._try_pop_frame=function(U){var L=null;return U&&(L=U.parser_token,this._printer.indent_level=U.indent_level,this._current_frame=U.parent),L},R.prototype._get_frame=function(U,L){for(var N=this._current_frame;N&&!(U.indexOf(N.tag)!==-1);){if(L&&L.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},R.prototype.try_pop=function(U,L){var N=this._get_frame([U],L);return this._try_pop_frame(N)},R.prototype.indent_to_tag=function(U){var L=this._get_frame(U);L&&(this._printer.indent_level=L.indent_level)};function x(U,L,N,V){this._source_text=U||"",L=L||{},this._js_beautify=N,this._css_beautify=V,this._tag_stack=null;var H=new i(L,"html");this._options=H,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"}x.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var U=this._source_text,L=this._options.eol;this._options.eol==="auto"&&(L=`
`,U&&d.test(U)&&(L=U.match(d)[0])),U=U.replace(s,`
`);var N=U.match(/^[\t ]*/)[0],V={text:"",type:""},H=new S,D=new l(this._options,N),W=new c(U,this._options).tokenize();this._tag_stack=new R(D);for(var F=null,I=W.next();I.type!==h.EOF;)I.type===h.TAG_OPEN||I.type===h.COMMENT?(F=this._handle_tag_open(D,I,H,V),H=F):I.type===h.ATTRIBUTE||I.type===h.EQUALS||I.type===h.VALUE||I.type===h.TEXT&&!H.tag_complete?F=this._handle_inside_tag(D,I,H,W):I.type===h.TAG_CLOSE?F=this._handle_tag_close(D,I,H):I.type===h.TEXT?F=this._handle_text(D,I,H):D.add_raw_token(I),V=F,I=W.next();var K=D._output.get_code(L);return K},x.prototype._handle_tag_close=function(U,L,N){var V={text:L.text,type:L.type};return U.alignment_size=0,N.tag_complete=!0,U.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),N.is_unformatted?U.add_raw_token(L):(N.tag_start_char==="<"&&(U.set_space_before_token(L.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&U.print_newline(!1)),U.print_token(L)),N.indent_content&&!(N.is_unformatted||N.is_content_unformatted)&&(U.indent(),N.indent_content=!1),!N.is_inline_element&&!(N.is_unformatted||N.is_content_unformatted)&&U.set_wrap_point(),V},x.prototype._handle_inside_tag=function(U,L,N,V){var H=N.has_wrapped_attrs,D={text:L.text,type:L.type};if(U.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),N.is_unformatted)U.add_raw_token(L);else if(N.tag_start_char==="{"&&L.type===h.TEXT)U.print_preserved_newlines(L)?(L.newlines=0,U.add_raw_token(L)):U.print_token(L);else{if(L.type===h.ATTRIBUTE?(U.set_space_before_token(!0),N.attr_count+=1):(L.type===h.EQUALS||L.type===h.VALUE&&L.previous.type===h.EQUALS)&&U.set_space_before_token(!1),L.type===h.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(U.traverse_whitespace(L),H=H||L.newlines!==0),this._is_wrap_attributes_force)){var W=N.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&N.attr_count===1){var F=!0,I=0,K;do{if(K=V.peek(I),K.type===h.ATTRIBUTE){F=!1;break}I+=1}while(I<4&&K.type!==h.EOF&&K.type!==h.TAG_CLOSE);W=!F}W&&(U.print_newline(!1),H=!0)}U.print_token(L),H=H||U.previous_token_wrapped(),N.has_wrapped_attrs=H}return D},x.prototype._handle_text=function(U,L,N){var V={text:L.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(U,L,N):N.is_unformatted||N.is_content_unformatted?U.add_raw_token(L):(U.traverse_whitespace(L),U.print_token(L)),V},x.prototype._print_custom_beatifier_text=function(U,L,N){var V=this;if(L.text!==""){var H=L.text,D,W=1,F="",I="";N.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?D=this._js_beautify:N.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?D=this._css_beautify:N.custom_beautifier_name==="html"&&(D=function(Te,ce){var be=new x(Te,ce,V._js_beautify,V._css_beautify);return be.beautify()}),this._options.indent_scripts==="keep"?W=0:this._options.indent_scripts==="separate"&&(W=-U.indent_level);var K=U.get_full_indent(W);if(H=H.replace(/\n[ \t]*$/,""),N.custom_beautifier_name!=="html"&&H[0]==="<"&&H.match(/^(<!--|<!\[CDATA\[)/)){var ee=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(H);if(!ee){U.add_raw_token(L);return}F=K+ee[1]+`
`,H=ee[4],ee[5]&&(I=K+ee[5]),H=H.replace(/\n[ \t]*$/,""),(ee[2]||ee[3].indexOf(`
`)!==-1)&&(ee=ee[3].match(/[ \t]+$/),ee&&(L.whitespace_before=ee[0]))}if(H)if(D){var he=function(){this.eol=`
`};he.prototype=this._options.raw_options;var de=new he;H=D(K+H,de)}else{var Se=L.whitespace_before;Se&&(H=H.replace(new RegExp(`
(`+Se+")?","g"),`
`)),H=K+H.replace(/\n/g,`
`+K)}F&&(H?H=F+H+`
`+I:H=F+I),U.print_newline(!1),H&&(L.text=H,L.whitespace_before="",L.newlines=0,U.add_raw_token(L),U.print_newline(!0))}},x.prototype._handle_tag_open=function(U,L,N,V){var H=this._get_tag_open_token(L);return(N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&L.type===h.TAG_OPEN&&L.text.indexOf("</")===0?(U.add_raw_token(L),H.start_tag_token=this._tag_stack.try_pop(H.tag_name)):(U.traverse_whitespace(L),this._set_tag_position(U,L,H,N,V),H.is_inline_element||U.set_wrap_point(),U.print_token(L)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(H.alignment_size=L.text.length+1),!H.tag_complete&&!H.is_unformatted&&(U.alignment_size=H.alignment_size),H};var S=function(U,L){if(this.parent=U||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="",!L)this.tag_complete=!0;else{var N;this.tag_start_char=L.text[0],this.text=L.text,this.tag_start_char==="<"?(N=L.text.match(/^<([^\s>]*)/),this.tag_check=N?N[1]:""):(N=L.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=N?N[1]:"",(L.text.startsWith("{{#>")||L.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&L.next!==null?this.tag_check=L.next.text.split(" ")[0]:this.tag_check=L.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),L.type===h.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||L.closed&&L.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)))}};x.prototype._get_tag_open_token=function(U){var L=new S(this._tag_stack.get_parser_token(),U);return L.alignment_size=this._options.wrap_attributes_indent_size,L.is_end_tag=L.is_end_tag||_(L.tag_check,this._options.void_elements),L.is_empty_element=L.tag_complete||L.is_start_tag&&L.is_end_tag,L.is_unformatted=!L.tag_complete&&_(L.tag_check,this._options.unformatted),L.is_content_unformatted=!L.is_empty_element&&_(L.tag_check,this._options.content_unformatted),L.is_inline_element=_(L.tag_name,this._options.inline)||L.tag_name.includes("-")||L.tag_start_char==="{",L},x.prototype._set_tag_position=function(U,L,N,V,H){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||U.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=E(N.tag_check,L)))),_(N.tag_check,this._options.extra_liners)&&(U.print_newline(!1),U._output.just_added_blankline()||U.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 D=U.current_line_has_match(/{{#if/);D||U.print_newline(!1)}N.tag_name==="!--"&&H.type===h.TAG_CLOSE&&V.is_end_tag&&N.text.indexOf(`
`)===-1||(N.is_inline_element||N.is_unformatted||U.print_newline(!1),this._calcluate_parent_multiline(U,N))}else if(N.is_end_tag){var W=!1;W=N.start_tag_token&&N.start_tag_token.multiline_content,W=W||!N.is_inline_element&&!(V.is_inline_element||V.is_unformatted)&&!(H.type===h.TAG_CLOSE&&N.start_tag_token===V)&&H.type!=="TK_CONTENT",(N.is_content_unformatted||N.is_unformatted)&&(W=!1),W&&U.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)&&(H.type!=="TK_CONTENT"||N.is_content_unformatted)&&U.print_newline(!1),this._calcluate_parent_multiline(U,N)},x.prototype._calcluate_parent_multiline=function(U,L){L.parent&&U._output.just_added_newline()&&!((L.is_inline_element||L.is_unformatted)&&L.parent.is_inline_element)&&(L.parent.multiline_content=!0)};var v=["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"],T=["a","audio","del","ins","map","noscript","video"];x.prototype._do_optional_end_element=function(U){var L=null;if(U.is_empty_element||!U.is_start_tag||!U.parent)return;if(U.tag_name==="body")L=L||this._tag_stack.try_pop("head");else if(U.tag_name==="li")L=L||this._tag_stack.try_pop("li",["ol","ul"]);else if(U.tag_name==="dd"||U.tag_name==="dt")L=L||this._tag_stack.try_pop("dt",["dl"]),L=L||this._tag_stack.try_pop("dd",["dl"]);else if(U.parent.tag_name==="p"&&v.indexOf(U.tag_name)!==-1){var N=U.parent.parent;(!N||T.indexOf(N.tag_name)===-1)&&(L=L||this._tag_stack.try_pop("p"))}else U.tag_name==="rp"||U.tag_name==="rt"?(L=L||this._tag_stack.try_pop("rt",["ruby","rtc"]),L=L||this._tag_stack.try_pop("rp",["ruby","rtc"])):U.tag_name==="optgroup"?L=L||this._tag_stack.try_pop("optgroup",["select"]):U.tag_name==="option"?L=L||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):U.tag_name==="colgroup"?L=L||this._tag_stack.try_pop("caption",["table"]):U.tag_name==="thead"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"])):U.tag_name==="tbody"||U.tag_name==="tfoot"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"]),L=L||this._tag_stack.try_pop("thead",["table"]),L=L||this._tag_stack.try_pop("tbody",["table"])):U.tag_name==="tr"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"]),L=L||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(U.tag_name==="th"||U.tag_name==="td")&&(L=L||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),L=L||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return U.parent=this._tag_stack.get_parser_token(),L},a.exports.Beautifier=x},function(a,u,n){var i=n(6).Options;function r(c){i.call(this,c,"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"])}r.prototype=new i,a.exports.Options=r},function(a,u,n){var i=n(9).Tokenizer,r=n(9).TOKEN,c=n(13).Directives,h=n(14).TemplatablePattern,d=n(12).Pattern,s={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:r.START,RAW:r.RAW,EOF:r.EOF},l=new c(/<\!--/,/-->/),w=function(E,_){i.call(this,E,_),this._current_tag_name="";var P=new h(this._input).read_options(this._options),R=new d(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 x=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=R.matching(x).until_after(x)}};w.prototype=new i,w.prototype._is_comment=function(E){return!1},w.prototype._is_opening=function(E){return E.type===s.TAG_OPEN},w.prototype._is_closing=function(E,_){return E.type===s.TAG_CLOSE&&_&&((E.text===">"||E.text==="/>")&&_.text[0]==="<"||E.text==="}}"&&_.text[0]==="{"&&_.text[1]==="{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(E,_){var P=null;this._readWhitespace();var R=this._input.peek();return R===null?this._create_token(s.EOF,""):(P=P||this._read_open_handlebars(R,_),P=P||this._read_attribute(R,E,_),P=P||this._read_close(R,_),P=P||this._read_raw_content(R,E,_),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,_),P=P||this._create_token(s.UNKNOWN,this._input.next()),P)},w.prototype._read_comment_or_cdata=function(E){var _=null,P=null,R=null;if(E==="<"){var x=this._input.peek(1);x==="!"&&(P=this.__patterns.comment.read(),P?(R=l.get_directives(P),R&&R.ignore==="start"&&(P+=l.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(_=this._create_token(s.COMMENT,P),_.directives=R)}return _},w.prototype._read_processing=function(E){var _=null,P=null,R=null;if(E==="<"){var x=this._input.peek(1);(x==="!"||x==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(_=this._create_token(s.COMMENT,P),_.directives=R)}return _},w.prototype._read_open=function(E,_){var P=null,R=null;return _||E==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),R=this._create_token(s.TAG_OPEN,P)),R},w.prototype._read_open_handlebars=function(E,_){var P=null,R=null;return _||this._options.indent_handlebars&&E==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),R=this._create_token(s.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),R=this._create_token(s.TAG_OPEN,P))),R},w.prototype._read_close=function(E,_){var P=null,R=null;return _&&(_.text[0]==="<"&&(E===">"||E==="/"&&this._input.peek(1)===">")?(P=this._input.next(),E==="/"&&(P+=this._input.next()),R=this._create_token(s.TAG_CLOSE,P)):_.text[0]==="{"&&E==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),R=this._create_token(s.TAG_CLOSE,"}}"))),R},w.prototype._read_attribute=function(E,_,P){var R=null,x="";if(P&&P.text[0]==="<")if(E==="=")R=this._create_token(s.EQUALS,this._input.next());else if(E==='"'||E==="'"){var S=this._input.next();E==='"'?S+=this.__patterns.double_quote.read():S+=this.__patterns.single_quote.read(),R=this._create_token(s.VALUE,S)}else x=this.__patterns.attribute.read(),x&&(_.type===s.EQUALS?R=this._create_token(s.VALUE,x):R=this._create_token(s.ATTRIBUTE,x));return R},w.prototype._is_content_unformatted=function(E){return this._options.void_elements.indexOf(E)===-1&&(this._options.content_unformatted.indexOf(E)!==-1||this._options.unformatted.indexOf(E)!==-1)},w.prototype._read_raw_content=function(E,_,P){var R="";if(P&&P.text[0]==="{")R=this.__patterns.handlebars_raw_close.read();else if(_.type===s.TAG_CLOSE&&_.opened.text[0]==="<"&&_.text[0]!=="/"){var x=_.opened.text.substr(1).toLowerCase();if(x==="script"||x==="style"){var S=this._read_comment_or_cdata(E);if(S)return S.type=s.TEXT,S;R=this._input.readUntil(new RegExp("</"+x+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(x)&&(R=this._input.readUntil(new RegExp("</"+x+"[\\n\\r\\t ]*?>","ig")))}return R?this._create_token(s.TEXT,R):null},w.prototype._read_content_word=function(E){var _="";if(this._options.unformatted_content_delimiter&&(E===this._options.unformatted_content_delimiter[0]&&(_=this.__patterns.unformatted_content_delimiter.read())),_||(_=this.__patterns.word.read()),_)return this._create_token(s.TEXT,_)},a.exports.Tokenizer=w,a.exports.TOKEN=s}],m={};function e(a){var u=m[a];if(u!==void 0)return u.exports;var n=m[a]={exports:{}};return O[a](n,n.exports,e),n.exports}var f=e(18);A=f})();var b=A;if(!0)!(M=[o,o("6UM0"),o("TXwP")],g=function(O){var m=o("6UM0"),e=o("TXwP");return{html_beautify:function(f,a){return b(f,a,m.js_beautify,e.css_beautify)}}}.apply(z,M),g!==void 0&&(k.exports=g));else var y,C})()},qB8g:function(k,z,o){k.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(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.AnsiX923={pad:function(g,A){var b=g.sigBytes,y=A*4,C=y-b%y,O=b+C-1;g.clamp(),g.words[O>>>2]|=C<<24-O%4*8,g.sigBytes+=C},unpad:function(g){var A=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=A}},M.pad.Ansix923})},qM6L:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.WordArray,y=g.enc,C=y.Utf16=y.Utf16BE={stringify:function(m){for(var e=m.words,f=m.sigBytes,a=[],u=0;u<f;u+=2){var n=e[u>>>2]>>>16-u%4*8&65535;a.push(String.fromCharCode(n))}return a.join("")},parse:function(m){for(var e=m.length,f=[],a=0;a<e;a++)f[a>>>1]|=m.charCodeAt(a)<<16-a%2*16;return b.create(f,e*2)}};y.Utf16LE={stringify:function(m){for(var e=m.words,f=m.sigBytes,a=[],u=0;u<f;u+=2){var n=O(e[u>>>2]>>>16-u%4*8&65535);a.push(String.fromCharCode(n))}return a.join("")},parse:function(m){for(var e=m.length,f=[],a=0;a<e;a++)f[a>>>1]|=O(m.charCodeAt(a)<<16-a%2*16);return b.create(f,e*2)}};function O(m){return m<<8&4278255360|m>>>8&16711935}}(),M.enc.Utf16})},qgvg:function(k,z){k.exports="data:image/gif;base64,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"},qu8F:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return M.mode.CTRGladman=function(){var g=M.lib.BlockCipherMode.extend();function A(C){if((C>>24&255)===255){var O=C>>16&255,m=C>>8&255,e=C&255;O===255?(O=0,m===255?(m=0,e===255?e=0:++e):++m):++O,C=0,C+=O<<16,C+=m<<8,C+=e}else C+=1<<24;return C}function b(C){return(C[0]=A(C[0]))===0&&(C[1]=A(C[1])),C}var y=g.Encryptor=g.extend({processBlock:function(C,O){var m=this._cipher,e=m.blockSize,f=this._iv,a=this._counter;f&&(a=this._counter=f.slice(0),this._iv=void 0),b(a);var u=a.slice(0);m.encryptBlock(u,0);for(var n=0;n<e;n++)C[O+n]^=u[n]}});return g.Decryptor=y,g}(),M.mode.CTRGladman})},rHrb:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.CopyToClipboard=void 0;var M=A(o("q1tI")),g=A(o("+QRC"));function A(s){return s&&s.__esModule?s:{default:s}}function b(s){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(s)}function y(s,l){var w=Object.keys(s);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(s);l&&(E=E.filter(function(_){return Object.getOwnPropertyDescriptor(s,_).enumerable})),w.push.apply(w,E)}return w}function C(s){for(var l=1;l<arguments.length;l++){var w=arguments[l]!=null?arguments[l]:{};l%2?y(w,!0).forEach(function(E){h(s,E,w[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(w)):y(w).forEach(function(E){Object.defineProperty(s,E,Object.getOwnPropertyDescriptor(w,E))})}return s}function O(s,l){if(s==null)return{};var w=m(s,l),E,_;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(s);for(_=0;_<P.length;_++){if(E=P[_],l.indexOf(E)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(s,E))continue;w[E]=s[E]}}return w}function m(s,l){if(s==null)return{};var w={},E=Object.keys(s),_,P;for(P=0;P<E.length;P++){if(_=E[P],l.indexOf(_)>=0)continue;w[_]=s[_]}return w}function e(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function f(s,l){for(var w=0;w<l.length;w++){var E=l[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}function a(s,l,w){return l&&f(s.prototype,l),w&&f(s,w),s}function u(s,l){return l&&(b(l)==="object"||typeof l=="function")?l:i(s)}function n(s){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},n(s)}function i(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function r(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),l&&c(s,l)}function c(s,l){return c=Object.setPrototypeOf||function(E,_){return E.__proto__=_,E},c(s,l)}function h(s,l,w){return l in s?Object.defineProperty(s,l,{value:w,enumerable:!0,configurable:!0,writable:!0}):s[l]=w,s}var d=function(s){r(l,s);function l(){var w,E;e(this,l);for(var _=arguments.length,P=new Array(_),R=0;R<_;R++)P[R]=arguments[R];return E=u(this,(w=n(l)).call.apply(w,[this].concat(P))),h(i(E),"onClick",function(x){var S=E.props,v=S.text,T=S.onCopy,U=S.children,L=S.options,N=M.default.Children.only(U),V=(0,g.default)(v,L);T&&T(v,V),N&&N.props&&typeof N.props.onClick=="function"&&N.props.onClick(x)}),E}return a(l,[{key:"render",value:function(){var E=this.props,_=E.text,P=E.onCopy,R=E.options,x=E.children,S=O(E,["text","onCopy","options","children"]),v=M.default.Children.only(x);return M.default.cloneElement(v,C({},S,{onClick:this.onClick}))}}]),l}(M.default.PureComponent);z.CopyToClipboard=d,h(d,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(k,z){const o=/[&<>"']/,M=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,A=/[<>"']|&(?!#?\w+;)/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},y=R=>b[R];function C(R,x){if(x){if(o.test(R))return R.replace(M,y)}else if(g.test(R))return R.replace(A,y);return R}const O=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(R){return R.replace(O,(x,S)=>(S=S.toLowerCase(),S==="colon"?":":S.charAt(0)==="#"?S.charAt(1)==="x"?String.fromCharCode(parseInt(S.substring(2),16)):String.fromCharCode(+S.substring(1)):""))}const e=/(^|[^\[])\^/g;function f(R,x){R=R.source||R,x=x||"";const S={replace:(v,T)=>(T=T.source||T,T=T.replace(e,"$1"),R=R.replace(v,T),S),getRegex:()=>new RegExp(R,x)};return S}const a=/[^\w:]/g,u=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function n(R,x,S){if(R){let v;try{v=decodeURIComponent(m(S)).replace(a,"").toLowerCase()}catch(T){return null}if(v.indexOf("javascript:")===0||v.indexOf("vbscript:")===0||v.indexOf("data:")===0)return null}x&&!u.test(S)&&(S=d(x,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(v){return null}return S}const i={},r=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(R,x){i[" "+R]||(r.test(R)?i[" "+R]=R+"/":i[" "+R]=E(R,"/",!0)),R=i[" "+R];const S=R.indexOf(":")===-1;return x.substring(0,2)==="//"?S?x:R.replace(c,"$1")+x:x.charAt(0)==="/"?S?x:R.replace(h,"$1")+x:R+x}const s={exec:function(){}};function l(R){let x=1,S,v;for(;x<arguments.length;x++){S=arguments[x];for(v in S)Object.prototype.hasOwnProperty.call(S,v)&&(R[v]=S[v])}return R}function w(R,x){const S=R.replace(/\|/g,(U,L,N)=>{let V=!1,H=L;for(;--H>=0&&N[H]==="\\";)V=!V;return V?"|":" |"}),v=S.split(/ \|/);let T=0;if(v.length>x)v.splice(x);else for(;v.length<x;)v.push("");for(;T<v.length;T++)v[T]=v[T].trim().replace(/\\\|/g,"|");return v}function E(R,x,S){const v=R.length;if(v===0)return"";let T=0;for(;T<v;){const U=R.charAt(v-T-1);if(U===x&&!S)T++;else if(U!==x&&S)T++;else break}return R.substr(0,v-T)}function _(R,x){if(R.indexOf(x[1])===-1)return-1;const S=R.length;let v=0,T=0;for(;T<S;T++)if(R[T]==="\\")T++;else if(R[T]===x[0])v++;else if(R[T]===x[1]&&(v--,v<0))return T;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")}k.exports={escape:C,unescape:m,edit:f,cleanUrl:n,resolveUrl:d,noopTest:s,merge:l,splitCells:w,rtrim:E,findClosingBracket:_,checkSanitizeDeprecation:P}},ruvs:function(k,z,o){"use strict";o.d(z,"b",function(){return pt});var M=o("2qtc"),g=o("kLXV"),A=o("9og8"),b=o("rAM+"),y=o("tJVT"),C=o("PpiC"),O=o("k1fw"),m=o("5NDa"),e=o("5rEg"),f=o("B9cy"),a=o("Ol7k"),u=o("WmNS"),n=o.n(u),i=o("q1tI"),r=o.n(i),c=o("Ty5D"),h=o("55Ip"),d=o("9kvl"),s=o("xrsn"),l=o.n(s),w=o("1Sn+"),E=o("qVdP"),_=o("jsC+"),P=o("14J3"),R=o("BMrR"),x=o("jCWc"),S=o("kPKH"),v=o("lUTK"),T=o("BvKs"),U=o("miYZ"),L=o("tsqr"),N=o("7Kak"),V=o("9yH6"),H=o("6CvP"),D=o("1vsH"),W;(function(Ze){Ze.Manager="manager",Ze.Developer="developer",Ze.Reporter="reporter"})(W||(W={}));var F=function(Be){var Ye=Be.visible,Ce=Be.onCancel,Le=Ce===void 0?function(){}:Ce,He=Object(i.useState)(),je=Object(y.a)(He,2),Ke=je[0],it=je[1],Ct=Object(i.useState)(),Ft=Object(y.a)(Ct,2),Jt=Ft[0],Ht=Ft[1],Ot=Object(i.useState)(!1),Fe=Object(y.a)(Ot,2),at=Fe[0],ot=Fe[1],Pe=function(){var ft=Object(A.a)(n.a.mark(function bt(){var Dt,Mt;return n.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(Ke){Lt.next=3;break}return L.b.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Lt.abrupt("return");case 3:if(!(Ke.length!==6)){Lt.next=6;break}return L.b.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Lt.abrupt("return");case 6:if(Jt){Lt.next=9;break}return L.b.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01"),Lt.abrupt("return");case 9:return ot(!0),Lt.next=12,Object(H.e)({code:Ke,role:Jt});case 12:if(Dt=Lt.sent,ot(!1),Qe(),Mt={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"},!Mt[Dt.status]){Lt.next=19;break}return L.b.info(Mt[Dt.status]),Lt.abrupt("return");case 19:if(!(Dt.status===0)){Lt.next=22;break}return Jt==="reporter"?(L.b.success("\u60A8\u52A0\u5165\u9879\u76EE\u6210\u529F\uFF01"),Object(D.eb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u6210\u529F"]),d.d.push("/projects/".concat(Dt==null?void 0:Dt.project_id))):(Object(D.eb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u7B49\u5F85\u5BA1\u6279"]),L.b.success("\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279\uFF01")),Lt.abrupt("return");case 22:case"end":return Lt.stop()}},bt)}));return function(){return ft.apply(this,arguments)}}(),Qe=function(){var ft=Object(A.a)(n.a.mark(function bt(){return n.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:Le();case 1:case"end":return Mt.stop()}},bt)}));return function(){return ft.apply(this,arguments)}}();return r.a.createElement(r.a.Fragment,null,r.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u9879\u76EE",visible:Ye,confirmLoading:at,onOk:Pe,onCancel:Qe},r.a.createElement("div",{className:"tc"},r.a.createElement("div",null,r.a.createElement("span",null,"\u9879\u76EE\u9080\u8BF7\u7801\uFF1A"),r.a.createElement(e.a,{placeholder:"\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",style:{width:270},value:Ke,onChange:function(bt){if(bt.target.value.length>=7){L.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}it(bt.target.value)}})),r.a.createElement("div",{className:"mt10 font14"},r.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),r.a.createElement(V.a.Group,{value:Jt,onChange:function(bt){return Ht(bt.target.value)}},r.a.createElement(V.a,{value:W.Manager},"\u7BA1\u7406\u4EBA\u5458"),r.a.createElement(V.a,{value:W.Developer},"\u5F00\u53D1\u4EBA\u5458"),r.a.createElement(V.a,{value:W.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},I=F,K=o("Jky8"),ee=o("6Fuo"),he=o.n(ee),de=o("NLgs"),Se=o("xKgJ"),Te;(function(Ze){Ze.Projects="projects",Ze.Shixuns="shixuns",Ze.Classrooms="classrooms"})(Te||(Te={}));var ce;(function(Ze){Ze.Classrooms="classrooms",Ze.Shixuns="shixuns",Ze.Paths="paths",Ze.Projects="projects",Ze.Videos="videos",Ze.Topics="topics"})(ce||(ce={}));var be=function(Be){var Ye,Ce,Le,He,je,Ke,it,Ct=Be.homePage,Ft=Be.user,Jt=Be.globalSetting,Ht=Be.loading,Ot=Be.dispatch,Fe=Be.location,at=Object(C.a)(Be,["homePage","user","globalSetting","loading","dispatch","location"]),ot=Object(i.useState)(),Pe=Object(y.a)(ot,2),Qe=Pe[0],ft=Pe[1],bt=Object(i.useState)(),Dt=Object(y.a)(bt,2),Mt=Dt[0],ct=Dt[1],Lt=function(ar){var xr;if(!Object(de.e)(Ot))return;if(ar===Te.Projects&&!((xr=Ft.userInfo)!==null&&xr!==void 0&&xr.email)){L.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}ar===Te.Classrooms?ft(!0):ar===Te.Projects&&ct(!0)},Zt=function(ar,xr){var Cr;if(!Object(de.e)(Ot))return;if(xr===Te.Projects&&!((Cr=Ft.userInfo)!==null&&Cr!==void 0&&Cr.email)){L.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(xr===Te.Shixuns&&!Object(de.c)())return;ar&&(window.location.href=ar)},An=(Ye=(((Ce=Jt.setting)===null||Ce===void 0?void 0:Ce.navbar)||[]).find(function(ln){return ln.link==="/".concat(ce.Classrooms)}))===null||Ye===void 0?void 0:Ye.hidden,on=(Le=(((He=Jt.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(ln){return ln.link==="/".concat(ce.Shixuns)}))===null||Le===void 0?void 0:Le.hidden,Tn=(je=(((Ke=Jt.setting)===null||Ke===void 0?void 0:Ke.navbar)||[]).find(function(ln){return ln.link==="/".concat(ce.Paths)}))===null||je===void 0?void 0:je.hidden;if(Jt!=null&&(it=Jt.setting)!==null&&it!==void 0&&it.is_local){var Ln;Ft!=null&&(Ln=Ft.userInfo)!==null&&Ln!==void 0&&Ln.is_shixun_marker||(on=!0)}var Nn=function(ar){var xr,Cr,Yn,Or,cr,sn,qt,On;return r.a.createElement(r.a.Fragment,null,r.a.createElement(R.a,{justify:"space-around",className:"pt5 pb5"},r.a.createElement(S.a,{className:he.a.joinCol},!(Jt!=null&&Jt.setting.hide_course)&&((xr=Ft.userInfo)===null||xr===void 0?void 0:xr.user_identity)!=="\u5B66\u751F"&&!An&&r.a.createElement(T.a.Item,ar,r.a.createElement("a",{onClick:function(){return Zt("/classrooms/new")}},(Cr=Ft.userInfo)!==null&&Cr!==void 0&&Cr.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(Jt!=null&&Jt.setting.hide_shixun&&Object(Se.m)())&&!(Jt!=null&&Jt.setting.hide_course)&&r.a.createElement(T.a.Item,ar,r.a.createElement("a",{onClick:function(){return Zt("/shixuns/new",Te.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),!(Jt!=null&&(Yn=Jt.setting)!==null&&Yn!==void 0&&Yn.hide_subject&&Object(Se.m)())&&!(Jt!=null&&Jt.setting.hide_course)&&r.a.createElement(T.a.Item,ar,r.a.createElement("a",{onClick:function(){return Zt("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Jt!=null&&(Or=Jt.setting)!==null&&Or!==void 0&&Or.is_local)&&((cr=Ft.userInfo)===null||cr===void 0?void 0:cr.main_site)&&r.a.createElement(T.a.Item,ar,r.a.createElement("a",{onClick:function(){var Ar,yr;return Zt("".concat((Ar=Ft.navigationInfo)===null||Ar===void 0||((yr=Ar.top)===null||yr===void 0)?void 0:yr.old_url,"/projects/deposit/new"),Te.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),r.a.createElement(S.a,null,r.a.createElement("div",{className:he.a.joinBoard})),r.a.createElement(S.a,{className:he.a.joinCol},!An&&r.a.createElement(T.a.Item,ar,r.a.createElement("a",{onClick:function(){return Lt(Te.Classrooms)}},(sn=Ft.userInfo)!==null&&sn!==void 0&&sn.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((qt=Ft.userInfo)===null||qt===void 0?void 0:qt.main_site)&&!(Jt!=null&&(On=Jt.setting)!==null&&On!==void 0&&On.is_local)&&r.a.createElement(T.a.Item,ar,r.a.createElement("a",{onClick:function(){return Lt(Te.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return r.a.createElement("section",null,r.a.createElement(_.a,{overlay:r.a.createElement(T.a,{className:"".concat(he.a.rightMenu," ").concat(he.a.joinMenu," mt10")},r.a.createElement(Nn,null)),placement:"bottomRight"},r.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),r.a.createElement(K.a,{visible:Qe,onCancel:function(){return ft(!1)}}),r.a.createElement(I,{visible:Mt,onCancel:function(){return ct(!1)}}))},ye=Object(d.a)(function(Ze){var Be=Ze.homePage,Ye=Ze.loading,Ce=Ze.user,Le=Ze.globalSetting;return{homePage:Be,user:Ce,globalSetting:Le,loading:Ye.models.index}})(be),ue=o("vToQ"),se=o.n(ue),$=o("jb+D"),me=o("m3rI"),re=function(Be){var Ye,Ce=RegExp("(^| )"+Be+"=([^;]+)(;|$)");return(Ye=document.cookie.match(Ce))?decodeURIComponent(Ye[2]):null},ae=function(Be){var Ye=new Date;Ye.setTime(Ye.getTime()-1);var Ce=re(Be);Ce!=null&&(document.cookie=Be+"="+Ce+";expires="+Ye.toGMTString())},Oe;(function(Ze){Ze.Classrooms="classrooms",Ze.Shixuns="shixuns",Ze.Paths="paths",Ze.Projects="projects",Ze.Videos="videos",Ze.Topics="topics"})(Oe||(Oe={}));var le=function(Be){var Ye,Ce,Le,He,je,Ke,it,Ct,Ft,Jt,Ht,Ot=Be.homePage,Fe=Be.user,at=Be.globalSetting,ot=Be.loading,Pe=Be.dispatch,Qe=Be.shixunHomeworks,ft=Be.location,bt=Be.payload,Dt=bt===void 0?{}:bt,Mt=Object(C.a)(Be,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),ct=(Ye=(((Ce=at.setting)===null||Ce===void 0?void 0:Ce.navbar)||[]).find(function(ln){return ln.link==="/".concat(Oe.Classrooms)}))===null||Ye===void 0?void 0:Ye.hidden,Lt=(Le=(((He=at.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(ln){return ln.link==="/".concat(Oe.Shixuns)}))===null||Le===void 0?void 0:Le.hidden,Zt=(je=(((Ke=at.setting)===null||Ke===void 0?void 0:Ke.navbar)||[]).find(function(ln){return ln.link==="/".concat(Oe.Paths)}))===null||je===void 0?void 0:je.hidden,An=((it=Fe.userInfo)===null||it===void 0?void 0:it.admin)||((Ct=Fe.userInfo)===null||Ct===void 0?void 0:Ct.business)||((Ft=Fe.userInfo)===null||Ft===void 0?void 0:Ft.is_shixun_marker)||((Jt=Fe.userInfo)===null||Jt===void 0?void 0:Jt.is_teacher)||((Ht=Fe.userInfo)===null||Ht===void 0?void 0:Ht.user_identity)!=="\u5B66\u751F",on=function(){if(Object(D.t)())return r.a.createElement(T.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var ar,xr,Cr,Yn,Or,cr,sn,qt,On,Ir,Ar,yr,pr,pe,X,q,oe,De,fe,st,Qt,In;return r.a.createElement(T.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((ar=Fe.userInfo)===null||ar===void 0?void 0:ar.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!ct&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((xr=Fe.userInfo)===null||xr===void 0?void 0:xr.login,"/classrooms")},(Cr=Fe.userInfo)!==null&&Cr!==void 0&&Cr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!Lt&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Yn=Fe.userInfo)===null||Yn===void 0?void 0:Yn.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!Zt&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Or=Fe.userInfo)===null||Or===void 0?void 0:Or.login,"/paths")},(cr=Fe.userInfo)!==null&&cr!==void 0&&cr.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((sn=Fe.userInfo)===null||sn===void 0?void 0:sn.main_site)&&!((qt=at.setting)!==null&&qt!==void 0&&qt.is_local)&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((On=Fe.userInfo)===null||On===void 0?void 0:On.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),An&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Ir=Fe.userInfo)===null||Ir===void 0?void 0:Ir.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),An&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{onClick:function(){if(!Object(de.e)(Pe))return;d.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),An&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{onClick:function(){if(!Object(de.e)(Pe))return;d.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((Ar=Fe.navigationInfo)===null||Ar===void 0||((yr=Ar.top)===null||yr===void 0)?void 0:yr.customer_management_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(pr=Fe.navigationInfo)===null||pr===void 0||((pe=pr.top)===null||pe===void 0)?void 0:pe.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((X=Fe.navigationInfo)===null||X===void 0||((q=X.top)===null||q===void 0)?void 0:q.college_identifier)&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/colleges/".concat((oe=Fe.navigationInfo)===null||oe===void 0||((De=oe.top)===null||De===void 0)?void 0:De.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((fe=Fe.navigationInfo)===null||fe===void 0||((st=fe.top)===null||st===void 0)?void 0:st.laboratory_admin_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(Qt=Fe.navigationInfo)===null||Qt===void 0||((In=Qt.top)===null||In===void 0)?void 0:In.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||Pe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:r.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")),r.a.createElement(T.a.Item,{className:se.a.exit},r.a.createElement("a",{onClick:Object(A.a)(n.a.mark(function Vn(){var $t;return n.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.next=2,Object($.c)({});case 2:$t=cn.sent,($t==null?void 0:$t.status)===1&&(Pe({type:"user/getUserInfo",payload:Object(O.a)({},Dt)}),Pe({type:"user/getNavigationInfo",payload:Object(O.a)({},Dt)}),ae("autologin_trustie"),ae("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),L.b.success($t==null?void 0:$t.message),d.d.replace("/"));case 4:case"end":return cn.stop()}},Vn)}))},"\u9000\u51FA")))};if(Object(Se.p)()){var Tn,Ln;return r.a.createElement(_.a,{className:"".concat(se.a.height67),overlay:on,placement:"bottomRight"},r.a.createElement("section",null,r.a.createElement("aside",null,r.a.createElement("div",{className:Qe.actionTabs.type===1?se.a.classromediv:""},r.a.createElement("img",{className:"".concat(se.a.userPic," current ml15"),src:"".concat(me.a===null||me.a===void 0?void 0:me.a.IMG_SERVER,"/images/").concat((Tn=Fe.userInfo)===null||Tn===void 0?void 0:Tn.image_url),alt:"",onClick:function(){var ar;return d.d.push(Object(D.t)()?"/account/profile":"/users/".concat((ar=Fe.userInfo)===null||ar===void 0?void 0:ar.login,"/classrooms"))}}),Object(D.t)()&&r.a.createElement("span",{className:"ml10 font16"},(Ln=Fe.userInfo)===null||Ln===void 0?void 0:Ln.username)))))}else{var Nn;return r.a.createElement("div",{className:"font15 ".concat(at.isIlearning?se.a.login:"")},r.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){Pe({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((Nn=at.setting)!==null&&Nn!==void 0&&Nn.close_register)&&r.a.createElement(r.a.Fragment,null,r.a.createElement("span",{className:"ml5 mr5"},"|"),r.a.createElement(h.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},te=Object(d.a)(function(Ze){var Be=Ze.homePage,Ye=Ze.loading,Ce=Ze.user,Le=Ze.globalSetting,He=Ze.shixunHomeworks;return{homePage:Be,user:Ce,globalSetting:Le,shixunHomeworks:He,loading:Ye.models.index}})(le),Q=o("+L6B"),J=o("2/Rp"),ve=o("Cs+z"),_e=o.n(ve),Ae=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Je=function(Be){var Ye=Be.homePage,Ce=Be.user,Le=Be.globalSetting,He=Be.loading,je=Be.dispatch,Ke=Be.location,it=Be.text,Ct=Be.shixunHomeworks,Ft=Be.payload,Jt=Ft===void 0?{}:Ft,Ht=Object(C.a)(Be,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Ot=Object(i.useState)("none"),Fe=Object(y.a)(Ot,2),at=Fe[0],ot=Fe[1];return Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&ot("flex")},[Ct.actionTabs.key]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u9690\u85CF"&&(ot("none"),localStorage.setItem("Noviceguide","0"))},[Ct.actionTabs.key]),r.a.createElement("div",{style:{display:at,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},r.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},r.a.createElement("img",{src:_e.a,style:{position:"absolute",top:"-32px"}}),r.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ct.actionTabs.text),Ct.actionTabs.type===9?r.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},r.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),ot("none"),je({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")):r.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},r.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),je({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),ot("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},tt=Object(d.a)(function(Ze){var Be=Ze.homePage,Ye=Ze.loading,Ce=Ze.user,Le=Ze.globalSetting,He=Ze.shixunHomeworks;return{homePage:Be,user:Ce,globalSetting:Le,loading:Ye.models.index,shixunHomeworks:He}})(Je),ut=o("498V"),ht=o.n(ut),vt=o("wd/R"),_t=o.n(vt),Ve=a.a.Header,Ue=e.a.Search;function pt(){var Ze,Be,Ye=window.location.pathname,Ce=Ye.split("/"),Le={};return Ce[1]=="classrooms"&&Ce.length>3&&!((Ze=Ce[4])!==null&&Ze!==void 0&&Ze.includes("newgold"))&&!((Be=Ce[5])!==null&&Be!==void 0&&Be.includes("newgold"))&&Ce[2]!=="coursesId"&&(Le.course_id=Ce[2]),Ce[1]==="shixuns"&&Ce.length>3&&(Le.objective_type="shixun",Le.objective_id=Ce[2]),Ce[1]==="paths"&&Ce.length>3&&(Le.objective_type="path",Le.objective_id=Ce[2]),Object(O.a)(Object(O.a)({},Le),{school:1})}var Ut=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Et=function(Be){var Ye,Ce,Le=Be.homePage,He=Be.user,je=Be.globalSetting,Ke=Be.loading,it=Be.dispatch,Ct=Be.location,Ft=Be.isLogin,Jt=Ft===void 0?!1:Ft,Ht=Be.shixunHomeworks,Ot=Object(C.a)(Be,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),Fe=Object(c.g)(),at=Object(i.useState)(!1),ot=Object(y.a)(at,2),Pe=ot[0],Qe=ot[1],ft=Object(i.useState)(""),bt=Object(y.a)(ft,2),Dt=bt[0],Mt=bt[1],ct=Object(i.useState)(!1),Lt=Object(y.a)(ct,2),Zt=Lt[0],An=Lt[1],on=pt(),Tn=Object(i.useState)("0"),Ln=Object(y.a)(Tn,2),Nn=Ln[0],ln=Ln[1],ar=Object(i.useRef)({id:0});Object(i.useEffect)(function(){var fe;return He!=null&&(fe=He.userInfo)!==null&&fe!==void 0&&fe.now_time&&(ar.current.id=setInterval(function(){ln(function(st){if(st==="0"){var Qt;return _t()(He==null||((Qt=He.userInfo)===null||Qt===void 0)?void 0:Qt.now_time,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")}else return _t()(st,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")})},1e3)),function(){clearInterval(ar.current.id)}},[He==null||((Ye=He.userInfo)===null||Ye===void 0)?void 0:Ye.now_time]),Object(i.useEffect)(function(){it({type:"user/getNavigationInfo",payload:Object(O.a)({},on)})},[je.name]),Object(i.useEffect)(function(){Ht.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(Ut!=null&&Ut.includes(Ct==null?void 0:Ct.pathname)||(Ct==null?void 0:Ct.pathname.indexOf("/classrooms"))===0||it({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ct.pathname]),Object(i.useEffect)(function(){Ht.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Ht.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Ht.actionTabs.key]),Object(i.useEffect)(function(){if(je!=null&&je.setting){var fe,st,Qt=je==null||((fe=je.setting)===null||fe===void 0||((st=fe.navbar)===null||st===void 0))?void 0:st.filter(function(cn){return!(cn!=null&&cn.hidden)&&!(Object(Se.m)()&&cn.link==="/paperlibrary")}),In=Object(b.a)(Qt),Vn;try{for(In.s();!(Vn=In.n()).done;){var $t=Vn.value;$t.subitem&&($t.subitem=$t.subitem.filter(function(cn){return!(cn!=null&&cn.hidden)&&!(Object(Se.m)()&&cn.link==="/paperlibrary")}))}}catch(cn){In.e(cn)}finally{In.f()}var bn=!1;Qt==null||Qt.map(function(cn,Br){var ra,oa,er,Ba="/"+((ra=Ct.pathname)===null||ra===void 0||((oa=ra.split("/"))===null||oa===void 0)?void 0:oa[1]);if(cn.link===Ba&&(Mt(cn==null?void 0:cn.link),Object(D.Z)(cn==null?void 0:cn.name),qt(Ir(Br,{name:cn==null?void 0:cn.name,link:cn==null?void 0:cn.link},Qt)),bn=!0),cn!=null&&(er=cn.subitem)!==null&&er!==void 0&&er.length){var Ea;cn==null||((Ea=cn.subitem)===null||Ea===void 0)||Ea.map(function(ca){ca.link===Ba&&(Mt(ca==null?void 0:ca.link),Object(D.Z)(ca==null?void 0:ca.name),qt(Ir(Br,{name:ca==null?void 0:ca.name,link:ca==null?void 0:ca.link},Qt)),bn=!0)})}}),bn||qt(Qt)}},[je==null?void 0:je.setting,He]);var xr=Object(i.useMemo)(function(){var fe;if(je!=null&&(fe=je.setting)!==null&&fe!==void 0&&fe.nav_logo_url){var st;return"".concat(me.a.IMG_SERVER,"/").concat(je==null||((st=je.setting)===null||st===void 0)?void 0:st.nav_logo_url)}else return"".concat(me.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[je==null||((Ce=je.setting)===null||Ce===void 0)?void 0:Ce.nav_logo_url]);function Cr(fe){Fe.push("/search?value="+fe)}var Yn=function(){return Pe?r.a.createElement("div",{onBlur:function(){setTimeout(function(){Qe(!1)},300)}},r.a.createElement(Ue,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:Cr,autoFocus:!0})):r.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){Fe.push("/search?value=")}})},Or=Object(i.useState)([]),cr=Object(y.a)(Or,2),sn=cr[0],qt=cr[1],On=function(){var fe=Object(A.a)(n.a.mark(function st(Qt,In){var Vn,$t,bn,cn,Br,ra,oa,er;return n.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:if(!((Qt==null?void 0:Qt.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Ea.next=6;break}return Ea.next=3,Object($.j)();case 3:return bn=Ea.sent,bn!=null&&($t=bn.data)!==null&&$t!==void 0&&$t.engineer_url?bn!=null&&(cn=bn.data)!==null&&cn!==void 0&&(Br=cn.engineer_url)!==null&&Br!==void 0&&Br.includes("http")?Object(D.U)(bn==null||((ra=bn.data)===null||ra===void 0)?void 0:ra.engineer_url):Fe.push(bn==null||((oa=bn.data)===null||oa===void 0)?void 0:oa.engineer_url):(bn==null?void 0:bn.status)!=401&&(je!=null&&(er=je.setting)!==null&&er!==void 0&&er.authority_qrcode_url?An(!0):An(!1)),Ea.abrupt("return");case 6:Qt!=null&&(Vn=Qt.link)!==null&&Vn!==void 0&&Vn.includes("http")?Object(D.U)(Qt==null?void 0:Qt.link):Fe.push(Qt==null?void 0:Qt.link),(Qt==null?void 0:Qt.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&it({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:r.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 Ea.stop()}},st)}));return function(Qt,In){return fe.apply(this,arguments)}}(),Ir=function(st,Qt,In){var Vn=In.slice();return Vn[st]&&(Vn[st].name=Qt.name,Vn[st].link=Qt.link),Vn||[]};if(je.showHeader&&je.showHeaderFooter){var Ar,yr,pr,pe,X,q,oe,De;return r.a.createElement(a.a,{className:"".concat(je.isIlearning?l.a["header-iearning"]:l.a.header," ").concat(je.showHeaderFixed?l.a.headerFixed:"")},r.a.createElement(Ve,{className:"header"},r.a.createElement("section",{className:l.a["edu-menu"]},(!!je.isIlearning||!(je!=null&&(Ar=je.setting)!==null&&Ar!==void 0&&Ar.main_site)&&!!(je!=null&&(yr=je.setting)!==null&&yr!==void 0&&yr.navbar))&&r.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){it({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},r.a.createElement("img",{className:l.a.logo,title:(pr=je.setting)===null||pr===void 0?void 0:pr.name,src:xr||ht.a})),r.a.createElement("ul",{className:"".concat(l.a.menu," ").concat(Object(D.t)()&&"ml0")},Object(D.t)()&&r.a.createElement("li",null,r.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(D.t)()&&je.setting&&sn.map(function(fe,st){var Qt,In,Vn,$t,bn;return r.a.createElement("li",{key:st,className:!(fe!=null&&(Qt=fe.subitem)!==null&&Qt!==void 0&&Qt.length)&&Dt===(fe==null?void 0:fe.link)||fe!=null&&(In=fe.subitem)!==null&&In!==void 0&&In.some(function(cn){return Dt===(cn==null?void 0:cn.link)})?l.a.actived:""},r.a.createElement("div",{onClick:function(){return On(fe,st)},className:Ht.actionTabs.type===4?"".concat(l.a.name," ").concat(l.a.classromediv):l.a.name},r.a.createElement("span",null,function(){var cn=fe==null?void 0:fe.name;{var Br;fe==null||((Br=fe.subitem)===null||Br===void 0)||Br.map(function(ra,oa){return ra.link===Ct.pathname&&(cn=ra.name),ra})}return cn}()),(fe==null||((Vn=fe.subitem)===null||Vn===void 0)?void 0:Vn.length)>0&&r.a.createElement("i",{className:"iconfont icon-zhankai4"})),(fe==null||(($t=fe.subitem)===null||$t===void 0)?void 0:$t.length)>0&&r.a.createElement("div",{className:l.a.dropDown},fe==null||((bn=fe.subitem)===null||bn===void 0)?void 0:bn.map(function(cn,Br){return r.a.createElement("div",{className:l.a.subName,onClick:function(){return On(cn,st)},key:st+"-"+Br},!!Br&&r.a.createElement("div",{className:l.a.line}),r.a.createElement("aside",{className:"font16 c-black"},cn.name),r.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},cn.content))})))})),r.a.createElement("div",{className:"search-bar",style:{flex:je.isIlearning?"initial":"1 0 auto"}},r.a.createElement("div",{className:"timeShow"},Nn),!Object(D.t)()&&!(je!=null&&je.isIlearning)&&r.a.createElement(r.a.Fragment,null,r.a.createElement(Yn,null),!Jt&&r.a.createElement(ye,null),!Jt&&!!(He!=null&&(pe=He.userInfo)!==null&&pe!==void 0&&pe.login)&&r.a.createElement(h.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(He==null||((X=He.userInfo)===null||X===void 0)?void 0:X.login,"/user_tidings")},(He==null||((q=He.navigationInfo)===null||q===void 0||((oe=q.top)===null||oe===void 0))?void 0:oe.new_message)&&r.a.createElement("span",{className:l.a.newslight}))),!Jt&&r.a.createElement(te,{payload:on}))),r.a.createElement(g.a,{centered:!0,destroyOnClose:!0,visible:Zt,title:"\u63D0\u793A",width:"500px",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){An(!1)},onCancel:function(){return An(!1)}},r.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},r.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"),r.a.createElement("img",{src:me.a.IMG_SERVER+(je==null||((De=je.setting)===null||De===void 0)?void 0:De.authority_qrcode_url),width:200,height:200})))),r.a.createElement(tt,null))}else return r.a.createElement(r.a.Fragment,null)},jt=z.a=Object(d.a)(function(Ze){var Be=Ze.homePage,Ye=Ze.loading,Ce=Ze.user,Le=Ze.globalSetting,He=Ze.shixunHomeworks;return{homePage:Be,user:Ce,globalSetting:Le,loading:Ye.models.index,shixunHomeworks:He}})(Et)},sLOW:function(k,z,o){"use strict";var M=o("iQDF"),g=o("+eQT"),A=o("Awhp"),b=o("KrTs"),y=o("O3gP"),C=o("lrIw"),O=o("7Kak"),m=o("9yH6"),e=o("sRBo"),f=o("kaz8"),a=o("+L6B"),u=o("2/Rp"),n=o("oBTY"),i=o("miYZ"),r=o("tsqr"),c=o("2qtc"),h=o("kLXV"),d=o("9og8"),s=o("tJVT"),l=o("PpiC"),w=o("WmNS"),E=o.n(w),_=o("q1tI"),P=o.n(_),R=o("9kvl"),x=o("Z0Lh"),S=o.n(x),v=o("9ZNV"),T=o("NLgs"),U=o("wd/R"),L=o.n(U),N=o("L+Ii"),V=o.n(N),H=function(I){if(!I)return I;var K=I.split(":");if(K[1]=="00"||K[1]=="30")return I;var ee=parseInt(K[1]);if(ee<30||ee==60)return[K[0],"30"].join(":");if(ee<60){var he=[K[0],"00"].join(":"),de="YYYY-MM-DD HH:mm",Se=L()(he,de);return Se.add(1,"hours"),Se.format(de)}return I},D="YYYY-MM-DD HH:mm",W=function(I){var K,ee,he,de,Se,Te,ce,be,ye=I.shixunsDetail,ue=I.globalSetting,se=I.loading,$=I.user,me=I.dispatch,re=Object(l.a)(I,["shixunsDetail","globalSetting","loading","user","dispatch"]),ae=Object(_.useRef)(),Oe=Object(_.useState)(),le=Object(s.a)(Oe,2),te=le[0],Q=le[1],J=Object(_.useState)(),ve=Object(s.a)(J,2),_e=ve[0],Ae=ve[1],Je=Object(_.useState)([]),tt=Object(s.a)(Je,2),ut=tt[0],ht=tt[1],vt=Object(_.useState)([]),_t=Object(s.a)(vt,2),Ve=_t[0],Ue=_t[1],pt=Object(_.useState)(""),Ut=Object(s.a)(pt,2),Et=Ut[0],jt=Ut[1],Ze=Object(_.useState)(),Be=Object(s.a)(Ze,2),Ye=Be[0],Ce=Be[1],Le=Object(_.useState)(),He=Object(s.a)(Le,2),je=He[0],Ke=He[1],it=(K=$.userInfo)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.editable;Object(_.useEffect)(function(){var Fe,at;ae.current=(Fe=location.pathname)===null||Fe===void 0||((at=Fe.split("/"))===null||at===void 0)?void 0:at[2],Ct()},[]),Object(_.useEffect)(function(){var Fe,at,ot,Pe,Qe,ft,bt,Dt,Mt,ct;if(!ye.setting)return;Q((Fe=ye.setting)===null||Fe===void 0||((at=Fe.shixun)===null||at===void 0)?void 0:at.can_copy),Ae((ot=ye.setting)===null||ot===void 0||((Pe=ot.shixun)===null||Pe===void 0)?void 0:Pe.use_scope),Ce(!!((Qe=ye.setting)!==null&&Qe!==void 0&&(ft=Qe.shixun)!==null&&ft!==void 0&&ft.opening_time)),Ke((bt=ye.setting)===null||bt===void 0||((Dt=bt.shixun)===null||Dt===void 0)?void 0:Dt.opening_time),ht((Mt=ye.setting)===null||Mt===void 0||((ct=Mt.shixun)===null||ct===void 0)?void 0:ct.scope_partment)},[ye.setting]);var Ct=function(){var Fe=Object(d.a)(E.a.mark(function at(ot){var Pe;return E.a.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return ft.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:ot}});case 2:Pe=ft.sent,Pe&&Ue(Pe.shools_name||[]);case 4:case"end":return ft.stop()}},at)}));return function(ot){return Fe.apply(this,arguments)}}(),Ft=function(){var Fe=Object(d.a)(E.a.mark(function at(){var ot,Pe,Qe,ft,bt,Dt,Mt;return E.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ae.current}});case 2:if(Lt.t0=Lt.sent,Lt.t0){Lt.next=5;break}Lt.t0={};case 5:Mt=Lt.t0,h.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)},!!((ot=Mt.subjects)!==null&&ot!==void 0&&ot.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Pe=Mt.subjects)===null||Pe===void 0||((Qe=Pe.splice(0,2))===null||Qe===void 0)?void 0:Qe.map(function(Zt){return"\u300A".concat(Zt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},Mt==null?void 0:Mt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),P.a.createElement("br",null)),!!((ft=Mt.courses)!==null&&ft!==void 0&&ft.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(bt=Mt.courses)===null||bt===void 0||((Dt=bt.splice(0,2))===null||Dt===void 0)?void 0:Dt.map(function(Zt){return"\u300A".concat(Zt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},Mt==null?void 0:Mt.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 Zt=Object(d.a)(E.a.mark(function on(){var Tn;return E.a.wrap(function(Nn){for(;;)switch(Nn.prev=Nn.next){case 0:return Nn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ae.current}});case 2:Tn=Nn.sent,Tn.status===1&&(r.b.success("\u64CD\u4F5C\u6210\u529F"),R.d.push("/shixuns"));case 4:case"end":return Nn.stop()}},on)}));function An(){return Zt.apply(this,arguments)}return An}()});case 7:case"end":return Lt.stop()}},at)}));return function(){return Fe.apply(this,arguments)}}(),Jt=function(){if(Object(T.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},Ht=function(at){if(ut.includes(at)){r.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}jt(null),ht([].concat(Object(n.a)(ut),[at]))},Ot=function(){var Fe=Object(d.a)(E.a.mark(function at(){var ot;return E.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!(Ye&&!je)){Qe.next=3;break}return r.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Qe.abrupt("return");case 3:if(!(_e===1&&!ut.length)){Qe.next=6;break}return r.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Qe.abrupt("return");case 6:return Qe.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ae.current,scope_partment:_e===0?null:ut,shixun:{can_copy:te,use_scope:_e,opening_time:je}}});case 8:ot=Qe.sent,ot.status!==-1&&(r.b.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),me({type:"shixunsDetail/getSettingsData",payload:{id:ae.current}}),me({type:"shixunsDetail/getShixunsDetail",payload:{id:ae.current}}));case 10:case"end":return Qe.stop()}},at)}));return function(){return Fe.apply(this,arguments)}}();return P.a.createElement("section",{className:V.a.wrap},P.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(ye==null||((he=ye.detail)===null||he===void 0)?void 0:he.shixun_status)!==2?P.a.createElement(u.a,{danger:!0,onClick:Ft},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):P.a.createElement(u.a,{danger:!0,onClick:Jt},"\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(f.a,{checked:te,onChange:function(at){return Q(at.target.checked)},disabled:!it}),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=ye.detail)===null||de===void 0?void 0:de.shixun_status)>1||((Se=ye.detail)===null||Se===void 0?void 0:Se.public)===2)&&((Te=ye.setting)===null||Te===void 0||((ce=Te.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((be=ye.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(m.a.Group,{value:_e,onChange:function(at){return Ae(at.target.value)},disabled:!it},P.a.createElement(m.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(m.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"))),_e===1&&P.a.createElement(P.a.Fragment,null,P.a.createElement("div",{className:"mt10"},P.a.createElement(C.a,{showSearch:!0,className:V.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:Et,onChange:function(at){jt(at),Ct(at)},disabled:!it,onSelect:Ht,options:Ve==null?void 0:Ve.map(function(Fe){return{value:Fe}})}),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"},ut==null?void 0:ut.map(function(Fe){return it?P.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return ht(ut.filter(function(ot){return ot!==Fe}))}},P.a.createElement(u.a,{type:"primary",ghost:!0},Fe)):P.a.createElement(u.a,{type:"primary",ghost:!0,className:"mr20"},Fe)}))))),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(f.a,{checked:Ye,onChange:function(at){return Ce(at.target.checked)},disabled:!it}),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")),Ye&&P.a.createElement(g.a,{className:"".concat(V.a.dataPicker," mt10"),format:D,locale:S.a,disabled:!it,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(at){return at&&at<L()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:je&&L()(je,D),onChange:function(at,ot){return Ke(H(ot))}}))),P.a.createElement(v.a,{okText:"\u4FDD\u5B58",hasOkBtn:it,loading:se.effects["shixunsDetail/updatePermissionSetting"],onCancel:function(){return R.d.push("/shixuns/".concat(ae.current,"/challenges"))},onOk:Ot}))};z.a=Object(R.a)(function(F){var I=F.shixunsDetail,K=F.loading,ee=F.globalSetting,he=F.user;return{shixunsDetail:I,globalSetting:ee,user:he,loading:K}})(W)},sR1s:function(k,z,o){"use strict";o.d(z,"b",function(){return b}),o.d(z,"a",function(){return y}),o.d(z,"c",function(){return C}),o.d(z,"d",function(){return O});var M=o("U8pU"),g="RC_TABLE_KEY";function A(m){return m==null?[]:Array.isArray(m)?m:[m]}function b(m,e){if(!e&&typeof e!="number")return m;for(var f=A(e),a=m,u=0;u<f.length;u+=1){if(!a)return null;var n=f[u];a=a[n]}return a}function y(m){var e=[],f={};return m.forEach(function(a){for(var u=a||{},n=u.key,i=u.dataIndex,r=n||A(i).join("-")||g;f[r];)r="".concat(r,"_next");f[r]=!0,e.push(r)}),e}function C(){var m={};function e(n,i){i&&Object.keys(i).forEach(function(r){var c=i[r];c&&Object(M.a)(c)==="object"?(n[r]=n[r]||{},e(n[r],c)):n[r]=c})}for(var f=arguments.length,a=new Array(f),u=0;u<f;u++)a[u]=arguments[u];return a.forEach(function(n){e(m,n)}),m}function O(m){return m!=null}},sboe:function(k,z,o){"use strict";o.d(z,"a",function(){return A});var M=o("q1tI"),g=o.n(M),A=M.createContext(null)},sckv:function(k,z,o){k.exports={wrap:"wrap___3kep6",colorBlue:"colorBlue___3r5Hq",repeatedName:"repeatedName___vESvE"}},siWv:function(k,z,o){k.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(k,z,o){"use strict";var M=o("VTBJ"),g=o("1OyB"),A=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),C=o("q1tI"),O=o.n(C),m=o("m+aA"),e=o("Zm9Q"),f=o("Kwbf"),a=o("c+Xe"),u=o("bdgK"),n="rc-observer-key",i=function(r){Object(b.a)(h,r);var c=Object(y.a)(h);function h(){var d;return Object(g.a)(this,h),d=c.apply(this,arguments),d.resizeObserver=null,d.childNode=null,d.currentElement=null,d.state={width:0,height:0,offsetHeight:0,offsetWidth:0},d.onResize=function(s){var l=d.props.onResize,w=s[0].target,E=w.getBoundingClientRect(),_=E.width,P=E.height,R=w.offsetWidth,x=w.offsetHeight,S=Math.floor(_),v=Math.floor(P);if(d.state.width!==S||d.state.height!==v||d.state.offsetWidth!==R||d.state.offsetHeight!==x){var T={width:S,height:v,offsetWidth:R,offsetHeight:x};d.setState(T),l&&Promise.resolve().then(function(){l(Object(M.a)(Object(M.a)({},T),{},{offsetWidth:R,offsetHeight:x}))})}},d.setChildNode=function(s){d.childNode=s},d}return Object(A.a)(h,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var s=this.props.disabled;if(s){this.destroyObserver();return}var l=Object(m.a)(this.childNode||this),w=l!==this.currentElement;w&&(this.destroyObserver(),this.currentElement=l),!this.resizeObserver&&l&&(this.resizeObserver=new u.default(this.onResize),this.resizeObserver.observe(l))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var s=this.props.children,l=Object(e.a)(s);if(l.length>1)Object(f.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(f.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=l[0];if(C.isValidElement(w)&&Object(a.c)(w)){var E=w.ref;l[0]=C.cloneElement(w,{ref:Object(a.a)(E,this.setChildNode)})}return l.length===1?l[0]:l.map(function(_,P){return!C.isValidElement(_)||"key"in _&&_.key!==null?_:C.cloneElement(_,{key:"".concat(n,"-").concat(P)})})}}]),h}(C.Component);i.displayName="ResizeObserver",z.a=i},t9D7:function(k,z,o){"use strict";o.d(z,"b",function(){return O}),o.d(z,"g",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"e",function(){return a}),o.d(z,"a",function(){return u}),o.d(z,"f",function(){return r}),o.d(z,"c",function(){return c});var M=o("Vhoy"),g=o("MI8n"),A=o("pmY6"),b=o("Cg/j"),y=o("ic2d"),C=o("nEHx");const O=Object(b.c)("themeService");var m;(function(h){function d(s){return s&&typeof s=="object"&&typeof s.id=="string"}h.isThemeColor=d})(m||(m={}));function e(h){return{id:h}}var f;(function(h){function d(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||m.isThemeColor(P.color))}h.isThemeIcon=d;const s=new RegExp(`^\\$\\((${M.a.iconNameExpression}(?:${M.a.iconModifierExpression})?)\\)$`);function l(P){const R=s.exec(P);if(!R)return;let[,x]=R;return{id:x}}h.fromString=l;function w(P,R){let x=P.id;const S=x.lastIndexOf("~");return S!==-1&&(x=x.substring(0,S)),R&&(x=`${x}~${R}`),{id:x}}h.modify=w;function E(P,R){var x,S;return P.id===R.id&&((x=P.color)===null||x===void 0?void 0:x.id)===((S=R.color)===null||S===void 0?void 0:S.id)}h.isEqual=E;function _(P,R){return{id:P.id,color:R?e(R):void 0}}h.asThemeIcon=_,h.asClassNameArray=M.a.asClassNameArray,h.asClassName=M.a.asClassName,h.asCSSSelector=M.a.asCSSSelector})(f||(f={}));function a(h){switch(h){case C.a.DARK:return"vs-dark";case C.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"};class n{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new g.b}onColorThemeChange(h){return this.themingParticipants.push(h),this.onThemingParticipantAddedEmitter.fire(h),Object(A.i)(()=>{const d=this.themingParticipants.indexOf(h);this.themingParticipants.splice(d,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new n;y.a.add(u.ThemingContribution,i);function r(h){return i.onColorThemeChange(h)}class c extends A.a{constructor(h){super();this.themeService=h,this.theme=h.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(d=>this.onThemeChange(d)))}onThemeChange(h){this.theme=h,this.updateStyles()}updateStyles(){}}},tWlo:function(k,z){k.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(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(M){return function(){var g=M,A=g.x64,b=A.Word,y=A.WordArray,C=g.algo,O=C.SHA512,m=C.SHA384=O.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 e=O._doFinalize.call(this);return e.sigBytes-=16,e}});g.SHA384=O._createHelper(m),g.HmacSHA384=O._createHmacHelper(m)}(),M.SHA384})},uGxW:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.NoPadding={pad:function(){},unpad:function(){}},M.pad.NoPadding})},uK0f:function(k,z,o){(function(M,g){k.exports=g()})(this,function(){"use strict";function M(g,A,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=g||[],C=[],O=0;do{var m=y.filter(function(e){return A(e,O)})[0];if(!m)break;C.push(m),y=m[b.childrenKeyName]||[],O+=1}while(y.length>0);return C}return M})},ulZh:function(k,z,o){typeof window!="undefined"&&function(g,A){k.exports=A()}(this,function(){return function(M){var g={};function A(b){if(g[b])return g[b].exports;var y=g[b]={i:b,l:!1,exports:{}};return M[b].call(y.exports,y,y.exports,A),y.l=!0,y.exports}return A.m=M,A.c=g,A.d=function(b,y,C){A.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:C})},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 C=Object.create(null);if(A.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var O in b)A.d(C,O,function(m){return b[m]}.bind(null,O));return C},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(M,g,A){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function C(){}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(y=!1));function O(a,u,n){this.fn=a,this.context=u,this.once=n||!1}function m(a,u,n,i,r){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new O(n,i||a,r),h=y?y+u:u;return a._events[h]?a._events[h].fn?a._events[h]=[a._events[h],c]:a._events[h].push(c):(a._events[h]=c,a._eventsCount++),a}function e(a,u){--a._eventsCount===0?a._events=new C:delete a._events[u]}function f(){this._events=new C,this._eventsCount=0}f.prototype.eventNames=function(){var u=[],n,i;if(this._eventsCount===0)return u;for(i in n=this._events)b.call(n,i)&&u.push(y?i.slice(1):i);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(n)):u},f.prototype.listeners=function(u){var n=y?y+u:u,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,c=i.length,h=new Array(c);r<c;r++)h[r]=i[r].fn;return h},f.prototype.listenerCount=function(u){var n=y?y+u:u,i=this._events[n];return i?i.fn?1:i.length:0},f.prototype.emit=function(u,n,i,r,c,h){var d=y?y+u:u;if(!this._events[d])return!1;var s=this._events[d],l=arguments.length,w,E;if(s.fn){s.once&&this.removeListener(u,s.fn,void 0,!0);switch(l){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,n),!0;case 3:return s.fn.call(s.context,n,i),!0;case 4:return s.fn.call(s.context,n,i,r),!0;case 5:return s.fn.call(s.context,n,i,r,c),!0;case 6:return s.fn.call(s.context,n,i,r,c,h),!0}for(E=1,w=new Array(l-1);E<l;E++)w[E-1]=arguments[E];s.fn.apply(s.context,w)}else{var _=s.length,P;for(E=0;E<_;E++){s[E].once&&this.removeListener(u,s[E].fn,void 0,!0);switch(l){case 1:s[E].fn.call(s[E].context);break;case 2:s[E].fn.call(s[E].context,n);break;case 3:s[E].fn.call(s[E].context,n,i);break;case 4:s[E].fn.call(s[E].context,n,i,r);break;default:if(!w)for(P=1,w=new Array(l-1);P<l;P++)w[P-1]=arguments[P];s[E].fn.apply(s[E].context,w)}}}return!0},f.prototype.on=function(u,n,i){return m(this,u,n,i,!1)},f.prototype.once=function(u,n,i){return m(this,u,n,i,!0)},f.prototype.removeListener=function(u,n,i,r){var c=y?y+u:u;if(!this._events[c])return this;if(!n)return e(this,c),this;var h=this._events[c];if(h.fn)h.fn===n&&(!r||h.once)&&(!i||h.context===i)&&e(this,c);else{for(var d=0,s=[],l=h.length;d<l;d++)(h[d].fn!==n||r&&!h[d].once||i&&h[d].context!==i)&&s.push(h[d]);s.length?this._events[c]=s.length===1?s[0]:s:e(this,c)}return this},f.prototype.removeAllListeners=function(u){var n;return u?(n=y?y+u:u,this._events[n]&&e(this,n)):(this._events=new C,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=y,f.EventEmitter=f,M.exports=f},"./node_modules/url-toolkit/src/url-toolkit.js":function(M,g,A){(function(b){var y=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,C=/^([^\/?#]*)([^]*)$/,O=/(?:\/|^)\.(?=\/)/g,m=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(f,a,u){if(u=u||{},f=f.trim(),a=a.trim(),!a){if(!u.alwaysNormalize)return f;var n=e.parseURL(f);if(!n)throw new Error("Error trying to parse base URL.");return n.path=e.normalizePath(n.path),e.buildURLFromParts(n)}var i=e.parseURL(a);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return u.alwaysNormalize?(i.path=e.normalizePath(i.path),e.buildURLFromParts(i)):a;var r=e.parseURL(f);if(!r)throw new Error("Error trying to parse base URL.");if(!r.netLoc&&r.path&&r.path[0]!=="/"){var c=C.exec(r.path);r.netLoc=c[1],r.path=c[2]}r.netLoc&&!r.path&&(r.path="/");var h={scheme:r.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(h.netLoc=r.netLoc,i.path[0]!=="/"))if(!i.path)h.path=r.path,i.params||(h.params=r.params,i.query||(h.query=r.query));else{var d=r.path,s=d.substring(0,d.lastIndexOf("/")+1)+i.path;h.path=e.normalizePath(s)}return h.path===null&&(h.path=u.alwaysNormalize?e.normalizePath(i.path):i.path),e.buildURLFromParts(h)},parseURL:function(f){var a=y.exec(f);return a?{scheme:a[1]||"",netLoc:a[2]||"",path:a[3]||"",params:a[4]||"",query:a[5]||"",fragment:a[6]||""}:null},normalizePath:function(f){for(f=f.split("").reverse().join("").replace(O,"");f.length!==(f=f.replace(m,"")).length;);return f.split("").reverse().join("")},buildURLFromParts:function(f){return f.scheme+f.netLoc+f.path+f.params+f.query+f.fragment}};M.exports=e})(this)},"./node_modules/webworkify-webpack/index.js":function(M,g,A){function b(u){var n={};function i(c){if(n[c])return n[c].exports;var h=n[c]={i:c,l:!1,exports:{}};return u[c].call(h.exports,h,h.exports,i),h.l=!0,h.exports}i.m=u,i.c=n,i.i=function(c){return c},i.d=function(c,h,d){i.o(c,h)||Object.defineProperty(c,h,{configurable:!1,enumerable:!0,get:d})},i.r=function(c){Object.defineProperty(c,"__esModule",{value:!0})},i.n=function(c){var h=c&&c.__esModule?function(){return c.default}:function(){return c};return i.d(h,"a",h),h},i.o=function(c,h){return Object.prototype.hasOwnProperty.call(c,h)},i.p="/",i.oe=function(c){throw console.error(c),c};var r=i(i.s=ENTRY_MODULE);return r.default||r}var y="[\\.|\\-|\\+|\\w|/|@]+",C="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+y+").*?\\)";function O(u){return(u+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function m(u){return!isNaN(1*u)}function e(u,n,i){var r={};r[i]=[];var c=n.toString(),h=c.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!h)return r;for(var d=h[1],s=new RegExp("(\\\\n|\\W)"+O(d)+C,"g"),l;l=s.exec(c);){if(l[3]==="dll-reference")continue;r[i].push(l[3])}for(s=new RegExp("\\("+O(d)+'\\("(dll-reference\\s('+y+'))"\\)\\)'+C,"g");l=s.exec(c);)u[l[2]]||(r[i].push(l[1]),u[l[2]]=A(l[1]).m),r[l[2]]=r[l[2]]||[],r[l[2]].push(l[4]);for(var w=Object.keys(r),E=0;E<w.length;E++)for(var _=0;_<r[w[E]].length;_++)m(r[w[E]][_])&&(r[w[E]][_]=1*r[w[E]][_]);return r}function f(u){var n=Object.keys(u);return n.reduce(function(i,r){return i||u[r].length>0},!1)}function a(u,n){for(var i={main:[n]},r={main:[]},c={main:{}};f(i);)for(var h=Object.keys(i),d=0;d<h.length;d++){var s=h[d],l=i[s],w=l.pop();if(c[s]=c[s]||{},c[s][w]||!u[s][w])continue;c[s][w]=!0,r[s]=r[s]||[],r[s].push(w);for(var E=e(u,u[s][w],s),_=Object.keys(E),P=0;P<_.length;P++)i[_[P]]=i[_[P]]||[],i[_[P]]=i[_[P]].concat(E[_[P]])}return r}M.exports=function(u,n){n=n||{};var i={main:A.m},r=n.all?{main:Object.keys(i.main)}:a(i,u),c="";Object.keys(r).filter(function(w){return w!=="main"}).forEach(function(w){for(var E=0;r[w][E];)E++;r[w].push(E),i[w][E]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",c=c+"var "+w+" = ("+b.toString().replace("ENTRY_MODULE",JSON.stringify(E))+")({"+r[w].map(function(_){return""+JSON.stringify(_)+": "+i[w][_].toString()}).join(",")+`});
`}),c=c+"new (("+b.toString().replace("ENTRY_MODULE",JSON.stringify(u))+")({"+r.main.map(function(w){return""+JSON.stringify(w)+": "+i.main[w].toString()}).join(",")+"}))(self);";var h=new window.Blob([c],{type:"text/javascript"});if(n.bare)return h;var d=window.URL||window.webkitURL||window.mozURL||window.msURL,s=d.createObjectURL(h),l=new window.Worker(s);return l.objectURL=s,l}},"./src/config.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"hlsDefaultConfig",function(){return P}),A.d(g,"mergeConfig",function(){return x}),A.d(g,"enableStreamingMode",function(){return S});var b=A("./src/controller/abr-controller.ts"),y=A("./src/controller/audio-stream-controller.ts"),C=A("./src/controller/audio-track-controller.ts"),O=A("./src/controller/subtitle-stream-controller.ts"),m=A("./src/controller/subtitle-track-controller.ts"),e=A("./src/controller/buffer-controller.ts"),f=A("./src/controller/timeline-controller.ts"),a=A("./src/controller/cap-level-controller.ts"),u=A("./src/controller/fps-controller.ts"),n=A("./src/controller/eme-controller.ts"),i=A("./src/controller/cmcd-controller.ts"),r=A("./src/utils/xhr-loader.ts"),c=A("./src/utils/fetch-loader.ts"),h=A("./src/utils/cues.ts"),d=A("./src/utils/mediakeys-helper.ts"),s=A("./src/utils/logger.ts");function l(){return l=Object.assign||function(v){for(var T=1;T<arguments.length;T++){var U=arguments[T];for(var L in U)Object.prototype.hasOwnProperty.call(U,L)&&(v[L]=U[L])}return v},l.apply(this,arguments)}function w(v,T){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(v);T&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,L)}return U}function E(v){for(var T=1;T<arguments.length;T++){var U=arguments[T]!=null?arguments[T]:{};T%2?w(Object(U),!0).forEach(function(L){_(v,L,U[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(U)):w(Object(U)).forEach(function(L){Object.defineProperty(v,L,Object.getOwnPropertyDescriptor(U,L))})}return v}function _(v,T,U){return T in v?Object.defineProperty(v,T,{value:U,enumerable:!0,configurable:!0,writable:!0}):v[T]=U,v}var P=E(E({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:r.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:b.default,bufferController:e.default,capLevelController:a.default,fpsController:u.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:d.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},R()),{},{subtitleStreamController:O.SubtitleStreamController,subtitleTrackController:m.default,timelineController:f.TimelineController,audioStreamController:y.default,audioTrackController:C.default,emeController:n.default,cmcdController:i.default});function R(){return{cueHandler:h.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 x(v,T){if((T.liveSyncDurationCount||T.liveMaxLatencyDurationCount)&&(T.liveSyncDuration||T.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(T.liveMaxLatencyDurationCount!==void 0&&(T.liveSyncDurationCount===void 0||T.liveMaxLatencyDurationCount<=T.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(T.liveMaxLatencyDuration!==void 0&&(T.liveSyncDuration===void 0||T.liveMaxLatencyDuration<=T.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return l({},v,T)}function S(v){var T=v.loader;if(T!==c.default&&T!==r.default)s.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),v.progressive=!1;else{var U=Object(c.fetchSupported)();U&&(v.loader=c.default,v.progressive=!0,v.enableSoftwareAES=!0,s.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/polyfills/number.ts"),y=A("./src/utils/ewma-bandwidth-estimator.ts"),C=A("./src/events.ts"),O=A("./src/utils/buffer-helper.ts"),m=A("./src/errors.ts"),e=A("./src/types/loader.ts"),f=A("./src/utils/logger.ts");function a(i,r){for(var c=0;c<r.length;c++){var h=r[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function u(i,r,c){return r&&a(i.prototype,r),c&&a(i,c),i}var n=function(){function i(c){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=c;var h=c.config;this.bwEstimator=new y.default(h.abrEwmaSlowVoD,h.abrEwmaFastVoD,h.abrEwmaDefaultEstimate),this.registerListeners()}var r=i.prototype;return r.registerListeners=function(){var h=this.hls;h.on(C.Events.FRAG_LOADING,this.onFragLoading,this),h.on(C.Events.FRAG_LOADED,this.onFragLoaded,this),h.on(C.Events.FRAG_BUFFERED,this.onFragBuffered,this),h.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.on(C.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){var h=this.hls;h.off(C.Events.FRAG_LOADING,this.onFragLoading,this),h.off(C.Events.FRAG_LOADED,this.onFragLoaded,this),h.off(C.Events.FRAG_BUFFERED,this.onFragBuffered,this),h.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.off(C.Events.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},r.onFragLoading=function(h,d){var s=d.frag;if(s.type===e.PlaylistLevelType.MAIN&&!this.timer){var l;this.fragCurrent=s,this.partCurrent=(l=d.part)!=null?l:null,this.timer=self.setInterval(this.onCheck,100)}},r.onLevelLoaded=function(h,d){var s=this.hls.config;d.details.live?this.bwEstimator.update(s.abrEwmaSlowLive,s.abrEwmaFastLive):this.bwEstimator.update(s.abrEwmaSlowVoD,s.abrEwmaFastVoD)},r._abandonRulesCheck=function(){var h=this.fragCurrent,d=this.partCurrent,s=this.hls,l=s.autoLevelEnabled,w=s.config,E=s.media;if(!h||!E)return;var _=d?d.stats:h.stats,P=d?d.duration:h.duration;if(_.aborted){f.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!l||E.paused||!E.playbackRate||!E.readyState)return;var R=performance.now()-_.loading.start,x=Math.abs(E.playbackRate);if(R<=500*P/x)return;var S=s.levels,v=s.minAutoLevel,T=S[h.level],U=_.total||Math.max(_.loaded,Math.round(P*T.maxBitrate/8)),L=Math.max(1,_.bwEstimate?_.bwEstimate/8:_.loaded*1e3/R),N=(U-_.loaded)/L,V=E.currentTime,H=(O.BufferHelper.bufferInfo(E,V,w.maxBufferHole).end-V)/x;if(H>=2*P/x||N<=H)return;var D=Number.POSITIVE_INFINITY,W;for(W=h.level-1;W>v;W--){var F=S[W].maxBitrate;if(D=P*F/(8*.8*L),D<H)break}if(D>=N)return;var I=this.bwEstimator.getEstimate();f.logger.warn("Fragment "+h.sn+(d?" part "+d.index:"")+" of level "+h.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+W+`
Current BW estimate: `+(Object(b.isFiniteNumber)(I)?(I/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+N.toFixed(3)+` s
Estimated load time for the next fragment: `+D.toFixed(3)+` s
Time to underbuffer: `+H.toFixed(3)+" s"),s.nextLoadLevel=W,this.bwEstimator.sample(R,_.loaded),this.clearTimer(),h.loader&&(this.fragCurrent=this.partCurrent=null,h.loader.abort()),s.trigger(C.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:h,part:d,stats:_})},r.onFragLoaded=function(h,d){var s=d.frag,l=d.part;if(s.type===e.PlaylistLevelType.MAIN&&Object(b.isFiniteNumber)(s.sn)){var w=l?l.stats:s.stats,E=l?l.duration:s.duration;if(this.clearTimer(),this.lastLoadedFragLevel=s.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var _=this.hls.levels[s.level],P=(_.loaded?_.loaded.bytes:0)+w.loaded,R=(_.loaded?_.loaded.duration:0)+E;_.loaded={bytes:P,duration:R},_.realBitrate=Math.round(8*P/R)}if(s.bitrateTest){var x={stats:w,frag:s,part:l,id:s.type};this.onFragBuffered(C.Events.FRAG_BUFFERED,x),s.bitrateTest=!1}}},r.onFragBuffered=function(h,d){var s=d.frag,l=d.part,w=l?l.stats:s.stats;if(w.aborted)return;if(s.type!==e.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var E=w.parsing.end-w.loading.start;this.bwEstimator.sample(E,w.loaded),w.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},r.onError=function(h,d){switch(d.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},r.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},r.getNextABRAutoLevel=function(){var h=this.fragCurrent,d=this.partCurrent,s=this.hls,l=s.maxAutoLevel,w=s.config,E=s.minAutoLevel,_=s.media,P=d?d.duration:h?h.duration:0,R=_?_.currentTime:0,x=_&&_.playbackRate!==0?Math.abs(_.playbackRate):1,S=this.bwEstimator?this.bwEstimator.getEstimate():w.abrEwmaDefaultEstimate,v=(O.BufferHelper.bufferInfo(_,R,w.maxBufferHole).end-R)/x,T=this.findBestLevel(S,E,l,v,w.abrBandWidthFactor,w.abrBandWidthUpFactor);if(T>=0)return T;f.logger.trace((v?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var U=P?Math.min(P,w.maxStarvationDelay):w.maxStarvationDelay,L=w.abrBandWidthFactor,N=w.abrBandWidthUpFactor;if(!v){var V=this.bitrateTestDelay;if(V){var H=P?Math.min(P,w.maxLoadingDelay):w.maxLoadingDelay;U=H-V,f.logger.trace("bitrate test took "+Math.round(1e3*V)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*U)+" ms"),L=N=1}}return T=this.findBestLevel(S,E,l,v+U,L,N),Math.max(T,0)},r.findBestLevel=function(h,d,s,l,w,E){for(var _,P=this.fragCurrent,R=this.partCurrent,x=this.lastLoadedFragLevel,S=this.hls.levels,v=S[x],T=!!(v!=null&&(_=v.details)!==null&&_!==void 0&&_.live),U=v==null?void 0:v.codecSet,L=R?R.duration:P?P.duration:0,N=s;N>=d;N--){var V=S[N];if(!V||U&&V.codecSet!==U)continue;var H=V.details,D=(R?H==null?void 0:H.partTarget:H==null?void 0:H.averagetargetduration)||L,W=void 0;N<=x?W=w*h:W=E*h;var F=S[N].maxBitrate,I=F*D/W;if(f.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+N+"/"+Math.round(W)+"/"+F+"/"+D+"/"+l+"/"+I),W>F&&(!I||T&&!this.bitrateTestDelay||I<l))return N}return-1},u(i,[{key:"nextAutoLevel",get:function(){var h=this._nextAutoLevel,d=this.bwEstimator;if(h!==-1&&(!d||!d.canEstimate()))return h;var s=this.getNextABRAutoLevel();return h!==-1&&(s=Math.min(h,s)),s},set:function(h){this._nextAutoLevel=h}}]),i}();g.default=n},"./src/controller/audio-stream-controller.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/polyfills/number.ts"),y=A("./src/controller/base-stream-controller.ts"),C=A("./src/events.ts"),O=A("./src/utils/buffer-helper.ts"),m=A("./src/controller/fragment-tracker.ts"),e=A("./src/types/level.ts"),f=A("./src/types/loader.ts"),a=A("./src/loader/fragment.ts"),u=A("./src/demux/chunk-cache.ts"),n=A("./src/demux/transmuxer-interface.ts"),i=A("./src/types/transmuxer.ts"),r=A("./src/controller/fragment-finders.ts"),c=A("./src/utils/discontinuities.ts"),h=A("./src/errors.ts"),d=A("./src/utils/logger.ts");function s(){return s=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var x=arguments[R];for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(P[S]=x[S])}return P},s.apply(this,arguments)}function l(P,R){P.prototype=Object.create(R.prototype),P.prototype.constructor=P,w(P,R)}function w(P,R){return w=Object.setPrototypeOf||function(S,v){return S.__proto__=v,S},w(P,R)}var E=100,_=function(P){l(R,P);function R(S,v){var T;return T=P.call(this,S,v,"[audio-stream-controller]")||this,T.videoBuffer=null,T.videoTrackCC=-1,T.waitingVideoCC=-1,T.audioSwitch=!1,T.trackId=-1,T.waitingData=null,T.mainDetails=null,T.bufferFlushed=!1,T._registerListeners(),T}var x=R.prototype;return x.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},x._registerListeners=function(){var v=this.hls;v.on(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),v.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),v.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),v.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),v.on(C.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),v.on(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),v.on(C.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),v.on(C.Events.ERROR,this.onError,this),v.on(C.Events.BUFFER_RESET,this.onBufferReset,this),v.on(C.Events.BUFFER_CREATED,this.onBufferCreated,this),v.on(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),v.on(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),v.on(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},x._unregisterListeners=function(){var v=this.hls;v.off(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),v.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),v.off(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),v.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),v.off(C.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),v.off(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),v.off(C.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),v.off(C.Events.ERROR,this.onError,this),v.off(C.Events.BUFFER_RESET,this.onBufferReset,this),v.off(C.Events.BUFFER_CREATED,this.onBufferCreated,this),v.off(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),v.off(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),v.off(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},x.onInitPtsFound=function(v,T){var U=T.frag,L=T.id,N=T.initPTS;if(L==="main"){var V=U.cc;this.initPTS[U.cc]=N,this.log("InitPTS for cc: "+V+" found from main: "+N),this.videoTrackCC=V,this.state===y.State.WAITING_INIT_PTS&&this.tick()}},x.startLoad=function(v){if(!this.levels){this.startPosition=v,this.state=y.State.STOPPED;return}var T=this.lastCurrentTime;this.stopLoad(),this.setInterval(E),this.fragLoadError=0,T>0&&v===-1?(this.log("Override startPosition with lastCurrentTime @"+T.toFixed(3)),this.state=y.State.IDLE):(this.loadedmetadata=!1,this.state=y.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=v,this.tick()},x.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_TRACK:{var v,T=this.levels,U=this.trackId,L=T==null||((v=T[U])===null||v===void 0)?void 0:v.details;if(L){if(this.waitForCdnTuneIn(L))break;this.state=y.State.WAITING_INIT_PTS}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var N,V=performance.now(),H=this.retryDate;(!H||V>=H||(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 D=this.waitingData;if(D){var W=D.frag,F=D.part,I=D.cache,K=D.complete;if(this.initPTS[W.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.FRAG_LOADING;var ee=I.flush(),he={frag:W,part:F,payload:ee,networkDetails:null};this._handleFragmentLoadProgress(he),K&&P.prototype._handleFragmentLoadComplete.call(this,he)}else if(this.videoTrackCC!==this.waitingVideoCC)d.logger.log("Waiting fragment cc ("+W.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var de=this.getLoadPosition(),Se=O.BufferHelper.bufferInfo(this.mediaBuffer,de,this.config.maxBufferHole),Te=Object(r.fragmentWithinToleranceTest)(Se.end,this.config.maxFragLookUpTolerance,W);Te<0&&(d.logger.log("Waiting fragment cc ("+W.cc+") @ "+W.start+" cancelled because another fragment at "+Se.end+" is needed"),this.clearWaitingFragment())}}else this.state=y.State.IDLE}}this.onTickEnd()},x.clearWaitingFragment=function(){var v=this.waitingData;v&&(this.fragmentTracker.removeFragment(v.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.IDLE)},x.onTickEnd=function(){var v=this.media;if(!v||!v.readyState)return;var T=this.mediaBuffer?this.mediaBuffer:v,U=T.buffered;!this.loadedmetadata&&U.length&&(this.loadedmetadata=!0),this.lastCurrentTime=v.currentTime},x.doTickIdle=function(){var v,T,U=this.hls,L=this.levels,N=this.media,V=this.trackId,H=U.config;if(!L||!L[V])return;if(!N&&(this.startFragRequested||!H.startFragPrefetch))return;var D=L[V],W=D.details;if(!W||W.live&&this.levelLastLoaded!==V||this.waitForCdnTuneIn(W)){this.state=y.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,a.ElementaryStreamTypes.AUDIO,f.PlaylistLevelType.AUDIO));var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,f.PlaylistLevelType.AUDIO);if(F===null)return;var I=F.len,K=this.getMaxBufferLength(),ee=this.audioSwitch;if(I>=K&&!ee)return;if(!ee&&this._streamEnded(F,W)){U.trigger(C.Events.BUFFER_EOS,{type:"audio"}),this.state=y.State.ENDED;return}var he=W.fragments,de=he[0].start,Se=F.end;if(ee){var Te=this.getLoadPosition();Se=Te,W.PTSKnown&&Te<de&&((F.end>de||F.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(Se,W);if(!ce){this.bufferFlushed=!0;return}((v=ce.decryptdata)===null||v===void 0?void 0:v.keyFormat)==="identity"&&!((T=ce.decryptdata)!==null&&T!==void 0&&T.key)?this.loadKey(ce,W):this.loadFragment(ce,W,Se)},x.getMaxBufferLength=function(){var v=P.prototype.getMaxBufferLength.call(this),T=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,f.PlaylistLevelType.MAIN);return T===null?v:Math.max(v,T.len)},x.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},x.onAudioTracksUpdated=function(v,T){var U=T.audioTracks;this.resetTransmuxer(),this.levels=U.map(function(L){return new e.Level(L)})},x.onAudioTrackSwitching=function(v,T){var U=!!T.url;this.trackId=T.id;var L=this.fragCurrent;L!=null&&L.loader&&L.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),U?this.setInterval(E):this.resetTransmuxer(),U?(this.audioSwitch=!0,this.state=y.State.IDLE):this.state=y.State.STOPPED,this.tick()},x.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},x.onLevelLoaded=function(v,T){this.mainDetails=T.details},x.onAudioTrackLoaded=function(v,T){var U,L=this.levels,N=T.details,V=T.id;if(!L){this.warn("Audio tracks were reset while loading level "+V);return}this.log("Track "+V+" loaded ["+N.startSN+","+N.endSN+"],duration:"+N.totalduration);var H=L[V],D=0;if(N.live||(U=H.details)!==null&&U!==void 0&&U.live){var W=this.mainDetails;if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed||!W)return;!H.details&&N.hasProgramDateTime&&W.hasProgramDateTime?(Object(c.alignMediaPlaylistByPDT)(N,W),D=N.fragments[0].start):D=this.alignPlaylists(N,H.details)}H.details=N,this.levelLastLoaded=V,!this.startFragRequested&&(this.mainDetails||!N.live)&&this.setStartPosition(H.details,D),this.state===y.State.WAITING_TRACK&&!this.waitForCdnTuneIn(N)&&(this.state=y.State.IDLE),this.tick()},x._handleFragmentLoadProgress=function(v){var T,U=v.frag,L=v.part,N=v.payload,V=this.config,H=this.trackId,D=this.levels;if(!D){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+U.sn+" of level "+U.level+" will not be buffered");return}var W=D[H];console.assert(W,"Audio track is defined on fragment load progress");var F=W.details;console.assert(F,"Audio track details are defined on fragment load progress");var I=V.defaultAudioCodec||W.audioCodec||"mp4a.40.2",K=this.transmuxer;K||(K=this.transmuxer=new n.default(this.hls,f.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ee=this.initPTS[U.cc],he=(T=U.initSegment)===null||T===void 0?void 0:T.data;if(ee!==void 0){var de=!1,Se=L?L.index:-1,Te=Se!==-1,ce=new i.ChunkMetadata(U.level,U.sn,U.stats.chunkCount,N.byteLength,Se,Te);K.push(N,he,I,"",U,L,F.totalduration,de,ce,ee)}else{d.logger.log("Unknown video PTS for cc "+U.cc+", waiting for video PTS before demuxing audio frag "+U.sn+" of ["+F.startSN+" ,"+F.endSN+"],track "+H);var be=this.waitingData=this.waitingData||{frag:U,part:L,cache:new u.default,complete:!1},ye=be.cache;ye.push(new Uint8Array(N)),this.waitingVideoCC=this.videoTrackCC,this.state=y.State.WAITING_INIT_PTS}},x._handleFragmentLoadComplete=function(v){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,v)},x.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},x.onBufferCreated=function(v,T){var U=T.tracks.audio;U&&(this.mediaBuffer=U.buffer),T.tracks.video&&(this.videoBuffer=T.tracks.video.buffer)},x.onFragBuffered=function(v,T){var U=T.frag,L=T.part;if(U.type!==f.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(U)){this.warn("Fragment "+U.sn+(L?" p: "+L.index:"")+" of level "+U.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}U.sn!=="initSegment"&&(this.fragPrevious=U,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(U,L)},x.onError=function(v,T){switch(T.details){case h.ErrorDetails.FRAG_LOAD_ERROR:case h.ErrorDetails.FRAG_LOAD_TIMEOUT:case h.ErrorDetails.KEY_LOAD_ERROR:case h.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f.PlaylistLevelType.AUDIO,T);break;case h.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case h.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==y.State.ERROR&&this.state!==y.State.STOPPED&&(this.state=T.fatal?y.State.ERROR:y.State.IDLE,this.warn(T.details+" while loading frag, switching to "+this.state+" state"));break;case h.ErrorDetails.BUFFER_FULL_ERROR:if(T.parent==="audio"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var U=!0,L=this.getFwdBufferInfo(this.mediaBuffer,f.PlaylistLevelType.AUDIO);L&&L.len>.5&&(U=!this.reduceMaxBufferLength(L.len)),U&&(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}},x.onBufferFlushed=function(v,T){var U=T.type;U===a.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},x._handleTransmuxComplete=function(v){var T,U="audio",L=this.hls,N=v.remuxResult,V=v.chunkMeta,H=this.getCurrentContext(V);if(!H){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 D=H.frag,W=H.part,F=N.audio,I=N.text,K=N.id3,ee=N.initSegment;if(this.fragContextChanged(D))return;if(this.state=y.State.PARSING,this.audioSwitch&&F&&this.completeAudioSwitch(),ee!=null&&ee.tracks&&(this._bufferInitSegment(ee.tracks,D,V),L.trigger(C.Events.FRAG_PARSING_INIT_SEGMENT,{frag:D,id:U,tracks:ee.tracks})),F){var he=F.startPTS,de=F.endPTS,Se=F.startDTS,Te=F.endDTS;W&&(W.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:he,endPTS:de,startDTS:Se,endDTS:Te}),D.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,he,de,Se,Te),this.bufferFragmentData(F,D,W,V)}if(K!=null&&(T=K.samples)!==null&&T!==void 0&&T.length){var ce=s({frag:D,id:U},K);L.trigger(C.Events.FRAG_PARSING_METADATA,ce)}if(I){var be=s({frag:D,id:U},I);L.trigger(C.Events.FRAG_PARSING_USERDATA,be)}},x._bufferInitSegment=function(v,T,U){if(this.state!==y.State.PARSING)return;v.video&&delete v.video;var L=v.audio;if(!L)return;L.levelCodec=L.codec,L.id="audio",this.log("Init audio buffer, container:"+L.container+", codecs[parsed]=["+L.codec+"]"),this.hls.trigger(C.Events.BUFFER_CODECS,v);var N=L.initSegment;if(N!=null&&N.byteLength){var V={type:"audio",frag:T,part:null,chunkMeta:U,parent:T.type,data:N};this.hls.trigger(C.Events.BUFFER_APPENDING,V)}this.tick()},x.loadFragment=function(v,T,U){var L=this.fragmentTracker.getState(v);this.fragCurrent=v,(this.audioSwitch||L===m.FragmentState.NOT_LOADED||L===m.FragmentState.PARTIAL)&&(v.sn==="initSegment"?this._loadInitSegment(v):T.live&&!Object(b.isFiniteNumber)(this.initPTS[v.cc])?(this.log("Waiting for video PTS in continuity counter "+v.cc+" of live stream before loading audio fragment "+v.sn+" of level "+this.trackId),this.state=y.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,v,T,U)))},x.completeAudioSwitch=function(){var v=this.hls,T=this.media,U=this.trackId;T&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,v.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:U})},R}(y.default);g.default=_},"./src/controller/audio-track-controller.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/errors.ts"),C=A("./src/controller/base-playlist-controller.ts"),O=A("./src/types/loader.ts");function m(n,i){for(var r=0;r<i.length;r++){var c=i[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(n,c.key,c)}}function e(n,i,r){return i&&m(n.prototype,i),r&&m(n,r),n}function f(n,i){n.prototype=Object.create(i.prototype),n.prototype.constructor=n,a(n,i)}function a(n,i){return a=Object.setPrototypeOf||function(c,h){return c.__proto__=h,c},a(n,i)}var u=function(n){f(i,n);function i(c){var h;return h=n.call(this,c,"[audio-track-controller]")||this,h.tracks=[],h.groupId=null,h.tracksInGroup=[],h.trackId=-1,h.trackName="",h.selectDefaultTrack=!0,h.registerListeners(),h}var r=i.prototype;return r.registerListeners=function(){var h=this.hls;h.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.on(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),h.on(b.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){var h=this.hls;h.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.off(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),h.off(b.Events.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,n.prototype.destroy.call(this)},r.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},r.onManifestParsed=function(h,d){this.tracks=d.audioTracks||[]},r.onAudioTrackLoaded=function(h,d){var s=d.id,l=d.details,w=this.tracksInGroup[s];if(!w){this.warn("Invalid audio track id "+s);return}var E=w.details;w.details=d.details,this.log("audioTrack "+s+" loaded ["+l.startSN+"-"+l.endSN+"]"),s===this.trackId&&(this.retryCount=0,this.playlistLoaded(s,d,E))},r.onLevelLoading=function(h,d){this.switchLevel(d.level)},r.onLevelSwitching=function(h,d){this.switchLevel(d.level)},r.switchLevel=function(h){var d=this.hls.levels[h];if(!(d!=null&&d.audioGroupIds))return;var s=d.audioGroupIds[d.urlId];if(this.groupId!==s){this.groupId=s;var l=this.tracks.filter(function(E){return!s||E.groupId===s});this.selectDefaultTrack&&!l.some(function(E){return E.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=l;var w={audioTracks:l};this.log("Updating audio tracks, "+l.length+' track(s) found in "'+s+'" group-id'),this.hls.trigger(b.Events.AUDIO_TRACKS_UPDATED,w),this.selectInitialTrack()}},r.onError=function(h,d){if(n.prototype.onError.call(this,h,d),d.fatal||!d.context)return;d.context.type===O.PlaylistContextType.AUDIO_TRACK&&d.context.id===this.trackId&&d.context.groupId===this.groupId&&this.retryLoadingOrFail(d)},r.setAudioTrack=function(h){var d=this.tracksInGroup;if(h<0||h>=d.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var s=d[this.trackId];this.log("Now switching to audio-track index "+h);var l=d[h],w=l.id,E=l.groupId,_=E===void 0?"":E,P=l.name,R=l.type,x=l.url;if(this.trackId=h,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(b.Events.AUDIO_TRACK_SWITCHING,{id:w,groupId:_,name:P,type:R,url:x}),l.details&&!l.details.live)return;var S=this.switchParams(l.url,s==null?void 0:s.details);this.loadPlaylist(S)},r.selectInitialTrack=function(){var h=this.tracksInGroup;console.assert(h.length,"Initial audio track should be selected when tracks are known");var d=this.trackName,s=this.findTrackId(d)||this.findTrackId();s!==-1?this.setAudioTrack(s):(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}))},r.findTrackId=function(h){for(var d=this.tracksInGroup,s=0;s<d.length;s++){var l=d[s];if((!this.selectDefaultTrack||l.default)&&(!h||h===l.name))return l.id}return-1},r.loadPlaylist=function(h){var d=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(d)){var s=d.id,l=d.groupId,w=d.url;if(h)try{w=h.addDirectives(w)}catch(E){this.warn("Could not construct new URL with HLS Delivery Directives: "+E)}this.log("loading audio-track playlist for id: "+s),this.clearTimer(),this.hls.trigger(b.Events.AUDIO_TRACK_LOADING,{url:w,id:s,groupId:l,deliveryDirectives:h||null})}},e(i,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(h){this.selectDefaultTrack=!1,this.setAudioTrack(h)}}]),i}(C.default);g.default=u},"./src/controller/base-playlist-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return e});var b=A("./src/polyfills/number.ts"),y=A("./src/types/level.ts"),C=A("./src/controller/level-helper.ts"),O=A("./src/utils/logger.ts"),m=A("./src/errors.ts"),e=function(){function f(u,n){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=O.logger.log.bind(O.logger,n+":"),this.warn=O.logger.warn.bind(O.logger,n+":"),this.hls=u}var a=f.prototype;return a.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},a.onError=function(n,i){i.fatal&&i.type===m.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},a.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},a.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},a.stopLoad=function(){this.canLoad=!1,this.clearTimer()},a.switchParams=function(n,i){var r=i==null?void 0:i.renditionReports;if(r)for(var c=0;c<r.length;c++){var h=r[c],d=""+h.URI;if(d===n.substr(-d.length)){var s=parseInt(h["LAST-MSN"]),l=parseInt(h["LAST-PART"]);if(i&&this.hls.config.lowLatencyMode){var w=Math.min(i.age-i.partTarget,i.targetduration);l!==void 0&&w>i.partTarget&&(l+=1)}if(Object(b.isFiniteNumber)(s))return new y.HlsUrlParameters(s,Object(b.isFiniteNumber)(l)?l:void 0,y.HlsSkip.No)}}},a.loadPlaylist=function(n){},a.shouldLoadTrack=function(n){return this.canLoad&&n&&!!n.url&&(!n.details||n.details.live)},a.playlistLoaded=function(n,i,r){var c=this,h=i.details,d=i.stats,s=d.loading.end?Math.max(0,self.performance.now()-d.loading.end):0;if(h.advancedDateTime=Date.now()-s,h.live||r!=null&&r.live){if(h.reloaded(r),r&&this.log("live playlist "+n+" "+(h.advanced?"REFRESHED "+h.lastPartSn+"-"+h.lastPartIndex:"MISSED")),r&&h.fragments.length>0&&Object(C.mergeDetails)(r,h),!this.canLoad||!h.live)return;var l,w=void 0,E=void 0;if(h.canBlockReload&&h.endSN&&h.advanced){var _=this.hls.config.lowLatencyMode,P=h.lastPartSn,R=h.endSN,x=h.lastPartIndex,S=x!==-1,v=P===R,T=_?0:x;S?(w=v?R+1:P,E=v?T:x+1):w=R+1;var U=h.age,L=U+h.ageHeader,N=Math.min(L-h.partTarget,h.targetduration*1.5);if(N>0){if(r&&N>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+N+" with playlist age: "+h.age),N=0;else{var V=Math.floor(N/h.targetduration);if(w+=V,E!==void 0){var H=Math.round(N%h.targetduration/h.partTarget);E+=H}this.log("CDN Tune-in age: "+h.ageHeader+"s last advanced "+U.toFixed(2)+"s goal: "+N+" skip sn "+V+" to part "+E)}h.tuneInGoal=N}if(l=this.getDeliveryDirectives(h,i.deliveryDirectives,w,E),_||!v){this.loadPlaylist(l);return}}else l=this.getDeliveryDirectives(h,i.deliveryDirectives,w,E);var D=Object(C.computeReloadInterval)(h,d);w!==void 0&&h.canBlockReload&&(D-=h.partTarget||1),this.log("reload live playlist "+n+" in "+Math.round(D)+" ms"),this.timer=self.setTimeout(function(){return c.loadPlaylist(l)},D)}else this.clearTimer()},a.getDeliveryDirectives=function(n,i,r,c){var h=Object(y.getSkipValue)(n,r);return i!=null&&i.skip&&n.deltaUpdateFailed&&(r=i.msn,c=i.part,h=y.HlsSkip.No),new y.HlsUrlParameters(r,c,h)},a.retryLoadingOrFail=function(n){var i=this,r=this.hls.config,c=this.retryCount<r.levelLoadingMaxRetry;if(c){var h;if(this.retryCount++,n.details.indexOf("LoadTimeOut")>-1&&(h=n.context)!==null&&h!==void 0&&h.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+n.details+'"'),this.loadPlaylist();else{var d=Math.min(Math.pow(2,this.retryCount)*r.levelLoadingRetryDelay,r.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return i.loadPlaylist()},d),this.warn("retry playlist loading #"+this.retryCount+" in "+d+' ms after "'+n.details+'"')}}else this.warn('cannot recover from error "'+n.details+'"'),this.clearTimer(),n.fatal=!0;return c},f}()},"./src/controller/base-stream-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"State",function(){return R}),A.d(g,"default",function(){return x});var b=A("./src/polyfills/number.ts"),y=A("./src/task-loop.ts"),C=A("./src/controller/fragment-tracker.ts"),O=A("./src/utils/buffer-helper.ts"),m=A("./src/utils/logger.ts"),e=A("./src/events.ts"),f=A("./src/errors.ts"),a=A("./src/types/transmuxer.ts"),u=A("./src/utils/mp4-tools.ts"),n=A("./src/utils/discontinuities.ts"),i=A("./src/controller/fragment-finders.ts"),r=A("./src/controller/level-helper.ts"),c=A("./src/loader/fragment-loader.ts"),h=A("./src/crypt/decrypter.ts"),d=A("./src/utils/time-ranges.ts"),s=A("./src/types/loader.ts");function l(S,v){for(var T=0;T<v.length;T++){var U=v[T];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(S,U.key,U)}}function w(S,v,T){return v&&l(S.prototype,v),T&&l(S,T),S}function E(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function _(S,v){S.prototype=Object.create(v.prototype),S.prototype.constructor=S,P(S,v)}function P(S,v){return P=Object.setPrototypeOf||function(U,L){return U.__proto__=L,U},P(S,v)}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"},x=function(S){_(v,S);function v(U,L,N){var V;return V=S.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=m.logger.log.bind(m.logger,N+":"),V.warn=m.logger.warn.bind(m.logger,N+":"),V.hls=U,V.fragmentLoader=new c.default(U.config),V.fragmentTracker=L,V.config=U.config,V.decrypter=new h.default(U,U.config),U.on(e.Events.KEY_LOADED,V.onKeyLoaded,E(V)),V}var T=v.prototype;return T.doTick=function(){this.onTickEnd()},T.onTickEnd=function(){},T.startLoad=function(L){},T.stopLoad=function(){this.fragmentLoader.abort();var L=this.fragCurrent;L&&this.fragmentTracker.removeFragment(L),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=R.STOPPED},T._streamEnded=function(L,N){var V=this.fragCurrent,H=this.fragmentTracker;if(!N.live&&V&&V.sn===N.endSN&&!L.nextStart){var D=H.getState(V);return D===C.FragmentState.PARTIAL||D===C.FragmentState.OK}return!1},T.onMediaAttached=function(L,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 H=this.config;this.levels&&H.autoStartLoad&&this.state===R.STOPPED&&this.startLoad(H.startPosition)},T.onMediaDetaching=function(){var L=this.media;L!=null&&L.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),L&&(L.removeEventListener("seeking",this.onvseeking),L.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},T.onMediaSeeking=function(){var L=this.config,N=this.fragCurrent,V=this.media,H=this.mediaBuffer,D=this.state,W=V?V.currentTime:0,F=O.BufferHelper.bufferInfo(H||V,W,L.maxBufferHole);if(this.log("media seeking to "+(Object(b.isFiniteNumber)(W)?W.toFixed(3):W)+", state: "+D),D===R.ENDED)this.resetLoadingState();else if(N&&!F.len){var I=L.maxFragLookUpTolerance,K=N.start-I,ee=N.start+N.duration+I,he=W>ee;(W<K||he)&&(he&&N.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),N.loader.abort()),this.resetLoadingState())}V&&(this.lastCurrentTime=W),!this.loadedmetadata&&!F.len&&(this.nextLoadPosition=this.startPosition=W),this.tickImmediate()},T.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},T.onKeyLoaded=function(L,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)},T.onHandlerDestroying=function(){this.stopLoad(),S.prototype.onHandlerDestroying.call(this)},T.onHandlerDestroyed=function(){this.state=R.STOPPED,this.hls.off(e.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,S.prototype.onHandlerDestroyed.call(this)},T.loadKey=function(L,N){this.log("Loading key for "+L.sn+" of ["+N.startSN+"-"+N.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+L.level),this.state=R.KEY_LOADING,this.fragCurrent=L,this.hls.trigger(e.Events.KEY_LOADING,{frag:L})},T.loadFragment=function(L,N,V){this._loadFragForPlayback(L,N,V)},T._loadFragForPlayback=function(L,N,V){var H=this,D=function(F){if(H.fragContextChanged(L)){H.warn("Fragment "+L.sn+(F.part?" p: "+F.part.index:"")+" of level "+L.level+" was dropped during download."),H.fragmentTracker.removeFragment(L);return}L.stats.chunkCount++,H._handleFragmentLoadProgress(F)};this._doFragLoad(L,N,V,D).then(function(W){if(!W)return;H.fragLoadError=0;var F=H.state;if(H.fragContextChanged(L)){(F===R.FRAG_LOADING||F===R.BACKTRACKING||!H.fragCurrent&&F===R.PARSING)&&(H.fragmentTracker.removeFragment(L),H.state=R.IDLE);return}if("payload"in W&&(H.log("Loaded fragment "+L.sn+" of level "+L.level),H.hls.trigger(e.Events.FRAG_LOADED,W),H.state===R.BACKTRACKING)){H.fragmentTracker.backtrack(L,W),H.resetFragmentLoading(L);return}H._handleFragmentLoadComplete(W)}).catch(function(W){H.warn(W),H.resetFragmentLoading(L)})},T.flushMainBuffer=function(L,N,V){if(V===void 0&&(V=null),!(L-N))return;var H={startOffset:L,endOffset:N,type:V};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,H)},T._loadInitSegment=function(L){var N=this;this._doFragLoad(L).then(function(V){if(!V||N.fragContextChanged(L)||!N.levels)throw new Error("init load aborted");return V}).then(function(V){var H=N.hls,D=V.payload,W=L.decryptdata;if(D&&D.byteLength>0&&W&&W.key&&W.iv&&W.method==="AES-128"){var F=self.performance.now();return N.decrypter.webCryptoDecrypt(new Uint8Array(D),W.key.buffer,W.iv.buffer).then(function(I){var K=self.performance.now();return H.trigger(e.Events.FRAG_DECRYPTED,{frag:L,payload:I,stats:{tstart:F,tdecrypt:K}}),V.payload=I,V})}return V}).then(function(V){var H=N.fragCurrent,D=N.hls,W=N.levels;if(!W)throw new Error("init load aborted, missing levels");var F=W[L.level].details;console.assert(F,"Level details are defined when init segment is loaded");var I=L.stats;N.state=R.IDLE,N.fragLoadError=0,L.data=new Uint8Array(V.payload),I.parsing.start=I.buffering.start=self.performance.now(),I.parsing.end=I.buffering.end=self.performance.now(),V.frag===H&&D.trigger(e.Events.FRAG_BUFFERED,{stats:I,frag:H,part:null,id:L.type}),N.tick()}).catch(function(V){N.warn(V),N.resetFragmentLoading(L)})},T.fragContextChanged=function(L){var N=this.fragCurrent;return!L||!N||L.level!==N.level||L.sn!==N.sn||L.urlId!==N.urlId},T.fragBufferedComplete=function(L,N){var V=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+L.type+" sn: "+L.sn+(N?" part: "+N.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+L.level+" "+d.default.toString(O.BufferHelper.getBuffered(V))),this.state=R.IDLE,this.tick()},T._handleFragmentLoadComplete=function(L){var N=this.transmuxer;if(!N)return;var V=L.frag,H=L.part,D=L.partsLoaded,W=!D||D.length===0||D.some(function(I){return!I}),F=new a.ChunkMetadata(V.level,V.sn,V.stats.chunkCount+1,0,H?H.index:-1,!W);N.flush(F)},T._handleFragmentLoadProgress=function(L){},T._doFragLoad=function(L,N,V,H){var D=this;if(V===void 0&&(V=null),!this.levels)throw new Error("frag load aborted, missing levels");if(V=Math.max(L.start,V||0),this.config.lowLatencyMode&&N){var W=N.partList;if(W&&H){V>L.end&&N.fragmentHint&&(L=N.fragmentHint);var F=this.getNextPart(W,L,V);if(F>-1){var I=W[F];return this.log("Loading part sn: "+L.sn+" p: "+I.index+" cc: "+L.cc+" of playlist ["+N.startSN+"-"+N.endSN+"] parts [0-"+F+"-"+(W.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+L.level+", target: "+parseFloat(V.toFixed(3))),this.nextLoadPosition=I.start+I.duration,this.state=R.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:L,part:W[F],targetBufferTime:V}),this.doFragPartsLoad(L,W,F,H).catch(function(K){return D.handleFragLoadError(K)})}else if(!L.url||this.loadedEndOfParts(W,V))return Promise.resolve(null)}}return this.log("Loading fragment "+L.sn+" cc: "+L.cc+" "+(N?"of ["+N.startSN+"-"+N.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+L.level+", target: "+parseFloat(V.toFixed(3))),Object(b.isFiniteNumber)(L.sn)&&!this.bitrateTest&&(this.nextLoadPosition=L.start+L.duration),this.state=R.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:L,targetBufferTime:V}),this.fragmentLoader.load(L,H).catch(function(K){return D.handleFragLoadError(K)})},T.doFragPartsLoad=function(L,N,V,H){var D=this;return new Promise(function(W,F){var I=[],K=function ee(he){var de=N[he];D.fragmentLoader.loadPart(L,de,H).then(function(Se){I[de.index]=Se;var Te=Se.part;D.hls.trigger(e.Events.FRAG_LOADED,Se);var ce=N[he+1];if(ce&&ce.fragment===L)ee(he+1);else return W({frag:L,part:Te,partsLoaded:I})}).catch(F)};K(V)})},T.handleFragLoadError=function(L){var N=L.data;return N&&N.details===f.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(N.frag,N.part):this.hls.trigger(e.Events.ERROR,N),null},T._handleTransmuxerFlush=function(L){var N=this.getCurrentContext(L);if(!N||this.state!==R.PARSING){this.fragCurrent||(this.state=R.IDLE);return}var V=N.frag,H=N.part,D=N.level,W=self.performance.now();V.stats.parsing.end=W,H&&(H.stats.parsing.end=W),this.updateLevelTiming(V,H,D,L.partial)},T.getCurrentContext=function(L){var N=this.levels,V=L.level,H=L.sn,D=L.part;if(!N||!N[V])return this.warn("Levels object was unset while buffering fragment "+H+" of level "+V+". The current chunk will not be buffered."),null;var W=N[V],F=D>-1?Object(r.getPartWith)(W,H,D):null,I=F?F.fragment:Object(r.getFragmentWithSN)(W,H,this.fragCurrent);return I?{frag:I,part:F,level:W}:null},T.bufferFragmentData=function(L,N,V,H){if(!L||this.state!==R.PARSING)return;var D=L.data1,W=L.data2,F=D;if(D&&W&&(F=Object(u.appendUint8Array)(D,W)),!F||!F.length)return;var I={type:L.type,frag:N,part:V,chunkMeta:H,parent:N.type,data:F};this.hls.trigger(e.Events.BUFFER_APPENDING,I),L.dropped&&L.independent&&!V&&this.flushBufferGap(N)},T.flushBufferGap=function(L){var N=this.media;if(!N)return;if(!O.BufferHelper.isBuffered(N,N.currentTime)){this.flushMainBuffer(0,L.start);return}var V=N.currentTime,H=O.BufferHelper.bufferInfo(N,V,0),D=L.duration,W=Math.min(this.config.maxFragLookUpTolerance*2,D*.25),F=Math.max(Math.min(L.start-W,H.end-W),V+W);L.start-F>W&&this.flushMainBuffer(F,L.start)},T.getFwdBufferInfo=function(L,N){var V=this.config,H=this.getLoadPosition();if(!Object(b.isFiniteNumber)(H))return null;var D=O.BufferHelper.bufferInfo(L,H,V.maxBufferHole);if(D.len===0&&D.nextStart!==void 0){var W=this.fragmentTracker.getBufferedFrag(H,N);if(W&&D.nextStart<W.end)return O.BufferHelper.bufferInfo(L,H,Math.max(D.nextStart,V.maxBufferHole))}return D},T.getMaxBufferLength=function(L){var N=this.config,V;return L?V=Math.max(8*N.maxBufferSize/L,N.maxBufferLength):V=N.maxBufferLength,Math.min(V,N.maxMaxBufferLength)},T.reduceMaxBufferLength=function(L){var N=this.config,V=L||N.maxBufferLength;return N.maxMaxBufferLength>=V?(N.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+N.maxMaxBufferLength+"s"),!0):!1},T.getNextFragment=function(L,N){var V,H,D=N.fragments,W=D.length;if(!W)return null;var F=this.config,I=D[0].start,K;if(N.live){var ee=F.initialLiveManifestSize;if(W<ee)return this.warn("Not enough fragments to start playback (have: "+W+", need: "+ee+")"),null;!N.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(K=this.getInitialLiveFragment(N,D),this.startPosition=K?this.hls.liveSyncPosition||K.start:L)}else L<=I&&(K=D[0]);if(!K){var he=F.lowLatencyMode?N.partEnd:N.fragmentEnd;K=this.getFragmentAtPosition(L,he,N)}return(V=K)!==null&&V!==void 0&&V.initSegment&&!((H=K)!==null&&H!==void 0&&H.initSegment.data)&&!this.bitrateTest&&(K=K.initSegment),K},T.getNextPart=function(L,N,V){for(var H=-1,D=!1,W=!0,F=0,I=L.length;F<I;F++){var K=L[F];if(W=W&&!K.independent,H>-1&&V<K.start)break;var ee=K.loaded;!ee&&(D||K.independent||W)&&K.fragment===N&&(H=F),D=ee}return H},T.loadedEndOfParts=function(L,N){var V=L[L.length-1];return V&&N>V.start&&V.loaded},T.getInitialLiveFragment=function(L,N){var V=this.fragPrevious,H=null;if(V){if(L.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+V.programDateTime),H=Object(i.findFragmentByPDT)(N,V.endProgramDateTime,this.config.maxFragLookUpTolerance)),!H){var D=V.sn+1;if(D>=L.startSN&&D<=L.endSN){var W=N[D-L.startSN];V.cc===W.cc&&(H=W,this.log("Live playlist, switching playlist, load frag with next SN: "+H.sn))}H||(H=Object(i.findFragWithCC)(N,V.cc),H&&this.log("Live playlist, switching playlist, load frag with same CC: "+H.sn))}}else{var F=this.hls.liveSyncPosition;F!==null&&(H=this.getFragmentAtPosition(F,this.bitrateTest?L.fragmentEnd:L.edge,L))}return H},T.getFragmentAtPosition=function(L,N,V){var H=this.config,D=this.fragPrevious,W=V.fragments,F=V.endSN,I=V.fragmentHint,K=H.maxFragLookUpTolerance,ee=!!(H.lowLatencyMode&&V.partList&&I);ee&&I&&!this.bitrateTest&&(W=W.concat(I),F=I.sn);var he;if(L<N){var de=L>N-K?0:K;he=Object(i.findFragmentByPTS)(D,W,L,de)}else he=W[W.length-1];if(he){var Se=he.sn-V.startSN,Te=D&&he.level===D.level,ce=W[Se+1],be=this.fragmentTracker.getState(he);if(be===C.FragmentState.BACKTRACKED){he=null;for(var ye=Se;W[ye]&&this.fragmentTracker.getState(W[ye])===C.FragmentState.BACKTRACKED;)D?he=W[ye--]:he=W[--ye];he||(he=ce)}else D&&he.sn===D.sn&&!ee&&(Te&&(he.sn<F&&this.fragmentTracker.getState(ce)!==C.FragmentState.OK?(this.log("SN "+he.sn+" just loaded, load next one: "+ce.sn),he=ce):he=null))}return he},T.synchronizeToLiveEdge=function(L){var N=this.config,V=this.media;if(!V)return;var H=this.hls.liveSyncPosition,D=V.currentTime,W=L.fragments[0].start,F=L.edge,I=D>=W-N.maxFragLookUpTolerance&&D<=F;if(H!==null&&V.duration>H&&(D<H||!I)){var K=N.liveMaxLatencyDuration!==void 0?N.liveMaxLatencyDuration:N.liveMaxLatencyDurationCount*L.targetduration;(!I&&V.readyState<4||D<F-K)&&(this.loadedmetadata||(this.nextLoadPosition=H),V.readyState&&(this.warn("Playback: "+D.toFixed(3)+" is located too far from the end of live sliding playlist: "+F+", reset currentTime to : "+H.toFixed(3)),V.currentTime=H))}},T.alignPlaylists=function(L,N){var V=this.levels,H=this.levelLastLoaded,D=this.fragPrevious,W=H!==null?V[H]:null,F=L.fragments.length;if(!F)return this.warn("No fragments in live playlist"),0;var I=L.fragments[0].start,K=!N,ee=L.alignedSliding&&Object(b.isFiniteNumber)(I);if(K||!ee&&!I){Object(n.alignStream)(D,W,L);var he=L.fragments[0].start;return this.log("Live playlist sliding: "+he.toFixed(2)+" start-sn: "+(N?N.startSN:"na")+"->"+L.startSN+" prev-sn: "+(D?D.sn:"na")+" fragments: "+F),he}return I},T.waitForCdnTuneIn=function(L){var N=3;return L.live&&L.canBlockReload&&L.tuneInGoal>Math.max(L.partHoldBack,L.partTarget*N)},T.setStartPosition=function(L,N){var V=this.startPosition;if(V<N&&(V=-1),V===-1||this.lastCurrentTime===-1){var H=L.startTimeOffset;Object(b.isFiniteNumber)(H)?(V=N+H,H<0&&(V+=L.totalduration),V=Math.min(Math.max(N,V),N+L.totalduration),this.log("Start time offset "+H+" found in playlist, adjust startPosition to "+V),this.startPosition=V):L.live?V=this.hls.liveSyncPosition||N:this.startPosition=V=0,this.lastCurrentTime=V}this.nextLoadPosition=V},T.getLoadPosition=function(){var L=this.media,N=0;return this.loadedmetadata&&L?N=L.currentTime:this.nextLoadPosition&&(N=this.nextLoadPosition),N},T.handleFragLoadAborted=function(L,N){this.transmuxer&&L.sn!=="initSegment"&&L.stats.aborted&&(this.warn("Fragment "+L.sn+(N?" part"+N.index:"")+" of level "+L.level+" was aborted"),this.resetFragmentLoading(L))},T.resetFragmentLoading=function(L){(!this.fragCurrent||!this.fragContextChanged(L))&&(this.state=R.IDLE)},T.onFragmentOrKeyLoadError=function(L,N){if(N.fatal)return;var V=N.frag;if(!V||V.type!==L)return;var H=this.fragCurrent;console.assert(H&&V.sn===H.sn&&V.level===H.level&&V.urlId===H.urlId,"Frag load error must match current frag to retry");var D=this.config;if(this.fragLoadError+1<=D.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(V.level))return;var W=Math.min(Math.pow(2,this.fragLoadError)*D.fragLoadingRetryDelay,D.fragLoadingMaxRetryTimeout);this.warn("Fragment "+V.sn+" of "+L+" "+V.level+" failed to load, retrying in "+W+"ms"),this.retryDate=self.performance.now()+W,this.fragLoadError++,this.state=R.FRAG_LOADING_WAITING_RETRY}else N.levelRetry?(L===s.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=R.IDLE):(m.logger.error(N.details+" reaches max retry, redispatch as fatal ..."),N.fatal=!0,this.hls.stopLoad(),this.state=R.ERROR)},T.afterBufferFlushed=function(L,N,V){if(!L)return;var H=O.BufferHelper.getBuffered(L);this.fragmentTracker.detectEvictedFragments(N,H,V),this.state===R.ENDED&&this.resetLoadingState()},T.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=R.IDLE},T.resetLiveStartWhenNotLoaded=function(L){if(!this.loadedmetadata){this.startFragRequested=!1;var N=this.levels?this.levels[L].details:null;if(N!=null&&N.live)return this.startPosition=-1,this.setStartPosition(N,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},T.updateLevelTiming=function(L,N,V,H){var D=this,W=V.details;console.assert(!!W,"level.details must be defined");var F=Object.keys(L.elementaryStreams).reduce(function(I,K){var ee=L.elementaryStreams[K];if(ee){var he=ee.endPTS-ee.startPTS;if(he<=0)return D.warn("Could not parse fragment "+L.sn+" "+K+" duration reliably ("+he+") resetting transmuxer to fallback to playlist timing"),D.resetTransmuxer(),I||!1;var de=H?0:Object(r.updateFragPTSDTS)(W,L,ee.startPTS,ee.endPTS,ee.startDTS,ee.endDTS);return D.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:W,level:V,drift:de,type:K,frag:L,start:ee.startPTS,end:ee.endPTS}),!0}return I},!1);F?(this.state=R.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:L,part:N})):this.resetLoadingState()},T.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},w(v,[{key:"state",get:function(){return this._state},set:function(L){var N=this._state;N!==L&&(this._state=L,this.log(N+"->"+L))}}]),v}(y.default)},"./src/controller/buffer-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return i});var b=A("./src/polyfills/number.ts"),y=A("./src/events.ts"),C=A("./src/utils/logger.ts"),O=A("./src/errors.ts"),m=A("./src/utils/buffer-helper.ts"),e=A("./src/utils/mediasource-helper.ts"),f=A("./src/loader/fragment.ts"),a=A("./src/controller/buffer-operation-queue.ts"),u=Object(e.getMediaSource)(),n=/([ha]vc.)(?:\.[^.,]+)+/,i=function(){function r(h){var d=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 s=d.hls,l=d.media,w=d.mediaSource;C.logger.log("[buffer-controller]: Media source opened"),l&&(d.updateMediaElementDuration(),s.trigger(y.Events.MEDIA_ATTACHED,{media:l})),w&&w.removeEventListener("sourceopen",d._onMediaSourceOpen),d.checkPendingTracks()},this._onMediaSourceClose=function(){C.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){C.logger.log("[buffer-controller]: Media source ended")},this.hls=h,this._initSourceBuffer(),this.registerListeners()}var c=r.prototype;return c.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},c.destroy=function(){this.unregisterListeners(),this.details=null},c.registerListeners=function(){var d=this.hls;d.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(y.Events.BUFFER_RESET,this.onBufferReset,this),d.on(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.on(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.on(y.Events.BUFFER_EOS,this.onBufferEos,this),d.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.on(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.on(y.Events.FRAG_PARSED,this.onFragParsed,this),d.on(y.Events.FRAG_CHANGED,this.onFragChanged,this)},c.unregisterListeners=function(){var d=this.hls;d.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(y.Events.BUFFER_RESET,this.onBufferReset,this),d.off(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.off(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.off(y.Events.BUFFER_EOS,this.onBufferEos,this),d.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.off(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.off(y.Events.FRAG_PARSED,this.onFragParsed,this),d.off(y.Events.FRAG_CHANGED,this.onFragChanged,this)},c._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new a.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},c.onManifestParsed=function(d,s){var l=2;(s.audio&&!s.video||!s.altAudio)&&(l=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=l,this.details=null,C.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},c.onMediaAttaching=function(d,s){var l=this.media=s.media;if(l&&u){var w=this.mediaSource=new u;w.addEventListener("sourceopen",this._onMediaSourceOpen),w.addEventListener("sourceended",this._onMediaSourceEnded),w.addEventListener("sourceclose",this._onMediaSourceClose),l.src=self.URL.createObjectURL(w),this._objectUrl=l.src}},c.onMediaDetaching=function(){var d=this.media,s=this.mediaSource,l=this._objectUrl;if(s){if(C.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(w){C.logger.warn("[buffer-controller]: onMediaDetaching: "+w.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),d&&(l&&self.URL.revokeObjectURL(l),d.src===l?(d.removeAttribute("src"),d.load()):C.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)},c.onBufferReset=function(){var d=this;this.getSourceBufferTypes().forEach(function(s){var l=d.sourceBuffer[s];try{l&&(d.removeBufferListeners(s),d.mediaSource&&d.mediaSource.removeSourceBuffer(l),d.sourceBuffer[s]=void 0)}catch(w){C.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",w)}}),this._initSourceBuffer()},c.onBufferCodecs=function(d,s){var l=this,w=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(E){if(w){var _=l.tracks[E];if(_&&typeof _.buffer.changeType=="function"){var P=s[E],R=P.codec,x=P.levelCodec,S=P.container,v=(_.levelCodec||_.codec).replace(n,"$1"),T=(x||R).replace(n,"$1");if(v!==T){var U=S+";codecs="+(x||R);l.appendChangeType(E,U)}}}else l.pendingTracks[E]=s[E]}),w)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},c.appendChangeType=function(d,s){var l=this,w=this.operationQueue,E={execute:function(){var P=l.sourceBuffer[d];P&&(C.logger.log("[buffer-controller]: changing "+d+" sourceBuffer type to "+s),P.changeType(s)),w.shiftAndExecuteNext(d)},onStart:function(){},onComplete:function(){},onError:function(P){C.logger.warn("[buffer-controller]: Failed to change "+d+" SourceBuffer type",P)}};w.append(E,d)},c.onBufferAppending=function(d,s){var l=this,w=this.hls,E=this.operationQueue,_=this.tracks,P=s.data,R=s.type,x=s.frag,S=s.part,v=s.chunkMeta,T=v.buffering[R],U=self.performance.now();T.start=U;var L=x.stats.buffering,N=S?S.stats.buffering:null;L.start===0&&(L.start=U),N&&N.start===0&&(N.start=U);var V=_.audio,H=R==="audio"&&v.id===1&&(V==null?void 0:V.container)==="audio/mpeg",D={execute:function(){if(T.executeStart=self.performance.now(),H){var F=l.sourceBuffer[R];if(F){var I=x.start-F.timestampOffset;Math.abs(I)>=.1&&(C.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+x.start+" (delta: "+I+") sn: "+x.sn+")"),F.timestampOffset=x.start)}}l.appendExecutor(P,R)},onStart:function(){},onComplete:function(){var F=self.performance.now();T.executeEnd=T.end=F,L.first===0&&(L.first=F),N&&N.first===0&&(N.first=F);var I=l.sourceBuffer,K={};for(var ee in I)K[ee]=m.BufferHelper.getBuffered(I[ee]);l.appendError=0,l.hls.trigger(y.Events.BUFFER_APPENDED,{type:R,frag:x,part:S,chunkMeta:v,parent:x.type,timeRanges:K})},onError:function(F){C.logger.error("[buffer-controller]: Error encountered while trying to append to the "+R+" SourceBuffer",F);var I={type:O.ErrorTypes.MEDIA_ERROR,parent:x.type,details:O.ErrorDetails.BUFFER_APPEND_ERROR,err:F,fatal:!1};F.code===DOMException.QUOTA_EXCEEDED_ERR?I.details=O.ErrorDetails.BUFFER_FULL_ERROR:(l.appendError++,I.details=O.ErrorDetails.BUFFER_APPEND_ERROR,l.appendError>w.config.appendErrorMaxRetry&&(C.logger.error("[buffer-controller]: Failed "+w.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),I.fatal=!0)),w.trigger(y.Events.ERROR,I)}};E.append(D,R)},c.onBufferFlushing=function(d,s){var l=this,w=this.operationQueue,E=function(P){return{execute:l.removeExecutor.bind(l,P,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){l.hls.trigger(y.Events.BUFFER_FLUSHED,{type:P})},onError:function(x){C.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",x)}}};s.type?w.append(E(s.type),s.type):this.getSourceBufferTypes().forEach(function(_){w.append(E(_),_)})},c.onFragParsed=function(d,s){var l=this,w=s.frag,E=s.part,_=[],P=E?E.elementaryStreams:w.elementaryStreams;P[f.ElementaryStreamTypes.AUDIOVIDEO]?_.push("audiovideo"):(P[f.ElementaryStreamTypes.AUDIO]&&_.push("audio"),P[f.ElementaryStreamTypes.VIDEO]&&_.push("video"));var R=function(){var S=self.performance.now();w.stats.buffering.end=S,E&&(E.stats.buffering.end=S);var v=E?E.stats:w.stats;l.hls.trigger(y.Events.FRAG_BUFFERED,{frag:w,part:E,stats:v,id:w.type})};_.length===0&&C.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+w.type+" level: "+w.level+" sn: "+w.sn),this.blockBuffers(R,_)},c.onFragChanged=function(d,s){this.flushBackBuffer()},c.onBufferEos=function(d,s){var l=this,w=this.getSourceBufferTypes().reduce(function(E,_){var P=l.sourceBuffer[_];return(!s.type||s.type===_)&&(P&&!P.ended&&(P.ended=!0,C.logger.log("[buffer-controller]: "+_+" sourceBuffer now EOS"))),E&&!!(!P||P.ended)},!0);w&&this.blockBuffers(function(){var E=l.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},c.onLevelUpdated=function(d,s){var l=s.details;if(!l.fragments.length)return;this.details=l,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},c.flushBackBuffer=function(){var d=this.hls,s=this.details,l=this.media,w=this.sourceBuffer;if(!l||s===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var _=s.live&&d.config.liveBackBufferLength!==null?d.config.liveBackBufferLength:d.config.backBufferLength;if(!Object(b.isFiniteNumber)(_)||_<0)return;var P=l.currentTime,R=s.levelTargetDuration,x=Math.max(_,R),S=Math.floor(P/R)*R-x;E.forEach(function(v){var T=w[v];if(T){var U=m.BufferHelper.getBuffered(T);U.length>0&&S>U.start(0)&&(d.trigger(y.Events.BACK_BUFFER_REACHED,{bufferEnd:S}),s.live&&d.trigger(y.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:S}),d.trigger(y.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:S,type:v}))}})},c.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var d=this.details,s=this.hls,l=this.media,w=this.mediaSource,E=d.fragments[0].start+d.totalduration,_=l.duration,P=Object(b.isFiniteNumber)(w.duration)?w.duration:0;d.live&&s.config.liveDurationInfinity?(C.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),w.duration=Infinity,this.updateSeekableRange(d)):(E>P&&E>_||!Object(b.isFiniteNumber)(_))&&(C.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),w.duration=E)},c.updateSeekableRange=function(d){var s=this.mediaSource,l=d.fragments,w=l.length;if(w&&d.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var E=Math.max(0,l[0].start),_=Math.max(E,E+d.totalduration);s.setLiveSeekableRange(E,_)}},c.checkPendingTracks=function(){var d=this.bufferCodecEventsExpected,s=this.operationQueue,l=this.pendingTracks,w=Object.keys(l).length;if(w&&!d||w===2){this.createSourceBuffers(l),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(y.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(_){s.executeNext(_)})}},c.createSourceBuffers=function(d){var s=this.sourceBuffer,l=this.mediaSource;if(!l)throw Error("createSourceBuffers called when mediaSource was null");var w=0;for(var E in d)if(!s[E]){var _=d[E];if(!_)throw Error("source buffer exists for track "+E+", however track does not");var P=_.levelCodec||_.codec,R=_.container+";codecs="+P;C.logger.log("[buffer-controller]: creating sourceBuffer("+R+")");try{var x=s[E]=l.addSourceBuffer(R),S=E;this.addBufferListener(S,"updatestart",this._onSBUpdateStart),this.addBufferListener(S,"updateend",this._onSBUpdateEnd),this.addBufferListener(S,"error",this._onSBUpdateError),this.tracks[E]={buffer:x,codec:P,container:_.container,levelCodec:_.levelCodec,id:_.id},w++}catch(v){C.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+v.message),this.hls.trigger(y.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,mimeType:R})}}w&&this.hls.trigger(y.Events.BUFFER_CREATED,{tracks:this.tracks})},c._onSBUpdateStart=function(d){var s=this.operationQueue,l=s.current(d);l.onStart()},c._onSBUpdateEnd=function(d){var s=this.operationQueue,l=s.current(d);l.onComplete(),s.shiftAndExecuteNext(d)},c._onSBUpdateError=function(d,s){C.logger.error("[buffer-controller]: "+d+" SourceBuffer error",s),this.hls.trigger(y.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var l=this.operationQueue.current(d);l&&l.onError(s)},c.removeExecutor=function(d,s,l){var w=this.media,E=this.mediaSource,_=this.operationQueue,P=this.sourceBuffer,R=P[d];if(!w||!E||!R){C.logger.warn("[buffer-controller]: Attempting to remove from the "+d+" SourceBuffer, but it does not exist"),_.shiftAndExecuteNext(d);return}var x=Object(b.isFiniteNumber)(w.duration)?w.duration:Infinity,S=Object(b.isFiniteNumber)(E.duration)?E.duration:Infinity,v=Math.max(0,s),T=Math.min(l,x,S);T>v?(C.logger.log("[buffer-controller]: Removing ["+v+","+T+"] from the "+d+" SourceBuffer"),console.assert(!R.updating,d+" sourceBuffer must not be updating"),R.remove(v,T)):_.shiftAndExecuteNext(d)},c.appendExecutor=function(d,s){var l=this.operationQueue,w=this.sourceBuffer,E=w[s];if(!E){C.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),l.shiftAndExecuteNext(s);return}E.ended=!1,console.assert(!E.updating,s+" sourceBuffer must not be updating"),E.appendBuffer(d)},c.blockBuffers=function(d,s){var l=this;if(s===void 0&&(s=this.getSourceBufferTypes()),!s.length){C.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(d);return}var w=this.operationQueue,E=s.map(function(_){return w.appendBlocker(_)});Promise.all(E).then(function(){d(),s.forEach(function(_){var P=l.sourceBuffer[_];(!P||!P.updating)&&w.shiftAndExecuteNext(_)})})},c.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},c.addBufferListener=function(d,s,l){var w=this.sourceBuffer[d];if(!w)return;var E=l.bind(this,d);this.listeners[d].push({event:s,listener:E}),w.addEventListener(s,E)},c.removeBufferListeners=function(d){var s=this.sourceBuffer[d];if(!s)return;this.listeners[d].forEach(function(l){s.removeEventListener(l.event,l.listener)})},r}()},"./src/controller/buffer-operation-queue.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return y});var b=A("./src/utils/logger.ts"),y=function(){function C(m){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=m}var O=C.prototype;return O.append=function(e,f){var a=this.queues[f];a.push(e),a.length===1&&this.buffers[f]&&this.executeNext(f)},O.insertAbort=function(e,f){var a=this.queues[f];a.unshift(e),this.executeNext(f)},O.appendBlocker=function(e){var f,a=new Promise(function(n){f=n}),u={execute:f,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(u,e),a},O.executeNext=function(e){var f=this.buffers,a=this.queues,u=f[e],n=a[e];if(n.length){var i=n[0];try{i.execute()}catch(r){b.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),i.onError(r),(!u||!u.updating)&&(n.shift(),this.executeNext(e))}}},O.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},O.current=function(e){return this.queues[e][0]},C}()},"./src/controller/cap-level-controller.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/events.ts");function y(m,e){for(var f=0;f<e.length;f++){var a=e[f];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(m,a.key,a)}}function C(m,e,f){return e&&y(m.prototype,e),f&&y(m,f),m}var O=function(){function m(f){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=f,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=m.prototype;return e.setStreamController=function(a){this.streamController=a},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var a=this.hls;a.on(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var a=this.hls;a.off(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(a,u){m.isLevelAllowed(u.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(u.droppedLevel)},e.onMediaAttaching=function(a,u){this.media=u.media instanceof HTMLVideoElement?u.media:null},e.onManifestParsed=function(a,u){var n=this.hls;this.restrictedLevels=[],this.firstLevel=u.firstLevel,n.config.capLevelToPlayerSize&&u.video&&this.startCapping()},e.onBufferCodecs=function(a,u){var n=this.hls;n.config.capLevelToPlayerSize&&u.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var a=this.hls.levels;if(a.length){var u=this.hls;u.autoLevelCapping=this.getMaxLevel(a.length-1),u.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=u.autoLevelCapping}}},e.getMaxLevel=function(a){var u=this,n=this.hls.levels;if(!n.length)return-1;var i=n.filter(function(r,c){return m.isLevelAllowed(c,u.restrictedLevels)&&c<=a});return this.clientRect=null,m.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},e.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()},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var a=this.media,u={width:0,height:0};if(a){var n=a.getBoundingClientRect();u.width=n.width,u.height=n.height,!u.width&&!u.height&&(u.width=n.right-n.left||a.width||0,u.height=n.bottom-n.top||a.height||0)}return this.clientRect=u,u},m.isLevelAllowed=function(a,u){return u===void 0&&(u=[]),u.indexOf(a)===-1},m.getMaxLevelByMediaSize=function(a,u,n){if(!a||!a.length)return-1;for(var i=function(s,l){return l?s.width!==l.width||s.height!==l.height:!0},r=a.length-1,c=0;c<a.length;c+=1){var h=a[c];if((h.width>=u||h.height>=n)&&i(h,a[c+1])){r=c;break}}return r},C(m,[{key:"mediaWidth",get:function(){return this.getDimensions().width*m.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*m.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(u){}return a}}]),m}();g.default=O},"./src/controller/cmcd-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return i});var b=A("./src/events.ts"),y=A("./src/types/cmcd.ts"),C=A("./src/utils/buffer-helper.ts"),O=A("./src/utils/logger.ts");function m(r,c){for(var h=0;h<c.length;h++){var d=c[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(r,d.key,d)}}function e(r,c,h){return c&&m(r.prototype,c),h&&m(r,h),r}function f(r,c){var h=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(h)return(h=h.call(r)).next.bind(h);if(Array.isArray(r)||(h=a(r))||c&&r&&typeof r.length=="number"){h&&(r=h);var d=0;return function(){return d>=r.length?{done:!0}:{done:!1,value:r[d++]}}}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 a(r,c){if(!r)return;if(typeof r=="string")return u(r,c);var h=Object.prototype.toString.call(r).slice(8,-1);if(h==="Object"&&r.constructor&&(h=r.constructor.name),h==="Map"||h==="Set")return Array.from(r);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return u(r,c)}function u(r,c){(c==null||c>r.length)&&(c=r.length);for(var h=0,d=new Array(c);h<c;h++)d[h]=r[h];return d}function n(){return n=Object.assign||function(r){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(r[d]=h[d])}return r},n.apply(this,arguments)}var i=function(){function r(h){var d=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(){d.initialized&&(d.starved=!0),d.buffering=!0},this.onPlaying=function(){d.initialized||(d.initialized=!0),d.buffering=!1},this.applyPlaylistData=function(w){try{d.apply(w,{ot:y.CMCDObjectType.MANIFEST,su:!d.initialized})}catch(E){O.logger.warn("Could not generate manifest CMCD data.",E)}},this.applyFragmentData=function(w){try{var E=w.frag,_=d.hls.levels[E.level],P=d.getObjectType(E),R={d:E.duration*1e3,ot:P};(P===y.CMCDObjectType.VIDEO||P===y.CMCDObjectType.AUDIO||P==y.CMCDObjectType.MUXED)&&(R.br=_.bitrate/1e3,R.tb=d.getTopBandwidth(P),R.bl=d.getBufferLength(P)),d.apply(w,R)}catch(x){O.logger.warn("Could not generate segment CMCD data.",x)}},this.hls=h;var s=this.config=h.config,l=s.cmcd;l!=null&&(s.pLoader=this.createPlaylistLoader(),s.fLoader=this.createFragmentLoader(),this.sid=l.sessionId||r.uuid(),this.cid=l.contentId,this.useHeaders=l.useHeaders===!0,this.registerListeners())}var c=r.prototype;return c.registerListeners=function(){var d=this.hls;d.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.on(b.Events.BUFFER_CREATED,this.onBufferCreated,this)},c.unregisterListeners=function(){var d=this.hls;d.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.off(b.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},c.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},c.onMediaAttached=function(d,s){this.media=s.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},c.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},c.onBufferCreated=function(d,s){var l,w;this.audioBuffer=(l=s.tracks.audio)===null||l===void 0?void 0:l.buffer,this.videoBuffer=(w=s.tracks.video)===null||w===void 0?void 0:w.buffer},c.createData=function(){var d;return{v:y.CMCDVersion,sf:y.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(d=this.media)===null||d===void 0?void 0:d.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},c.apply=function(d,s){s===void 0&&(s={}),n(s,this.createData());var l=s.ot===y.CMCDObjectType.INIT||s.ot===y.CMCDObjectType.VIDEO||s.ot===y.CMCDObjectType.MUXED;if(this.starved&&l&&(s.bs=!0,s.su=!0,this.starved=!1),s.su==null&&(s.su=this.buffering),this.useHeaders){var w=r.toHeaders(s);if(!Object.keys(w).length)return;d.headers||(d.headers={}),n(d.headers,w)}else{var E=r.toQuery(s);if(!E)return;d.url=r.appendQueryToUri(d.url,E)}},c.getObjectType=function(d){var s=d.type;return s==="subtitle"?y.CMCDObjectType.TIMED_TEXT:d.sn==="initSegment"?y.CMCDObjectType.INIT:s==="audio"?y.CMCDObjectType.AUDIO:s==="main"?this.hls.audioTracks.length?y.CMCDObjectType.VIDEO:y.CMCDObjectType.MUXED:void 0},c.getTopBandwidth=function(d){for(var s=0,l=d===y.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,w=f(l),E;!(E=w()).done;){var _=E.value;_.bitrate>s&&(s=_.bitrate)}return s>0?s:NaN},c.getBufferLength=function(d){var s=this.hls.media,l=d===y.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!l||!s)return NaN;var w=C.BufferHelper.bufferInfo(l,s.currentTime,this.config.maxBufferHole);return w.len*1e3},c.createPlaylistLoader=function(){var d=this.config.pLoader,s=this.applyPlaylistData,l=d||this.config.loader;return function(){function w(_){this.loader=void 0,this.loader=new l(_)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(P,R,x){s(P),this.loader.load(P,R,x)},e(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},c.createFragmentLoader=function(){var d=this.config.fLoader,s=this.applyFragmentData,l=d||this.config.loader;return function(){function w(_){this.loader=void 0,this.loader=new l(_)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(P,R,x){s(P),this.loader.load(P,R,x)},e(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},r.uuid=function(){var d=URL.createObjectURL(new Blob),s=d.toString();return URL.revokeObjectURL(d),s.substr(s.lastIndexOf("/")+1)},r.serialize=function(d){for(var s=[],l=function(H){return!Number.isNaN(H)&&H!=null&&H!==""&&H!==!1},w=function(H){return Math.round(H)},E=function(H){return w(H/100)*100},_=function(H){return encodeURIComponent(H)},P={br:w,d:w,bl:E,dl:E,mtp:E,nor:_,rtp:E,tb:w},R=Object.keys(d||{}).sort(),x=f(R),S;!(S=x()).done;){var v=S.value,T=d[v];if(!l(T))continue;if(v==="v"&&T===1)continue;if(v=="pr"&&T===1)continue;var U=P[v];U&&(T=U(T));var L=typeof T,N=void 0;v==="ot"||v==="sf"||v==="st"?N=v+"="+T:L==="boolean"?N=v:L==="number"?N=v+"="+T:N=v+"="+JSON.stringify(T),s.push(N)}return s.join(",")},r.toHeaders=function(d){for(var s=Object.keys(d),l={},w=["Object","Request","Session","Status"],E=[{},{},{},{}],_={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=s;P<R.length;P++){var x=R[P],S=_[x]!=null?_[x]:1;E[S][x]=d[x]}for(var v=0;v<E.length;v++){var T=r.serialize(E[v]);T&&(l["CMCD-"+w[v]]=T)}return l},r.toQuery=function(d){return"CMCD="+encodeURIComponent(r.serialize(d))},r.appendQueryToUri=function(d,s){if(!s)return d;var l=d.includes("?")?"&":"?";return""+d+l+s},r}()},"./src/controller/eme-controller.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/errors.ts"),C=A("./src/utils/logger.ts"),O=A("./src/utils/mediakeys-helper.ts");function m(i,r){for(var c=0;c<r.length;c++){var h=r[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function e(i,r,c){return r&&m(i.prototype,r),c&&m(i,c),i}var f=3,a=function(r,c,h){var d={audioCapabilities:[],videoCapabilities:[]};return r.forEach(function(s){d.audioCapabilities.push({contentType:'audio/mp4; codecs="'+s+'"',robustness:h.audioRobustness||""})}),c.forEach(function(s){d.videoCapabilities.push({contentType:'video/mp4; codecs="'+s+'"',robustness:h.videoRobustness||""})}),[d]},u=function(r,c,h,d){switch(r){case O.KeySystems.WIDEVINE:return a(c,h,d);default:throw new Error("Unknown key-system: "+r)}},n=function(){function i(c){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=c,this._config=c.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 r=i.prototype;return r.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},r._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)},r._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)},r.getLicenseServerUrl=function(h){switch(h){case O.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+h+'"')},r._attemptKeySystemAccess=function(h,d,s){var l=this,w=u(h,d,s,this._drmSystemOptions);C.logger.log("Requesting encrypted media key-system access");var E=this.requestMediaKeySystemAccess(h,w);this.mediaKeysPromise=E.then(function(_){return l._onMediaKeySystemAccessObtained(h,_)}),E.catch(function(_){C.logger.error('Failed to obtain key-system "'+h+'" access:',_)})},r._onMediaKeySystemAccessObtained=function(h,d){var s=this;C.logger.log('Access for key-system "'+h+'" obtained');var l={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:d,mediaKeySystemDomain:h};this._mediaKeysList.push(l);var w=Promise.resolve().then(function(){return d.createMediaKeys()}).then(function(E){return l.mediaKeys=E,C.logger.log('Media-keys created for key-system "'+h+'"'),s._onMediaKeysCreated(),E});return w.catch(function(E){C.logger.error("Failed to create media-keys:",E)}),w},r._onMediaKeysCreated=function(){var h=this;this._mediaKeysList.forEach(function(d){d.mediaKeysSession||(d.mediaKeysSession=d.mediaKeys.createSession(),h._onNewMediaKeySession(d.mediaKeysSession))})},r._onNewMediaKeySession=function(h){var d=this;C.logger.log("New key-system session "+h.sessionId),h.addEventListener("message",function(s){d._onKeySessionMessage(h,s.message)},!1)},r._onKeySessionMessage=function(h,d){C.logger.log("Got EME message event, creating license request"),this._requestLicense(d,function(s){C.logger.log("Received license data (length: "+(s&&s.byteLength)+"), updating key-session"),h.update(s)})},r.onMediaEncrypted=function(h){var d=this;if(C.logger.log('Media is encrypted using "'+h.initDataType+'" init data type'),!this.mediaKeysPromise){C.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 s=function(w){if(!d._media)return;d._attemptSetMediaKeys(w),d._generateRequestWithPreferredKeySession(h.initDataType,h.initData)};this.mediaKeysPromise.then(s).catch(s)},r._attemptSetMediaKeys=function(h){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var d=this._mediaKeysList[0];if(!d||!d.mediaKeys){C.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}C.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(d.mediaKeys),this._hasSetMediaKeys=!0}},r._generateRequestWithPreferredKeySession=function(h,d){var s=this,l=this._mediaKeysList[0];if(!l){C.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(l.mediaKeysSessionInitialized){C.logger.warn("Key-Session already initialized but requested again");return}var w=l.mediaKeysSession;if(!w){C.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(!d){C.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}C.logger.log('Generating key-session request for "'+h+'" init data type'),l.mediaKeysSessionInitialized=!0,w.generateRequest(h,d).then(function(){C.logger.debug("Key-session generation succeeded")}).catch(function(E){C.logger.error("Error generating key-session request:",E),s.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},r._createLicenseXhr=function(h,d,s){var l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,l,h,d,s);var w=this._licenseXhrSetup;if(w)try{w.call(this.hls,l,h),w=void 0}catch(E){C.logger.error(E)}try{l.readyState||l.open("POST",h,!0),w&&w.call(this.hls,l,h)}catch(E){throw new Error("issue setting up KeySystem license XHR "+E)}return l},r._onLicenseRequestReadyStageChange=function(h,d,s,l){switch(h.readyState){case 4:if(h.status===200){this._requestLicenseFailureCount=0,C.logger.log("License request succeeded");var w=h.response,E=this._licenseResponseCallback;if(E)try{w=E.call(this.hls,h,d)}catch(P){C.logger.error(P)}l(w)}else{if(C.logger.error("License Request XHR failed ("+d+"). Status: "+h.status+" ("+h.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>f){this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var _=f-this._requestLicenseFailureCount+1;C.logger.warn("Retrying license request, "+_+" attempts left"),this._requestLicense(s,l)}break}},r._generateLicenseRequestChallenge=function(h,d){switch(h.mediaKeySystemDomain){case O.KeySystems.WIDEVINE:return d}throw new Error("unsupported key-system: "+h.mediaKeySystemDomain)},r._requestLicense=function(h,d){C.logger.log("Requesting content license for key-system");var s=this._mediaKeysList[0];if(!s){C.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 l=this.getLicenseServerUrl(s.mediaKeySystemDomain),w=this._createLicenseXhr(l,h,d);C.logger.log("Sending license request to URL: "+l);var E=this._generateLicenseRequestChallenge(s,h);w.send(E)}catch(_){C.logger.error("Failure requesting DRM license: "+_),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},r.onMediaAttached=function(h,d){if(!this._emeEnabled)return;var s=d.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},r.onMediaDetached=function(){var h=this._media,d=this._mediaKeysList;if(!h)return;h.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(d.map(function(s){if(s.mediaKeysSession)return s.mediaKeysSession.close().catch(function(){})})).then(function(){return h.setMediaKeys(null)}).catch(function(){})},r.onManifestParsed=function(h,d){if(!this._emeEnabled)return;var s=d.levels.map(function(w){return w.audioCodec}).filter(function(w){return!!w}),l=d.levels.map(function(w){return w.videoCodec}).filter(function(w){return!!w});this._attemptKeySystemAccess(O.KeySystems.WIDEVINE,s,l)},e(i,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),i}();g.default=n},"./src/controller/fps-controller.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/utils/logger.ts"),C=function(){function O(e){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=e,this.registerListeners()}var m=O.prototype;return m.setStreamController=function(f){this.streamController=f},m.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},m.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching)},m.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},m.onMediaAttaching=function(f,a){var u=this.hls.config;if(u.capLevelOnFPSDrop){var n=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=n,n&&typeof n.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),u.fpsDroppedMonitoringPeriod)}},m.checkFPS=function(f,a,u){var n=performance.now();if(a){if(this.lastTime){var i=n-this.lastTime,r=u-this.lastDroppedFrames,c=a-this.lastDecodedFrames,h=1e3*r/i,d=this.hls;if(d.trigger(b.Events.FPS_DROP,{currentDropped:r,currentDecoded:c,totalDroppedFrames:u}),h>0&&r>d.config.fpsDroppedMonitoringThreshold*c){var s=d.currentLevel;y.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+s),s>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=s)&&(s=s-1,d.trigger(b.Events.FPS_DROP_LEVEL_CAPPING,{level:s,droppedLevel:d.currentLevel}),d.autoLevelCapping=s,this.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=u,this.lastDecodedFrames=a}},m.checkFPSInterval=function(){var f=this.media;if(f)if(this.isVideoPlaybackQualityAvailable){var a=f.getVideoPlaybackQuality();this.checkFPS(f,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(f,f.webkitDecodedFrameCount,f.webkitDroppedFrameCount)},O}();g.default=C},"./src/controller/fragment-finders.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"findFragmentByPDT",function(){return C}),A.d(g,"findFragmentByPTS",function(){return O}),A.d(g,"fragmentWithinToleranceTest",function(){return m}),A.d(g,"pdtWithinToleranceTest",function(){return e}),A.d(g,"findFragWithCC",function(){return f});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/binary-search.ts");function C(a,u,n){if(u===null||!Array.isArray(a)||!a.length||!Object(b.isFiniteNumber)(u))return null;var i=a[0].programDateTime;if(u<(i||0))return null;var r=a[a.length-1].endProgramDateTime;if(u>=(r||0))return null;n=n||0;for(var c=0;c<a.length;++c){var h=a[c];if(e(u,n,h))return h}return null}function O(a,u,n,i){n===void 0&&(n=0),i===void 0&&(i=0);var r=null;if(a?r=u[a.sn-u[0].sn+1]||null:n===0&&u[0].start===0&&(r=u[0]),r&&m(n,i,r)===0)return r;var c=y.default.search(u,m.bind(null,n,i));return c||r}function m(a,u,n){a===void 0&&(a=0),u===void 0&&(u=0);var i=Math.min(u,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=a?1:n.start-i>a&&n.start?-1:0}function e(a,u,n){var i=Math.min(u,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3,r=n.endProgramDateTime||0;return r-i>a}function f(a,u){return y.default.search(a,function(n){return n.cc<u?1:n.cc>u?-1:0})}},"./src/controller/fragment-tracker.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"FragmentState",function(){return C}),A.d(g,"FragmentTracker",function(){return O});var b=A("./src/events.ts"),y=A("./src/types/loader.ts"),C;(function(f){f.NOT_LOADED="NOT_LOADED",f.BACKTRACKED="BACKTRACKED",f.APPENDING="APPENDING",f.PARTIAL="PARTIAL",f.OK="OK"})(C||(C={}));var O=function(){function f(u){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=u,this._registerListeners()}var a=f.prototype;return a._registerListeners=function(){var n=this.hls;n.on(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),n.on(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),n.on(b.Events.FRAG_LOADED,this.onFragLoaded,this)},a._unregisterListeners=function(){var n=this.hls;n.off(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),n.off(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),n.off(b.Events.FRAG_LOADED,this.onFragLoaded,this)},a.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},a.getAppendedFrag=function(n,i){if(i===y.PlaylistLevelType.MAIN){var r=this.activeFragment,c=this.activeParts;if(!r)return null;if(c)for(var h=c.length;h--;){var d=c[h],s=d?d.end:r.appendedPTS;if(d.start<=n&&s!==void 0&&n<=s)return h>9&&(this.activeParts=c.slice(h-9)),d}else if(r.start<=n&&r.appendedPTS!==void 0&&n<=r.appendedPTS)return r}return this.getBufferedFrag(n,i)},a.getBufferedFrag=function(n,i){for(var r=this.fragments,c=Object.keys(r),h=c.length;h--;){var d=r[c[h]];if((d==null?void 0:d.body.type)===i&&d.buffered){var s=d.body;if(s.start<=n&&n<=s.end)return s}}return null},a.detectEvictedFragments=function(n,i,r){var c=this;Object.keys(this.fragments).forEach(function(h){var d=c.fragments[h];if(!d)return;if(!d.buffered){d.body.type===r&&c.removeFragment(d.body);return}var s=d.range[n];if(!s)return;s.time.some(function(l){var w=!c.isTimeBuffered(l.startPTS,l.endPTS,i);return w&&c.removeFragment(d.body),w})})},a.detectPartialFragments=function(n){var i=this,r=this.timeRanges,c=n.frag,h=n.part;if(!r||c.sn==="initSegment")return;var d=e(c),s=this.fragments[d];if(!s)return;Object.keys(r).forEach(function(l){var w=c.elementaryStreams[l];if(!w)return;var E=r[l],_=h!==null||w.partial===!0;s.range[l]=i.getBufferedTimes(c,h,_,E)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},a.fragBuffered=function(n){var i=e(n),r=this.fragments[i];r&&(r.backtrack=r.loaded=null,r.buffered=!0)},a.getBufferedTimes=function(n,i,r,c){for(var h={time:[],partial:r},d=i?i.start:n.start,s=i?i.end:n.end,l=n.minEndPTS||s,w=n.maxStartPTS||d,E=0;E<c.length;E++){var _=c.start(E)-this.bufferPadding,P=c.end(E)+this.bufferPadding;if(w>=_&&l<=P){h.time.push({startPTS:Math.max(d,c.start(E)),endPTS:Math.min(s,c.end(E))});break}else if(d<P&&s>_)h.partial=!0,h.time.push({startPTS:Math.max(d,c.start(E)),endPTS:Math.min(s,c.end(E))});else if(s<=_)break}return h},a.getPartialFragment=function(n){var i=null,r,c,h,d=0,s=this.bufferPadding,l=this.fragments;return Object.keys(l).forEach(function(w){var E=l[w];if(!E)return;m(E)&&(c=E.body.start-s,h=E.body.end+s,n>=c&&n<=h&&(r=Math.min(n-c,h-n),d<=r&&(i=E.body,d=r)))}),i},a.getState=function(n){var i=e(n),r=this.fragments[i];return r?r.buffered?m(r)?C.PARTIAL:C.OK:r.backtrack?C.BACKTRACKED:C.APPENDING:C.NOT_LOADED},a.backtrack=function(n,i){var r=e(n),c=this.fragments[r];if(!c||c.backtrack)return null;var h=c.backtrack=i||c.loaded;return c.loaded=null,h},a.getBacktrackData=function(n){var i=e(n),r=this.fragments[i];if(r){var c,h=r.backtrack;if(h!=null&&(c=h.payload)!==null&&c!==void 0&&c.byteLength)return h;this.removeFragment(n)}return null},a.isTimeBuffered=function(n,i,r){for(var c,h,d=0;d<r.length;d++){if(c=r.start(d)-this.bufferPadding,h=r.end(d)+this.bufferPadding,n>=c&&i<=h)return!0;if(i<=c)return!1}return!1},a.onFragLoaded=function(n,i){var r=i.frag,c=i.part;if(r.sn==="initSegment"||r.bitrateTest||c)return;var h=e(r);this.fragments[h]={body:r,loaded:i,backtrack:null,buffered:!1,range:Object.create(null)}},a.onBufferAppended=function(n,i){var r=this,c=i.frag,h=i.part,d=i.timeRanges;if(c.type===y.PlaylistLevelType.MAIN)if(this.activeFragment=c,h){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(h)}else this.activeParts=null;this.timeRanges=d,Object.keys(d).forEach(function(l){var w=d[l];if(r.detectEvictedFragments(l,w),!h)for(var E=0;E<w.length;E++)c.appendedPTS=Math.max(w.end(E),c.appendedPTS||0)})},a.onFragBuffered=function(n,i){this.detectPartialFragments(i)},a.hasFragment=function(n){var i=e(n);return!!this.fragments[i]},a.removeFragmentsInRange=function(n,i,r){var c=this;Object.keys(this.fragments).forEach(function(h){var d=c.fragments[h];if(!d)return;if(d.buffered){var s=d.body;s.type===r&&s.start<i&&s.end>n&&c.removeFragment(s)}})},a.removeFragment=function(n){var i=e(n);n.stats.loaded=0,n.clearElementaryStreamInfo(),delete this.fragments[i]},a.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},f}();function m(f){var a,u;return f.buffered&&(((a=f.range.video)===null||a===void 0?void 0:a.partial)||((u=f.range.audio)===null||u===void 0?void 0:u.partial))}function e(f){return f.type+"_"+f.level+"_"+f.urlId+"_"+f.sn}},"./src/controller/gap-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"STALL_MINIMUM_DURATION_MS",function(){return m}),A.d(g,"MAX_START_GAP_JUMP",function(){return e}),A.d(g,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return f}),A.d(g,"SKIP_BUFFER_RANGE_START",function(){return a}),A.d(g,"default",function(){return u});var b=A("./src/utils/buffer-helper.ts"),y=A("./src/errors.ts"),C=A("./src/events.ts"),O=A("./src/utils/logger.ts"),m=250,e=2,f=.1,a=.05,u=function(){function n(r,c,h,d){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=r,this.media=c,this.fragmentTracker=h,this.hls=d}var i=n.prototype;return i.destroy=function(){this.hls=this.fragmentTracker=this.media=null},i.poll=function(c){var h=this.config,d=this.media,s=this.stalled,l=d.currentTime,w=d.seeking,E=this.seeking&&!w,_=!this.seeking&&w;if(this.seeking=w,l!==c){if(this.moved=!0,s!==null){if(this.stallReported){var P=self.performance.now()-s;O.logger.warn("playback not stuck anymore @"+l+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((_||E)&&(this.stalled=null),d.paused||d.ended||d.playbackRate===0||!b.BufferHelper.getBuffered(d).length)return;var R=b.BufferHelper.bufferInfo(d,l,0),x=R.len>0,S=R.nextStart||0;if(!x&&!S)return;if(w){var v=R.len>e,T=!S||S-l>e&&!this.fragmentTracker.getPartialFragment(l);if(v||T)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var U,L=Math.max(S,R.start||0)-l,N=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,V=N==null||((U=N.details)===null||U===void 0)?void 0:U.live,H=V?N.details.targetduration*2:e;if(L>0&&L<=H){this._trySkipBufferHole(null);return}}var D=self.performance.now();if(s===null){this.stalled=D;return}var W=D-s;!w&&W>=m&&this._reportStall(R.len);var F=b.BufferHelper.bufferInfo(d,l,h.maxBufferHole);this._tryFixBufferStall(F,W)},i._tryFixBufferStall=function(c,h){var d=this.config,s=this.fragmentTracker,l=this.media,w=l.currentTime,E=s.getPartialFragment(w);if(E){var _=this._trySkipBufferHole(E);if(_)return}c.len>d.maxBufferHole&&h>d.highBufferWatchdogPeriod*1e3&&(O.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},i._reportStall=function(c){var h=this.hls,d=this.media,s=this.stallReported;s||(this.stallReported=!0,O.logger.warn("Playback stalling at @"+d.currentTime+" due to low buffer (buffer="+c+")"),h.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:c}))},i._trySkipBufferHole=function(c){for(var h=this.config,d=this.hls,s=this.media,l=s.currentTime,w=0,E=b.BufferHelper.getBuffered(s),_=0;_<E.length;_++){var P=E.start(_);if(l+h.maxBufferHole>=w&&l<P){var R=Math.max(P+a,s.currentTime+f);return O.logger.warn("skipping hole, adjusting currentTime from "+l+" to "+R),this.moved=!0,this.stalled=null,s.currentTime=R,c&&d.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+l+" to "+R,frag:c}),R}w=E.end(_)}return 0},i._tryNudgeBuffer=function(){var c=this.config,h=this.hls,d=this.media,s=d.currentTime,l=(this.nudgeRetry||0)+1;if(this.nudgeRetry=l,l<c.nudgeMaxRetry){var w=s+l*c.nudgeOffset;O.logger.warn("Nudging 'currentTime' from "+s+" to "+w),d.currentTime=w,h.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else O.logger.error("Playhead still not moving while enough data buffered @"+s+" after "+c.nudgeMaxRetry+" nudges"),h.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},n}()},"./src/controller/id3-track-controller.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/utils/texttrack-utils.ts"),C=A("./src/demux/id3.ts"),O=.25,m=function(){function e(a){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=a,this._registerListeners()}var f=e.prototype;return f.destroy=function(){this._unregisterListeners()},f._registerListeners=function(){var u=this.hls;u.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.on(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),u.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},f._unregisterListeners=function(){var u=this.hls;u.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.off(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),u.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},f.onMediaAttached=function(u,n){this.media=n.media},f.onMediaDetaching=function(){if(!this.id3Track)return;Object(y.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},f.getID3Track=function(u){if(!this.media)return;for(var n=0;n<u.length;n++){var i=u[n];if(i.kind==="metadata"&&i.label==="id3")return Object(y.sendAddTrackEvent)(i,this.media),i}return this.media.addTextTrack("metadata","id3")},f.onFragParsingMetadata=function(u,n){if(!this.media)return;var i=n.frag,r=n.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var c=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,h=0;h<r.length;h++){var d=C.getID3Frames(r[h].data);if(d){var s=r[h].pts,l=h<r.length-1?r[h+1].pts:i.end,w=l-s;w<=0&&(l=s+O);for(var E=0;E<d.length;E++){var _=d[E];if(!C.isTimeStampFrame(_)){var P=new c(s,l,"");P.value=_,this.id3Track.addCue(P)}}}}},f.onBufferFlushing=function(u,n){var i=n.startOffset,r=n.endOffset,c=n.type;if(!c||c==="audio"){var h=this.id3Track;h&&Object(y.removeCuesInRange)(h,i,r)}},e}();g.default=m},"./src/controller/latency-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return e});var b=A("./src/errors.ts"),y=A("./src/events.ts"),C=A("./src/utils/logger.ts");function O(f,a){for(var u=0;u<a.length;u++){var n=a[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(f,n.key,n)}}function m(f,a,u){return a&&O(f.prototype,a),u&&O(f,u),f}var e=function(){function f(u){var n=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 n.timeupdate()},this.hls=u,this.config=u.config,this.registerListeners()}var a=f.prototype;return a.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},a.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)},a.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)},a.onMediaAttached=function(n,i){this.media=i.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},a.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},a.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},a.onLevelUpdated=function(n,i){var r=i.details;this.levelDetails=r,r.advanced&&this.timeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},a.onError=function(n,i){if(i.details!==b.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,C.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},a.timeupdate=function(){var n=this.media,i=this.levelDetails;if(!n||!i)return;this.currentTime=n.currentTime;var r=this.computeLatency();if(r===null)return;this._latency=r;var c=this.config,h=c.lowLatencyMode,d=c.maxLiveSyncPlaybackRate;if(!h||d===1)return;var s=this.targetLatency;if(s===null)return;var l=r-s,w=Math.min(this.maxLatency,s+i.targetduration),E=l<w;if(i.live&&E&&l>.05&&this.forwardBufferLength>1){var _=Math.min(2,Math.max(1,d)),P=Math.round(2/(1+Math.exp(-.75*l-this.edgeStalled))*20)/20;n.playbackRate=Math.min(_,Math.max(1,P))}else n.playbackRate!==1&&n.playbackRate!==0&&(n.playbackRate=1)},a.estimateLiveEdge=function(){var n=this.levelDetails;return n===null?null:n.edge+n.age},a.computeLatency=function(){var n=this.estimateLiveEdge();return n===null?null:n-this.currentTime},m(f,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var n=this.config,i=this.levelDetails;return n.liveMaxLatencyDuration!==void 0?n.liveMaxLatencyDuration:i?n.liveMaxLatencyDurationCount*i.targetduration:0}},{key:"targetLatency",get:function(){var n=this.levelDetails;if(n===null)return null;var i=n.holdBack,r=n.partHoldBack,c=n.targetduration,h=this.config,d=h.liveSyncDuration,s=h.liveSyncDurationCount,l=h.lowLatencyMode,w=this.hls.userConfig,E=l&&r||i;(w.liveSyncDuration||w.liveSyncDurationCount||E===0)&&(E=d!==void 0?d:s*c);var _=c,P=1;return E+Math.min(this.stallCount*P,_)}},{key:"liveSyncPosition",get:function(){var n=this.estimateLiveEdge(),i=this.targetLatency,r=this.levelDetails;if(n===null||i===null||r===null)return null;var c=r.edge,h=n-i-this.edgeStalled,d=c-r.totalduration,s=c-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(d,h),s)}},{key:"drift",get:function(){var n=this.levelDetails;return n===null?1:n.drift}},{key:"edgeStalled",get:function(){var n=this.levelDetails;if(n===null)return 0;var i=(this.config.lowLatencyMode&&n.partTarget||n.targetduration)*3;return Math.max(n.age-i,0)}},{key:"forwardBufferLength",get:function(){var n=this.media,i=this.levelDetails;if(!n||!i)return 0;var r=n.buffered.length;return r?n.buffered.end(r-1):i.edge-this.currentTime}}]),f}()},"./src/controller/level-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return h});var b=A("./src/types/level.ts"),y=A("./src/events.ts"),C=A("./src/errors.ts"),O=A("./src/utils/codecs.ts"),m=A("./src/controller/level-helper.ts"),e=A("./src/controller/base-playlist-controller.ts"),f=A("./src/types/loader.ts");function a(){return a=Object.assign||function(d){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var w in l)Object.prototype.hasOwnProperty.call(l,w)&&(d[w]=l[w])}return d},a.apply(this,arguments)}function u(d,s){for(var l=0;l<s.length;l++){var w=s[l];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(d,w.key,w)}}function n(d,s,l){return s&&u(d.prototype,s),l&&u(d,l),d}function i(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,r(d,s)}function r(d,s){return r=Object.setPrototypeOf||function(w,E){return w.__proto__=E,w},r(d,s)}var c=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),h=function(d){i(s,d);function s(w){var E;return E=d.call(this,w,"[level-controller]")||this,E._levels=[],E._firstLevel=-1,E._startLevel=void 0,E.currentLevelIndex=-1,E.manualLevelIndex=-1,E.onParsedComplete=void 0,E._registerListeners(),E}var l=s.prototype;return l._registerListeners=function(){var E=this.hls;E.on(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),E.on(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.on(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),E.on(y.Events.ERROR,this.onError,this)},l._unregisterListeners=function(){var E=this.hls;E.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),E.off(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.off(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),E.off(y.Events.ERROR,this.onError,this)},l.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,d.prototype.destroy.call(this)},l.startLoad=function(){var E=this._levels;E.forEach(function(_){_.loadError=0}),d.prototype.startLoad.call(this)},l.onManifestLoaded=function(E,_){var P=[],R=[],x=[],S,v={},T,U=!1,L=!1,N=!1;if(_.levels.forEach(function(W){var F=W.attrs;U=U||!!(W.width&&W.height),L=L||!!W.videoCodec,N=N||!!W.audioCodec,c&&W.audioCodec&&W.audioCodec.indexOf("mp4a.40.34")!==-1&&(W.audioCodec=void 0);var I=W.bitrate+"-"+W.attrs.RESOLUTION+"-"+W.attrs.CODECS;T=v[I],T?T.url.push(W.url):(T=new b.Level(W),v[I]=T,P.push(T)),F&&(F.AUDIO&&Object(m.addGroupId)(T,"audio",F.AUDIO),F.SUBTITLES&&Object(m.addGroupId)(T,"text",F.SUBTITLES))}),(U||L)&&N&&(P=P.filter(function(W){var F=W.videoCodec,I=W.width,K=W.height;return!!F||!!(I&&K)})),P=P.filter(function(W){var F=W.audioCodec,I=W.videoCodec;return(!F||Object(O.isCodecSupportedInMp4)(F,"audio"))&&(!I||Object(O.isCodecSupportedInMp4)(I,"video"))}),_.audioTracks&&(R=_.audioTracks.filter(function(W){return!W.audioCodec||Object(O.isCodecSupportedInMp4)(W.audioCodec,"audio")}),Object(m.assignTrackIdsByGroup)(R)),_.subtitles&&(x=_.subtitles,Object(m.assignTrackIdsByGroup)(x)),P.length>0){S=P[0].bitrate,P.sort(function(W,F){return W.bitrate-F.bitrate}),this._levels=P;for(var V=0;V<P.length;V++)if(P[V].bitrate===S){this._firstLevel=V,this.log("manifest loaded, "+P.length+" level(s) found, first bitrate: "+S);break}var H=N&&!L,D={levels:P,audioTracks:R,subtitleTracks:x,firstLevel:this._firstLevel,stats:_.stats,audio:N,video:L,altAudio:!H&&R.some(function(W){return!!W.url})};this.hls.trigger(y.Events.MANIFEST_PARSED,D),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(y.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:_.url,reason:"no level with compatible codecs found in manifest"})},l.onError=function(E,_){if(d.prototype.onError.call(this,E,_),_.fatal)return;var P=_.context,R=this._levels[this.currentLevelIndex];if(P&&(P.type===f.PlaylistContextType.AUDIO_TRACK&&R.audioGroupIds&&P.groupId===R.audioGroupIds[R.urlId]||P.type===f.PlaylistContextType.SUBTITLE_TRACK&&R.textGroupIds&&P.groupId===R.textGroupIds[R.urlId])){this.redundantFailover(this.currentLevelIndex);return}var x=!1,S=!0,v;switch(_.details){case C.ErrorDetails.FRAG_LOAD_ERROR:case C.ErrorDetails.FRAG_LOAD_TIMEOUT:case C.ErrorDetails.KEY_LOAD_ERROR:case C.ErrorDetails.KEY_LOAD_TIMEOUT:if(_.frag){var T=this._levels[_.frag.level];T?(T.fragmentError++,T.fragmentError>this.hls.config.fragLoadingMaxRetry&&(v=_.frag.level)):v=_.frag.level}break;case C.ErrorDetails.LEVEL_LOAD_ERROR:case C.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(S=!1),v=P.level),x=!0;break;case C.ErrorDetails.REMUX_ALLOC_ERROR:v=_.level,x=!0;break}v!==void 0&&this.recoverLevel(_,v,x,S)},l.recoverLevel=function(E,_,P,R){var x=E.details,S=this._levels[_];if(S.loadError++,P){var v=this.retryLoadingOrFail(E);if(v)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var T=S.url.length;if(T>1&&S.loadError<T)E.levelRetry=!0,this.redundantFailover(_);else if(this.manualLevelIndex===-1){var U=_===0?this._levels.length-1:_-1;this.currentLevelIndex!==U&&this._levels[U].loadError===0&&(this.warn(x+": switch to "+U),E.levelRetry=!0,this.hls.nextAutoLevel=U)}}},l.redundantFailover=function(E){var _=this._levels[E],P=_.url.length;if(P>1){var R=(_.urlId+1)%P;this.warn("Switching to redundant URL-id "+R),this._levels.forEach(function(x){x.urlId=R}),this.level=E}},l.onFragLoaded=function(E,_){var P=_.frag;if(P!==void 0&&P.type===f.PlaylistLevelType.MAIN){var R=this._levels[P.level];R!==void 0&&(R.fragmentError=0,R.loadError=0)}},l.onLevelLoaded=function(E,_){var P,R=_.level,x=_.details,S=this._levels[R];if(!S){var v;this.warn("Invalid level index "+R),(v=_.deliveryDirectives)!==null&&v!==void 0&&v.skip&&(x.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(S.fragmentError===0&&(S.loadError=0,this.retryCount=0),this.playlistLoaded(R,_,S.details)):(P=_.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(x.deltaUpdateFailed=!0)},l.onAudioTrackSwitched=function(E,_){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var R=-1,x=this.hls.audioTracks[_.id].groupId,S=0;S<P.audioGroupIds.length;S++)if(P.audioGroupIds[S]===x){R=S;break}R!==P.urlId&&(P.urlId=R,this.startLoad())}},l.loadPlaylist=function(E){var _=this.currentLevelIndex,P=this._levels[_];if(this.canLoad&&P&&P.url.length>0){var R=P.urlId,x=P.url[R];if(E)try{x=E.addDirectives(x)}catch(S){this.warn("Could not construct new URL with HLS Delivery Directives: "+S)}this.log("Attempt loading level index "+_+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+R+" "+x),this.clearTimer(),this.hls.trigger(y.Events.LEVEL_LOADING,{url:x,level:_,id:R,deliveryDirectives:E||null})}},l.removeLevel=function(E,_){var P=function(S,v){return v!==_},R=this._levels.filter(function(x,S){return S!==E?!0:x.url.length>1&&_!==void 0?(x.url=x.url.filter(P),x.audioGroupIds&&(x.audioGroupIds=x.audioGroupIds.filter(P)),x.textGroupIds&&(x.textGroupIds=x.textGroupIds.filter(P)),x.urlId=0,!0):!1}).map(function(x,S){var v=x.details;return v!=null&&v.fragments&&v.fragments.forEach(function(T){T.level=S}),x});this._levels=R,this.hls.trigger(y.Events.LEVELS_UPDATED,{levels:R})},n(s,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var _,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===E&&(_=P[E])!==null&&_!==void 0&&_.details)return;if(E<0||E>=P.length){var R=E<0;if(this.hls.trigger(y.Events.ERROR,{type:C.ErrorTypes.OTHER_ERROR,details:C.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:R,reason:"invalid level idx"}),R)return;E=Math.min(E,P.length-1)}this.clearTimer();var x=this.currentLevelIndex,S=P[x],v=P[E];this.log("switching to level "+E+" from "+x),this.currentLevelIndex=E;var T=a({},v,{level:E,maxBitrate:v.maxBitrate,uri:v.uri,urlId:v.urlId});delete T._urlId,this.hls.trigger(y.Events.LEVEL_SWITCHING,T);var U=v.details;if(!U||U.live){var L=this.switchParams(v.uri,S==null?void 0:S.details);this.loadPlaylist(L)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),s}(e.default)},"./src/controller/level-helper.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"addGroupId",function(){return C}),A.d(g,"assignTrackIdsByGroup",function(){return O}),A.d(g,"updatePTS",function(){return m}),A.d(g,"updateFragPTSDTS",function(){return f}),A.d(g,"mergeDetails",function(){return a}),A.d(g,"mapPartIntersection",function(){return u}),A.d(g,"mapFragmentIntersection",function(){return n}),A.d(g,"adjustSliding",function(){return i}),A.d(g,"addSliding",function(){return r}),A.d(g,"computeReloadInterval",function(){return c}),A.d(g,"getFragmentWithSN",function(){return h}),A.d(g,"getPartWith",function(){return d});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/logger.ts");function C(s,l,w){switch(l){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(w);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(w);break}}function O(s){var l={};s.forEach(function(w){var E=w.groupId||"";w.id=l[E]=l[E]||0,l[E]++})}function m(s,l,w){var E=s[l],_=s[w];e(E,_)}function e(s,l){var w=l.startPTS;if(Object(b.isFiniteNumber)(w)){var E=0,_;l.sn>s.sn?(E=w-s.start,_=s):(E=s.start-w,_=l),_.duration!==E&&(_.duration=E)}else if(l.sn>s.sn){var P=s.cc===l.cc;P&&s.minEndPTS?l.start=s.start+(s.minEndPTS-s.start):l.start=s.start+s.duration}else l.start=Math.max(s.start-l.duration,0)}function f(s,l,w,E,_,P){var R=E-w;R<=0&&(y.logger.warn("Fragment should have a positive duration",l),E=w+l.duration,P=_+l.duration);var x=w,S=E,v=l.startPTS,T=l.endPTS;if(Object(b.isFiniteNumber)(v)){var U=Math.abs(v-w);Object(b.isFiniteNumber)(l.deltaPTS)?l.deltaPTS=Math.max(U,l.deltaPTS):l.deltaPTS=U,x=Math.max(w,v),w=Math.min(w,v),_=Math.min(_,l.startDTS),S=Math.min(E,T),E=Math.max(E,T),P=Math.max(P,l.endDTS)}l.duration=E-w;var L=w-l.start;l.appendedPTS=E,l.start=l.startPTS=w,l.maxStartPTS=x,l.startDTS=_,l.endPTS=E,l.minEndPTS=S,l.endDTS=P;var N=l.sn;if(!s||N<s.startSN||N>s.endSN)return 0;var V,H=N-s.startSN,D=s.fragments;for(D[H]=l,V=H;V>0;V--)e(D[V],D[V-1]);for(V=H;V<D.length-1;V++)e(D[V],D[V+1]);return s.fragmentHint&&e(D[D.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,L}function a(s,l){for(var w=null,E=s.fragments,_=E.length-1;_>=0;_--){var P=E[_].initSegment;if(P){w=P;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var R=0,x;if(n(s,l,function(V,H){V.relurl&&(R=V.cc-H.cc),Object(b.isFiniteNumber)(V.startPTS)&&Object(b.isFiniteNumber)(V.endPTS)&&(H.start=H.startPTS=V.startPTS,H.startDTS=V.startDTS,H.appendedPTS=V.appendedPTS,H.maxStartPTS=V.maxStartPTS,H.endPTS=V.endPTS,H.endDTS=V.endDTS,H.minEndPTS=V.minEndPTS,H.duration=V.endPTS-V.startPTS,H.duration&&(x=H),l.PTSKnown=l.alignedSliding=!0),H.elementaryStreams=V.elementaryStreams,H.loader=V.loader,H.stats=V.stats,H.urlId=V.urlId,V.initSegment&&(H.initSegment=V.initSegment,w=V.initSegment)}),w){var S=l.fragmentHint?l.fragments.concat(l.fragmentHint):l.fragments;S.forEach(function(V){var H;(!V.initSegment||V.initSegment.relurl===((H=w)===null||H===void 0?void 0:H.relurl))&&(V.initSegment=w)})}if(l.skippedSegments&&(l.deltaUpdateFailed=l.fragments.some(function(V){return!V}),l.deltaUpdateFailed)){y.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var v=l.skippedSegments;v--;)l.fragments.shift();l.startSN=l.fragments[0].sn,l.startCC=l.fragments[0].cc}var T=l.fragments;if(R){y.logger.warn("discontinuity sliding from playlist, take drift into account");for(var U=0;U<T.length;U++)T[U].cc+=R}l.skippedSegments&&(l.startCC=l.fragments[0].cc),u(s.partList,l.partList,function(V,H){H.elementaryStreams=V.elementaryStreams,H.stats=V.stats}),x?f(l,x,x.startPTS,x.endPTS,x.startDTS,x.endDTS):i(s,l),T.length&&(l.totalduration=l.edge-T[0].start),l.driftStartTime=s.driftStartTime,l.driftStart=s.driftStart;var L=l.advancedDateTime;if(l.advanced&&L){var N=l.edge;l.driftStart||(l.driftStartTime=L,l.driftStart=N),l.driftEndTime=L,l.driftEnd=N}else l.driftEndTime=s.driftEndTime,l.driftEnd=s.driftEnd,l.advancedDateTime=s.advancedDateTime}function u(s,l,w){if(s&&l)for(var E=0,_=0,P=s.length;_<=P;_++){var R=s[_],x=l[_+E];R&&x&&R.index===x.index&&R.fragment.sn===x.fragment.sn?w(R,x):E--}}function n(s,l,w){for(var E=l.skippedSegments,_=Math.max(s.startSN,l.startSN)-l.startSN,P=(s.fragmentHint?1:0)+(E?l.endSN:Math.min(s.endSN,l.endSN))-l.startSN,R=l.startSN-s.startSN,x=l.fragmentHint?l.fragments.concat(l.fragmentHint):l.fragments,S=s.fragmentHint?s.fragments.concat(s.fragmentHint):s.fragments,v=_;v<=P;v++){var T=S[R+v],U=x[v];E&&!U&&v<E&&(U=l.fragments[v]=T),T&&U&&w(T,U)}}function i(s,l){var w=l.startSN+l.skippedSegments-s.startSN,E=s.fragments;if(w<0||w>=E.length)return;r(l,E[w].start)}function r(s,l){if(l){for(var w=s.fragments,E=s.skippedSegments;E<w.length;E++)w[E].start+=l;s.fragmentHint&&(s.fragmentHint.start+=l)}}function c(s,l){var w=1e3*s.levelTargetDuration,E=w/2,_=s.age,P=_>0&&_<w*3,R=l.loading.end-l.loading.start,x,S=s.availabilityDelay;if(s.updated===!1)if(P){var v=333*s.misses;x=Math.max(Math.min(E,R*2),v),s.availabilityDelay=(s.availabilityDelay||0)+x}else x=E;else P?(S=Math.min(S||w/2,_),s.availabilityDelay=S,x=S+w-_):x=w-R;return Math.round(x)}function h(s,l,w){if(!s||!s.details)return null;var E=s.details,_=E.fragments[l-E.startSN];return _||(_=E.fragmentHint,_&&_.sn===l?_:l<E.startSN&&w&&w.sn===l?w:null)}function d(s,l,w){if(!s||!s.details)return null;var E=s.details.partList;if(E)for(var _=E.length;_--;){var P=E[_];if(P.index===w&&P.fragment.sn===l)return P}return null}},"./src/controller/stream-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return E});var b=A("./src/polyfills/number.ts"),y=A("./src/controller/base-stream-controller.ts"),C=A("./src/is-supported.ts"),O=A("./src/events.ts"),m=A("./src/utils/buffer-helper.ts"),e=A("./src/controller/fragment-tracker.ts"),f=A("./src/types/loader.ts"),a=A("./src/loader/fragment.ts"),u=A("./src/demux/transmuxer-interface.ts"),n=A("./src/types/transmuxer.ts"),i=A("./src/controller/gap-controller.ts"),r=A("./src/errors.ts"),c=A("./src/utils/logger.ts");function h(_,P){for(var R=0;R<P.length;R++){var x=P[R];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}function d(_,P,R){return P&&h(_.prototype,P),R&&h(_,R),_}function s(_,P){_.prototype=Object.create(P.prototype),_.prototype.constructor=_,l(_,P)}function l(_,P){return l=Object.setPrototypeOf||function(x,S){return x.__proto__=S,x},l(_,P)}var w=100,E=function(_){s(P,_);function P(x,S){var v;return v=_.call(this,x,S,"[stream-controller]")||this,v.audioCodecSwap=!1,v.gapController=null,v.level=-1,v._forceStartLoad=!1,v.altAudio=!1,v.audioOnly=!1,v.fragPlaying=null,v.onvplaying=null,v.onvseeked=null,v.fragLastKbps=0,v.stalled=!1,v.couldBacktrack=!1,v.audioCodecSwitch=!1,v.videoBuffer=null,v._registerListeners(),v}var R=P.prototype;return R._registerListeners=function(){var S=this.hls;S.on(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.on(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.on(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.on(O.Events.LEVEL_LOADING,this.onLevelLoading,this),S.on(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.on(O.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.on(O.Events.ERROR,this.onError,this),S.on(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.on(O.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.on(O.Events.BUFFER_CREATED,this.onBufferCreated,this),S.on(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.on(O.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.on(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R._unregisterListeners=function(){var S=this.hls;S.off(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.off(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.off(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.off(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.off(O.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.off(O.Events.ERROR,this.onError,this),S.off(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.off(O.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.off(O.Events.BUFFER_CREATED,this.onBufferCreated,this),S.off(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.off(O.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.off(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},R.startLoad=function(S){if(this.levels){var v=this.lastCurrentTime,T=this.hls;if(this.stopLoad(),this.setInterval(w),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var U=T.startLevel;U===-1&&(T.config.testBandwidth?(U=0,this.bitrateTest=!0):U=T.nextAutoLevel),this.level=T.nextLoadLevel=U,this.loadedmetadata=!1}v>0&&S===-1&&(this.log("Override startPosition with lastCurrentTime @"+v.toFixed(3)),S=v),this.state=y.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=S,this.tick()}else this._forceStartLoad=!0,this.state=y.State.STOPPED},R.stopLoad=function(){this._forceStartLoad=!1,_.prototype.stopLoad.call(this)},R.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_LEVEL:{var S,v=this.levels,T=this.level,U=v==null||((S=v[T])===null||S===void 0)?void 0:S.details;if(U&&(!U.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(U))break;this.state=y.State.IDLE;break}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var L,N=self.performance.now(),V=this.retryDate;(!V||N>=V||(L=this.media)!==null&&L!==void 0&&L.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=y.State.IDLE)}break;default:break}this.onTickEnd()},R.onTickEnd=function(){_.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},R.doTickIdle=function(){var S,v,T=this.hls,U=this.levelLastLoaded,L=this.levels,N=this.media,V=T.config,H=T.nextLoadLevel;if(U===null||!N&&(this.startFragRequested||!V.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!L||!L[H])return;var D=L[H];this.level=T.nextLoadLevel=H;var W=D.details;if(!W||this.state===y.State.WAITING_LEVEL||W.live&&this.levelLastLoaded!==H){this.state=y.State.WAITING_LEVEL;return}var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:N,f.PlaylistLevelType.MAIN);if(F===null)return;var I=F.len,K=this.getMaxBufferLength(D.maxBitrate);if(I>=K)return;if(this._streamEnded(F,W)){var ee={};this.altAudio&&(ee.type="video"),this.hls.trigger(O.Events.BUFFER_EOS,ee),this.state=y.State.ENDED;return}var he=F.end,de=this.getNextFragment(he,W);if(this.couldBacktrack&&!this.fragPrevious&&de&&de.sn!=="initSegment"){var Se=de.sn-W.startSN;Se>1&&(de=W.fragments[Se-1],this.fragmentTracker.removeFragment(de))}if(de&&this.fragmentTracker.getState(de)===e.FragmentState.OK&&this.nextLoadPosition>he){var Te=this.audioOnly&&!this.altAudio?a.ElementaryStreamTypes.AUDIO:a.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(N,Te,f.PlaylistLevelType.MAIN),de=this.getNextFragment(this.nextLoadPosition,W)}if(!de)return;de.initSegment&&!de.initSegment.data&&!this.bitrateTest&&(de=de.initSegment),((S=de.decryptdata)===null||S===void 0?void 0:S.keyFormat)==="identity"&&!((v=de.decryptdata)!==null&&v!==void 0&&v.key)?this.loadKey(de,W):this.loadFragment(de,W,he)},R.loadFragment=function(S,v,T){var U,L=this.fragmentTracker.getState(S);if(this.fragCurrent=S,L===e.FragmentState.BACKTRACKED){var N=this.fragmentTracker.getBacktrackData(S);if(N){this._handleFragmentLoadProgress(N),this._handleFragmentLoadComplete(N);return}else L=e.FragmentState.NOT_LOADED}L===e.FragmentState.NOT_LOADED||L===e.FragmentState.PARTIAL?S.sn==="initSegment"?this._loadInitSegment(S):this.bitrateTest?(S.bitrateTest=!0,this.log("Fragment "+S.sn+" of level "+S.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(S)):(this.startFragRequested=!0,_.prototype.loadFragment.call(this,S,v,T)):L===e.FragmentState.APPENDING?this.reduceMaxBufferLength(S.duration)&&this.fragmentTracker.removeFragment(S):((U=this.media)===null||U===void 0?void 0:U.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(S){var v=this.fragmentTracker.getAppendedFrag(S,f.PlaylistLevelType.MAIN);return v&&"fragment"in v?v.fragment:v},R.getBufferedFrag=function(S){return this.fragmentTracker.getBufferedFrag(S,f.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(S){return S?this.getBufferedFrag(S.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var S=this.levels,v=this.media;if(v!=null&&v.readyState){var T,U=this.getAppendedFrag(v.currentTime);if(U&&U.start>1&&this.flushMainBuffer(0,U.start-1),!v.paused&&S){var L=this.hls.nextLoadLevel,N=S[L],V=this.fragLastKbps;V&&this.fragCurrent?T=this.fragCurrent.duration*N.maxBitrate/(1e3*V)+1:T=0}else T=0;var H=this.getBufferedFrag(v.currentTime+T);if(H){var D=this.followingBufferedFrag(H);if(D){this.abortCurrentFrag();var W=D.maxStartPTS?D.maxStartPTS:D.start,F=D.duration,I=Math.max(H.end,W+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(I,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var S=this.fragCurrent;this.fragCurrent=null,S!=null&&S.loader&&S.loader.abort(),this.state===y.State.KEY_LOADING&&(this.state=y.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(S,v){_.prototype.flushMainBuffer.call(this,S,v,this.altAudio?"video":null)},R.onMediaAttached=function(S,v){_.prototype.onMediaAttached.call(this,S,v);var T=v.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),T.addEventListener("playing",this.onvplaying),T.addEventListener("seeked",this.onvseeked),this.gapController=new i.default(this.config,T,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var S=this.media;S&&(S.removeEventListener("playing",this.onvplaying),S.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),_.prototype.onMediaDetaching.call(this)},R.onMediaPlaying=function(){this.tick()},R.onMediaSeeked=function(){var S=this.media,v=S?S.currentTime:null;Object(b.isFiniteNumber)(v)&&this.log("Media seeked to "+v.toFixed(3)),this.tick()},R.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(O.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(S,v){var T=!1,U=!1,L;v.levels.forEach(function(N){L=N.audioCodec,L&&(L.indexOf("mp4a.40.2")!==-1&&(T=!0),L.indexOf("mp4a.40.5")!==-1&&(U=!0))}),this.audioCodecSwitch=T&&U&&!Object(C.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=v.levels,this.startFragRequested=!1},R.onLevelLoading=function(S,v){var T=this.levels;if(!T||this.state!==y.State.IDLE)return;var U=T[v.level];(!U.details||U.details.live&&this.levelLastLoaded!==v.level||this.waitForCdnTuneIn(U.details))&&(this.state=y.State.WAITING_LEVEL)},R.onLevelLoaded=function(S,v){var T,U=this.levels,L=v.level,N=v.details,V=N.totalduration;if(!U){this.warn("Levels were reset while loading level "+L);return}this.log("Level "+L+" loaded ["+N.startSN+","+N.endSN+"], cc ["+N.startCC+", "+N.endCC+"] duration:"+V);var H=this.fragCurrent;H&&(this.state===y.State.FRAG_LOADING||this.state===y.State.FRAG_LOADING_WAITING_RETRY)&&(H.level!==v.level&&H.loader&&(this.state=y.State.IDLE,H.loader.abort()));var D=U[L],W=0;if(N.live||(T=D.details)!==null&&T!==void 0&&T.live){if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed)return;W=this.alignPlaylists(N,D.details)}if(D.details=N,this.levelLastLoaded=L,this.hls.trigger(O.Events.LEVEL_UPDATED,{details:N,level:L}),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,W),this.tick()},R._handleFragmentLoadProgress=function(S){var v,T=S.frag,U=S.part,L=S.payload,N=this.levels;if(!N){this.warn("Levels were reset while fragment load was in progress. Fragment "+T.sn+" of level "+T.level+" will not be buffered");return}var V=N[T.level],H=V.details;if(!H){this.warn("Dropping fragment "+T.sn+" of level "+T.level+" after level details were reset");return}var D=V.videoCodec,W=H.PTSKnown||!H.live,F=(v=T.initSegment)===null||v===void 0?void 0:v.data,I=this._getAudioCodec(V),K=this.transmuxer=this.transmuxer||new u.default(this.hls,f.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ee=U?U.index:-1,he=ee!==-1,de=new n.ChunkMetadata(T.level,T.sn,T.stats.chunkCount,L.byteLength,ee,he),Se=this.initPTS[T.cc];K.push(L,F,I,D,T,U,H.totalduration,W,de,Se)},R.onAudioTrackSwitching=function(S,v){var T=this.altAudio,U=!!v.url,L=v.id;if(!U){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;T&&V.trigger(O.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),V.trigger(O.Events.AUDIO_TRACK_SWITCHED,{id:L})}},R.onAudioTrackSwitched=function(S,v){var T=v.id,U=!!this.hls.audioTracks[T].url;if(U){var L=this.videoBuffer;L&&this.mediaBuffer!==L&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=L)}this.altAudio=U,this.tick()},R.onBufferCreated=function(S,v){var T=v.tracks,U,L,N=!1;for(var V in T){var H=T[V];if(H.id==="main"){if(L=V,U=H,V==="video"){var D=T[V];D&&(this.videoBuffer=D.buffer)}}else N=!0}N&&U?(this.log("Alternate track found, use "+L+".buffered to schedule main fragment loading"),this.mediaBuffer=U.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(S,v){var T=v.frag,U=v.part;if(T&&T.type!==f.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(T)){this.warn("Fragment "+T.sn+(U?" p: "+U.index:"")+" of level "+T.level+" finished buffering, but was aborted. state: "+this.state),this.state===y.State.PARSED&&(this.state=y.State.IDLE);return}var L=U?U.stats:T.stats;this.fragLastKbps=Math.round(8*L.total/(L.buffering.end-L.loading.first)),T.sn!=="initSegment"&&(this.fragPrevious=T),this.fragBufferedComplete(T,U)},R.onError=function(S,v){switch(v.details){case r.ErrorDetails.FRAG_LOAD_ERROR:case r.ErrorDetails.FRAG_LOAD_TIMEOUT:case r.ErrorDetails.KEY_LOAD_ERROR:case r.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f.PlaylistLevelType.MAIN,v);break;case r.ErrorDetails.LEVEL_LOAD_ERROR:case r.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==y.State.ERROR&&(v.fatal?(this.warn(""+v.details),this.state=y.State.ERROR):!v.levelRetry&&this.state===y.State.WAITING_LEVEL&&(this.state=y.State.IDLE));break;case r.ErrorDetails.BUFFER_FULL_ERROR:if(v.parent==="main"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var T=!0,U=this.getFwdBufferInfo(this.media,f.PlaylistLevelType.MAIN);U&&U.len>.5&&(T=!this.reduceMaxBufferLength(U.len)),T&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var S=this.media,v=this.gapController;if(!S||!v||!S.readyState)return;var T=m.BufferHelper.getBuffered(S);!this.loadedmetadata&&T.length?(this.loadedmetadata=!0,this.seekToStartPos()):v.poll(this.lastCurrentTime),this.lastCurrentTime=S.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=y.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(S,v){var T=v.type;if(T!==a.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var U=(T===a.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(U,T,f.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(S,v){this.levels=v.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var S=this.media,v=S.currentTime,T=this.startPosition;if(T>=0&&v<T){if(S.seeking){c.logger.log("could not seek to "+T+", already seeking at "+v);return}var U=m.BufferHelper.getBuffered(S),L=U.length?U.start(0):0,N=L-T;N>0&&(N<this.config.maxBufferHole||N<this.config.maxFragLookUpTolerance)&&(c.logger.log("adjusting start position by "+N+" to match buffer start"),T+=N,this.startPosition=T),this.log("seek to target start position "+T+" from current time "+v),S.currentTime=T}},R._getAudioCodec=function(S){var v=this.config.defaultAudioCodec||S.audioCodec;return this.audioCodecSwap&&v&&(this.log("Swapping audio codec"),v.indexOf("mp4a.40.5")!==-1?v="mp4a.40.2":v="mp4a.40.5"),v},R._loadBitrateTestFrag=function(S){var v=this;this._doFragLoad(S).then(function(T){var U=v.hls;if(!T||U.nextLoadLevel||v.fragContextChanged(S))return;v.fragLoadError=0,v.state=y.State.IDLE,v.startFragRequested=!1,v.bitrateTest=!1;var L=S.stats;L.parsing.start=L.parsing.end=L.buffering.start=L.buffering.end=self.performance.now(),U.trigger(O.Events.FRAG_LOADED,T)})},R._handleTransmuxComplete=function(S){var v,T="main",U=this.hls,L=S.remuxResult,N=S.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 H=V.frag,D=V.part,W=V.level,F=L.video,I=L.text,K=L.id3,ee=L.initSegment,he=this.altAudio?void 0:L.audio;if(this.fragContextChanged(H))return;if(this.state=y.State.PARSING,ee){ee.tracks&&(this._bufferInitSegment(W,ee.tracks,H,N),U.trigger(O.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:T,tracks:ee.tracks}));var de=ee.initPTS,Se=ee.timescale;Object(b.isFiniteNumber)(de)&&(this.initPTS[H.cc]=de,U.trigger(O.Events.INIT_PTS_FOUND,{frag:H,id:T,initPTS:de,timescale:Se}))}if(F&&L.independent!==!1){if(W.details){var Te=F.startPTS,ce=F.endPTS,be=F.startDTS,ye=F.endDTS;if(D)D.elementaryStreams[F.type]={startPTS:Te,endPTS:ce,startDTS:be,endDTS:ye};else if(F.firstKeyFrame&&F.independent&&(this.couldBacktrack=!0),F.dropped&&F.independent){var ue=this.getLoadPosition()+this.config.maxBufferHole;if(ue<Te){this.backtrack(H);return}H.setElementaryStreamInfo(F.type,H.start,ce,H.start,ye,!0)}H.setElementaryStreamInfo(F.type,Te,ce,be,ye),this.bufferFragmentData(F,H,D,N)}}else if(L.independent===!1){this.backtrack(H);return}if(he){var se=he.startPTS,$=he.endPTS,me=he.startDTS,re=he.endDTS;D&&(D.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:se,endPTS:$,startDTS:me,endDTS:re}),H.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,se,$,me,re),this.bufferFragmentData(he,H,D,N)}if(K!=null&&(v=K.samples)!==null&&v!==void 0&&v.length){var ae={frag:H,id:T,samples:K.samples};U.trigger(O.Events.FRAG_PARSING_METADATA,ae)}if(I){var Oe={frag:H,id:T,samples:I.samples};U.trigger(O.Events.FRAG_PARSING_USERDATA,Oe)}},R._bufferInitSegment=function(S,v,T,U){var L=this;if(this.state!==y.State.PARSING)return;this.audioOnly=!!v.audio&&!v.video,this.altAudio&&!this.audioOnly&&delete v.audio;var N=v.audio,V=v.video,H=v.audiovideo;if(N){var D=S.audioCodec,W=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(D&&(D.indexOf("mp4a.40.5")!==-1?D="mp4a.40.2":D="mp4a.40.5"),N.metadata.channelCount!==1&&W.indexOf("firefox")===-1&&(D="mp4a.40.5")),W.indexOf("android")!==-1&&N.container!=="audio/mpeg"&&(D="mp4a.40.2",this.log("Android: force audio codec to "+D)),S.audioCodec&&S.audioCodec!==D&&this.log('Swapping manifest audio codec "'+S.audioCodec+'" for "'+D+'"'),N.levelCodec=D,N.id="main",this.log("Init audio buffer, container:"+N.container+", codecs[selected/level/parsed]=["+(D||"")+"/"+(S.audioCodec||"")+"/"+N.codec+"]")}V&&(V.levelCodec=S.videoCodec,V.id="main",this.log("Init video buffer, container:"+V.container+", codecs[level/parsed]=["+(S.videoCodec||"")+"/"+V.codec+"]")),H&&this.log("Init audiovideo buffer, container:"+H.container+", codecs[level/parsed]=["+(S.attrs.CODECS||"")+"/"+H.codec+"]"),this.hls.trigger(O.Events.BUFFER_CODECS,v),Object.keys(v).forEach(function(F){var I=v[F],K=I.initSegment;K!=null&&K.byteLength&&L.hls.trigger(O.Events.BUFFER_APPENDING,{type:F,data:K,frag:T,part:null,chunkMeta:U,parent:T.type})}),this.tick()},R.backtrack=function(S){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(S);var v=this.fragmentTracker.backtrack(S);this.fragPrevious=null,this.nextLoadPosition=S.start,v?this.resetFragmentLoading(S):this.state=y.State.BACKTRACKING},R.checkFragmentChanged=function(){var S=this.media,v=null;if(S&&S.readyState>1&&S.seeking===!1){var T=S.currentTime;if(m.BufferHelper.isBuffered(S,T)?v=this.getAppendedFrag(T):m.BufferHelper.isBuffered(S,T+.1)&&(v=this.getAppendedFrag(T+.1)),v){var U=this.fragPlaying,L=v.level;(!U||v.sn!==U.sn||U.level!==L||v.urlId!==U.urlId)&&(this.hls.trigger(O.Events.FRAG_CHANGED,{frag:v}),(!U||U.level!==L)&&this.hls.trigger(O.Events.LEVEL_SWITCHED,{level:L}),this.fragPlaying=v)}}},d(P,[{key:"nextLevel",get:function(){var S=this.nextBufferedFrag;return S?S.level:-1}},{key:"currentLevel",get:function(){var S=this.media;if(S){var v=this.getAppendedFrag(S.currentTime);if(v)return v.level}return-1}},{key:"nextBufferedFrag",get:function(){var S=this.media;if(S){var v=this.getAppendedFrag(S.currentTime);return this.followingBufferedFrag(v)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(y.default)},"./src/controller/subtitle-stream-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"SubtitleStreamController",function(){return s});var b=A("./src/events.ts"),y=A("./src/utils/logger.ts"),C=A("./src/utils/buffer-helper.ts"),O=A("./src/controller/fragment-finders.ts"),m=A("./src/utils/discontinuities.ts"),e=A("./src/controller/level-helper.ts"),f=A("./src/controller/fragment-tracker.ts"),a=A("./src/controller/base-stream-controller.ts"),u=A("./src/types/loader.ts"),n=A("./src/types/level.ts");function i(l,w){for(var E=0;E<w.length;E++){var _=w[E];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(l,_.key,_)}}function r(l,w,E){return w&&i(l.prototype,w),E&&i(l,E),l}function c(l,w){l.prototype=Object.create(w.prototype),l.prototype.constructor=l,h(l,w)}function h(l,w){return h=Object.setPrototypeOf||function(_,P){return _.__proto__=P,_},h(l,w)}var d=500,s=function(l){c(w,l);function w(_,P){var R;return R=l.call(this,_,P,"[subtitle-stream-controller]")||this,R.levels=[],R.currentTrackId=-1,R.tracksBuffered=[],R.mainDetails=null,R._registerListeners(),R}var E=w.prototype;return E.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},E._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)},E._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)},E.startLoad=function(){this.stopLoad(),this.state=a.State.IDLE,this.setInterval(d),this.tick()},E.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},E.onLevelLoaded=function(P,R){this.mainDetails=R.details},E.onSubtitleFragProcessed=function(P,R){var x=R.frag,S=R.success;if(this.fragPrevious=x,this.state=a.State.IDLE,!S)return;var v=this.tracksBuffered[this.currentTrackId];if(!v)return;for(var T,U=x.start,L=0;L<v.length;L++)if(U>=v[L].start&&U<=v[L].end){T=v[L];break}var N=x.start+x.duration;T?T.end=N:(T={start:U,end:N},v.push(T)),this.fragmentTracker.fragBuffered(x)},E.onBufferFlushing=function(P,R){var x=R.startOffset,S=R.endOffset;if(x===0&&S!==Number.POSITIVE_INFINITY){var v=this.currentTrackId,T=this.levels;if(!T.length||!T[v]||!T[v].details)return;var U=T[v].details,L=U.targetduration,N=S-L;if(N<=0)return;R.endOffsetSubtitles=Math.max(0,N),this.tracksBuffered.forEach(function(V){for(var H=0;H<V.length;){if(V[H].end<=N){V.shift();continue}else if(V[H].start<N)V[H].start=N;else break;H++}}),this.fragmentTracker.removeFragmentsInRange(x,N,u.PlaylistLevelType.SUBTITLE)}},E.onError=function(P,R){var x,S=R.frag;if(!S||S.type!==u.PlaylistLevelType.SUBTITLE)return;(x=this.fragCurrent)!==null&&x!==void 0&&x.loader&&this.fragCurrent.loader.abort(),this.state=a.State.IDLE},E.onSubtitleTracksUpdated=function(P,R){var x=this,S=R.subtitleTracks;this.tracksBuffered=[],this.levels=S.map(function(v){return new n.Level(v)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(v){x.tracksBuffered[v.id]=[]}),this.mediaBuffer=null},E.onSubtitleTrackSwitch=function(P,R){if(this.currentTrackId=R.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var x=this.levels[this.currentTrackId];x!=null&&x.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,x&&this.setInterval(d)},E.onSubtitleTrackLoaded=function(P,R){var x,S=R.details,v=R.id,T=this.currentTrackId,U=this.levels;if(!U.length)return;var L=U[T];if(v>=U.length||v!==T||!L)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,S.live||(x=L.details)!==null&&x!==void 0&&x.live){var N=this.mainDetails;if(S.deltaUpdateFailed||!N)return;var V=N.fragments[0];if(!L.details)S.hasProgramDateTime&&N.hasProgramDateTime?Object(m.alignMediaPlaylistByPDT)(S,N):V&&Object(e.addSliding)(S,V.start);else{var H=this.alignPlaylists(S,L.details);H===0&&V&&Object(e.addSliding)(S,V.start)}}if(L.details=S,this.levelLastLoaded=v,this.tick(),S.live&&!this.fragCurrent&&this.media&&this.state===a.State.IDLE){var D=Object(O.findFragmentByPTS)(null,S.fragments,this.media.currentTime,0);D||(this.warn("Subtitle playlist not aligned with playback"),L.details=void 0)}},E._handleFragmentLoadComplete=function(P){var R=P.frag,x=P.payload,S=R.decryptdata,v=this.hls;if(this.fragContextChanged(R))return;if(x&&x.byteLength>0&&S&&S.key&&S.iv&&S.method==="AES-128"){var T=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(x),S.key.buffer,S.iv.buffer).then(function(U){var L=performance.now();v.trigger(b.Events.FRAG_DECRYPTED,{frag:R,payload:U,stats:{tstart:T,tdecrypt:L}})})}},E.doTick=function(){if(!this.media){this.state=a.State.IDLE;return}if(this.state===a.State.IDLE){var P,R=this.currentTrackId,x=this.levels;if(!x.length||!x[R]||!x[R].details)return;var S=x[R].details,v=S.targetduration,T=this.config,U=this.media,L=C.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,U.currentTime-v,T.maxBufferHole),N=L.end,V=L.len,H=this.getMaxBufferLength()+v;if(V>H)return;console.assert(S,"Subtitle track details are defined on idle subtitle stream controller tick");var D=S.fragments,W=D.length,F=S.edge,I,K=this.fragPrevious;if(N<F){var ee=T.maxFragLookUpTolerance;K&&S.hasProgramDateTime&&(I=Object(O.findFragmentByPDT)(D,K.endProgramDateTime,ee)),I||(I=Object(O.findFragmentByPTS)(K,D,N,ee),!I&&K&&K.start<D[0].start&&(I=D[0]))}else I=D[W-1];(P=I)!==null&&P!==void 0&&P.encrypted?(y.logger.log("Loading key for "+I.sn),this.state=a.State.KEY_LOADING,this.hls.trigger(b.Events.KEY_LOADING,{frag:I})):I&&this.fragmentTracker.getState(I)===f.FragmentState.NOT_LOADED&&this.loadFragment(I,S,N)}},E.loadFragment=function(P,R,x){this.fragCurrent=P,l.prototype.loadFragment.call(this,P,R,x)},r(w,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),w}(a.default)},"./src/controller/subtitle-track-controller.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/utils/texttrack-utils.ts"),C=A("./src/controller/base-playlist-controller.ts"),O=A("./src/types/loader.ts");function m(i,r){for(var c=0;c<r.length;c++){var h=r[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function e(i,r,c){return r&&m(i.prototype,r),c&&m(i,c),i}function f(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,a(i,r)}function a(i,r){return a=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h},a(i,r)}var u=function(i){f(r,i);function r(h){var d;return d=i.call(this,h,"[subtitle-track-controller]")||this,d.media=null,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.selectDefaultTrack=!0,d.queuedDefaultTrack=-1,d.trackChangeListener=function(){return d.onTextTracksChanged()},d.asyncPollTrackChange=function(){return d.pollTrackChange(0)},d.useTextTrackPolling=!1,d.subtitlePollingInterval=-1,d.subtitleDisplay=!0,d.registerListeners(),d}var c=r.prototype;return c.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,i.prototype.destroy.call(this)},c.registerListeners=function(){var d=this.hls;d.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.on(b.Events.ERROR,this.onError,this)},c.unregisterListeners=function(){var d=this.hls;d.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.off(b.Events.ERROR,this.onError,this)},c.onMediaAttached=function(d,s){if(this.media=s.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)},c.pollTrackChange=function(d){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,d)},c.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 d=n(this.media.textTracks);d.forEach(function(s){Object(y.clearCurrentCues)(s)}),this.subtitleTrack=-1,this.media=null},c.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},c.onManifestParsed=function(d,s){this.tracks=s.subtitleTracks},c.onSubtitleTrackLoaded=function(d,s){var l=s.id,w=s.details,E=this.trackId,_=this.tracksInGroup[E];if(!_){this.warn("Invalid subtitle track id "+l);return}var P=_.details;_.details=s.details,this.log("subtitle track "+l+" loaded ["+w.startSN+"-"+w.endSN+"]"),l===this.trackId&&(this.retryCount=0,this.playlistLoaded(l,s,P))},c.onLevelLoading=function(d,s){this.switchLevel(s.level)},c.onLevelSwitching=function(d,s){this.switchLevel(s.level)},c.switchLevel=function(d){var s=this.hls.levels[d];if(!(s!=null&&s.textGroupIds))return;var l=s.textGroupIds[s.urlId];if(this.groupId!==l){var w=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(R){return!l||R.groupId===l});this.tracksInGroup=E;var _=this.findTrackId(w==null?void 0:w.name)||this.findTrackId();this.groupId=l;var P={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+l+'" group-id'),this.hls.trigger(b.Events.SUBTITLE_TRACKS_UPDATED,P),_!==-1&&this.setSubtitleTrack(_,w)}},c.findTrackId=function(d){for(var s=this.tracksInGroup,l=0;l<s.length;l++){var w=s[l];if((!this.selectDefaultTrack||w.default)&&(!d||d===w.name))return w.id}return-1},c.onError=function(d,s){if(i.prototype.onError.call(this,d,s),s.fatal||!s.context)return;s.context.type===O.PlaylistContextType.SUBTITLE_TRACK&&s.context.id===this.trackId&&s.context.groupId===this.groupId&&this.retryLoadingOrFail(s)},c.loadPlaylist=function(d){var s=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(s)){var l=s.id,w=s.groupId,E=s.url;if(d)try{E=d.addDirectives(E)}catch(_){this.warn("Could not construct new URL with HLS Delivery Directives: "+_)}this.log("Loading subtitle playlist for id "+l),this.hls.trigger(b.Events.SUBTITLE_TRACK_LOADING,{url:E,id:l,groupId:w,deliveryDirectives:d||null})}},c.toggleTrackModes=function(d){var s=this,l=this.media,w=this.subtitleDisplay,E=this.trackId;if(!l)return;var _=n(l.textTracks),P=_.filter(function(S){return S.groupId===s.groupId});if(d===-1)[].slice.call(_).forEach(function(S){S.mode="disabled"});else{var R=P[E];R&&(R.mode="disabled")}var x=P[d];x&&(x.mode=w?"showing":"hidden")},c.setSubtitleTrack=function(d,s){var l,w=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=d;return}if(this.trackId!==d&&this.toggleTrackModes(d),this.trackId===d&&(d===-1||(l=w[d])!==null&&l!==void 0&&l.details)||d<-1||d>=w.length)return;this.clearTimer();var E=w[d];if(this.log("Switching to subtitle track "+d),this.trackId=d,E){var _=E.id,P=E.groupId,R=P===void 0?"":P,x=E.name,S=E.type,v=E.url;this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:_,groupId:R,name:x,type:S,url:v});var T=this.switchParams(E.url,s==null?void 0:s.details);this.loadPlaylist(T)}else this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:d})},c.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var d=-1,s=n(this.media.textTracks),l=0;l<s.length;l++)if(s[l].mode==="hidden")d=l;else if(s[l].mode==="showing"){d=l;break}this.subtitleTrack!==d&&(this.subtitleTrack=d)},e(r,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(d){this.selectDefaultTrack=!1;var s=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(d,s)}}]),r}(C.default);function n(i){for(var r=[],c=0;c<i.length;c++){var h=i[c];h.kind==="subtitles"&&h.label&&r.push(i[c])}return r}g.default=u},"./src/controller/timeline-controller.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"TimelineController",function(){return n});var b=A("./src/polyfills/number.ts"),y=A("./src/events.ts"),C=A("./src/utils/cea-608-parser.ts"),O=A("./src/utils/output-filter.ts"),m=A("./src/utils/webvtt-parser.ts"),e=A("./src/utils/texttrack-utils.ts"),f=A("./src/utils/imsc1-ttml-parser.ts"),a=A("./src/types/loader.ts"),u=A("./src/utils/logger.ts"),n=function(){function h(s){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=c(),this.captionsProperties=void 0,this.hls=s,this.config=s.config,this.Cues=s.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 l=new O.default(this,"textTrack1"),w=new O.default(this,"textTrack2"),E=new O.default(this,"textTrack3"),_=new O.default(this,"textTrack4");this.cea608Parser1=new C.default(1,l,w),this.cea608Parser2=new C.default(3,E,_)}s.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),s.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),s.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.on(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),s.on(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),s.on(y.Events.FRAG_LOADING,this.onFragLoading,this),s.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),s.on(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),s.on(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),s.on(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),s.on(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),s.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var d=h.prototype;return d.destroy=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_LOADING,this.onManifestLoading,this),l.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),l.off(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),l.off(y.Events.FRAG_LOADING,this.onFragLoading,this),l.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),l.off(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),l.off(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),l.off(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),l.off(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),l.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},d.addCues=function(l,w,E,_,P){for(var R=!1,x=P.length;x--;){var S=P[x],v=r(S[0],S[1],w,E);if(v>=0&&(S[0]=Math.min(S[0],w),S[1]=Math.max(S[1],E),R=!0,v/(E-w)>.5))return}if(R||P.push([w,E]),this.config.renderTextTracksNatively){var T=this.captionsTracks[l];this.Cues.newCue(T,w,E,_)}else{var U=this.Cues.newCue(null,w,E,_);this.hls.trigger(y.Events.CUES_PARSED,{type:"captions",cues:U,track:l})}},d.onInitPtsFound=function(l,w){var E=this,_=w.frag,P=w.id,R=w.initPTS,x=w.timescale,S=this.unparsedVttFrags;P==="main"&&(this.initPTS[_.cc]=R,this.timescale[_.cc]=x),S.length&&(this.unparsedVttFrags=[],S.forEach(function(v){E.onFragLoaded(y.Events.FRAG_LOADED,v)}))},d.getExistingTrack=function(l){var w=this.media;if(w)for(var E=0;E<w.textTracks.length;E++){var _=w.textTracks[E];if(_[l])return _}return null},d.createCaptionsTrack=function(l){this.config.renderTextTracksNatively?this.createNativeTrack(l):this.createNonNativeTrack(l)},d.createNativeTrack=function(l){if(this.captionsTracks[l])return;var w=this.captionsProperties,E=this.captionsTracks,_=this.media,P=w[l],R=P.label,x=P.languageCode,S=this.getExistingTrack(l);if(S)E[l]=S,Object(e.clearCurrentCues)(E[l]),Object(e.sendAddTrackEvent)(E[l],_);else{var v=this.createTextTrack("captions",R,x);v&&(v[l]=!0,E[l]=v)}},d.createNonNativeTrack=function(l){if(this.nonNativeCaptionsTracks[l])return;var w=this.captionsProperties[l];if(!w)return;var E=w.label,_={_id:l,label:E,kind:"captions",default:w.media?!!w.media.default:!1,closedCaptions:w.media};this.nonNativeCaptionsTracks[l]=_,this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[_]})},d.createTextTrack=function(l,w,E){var _=this.media;return _?_.addTextTrack(l,w,E):void 0},d.onMediaAttaching=function(l,w){this.media=w.media,this._cleanTracks()},d.onMediaDetaching=function(){var l=this.captionsTracks;Object.keys(l).forEach(function(w){Object(e.clearCurrentCues)(l[w]),delete l[w]}),this.nonNativeCaptionsTracks={}},d.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=c(),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())},d._cleanTracks=function(){var l=this.media;if(!l)return;var w=l.textTracks;if(w)for(var E=0;E<w.length;E++)Object(e.clearCurrentCues)(w[E])},d.onSubtitleTracksUpdated=function(l,w){var E=this;this.textTracks=[];var _=w.subtitleTracks||[],P=_.some(function(v){return v.textCodec===f.IMSC1_CODEC});if(this.config.enableWebVTT||P&&this.config.enableIMSC1){var R=this.tracks&&_&&this.tracks.length===_.length;if(this.tracks=_||[],this.config.renderTextTracksNatively){var x=this.media?this.media.textTracks:[];this.tracks.forEach(function(v,T){var U;if(T<x.length){for(var L=null,N=0;N<x.length;N++)if(i(x[N],v)){L=x[N];break}L&&(U=L)}U?Object(e.clearCurrentCues)(U):(U=E.createTextTrack("subtitles",v.name,v.lang),U&&(U.mode="disabled")),U&&(U.groupId=v.groupId,E.textTracks.push(U))})}else if(!R&&this.tracks&&this.tracks.length){var S=this.tracks.map(function(v){return{label:v.name,kind:v.type.toLowerCase(),default:v.default,subtitleTrack:v}});this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:S})}}},d.onManifestLoaded=function(l,w){var E=this;this.config.enableCEA708Captions&&w.captions&&w.captions.forEach(function(_){var P=/(?:CC|SERVICE)([1-4])/.exec(_.instreamId);if(!P)return;var R="textTrack"+P[1],x=E.captionsProperties[R];if(!x)return;x.label=_.name,_.lang&&(x.languageCode=_.lang),x.media=_})},d.onFragLoading=function(l,w){var E=this.cea608Parser1,_=this.cea608Parser2,P=this.lastSn,R=this.lastPartIndex;if(!this.enabled||!(E&&_))return;if(w.frag.type===a.PlaylistLevelType.MAIN){var x,S,v=w.frag.sn,T=(x=w==null||((S=w.part)===null||S===void 0)?void 0:S.index)!=null?x:-1;v===P+1||v===P&&T===R+1||(E.reset(),_.reset()),this.lastSn=v,this.lastPartIndex=T}},d.onFragLoaded=function(l,w){var E=w.frag,_=w.payload,P=this.initPTS,R=this.unparsedVttFrags;if(E.type===a.PlaylistLevelType.SUBTITLE)if(_.byteLength){if(!Object(b.isFiniteNumber)(P[E.cc])){R.push(w),P.length&&this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:E,error:new Error("Missing initial subtitle PTS")});return}var x=E.decryptdata;if(x==null||x.key==null||x.method!=="AES-128"){var S=this.tracks[E.level],v=this.vttCCs;v[E.cc]||(v[E.cc]={start:E.start,prevCC:this.prevCC,new:!0},this.prevCC=E.cc),S&&S.textCodec===f.IMSC1_CODEC?this._parseIMSC1(E,_):this._parseVTTs(E,_,v)}}else this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:E,error:new Error("Empty subtitle payload")})},d._parseIMSC1=function(l,w){var E=this,_=this.hls;Object(f.parseIMSC1)(w,this.initPTS[l.cc],this.timescale[l.cc],function(P){E._appendCues(P,l.level),_.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:l})},function(P){u.logger.log("Failed to parse IMSC1: "+P),_.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:l,error:P})})},d._parseVTTs=function(l,w,E){var _=this,P=this.hls;Object(m.parseWebVTT)(w,this.initPTS[l.cc],this.timescale[l.cc],E,l.cc,l.start,function(R){_._appendCues(R,l.level),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:l})},function(R){_._fallbackToIMSC1(l,w),u.logger.log("Failed to parse VTT cue: "+R),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:l,error:R})})},d._fallbackToIMSC1=function(l,w){var E=this,_=this.tracks[l.level];_.textCodec||Object(f.parseIMSC1)(w,this.initPTS[l.cc],this.timescale[l.cc],function(){_.textCodec=f.IMSC1_CODEC,E._parseIMSC1(l,w)},function(){_.textCodec="wvtt"})},d._appendCues=function(l,w){var E=this.hls;if(this.config.renderTextTracksNatively){var _=this.textTracks[w];if(_.mode==="disabled")return;l.forEach(function(x){return Object(e.addCueToTrack)(_,x)})}else{var P=this.tracks[w],R=P.default?"default":"subtitles"+w;E.trigger(y.Events.CUES_PARSED,{type:"subtitles",cues:l,track:R})}},d.onFragDecrypted=function(l,w){var E=w.frag;if(E.type===a.PlaylistLevelType.SUBTITLE){if(!Object(b.isFiniteNumber)(this.initPTS[E.cc])){this.unparsedVttFrags.push(w);return}this.onFragLoaded(y.Events.FRAG_LOADED,w)}},d.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},d.onFragParsingUserdata=function(l,w){var E=this.cea608Parser1,_=this.cea608Parser2;if(!this.enabled||!(E&&_))return;for(var P=0;P<w.samples.length;P++){var R=w.samples[P].bytes;if(R){var x=this.extractCea608Data(R);E.addData(w.samples[P].pts,x[0]),_.addData(w.samples[P].pts,x[1])}}},d.onBufferFlushing=function(l,w){var E=w.startOffset,_=w.endOffset,P=w.endOffsetSubtitles,R=w.type,x=this.media;if(!x||x.currentTime<_)return;if(!R||R==="video"){var S=this.captionsTracks;Object.keys(S).forEach(function(T){return Object(e.removeCuesInRange)(S[T],E,_)})}if(this.config.renderTextTracksNatively&&(E===0&&P!==void 0)){var v=this.textTracks;Object.keys(v).forEach(function(T){return Object(e.removeCuesInRange)(v[T],E,P)})}},d.extractCea608Data=function(l){for(var w=l[0]&31,E=2,_=[[],[]],P=0;P<w;P++){var R=l[E++],x=127&l[E++],S=127&l[E++],v=(4&R)!==0,T=3&R;if(x===0&&S===0)continue;v&&((T===0||T===1)&&(_[T].push(x),_[T].push(S)))}return _},h}();function i(h,d){return h&&h.label===d.name&&!(h.textTrack1||h.textTrack2)}function r(h,d,s,l){return Math.min(d,l)-Math.max(h,s)}function c(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return b});var b=function(){function y(O,m){this.subtle=void 0,this.aesIV=void 0,this.subtle=O,this.aesIV=m}var C=y.prototype;return C.decrypt=function(m,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,m)},y}()},"./src/crypt/aes-decryptor.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"removePadding",function(){return y}),A.d(g,"default",function(){return C});var b=A("./src/utils/typed-array.ts");function y(O){var m=O.byteLength,e=m&&new DataView(O.buffer).getUint8(m-1);return e?Object(b.sliceUint8)(O,0,m-e):O}var C=function(){function O(){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 m=O.prototype;return m.uint8ArrayToUint32Array_=function(f){for(var a=new DataView(f),u=new Uint32Array(4),n=0;n<4;n++)u[n]=a.getUint32(n*4);return u},m.initTable=function(){var f=this.sBox,a=this.invSBox,u=this.subMix,n=u[0],i=u[1],r=u[2],c=u[3],h=this.invSubMix,d=h[0],s=h[1],l=h[2],w=h[3],E=new Uint32Array(256),_=0,P=0,R=0;for(R=0;R<256;R++)R<128?E[R]=R<<1:E[R]=R<<1^283;for(R=0;R<256;R++){var x=P^P<<1^P<<2^P<<3^P<<4;x=x>>>8^x&255^99,f[_]=x,a[x]=_;var S=E[_],v=E[S],T=E[v],U=E[x]*257^x*16843008;n[_]=U<<24|U>>>8,i[_]=U<<16|U>>>16,r[_]=U<<8|U>>>24,c[_]=U,U=T*16843009^v*65537^S*257^_*16843008,d[x]=U<<24|U>>>8,s[x]=U<<16|U>>>16,l[x]=U<<8|U>>>24,w[x]=U,_?(_=S^E[E[E[T^S]]],P^=E[E[P]]):_=P=1}},m.expandKey=function(f){for(var a=this.uint8ArrayToUint32Array_(f),u=!0,n=0;n<a.length&&u;)u=a[n]===this.key[n],n++;if(u)return;this.key=a;var i=this.keySize=a.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);var r=this.ksRows=(i+6+1)*4,c,h,d=this.keySchedule=new Uint32Array(r),s=this.invKeySchedule=new Uint32Array(r),l=this.sBox,w=this.rcon,E=this.invSubMix,_=E[0],P=E[1],R=E[2],x=E[3],S,v;for(c=0;c<r;c++){if(c<i){S=d[c]=a[c];continue}v=S,c%i===0?(v=v<<8|v>>>24,v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255],v^=w[c/i|0]<<24):i>6&&c%i===4&&(v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255]),d[c]=S=(d[c-i]^v)>>>0}for(h=0;h<r;h++)c=r-h,h&3?v=d[c]:v=d[c-4],h<4||c<=4?s[h]=v:s[h]=_[l[v>>>24]]^P[l[v>>>16&255]]^R[l[v>>>8&255]]^x[l[v&255]],s[h]=s[h]>>>0},m.networkToHostOrderSwap=function(f){return f<<24|(f&65280)<<8|(f&16711680)>>8|f>>>24},m.decrypt=function(f,a,u){for(var n=this.keySize+6,i=this.invKeySchedule,r=this.invSBox,c=this.invSubMix,h=c[0],d=c[1],s=c[2],l=c[3],w=this.uint8ArrayToUint32Array_(u),E=w[0],_=w[1],P=w[2],R=w[3],x=new Int32Array(f),S=new Int32Array(x.length),v,T,U,L,N,V,H,D,W,F,I,K,ee,he,de=this.networkToHostOrderSwap;a<x.length;){for(W=de(x[a]),F=de(x[a+1]),I=de(x[a+2]),K=de(x[a+3]),N=W^i[0],V=K^i[1],H=I^i[2],D=F^i[3],ee=4,he=1;he<n;he++)v=h[N>>>24]^d[V>>16&255]^s[H>>8&255]^l[D&255]^i[ee],T=h[V>>>24]^d[H>>16&255]^s[D>>8&255]^l[N&255]^i[ee+1],U=h[H>>>24]^d[D>>16&255]^s[N>>8&255]^l[V&255]^i[ee+2],L=h[D>>>24]^d[N>>16&255]^s[V>>8&255]^l[H&255]^i[ee+3],N=v,V=T,H=U,D=L,ee=ee+4;v=r[N>>>24]<<24^r[V>>16&255]<<16^r[H>>8&255]<<8^r[D&255]^i[ee],T=r[V>>>24]<<24^r[H>>16&255]<<16^r[D>>8&255]<<8^r[N&255]^i[ee+1],U=r[H>>>24]<<24^r[D>>16&255]<<16^r[N>>8&255]<<8^r[V&255]^i[ee+2],L=r[D>>>24]<<24^r[N>>16&255]<<16^r[V>>8&255]<<8^r[H&255]^i[ee+3],S[a]=de(v^E),S[a+1]=de(L^_),S[a+2]=de(U^P),S[a+3]=de(T^R),E=W,_=F,P=I,R=K,a=a+4}return S.buffer},O}()},"./src/crypt/decrypter.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return a});var b=A("./src/crypt/aes-crypto.ts"),y=A("./src/crypt/fast-aes-key.ts"),C=A("./src/crypt/aes-decryptor.ts"),O=A("./src/utils/logger.ts"),m=A("./src/utils/mp4-tools.ts"),e=A("./src/utils/typed-array.ts"),f=16,a=function(){function u(i,r,c){var h=c===void 0?{}:c,d=h.removePKCS7Padding,s=d===void 0?!0:d;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=i,this.config=r,this.removePKCS7Padding=s,s)try{var l=self.crypto;l&&(this.subtle=l.subtle||l.webkitSubtle)}catch(w){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var n=u.prototype;return n.destroy=function(){this.observer=null},n.isSync=function(){return this.config.enableSoftwareAES},n.flush=function(){var r=this.currentResult;if(!r){this.reset();return}var c=new Uint8Array(r);return this.reset(),this.removePKCS7Padding?Object(C.removePadding)(c):c},n.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},n.decrypt=function(r,c,h,d){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(r),c,h);var s=this.flush();s&&d(s.buffer)}else this.webCryptoDecrypt(new Uint8Array(r),c,h).then(d)},n.softwareDecrypt=function(r,c,h){var d=this.currentIV,s=this.currentResult,l=this.remainderData;this.logOnce("JS AES decrypt"),l&&(r=Object(m.appendUint8Array)(l,r),this.remainderData=null);var w=this.getValidChunk(r);if(!w.length)return null;d&&(h=d);var E=this.softwareDecrypter;E||(E=this.softwareDecrypter=new C.default),E.expandKey(c);var _=s;return this.currentResult=E.decrypt(w.buffer,0,h),this.currentIV=Object(e.sliceUint8)(w,-16).buffer,_||null},n.webCryptoDecrypt=function(r,c,h){var d=this,s=this.subtle;return(this.key!==c||!this.fastAesKey)&&(this.key=c,this.fastAesKey=new y.default(s,c)),this.fastAesKey.expandKey().then(function(l){if(!s)return Promise.reject(new Error("web crypto not initialized"));var w=new b.default(s,h);return w.decrypt(r.buffer,l)}).catch(function(l){return d.onWebCryptoError(l,r,c,h)})},n.onWebCryptoError=function(r,c,h,d){return O.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",r),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(c,h,d)},n.getValidChunk=function(r){var c=r,h=r.length-r.length%f;return h!==r.length&&(c=Object(e.sliceUint8)(r,0,h),this.remainderData=Object(e.sliceUint8)(r,h)),c},n.logOnce=function(r){if(!this.logEnabled)return;O.logger.log("[decrypter.ts]: "+r),this.logEnabled=!1},u}()},"./src/crypt/fast-aes-key.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return b});var b=function(){function y(O,m){this.subtle=void 0,this.key=void 0,this.subtle=O,this.key=m}var C=y.prototype;return C.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},y}()},"./src/demux/aacdemuxer.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/demux/base-audio-demuxer.ts"),y=A("./src/demux/adts.ts"),C=A("./src/utils/logger.ts"),O=A("./src/demux/id3.ts");function m(a,u){a.prototype=Object.create(u.prototype),a.prototype.constructor=a,e(a,u)}function e(a,u){return e=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i},e(a,u)}var f=function(a){m(u,a);function u(i,r){var c;return c=a.call(this)||this,c.observer=void 0,c.config=void 0,c.observer=i,c.config=r,c}var n=u.prototype;return n.resetInitSegment=function(r,c,h){a.prototype.resetInitSegment.call(this,r,c,h),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:r,duration:h,inputTimeScale:9e4,dropped:0}},u.probe=function(r){if(!r)return!1;for(var c=O.getID3Data(r,0)||[],h=c.length,d=r.length;h<d;h++)if(y.probe(r,h))return C.logger.log("ADTS sync word found !"),!0;return!1},n.canParse=function(r,c){return y.canParse(r,c)},n.appendFrame=function(r,c,h){y.initTrackConfig(r,this.observer,c,h,r.manifestCodec);var d=y.appendFrame(r,c,h,this.initPTS,this.frameIndex);if(d&&d.missing===0)return d},u}(b.default);f.minProbeByteLength=9,g.default=f},"./src/demux/adts.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"getAudioConfig",function(){return O}),A.d(g,"isHeaderPattern",function(){return m}),A.d(g,"getHeaderLength",function(){return e}),A.d(g,"getFullFrameLength",function(){return f}),A.d(g,"canGetFrameLength",function(){return a}),A.d(g,"isHeader",function(){return u}),A.d(g,"canParse",function(){return n}),A.d(g,"probe",function(){return i}),A.d(g,"initTrackConfig",function(){return r}),A.d(g,"getFrameDuration",function(){return c}),A.d(g,"parseFrameHeader",function(){return h}),A.d(g,"appendFrame",function(){return d});var b=A("./src/utils/logger.ts"),y=A("./src/errors.ts"),C=A("./src/events.ts");function O(s,l,w,E){var _,P,R,x,S=navigator.userAgent.toLowerCase(),v=E,T=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];_=((l[w+2]&192)>>>6)+1;var U=(l[w+2]&60)>>>2;if(U>T.length-1){s.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+U});return}return R=(l[w+2]&1)<<2,R|=(l[w+3]&192)>>>6,b.logger.log("manifest codec:"+E+", ADTS type:"+_+", samplingIndex:"+U),/firefox/i.test(S)?U>=6?(_=5,x=new Array(4),P=U-3):(_=2,x=new Array(2),P=U):S.indexOf("android")!==-1?(_=2,x=new Array(2),P=U):(_=5,x=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&U>=6?P=U-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(U>=6&&R===1||/vivaldi/i.test(S))||!E&&R===1)&&(_=2,x=new Array(2)),P=U)),x[0]=_<<3,x[0]|=(U&14)>>1,x[1]|=(U&1)<<7,x[1]|=R<<3,_===5&&(x[1]|=(P&14)>>1,x[2]=(P&1)<<7,x[2]|=2<<2,x[3]=0),{config:x,samplerate:T[U],channelCount:R,codec:"mp4a.40."+_,manifestCodec:v}}function m(s,l){return s[l]===255&&(s[l+1]&246)===240}function e(s,l){return s[l+1]&1?7:9}function f(s,l){return(s[l+3]&3)<<11|s[l+4]<<3|(s[l+5]&224)>>>5}function a(s,l){return l+5<s.length}function u(s,l){return l+1<s.length&&m(s,l)}function n(s,l){return a(s,l)&&m(s,l)&&f(s,l)<=s.length-l}function i(s,l){if(u(s,l)){var w=e(s,l);if(l+w>=s.length)return!1;var E=f(s,l);if(E<=w)return!1;var _=l+E;return _===s.length||u(s,_)}return!1}function r(s,l,w,E,_){if(!s.samplerate){var P=O(l,w,E,_);if(!P)return;s.config=P.config,s.samplerate=P.samplerate,s.channelCount=P.channelCount,s.codec=P.codec,s.manifestCodec=P.manifestCodec,b.logger.log("parsed codec:"+s.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function c(s){return 1024*9e4/s}function h(s,l,w,E,_){var P=e(s,l),R=f(s,l);if(R-=P,R>0){var x=w+E*_;return{headerLength:P,frameLength:R,stamp:x}}}function d(s,l,w,E,_){var P=c(s.samplerate),R=h(l,w,E,_,P);if(R){var x=R.frameLength,S=R.headerLength,v=R.stamp,T=S+x,U=Math.max(0,w+T-l.length),L;U?(L=new Uint8Array(T-S),L.set(l.subarray(w+S,l.length),0)):L=l.subarray(w+S,w+T);var N={unit:L,pts:v};return U||s.samples.push(N),{sample:N,length:T,missing:U}}}},"./src/demux/base-audio-demuxer.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"initPTSFn",function(){return f});var b=A("./src/polyfills/number.ts"),y=A("./src/demux/id3.ts"),C=A("./src/demux/dummy-demuxed-track.ts"),O=A("./src/utils/mp4-tools.ts"),m=A("./src/utils/typed-array.ts"),e=function(){function a(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var u=a.prototype;return u.resetInitSegment=function(i,r,c){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},u.resetTimeStamp=function(){},u.resetContiguity=function(){},u.canParse=function(i,r){return!1},u.appendFrame=function(i,r,c){},u.demux=function(i,r){this.cachedData&&(i=Object(O.appendUint8Array)(this.cachedData,i),this.cachedData=null);var c=y.getID3Data(i,0),h=c?c.length:0,d,s,l=this._audioTrack,w=this._id3Track,E=c?y.getTimeStamp(c):void 0,_=i.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=f(E,r)),c&&c.length>0&&w.samples.push({pts:this.initPTS,dts:this.initPTS,data:c}),s=this.initPTS;h<_;){if(this.canParse(i,h)){var P=this.appendFrame(l,i,h);P?(this.frameIndex++,s=P.sample.pts,h+=P.length,d=h):h=_}else y.canParse(i,h)?(c=y.getID3Data(i,h),w.samples.push({pts:s,dts:s,data:c}),h+=c.length,d=h):h++;if(h===_&&d!==_){var R=Object(m.sliceUint8)(i,d);this.cachedData?this.cachedData=Object(O.appendUint8Array)(this.cachedData,R):this.cachedData=R}}return{audioTrack:l,avcTrack:Object(C.dummyTrack)(),id3Track:w,textTrack:Object(C.dummyTrack)()}},u.demuxSampleAes=function(i,r,c){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},u.flush=function(i){var r=this.cachedData;return r&&(this.cachedData=null,this.demux(r,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(C.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(C.dummyTrack)()}},u.destroy=function(){},a}(),f=function(u,n){return Object(b.isFiniteNumber)(u)?u*90:n*9e4};g.default=e},"./src/demux/chunk-cache.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return b});var b=function(){function C(){this.chunks=[],this.dataLength=0}var O=C.prototype;return O.push=function(e){this.chunks.push(e),this.dataLength+=e.length},O.flush=function(){var e=this.chunks,f=this.dataLength,a;if(e.length)e.length===1?a=e[0]:a=y(e,f);else return new Uint8Array(0);return this.reset(),a},O.reset=function(){this.chunks.length=0,this.dataLength=0},C}();function y(C,O){for(var m=new Uint8Array(O),e=0,f=0;f<C.length;f++){var a=C[f];m.set(a,e),e+=a.length}return m}},"./src/demux/dummy-demuxed-track.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"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(M,g,A){"use strict";A.r(g);var b=A("./src/utils/logger.ts"),y=function(){function C(m){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=m,this.bytesAvailable=m.byteLength,this.word=0,this.bitsAvailable=0}var O=C.prototype;return O.loadWord=function(){var e=this.data,f=this.bytesAvailable,a=e.byteLength-f,u=new Uint8Array(4),n=Math.min(4,f);if(n===0)throw new Error("no bytes available");u.set(e.subarray(a,a+n)),this.word=new DataView(u.buffer).getUint32(0),this.bitsAvailable=n*8,this.bytesAvailable-=n},O.skipBits=function(e){var f;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,f=e>>3,e-=f>>3,this.bytesAvailable-=f,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},O.readBits=function(e){var f=Math.min(this.bitsAvailable,e),a=this.word>>>32-f;return e>32&&b.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=f,this.bitsAvailable>0?this.word<<=f:this.bytesAvailable>0&&this.loadWord(),f=e-f,f>0&&this.bitsAvailable?a<<f|this.readBits(f):a},O.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!==0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},O.skipUEG=function(){this.skipBits(1+this.skipLZ())},O.skipEG=function(){this.skipBits(1+this.skipLZ())},O.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},O.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},O.readBoolean=function(){return this.readBits(1)===1},O.readUByte=function(){return this.readBits(8)},O.readUShort=function(){return this.readBits(16)},O.readUInt=function(){return this.readBits(32)},O.skipScalingList=function(e){for(var f=8,a=8,u,n=0;n<e;n++)a!==0&&(u=this.readEG(),a=(f+u+256)%256),f=a===0?f:a},O.readSPS=function(){var e=0,f=0,a=0,u=0,n,i,r,c=this.readUByte.bind(this),h=this.readBits.bind(this),d=this.readUEG.bind(this),s=this.readBoolean.bind(this),l=this.skipBits.bind(this),w=this.skipEG.bind(this),E=this.skipUEG.bind(this),_=this.skipScalingList.bind(this);c();var P=c();if(h(5),l(3),c(),E(),P===100||P===110||P===122||P===244||P===44||P===83||P===86||P===118||P===128){var R=d();if(R===3&&l(1),E(),E(),l(1),s())for(i=R!==3?8:12,r=0;r<i;r++)s()&&(r<6?_(16):_(64))}E();var x=d();if(x===0)d();else if(x===1)for(l(1),w(),w(),n=d(),r=0;r<n;r++)w();E(),l(1);var S=d(),v=d(),T=h(1);T===0&&l(1),l(1),s()&&(e=d(),f=d(),a=d(),u=d());var U=[1,1];if(s()&&s()){var L=c();switch(L){case 1:U=[1,1];break;case 2:U=[12,11];break;case 3:U=[10,11];break;case 4:U=[16,11];break;case 5:U=[40,33];break;case 6:U=[24,11];break;case 7:U=[20,11];break;case 8:U=[32,11];break;case 9:U=[80,33];break;case 10:U=[18,11];break;case 11:U=[15,11];break;case 12:U=[64,33];break;case 13:U=[160,99];break;case 14:U=[4,3];break;case 15:U=[3,2];break;case 16:U=[2,1];break;case 255:{U=[c()<<8|c(),c()<<8|c()];break}}}return{width:Math.ceil((S+1)*16-e*2-f*2),height:(2-T)*(v+1)*16-(T?2:4)*(a+u),pixelRatio:U}},O.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},C}();g.default=y},"./src/demux/id3.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"isHeader",function(){return b}),A.d(g,"isFooter",function(){return y}),A.d(g,"getID3Data",function(){return C}),A.d(g,"canParse",function(){return m}),A.d(g,"getTimeStamp",function(){return e}),A.d(g,"isTimeStampFrame",function(){return f}),A.d(g,"getID3Frames",function(){return u}),A.d(g,"decodeFrame",function(){return n}),A.d(g,"utf8ArrayToStr",function(){return d}),A.d(g,"testables",function(){return s});var b=function(_,P){return P+10<=_.length&&(_[P]===73&&_[P+1]===68&&_[P+2]===51&&(_[P+3]<255&&_[P+4]<255&&(_[P+6]<128&&_[P+7]<128&&_[P+8]<128&&_[P+9]<128)))},y=function(_,P){return P+10<=_.length&&(_[P]===51&&_[P+1]===68&&_[P+2]===73&&(_[P+3]<255&&_[P+4]<255&&(_[P+6]<128&&_[P+7]<128&&_[P+8]<128&&_[P+9]<128)))},C=function(_,P){for(var R=P,x=0;b(_,P);){x+=10;var S=O(_,P+6);x+=S,y(_,P+10)&&(x+=10),P+=x}return x>0?_.subarray(R,R+x):void 0},O=function(_,P){var R=0;return R=(_[P]&127)<<21,R|=(_[P+1]&127)<<14,R|=(_[P+2]&127)<<7,R|=_[P+3]&127,R},m=function(_,P){return b(_,P)&&O(_,P+6)+10<=_.length-P},e=function(_){for(var P=u(_),R=0;R<P.length;R++){var x=P[R];if(f(x))return h(x)}return},f=function(_){return _&&_.key==="PRIV"&&_.info==="com.apple.streaming.transportStreamTimestamp"},a=function(_){var P=String.fromCharCode(_[0],_[1],_[2],_[3]),R=O(_,4),x=10;return{type:P,size:R,data:_.subarray(x,x+R)}},u=function(_){for(var P=0,R=[];b(_,P);){var x=O(_,P+6);P+=10;for(var S=P+x;P+8<S;){var v=a(_.subarray(P)),T=n(v);T&&R.push(T),P+=v.size+10}y(_,P)&&(P+=10)}return R},n=function(_){return _.type==="PRIV"?i(_):_.type[0]==="W"?c(_):r(_)},i=function(_){if(_.size<2)return;var P=d(_.data,!0),R=new Uint8Array(_.data.subarray(P.length+1));return{key:_.type,info:P,data:R.buffer}},r=function(_){if(_.size<2)return;if(_.type==="TXXX"){var P=1,R=d(_.data.subarray(P),!0);P+=R.length+1;var x=d(_.data.subarray(P));return{key:_.type,info:R,data:x}}var S=d(_.data.subarray(1));return{key:_.type,data:S}},c=function(_){if(_.type==="WXXX"){if(_.size<2)return;var P=1,R=d(_.data.subarray(P),!0);P+=R.length+1;var x=d(_.data.subarray(P));return{key:_.type,info:R,data:x}}var S=d(_.data);return{key:_.type,data:S}},h=function(_){if(_.data.byteLength===8){var P=new Uint8Array(_.data),R=P[3]&1,x=(P[4]<<23)+(P[5]<<15)+(P[6]<<7)+P[7];return x/=45,R&&(x+=4772185884e-2),Math.round(x)}return},d=function(_,P){P===void 0&&(P=!1);var R=w();if(R){var x=R.decode(_);if(P){var S=x.indexOf("\0");return S!==-1?x.substring(0,S):x}return x.replace(/\0/g,"")}for(var v=_.length,T,U,L,N="",V=0;V<v;){if(T=_[V++],T===0&&P)return N;if(T===0||T===3)continue;switch(T>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:N+=String.fromCharCode(T);break;case 12:case 13:U=_[V++],N+=String.fromCharCode((T&31)<<6|U&63);break;case 14:U=_[V++],L=_[V++],N+=String.fromCharCode((T&15)<<12|(U&63)<<6|(L&63)<<0);break;default:}}return N},s={decodeTextFrame:r},l;function w(){return!l&&typeof self.TextDecoder!="undefined"&&(l=new self.TextDecoder("utf-8")),l}},"./src/demux/mp3demuxer.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/demux/base-audio-demuxer.ts"),y=A("./src/demux/id3.ts"),C=A("./src/utils/logger.ts"),O=A("./src/demux/mpegaudio.ts");function m(a,u){a.prototype=Object.create(u.prototype),a.prototype.constructor=a,e(a,u)}function e(a,u){return e=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i},e(a,u)}var f=function(a){m(u,a);function u(){return a.apply(this,arguments)||this}var n=u.prototype;return n.resetInitSegment=function(r,c,h){a.prototype.resetInitSegment.call(this,r,c,h),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:r,duration:h,inputTimeScale:9e4,dropped:0}},u.probe=function(r){if(!r)return!1;for(var c=y.getID3Data(r,0)||[],h=c.length,d=r.length;h<d;h++)if(O.probe(r,h))return C.logger.log("MPEG Audio sync word found !"),!0;return!1},n.canParse=function(r,c){return O.canParse(r,c)},n.appendFrame=function(r,c,h){return this.initPTS===null?void 0:O.appendFrame(r,c,h,this.initPTS,this.frameIndex)},u}(b.default);f.minProbeByteLength=4,g.default=f},"./src/demux/mp4demuxer.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/utils/mp4-tools.ts"),y=A("./src/demux/dummy-demuxed-track.ts"),C=function(){function O(e,f){this.remainderData=null,this.config=void 0,this.config=f}var m=O.prototype;return m.resetTimeStamp=function(){},m.resetInitSegment=function(){},m.resetContiguity=function(){},O.probe=function(f){return Object(b.findBox)({data:f,start:0,end:Math.min(f.length,16384)},["moof"]).length>0},m.demux=function(f){var a=f,u=Object(y.dummyTrack)();if(this.config.progressive){this.remainderData&&(a=Object(b.appendUint8Array)(this.remainderData,f));var n=Object(b.segmentValidRange)(a);this.remainderData=n.remainder,u.samples=n.valid||new Uint8Array}else u.samples=a;return{audioTrack:Object(y.dummyTrack)(),avcTrack:u,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},m.flush=function(){var f=Object(y.dummyTrack)();return f.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(y.dummyTrack)(),avcTrack:f,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},m.demuxSampleAes=function(f,a,u){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},m.destroy=function(){},O}();C.minProbeByteLength=1024,g.default=C},"./src/demux/mpegaudio.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"appendFrame",function(){return e}),A.d(g,"parseHeader",function(){return f}),A.d(g,"isHeaderPattern",function(){return a}),A.d(g,"isHeader",function(){return u}),A.d(g,"canParse",function(){return n}),A.d(g,"probe",function(){return i});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],C=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],O=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],m=[0,1,1,4];function e(r,c,h,d,s){if(h+24>c.length)return;var l=f(c,h);if(l&&h+l.frameLength<=c.length){var w=l.samplesPerFrame*9e4/l.sampleRate,E=d+s*w,_={unit:c.subarray(h,h+l.frameLength),pts:E,dts:E};return r.config=[],r.channelCount=l.channelCount,r.samplerate=l.sampleRate,r.samples.push(_),{sample:_,length:l.frameLength,missing:0}}}function f(r,c){var h=r[c+1]>>3&3,d=r[c+1]>>1&3,s=r[c+2]>>4&15,l=r[c+2]>>2&3;if(h!==1&&s!==0&&s!==15&&l!==3){var w=r[c+2]>>1&1,E=r[c+3]>>6,_=h===3?3-d:d===3?3:4,P=y[_*14+s-1]*1e3,R=h===3?0:h===2?1:2,x=C[R*3+l],S=E===3?1:2,v=O[h][d],T=m[d],U=v*8*T,L=Math.floor(v*P/x+w)*T;if(b===null){var N=navigator.userAgent||"",V=N.match(/Chrome\/(\d+)/i);b=V?parseInt(V[1]):0}var H=!!b&&b<=87;return H&&d===2&&P>=224e3&&E===0&&(r[c+3]=r[c+3]|128),{sampleRate:x,channelCount:S,frameLength:L,samplesPerFrame:U}}}function a(r,c){return r[c]===255&&(r[c+1]&224)===224&&(r[c+1]&6)!==0}function u(r,c){return c+1<r.length&&a(r,c)}function n(r,c){var h=4;return a(r,c)&&h<=r.length-c}function i(r,c){if(c+1<r.length&&a(r,c)){var h=4,d=f(r,c),s=h;d!=null&&d.frameLength&&(s=d.frameLength);var l=c+s;return l===r.length||u(r,l)}return!1}},"./src/demux/sample-aes.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/crypt/decrypter.ts"),y=A("./src/demux/tsdemuxer.ts"),C=function(){function O(e,f,a){this.keyData=void 0,this.decrypter=void 0,this.keyData=a,this.decrypter=new b.default(e,f,{removePKCS7Padding:!1})}var m=O.prototype;return m.decryptBuffer=function(f,a){this.decrypter.decrypt(f,this.keyData.key.buffer,this.keyData.iv.buffer,a)},m.decryptAacSample=function(f,a,u,n){var i=f[a].unit,r=i.subarray(16,i.length-i.length%16),c=r.buffer.slice(r.byteOffset,r.byteOffset+r.length),h=this;this.decryptBuffer(c,function(d){var s=new Uint8Array(d);i.set(s,16),n||h.decryptAacSamples(f,a+1,u)})},m.decryptAacSamples=function(f,a,u){for(;;a++){if(a>=f.length){u();return}if(f[a].unit.length<32)continue;var n=this.decrypter.isSync();if(this.decryptAacSample(f,a,u,n),!n)return}},m.getAvcEncryptedData=function(f){for(var a=Math.floor((f.length-48)/160)*16+16,u=new Int8Array(a),n=0,i=32;i<=f.length-16;i+=160,n+=16)u.set(f.subarray(i,i+16),n);return u},m.getAvcDecryptedUnit=function(f,a){for(var u=new Uint8Array(a),n=0,i=32;i<=f.length-16;i+=160,n+=16)f.set(u.subarray(n,n+16),i);return f},m.decryptAvcSample=function(f,a,u,n,i,r){var c=Object(y.discardEPB)(i.data),h=this.getAvcEncryptedData(c),d=this;this.decryptBuffer(h.buffer,function(s){i.data=d.getAvcDecryptedUnit(c,s),r||d.decryptAvcSamples(f,a,u+1,n)})},m.decryptAvcSamples=function(f,a,u,n){if(f instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;a++,u=0){if(a>=f.length){n();return}for(var i=f[a].units;!(u>=i.length);u++){var r=i[u];if(r.data.length<=48||r.type!==1&&r.type!==5)continue;var c=this.decrypter.isSync();if(this.decryptAvcSample(f,a,u,n,r,c),!c)return}}},O}();g.default=C},"./src/demux/transmuxer-interface.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return i});var b=A("./node_modules/webworkify-webpack/index.js"),y=A.n(b),C=A("./src/events.ts"),O=A("./src/demux/transmuxer.ts"),m=A("./src/utils/logger.ts"),e=A("./src/errors.ts"),f=A("./src/utils/mediasource-helper.ts"),a=A("./node_modules/eventemitter3/index.js"),u=A.n(a),n=Object(f.getMediaSource)()||{isTypeSupported:function(){return!1}},i=function(){function r(h,d,s,l){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=h,this.id=d,this.onTransmuxComplete=s,this.onFlush=l;var E=h.config,_=function(v,T){T=T||{},T.frag=w.frag,T.id=w.id,h.trigger(v,T)};this.observer=new a.EventEmitter,this.observer.on(C.Events.FRAG_DECRYPTED,_),this.observer.on(C.Events.ERROR,_);var P={mp4:n.isTypeSupported("video/mp4"),mpeg:n.isTypeSupported("audio/mpeg"),mp3:n.isTypeSupported('audio/mp4; codecs="mp3"')},R=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){m.logger.log("demuxing in webworker");var x;try{x=this.worker=b("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),x.addEventListener("message",this.onwmsg),x.onerror=function(S){h.trigger(C.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(S.message+" ("+S.filename+":"+S.lineno+")")})},x.postMessage({cmd:"init",typeSupported:P,vendor:R,id:d,config:JSON.stringify(E)})}catch(S){m.logger.warn("Error in worker:",S),m.logger.error("Error while initializing DemuxerWorker, fallback to inline"),x&&self.URL.revokeObjectURL(x.objectURL),this.transmuxer=new O.default(this.observer,P,E,R,d),this.worker=null}}else this.transmuxer=new O.default(this.observer,P,E,R,d)}var c=r.prototype;return c.destroy=function(){var d=this.worker;if(d)d.removeEventListener("message",this.onwmsg),d.terminate(),this.worker=null;else{var s=this.transmuxer;s&&(s.destroy(),this.transmuxer=null)}var l=this.observer;l&&l.removeAllListeners(),this.observer=null},c.push=function(d,s,l,w,E,_,P,R,x,S){var v=this;x.transmuxing.start=self.performance.now();var T=this.transmuxer,U=this.worker,L=_?_.start:E.start,N=E.decryptdata,V=this.frag,H=!(V&&E.cc===V.cc),D=!(V&&x.level===V.level),W=V?x.sn-V.sn:-1,F=this.part?x.part-this.part.index:1,I=!D&&(W===1||W===0&&F===1),K=self.performance.now();(D||W||E.stats.parsing.start===0)&&(E.stats.parsing.start=K),_&&(F||!I)&&(_.stats.parsing.start=K);var ee=new O.TransmuxState(H,I,R,D,L);if(!I||H){m.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+x.sn+" p: "+x.part+" level: "+x.level+" id: "+x.id+`
discontinuity: `+H+`
trackSwitch: `+D+`
contiguous: `+I+`
accurateTimeOffset: `+R+`
timeOffset: `+L);var he=new O.TransmuxConfig(l,w,s,P,S);this.configureTransmuxer(he)}if(this.frag=E,this.part=_,U)U.postMessage({cmd:"demux",data:d,decryptdata:N,chunkMeta:x,state:ee},d instanceof ArrayBuffer?[d]:[]);else if(T){var de=T.push(d,N,x,ee);Object(O.isPromise)(de)?de.then(function(Se){v.handleTransmuxComplete(Se)}):this.handleTransmuxComplete(de)}},c.flush=function(d){var s=this;d.transmuxing.start=self.performance.now();var l=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:d});else if(l){var E=l.flush(d);Object(O.isPromise)(E)?E.then(function(_){s.handleFlushResult(_,d)}):this.handleFlushResult(E,d)}},c.handleFlushResult=function(d,s){var l=this;d.forEach(function(w){l.handleTransmuxComplete(w)}),this.onFlush(s)},c.onWorkerMessage=function(d){var s=d.data,l=this.hls;switch(s.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(s.data);break}case"flush":{this.onFlush(s.data);break}default:{s.data=s.data||{},s.data.frag=this.frag,s.data.id=this.id,l.trigger(s.event,s.data);break}}},c.configureTransmuxer=function(d){var s=this.worker,l=this.transmuxer;s?s.postMessage({cmd:"configure",config:d}):l&&l.configure(d)},c.handleTransmuxComplete=function(d){d.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(d)},r}()},"./src/demux/transmuxer-worker.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return e});var b=A("./src/demux/transmuxer.ts"),y=A("./src/events.ts"),C=A("./src/utils/logger.ts"),O=A("./node_modules/eventemitter3/index.js"),m=A.n(O);function e(i){var r=new O.EventEmitter,c=function(d,s){i.postMessage({event:d,data:s})};r.on(y.Events.FRAG_DECRYPTED,c),r.on(y.Events.ERROR,c),i.addEventListener("message",function(h){var d=h.data;switch(d.cmd){case"init":{var s=JSON.parse(d.config);i.transmuxer=new b.default(r,d.typeSupported,s,d.vendor,d.id),Object(C.enableLogs)(s.debug),c("init",null);break}case"configure":{i.transmuxer.configure(d.config);break}case"demux":{var l=i.transmuxer.push(d.data,d.decryptdata,d.chunkMeta,d.state);Object(b.isPromise)(l)?l.then(function(_){f(i,_)}):f(i,l);break}case"flush":{var w=d.chunkMeta,E=i.transmuxer.flush(w);Object(b.isPromise)(E)?E.then(function(_){u(i,_,w)}):u(i,E,w);break}default:break}})}function f(i,r){if(n(r.remuxResult))return;var c=[],h=r.remuxResult,d=h.audio,s=h.video;d&&a(c,d),s&&a(c,s),i.postMessage({event:"transmuxComplete",data:r},c)}function a(i,r){r.data1&&i.push(r.data1.buffer),r.data2&&i.push(r.data2.buffer)}function u(i,r,c){r.forEach(function(h){f(i,h)}),i.postMessage({event:"flush",data:c})}function n(i){return!i.audio&&!i.video&&!i.text&&!i.id3&&!i.initSegment}},"./src/demux/transmuxer.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return s}),A.d(g,"isPromise",function(){return E}),A.d(g,"TransmuxConfig",function(){return _}),A.d(g,"TransmuxState",function(){return P});var b=A("./src/events.ts"),y=A("./src/errors.ts"),C=A("./src/crypt/decrypter.ts"),O=A("./src/demux/aacdemuxer.ts"),m=A("./src/demux/mp4demuxer.ts"),e=A("./src/demux/tsdemuxer.ts"),f=A("./src/demux/mp3demuxer.ts"),a=A("./src/remux/mp4-remuxer.ts"),u=A("./src/remux/passthrough-remuxer.ts"),n=A("./src/demux/chunk-cache.ts"),i=A("./src/utils/mp4-tools.ts"),r=A("./src/utils/logger.ts"),c;try{c=self.performance.now.bind(self.performance)}catch(R){r.logger.debug("Unable to use Performance API on this environment"),c=self.Date.now}var h=[{demux:e.default,remux:a.default},{demux:m.default,remux:u.default},{demux:O.default,remux:a.default},{demux:f.default,remux:a.default}],d=1024;h.forEach(function(R){var x=R.demux;d=Math.max(d,x.minProbeByteLength)});var s=function(){function R(S,v,T,U,L){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 n.default,this.observer=S,this.typeSupported=v,this.config=T,this.vendor=U,this.id=L}var x=R.prototype;return x.configure=function(v){this.transmuxConfig=v,this.decrypter&&this.decrypter.reset()},x.push=function(v,T,U,L){var N=this,V=U.transmuxing;V.executeStart=c();var H=new Uint8Array(v),D=this.cache,W=this.config,F=this.currentTransmuxState,I=this.transmuxConfig;L&&(this.currentTransmuxState=L);var K=l(H,T);if(K&&K.method==="AES-128"){var ee=this.getDecrypter();if(W.enableSoftwareAES){var he=ee.softwareDecrypt(H,K.key.buffer,K.iv.buffer);if(!he)return V.executeEnd=c(),w(U);H=new Uint8Array(he)}else return this.decryptionPromise=ee.webCryptoDecrypt(H,K.key.buffer,K.iv.buffer).then(function(te){var Q=N.push(te,null,U);return N.decryptionPromise=null,Q}),this.decryptionPromise}var de=L||F,Se=de.contiguous,Te=de.discontinuity,ce=de.trackSwitch,be=de.accurateTimeOffset,ye=de.timeOffset,ue=I.audioCodec,se=I.videoCodec,$=I.defaultInitPts,me=I.duration,re=I.initSegmentData;if((Te||ce)&&this.resetInitSegment(re,ue,se,me),Te&&this.resetInitialTimestamp($),Se||this.resetContiguity(),this.needsProbing(H,Te,ce)){if(D.dataLength){var ae=D.flush();H=Object(i.appendUint8Array)(ae,H)}this.configureTransmuxer(H,I)}var Oe=this.transmux(H,K,ye,be,U),le=this.currentTransmuxState;return le.contiguous=!0,le.discontinuity=!1,le.trackSwitch=!1,V.executeEnd=c(),Oe},x.flush=function(v){var T=this,U=v.transmuxing;U.executeStart=c();var L=this.decrypter,N=this.cache,V=this.currentTransmuxState,H=this.decryptionPromise;if(H)return H.then(function(){return T.flush(v)});var D=[],W=V.timeOffset;if(L){var F=L.flush();F&&D.push(this.push(F,null,v))}var I=N.dataLength;N.reset();var K=this.demuxer,ee=this.remuxer;if(!K||!ee)return I>=d&&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"}),U.executeEnd=c(),[w(v)];var he=K.flush(W);return E(he)?he.then(function(de){return T.flushRemux(D,de,v),D}):(this.flushRemux(D,he,v),D)},x.flushRemux=function(v,T,U){var L=T.audioTrack,N=T.avcTrack,V=T.id3Track,H=T.textTrack,D=this.currentTransmuxState,W=D.accurateTimeOffset,F=D.timeOffset;r.logger.log("[transmuxer.ts]: Flushed fragment "+U.sn+(U.part>-1?" p: "+U.part:"")+" of level "+U.level);var I=this.remuxer.remux(L,N,V,H,F,W,!0,this.id);v.push({remuxResult:I,chunkMeta:U}),U.transmuxing.executeEnd=c()},x.resetInitialTimestamp=function(v){var T=this.demuxer,U=this.remuxer;if(!T||!U)return;T.resetTimeStamp(v),U.resetTimeStamp(v)},x.resetContiguity=function(){var v=this.demuxer,T=this.remuxer;if(!v||!T)return;v.resetContiguity(),T.resetNextTimestamp()},x.resetInitSegment=function(v,T,U,L){var N=this.demuxer,V=this.remuxer;if(!N||!V)return;N.resetInitSegment(T,U,L),V.resetInitSegment(v,T,U)},x.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},x.transmux=function(v,T,U,L,N){var V;return T&&T.method==="SAMPLE-AES"?V=this.transmuxSampleAes(v,T,U,L,N):V=this.transmuxUnencrypted(v,U,L,N),V},x.transmuxUnencrypted=function(v,T,U,L){var N=this.demuxer.demux(v,T,!1,!this.config.progressive),V=N.audioTrack,H=N.avcTrack,D=N.id3Track,W=N.textTrack,F=this.remuxer.remux(V,H,D,W,T,U,!1,this.id);return{remuxResult:F,chunkMeta:L}},x.transmuxSampleAes=function(v,T,U,L,N){var V=this;return this.demuxer.demuxSampleAes(v,T,U).then(function(H){var D=V.remuxer.remux(H.audioTrack,H.avcTrack,H.id3Track,H.textTrack,U,L,!1,V.id);return{remuxResult:D,chunkMeta:N}})},x.configureTransmuxer=function(v,T){for(var U=this.config,L=this.observer,N=this.typeSupported,V=this.vendor,H=T.audioCodec,D=T.defaultInitPts,W=T.duration,F=T.initSegmentData,I=T.videoCodec,K,ee=0,he=h.length;ee<he;ee++)if(h[ee].demux.probe(v)){K=h[ee];break}K||(r.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),K={demux:m.default,remux:u.default});var de=this.demuxer,Se=this.remuxer,Te=K.remux,ce=K.demux;(!Se||!(Se instanceof Te))&&(this.remuxer=new Te(L,U,N,V)),(!de||!(de instanceof ce))&&(this.demuxer=new ce(L,U,N),this.probe=ce.probe),this.resetInitSegment(F,H,I,W),this.resetInitialTimestamp(D)},x.needsProbing=function(v,T,U){return!this.demuxer||!this.remuxer||T||U},x.getDecrypter=function(){var v=this.decrypter;return v||(v=this.decrypter=new C.default(this.observer,this.config)),v},R}();function l(R,x){var S=null;return R.byteLength>0&&x!=null&&x.key!=null&&x.iv!==null&&x.method!=null&&(S=x),S}var w=function(x){return{remuxResult:{},chunkMeta:x}};function E(R){return"then"in R&&R.then instanceof Function}var _=function(x,S,v,T,U){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=x,this.videoCodec=S,this.initSegmentData=v,this.duration=T,this.defaultInitPts=U},P=function(x,S,v,T,U){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=x,this.contiguous=S,this.accurateTimeOffset=v,this.trackSwitch=T,this.timeOffset=U}},"./src/demux/tsdemuxer.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"discardEPB",function(){return w});var b=A("./src/demux/adts.ts"),y=A("./src/demux/mpegaudio.ts"),C=A("./src/demux/exp-golomb.ts"),O=A("./src/demux/id3.ts"),m=A("./src/demux/sample-aes.ts"),e=A("./src/events.ts"),f=A("./src/utils/mp4-tools.ts"),a=A("./src/utils/logger.ts"),u=A("./src/errors.ts"),n={video:1,audio:2,id3:3,text:4},i=function(){function E(P,R,x){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=x}E.probe=function(R){var x=E.syncOffset(R);return x<0?!1:(x&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+x+", junk ahead ?"),!0)},E.syncOffset=function(R){for(var x=Math.min(1e3,R.length-3*188),S=0;S<x;){if(R[S]===71&&R[S+188]===71&&R[S+2*188]===71)return S;S++}return-1},E.createTrack=function(R,x){return{container:R==="video"||R==="audio"?"video/mp2t":void 0,type:R,id:n[R],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:R==="audio"?x:void 0}};var _=E.prototype;return _.resetInitSegment=function(R,x,S){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=E.createTrack("video",S),this._audioTrack=E.createTrack("audio",S),this._id3Track=E.createTrack("id3",S),this._txtTrack=E.createTrack("text",S),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=R,this.videoCodec=x,this._duration=S},_.resetTimeStamp=function(){},_.resetContiguity=function(){var R=this._audioTrack,x=this._avcTrack,S=this._id3Track;R&&(R.pesData=null),x&&(x.pesData=null),S&&(S.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},_.demux=function(R,x,S,v){S===void 0&&(S=!1),v===void 0&&(v=!1),S||(this.sampleAes=null);var T,U=this._avcTrack,L=this._audioTrack,N=this._id3Track,V=U.pid,H=U.pesData,D=L.pid,W=N.pid,F=L.pesData,I=N.pesData,K=!1,ee=this.pmtParsed,he=this._pmtId,de=R.length;if(this.remainderData&&(R=Object(f.appendUint8Array)(this.remainderData,R),de=R.length,this.remainderData=null),de<188&&!v)return this.remainderData=R,{audioTrack:L,avcTrack:U,id3Track:N,textTrack:this._txtTrack};var Se=Math.max(0,E.syncOffset(R));de-=(de+Se)%188,de<R.byteLength&&!v&&(this.remainderData=new Uint8Array(R.buffer,de,R.buffer.byteLength-de));for(var Te=Se;Te<de;Te+=188)if(R[Te]===71){var ce=!!(R[Te+1]&64),be=((R[Te+1]&31)<<8)+R[Te+2],ye=(R[Te+3]&48)>>4,ue=void 0;if(ye>1){if(ue=Te+5+R[Te+4],ue===Te+188)continue}else ue=Te+4;switch(be){case V:ce&&(H&&(T=d(H))&&this.parseAVCPES(T,!1),H={data:[],size:0}),H&&(H.data.push(R.subarray(ue,Te+188)),H.size+=Te+188-ue);break;case D:ce&&(F&&(T=d(F))&&(L.isAAC?this.parseAACPES(T):this.parseMPEGPES(T)),F={data:[],size:0}),F&&(F.data.push(R.subarray(ue,Te+188)),F.size+=Te+188-ue);break;case W:ce&&(I&&(T=d(I))&&this.parseID3PES(T),I={data:[],size:0}),I&&(I.data.push(R.subarray(ue,Te+188)),I.size+=Te+188-ue);break;case 0:ce&&(ue+=R[ue]+1),he=this._pmtId=c(R,ue);break;case he:{ce&&(ue+=R[ue]+1);var se=h(R,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,S);V=se.avc,V>0&&(U.pid=V),D=se.audio,D>0&&(L.pid=D,L.isAAC=se.isAAC),W=se.id3,W>0&&(N.pid=W),K&&!ee&&(a.logger.log("reparse from beginning"),K=!1,Te=Se-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:K=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});U.pesData=H,L.pesData=F,N.pesData=I;var $={audioTrack:L,avcTrack:U,id3Track:N,textTrack:this._txtTrack};return v&&this.extractRemainingSamples($),$},_.flush=function(){var R=this.remainderData;this.remainderData=null;var x;return R?x=this.demux(R,-1,!1,!0):x={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(x),this.sampleAes?this.decrypt(x,this.sampleAes):x},_.extractRemainingSamples=function(R){var x=R.audioTrack,S=R.avcTrack,v=R.id3Track,T=S.pesData,U=x.pesData,L=v.pesData,N;T&&(N=d(T))?(this.parseAVCPES(N,!0),S.pesData=null):S.pesData=T,U&&(N=d(U))?(x.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),x.pesData=null):(U!=null&&U.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),x.pesData=U),L&&(N=d(L))?(this.parseID3PES(N),v.pesData=null):v.pesData=L},_.demuxSampleAes=function(R,x,S){var v=this.demux(R,S,!0,!this.config.progressive),T=this.sampleAes=new m.default(this.observer,this.config,x);return this.decrypt(v,T)},_.decrypt=function(R,x){return new Promise(function(S){var v=R.audioTrack,T=R.avcTrack;v.samples&&v.isAAC?x.decryptAacSamples(v.samples,0,function(){T.samples?x.decryptAvcSamples(T.samples,0,0,function(){S(R)}):S(R)}):T.samples&&x.decryptAvcSamples(T.samples,0,0,function(){S(R)})})},_.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},_.parseAVCPES=function(R,x){var S=this,v=this._avcTrack,T=this.parseAVCNALu(R.data),U=!1,L=this.avcSample,N,V=!1;R.data=null,L&&T.length&&!v.audFound&&(s(L,v),L=this.avcSample=r(!1,R.pts,R.dts,"")),T.forEach(function(H){switch(H.type){case 1:{N=!0,L||(L=S.avcSample=r(!0,R.pts,R.dts,"")),U&&(L.debug+="NDR "),L.frame=!0;var D=H.data;if(V&&D.length>4){var W=new C.default(D).readSliceType();(W===2||W===4||W===7||W===9)&&(L.key=!0)}break}case 5:N=!0,L||(L=S.avcSample=r(!0,R.pts,R.dts,"")),U&&(L.debug+="IDR "),L.key=!0,L.frame=!0;break;case 6:{N=!0,U&&L&&(L.debug+="SEI ");var F=new C.default(w(H.data));F.readUByte();for(var I=0,K=0,ee=!1,he=0;!ee&&F.bytesAvailable>1;){I=0;do he=F.readUByte(),I+=he;while(he===255);K=0;do he=F.readUByte(),K+=he;while(he===255);if(I===4&&F.bytesAvailable!==0){ee=!0;var de=F.readUByte();if(de===181){var Se=F.readUShort();if(Se===49){var Te=F.readUInt();if(Te===1195456820){var ce=F.readUByte();if(ce===3){for(var be=F.readUByte(),ye=F.readUByte(),ue=31&be,se=[be,ye],$=0;$<ue;$++)se.push(F.readUByte()),se.push(F.readUByte()),se.push(F.readUByte());l(S._txtTrack.samples,{type:3,pts:R.pts,bytes:se})}}}}}else if(I===5&&F.bytesAvailable!==0){if(ee=!0,K>16){for(var me=[],re=0;re<16;re++)me.push(F.readUByte().toString(16)),(re===3||re===5||re===7||re===9)&&me.push("-");for(var ae=K-16,Oe=new Uint8Array(ae),le=0;le<ae;le++)Oe[le]=F.readUByte();l(S._txtTrack.samples,{pts:R.pts,payloadType:I,uuid:me.join(""),userData:Object(O.utf8ArrayToStr)(Oe),userDataBytes:Oe})}}else if(K<F.bytesAvailable)for(var te=0;te<K;te++)F.readUByte()}break}case 7:if(N=!0,V=!0,U&&L&&(L.debug+="SPS "),!v.sps){var Q=new C.default(H.data),J=Q.readSPS();v.width=J.width,v.height=J.height,v.pixelRatio=J.pixelRatio,v.sps=[H.data],v.duration=S._duration;for(var ve=H.data.subarray(1,4),_e="avc1.",Ae=0;Ae<3;Ae++){var Je=ve[Ae].toString(16);Je.length<2&&(Je="0"+Je),_e+=Je}v.codec=_e}break;case 8:N=!0,U&&L&&(L.debug+="PPS "),v.pps||(v.pps=[H.data]);break;case 9:N=!1,v.audFound=!0,L&&s(L,v),L=S.avcSample=r(!1,R.pts,R.dts,U?"AUD ":"");break;case 12:N=!1;break;default:N=!1,L&&(L.debug+="unknown NAL "+H.type+" ");break}if(L&&N){var tt=L.units;tt.push(H)}}),x&&L&&(s(L,v),this.avcSample=null)},_.getLastNalUnit=function(){var R,x=this.avcSample,S;if(!x||x.units.length===0){var v=this._avcTrack.samples;x=v[v.length-1]}if((R=x)!==null&&R!==void 0&&R.units){var T=x.units;S=T[T.length-1]}return S},_.parseAVCNALu=function(R){var x=R.byteLength,S=this._avcTrack,v=S.naluState||0,T=v,U=[],L=0,N,V,H,D=-1,W=0;for(v===-1&&(D=0,W=R[0]&31,v=0,L=1);L<x;){if(N=R[L++],!v){v=N?0:1;continue}if(v===1){v=N?0:2;continue}if(!N)v=3;else if(N===1){if(D>=0){var F={data:R.subarray(D,L-v-1),type:W};U.push(F)}else{var I=this.getLastNalUnit();if(I&&(T&&L<=4-T&&(I.state&&(I.data=I.data.subarray(0,I.data.byteLength-T))),V=L-v-1,V>0)){var K=new Uint8Array(I.data.byteLength+V);K.set(I.data,0),K.set(R.subarray(0,V),I.data.byteLength),I.data=K,I.state=0}}L<x?(H=R[L]&31,D=L,W=H,v=0):v=-1}else v=0}if(D>=0&&v>=0){var ee={data:R.subarray(D,x),type:W,state:v};U.push(ee)}if(U.length===0){var he=this.getLastNalUnit();if(he){var de=new Uint8Array(he.data.byteLength+R.byteLength);de.set(he.data,0),de.set(R,he.data.byteLength),he.data=de}}return S.naluState=v,U},_.parseAACPES=function(R){var x=0,S=this._audioTrack,v=this.aacOverFlow,T=R.data;if(v){this.aacOverFlow=null;var U=v.sample.unit.byteLength,L=Math.min(v.missing,U),N=U-L;v.sample.unit.set(T.subarray(0,L),N),S.samples.push(v.sample),x=v.missing}var V,H;for(V=x,H=T.length;V<H-1&&!b.isHeader(T,V);V++);if(V!==x){var D,W;if(V<H-1?(D="AAC PES did not start with ADTS header,offset:"+V,W=!1):(D="no ADTS header found in AAC PES",W=!0),a.logger.warn("parsing error:"+D),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:W,reason:D}),W)return}b.initTrackConfig(S,this.observer,T,V,this.audioCodec);var F;if(R.pts!==void 0)F=R.pts;else if(v){var I=b.getFrameDuration(S.samplerate);F=v.sample.pts+I}else{a.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var K=0;V<H;)if(b.isHeader(T,V)){if(V+5<H){var ee=b.appendFrame(S,T,V,F,K);if(ee)if(ee.missing)this.aacOverFlow=ee;else{V+=ee.length,K++;continue}}break}else V++},_.parseMPEGPES=function(R){var x=R.data,S=x.length,v=0,T=0,U=R.pts;if(U===void 0){a.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;T<S;)if(y.isHeader(x,T)){var L=y.appendFrame(this._audioTrack,x,T,U,v);if(L)T+=L.length,v++;else break}else T++},_.parseID3PES=function(R){if(R.pts===void 0){a.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(R)},E}();i.minProbeByteLength=188;function r(E,_,P,R){return{key:E,frame:!1,pts:_,dts:P,units:[],debug:R,length:0}}function c(E,_){return(E[_+10]&31)<<8|E[_+11]}function h(E,_,P,R){var x={audio:-1,avc:-1,id3:-1,isAAC:!0},S=(E[_+1]&15)<<8|E[_+2],v=_+3+S-4,T=(E[_+10]&15)<<8|E[_+11];for(_+=12+T;_<v;){var U=(E[_+1]&31)<<8|E[_+2];switch(E[_]){case 207:if(!R){a.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:x.audio===-1&&(x.audio=U);break;case 21:x.id3===-1&&(x.id3=U);break;case 219:if(!R){a.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:x.avc===-1&&(x.avc=U);break;case 3:case 4:P?x.audio===-1&&(x.audio=U,x.isAAC=!1):a.logger.log("MPEG audio found, not supported in this browser");break;case 36:a.logger.warn("Unsupported HEVC stream type found");break;default:break}_+=((E[_+3]&15)<<8|E[_+4])+5}return x}function d(E){var _=0,P,R,x,S,v,T=E.data;if(!E||E.size===0)return null;for(;T[0].length<19&&T.length>1;){var U=new Uint8Array(T[0].length+T[1].length);U.set(T[0]),U.set(T[1],T[0].length),T[0]=U,T.splice(1,1)}P=T[0];var L=(P[0]<<16)+(P[1]<<8)+P[2];if(L===1){if(R=(P[4]<<8)+P[5],R&&R>E.size-6)return null;var N=P[7];N&192&&(S=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,N&64?(v=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,S-v>60*9e4&&(a.logger.warn(Math.round((S-v)/9e4)+"s delta between PTS and DTS, align them"),S=v)):v=S),x=P[8];var V=x+9;if(E.size<=V)return null;E.size-=V;for(var H=new Uint8Array(E.size),D=0,W=T.length;D<W;D++){P=T[D];var F=P.byteLength;if(V)if(V>F){V-=F;continue}else P=P.subarray(V),F-=V,V=0;H.set(P,_),_+=F}return R&&(R-=x+3),{data:H,pts:S,dts:v,len:R}}return null}function s(E,_){if(E.units.length&&E.frame){if(E.pts===void 0){var P=_.samples,R=P.length;if(R){var x=P[R-1];E.pts=x.pts,E.dts=x.dts}else{_.dropped++;return}}_.samples.push(E)}E.debug.length&&a.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function l(E,_){var P=E.length;if(P>0){if(_.pts>=E[P-1].pts)E.push(_);else for(var R=P-1;R>=0;R--)if(_.pts<E[R].pts){E.splice(R,0,_);break}}else E.push(_)}function w(E){for(var _=E.byteLength,P=[],R=1;R<_-2;)E[R]===0&&E[R+1]===0&&E[R+2]===3?(P.push(R+2),R+=2):R++;if(P.length===0)return E;var x=_-P.length,S=new Uint8Array(x),v=0;for(R=0;R<x;v++,R++)v===P[0]&&(v++,P.shift()),S[R]=E[v];return S}g.default=i},"./src/errors.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"ErrorTypes",function(){return b}),A.d(g,"ErrorDetails",function(){return y});var b;(function(C){C.NETWORK_ERROR="networkError",C.MEDIA_ERROR="mediaError",C.KEY_SYSTEM_ERROR="keySystemError",C.MUX_ERROR="muxError",C.OTHER_ERROR="otherError"})(b||(b={}));var y;(function(C){C.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",C.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",C.KEY_SYSTEM_NO_SESSION="keySystemNoSession",C.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",C.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",C.MANIFEST_LOAD_ERROR="manifestLoadError",C.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",C.MANIFEST_PARSING_ERROR="manifestParsingError",C.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",C.LEVEL_EMPTY_ERROR="levelEmptyError",C.LEVEL_LOAD_ERROR="levelLoadError",C.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",C.LEVEL_SWITCH_ERROR="levelSwitchError",C.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",C.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",C.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",C.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",C.FRAG_LOAD_ERROR="fragLoadError",C.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",C.FRAG_DECRYPT_ERROR="fragDecryptError",C.FRAG_PARSING_ERROR="fragParsingError",C.REMUX_ALLOC_ERROR="remuxAllocError",C.KEY_LOAD_ERROR="keyLoadError",C.KEY_LOAD_TIMEOUT="keyLoadTimeOut",C.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",C.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",C.BUFFER_APPEND_ERROR="bufferAppendError",C.BUFFER_APPENDING_ERROR="bufferAppendingError",C.BUFFER_STALLED_ERROR="bufferStalledError",C.BUFFER_FULL_ERROR="bufferFullError",C.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",C.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",C.INTERNAL_EXCEPTION="internalException",C.INTERNAL_ABORTED="aborted",C.UNKNOWN="unknown"})(y||(y={}))},"./src/events.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"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(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return E});var b=A("./node_modules/url-toolkit/src/url-toolkit.js"),y=A.n(b),C=A("./src/loader/playlist-loader.ts"),O=A("./src/loader/key-loader.ts"),m=A("./src/controller/id3-track-controller.ts"),e=A("./src/controller/latency-controller.ts"),f=A("./src/controller/level-controller.ts"),a=A("./src/controller/fragment-tracker.ts"),u=A("./src/controller/stream-controller.ts"),n=A("./src/is-supported.ts"),i=A("./src/utils/logger.ts"),r=A("./src/config.ts"),c=A("./node_modules/eventemitter3/index.js"),h=A.n(c),d=A("./src/events.ts"),s=A("./src/errors.ts");function l(_,P){for(var R=0;R<P.length;R++){var x=P[R];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}function w(_,P,R){return P&&l(_.prototype,P),R&&l(_,R),_}var E=function(){_.isSupported=function(){return Object(n.isSupported)()};function _(R){R===void 0&&(R={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new c.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 x=this.config=Object(r.mergeConfig)(_.DefaultConfig,R);this.userConfig=R,Object(i.enableLogs)(x.debug),this._autoLevelCapping=-1,x.progressive&&Object(r.enableStreamingMode)(x);var S=x.abrController,v=x.bufferController,T=x.capLevelController,U=x.fpsController,L=this.abrController=new S(this),N=this.bufferController=new v(this),V=this.capLevelController=new T(this),H=new U(this),D=new C.default(this),W=new O.default(this),F=new m.default(this),I=this.levelController=new f.default(this),K=new a.FragmentTracker(this),ee=this.streamController=new u.default(this,K);V.setStreamController(ee),H.setStreamController(ee);var he=[I,ee];this.networkControllers=he;var de=[D,W,L,N,V,H,F,K];this.audioTrackController=this.createController(x.audioTrackController,null,he),this.createController(x.audioStreamController,K,he),this.subtitleTrackController=this.createController(x.subtitleTrackController,null,he),this.createController(x.subtitleStreamController,K,he),this.createController(x.timelineController,null,de),this.emeController=this.createController(x.emeController,null,de),this.cmcdController=this.createController(x.cmcdController,null,de),this.latencyController=this.createController(e.default,null,de),this.coreComponents=de}var P=_.prototype;return P.createController=function(x,S,v){if(x){var T=S?new x(this,S):new x(this);return v&&v.push(T),T}return null},P.on=function(x,S,v){v===void 0&&(v=this),this._emitter.on(x,S,v)},P.once=function(x,S,v){v===void 0&&(v=this),this._emitter.once(x,S,v)},P.removeAllListeners=function(x){this._emitter.removeAllListeners(x)},P.off=function(x,S,v,T){v===void 0&&(v=this),this._emitter.off(x,S,v,T)},P.listeners=function(x){return this._emitter.listeners(x)},P.emit=function(x,S,v){return this._emitter.emit(x,S,v)},P.trigger=function(x,S){if(this.config.debug)return this.emit(x,x,S);try{return this.emit(x,x,S)}catch(v){i.logger.error("An internal error happened while handling event "+x+'. Error message: "'+v.message+'". Here is a stacktrace:',v),this.trigger(d.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:x,error:v})}return!1},P.listenerCount=function(x){return this._emitter.listenerCount(x)},P.destroy=function(){i.logger.log("destroy"),this.trigger(d.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(x){return x.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(x){return x.destroy()}),this.coreComponents.length=0},P.attachMedia=function(x){i.logger.log("attachMedia"),this._media=x,this.trigger(d.Events.MEDIA_ATTACHING,{media:x})},P.detachMedia=function(){i.logger.log("detachMedia"),this.trigger(d.Events.MEDIA_DETACHING,void 0),this._media=null},P.loadSource=function(x){this.stopLoad();var S=this.media,v=this.url,T=this.url=b.buildAbsoluteURL(self.location.href,x,{alwaysNormalize:!0});i.logger.log("loadSource:"+T),S&&v&&v!==T&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(S)),this.trigger(d.Events.MANIFEST_LOADING,{url:x})},P.startLoad=function(x){x===void 0&&(x=-1),i.logger.log("startLoad("+x+")"),this.networkControllers.forEach(function(S){S.startLoad(x)})},P.stopLoad=function(){i.logger.log("stopLoad"),this.networkControllers.forEach(function(x){x.stopLoad()})},P.swapAudioCodec=function(){i.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},P.recoverMediaError=function(){i.logger.log("recoverMediaError");var x=this._media;this.detachMedia(),x&&this.attachMedia(x)},P.removeLevel=function(x,S){S===void 0&&(S=0),this.levelController.removeLevel(x,S)},w(_,[{key:"levels",get:function(){var x=this.levelController.levels;return x||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(x){i.logger.log("set currentLevel:"+x),this.loadLevel=x,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(x){i.logger.log("set nextLevel:"+x),this.levelController.manualLevel=x,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(x){i.logger.log("set loadLevel:"+x),this.levelController.manualLevel=x}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(x){this.levelController.nextLoadLevel=x}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(x){i.logger.log("set firstLevel:"+x),this.levelController.firstLevel=x}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(x){i.logger.log("set startLevel:"+x),x!==-1&&(x=Math.max(x,this.minAutoLevel)),this.levelController.startLevel=x}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(x){var S=!!x;S!==this.config.capLevelToPlayerSize&&(S?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=S)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(x){this._autoLevelCapping!==x&&(i.logger.log("set autoLevelCapping:"+x),this._autoLevelCapping=x)}},{key:"bandwidthEstimate",get:function(){var x=this.abrController.bwEstimator;return x?x.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var x=this.levels,S=this.config.minAutoBitrate;if(!x)return 0;for(var v=x.length,T=0;T<v;T++)if(x[T].maxBitrate>S)return T;return 0}},{key:"maxAutoLevel",get:function(){var x=this.levels,S=this.autoLevelCapping,v;return S===-1&&x&&x.length?v=x.length-1:v=S,v}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(x){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,x)}},{key:"audioTracks",get:function(){var x=this.audioTrackController;return x?x.audioTracks:[]}},{key:"audioTrack",get:function(){var x=this.audioTrackController;return x?x.audioTrack:-1},set:function(x){var S=this.audioTrackController;S&&(S.audioTrack=x)}},{key:"subtitleTracks",get:function(){var x=this.subtitleTrackController;return x?x.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var x=this.subtitleTrackController;return x?x.subtitleTrack:-1},set:function(x){var S=this.subtitleTrackController;S&&(S.subtitleTrack=x)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var x=this.subtitleTrackController;return x?x.subtitleDisplay:!1},set:function(x){var S=this.subtitleTrackController;S&&(S.subtitleDisplay=x)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(x){this.config.lowLatencyMode=x}},{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 d.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return _.defaultConfig?_.defaultConfig:r.hlsDefaultConfig},set:function(x){_.defaultConfig=x}}]),_}();E.defaultConfig=void 0},"./src/is-supported.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"isSupported",function(){return C}),A.d(g,"changeTypeSupported",function(){return O});var b=A("./src/utils/mediasource-helper.ts");function y(){return self.SourceBuffer||self.WebKitSourceBuffer}function C(){var m=Object(b.getMediaSource)();if(!m)return!1;var e=y(),f=m&&typeof m.isTypeSupported=="function"&&m.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!f&&!!a}function O(){var m,e=y();return typeof(e==null||((m=e.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return i}),A.d(g,"LoadError",function(){return c});var b=A("./src/polyfills/number.ts"),y=A("./src/errors.ts");function C(h,d){h.prototype=Object.create(d.prototype),h.prototype.constructor=h,a(h,d)}function O(h){var d=typeof Map=="function"?new Map:void 0;return O=function(l){if(l===null||!f(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d!="undefined"){if(d.has(l))return d.get(l);d.set(l,w)}function w(){return m(l,arguments,u(this).constructor)}return w.prototype=Object.create(l.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),a(w,l)},O(h)}function m(h,d,s){return e()?m=Reflect.construct:m=function(w,E,_){var P=[null];P.push.apply(P,E);var R=Function.bind.apply(w,P),x=new R;return _&&a(x,_.prototype),x},m.apply(null,arguments)}function e(){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(h){return!1}}function f(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function a(h,d){return a=Object.setPrototypeOf||function(l,w){return l.__proto__=w,l},a(h,d)}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},u(h)}var n=Math.pow(2,17),i=function(){function h(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var d=h.prototype;return d.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},d.abort=function(){this.loader&&this.loader.abort()},d.load=function(l,w){var E=this,_=l.url;if(!_)return Promise.reject(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,networkDetails:null},"Fragment does not have a "+(_?"part list":"url")));this.abort();var P=this.config,R=P.fLoader,x=P.loader;return new Promise(function(S,v){E.loader&&E.loader.destroy();var T=E.loader=l.loader=R?new R(P):new x(P),U=r(l),L={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};l.stats=T.stats,T.load(U,L,{onSuccess:function(V,H,D,W){E.resetLoader(l,T),S({frag:l,part:null,payload:V.data,networkDetails:W})},onError:function(V,H,D){E.resetLoader(l,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,response:V,networkDetails:D}))},onAbort:function(V,H,D){E.resetLoader(l,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,networkDetails:D}))},onTimeout:function(V,H,D){E.resetLoader(l,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,networkDetails:D}))},onProgress:function(V,H,D,W){w&&w({frag:l,part:null,payload:D,networkDetails:W})}})})},d.loadPart=function(l,w,E){var _=this;this.abort();var P=this.config,R=P.fLoader,x=P.loader;return new Promise(function(S,v){_.loader&&_.loader.destroy();var T=_.loader=l.loader=R?new R(P):new x(P),U=r(l,w),L={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};w.stats=T.stats,T.load(U,L,{onSuccess:function(V,H,D,W){_.resetLoader(l,T),_.updateStatsFromPart(l,w);var F={frag:l,part:w,payload:V.data,networkDetails:W};E(F),S(F)},onError:function(V,H,D){_.resetLoader(l,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,part:w,response:V,networkDetails:D}))},onAbort:function(V,H,D){l.stats.aborted=w.stats.aborted,_.resetLoader(l,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,part:w,networkDetails:D}))},onTimeout:function(V,H,D){_.resetLoader(l,T),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,part:w,networkDetails:D}))}})})},d.updateStatsFromPart=function(l,w){var E=l.stats,_=w.stats,P=_.total;if(E.loaded+=_.loaded,P){var R=Math.round(l.duration/w.duration),x=Math.min(Math.round(E.loaded/P),R),S=R-x,v=S*Math.round(E.loaded/x);E.total=E.loaded+v}else E.total=Math.max(E.loaded,E.total);var T=E.loading,U=_.loading;T.start?T.first+=U.first-U.start:(T.start=U.start,T.first=U.first),T.end=U.end},d.resetLoader=function(l,w){l.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},h}();function r(h,d){d===void 0&&(d=null);var s=d||h,l={frag:h,part:d,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},w=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(b.isFiniteNumber)(w)&&Object(b.isFiniteNumber)(E)&&(l.rangeStart=w,l.rangeEnd=E),l}var c=function(h){C(d,h);function d(s){for(var l,w=arguments.length,E=new Array(w>1?w-1:0),_=1;_<w;_++)E[_-1]=arguments[_];return l=h.call.apply(h,[this].concat(E))||this,l.data=void 0,l.data=s,l}return d}(O(Error))},"./src/loader/fragment.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"ElementaryStreamTypes",function(){return i}),A.d(g,"BaseSegment",function(){return r}),A.d(g,"Fragment",function(){return c}),A.d(g,"Part",function(){return h});var b=A("./src/polyfills/number.ts"),y=A("./node_modules/url-toolkit/src/url-toolkit.js"),C=A.n(y),O=A("./src/utils/logger.ts"),m=A("./src/loader/level-key.ts"),e=A("./src/loader/load-stats.ts");function f(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,a(d,s)}function a(d,s){return a=Object.setPrototypeOf||function(w,E){return w.__proto__=E,w},a(d,s)}function u(d,s){for(var l=0;l<s.length;l++){var w=s[l];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(d,w.key,w)}}function n(d,s,l){return s&&u(d.prototype,s),l&&u(d,l),d}var i;(function(d){d.AUDIO="audio",d.VIDEO="video",d.AUDIOVIDEO="audiovideo"})(i||(i={}));var r=function(){function d(l){var w;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(w={},w[i.AUDIO]=null,w[i.VIDEO]=null,w[i.AUDIOVIDEO]=null,w),this.baseurl=l}var s=d.prototype;return s.setByteRange=function(w,E){var _=w.split("@",2),P=[];_.length===1?P[0]=E?E.byteRangeEndOffset:0:P[0]=parseInt(_[1]),P[1]=parseInt(_[0])+P[0],this._byteRange=P},n(d,[{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}}]),d}(),c=function(d){f(s,d);function s(w,E){var _;return _=d.call(this,E)||this,_._decryptdata=null,_.rawProgramDateTime=null,_.programDateTime=null,_.tagList=[],_.duration=0,_.sn=0,_.levelkey=void 0,_.type=void 0,_.loader=null,_.level=-1,_.cc=0,_.startPTS=void 0,_.endPTS=void 0,_.appendedPTS=void 0,_.startDTS=void 0,_.endDTS=void 0,_.start=0,_.deltaPTS=void 0,_.maxStartPTS=void 0,_.minEndPTS=void 0,_.stats=new e.LoadStats,_.urlId=0,_.data=void 0,_.bitrateTest=!1,_.title=null,_.initSegment=null,_.type=w,_}var l=s.prototype;return l.createInitializationVector=function(E){for(var _=new Uint8Array(16),P=12;P<16;P++)_[P]=E>>8*(15-P)&255;return _},l.setDecryptDataFromLevelKey=function(E,_){var P=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(P=m.LevelKey.fromURI(E.uri),P.method=E.method,P.iv=this.createInitializationVector(_),P.keyFormat="identity"),P},l.setElementaryStreamInfo=function(E,_,P,R,x,S){S===void 0&&(S=!1);var v=this.elementaryStreams,T=v[E];if(!T){v[E]={startPTS:_,endPTS:P,startDTS:R,endDTS:x,partial:S};return}T.startPTS=Math.min(T.startPTS,_),T.endPTS=Math.max(T.endPTS,P),T.startDTS=Math.min(T.startDTS,R),T.endDTS=Math.max(T.endDTS,x)},l.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[i.AUDIO]=null,E[i.VIDEO]=null,E[i.AUDIOVIDEO]=null},n(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&O.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}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 E=Object(b.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),s}(r),h=function(d){f(s,d);function s(l,w,E,_,P){var R;R=d.call(this,E)||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 e.LoadStats,R.duration=l.decimalFloatingPoint("DURATION"),R.gap=l.bool("GAP"),R.independent=l.bool("INDEPENDENT"),R.relurl=l.enumeratedString("URI"),R.fragment=w,R.index=_;var x=l.enumeratedString("BYTERANGE");return x&&R.setByteRange(x,P),P&&(R.fragOffset=P.fragOffset+P.duration),R}return n(s,[{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)}}]),s}(r)},"./src/loader/key-loader.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return O});var b=A("./src/events.ts"),y=A("./src/errors.ts"),C=A("./src/utils/logger.ts"),O=function(){function m(f){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=f,this._registerListeners()}var e=m.prototype;return e._registerListeners=function(){this.hls.on(b.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(b.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var u=this.loaders[a];u&&u.destroy()}this.loaders={}},e.onKeyLoading=function(a,u){var n=u.frag,i=n.type,r=this.loaders[i];if(!n.decryptdata){C.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var c=n.decryptdata.uri;if(c!==this.decrypturl||this.decryptkey===null){var h=this.hls.config;if(r&&(C.logger.warn("abort previous key loader for type:"+i),r.abort()),!c){C.logger.warn("key uri is falsy");return}var d=h.loader,s=n.loader=this.loaders[i]=new d(h);this.decrypturl=c,this.decryptkey=null;var l={url:c,frag:n,responseType:"arraybuffer"},w={timeout:h.fragLoadingTimeOut,maxRetry:0,retryDelay:h.fragLoadingRetryDelay,maxRetryDelay:h.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(l,w,E)}else this.decryptkey&&(n.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:n}))},e.loadsuccess=function(a,u,n){var i=n.frag;if(!i.decryptdata){C.logger.error("after key load, decryptdata unset");return}this.decryptkey=i.decryptdata.key=new Uint8Array(a.data),i.loader=null,delete this.loaders[i.type],this.hls.trigger(b.Events.KEY_LOADED,{frag:i})},e.loaderror=function(a,u){var n=u.frag,i=n.loader;i&&i.abort(),delete this.loaders[n.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:n,response:a})},e.loadtimeout=function(a,u){var n=u.frag,i=n.loader;i&&i.abort(),delete this.loaders[n.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:n})},m}()},"./src/loader/level-details.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"LevelDetails",function(){return m});var b=A("./src/polyfills/number.ts");function y(e,f){for(var a=0;a<f.length;a++){var u=f[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function C(e,f,a){return f&&y(e.prototype,f),a&&y(e,a),e}var O=10,m=function(){function e(a){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=a}var f=e.prototype;return f.reloaded=function(u){if(!u){this.advanced=!0,this.updated=!0;return}var n=this.lastPartSn-u.lastPartSn,i=this.lastPartIndex-u.lastPartIndex;this.updated=this.endSN!==u.endSN||!!i||!!n,this.advanced=this.endSN>u.endSN||n>0||n===0&&i>0,this.updated||this.advanced?this.misses=Math.floor(u.misses*.6):this.misses=u.misses+1,this.availabilityDelay=u.availabilityDelay},C(e,[{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||O}},{key:"drift",get:function(){var u=this.driftEndTime-this.driftStartTime;if(u>0){var n=this.driftEnd-this.driftStart;return n*1e3/u}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var u;return(u=this.fragments)!==null&&u!==void 0&&u.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 u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"LevelKey",function(){return m});var b=A("./node_modules/url-toolkit/src/url-toolkit.js"),y=A.n(b);function C(e,f){for(var a=0;a<f.length;a++){var u=f[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function O(e,f,a){return f&&C(e.prototype,f),a&&C(e,a),e}var m=function(){e.fromURL=function(a,u){return new e(a,u)},e.fromURI=function(a){return new e(a)};function e(f,a){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,a?this._uri=Object(b.buildAbsoluteURL)(f,a,{alwaysNormalize:!0}):this._uri=f}return O(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"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(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return s});var b=A("./src/polyfills/number.ts"),y=A("./node_modules/url-toolkit/src/url-toolkit.js"),C=A.n(y),O=A("./src/loader/fragment.ts"),m=A("./src/loader/level-details.ts"),e=A("./src/loader/level-key.ts"),f=A("./src/utils/attr-list.ts"),a=A("./src/utils/logger.ts"),u=A("./src/utils/codecs.ts"),n=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,i=/#EXT-X-MEDIA:(.*)/g,r=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),c=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("|")),h=/\.(mp4|m4s|m4v|m4a)$/i;function d(P){var R,x;return h.test((R=(x=y.parseURL(P))===null||x===void 0?void 0:x.path)!=null?R:"")}var s=function(){function P(){}return P.findGroup=function(x,S){for(var v=0;v<x.length;v++){var T=x[v];if(T.id===S)return T}},P.convertAVC1ToAVCOTI=function(x){var S=x.split(".");if(S.length>2){var v=S.shift()+".";return v+=parseInt(S.shift()).toString(16),v+=("000"+parseInt(S.shift()).toString(16)).substr(-4),v}return x},P.resolve=function(x,S){return y.buildAbsoluteURL(S,x,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(x,S){var v=[],T={},U=!1;n.lastIndex=0;for(var L;(L=n.exec(x))!=null;)if(L[1]){var N=new f.AttrList(L[1]),V={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:P.resolve(L[2],S)},H=N.decimalResolution("RESOLUTION");H&&(V.width=H.width,V.height=H.height),l((N.CODECS||"").split(/[ ,]+/).filter(function(W){return W}),V),V.videoCodec&&V.videoCodec.indexOf("avc1")!==-1&&(V.videoCodec=P.convertAVC1ToAVCOTI(V.videoCodec)),v.push(V)}else if(L[3]){var D=new f.AttrList(L[3]);D["DATA-ID"]&&(U=!0,T[D["DATA-ID"]]=D)}return{levels:v,sessionData:U?T:null}},P.parseMasterPlaylistMedia=function(x,S,v,T){T===void 0&&(T=[]);var U,L=[],N=0;for(i.lastIndex=0;(U=i.exec(x))!==null;){var V=new f.AttrList(U[1]);if(V.TYPE===v){var H={attrs:V,bitrate:0,id:N++,groupId:V["GROUP-ID"],instreamId:V["INSTREAM-ID"],name:V.NAME||V.LANGUAGE||"",type:v,default:V.bool("DEFAULT"),autoselect:V.bool("AUTOSELECT"),forced:V.bool("FORCED"),lang:V.LANGUAGE,url:V.URI?P.resolve(V.URI,S):""};if(T.length){var D=P.findGroup(T,H.groupId)||T[0];w(H,D,"audioCodec"),w(H,D,"textCodec")}L.push(H)}}return L},P.parseLevelPlaylist=function(x,S,v,T,U){var L=new m.LevelDetails(S),N=L.fragments,V=null,H=0,D=0,W=0,F=0,I=null,K=new O.Fragment(T,S),ee,he,de,Se=-1,Te=!1;for(r.lastIndex=0,L.m3u8=x;(ee=r.exec(x))!==null;){Te&&(Te=!1,K=new O.Fragment(T,S),K.start=W,K.sn=H,K.cc=F,K.level=v,V&&(K.initSegment=V,K.rawProgramDateTime=V.rawProgramDateTime));var ce=ee[1];if(ce){K.duration=parseFloat(ce);var be=(" "+ee[2]).slice(1);K.title=be||null,K.tagList.push(be?["INF",ce,be]:["INF",ce])}else if(ee[3])Object(b.isFiniteNumber)(K.duration)&&(K.start=W,de&&(K.levelkey=de),K.sn=H,K.level=v,K.cc=F,K.urlId=U,N.push(K),K.relurl=(" "+ee[3]).slice(1),_(K,I),I=K,W+=K.duration,H++,D=0,Te=!0);else if(ee[4]){var ye=(" "+ee[4]).slice(1);I?K.setByteRange(ye,I):K.setByteRange(ye)}else if(ee[5])K.rawProgramDateTime=(" "+ee[5]).slice(1),K.tagList.push(["PROGRAM-DATE-TIME",K.rawProgramDateTime]),Se===-1&&(Se=N.length);else{if(ee=ee[0].match(c),!ee){a.logger.warn("No matches on slow regex match for level playlist!");continue}for(he=1;he<ee.length&&!(typeof ee[he]!="undefined");he++);var ue=(" "+ee[he]).slice(1),se=(" "+ee[he+1]).slice(1),$=ee[he+2]?(" "+ee[he+2]).slice(1):"";switch(ue){case"PLAYLIST-TYPE":L.type=se.toUpperCase();break;case"MEDIA-SEQUENCE":H=L.startSN=parseInt(se);break;case"SKIP":{var me=new f.AttrList(se),re=me.decimalInteger("SKIPPED-SEGMENTS");if(Object(b.isFiniteNumber)(re)){L.skippedSegments=re;for(var ae=re;ae--;)N.unshift(null);H+=re}var Oe=me.enumeratedString("RECENTLY-REMOVED-DATERANGES");Oe&&(L.recentlyRemovedDateranges=Oe.split(" "));break}case"TARGETDURATION":L.targetduration=parseFloat(se);break;case"VERSION":L.version=parseInt(se);break;case"EXTM3U":break;case"ENDLIST":L.live=!1;break;case"#":(se||$)&&K.tagList.push($?[se,$]:[se]);break;case"DIS":F++;case"GAP":K.tagList.push([ue]);break;case"BITRATE":K.tagList.push([ue,se]);break;case"DISCONTINUITY-SEQ":F=parseInt(se);break;case"KEY":{var le,te=new f.AttrList(se),Q=te.enumeratedString("METHOD"),J=te.URI,ve=te.hexadecimalInteger("IV"),_e=te.enumeratedString("KEYFORMATVERSIONS"),Ae=te.enumeratedString("KEYID"),Je=(le=te.enumeratedString("KEYFORMAT"))!=null?le:"identity",tt=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(tt.indexOf(Je)>-1){a.logger.warn("Keyformat "+Je+" is not supported from the manifest");continue}else if(Je!=="identity")continue;Q&&(de=e.LevelKey.fromURL(S,J),J&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(de.method=Q,de.keyFormat=Je,Ae&&(de.keyID=Ae),_e&&(de.keyFormatVersions=_e),de.iv=ve));break}case"START":{var ut=new f.AttrList(se),ht=ut.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(ht)&&(L.startTimeOffset=ht);break}case"MAP":{var vt=new f.AttrList(se);K.relurl=vt.URI,vt.BYTERANGE&&K.setByteRange(vt.BYTERANGE),K.level=v,K.sn="initSegment",de&&(K.levelkey=de),K.initSegment=null,V=K,Te=!0;break}case"SERVER-CONTROL":{var _t=new f.AttrList(se);L.canBlockReload=_t.bool("CAN-BLOCK-RELOAD"),L.canSkipUntil=_t.optionalFloat("CAN-SKIP-UNTIL",0),L.canSkipDateRanges=L.canSkipUntil>0&&_t.bool("CAN-SKIP-DATERANGES"),L.partHoldBack=_t.optionalFloat("PART-HOLD-BACK",0),L.holdBack=_t.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ve=new f.AttrList(se);L.partTarget=Ve.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=L.partList;Ue||(Ue=L.partList=[]);var pt=D>0?Ue[Ue.length-1]:void 0,Ut=D++,Et=new O.Part(new f.AttrList(se),K,S,Ut,pt);Ue.push(Et),K.duration+=Et.duration;break}case"PRELOAD-HINT":{var jt=new f.AttrList(se);L.preloadHint=jt;break}case"RENDITION-REPORT":{var Ze=new f.AttrList(se);L.renditionReports=L.renditionReports||[],L.renditionReports.push(Ze);break}default:a.logger.warn("line parsed but not handled: "+ee);break}}}I&&!I.relurl?(N.pop(),W-=I.duration,L.partList&&(L.fragmentHint=I)):L.partList&&(_(K,I),K.cc=F,L.fragmentHint=K);var Be=N.length,Ye=N[0],Ce=N[Be-1];if(W+=L.skippedSegments*L.targetduration,W>0&&Be&&Ce){L.averagetargetduration=W/Be;var Le=Ce.sn;L.endSN=Le!=="initSegment"?Le:0,Ye&&(L.startCC=Ye.cc,Ye.initSegment||L.fragments.every(function(He){return He.relurl&&d(He.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),K=new O.Fragment(T,S),K.relurl=Ce.relurl,K.level=v,K.sn="initSegment",Ye.initSegment=K,L.needSidxRanges=!0))}else L.endSN=0,L.startCC=0;return L.fragmentHint&&(W+=L.fragmentHint.duration),L.totalduration=W,L.endCC=F,Se>0&&E(N,Se),L},P}();function l(P,R){["video","audio","text"].forEach(function(x){var S=P.filter(function(T){return Object(u.isCodecType)(T,x)});if(S.length){var v=S.filter(function(T){return T.lastIndexOf("avc1",0)===0||T.lastIndexOf("mp4a",0)===0});R[x+"Codec"]=v.length>0?v[0]:S[0],P=P.filter(function(T){return S.indexOf(T)===-1})}}),R.unknownCodecs=P}function w(P,R,x){var S=R[x];S&&(P[x]=S)}function E(P,R){for(var x=P[R],S=R;S--;){var v=P[S];if(!v)return;v.programDateTime=x.programDateTime-v.duration*1e3,x=v}}function _(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(M,g,A){"use strict";A.r(g);var b=A("./src/polyfills/number.ts"),y=A("./src/events.ts"),C=A("./src/errors.ts"),O=A("./src/utils/logger.ts"),m=A("./src/utils/mp4-tools.ts"),e=A("./src/loader/m3u8-parser.ts"),f=A("./src/types/loader.ts"),a=A("./src/utils/attr-list.ts");function u(r){var c=r.type;switch(c){case f.PlaylistContextType.AUDIO_TRACK:return f.PlaylistLevelType.AUDIO;case f.PlaylistContextType.SUBTITLE_TRACK:return f.PlaylistLevelType.SUBTITLE;default:return f.PlaylistLevelType.MAIN}}function n(r,c){var h=r.url;return(h===void 0||h.indexOf("data:")===0)&&(h=c.url),h}var i=function(){function r(h){this.hls=void 0,this.loaders=Object.create(null),this.hls=h,this.registerListeners()}var c=r.prototype;return c.registerListeners=function(){var d=this.hls;d.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.on(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.unregisterListeners=function(){var d=this.hls;d.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.off(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.createInternalLoader=function(d){var s=this.hls.config,l=s.pLoader,w=s.loader,E=l||w,_=new E(s);return d.loader=_,this.loaders[d.type]=_,_},c.getInternalLoader=function(d){return this.loaders[d.type]},c.resetInternalLoader=function(d){this.loaders[d]&&delete this.loaders[d]},c.destroyInternalLoaders=function(){for(var d in this.loaders){var s=this.loaders[d];s&&s.destroy(),this.resetInternalLoader(d)}},c.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},c.onManifestLoading=function(d,s){var l=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:f.PlaylistContextType.MANIFEST,url:l,deliveryDirectives:null})},c.onLevelLoading=function(d,s){var l=s.id,w=s.level,E=s.url,_=s.deliveryDirectives;this.load({id:l,groupId:null,level:w,responseType:"text",type:f.PlaylistContextType.LEVEL,url:E,deliveryDirectives:_})},c.onAudioTrackLoading=function(d,s){var l=s.id,w=s.groupId,E=s.url,_=s.deliveryDirectives;this.load({id:l,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:_})},c.onSubtitleTrackLoading=function(d,s){var l=s.id,w=s.groupId,E=s.url,_=s.deliveryDirectives;this.load({id:l,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:_})},c.load=function(d){var s,l=this.hls.config,w=this.getInternalLoader(d);if(w){var E=w.context;if(E&&E.url===d.url){O.logger.trace("[playlist-loader]: playlist request ongoing");return}O.logger.log("[playlist-loader]: aborting previous loader for type: "+d.type),w.abort()}var _,P,R,x;switch(d.type){case f.PlaylistContextType.MANIFEST:_=l.manifestLoadingMaxRetry,P=l.manifestLoadingTimeOut,R=l.manifestLoadingRetryDelay,x=l.manifestLoadingMaxRetryTimeout;break;case f.PlaylistContextType.LEVEL:case f.PlaylistContextType.AUDIO_TRACK:case f.PlaylistContextType.SUBTITLE_TRACK:_=0,P=l.levelLoadingTimeOut;break;default:_=l.levelLoadingMaxRetry,P=l.levelLoadingTimeOut,R=l.levelLoadingRetryDelay,x=l.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(d),(s=d.deliveryDirectives)!==null&&s!==void 0&&s.part){var S;if(d.type===f.PlaylistContextType.LEVEL&&d.level!==null?S=this.hls.levels[d.level].details:d.type===f.PlaylistContextType.AUDIO_TRACK&&d.id!==null?S=this.hls.audioTracks[d.id].details:d.type===f.PlaylistContextType.SUBTITLE_TRACK&&d.id!==null&&(S=this.hls.subtitleTracks[d.id].details),S){var v=S.partTarget,T=S.targetduration;v&&T&&(P=Math.min(Math.max(v*3,T*.8)*1e3,P))}}var U={timeout:P,maxRetry:_,retryDelay:R,maxRetryDelay:x,highWaterMark:0},L={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(d,U,L)},c.loadsuccess=function(d,s,l,w){if(w===void 0&&(w=null),l.isSidxRequest){this.handleSidxRequest(d,l),this.handlePlaylistLoaded(d,s,l,w);return}this.resetInternalLoader(l.type);var E=d.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(d,l,"no EXTM3U delimiter",w);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(d,s,l,w):this.handleMasterPlaylist(d,s,l,w)},c.loaderror=function(d,s,l){l===void 0&&(l=null),this.handleNetworkError(s,l,!1,d)},c.loadtimeout=function(d,s,l){l===void 0&&(l=null),this.handleNetworkError(s,l,!0)},c.handleMasterPlaylist=function(d,s,l,w){var E=this.hls,_=d.data,P=n(d,l),R=e.default.parseMasterPlaylist(_,P),x=R.levels,S=R.sessionData;if(!x.length){this.handleManifestParsingError(d,l,"no level found in manifest",w);return}var v=x.map(function(H){return{id:H.attrs.AUDIO,audioCodec:H.audioCodec}}),T=x.map(function(H){return{id:H.attrs.SUBTITLES,textCodec:H.textCodec}}),U=e.default.parseMasterPlaylistMedia(_,P,"AUDIO",v),L=e.default.parseMasterPlaylistMedia(_,P,"SUBTITLES",T),N=e.default.parseMasterPlaylistMedia(_,P,"CLOSED-CAPTIONS");if(U.length){var V=U.some(function(H){return!H.url});!V&&x[0].audioCodec&&!x[0].attrs.AUDIO&&(O.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),U.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}E.trigger(y.Events.MANIFEST_LOADED,{levels:x,audioTracks:U,subtitles:L,captions:N,url:P,stats:s,networkDetails:w,sessionData:S})},c.handleTrackOrLevelPlaylist=function(d,s,l,w){var E=this.hls,_=l.id,P=l.level,R=l.type,x=n(d,l),S=Object(b.isFiniteNumber)(_)?_:0,v=Object(b.isFiniteNumber)(P)?P:S,T=u(l),U=e.default.parseLevelPlaylist(d.data,x,v,T,S);if(!U.fragments.length){E.trigger(y.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:x,reason:"no fragments found in level",level:typeof l.level=="number"?l.level:void 0});return}if(R===f.PlaylistContextType.MANIFEST){var L={attrs:new a.AttrList({}),bitrate:0,details:U,name:"",url:x};E.trigger(y.Events.MANIFEST_LOADED,{levels:[L],audioTracks:[],url:x,stats:s,networkDetails:w,sessionData:null})}if(s.parsing.end=performance.now(),U.needSidxRanges){var N,V=(N=U.fragments[0].initSegment)===null||N===void 0?void 0:N.url;this.load({url:V,isSidxRequest:!0,type:R,level:P,levelDetails:U,id:_,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}l.levelDetails=U,this.handlePlaylistLoaded(d,s,l,w)},c.handleSidxRequest=function(d,s){var l=Object(m.parseSegmentIndex)(new Uint8Array(d.data));if(!l)return;var w=l.references,E=s.levelDetails;w.forEach(function(_,P){var R=_.info,x=E.fragments[P];x.byteRange.length===0&&x.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),x.initSegment&&x.initSegment.setByteRange(String(l.moovEndOffset)+"@0")})},c.handleManifestParsingError=function(d,s,l,w){this.hls.trigger(y.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===f.PlaylistContextType.MANIFEST,url:d.url,reason:l,response:d,context:s,networkDetails:w})},c.handleNetworkError=function(d,s,l,w){l===void 0&&(l=!1),O.logger.warn("[playlist-loader]: A network "+(l?"timeout":"error")+" occurred while loading "+d.type+" level: "+d.level+" id: "+d.id+' group-id: "'+d.groupId+'"');var E=C.ErrorDetails.UNKNOWN,_=!1,P=this.getInternalLoader(d);switch(d.type){case f.PlaylistContextType.MANIFEST:E=l?C.ErrorDetails.MANIFEST_LOAD_TIMEOUT:C.ErrorDetails.MANIFEST_LOAD_ERROR,_=!0;break;case f.PlaylistContextType.LEVEL:E=l?C.ErrorDetails.LEVEL_LOAD_TIMEOUT:C.ErrorDetails.LEVEL_LOAD_ERROR,_=!1;break;case f.PlaylistContextType.AUDIO_TRACK:E=l?C.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:C.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,_=!1;break;case f.PlaylistContextType.SUBTITLE_TRACK:E=l?C.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:C.ErrorDetails.SUBTITLE_LOAD_ERROR,_=!1;break}P&&this.resetInternalLoader(d.type);var R={type:C.ErrorTypes.NETWORK_ERROR,details:E,fatal:_,url:d.url,loader:P,context:d,networkDetails:s};w&&(R.response=w),this.hls.trigger(y.Events.ERROR,R)},c.handlePlaylistLoaded=function(d,s,l,w){var E=l.type,_=l.level,P=l.id,R=l.groupId,x=l.loader,S=l.levelDetails,v=l.deliveryDirectives;if(!(S!=null&&S.targetduration)){this.handleManifestParsingError(d,l,"invalid target duration",w);return}if(!x)return;S.live&&(x.getCacheAge&&(S.ageHeader=x.getCacheAge()||0),(!x.getCacheAge||isNaN(S.ageHeader))&&(S.ageHeader=0));switch(E){case f.PlaylistContextType.MANIFEST:case f.PlaylistContextType.LEVEL:this.hls.trigger(y.Events.LEVEL_LOADED,{details:S,level:_||0,id:P||0,stats:s,networkDetails:w,deliveryDirectives:v});break;case f.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(y.Events.AUDIO_TRACK_LOADED,{details:S,id:P||0,groupId:R||"",stats:s,networkDetails:w,deliveryDirectives:v});break;case f.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(y.Events.SUBTITLE_TRACK_LOADED,{details:S,id:P||0,groupId:R||"",stats:s,networkDetails:w,deliveryDirectives:v});break}},r}();g.default=i},"./src/polyfills/number.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"isFiniteNumber",function(){return b}),A.d(g,"MAX_SAFE_INTEGER",function(){return y});var b=Number.isFinite||function(C){return typeof C=="number"&&isFinite(C)},y=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(M,g,A){"use strict";A.r(g);var b=function(){function y(){}return y.getSilentFrame=function(O,m){switch(O){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===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(m===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(m===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(m===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(m===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}();g.default=b},"./src/remux/mp4-generator.ts":function(M,g,A){"use strict";A.r(g);var b=Math.pow(2,32)-1,y=function(){function C(){}return C.init=function(){C.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 m;for(m in C.types)C.types.hasOwnProperty(m)&&(C.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var e=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]),f=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]);C.HDLR_TYPES={video:e,audio:f};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),u=new Uint8Array([0,0,0,0,0,0,0,0]);C.STTS=C.STSC=C.STCO=u,C.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),C.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),C.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),C.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var n=new Uint8Array([105,115,111,109]),i=new Uint8Array([97,118,99,49]),r=new Uint8Array([0,0,0,1]);C.FTYP=C.box(C.types.ftyp,n,r,n,i),C.DINF=C.box(C.types.dinf,C.box(C.types.dref,a))},C.box=function(m){for(var e=8,f=arguments.length,a=new Array(f>1?f-1:0),u=1;u<f;u++)a[u-1]=arguments[u];for(var n=a.length,i=n;n--;)e+=a[n].byteLength;var r=new Uint8Array(e);for(r[0]=e>>24&255,r[1]=e>>16&255,r[2]=e>>8&255,r[3]=e&255,r.set(m,4),n=0,e=8;n<i;n++)r.set(a[n],e),e+=a[n].byteLength;return r},C.hdlr=function(m){return C.box(C.types.hdlr,C.HDLR_TYPES[m])},C.mdat=function(m){return C.box(C.types.mdat,m)},C.mdhd=function(m,e){e*=m;var f=Math.floor(e/(b+1)),a=Math.floor(e%(b+1));return C.box(C.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},C.mdia=function(m){return C.box(C.types.mdia,C.mdhd(m.timescale,m.duration),C.hdlr(m.type),C.minf(m))},C.mfhd=function(m){return C.box(C.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},C.minf=function(m){return m.type==="audio"?C.box(C.types.minf,C.box(C.types.smhd,C.SMHD),C.DINF,C.stbl(m)):C.box(C.types.minf,C.box(C.types.vmhd,C.VMHD),C.DINF,C.stbl(m))},C.moof=function(m,e,f){return C.box(C.types.moof,C.mfhd(m),C.traf(f,e))},C.moov=function(m){for(var e=m.length,f=[];e--;)f[e]=C.trak(m[e]);return C.box.apply(null,[C.types.moov,C.mvhd(m[0].timescale,m[0].duration)].concat(f).concat(C.mvex(m)))},C.mvex=function(m){for(var e=m.length,f=[];e--;)f[e]=C.trex(m[e]);return C.box.apply(null,[C.types.mvex].concat(f))},C.mvhd=function(m,e){e*=m;var f=Math.floor(e/(b+1)),a=Math.floor(e%(b+1)),u=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&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 C.box(C.types.mvhd,u)},C.sdtp=function(m){var e=m.samples||[],f=new Uint8Array(4+e.length),a,u;for(a=0;a<e.length;a++)u=e[a].flags,f[a+4]=u.dependsOn<<4|u.isDependedOn<<2|u.hasRedundancy;return C.box(C.types.sdtp,f)},C.stbl=function(m){return C.box(C.types.stbl,C.stsd(m),C.box(C.types.stts,C.STTS),C.box(C.types.stsc,C.STSC),C.box(C.types.stsz,C.STSZ),C.box(C.types.stco,C.STCO))},C.avc1=function(m){var e=[],f=[],a,u,n;for(a=0;a<m.sps.length;a++)u=m.sps[a],n=u.byteLength,e.push(n>>>8&255),e.push(n&255),e=e.concat(Array.prototype.slice.call(u));for(a=0;a<m.pps.length;a++)u=m.pps[a],n=u.byteLength,f.push(n>>>8&255),f.push(n&255),f=f.concat(Array.prototype.slice.call(u));var i=C.box(C.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|m.sps.length].concat(e).concat([m.pps.length]).concat(f))),r=m.width,c=m.height,h=m.pixelRatio[0],d=m.pixelRatio[1];return C.box(C.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,r>>8&255,r&255,c>>8&255,c&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]),i,C.box(C.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),C.box(C.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,d>>24,d>>16&255,d>>8&255,d&255])))},C.esds=function(m){var e=m.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(m.config).concat([6,1,2]))},C.mp4a=function(m){var e=m.samplerate;return C.box(C.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),C.box(C.types.esds,C.esds(m)))},C.mp3=function(m){var e=m.samplerate;return C.box(C.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},C.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?C.box(C.types.stsd,C.STSD,C.mp3(m)):C.box(C.types.stsd,C.STSD,C.mp4a(m)):C.box(C.types.stsd,C.STSD,C.avc1(m))},C.tkhd=function(m){var e=m.id,f=m.duration*m.timescale,a=m.width,u=m.height,n=Math.floor(f/(b+1)),i=Math.floor(f%(b+1));return C.box(C.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,i>>24,i>>16&255,i>>8&255,i&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,a>>8&255,a&255,0,0,u>>8&255,u&255,0,0]))},C.traf=function(m,e){var f=C.sdtp(m),a=m.id,u=Math.floor(e/(b+1)),n=Math.floor(e%(b+1));return C.box(C.types.traf,C.box(C.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),C.box(C.types.tfdt,new Uint8Array([1,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,n>>24,n>>16&255,n>>8&255,n&255])),C.trun(m,f.length+16+20+8+16+8+8),f)},C.trak=function(m){return m.duration=m.duration||4294967295,C.box(C.types.trak,C.tkhd(m),C.mdia(m))},C.trex=function(m){var e=m.id;return C.box(C.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},C.trun=function(m,e){var f=m.samples||[],a=f.length,u=12+16*a,n=new Uint8Array(u),i,r,c,h,d,s;for(e+=8+u,n.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),i=0;i<a;i++)r=f[i],c=r.duration,h=r.size,d=r.flags,s=r.cts,n.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&240<<8,d.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*i);return C.box(C.types.trun,n)},C.initSegment=function(m){C.types||C.init();var e=C.moov(m),f=new Uint8Array(C.FTYP.byteLength+e.byteLength);return f.set(C.FTYP),f.set(e,C.FTYP.byteLength),f},C}();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,g.default=y},"./src/remux/mp4-remuxer.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return s}),A.d(g,"normalizePts",function(){return l});var b=A("./src/polyfills/number.ts"),y=A("./src/remux/aac-helper.ts"),C=A("./src/remux/mp4-generator.ts"),O=A("./src/events.ts"),m=A("./src/errors.ts"),e=A("./src/utils/logger.ts"),f=A("./src/types/loader.ts"),a=A("./src/utils/timescale-conversion.ts");function u(){return u=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var x=arguments[R];for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(P[S]=x[S])}return P},u.apply(this,arguments)}var n=10*1e3,i=1024,r=1152,c=null,h=null,d=!1,s=function(){function P(x,S,v,T){if(T===void 0&&(T=""),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=x,this.config=S,this.typeSupported=v,this.ISGenerated=!1,c===null){var U=navigator.userAgent||"",L=U.match(/Chrome\/(\d+)/i);c=L?parseInt(L[1]):0}if(h===null){var N=navigator.userAgent.match(/Safari\/(\d+)/i);h=N?parseInt(N[1]):0}d=!!c&&c<75||!!h&&h<600}var R=P.prototype;return R.destroy=function(){},R.resetTimeStamp=function(S){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=S},R.resetNextTimestamp=function(){e.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},R.resetInitSegment=function(){e.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},R.getVideoStartPts=function(S){var v=!1,T=S.reduce(function(U,L){var N=L.pts-U;return N<-4294967296?(v=!0,l(U,L.pts)):N>0?U:L.pts},S[0].pts);return v&&e.logger.debug("PTS rollover detected"),T},R.remux=function(S,v,T,U,L,N,V,H){var D,W,F,I,K,ee,he=L,de=L,Se=S.pid>-1,Te=v.pid>-1,ce=v.samples.length,be=S.samples.length>0,ye=ce>1,ue=(!Se||be)&&(!Te||ye)||this.ISGenerated||V;if(ue){this.ISGenerated||(F=this.generateIS(S,v,L));var se=this.isVideoContiguous,$=-1;if(ye&&($=w(v.samples),!se&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,$>0){e.logger.warn("[mp4-remuxer]: Dropped "+$+" out of "+ce+" video samples due to a missing keyframe");var me=this.getVideoStartPts(v.samples);v.samples=v.samples.slice($),v.dropped+=$,de+=(v.samples[0].pts-me)/(v.timescale||9e4)}else $===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),ee=!1);if(this.ISGenerated){if(be&&ye){var re=this.getVideoStartPts(v.samples),ae=l(S.samples[0].pts,re)-re,Oe=ae/v.inputTimeScale;he+=Math.max(0,Oe),de+=Math.max(0,-Oe)}if(be){if(S.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(S,v,L)),W=this.remuxAudio(S,he,this.isAudioContiguous,N,Te||ye||H===f.PlaylistLevelType.AUDIO?de:void 0),ye){var le=W?W.endPTS-W.startPTS:0;v.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(S,v,L)),D=this.remuxVideo(v,de,se,le)}}else ye&&(D=this.remuxVideo(v,de,se,0));D&&(D.firstKeyFrame=$,D.independent=$!==-1)}}return this.ISGenerated&&(T.samples.length&&(K=this.remuxID3(T,L)),U.samples.length&&(I=this.remuxText(U,L))),{audio:W,video:D,initSegment:F,independent:ee,text:I,id3:K}},R.generateIS=function(S,v,T){var U=S.samples,L=v.samples,N=this.typeSupported,V={},H=!Object(b.isFiniteNumber)(this._initPTS),D="audio/mp4",W,F,I;if(H&&(W=F=Infinity),S.config&&U.length&&(S.timescale=S.samplerate,S.isAAC||(N.mpeg?(D="audio/mpeg",S.codec=""):N.mp3&&(S.codec="mp3")),V.audio={id:"audio",container:D,codec:S.codec,initSegment:!S.isAAC&&N.mpeg?new Uint8Array(0):C.default.initSegment([S]),metadata:{channelCount:S.channelCount}},H&&(I=S.inputTimeScale,W=F=U[0].pts-Math.round(I*T))),v.sps&&v.pps&&L.length&&(v.timescale=v.inputTimeScale,V.video={id:"main",container:"video/mp4",codec:v.codec,initSegment:C.default.initSegment([v]),metadata:{width:v.width,height:v.height}},H)){I=v.inputTimeScale;var K=this.getVideoStartPts(L),ee=Math.round(I*T);F=Math.min(F,l(L[0].dts,K)-ee),W=Math.min(W,K-ee)}if(Object.keys(V).length)return this.ISGenerated=!0,H&&(this._initPTS=W,this._initDTS=F),{tracks:V,initPTS:W,timescale:I}},R.remuxVideo=function(S,v,T,U){var L=S.inputTimeScale,N=S.samples,V=[],H=N.length,D=this._initPTS,W=this.nextAvcDts,F=8,I,K,ee,he=Number.POSITIVE_INFINITY,de=Number.NEGATIVE_INFINITY,Se=0,Te=!1;if(!T||W===null){var ce=v*L,be=N[0].pts-l(N[0].dts,N[0].pts);W=ce-be}for(var ye=0;ye<H;ye++){var ue=N[ye];if(ue.pts=l(ue.pts-D,W),ue.dts=l(ue.dts-D,W),ue.dts>ue.pts){var se=9e4*.2;Se=Math.max(Math.min(Se,ue.pts-ue.dts),-1*se)}ue.dts<N[ye>0?ye-1:ye].dts&&(Te=!0)}Te&&N.sort(function(Ot,Fe){var at=Ot.dts-Fe.dts,ot=Ot.pts-Fe.pts;return at||ot}),K=N[0].dts,ee=N[N.length-1].dts;var $=Math.round((ee-K)/(H-1));if(Se<0){if(Se<$*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(a.toMsFromMpegTsClock)(-$,!0)+" ms");for(var me=Se,re=0;re<H;re++)N[re].dts=me=Math.max(me,N[re].pts-$),N[re].pts=Math.max(me,N[re].pts)}else{e.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(a.toMsFromMpegTsClock)(Se,!0)+" ms to overcome this issue");for(var ae=0;ae<H;ae++)N[ae].dts=N[ae].dts+Se}K=N[0].dts}if(T){var Oe=K-W,le=Oe>$,te=Oe<-1;if(le||te){le?e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Oe,!0)+" ms ("+Oe+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Oe,!0)+" ms ("+Oe+"dts) overlapping between fragments detected"),K=W;var Q=N[0].pts-Oe;N[0].dts=K,N[0].pts=Q,e.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(Q,!0)+"/"+Object(a.toMsFromMpegTsClock)(K,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(Oe,!0)+" ms")}}d&&(K=Math.max(0,K));for(var J=0,ve=0,_e=0;_e<H;_e++){for(var Ae=N[_e],Je=Ae.units,tt=Je.length,ut=0,ht=0;ht<tt;ht++)ut+=Je[ht].data.length;ve+=ut,J+=tt,Ae.length=ut,Ae.dts=Math.max(Ae.dts,K),Ae.pts=Math.max(Ae.pts,Ae.dts,0),he=Math.min(Ae.pts,he),de=Math.max(Ae.pts,de)}ee=N[H-1].dts;var vt=ve+4*J+8,_t;try{_t=new Uint8Array(vt)}catch(Ot){this.observer.emit(O.Events.ERROR,O.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:vt,reason:"fail allocating video mdat "+vt});return}var Ve=new DataView(_t.buffer);Ve.setUint32(0,vt),_t.set(C.default.types.mdat,4);for(var Ue=0;Ue<H;Ue++){for(var pt=N[Ue],Ut=pt.units,Et=0,jt=0,Ze=Ut.length;jt<Ze;jt++){var Be=Ut[jt],Ye=Be.data,Ce=Be.data.byteLength;Ve.setUint32(F,Ce),F+=4,_t.set(Ye,F),F+=Ce,Et+=4+Ce}if(Ue<H-1)I=N[Ue+1].dts-pt.dts;else{var Le=this.config,He=pt.dts-N[Ue>0?Ue-1:Ue].dts;if(Le.stretchShortVideoTrack&&this.nextAudioPts!==null){var je=Math.floor(Le.maxBufferHole*L),Ke=(U?he+U*L:this.nextAudioPts)-pt.pts;Ke>je?(I=Ke-He,I<0&&(I=He),e.logger.log("[mp4-remuxer]: It is approximately "+Ke/90+" ms to the next segment; using duration "+I/90+" ms for the last video frame.")):I=He}else I=He}var it=Math.round(pt.pts-pt.dts);V.push(new E(pt.key,I,Et,it))}if(V.length&&c&&c<70){var Ct=V[0].flags;Ct.dependsOn=2,Ct.isNonSync=0}console.assert(I!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=W=ee+I,this.isVideoContiguous=!0;var Ft=C.default.moof(S.sequenceNumber++,K,u({},S,{samples:V})),Jt="video",Ht={data1:Ft,data2:_t,startPTS:he/L,endPTS:(de+I)/L,startDTS:K/L,endDTS:W/L,type:Jt,hasAudio:!1,hasVideo:!0,nb:V.length,dropped:S.dropped};return S.samples=[],S.dropped=0,console.assert(_t.length,"MDAT length must not be zero"),Ht},R.remuxAudio=function(S,v,T,U,L){var N=S.inputTimeScale,V=S.samplerate?S.samplerate:N,H=N/V,D=S.isAAC?i:r,W=D*H,F=this._initPTS,I=!S.isAAC&&this.typeSupported.mpeg,K=[],ee=S.samples,he=I?0:8,de=this.nextAudioPts||-1,Se=v*N;if(this.isAudioContiguous=T=T||ee.length&&de>0&&(U&&Math.abs(Se-de)<9e3||Math.abs(l(ee[0].pts-F,Se)-de)<20*W),ee.forEach(function(Ye){Ye.pts=l(Ye.pts-F,Se)}),!T||de<0){if(ee=ee.filter(function(Ye){return Ye.pts>=0}),!ee.length)return;L===0?de=0:U?de=Math.max(0,Se):de=ee[0].pts}if(S.isAAC)for(var Te=L!==void 0,ce=this.config.maxAudioFramesDrift,be=0,ye=de;be<ee.length;be++){var ue=ee[be],se=ue.pts,$=se-ye,me=Math.abs(1e3*$/N);if($<=-ce*W&&Te)be===0&&(e.logger.warn("Audio frame @ "+(se/N).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*$/N)+" ms."),this.nextAudioPts=de=ye=se);else if($>=ce*W&&me<n&&Te){var re=Math.round($/W);ye=se-re*W,ye<0&&(re--,ye+=W),be===0&&(this.nextAudioPts=de=ye),e.logger.warn("[mp4-remuxer]: Injecting "+re+" audio frame @ "+(ye/N).toFixed(3)+"s due to "+Math.round(1e3*$/N)+" ms gap.");for(var ae=0;ae<re;ae++){var Oe=Math.max(ye,0),le=y.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);le||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),le=ue.unit.subarray()),ee.splice(be,0,{unit:le,pts:Oe}),ye+=W,be++}}ue.pts=ye,ye+=W}for(var te=null,Q=null,J,ve=0,_e=ee.length;_e--;)ve+=ee[_e].unit.byteLength;for(var Ae=0,Je=ee.length;Ae<Je;Ae++){var tt=ee[Ae],ut=tt.unit,ht=tt.pts;if(Q!==null){var vt=K[Ae-1];vt.duration=Math.round((ht-Q)/H)}else if(T&&S.isAAC&&(ht=de),te=ht,ve>0){ve+=he;try{J=new Uint8Array(ve)}catch(Ye){this.observer.emit(O.Events.ERROR,O.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!I){var _t=new DataView(J.buffer);_t.setUint32(0,ve),J.set(C.default.types.mdat,4)}}else return;J.set(ut,he);var Ve=ut.byteLength;he+=Ve,K.push(new E(!0,D,Ve,0)),Q=ht}var Ue=K.length;if(!Ue)return;var pt=K[K.length-1];this.nextAudioPts=de=Q+H*pt.duration;var Ut=I?new Uint8Array(0):C.default.moof(S.sequenceNumber++,te/H,u({},S,{samples:K}));S.samples=[];var Et=te/N,jt=de/N,Ze="audio",Be={data1:Ut,data2:J,startPTS:Et,endPTS:jt,startDTS:Et,endDTS:jt,type:Ze,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(J.length,"MDAT length must not be zero"),Be},R.remuxEmptyAudio=function(S,v,T,U){var L=S.inputTimeScale,N=S.samplerate?S.samplerate:L,V=L/N,H=this.nextAudioPts,D=(H!==null?H:U.startDTS*L)+this._initDTS,W=U.endDTS*L+this._initDTS,F=V*i,I=Math.ceil((W-D)/F),K=y.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!K){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],he=0;he<I;he++){var de=D+he*F;ee.push({unit:K,pts:de,dts:de})}return S.samples=ee,this.remuxAudio(S,v,T,!1)},R.remuxID3=function(S,v){var T=S.samples.length;if(!T)return;for(var U=S.inputTimeScale,L=this._initPTS,N=this._initDTS,V=0;V<T;V++){var H=S.samples[V];H.pts=l(H.pts-L,v*U)/U,H.dts=l(H.dts-N,v*U)/U}var D=S.samples;return S.samples=[],{samples:D}},R.remuxText=function(S,v){var T=S.samples.length;if(!T)return;for(var U=S.inputTimeScale,L=this._initPTS,N=0;N<T;N++){var V=S.samples[N];V.pts=l(V.pts-L,v*U)/U}S.samples.sort(function(D,W){return D.pts-W.pts});var H=S.samples;return S.samples=[],{samples:H}},P}();function l(P,R){var x;if(R===null)return P;for(R<P?x=-8589934592:x=8589934592;Math.abs(P-R)>4294967296;)P+=x;return P}function w(P){for(var R=0;R<P.length;R++)if(P[R].key)return R;return-1}var E=function(R,x,S,v){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=x,this.size=S,this.cts=v,this.flags=new _(R)},_=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(M,g,A){"use strict";A.r(g);var b=A("./src/polyfills/number.ts"),y=A("./src/utils/mp4-tools.ts"),C=A("./src/loader/fragment.ts"),O=A("./src/utils/logger.ts"),m=function(){function a(){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 u=a.prototype;return u.destroy=function(){},u.resetTimeStamp=function(i){this.initPTS=i,this.lastEndDTS=null},u.resetNextTimestamp=function(){this.lastEndDTS=null},u.resetInitSegment=function(i,r,c){this.audioCodec=r,this.videoCodec=c,this.generateInitSegment(i),this.emitInitSegment=!0},u.generateInitSegment=function(i){var r=this.audioCodec,c=this.videoCodec;if(!i||!i.byteLength){this.initTracks=void 0,this.initData=void 0;return}var h=this.initData=Object(y.parseInitSegment)(i);r||(r=f(h.audio,C.ElementaryStreamTypes.AUDIO)),c||(c=f(h.video,C.ElementaryStreamTypes.VIDEO));var d={};h.audio&&h.video?d.audiovideo={container:"video/mp4",codec:r+","+c,initSegment:i,id:"main"}:h.audio?d.audio={container:"audio/mp4",codec:r,initSegment:i,id:"audio"}:h.video?d.video={container:"video/mp4",codec:c,initSegment:i,id:"main"}:O.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=d},u.remux=function(i,r,c,h,d){var s=this.initPTS,l=this.lastEndDTS,w={audio:void 0,video:void 0,text:h,id3:c,initSegment:void 0};Object(b.isFiniteNumber)(l)||(l=this.lastEndDTS=d||0);var E=r.samples;if(!E||!E.length)return w;var _={initPTS:void 0,timescale:1},P=this.initData;if((!P||!P.length)&&(this.generateInitSegment(E),P=this.initData),!P||!P.length)return O.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),w;this.emitInitSegment&&(_.tracks=this.initTracks,this.emitInitSegment=!1),Object(b.isFiniteNumber)(s)||(this.initPTS=_.initPTS=s=e(P,E,l));var R=Object(y.getDuration)(E,P),x=l,S=R+x;Object(y.offsetStartDTS)(P,E,s),R>0?this.lastEndDTS=S:(O.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var v=!!P.audio,T=!!P.video,U="";v&&(U+="audio"),T&&(U+="video");var L={data1:E,startPTS:x,startDTS:x,endPTS:S,endDTS:S,type:U,hasAudio:v,hasVideo:T,nb:1,dropped:0};return w.audio=L.type==="audio"?L:void 0,w.video=L.type!=="audio"?L:void 0,w.text=h,w.id3=c,w.initSegment=_,w},a}(),e=function(u,n,i){return Object(y.getStartDTS)(u,n)-i};function f(a,u){var n=a==null?void 0:a.codec;return n&&n.length>4?n:n==="hvc1"?"hvc1.1.c.L120.90":n==="av01"?"av01.0.04M.08":n==="avc1"||u===C.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}g.default=m},"./src/task-loop.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"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 C=y.prototype;return C.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},C.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},C.onHandlerDestroyed=function(){},C.hasInterval=function(){return!!this._tickInterval},C.hasNextTick=function(){return!!this._tickTimer},C.setInterval=function(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!0)},C.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},C.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},C.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},C.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},C.doTick=function(){},y}()},"./src/types/cmcd.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"CMCDVersion",function(){return b}),A.d(g,"CMCDObjectType",function(){return y}),A.d(g,"CMCDStreamingFormat",function(){return C}),A.d(g,"CMCDStreamType",function(){return O});var b=1,y;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(y||(y={}));var C;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(C||(C={}));var O;(function(m){m.VOD="v",m.LIVE="l"})(O||(O={}))},"./src/types/level.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"HlsSkip",function(){return C}),A.d(g,"getSkipValue",function(){return O}),A.d(g,"HlsUrlParameters",function(){return m}),A.d(g,"Level",function(){return e});function b(f,a){for(var u=0;u<a.length;u++){var n=a[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(f,n.key,n)}}function y(f,a,u){return a&&b(f.prototype,a),u&&b(f,u),f}var C;(function(f){f.No="",f.Yes="YES",f.v2="v2"})(C||(C={}));function O(f,a){var u=f.canSkipUntil,n=f.canSkipDateRanges,i=f.endSN,r=a!==void 0?a-i:0;return u&&r<u?n?C.v2:C.Yes:C.No}var m=function(){function f(u,n,i){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=u,this.part=n,this.skip=i}var a=f.prototype;return a.addDirectives=function(n){var i=new self.URL(n);return this.msn!==void 0&&i.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&i.searchParams.set("_HLS_part",this.part.toString()),this.skip&&i.searchParams.set("_HLS_skip",this.skip),i.toString()},f}(),e=function(){function f(a){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=[a.url],this.attrs=a.attrs,this.bitrate=a.bitrate,a.details&&(this.details=a.details),this.id=a.id||0,this.name=a.name,this.width=a.width||0,this.height=a.height||0,this.audioCodec=a.audioCodec,this.videoCodec=a.videoCodec,this.unknownCodecs=a.unknownCodecs,this.codecSet=[a.videoCodec,a.audioCodec].filter(function(u){return u}).join(",").replace(/\.[^.,]+/g,"")}return y(f,[{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(u){var n=u%this.url.length;this._urlId!==n&&(this.details=void 0,this._urlId=n)}}]),f}()},"./src/types/loader.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"PlaylistContextType",function(){return b}),A.d(g,"PlaylistLevelType",function(){return y});var b;(function(C){C.MANIFEST="manifest",C.LEVEL="level",C.AUDIO_TRACK="audioTrack",C.SUBTITLE_TRACK="subtitleTrack"})(b||(b={}));var y;(function(C){C.MAIN="main",C.AUDIO="audio",C.SUBTITLE="subtitle"})(y||(y={}))},"./src/types/transmuxer.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"ChunkMetadata",function(){return b});var b=function(O,m,e,f,a,u){f===void 0&&(f=0),a===void 0&&(a=-1),u===void 0&&(u=!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=O,this.sn=m,this.id=e,this.size=f,this.part=a,this.partial=u};function y(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"AttrList",function(){return C});var b=/^(\d+)x(\d+)$/,y=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,C=function(){function O(e){typeof e=="string"&&(e=O.parseAttrList(e));for(var f in e)e.hasOwnProperty(f)&&(this[f]=e[f])}var m=O.prototype;return m.decimalInteger=function(f){var a=parseInt(this[f],10);return a>Number.MAX_SAFE_INTEGER?Infinity:a},m.hexadecimalInteger=function(f){if(this[f]){var a=(this[f]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var u=new Uint8Array(a.length/2),n=0;n<a.length/2;n++)u[n]=parseInt(a.slice(n*2,n*2+2),16);return u}else return null},m.hexadecimalIntegerAsNumber=function(f){var a=parseInt(this[f],16);return a>Number.MAX_SAFE_INTEGER?Infinity:a},m.decimalFloatingPoint=function(f){return parseFloat(this[f])},m.optionalFloat=function(f,a){var u=this[f];return u?parseFloat(u):a},m.enumeratedString=function(f){return this[f]},m.bool=function(f){return this[f]==="YES"},m.decimalResolution=function(f){var a=b.exec(this[f]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},O.parseAttrList=function(f){var a,u={},n='"';for(y.lastIndex=0;(a=y.exec(f))!==null;){var i=a[2];i.indexOf(n)===0&&i.lastIndexOf(n)===i.length-1&&(i=i.slice(1,-1)),u[a[1]]=i}return u},O}()},"./src/utils/binary-search.ts":function(M,g,A){"use strict";A.r(g);var b={search:function(C,O){for(var m=0,e=C.length-1,f=null,a=null;m<=e;){f=(m+e)/2|0,a=C[f];var u=O(a);if(u>0)m=f+1;else if(u<0)e=f-1;else return a}return null}};g.default=b},"./src/utils/buffer-helper.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"BufferHelper",function(){return C});var b=A("./src/utils/logger.ts"),y={length:0,start:function(){return 0},end:function(){return 0}},C=function(){function O(){}return O.isBuffered=function(e,f){try{if(e){for(var a=O.getBuffered(e),u=0;u<a.length;u++)if(f>=a.start(u)&&f<=a.end(u))return!0}}catch(n){}return!1},O.bufferInfo=function(e,f,a){try{if(e){var u=O.getBuffered(e),n=[],i;for(i=0;i<u.length;i++)n.push({start:u.start(i),end:u.end(i)});return this.bufferedInfo(n,f,a)}}catch(r){}return{len:0,start:f,end:f,nextStart:void 0}},O.bufferedInfo=function(e,f,a){f=Math.max(0,f),e.sort(function(_,P){var R=_.start-P.start;return R||P.end-_.end});var u=[];if(a)for(var n=0;n<e.length;n++){var i=u.length;if(i){var r=u[i-1].end;e[n].start-r<a?e[n].end>r&&(u[i-1].end=e[n].end):u.push(e[n])}else u.push(e[n])}else u=e;for(var c=0,h,d=f,s=f,l=0;l<u.length;l++){var w=u[l].start,E=u[l].end;if(f+a>=w&&f<E)d=w,s=E,c=s-f;else if(f+a<w){h=w;break}}return{len:c,start:d||0,end:s||0,nextStart:h}},O.getBuffered=function(e){try{return e.buffered}catch(f){return b.logger.log("failed to get media.buffered",f),y}},O}()},"./src/utils/cea-608-parser.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"Row",function(){return s}),A.d(g,"CaptionScreen",function(){return l});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},C=function(S){var v=S;return y.hasOwnProperty(S)&&(v=y[S]),String.fromCharCode(v)},O=15,m=100,e={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},f={17:2,18:4,21:6,22:8,23:10,19:13,20:15},a={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},u={25:2,26:4,29:6,30:8,31:10,27:13,28:15},n=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],i;(function(x){x[x.ERROR=0]="ERROR",x[x.TEXT=1]="TEXT",x[x.WARNING=2]="WARNING",x[x.INFO=2]="INFO",x[x.DEBUG=3]="DEBUG",x[x.DATA=3]="DATA"})(i||(i={}));var r=function(){function x(){this.time=null,this.verboseLevel=i.ERROR}var S=x.prototype;return S.log=function(T,U){this.verboseLevel>=T&&b.logger.log(this.time+" ["+T+"] "+U)},x}(),c=function(S){for(var v=[],T=0;T<S.length;T++)v.push(S[T].toString(16));return v},h=function(){function x(v,T,U,L,N){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=v||"white",this.underline=T||!1,this.italics=U||!1,this.background=L||"black",this.flash=N||!1}var S=x.prototype;return S.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},S.setStyles=function(T){for(var U=["foreground","underline","italics","background","flash"],L=0;L<U.length;L++){var N=U[L];T.hasOwnProperty(N)&&(this[N]=T[N])}},S.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},S.equals=function(T){return this.foreground===T.foreground&&this.underline===T.underline&&this.italics===T.italics&&this.background===T.background&&this.flash===T.flash},S.copy=function(T){this.foreground=T.foreground,this.underline=T.underline,this.italics=T.italics,this.background=T.background,this.flash=T.flash},S.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},x}(),d=function(){function x(v,T,U,L,N,V){this.uchar=void 0,this.penState=void 0,this.uchar=v||" ",this.penState=new h(T,U,L,N,V)}var S=x.prototype;return S.reset=function(){this.uchar=" ",this.penState.reset()},S.setChar=function(T,U){this.uchar=T,this.penState.copy(U)},S.setPenState=function(T){this.penState.copy(T)},S.equals=function(T){return this.uchar===T.uchar&&this.penState.equals(T.penState)},S.copy=function(T){this.uchar=T.uchar,this.penState.copy(T.penState)},S.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},x}(),s=function(){function x(v){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var T=0;T<m;T++)this.chars.push(new d);this.logger=v,this.pos=0,this.currPenState=new h}var S=x.prototype;return S.equals=function(T){for(var U=!0,L=0;L<m;L++)if(!this.chars[L].equals(T.chars[L])){U=!1;break}return U},S.copy=function(T){for(var U=0;U<m;U++)this.chars[U].copy(T.chars[U])},S.isEmpty=function(){for(var T=!0,U=0;U<m;U++)if(!this.chars[U].isEmpty()){T=!1;break}return T},S.setCursor=function(T){this.pos!==T&&(this.pos=T),this.pos<0?(this.logger.log(i.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>m&&(this.logger.log(i.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},S.moveCursor=function(T){var U=this.pos+T;if(T>1)for(var L=this.pos+1;L<U+1;L++)this.chars[L].setPenState(this.currPenState);this.setCursor(U)},S.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},S.insertChar=function(T){T>=144&&this.backSpace();var U=C(T);if(this.pos>=m){this.logger.log(i.ERROR,"Cannot insert "+T.toString(16)+" ("+U+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(U,this.currPenState),this.moveCursor(1)},S.clearFromPos=function(T){var U;for(U=T;U<m;U++)this.chars[U].reset()},S.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},S.clearToEndOfRow=function(){this.clearFromPos(this.pos)},S.getTextString=function(){for(var T=[],U=!0,L=0;L<m;L++){var N=this.chars[L].uchar;N!==" "&&(U=!1),T.push(N)}return U?"":T.join("")},S.setPenStyles=function(T){this.currPenState.setStyles(T);var U=this.chars[this.pos];U.setPenState(this.currPenState)},x}(),l=function(){function x(v){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var T=0;T<O;T++)this.rows.push(new s(v));this.logger=v,this.currRow=O-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var S=x.prototype;return S.reset=function(){for(var T=0;T<O;T++)this.rows[T].clear();this.currRow=O-1},S.equals=function(T){for(var U=!0,L=0;L<O;L++)if(!this.rows[L].equals(T.rows[L])){U=!1;break}return U},S.copy=function(T){for(var U=0;U<O;U++)this.rows[U].copy(T.rows[U])},S.isEmpty=function(){for(var T=!0,U=0;U<O;U++)if(!this.rows[U].isEmpty()){T=!1;break}return T},S.backSpace=function(){var T=this.rows[this.currRow];T.backSpace()},S.clearToEndOfRow=function(){var T=this.rows[this.currRow];T.clearToEndOfRow()},S.insertChar=function(T){var U=this.rows[this.currRow];U.insertChar(T)},S.setPen=function(T){var U=this.rows[this.currRow];U.setPenStyles(T)},S.moveCursor=function(T){var U=this.rows[this.currRow];U.moveCursor(T)},S.setCursor=function(T){this.logger.log(i.INFO,"setCursor: "+T);var U=this.rows[this.currRow];U.setCursor(T)},S.setPAC=function(T){this.logger.log(i.INFO,"pacData = "+JSON.stringify(T));var U=T.row-1;if(this.nrRollUpRows&&U<this.nrRollUpRows-1&&(U=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==U){for(var L=0;L<O;L++)this.rows[L].clear();var N=this.currRow+1-this.nrRollUpRows,V=this.lastOutputScreen;if(V){var H=V.rows[N].cueStartTime,D=this.logger.time;if(H&&D!==null&&H<D)for(var W=0;W<this.nrRollUpRows;W++)this.rows[U-this.nrRollUpRows+W+1].copy(V.rows[N+W])}}this.currRow=U;var F=this.rows[this.currRow];if(T.indent!==null){var I=T.indent,K=Math.max(I-1,0);F.setCursor(T.indent),T.color=F.chars[K].penState.foreground}var ee={foreground:T.color,underline:T.underline,italics:T.italics,background:"black",flash:!1};this.setPen(ee)},S.setBkgData=function(T){this.logger.log(i.INFO,"bkgData = "+JSON.stringify(T)),this.backSpace(),this.setPen(T),this.insertChar(32)},S.setRollUpRows=function(T){this.nrRollUpRows=T},S.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(i.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(i.TEXT,this.getDisplayText());var T=this.currRow+1-this.nrRollUpRows,U=this.rows.splice(T,1)[0];U.clear(),this.rows.splice(this.currRow,0,U),this.logger.log(i.INFO,"Rolling up")},S.getDisplayText=function(T){T=T||!1;for(var U=[],L="",N=-1,V=0;V<O;V++){var H=this.rows[V].getTextString();H&&(N=V+1,T?U.push("Row "+N+": '"+H+"'"):U.push(H.trim()))}return U.length>0&&(T?L="["+U.join(" | ")+"]":L=U.join(`
`)),L},S.getTextAndFormat=function(){return this.rows},x}(),w=function(){function x(v,T,U){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=v,this.outputFilter=T,this.mode=null,this.verbose=0,this.displayedMemory=new l(U),this.nonDisplayedMemory=new l(U),this.lastOutputScreen=new l(U),this.currRollUpRow=this.displayedMemory.rows[O-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=U}var S=x.prototype;return S.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[O-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},S.getHandler=function(){return this.outputFilter},S.setHandler=function(T){this.outputFilter=T},S.setPAC=function(T){this.writeScreen.setPAC(T)},S.setBkgData=function(T){this.writeScreen.setBkgData(T)},S.setMode=function(T){if(T===this.mode)return;this.mode=T,this.logger.log(i.INFO,"MODE="+T),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=T},S.insertChars=function(T){for(var U=0;U<T.length;U++)this.writeScreen.insertChar(T[U]);var L=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(i.INFO,L+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(i.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},S.ccRCL=function(){this.logger.log(i.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},S.ccBS=function(){if(this.logger.log(i.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},S.ccAOF=function(){},S.ccAON=function(){},S.ccDER=function(){this.logger.log(i.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},S.ccRU=function(T){this.logger.log(i.INFO,"RU("+T+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(T)},S.ccFON=function(){this.logger.log(i.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},S.ccRDC=function(){this.logger.log(i.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},S.ccTR=function(){this.logger.log(i.INFO,"TR"),this.setMode("MODE_TEXT")},S.ccRTD=function(){this.logger.log(i.INFO,"RTD"),this.setMode("MODE_TEXT")},S.ccEDM=function(){this.logger.log(i.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},S.ccCR=function(){this.logger.log(i.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},S.ccENM=function(){this.logger.log(i.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},S.ccEOC=function(){if(this.logger.log(i.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var T=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=T,this.writeScreen=this.nonDisplayedMemory,this.logger.log(i.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},S.ccTO=function(T){this.logger.log(i.INFO,"TO("+T+") - Tab Offset"),this.writeScreen.moveCursor(T)},S.ccMIDROW=function(T){var U={flash:!1};if(U.underline=T%2===1,U.italics=T>=46,U.italics)U.foreground="white";else{var L=Math.floor(T/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];U.foreground=N[L]}this.logger.log(i.INFO,"MIDROW: "+JSON.stringify(U)),this.writeScreen.setPen(U)},S.outputDataUpdate=function(T){T===void 0&&(T=!1);var U=this.logger.time;if(U===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=U:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,U,this.lastOutputScreen),T&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:U),this.lastOutputScreen.copy(this.displayedMemory))},S.cueSplitAtTime=function(T){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,T,this.displayedMemory),this.cueStartTime=T))},x}(),E=function(){function x(v,T,U){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var L=new r;this.channels=[null,new w(v,T,L),new w(v+1,U,L)],this.cmdHistory=R(),this.logger=L}var S=x.prototype;return S.getHandler=function(T){return this.channels[T].getHandler()},S.setHandler=function(T,U){this.channels[T].setHandler(U)},S.addData=function(T,U){var L,N,V,H=!1;this.logger.time=T;for(var D=0;D<U.length;D+=2){if(N=U[D]&127,V=U[D+1]&127,N===0&&V===0)continue;if(this.logger.log(i.DATA,"["+c([U[D],U[D+1]])+"] -> ("+c([N,V])+")"),L=this.parseCmd(N,V),L||(L=this.parseMidrow(N,V)),L||(L=this.parsePAC(N,V)),L||(L=this.parseBackgroundAttributes(N,V)),!L&&(H=this.parseChars(N,V),H)){var W=this.currentChannel;if(W&&W>0){var F=this.channels[W];F.insertChars(H)}else this.logger.log(i.WARNING,"No channel found yet. TEXT-MODE?")}!L&&!H&&this.logger.log(i.WARNING,"Couldn't parse cleaned data "+c([N,V])+" orig: "+c([U[D],U[D+1]]))}},S.parseCmd=function(T,U){var L=this.cmdHistory,N=(T===20||T===28||T===21||T===29)&&U>=32&&U<=47,V=(T===23||T===31)&&U>=33&&U<=35;if(!(N||V))return!1;if(P(T,U,L))return _(null,null,L),this.logger.log(i.DEBUG,"Repeated command ("+c([T,U])+") is dropped"),!0;var H=T===20||T===21||T===23?1:2,D=this.channels[H];return T===20||T===21||T===28||T===29?U===32?D.ccRCL():U===33?D.ccBS():U===34?D.ccAOF():U===35?D.ccAON():U===36?D.ccDER():U===37?D.ccRU(2):U===38?D.ccRU(3):U===39?D.ccRU(4):U===40?D.ccFON():U===41?D.ccRDC():U===42?D.ccTR():U===43?D.ccRTD():U===44?D.ccEDM():U===45?D.ccCR():U===46?D.ccENM():U===47&&D.ccEOC():D.ccTO(U-32),_(T,U,L),this.currentChannel=H,!0},S.parseMidrow=function(T,U){var L=0;if((T===17||T===25)&&U>=32&&U<=47){if(T===17?L=1:L=2,L!==this.currentChannel)return this.logger.log(i.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[L];return N?(N.ccMIDROW(U),this.logger.log(i.DEBUG,"MIDROW ("+c([T,U])+")"),!0):!1}return!1},S.parsePAC=function(T,U){var L,N=this.cmdHistory,V=(T>=17&&T<=23||T>=25&&T<=31)&&U>=64&&U<=127,H=(T===16||T===24)&&U>=64&&U<=95;if(!(V||H))return!1;if(P(T,U,N))return _(null,null,N),!0;var D=T<=23?1:2;U>=64&&U<=95?L=D===1?e[T]:a[T]:L=D===1?f[T]:u[T];var W=this.channels[D];return W?(W.setPAC(this.interpretPAC(L,U)),_(T,U,N),this.currentChannel=D,!0):!1},S.interpretPAC=function(T,U){var L,N={color:null,italics:!1,indent:null,underline:!1,row:T};return U>95?L=U-96:L=U-64,N.underline=(L&1)===1,L<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(L/2)]:L<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((L-16)/2)*4,N},S.parseChars=function(T,U){var L,N=null,V=null;if(T>=25?(L=2,V=T-8):(L=1,V=T),V>=17&&V<=19){var H;V===17?H=U+80:V===18?H=U+112:H=U+144,this.logger.log(i.INFO,"Special char '"+C(H)+"' in channel "+L),N=[H]}else T>=32&&T<=127&&(N=U===0?[T]:[T,U]);if(N){var D=c(N);this.logger.log(i.DEBUG,"Char codes = "+D.join(",")),_(T,U,this.cmdHistory)}return N},S.parseBackgroundAttributes=function(T,U){var L=(T===16||T===24)&&U>=32&&U<=47,N=(T===23||T===31)&&U>=45&&U<=47;if(!(L||N))return!1;var V,H={};T===16||T===24?(V=Math.floor((U-32)/2),H.background=n[V],U%2===1&&(H.background=H.background+"_semi")):U===45?H.background="transparent":(H.foreground="black",U===47&&(H.underline=!0));var D=T<=23?1:2,W=this.channels[D];return W.setBkgData(H),_(T,U,this.cmdHistory),!0},S.reset=function(){for(var T=0;T<Object.keys(this.channels).length;T++){var U=this.channels[T];U&&U.reset()}this.cmdHistory=R()},S.cueSplitAtTime=function(T){for(var U=0;U<this.channels.length;U++){var L=this.channels[U];L&&L.cueSplitAtTime(T)}},x}();function _(x,S,v){v.a=x,v.b=S}function P(x,S,v){return v.a===x&&v.b===S}function R(){return{a:null,b:null}}g.default=E},"./src/utils/codecs.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"isCodecType",function(){return y}),A.d(g,"isCodecSupportedInMp4",function(){return C});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(O,m){var e=b[m];return!!e&&e[O.slice(0,4)]===!0}function C(O,m){return MediaSource.isTypeSupported((m||"video")+'/mp4;codecs="'+O+'"')}},"./src/utils/cues.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/utils/vttparser.ts"),y=A("./src/utils/webvtt-parser.ts"),C=A("./src/utils/texttrack-utils.ts"),O=/\s/,m={newCue:function(f,a,u,n){for(var i=[],r,c,h,d,s,l=self.VTTCue||self.TextTrackCue,w=0;w<n.rows.length;w++)if(r=n.rows[w],h=!0,d=0,s="",!r.isEmpty()){for(var E=0;E<r.chars.length;E++)O.test(r.chars[E].uchar)&&h?d++:(s+=r.chars[E].uchar,h=!1);r.cueStartTime=a,a===u&&(u+=1e-4),d>=16?d--:d++;var _=Object(b.fixLineBreaks)(s.trim()),P=Object(y.generateCueId)(a,u,_);(!f||!f.cues||!f.cues.getCueById(P))&&(c=new l(a,u,_),c.id=P,c.line=w+1,c.align="left",c.position=10+Math.min(80,Math.floor(d*8/32)*10),i.push(c))}return f&&i.length&&(i.sort(function(R,x){return R.line==="auto"||x.line==="auto"?0:R.line>8&&x.line>8?x.line-R.line:R.line-x.line}),i.forEach(function(R){return Object(C.addCueToTrack)(f,R)})),i}};g.default=m},"./src/utils/discontinuities.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"findFirstFragWithCC",function(){return O}),A.d(g,"shouldAlignOnDiscontinuities",function(){return m}),A.d(g,"findDiscontinuousReferenceFrag",function(){return e}),A.d(g,"adjustSlidingStart",function(){return a}),A.d(g,"alignStream",function(){return u}),A.d(g,"alignPDT",function(){return i}),A.d(g,"alignFragmentByPDTDelta",function(){return r}),A.d(g,"alignMediaPlaylistByPDT",function(){return c});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/logger.ts"),C=A("./src/controller/level-helper.ts");function O(h,d){for(var s=null,l=0,w=h.length;l<w;l++){var E=h[l];if(E&&E.cc===d){s=E;break}}return s}function m(h,d,s){return!!(d.details&&(s.endCC>s.startCC||h&&h.cc<s.startCC))}function e(h,d){var s=h.fragments,l=d.fragments;if(!l.length||!s.length){y.logger.log("No fragments to align");return}var w=O(s,l[0].cc);if(!w||w&&!w.startPTS){y.logger.log("No frag in previous level to align on");return}return w}function f(h,d){if(h){var s=h.start+d;h.start=h.startPTS=s,h.endPTS=s+h.duration}}function a(h,d){for(var s=d.fragments,l=0,w=s.length;l<w;l++)f(s[l],h);d.fragmentHint&&f(d.fragmentHint,h),d.alignedSliding=!0}function u(h,d,s){if(!d)return;n(h,s,d),!s.alignedSliding&&d.details&&i(s,d.details),!s.alignedSliding&&d.details&&!s.skippedSegments&&Object(C.adjustSliding)(d.details,s)}function n(h,d,s){if(m(h,s,d)){var l=e(s.details,d);l&&Object(b.isFiniteNumber)(l.start)&&(y.logger.log("Adjusting PTS using last level due to CC increase within current level "+d.url),a(l.start,d))}}function i(h,d){if(!d.fragments.length||!h.hasProgramDateTime||!d.hasProgramDateTime)return;var s=d.fragments[0].programDateTime,l=h.fragments[0].programDateTime,w=(l-s)/1e3+d.fragments[0].start;w&&Object(b.isFiniteNumber)(w)&&(y.logger.log("Adjusting PTS using programDateTime delta "+(l-s)+"ms, sliding:"+w.toFixed(3)+" "+h.url+" "),a(w,h))}function r(h,d){var s=h.programDateTime;if(!s)return;var l=(s-d)/1e3;h.start=h.startPTS=l,h.endPTS=l+h.duration}function c(h,d){if(!d.fragments.length||!h.hasProgramDateTime||!d.hasProgramDateTime)return;var s=d.fragments[0].programDateTime,l=d.fragments[0].start,w=s-l*1e3;h.fragments.forEach(function(E){r(E,w)}),h.fragmentHint&&r(h.fragmentHint,w),h.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/utils/ewma.ts"),y=function(){function C(m,e,f){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=f,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new b.default(m),this.fast_=new b.default(e)}var O=C.prototype;return O.update=function(e,f){var a=this.slow_,u=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new b.default(e,a.getEstimate(),a.getTotalWeight())),this.fast_.halfLife!==f&&(this.fast_=new b.default(f,u.getEstimate(),u.getTotalWeight()))},O.sample=function(e,f){e=Math.max(e,this.minDelayMs_);var a=8*f,u=e/1e3,n=a/u;this.fast_.sample(u,n),this.slow_.sample(u,n)},O.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},O.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},O.destroy=function(){},C}();g.default=y},"./src/utils/ewma.ts":function(M,g,A){"use strict";A.r(g);var b=function(){function y(O,m,e){m===void 0&&(m=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=O,this.alpha_=O?Math.exp(Math.log(.5)/O):0,this.estimate_=m,this.totalWeight_=e}var C=y.prototype;return C.sample=function(m,e){var f=Math.pow(this.alpha_,m);this.estimate_=e*(1-f)+f*this.estimate_,this.totalWeight_+=m},C.getTotalWeight=function(){return this.totalWeight_},C.getEstimate=function(){if(this.alpha_){var m=1-Math.pow(this.alpha_,this.totalWeight_);if(m)return this.estimate_/m}return this.estimate_},y}();g.default=b},"./src/utils/fetch-loader.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"fetchSupported",function(){return r});var b=A("./src/polyfills/number.ts"),y=A("./src/loader/load-stats.ts"),C=A("./src/demux/chunk-cache.ts");function O(l,w){l.prototype=Object.create(w.prototype),l.prototype.constructor=l,u(l,w)}function m(l){var w=typeof Map=="function"?new Map:void 0;return m=function(_){if(_===null||!a(_))return _;if(typeof _!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w!="undefined"){if(w.has(_))return w.get(_);w.set(_,P)}function P(){return e(_,arguments,n(this).constructor)}return P.prototype=Object.create(_.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),u(P,_)},m(l)}function e(l,w,E){return f()?e=Reflect.construct:e=function(P,R,x){var S=[null];S.push.apply(S,R);var v=Function.bind.apply(P,S),T=new v;return x&&u(T,x.prototype),T},e.apply(null,arguments)}function f(){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(l){return!1}}function a(l){return Function.toString.call(l).indexOf("[native code]")!==-1}function u(l,w){return u=Object.setPrototypeOf||function(_,P){return _.__proto__=P,_},u(l,w)}function n(l){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},n(l)}function i(){return i=Object.assign||function(l){for(var w=1;w<arguments.length;w++){var E=arguments[w];for(var _ in E)Object.prototype.hasOwnProperty.call(E,_)&&(l[_]=E[_])}return l},i.apply(this,arguments)}function r(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(l){}return!1}var c=function(){function l(E){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=E.fetchSetup||d,this.controller=new self.AbortController,this.stats=new y.LoadStats}var w=l.prototype;return w.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},w.abortInternal=function(){var _=this.response;(!_||!_.ok)&&(this.stats.aborted=!0,this.controller.abort())},w.abort=function(){var _;this.abortInternal(),(_=this.callbacks)!==null&&_!==void 0&&_.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},w.load=function(_,P,R){var x=this,S=this.stats;if(S.loading.start)throw new Error("Loader can only be used once.");S.loading.start=self.performance.now();var v=h(_,this.controller.signal),T=R.onProgress,U=_.responseType==="arraybuffer",L=U?"byteLength":"length";this.context=_,this.config=P,this.callbacks=R,this.request=this.fetchSetup(_,v),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){x.abortInternal(),R.onTimeout(S,_,x.response)},P.timeout),self.fetch(this.request).then(function(N){if(x.response=x.loader=N,!N.ok){var V=N.status,H=N.statusText;throw new s(H||"fetch, bad network response",V,N)}return S.loading.first=Math.max(self.performance.now(),S.loading.start),S.total=parseInt(N.headers.get("Content-Length")||"0"),T&&Object(b.isFiniteNumber)(P.highWaterMark)?x.loadProgressively(N,S,_,P.highWaterMark,T):U?N.arrayBuffer():N.text()}).then(function(N){var V=x.response;self.clearTimeout(x.requestTimeout),S.loading.end=Math.max(self.performance.now(),S.loading.first),S.loaded=S.total=N[L];var H={url:V.url,data:N};T&&!Object(b.isFiniteNumber)(P.highWaterMark)&&T(S,_,N,V),R.onSuccess(H,S,_,V)}).catch(function(N){if(self.clearTimeout(x.requestTimeout),S.aborted)return;var V=N.code||0;R.onError({code:V,text:N.message},_,N.details)})},w.getCacheAge=function(){var _=null;if(this.response){var P=this.response.headers.get("age");_=P?parseFloat(P):null}return _},w.loadProgressively=function(_,P,R,x,S){x===void 0&&(x=0);var v=new C.default,T=_.body.getReader(),U=function L(){return T.read().then(function(N){if(N.done)return v.dataLength&&S(P,R,v.flush(),_),Promise.resolve(new ArrayBuffer(0));var V=N.value,H=V.length;return P.loaded+=H,H<x||v.dataLength?(v.push(V),v.dataLength>=x&&S(P,R,v.flush(),_)):S(P,R,V,_),L()}).catch(function(){return Promise.reject()})};return U()},l}();function h(l,w){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:w,headers:new self.Headers(i({},l.headers))};return l.rangeEnd&&E.headers.set("Range","bytes="+l.rangeStart+"-"+String(l.rangeEnd-1)),E}function d(l,w){return new self.Request(l.url,w)}var s=function(l){O(w,l);function w(E,_,P){var R;return R=l.call(this,E)||this,R.code=void 0,R.details=void 0,R.code=_,R.details=P,R}return w}(m(Error));g.default=c},"./src/utils/imsc1-ttml-parser.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"IMSC1_CODEC",function(){return a}),A.d(g,"parseIMSC1",function(){return r});var b=A("./src/utils/mp4-tools.ts"),y=A("./src/utils/vttparser.ts"),C=A("./src/utils/vttcue.ts"),O=A("./src/demux/id3.ts"),m=A("./src/utils/timescale-conversion.ts"),e=A("./src/utils/webvtt-parser.ts");function f(){return f=Object.assign||function(x){for(var S=1;S<arguments.length;S++){var v=arguments[S];for(var T in v)Object.prototype.hasOwnProperty.call(v,T)&&(x[T]=v[T])}return x},f.apply(this,arguments)}var a="stpp.ttml.im1t",u=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,n=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,i={left:"start",center:"center",right:"end",start:"start",end:"end"};function r(x,S,v,T,U){var L=Object(b.findBox)(new Uint8Array(x),["mdat"]);if(L.length===0){U(new Error("Could not parse IMSC1 mdat"));return}var N=L[0],V=Object(O.utf8ArrayToStr)(new Uint8Array(x,N.start,N.end-N.start)),H=Object(m.toTimescaleFromScale)(S,1,v);try{T(c(V,H))}catch(D){U(D)}}function c(x,S){var v=new DOMParser,T=v.parseFromString(x,"text/xml"),U=T.getElementsByTagName("tt")[0];if(!U)throw new Error("Invalid ttml");var L={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},N=Object.keys(L).reduce(function(F,I){return F[I]=U.getAttribute("ttp:"+I)||L[I],F},{}),V=U.getAttribute("xml:space")!=="preserve",H=d(h(U,"styling","style")),D=d(h(U,"layout","region")),W=h(U,"body","[begin]");return[].map.call(W,function(F){var I=s(F,V);if(!I||!F.hasAttribute("begin"))return null;var K=_(F.getAttribute("begin"),N),ee=_(F.getAttribute("dur"),N),he=_(F.getAttribute("end"),N);if(K===null)throw E(F);if(he===null){if(ee===null)throw E(F);he=K+ee}var de=new C.default(K-S,he-S,I);de.id=Object(e.generateCueId)(de.startTime,de.endTime,de.text);var Se=D[F.getAttribute("region")],Te=H[F.getAttribute("style")];de.position=10,de.size=80;var ce=l(Se,Te),be=ce.textAlign;if(be){var ye=i[be];ye&&(de.lineAlign=ye),de.align=be}return f(de,ce),de}).filter(function(F){return F!==null})}function h(x,S,v){var T=x.getElementsByTagName(S)[0];return T?[].slice.call(T.querySelectorAll(v)):[]}function d(x){return x.reduce(function(S,v){var T=v.getAttribute("xml:id");return T&&(S[T]=v),S},{})}function s(x,S){return[].slice.call(x.childNodes).reduce(function(v,T,U){var L;return T.nodeName==="br"&&U?v+`
`:(L=T.childNodes)!==null&&L!==void 0&&L.length?s(T,S):S?v+T.textContent.trim().replace(/\s+/g," "):v+T.textContent},"")}function l(x,S){var v="http://www.w3.org/ns/ttml#styling",T=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return T.reduce(function(U,L){var N=w(S,v,L)||w(x,v,L);return N&&(U[L]=N),U},{})}function w(x,S,v){return x.hasAttributeNS(S,v)?x.getAttributeNS(S,v):null}function E(x){return new Error("Could not parse ttml timestamp "+x)}function _(x,S){if(!x)return null;var v=Object(y.parseTimeStamp)(x);return v===null&&(u.test(x)?v=P(x,S):n.test(x)&&(v=R(x,S))),v}function P(x,S){var v=u.exec(x),T=(v[4]|0)+(v[5]|0)/S.subFrameRate;return(v[1]|0)*3600+(v[2]|0)*60+(v[3]|0)+T/S.frameRate}function R(x,S){var v=n.exec(x),T=Number(v[1]),U=v[2];switch(U){case"h":return T*3600;case"m":return T*60;case"ms":return T*1e3;case"f":return T/S.frameRate;case"t":return T/S.tickRate}return T}},"./src/utils/logger.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"enableLogs",function(){return e}),A.d(g,"logger",function(){return f});var b=function(){},y={trace:b,debug:b,log:b,warn:b,info:b,error:b},C=y;function O(a){var u=self.console[a];return u?u.bind(self.console,"["+a+"] >"):b}function m(a){for(var u=arguments.length,n=new Array(u>1?u-1:0),i=1;i<u;i++)n[i-1]=arguments[i];n.forEach(function(r){C[r]=a[r]?a[r].bind(a):O(r)})}function e(a){if(self.console&&a===!0||typeof a=="object"){m(a,"debug","log","info","warn","error");try{C.log()}catch(u){C=y}}else C=y}var f=C},"./src/utils/mediakeys-helper.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"KeySystems",function(){return b}),A.d(g,"requestMediaKeySystemAccess",function(){return y});var b;(function(C){C.WIDEVINE="com.widevine.alpha",C.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(M,g,A){"use strict";A.r(g),A.d(g,"getMediaSource",function(){return b});function b(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"bin2str",function(){return m}),A.d(g,"readUint16",function(){return e}),A.d(g,"readUint32",function(){return f}),A.d(g,"writeUint32",function(){return a}),A.d(g,"findBox",function(){return u}),A.d(g,"parseSegmentIndex",function(){return n}),A.d(g,"parseInitSegment",function(){return i}),A.d(g,"getStartDTS",function(){return r}),A.d(g,"getDuration",function(){return c}),A.d(g,"computeRawDurationFromSamples",function(){return h}),A.d(g,"offsetStartDTS",function(){return d}),A.d(g,"segmentValidRange",function(){return s}),A.d(g,"appendUint8Array",function(){return l});var b=A("./src/utils/typed-array.ts"),y=A("./src/loader/fragment.ts"),C=Math.pow(2,32)-1,O=[].push;function m(w){return String.fromCharCode.apply(null,w)}function e(w,E){"data"in w&&(E+=w.start,w=w.data);var _=w[E]<<8|w[E+1];return _<0?65536+_:_}function f(w,E){"data"in w&&(E+=w.start,w=w.data);var _=w[E]<<24|w[E+1]<<16|w[E+2]<<8|w[E+3];return _<0?4294967296+_:_}function a(w,E,_){"data"in w&&(E+=w.start,w=w.data),w[E]=_>>24,w[E+1]=_>>16&255,w[E+2]=_>>8&255,w[E+3]=_&255}function u(w,E){var _=[];if(!E.length)return _;var P,R,x;"data"in w?(P=w.data,R=w.start,x=w.end):(P=w,R=0,x=P.byteLength);for(var S=R;S<x;){var v=f(P,S),T=m(P.subarray(S+4,S+8)),U=v>1?S+v:x;if(T===E[0])if(E.length===1)_.push({data:P,start:S+8,end:U});else{var L=u({data:P,start:S+8,end:U},E.slice(1));L.length&&O.apply(_,L)}S=U}return _}function n(w){var E=u(w,["moov"]),_=E[0],P=_?_.end:null,R=u(w,["sidx"]);if(!R||!R[0])return null;var x=[],S=R[0],v=S.data[0],T=v===0?8:16,U=f(S,T);T+=4;var L=0,N=0;v===0?T+=8:T+=16,T+=2;var V=S.end+N,H=e(S,T);T+=2;for(var D=0;D<H;D++){var W=T,F=f(S,W);W+=4;var I=F&2147483647,K=(F&2147483648)>>>31;if(K===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ee=f(S,W);W+=4,x.push({referenceSize:I,subsegmentDuration:ee,info:{duration:ee/U,start:V,end:V+I-1}}),V+=I,W+=4,T=W}return{earliestPresentationTime:L,timescale:U,version:v,referencesCount:H,references:x,moovEndOffset:P}}function i(w){for(var E=[],_=u(w,["moov","trak"]),P=0;P<_.length;P++){var R=_[P],x=u(R,["tkhd"])[0];if(x){var S=x.data[x.start],v=S===0?12:20,T=f(x,v),U=u(R,["mdia","mdhd"])[0];if(U){S=U.data[U.start],v=S===0?12:20;var L=f(U,v),N=u(R,["mdia","hdlr"])[0];if(N){var V=m(N.data.subarray(N.start+8,N.start+12)),H={soun:y.ElementaryStreamTypes.AUDIO,vide:y.ElementaryStreamTypes.VIDEO}[V];if(H){var D=u(R,["mdia","minf","stbl","stsd"])[0],W=void 0;D&&(W=m(D.data.subarray(D.start+12,D.start+16))),E[T]={timescale:L,type:H},E[H]={timescale:L,id:T,codec:W}}}}}}var F=u(w,["moov","mvex","trex"]);return F.forEach(function(I){var K=f(I,4),ee=E[K];ee&&(ee.default={duration:f(I,12),flags:f(I,20)})}),E}function r(w,E){return u(E,["moof","traf"]).reduce(function(_,P){var R=u(P,["tfdt"])[0],x=R.data[R.start],S=u(P,["tfhd"]).reduce(function(v,T){var U=f(T,4),L=w[U];if(L){var N=f(R,4);x===1&&(N*=Math.pow(2,32),N+=f(R,8));var V=L.timescale||9e4,H=N/V;if(isFinite(H)&&(v===null||H<v))return H}return v},null);return S!==null&&isFinite(S)&&(_===null||S<_)?S:_},null)||0}function c(w,E){for(var _=0,P=0,R=0,x=u(w,["moof","traf"]),S=0;S<x.length;S++){var v=x[S],T=u(v,["tfhd"])[0],U=f(T,4),L=E[U];if(!L)continue;var N=L.default,V=f(T,0)|(N==null?void 0:N.flags),H=N==null?void 0:N.duration;V&8&&(V&2?H=f(T,12):H=f(T,8));for(var D=L.timescale||9e4,W=u(v,["trun"]),F=0;F<W.length;F++){if(H){var I=f(W[F],4);_=H*I}else _=h(W[F]);L.type===y.ElementaryStreamTypes.VIDEO?P+=_/D:L.type===y.ElementaryStreamTypes.AUDIO&&(R+=_/D)}}if(P===0&&R===0){var K=n(w);if(K!=null&&K.references)return K.references.reduce(function(ee,he){return ee+he.info.duration||0},0)}return P||R}function h(w){var E=f(w,0),_=8;E&1&&(_+=4),E&4&&(_+=4);for(var P=0,R=f(w,4),x=0;x<R;x++){if(E&256){var S=f(w,_);P+=S,_+=4}E&512&&(_+=4),E&1024&&(_+=4),E&2048&&(_+=4)}return P}function d(w,E,_){u(E,["moof","traf"]).forEach(function(P){u(P,["tfhd"]).forEach(function(R){var x=f(R,4),S=w[x];if(!S)return;var v=S.timescale||9e4;u(P,["tfdt"]).forEach(function(T){var U=T.data[T.start],L=f(T,4);if(U===0)a(T,4,L-_*v);else{L*=Math.pow(2,32),L+=f(T,8),L-=_*v,L=Math.max(L,0);var N=Math.floor(L/(C+1)),V=Math.floor(L%(C+1));a(T,4,N),a(T,8,V)}})})})}function s(w){var E={valid:null,remainder:null},_=u(w,["moof"]);if(_){if(_.length<2)return E.remainder=w,E}else return E;var P=_[_.length-1];return E.valid=Object(b.sliceUint8)(w,0,P.start-8),E.remainder=Object(b.sliceUint8)(w,P.start-8),E}function l(w,E){var _=new Uint8Array(w.length+E.length);return _.set(w),_.set(E,w.length),_}},"./src/utils/output-filter.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"default",function(){return b});var b=function(){function y(O,m){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=O,this.trackName=m}var C=y.prototype;return C.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},C.newCue=function(m,e,f){(this.startTime===null||this.startTime>m)&&(this.startTime=m),this.endTime=e,this.screen=f,this.timelineController.createCaptionsTrack(this.trackName)},C.reset=function(){this.cueRanges=[]},y}()},"./src/utils/texttrack-utils.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"sendAddTrackEvent",function(){return y}),A.d(g,"addCueToTrack",function(){return C}),A.d(g,"clearCurrentCues",function(){return O}),A.d(g,"removeCuesInRange",function(){return m}),A.d(g,"getCuesInRange",function(){return f});var b=A("./src/utils/logger.ts");function y(a,u){var n;try{n=new Event("addtrack")}catch(i){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=a,u.dispatchEvent(n)}function C(a,u){var n=a.mode;if(n==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(u.id))try{if(a.addCue(u),!a.cues.getCueById(u.id))throw new Error("addCue is failed for: "+u)}catch(r){b.logger.debug("[texttrack-utils]: "+r);var i=new self.TextTrackCue(u.startTime,u.endTime,u.text);i.id=u.id,a.addCue(i)}n==="disabled"&&(a.mode=n)}function O(a){var u=a.mode;if(u==="disabled"&&(a.mode="hidden"),a.cues)for(var n=a.cues.length;n--;)a.removeCue(a.cues[n]);u==="disabled"&&(a.mode=u)}function m(a,u,n){var i=a.mode;if(i==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var r=f(a.cues,u,n),c=0;c<r.length;c++)a.removeCue(r[c]);i==="disabled"&&(a.mode=i)}function e(a,u){if(u<a[0].startTime)return 0;var n=a.length-1;if(u>a[n].endTime)return-1;for(var i=0,r=n;i<=r;){var c=Math.floor((r+i)/2);if(u<a[c].startTime)r=c-1;else if(u>a[c].startTime&&i<n)i=c+1;else return c}return a[i].startTime-u<u-a[r].startTime?i:r}function f(a,u,n){var i=[],r=e(a,u);if(r>-1)for(var c=r,h=a.length;c<h;c++){var d=a[c];if(d.startTime>=u&&d.endTime<=n)i.push(d);else if(d.startTime>n)return i}return i}},"./src/utils/time-ranges.ts":function(M,g,A){"use strict";A.r(g);var b={toString:function(C){for(var O="",m=C.length,e=0;e<m;e++)O+="["+C.start(e).toFixed(3)+","+C.end(e).toFixed(3)+"]";return O}};g.default=b},"./src/utils/timescale-conversion.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"toTimescaleFromBase",function(){return y}),A.d(g,"toTimescaleFromScale",function(){return C}),A.d(g,"toMsFromMpegTsClock",function(){return O}),A.d(g,"toMpegTsClockFromTimescale",function(){return m});var b=9e4;function y(e,f,a,u){a===void 0&&(a=1),u===void 0&&(u=!1);var n=e*f*a;return u?Math.round(n):n}function C(e,f,a,u){return a===void 0&&(a=1),u===void 0&&(u=!1),y(e,f,1/a,u)}function O(e,f){return f===void 0&&(f=!1),y(e,1e3,1/b,f)}function m(e,f){return f===void 0&&(f=1),y(e,b,1/f)}},"./src/utils/typed-array.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"sliceUint8",function(){return b});function b(y,C,O){return Uint8Array.prototype.slice?y.slice(C,O):new Uint8Array(Array.prototype.slice.call(y,C,O))}},"./src/utils/vttcue.ts":function(M,g,A){"use strict";A.r(g),g.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var b=["","lr","rl"],y=["start","middle","end","left","right"];function C(a,u){if(typeof u!="string")return!1;if(!Array.isArray(a))return!1;var n=u.toLowerCase();return~a.indexOf(n)?n:!1}function O(a){return C(b,a)}function m(a){return C(y,a)}function e(a){for(var u=arguments.length,n=new Array(u>1?u-1:0),i=1;i<u;i++)n[i-1]=arguments[i];for(var r=1;r<arguments.length;r++){var c=arguments[r];for(var h in c)a[h]=c[h]}return a}function f(a,u,n){var i=this,r={enumerable:!0};i.hasBeenReset=!1;var c="",h=!1,d=a,s=u,l=n,w=null,E="",_=!0,P="auto",R="start",x=50,S="middle",v=50,T="middle";Object.defineProperty(i,"id",e({},r,{get:function(){return c},set:function(L){c=""+L}})),Object.defineProperty(i,"pauseOnExit",e({},r,{get:function(){return h},set:function(L){h=!!L}})),Object.defineProperty(i,"startTime",e({},r,{get:function(){return d},set:function(L){if(typeof L!="number")throw new TypeError("Start time must be set to a number.");d=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"endTime",e({},r,{get:function(){return s},set:function(L){if(typeof L!="number")throw new TypeError("End time must be set to a number.");s=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",e({},r,{get:function(){return l},set:function(L){l=""+L,this.hasBeenReset=!0}})),Object.defineProperty(i,"region",e({},r,{get:function(){return w},set:function(L){w=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"vertical",e({},r,{get:function(){return E},set:function(L){var N=O(L);if(N===!1)throw new SyntaxError("An invalid or illegal string was specified.");E=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"snapToLines",e({},r,{get:function(){return _},set:function(L){_=!!L,this.hasBeenReset=!0}})),Object.defineProperty(i,"line",e({},r,{get:function(){return P},set:function(L){if(typeof L!="number"&&L!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");P=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"lineAlign",e({},r,{get:function(){return R},set:function(L){var N=m(L);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");R=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"position",e({},r,{get:function(){return x},set:function(L){if(L<0||L>100)throw new Error("Position must be between 0 and 100.");x=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",e({},r,{get:function(){return S},set:function(L){var N=m(L);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");S=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",e({},r,{get:function(){return v},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");v=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",e({},r,{get:function(){return T},set:function(L){var N=m(L);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");T=N,this.hasBeenReset=!0}})),i.displayState=void 0}return f.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},f}()},"./src/utils/vttparser.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"parseTimeStamp",function(){return C}),A.d(g,"fixLineBreaks",function(){return u}),A.d(g,"VTTParser",function(){return n});var b=A("./src/utils/vttcue.ts"),y=function(){function i(){}var r=i.prototype;return r.decode=function(h,d){if(!h)return"";if(typeof h!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(h))},i}();function C(i){function r(h,d,s,l){return(h|0)*3600+(d|0)*60+(s|0)+parseFloat(l||0)}var c=i.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return c?parseFloat(c[2])>59?r(c[2],c[3],0,c[4]):r(c[1],c[2],c[3],c[4]):null}var O=function(){function i(){this.values=Object.create(null)}var r=i.prototype;return r.set=function(h,d){!this.get(h)&&d!==""&&(this.values[h]=d)},r.get=function(h,d,s){return s?this.has(h)?this.values[h]:d[s]:this.has(h)?this.values[h]:d},r.has=function(h){return h in this.values},r.alt=function(h,d,s){for(var l=0;l<s.length;++l)if(d===s[l]){this.set(h,d);break}},r.integer=function(h,d){/^-?\d+$/.test(d)&&this.set(h,parseInt(d,10))},r.percent=function(h,d){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(d)){var s=parseFloat(d);if(s>=0&&s<=100)return this.set(h,s),!0}return!1},i}();function m(i,r,c,h){var d=h?i.split(h):[i];for(var s in d){if(typeof d[s]!="string")continue;var l=d[s].split(c);if(l.length!==2)continue;var w=l[0],E=l[1];r(w,E)}}var e=new b.default(0,0,""),f=e.align==="middle"?"middle":"center";function a(i,r,c){var h=i;function d(){var w=C(i);if(w===null)throw new Error("Malformed timestamp: "+h);return i=i.replace(/^[^\sa-zA-Z-]+/,""),w}function s(w,E){var _=new O;m(w,function(x,S){var v;switch(x){case"region":for(var T=c.length-1;T>=0;T--)if(c[T].id===S){_.set(x,c[T].region);break}break;case"vertical":_.alt(x,S,["rl","lr"]);break;case"line":v=S.split(","),_.integer(x,v[0]),_.percent(x,v[0])&&_.set("snapToLines",!1),_.alt(x,v[0],["auto"]),v.length===2&&_.alt("lineAlign",v[1],["start",f,"end"]);break;case"position":v=S.split(","),_.percent(x,v[0]),v.length===2&&_.alt("positionAlign",v[1],["start",f,"end","line-left","line-right","auto"]);break;case"size":_.percent(x,S);break;case"align":_.alt(x,S,["start",f,"end","left","right"]);break}},/:/,/\s/),E.region=_.get("region",null),E.vertical=_.get("vertical","");var P=_.get("line","auto");P==="auto"&&e.line===-1&&(P=-1),E.line=P,E.lineAlign=_.get("lineAlign","start"),E.snapToLines=_.get("snapToLines",!0),E.size=_.get("size",100),E.align=_.get("align",f);var R=_.get("position","auto");R==="auto"&&e.position===50&&(R=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=R}function l(){i=i.replace(/^\s+/,"")}if(l(),r.startTime=d(),l(),i.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+h);i=i.substr(3),l(),r.endTime=d(),l(),s(i,r)}function u(i){return i.replace(/<br(?: \/)?>/gi,`
`)}var n=function(){function i(){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 r=i.prototype;return r.parse=function(h){var d=this;h&&(d.buffer+=d.decoder.decode(h,{stream:!0}));function s(){var R=d.buffer,x=0;for(R=u(R);x<R.length&&R[x]!=="\r"&&R[x]!==`
`;)++x;var S=R.substr(0,x);return R[x]==="\r"&&++x,R[x]===`
`&&++x,d.buffer=R.substr(x),S}function l(R){m(R,function(x,S){},/:/)}try{var w="";if(d.state==="INITIAL"){if(!/\r\n|\n/.test(d.buffer))return this;w=s();var E=w.match(/^()?WEBVTT([ \t].*)?$/);if(!E||!E[0])throw new Error("Malformed WebVTT signature.");d.state="HEADER"}for(var _=!1;d.buffer;){if(!/\r\n|\n/.test(d.buffer))return this;_?_=!1:w=s();switch(d.state){case"HEADER":/:/.test(w)?l(w):w||(d.state="ID");continue;case"NOTE":w||(d.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(w)){d.state="NOTE";break}if(!w)continue;if(d.cue=new b.default(0,0,""),d.state="CUE",w.indexOf("-->")===-1){d.cue.id=w;continue}case"CUE":if(!d.cue){d.state="BADCUE";continue}try{a(w,d.cue,d.regionList)}catch(R){d.cue=null,d.state="BADCUE";continue}d.state="CUETEXT";continue;case"CUETEXT":{var P=w.indexOf("-->")!==-1;if(!w||P&&(_=!0)){d.oncue&&d.cue&&d.oncue(d.cue),d.cue=null,d.state="ID";continue}if(d.cue===null)continue;d.cue.text&&(d.cue.text+=`
`),d.cue.text+=w}continue;case"BADCUE":w||(d.state="ID")}}}catch(R){d.state==="CUETEXT"&&d.cue&&d.oncue&&d.oncue(d.cue),d.cue=null,d.state=d.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},r.flush=function(){var h=this;try{if((h.cue||h.state==="HEADER")&&(h.buffer+=`
`,h.parse()),h.state==="INITIAL"||h.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(d){h.onparsingerror&&h.onparsingerror(d)}return h.onflush&&h.onflush(),this},i}()},"./src/utils/webvtt-parser.ts":function(M,g,A){"use strict";A.r(g),A.d(g,"generateCueId",function(){return n}),A.d(g,"parseWebVTT",function(){return r});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/vttparser.ts"),C=A("./src/demux/id3.ts"),O=A("./src/utils/timescale-conversion.ts"),m=A("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,f=function(h,d,s){return s===void 0&&(s=0),h.substr(s,d.length)===d},a=function(h){var d=parseInt(h.substr(-3)),s=parseInt(h.substr(-6,2)),l=parseInt(h.substr(-9,2)),w=h.length>9?parseInt(h.substr(0,h.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(d)||!Object(b.isFiniteNumber)(s)||!Object(b.isFiniteNumber)(l)||!Object(b.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+h);return d+=1e3*s,d+=60*1e3*l,d+=60*60*1e3*w,d},u=function(h){for(var d=5381,s=h.length;s;)d=d*33^h.charCodeAt(--s);return(d>>>0).toString()};function n(c,h,d){return u(c.toString())+u(h.toString())+u(d)}var i=function(h,d,s){var l=h[d],w=h[l.prevCC];if(!w||!w.new&&l.new){h.ccOffset=h.presentationOffset=l.start,l.new=!1;return}for(;(E=w)!==null&&E!==void 0&&E.new;){var E;h.ccOffset+=l.start-w.start,l.new=!1,l=w,w=h[l.prevCC]}h.presentationOffset=s};function r(c,h,d,s,l,w,E,_){var P=new y.VTTParser,R=Object(C.utf8ArrayToStr)(new Uint8Array(c)).trim().replace(e,`
`).split(`
`),x=[],S=Object(O.toMpegTsClockFromTimescale)(h,d),v="00:00.000",T=0,U=0,L,N=!0,V=!1;P.oncue=function(H){var D=s[l],W=s.ccOffset,F=(T-S)/9e4;if(D!=null&&D.new&&(U!==void 0?W=s.ccOffset=D.start:i(s,l,F)),F&&(W=F-s.presentationOffset),V){var I=H.endTime-H.startTime,K=Object(m.normalizePts)((H.startTime+W-U)*9e4,w*9e4)/9e4;H.startTime=K,H.endTime=K+I}var ee=H.text.trim();H.text=decodeURIComponent(encodeURIComponent(ee)),H.id||(H.id=n(H.startTime,H.endTime,ee)),H.endTime>0&&x.push(H)},P.onparsingerror=function(H){L=H},P.onflush=function(){if(L){_(L);return}E(x)},R.forEach(function(H){if(N)if(f(H,"X-TIMESTAMP-MAP=")){N=!1,V=!0,H.substr(16).split(",").forEach(function(D){f(D,"LOCAL:")?v=D.substr(6):f(D,"MPEGTS:")&&(T=parseInt(D.substr(7)))});try{U=a(v)/1e3}catch(D){V=!1,L=D}return}else H===""&&(N=!1);P.parse(H+`
`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(M,g,A){"use strict";A.r(g);var b=A("./src/utils/logger.ts"),y=A("./src/loader/load-stats.ts"),C=/^age:\s*[\d.]+\s*$/m,O=function(){function m(f){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=f?f.xhrSetup:null,this.stats=new y.LoadStats,this.retryDelay=0}var e=m.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},e.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(a,u,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=u,this.callbacks=n,this.retryDelay=u.retryDelay,this.loadInternal()},e.loadInternal=function(){var a=this.config,u=this.context;if(!a)return;var n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0;var r=this.xhrSetup;try{if(r)try{r(n,u.url)}catch(d){n.open("GET",u.url,!0),r(n,u.url)}n.readyState||n.open("GET",u.url,!0);var c=this.context.headers;if(c)for(var h in c)n.setRequestHeader(h,c[h])}catch(d){this.callbacks.onError({code:n.status,text:d.message},u,n);return}u.rangeEnd&&n.setRequestHeader("Range","bytes="+u.rangeStart+"-"+(u.rangeEnd-1)),n.onreadystatechange=this.readystatechange.bind(this),n.onprogress=this.loadprogress.bind(this),n.responseType=u.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),n.send()},e.readystatechange=function(){var a=this.context,u=this.loader,n=this.stats;if(!a||!u)return;var i=u.readyState,r=this.config;if(n.aborted)return;if(i>=2)if(self.clearTimeout(this.requestTimeout),n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start)),i===4){u.onreadystatechange=null,u.onprogress=null;var c=u.status;if(c>=200&&c<300){n.loading.end=Math.max(self.performance.now(),n.loading.first);var h,d;if(a.responseType==="arraybuffer"?(h=u.response,d=h.byteLength):(h=u.responseText,d=h.length),n.loaded=n.total=d,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(n,a,h,u),!this.callbacks)return;var l={url:u.responseURL,data:h};this.callbacks.onSuccess(l,n,a,u)}else n.retry>=r.maxRetry||c>=400&&c<499?(b.logger.error(c+" while loading "+a.url),this.callbacks.onError({code:c,text:u.statusText},a,u)):(b.logger.warn(c+" while loading "+a.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,r.maxRetryDelay),n.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout)},e.loadtimeout=function(){b.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(a){var u=this.stats;u.loaded=a.loaded,a.lengthComputable&&(u.total=a.total)},e.getCacheAge=function(){var a=null;if(this.loader&&C.test(this.loader.getAllResponseHeaders())){var u=this.loader.getResponseHeader("age");a=u?parseFloat(u):null}return a},m}();g.default=O}}).default})},vHTk:function(k,z,o){k.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(k,z,o){k.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(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.StreamCipher,y=g.algo,C=y.RC4=b.extend({_doReset:function(){for(var e=this._key,f=e.words,a=e.sigBytes,u=this._S=[],n=0;n<256;n++)u[n]=n;for(var n=0,i=0;n<256;n++){var r=n%a,c=f[r>>>2]>>>24-r%4*8&255;i=(i+u[n]+c)%256;var h=u[n];u[n]=u[i],u[i]=h}this._i=this._j=0},_doProcessBlock:function(e,f){e[f]^=O.call(this)},keySize:256/32,ivSize:0});function O(){for(var e=this._S,f=this._i,a=this._j,u=0,n=0;n<4;n++){f=(f+1)%256,a=(a+e[f])%256;var i=e[f];e[f]=e[a],e[a]=i,u|=e[(e[f]+e[a])%256]<<24-n*8}return this._i=f,this._j=a,u}g.RC4=b._createHelper(C);var m=y.RC4Drop=C.extend({cfg:C.cfg.extend({drop:192}),_doReset:function(){C._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)O.call(this)}});g.RC4Drop=b._createHelper(m)}(),M.RC4})},wCXF:function(k,z,o){"use strict";o.d(z,"a",function(){return ut});var M=o("rePB"),g=o("VTBJ"),A=o("KQm4"),b=o("U8pU"),y=o("ODXe"),C=o("q1tI"),O=o("TSYQ"),m=o.n(O),e=o("Gytx"),f=o.n(e),a=o("Kwbf"),u=o("t23M"),n=o("qx4F"),i=o("6eGT"),r=o("IBYe"),c=o("Ff2n"),h=o("c+Xe"),d=o("fyJ8"),s=o("biw7");function l(Ve,Ue,pt,Ut,Et){var jt=pt[Ve]||{},Ze=pt[Ue]||{},Be,Ye;jt.fixed==="left"?Be=Ut.left[Ve]:Ze.fixed==="right"&&(Ye=Ut.right[Ue]);var Ce=!1,Le=!1,He=!1,je=!1,Ke=pt[Ue+1],it=pt[Ve-1];if(Et==="rtl"){if(Be!==void 0){var Ct=it&&it.fixed==="left";je=!Ct}else if(Ye!==void 0){var Ft=Ke&&Ke.fixed==="right";He=!Ft}}else if(Be!==void 0){var Jt=Ke&&Ke.fixed==="left";Ce=!Jt}else if(Ye!==void 0){var Ht=it&&it.fixed==="right";Le=!Ht}return{fixLeft:Be,fixRight:Ye,lastFixLeft:Ce,firstFixRight:Le,lastFixRight:He,firstFixLeft:je,isSticky:Ut.isSticky}}var w=o("sR1s");function E(Ve){var Ue=Ve.cells,pt=Ve.stickyOffsets,Ut=Ve.flattenColumns,Et=Ve.rowComponent,jt=Ve.cellComponent,Ze=Ve.onHeaderRow,Be=Ve.index,Ye=C.useContext(s.a),Ce=Ye.prefixCls,Le=Ye.direction,He;Ze&&(He=Ze(Ue.map(function(Ke){return Ke.column}),Be));var je=Object(w.a)(Ue.map(function(Ke){return Ke.column}));return C.createElement(Et,Object.assign({},He),Ue.map(function(Ke,it){var Ct=Ke.column,Ft=l(Ke.colStart,Ke.colEnd,Ut,pt,Le),Jt;return Ct&&Ct.onHeaderCell&&(Jt=Ke.column.onHeaderCell(Ct)),C.createElement(d.a,Object.assign({},Ke,{ellipsis:Ct.ellipsis,align:Ct.align,component:jt,prefixCls:Ce,key:je[it]},Ft,{additionalProps:Jt,rowType:"header"}))}))}E.displayName="HeaderRow";var _=E;function P(Ve){var Ue=[];function pt(Ze,Be){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ue[Ye]=Ue[Ye]||[];var Ce=Be,Le=Ze.filter(Boolean).map(function(He){var je={key:He.key,className:He.className||"",children:He.title,column:He,colStart:Ce},Ke=1,it=He.children;return it&&it.length>0&&(Ke=pt(it,Ce,Ye+1).reduce(function(Ct,Ft){return Ct+Ft},0),je.hasSubColumns=!0),"colSpan"in He&&(Ke=He.colSpan),"rowSpan"in He&&(je.rowSpan=He.rowSpan),je.colSpan=Ke,je.colEnd=je.colStart+Ke-1,Ue[Ye].push(je),Ce+=Ke,Ke});return Le}pt(Ve,0);for(var Ut=Ue.length,Et=function(Be){Ue[Be].forEach(function(Ye){!("rowSpan"in Ye)&&!Ye.hasSubColumns&&(Ye.rowSpan=Ut-Be)})},jt=0;jt<Ut;jt+=1)Et(jt);return Ue}function R(Ve){var Ue=Ve.stickyOffsets,pt=Ve.columns,Ut=Ve.flattenColumns,Et=Ve.onHeaderRow,jt=C.useContext(s.a),Ze=jt.prefixCls,Be=jt.getComponent,Ye=C.useMemo(function(){return P(pt)},[pt]),Ce=Be(["header","wrapper"],"thead"),Le=Be(["header","row"],"tr"),He=Be(["header","cell"],"th");return C.createElement(Ce,{className:"".concat(Ze,"-thead")},Ye.map(function(je,Ke){var it=C.createElement(_,{key:Ke,flattenColumns:Ut,cells:je,stickyOffsets:Ue,rowComponent:Le,cellComponent:He,onHeaderRow:Et,index:Ke});return it}))}var x=R,S=o("hW8S");function v(Ve){for(var Ue=Ve.colWidths,pt=Ve.columns,Ut=Ve.columCount,Et=[],jt=Ut||pt.length,Ze=!1,Be=jt-1;Be>=0;Be-=1){var Ye=Ue[Be],Ce=pt&&pt[Be],Le=Ce&&Ce[S.a];(Ye||Le||Ze)&&(Et.unshift(C.createElement("col",Object.assign({key:Be,style:{width:Ye,minWidth:Ye}},Le))),Ze=!0)}return C.createElement("colgroup",null,Et)}var T=v;function U(Ve,Ue){return Object(C.useMemo)(function(){for(var pt=[],Ut=0;Ut<Ue;Ut+=1){var Et=Ve[Ut];if(Et!==void 0)pt[Ut]=Et;else return null}return pt},[Ve.join("_"),Ue])}var L=C.forwardRef(function(Ve,Ue){var pt=Ve.noData,Ut=Ve.columns,Et=Ve.flattenColumns,jt=Ve.colWidths,Ze=Ve.columCount,Be=Ve.stickyOffsets,Ye=Ve.direction,Ce=Ve.fixHeader,Le=Ve.offsetHeader,He=Ve.stickyClassName,je=Ve.onScroll,Ke=Object(c.a)(Ve,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),it=C.useContext(s.a),Ct=it.prefixCls,Ft=it.scrollbarSize,Jt=it.isSticky,Ht=Jt&&!Ce?0:Ft,Ot=C.useRef(null),Fe=C.useCallback(function(Dt){Object(h.b)(Ue,Dt),Object(h.b)(Ot,Dt)},[]);C.useEffect(function(){var Dt;function Mt(ct){var Lt=ct.currentTarget,Zt=ct.deltaX;Zt&&(je({currentTarget:Lt,scrollLeft:Lt.scrollLeft+Zt}),ct.preventDefault())}return(Dt=Ot.current)===null||Dt===void 0||Dt.addEventListener("wheel",Mt),function(){var ct;(ct=Ot.current)===null||ct===void 0||ct.removeEventListener("wheel",Mt)}},[]);var at=Et[Et.length-1],ot={fixed:at?at.fixed:null,onHeaderCell:function(){return{className:"".concat(Ct,"-cell-scrollbar")}}},Pe=Object(C.useMemo)(function(){return Ht?[].concat(Object(A.a)(Ut),[ot]):Ut},[Ht,Ut]),Qe=Object(C.useMemo)(function(){return Ht?[].concat(Object(A.a)(Et),[ot]):Et},[Ht,Et]),ft=Object(C.useMemo)(function(){var Dt=Be.right,Mt=Be.left;return Object(g.a)(Object(g.a)({},Be),{},{left:Ye==="rtl"?[].concat(Object(A.a)(Mt.map(function(ct){return ct+Ht})),[0]):Mt,right:Ye==="rtl"?Dt:[].concat(Object(A.a)(Dt.map(function(ct){return ct+Ht})),[0]),isSticky:Jt})},[Ht,Be,Jt]),bt=U(jt,Ze);return C.createElement("div",{style:Object(g.a)({overflow:"hidden"},Jt?{top:Le}:{}),ref:Fe,className:m()("".concat(Ct,"-header"),Object(M.a)({},He,!!He))},C.createElement("table",{style:{tableLayout:"fixed",visibility:pt||bt?null:"hidden"}},C.createElement(T,{colWidths:bt?[].concat(Object(A.a)(bt),[Ht]):[],columCount:Ze+1,columns:Qe}),C.createElement(x,Object.assign({},Ke,{stickyOffsets:ft,columns:Pe,flattenColumns:Qe}))))});L.displayName="FixedHeader";var N=L,V=C.createContext(null),H=V;function D(Ve){var Ue=Ve.prefixCls,pt=Ve.children,Ut=Ve.component,Et=Ve.cellComponent,jt=Ve.fixHeader,Ze=Ve.fixColumn,Be=Ve.horizonScroll,Ye=Ve.className,Ce=Ve.expanded,Le=Ve.componentWidth,He=Ve.colSpan,je=C.useContext(s.a),Ke=je.scrollbarSize;return C.useMemo(function(){var it=pt;return Ze&&(it=C.createElement("div",{style:{width:Le-(jt?Ke:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ue,"-expanded-row-fixed")},it)),C.createElement(Ut,{className:Ye,style:{display:Ce?null:"none"}},C.createElement(d.a,{component:Et,prefixCls:Ue,colSpan:He},it))},[pt,Ut,jt,Be,Ye,Ce,Le,He,Ke])}var W=D;function F(Ve){var Ue=Ve.className,pt=Ve.style,Ut=Ve.record,Et=Ve.index,jt=Ve.rowKey,Ze=Ve.getRowKey,Be=Ve.rowExpandable,Ye=Ve.expandedKeys,Ce=Ve.onRow,Le=Ve.indent,He=Le===void 0?0:Le,je=Ve.rowComponent,Ke=Ve.cellComponent,it=Ve.childrenColumnName,Ct=C.useContext(s.a),Ft=Ct.prefixCls,Jt=Ct.fixedInfoList,Ht=C.useContext(H),Ot=Ht.fixHeader,Fe=Ht.fixColumn,at=Ht.horizonScroll,ot=Ht.componentWidth,Pe=Ht.flattenColumns,Qe=Ht.expandableType,ft=Ht.expandRowByClick,bt=Ht.onTriggerExpand,Dt=Ht.rowClassName,Mt=Ht.expandedRowClassName,ct=Ht.indentSize,Lt=Ht.expandIcon,Zt=Ht.expandedRowRender,An=Ht.expandIconColumnIndex,on=C.useState(!1),Tn=Object(y.a)(on,2),Ln=Tn[0],Nn=Tn[1],ln=Ye&&Ye.has(Ve.recordKey);C.useEffect(function(){ln&&Nn(!0)},[ln]);var ar=Qe==="row"&&(!Be||Be(Ut)),xr=Qe==="nest",Cr=it&&Ut&&Ut[it],Yn=ar||xr,Or;Ce&&(Or=Ce(Ut,Et));var cr=function(X){if(ft&&Yn&&bt(Ut,X),Or&&Or.onClick){for(var q,oe=arguments.length,De=new Array(oe>1?oe-1:0),fe=1;fe<oe;fe++)De[fe-1]=arguments[fe];(q=Or).onClick.apply(q,[X].concat(De))}},sn;typeof Dt=="string"?sn=Dt:typeof Dt=="function"&&(sn=Dt(Ut,Et,He));var qt=Object(w.a)(Pe),On=C.createElement(je,Object.assign({},Or,{"data-row-key":jt,className:m()(Ue,"".concat(Ft,"-row"),"".concat(Ft,"-row-level-").concat(He),sn,Or&&Or.className),style:Object(g.a)(Object(g.a)({},pt),Or?Or.style:null),onClick:cr}),Pe.map(function(pe,X){var q=pe.render,oe=pe.dataIndex,De=pe.className,fe=qt[X],st=Jt[X],Qt;X===(An||0)&&xr&&(Qt=C.createElement(C.Fragment,null,C.createElement("span",{style:{paddingLeft:"".concat(ct*He,"px")},className:"".concat(Ft,"-row-indent indent-level-").concat(He)}),Lt({prefixCls:Ft,expanded:ln,expandable:Cr,record:Ut,onExpand:bt})));var In;return pe.onCell&&(In=pe.onCell(Ut,Et)),C.createElement(d.a,Object.assign({className:De,ellipsis:pe.ellipsis,align:pe.align,component:Ke,prefixCls:Ft,key:fe,record:Ut,index:Et,dataIndex:oe,render:q,shouldCellUpdate:pe.shouldCellUpdate},st,{appendNode:Qt,additionalProps:In}))})),Ir;if(ar&&(Ln||ln)){var Ar=Zt(Ut,Et,He+1,ln),yr=Mt&&Mt(Ut,Et,He);Ir=C.createElement(W,{expanded:ln,className:m()("".concat(Ft,"-expanded-row"),"".concat(Ft,"-expanded-row-level-").concat(He+1),yr),prefixCls:Ft,fixHeader:Ot,fixColumn:Fe,horizonScroll:at,component:je,componentWidth:ot,cellComponent:Ke,colSpan:Pe.length},Ar)}var pr;return Cr&&ln&&(pr=(Ut[it]||[]).map(function(pe,X){var q=Ze(pe,X);return C.createElement(F,Object.assign({},Ve,{key:q,rowKey:q,record:pe,recordKey:q,index:X,indent:He+1}))})),C.createElement(C.Fragment,null,On,Ir,pr)}F.displayName="BodyRow";var I=F,K=C.createContext(null),ee=K;function he(Ve){var Ue=Ve.columnKey,pt=Ve.onColumnResize,Ut=C.useRef();return C.useEffect(function(){Ut.current&&pt(Ue,Ut.current.offsetWidth)},[]),C.createElement(u.a,{onResize:function(jt){var Ze=jt.offsetWidth;pt(Ue,Ze)}},C.createElement("td",{ref:Ut,style:{padding:0,border:0,height:0}},C.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function de(Ve){var Ue=Ve.data,pt=Ve.getRowKey,Ut=Ve.measureColumnWidth,Et=Ve.expandedKeys,jt=Ve.onRow,Ze=Ve.rowExpandable,Be=Ve.emptyNode,Ye=Ve.childrenColumnName,Ce=C.useContext(ee),Le=Ce.onColumnResize,He=C.useContext(s.a),je=He.prefixCls,Ke=He.getComponent,it=C.useContext(H),Ct=it.fixHeader,Ft=it.horizonScroll,Jt=it.flattenColumns,Ht=it.componentWidth;return C.useMemo(function(){var Ot=Ke(["body","wrapper"],"tbody"),Fe=Ke(["body","row"],"tr"),at=Ke(["body","cell"],"td"),ot;Ue.length?ot=Ue.map(function(Qe,ft){var bt=pt(Qe,ft);return C.createElement(I,{key:bt,rowKey:bt,record:Qe,recordKey:bt,index:ft,rowComponent:Fe,cellComponent:at,expandedKeys:Et,onRow:jt,getRowKey:pt,rowExpandable:Ze,childrenColumnName:Ye})}):ot=C.createElement(W,{expanded:!0,className:"".concat(je,"-placeholder"),prefixCls:je,fixHeader:Ct,fixColumn:Ft,horizonScroll:Ft,component:Fe,componentWidth:Ht,cellComponent:at,colSpan:Jt.length},Be);var Pe=Object(w.a)(Jt);return C.createElement(Ot,{className:"".concat(je,"-tbody")},Ut&&C.createElement("tr",{"aria-hidden":"true",className:"".concat(je,"-measure-row"),style:{height:0}},Pe.map(function(Qe){return C.createElement(he,{key:Qe,columnKey:Qe,onColumnResize:Le})})),ot)},[Ue,je,jt,Ut,Et,pt,Ke,Ht,Be,Jt])}var Se=C.memo(de);Se.displayName="Body";var Te=Se,ce=o("wRmb"),be=o("xEkU"),ye=o.n(be);function ue(Ve){var Ue=Object(C.useRef)(Ve),pt=Object(C.useState)({}),Ut=Object(y.a)(pt,2),Et=Ut[1],jt=Object(C.useRef)(null),Ze=Object(C.useRef)([]);function Be(Ye){jt.current===null&&(Ze.current=[],jt.current=ye()(function(){Ze.current.forEach(function(Ce){Ue.current=Ce(Ue.current)}),jt.current=null,Et({})})),Ze.current.push(Ye)}return Object(C.useEffect)(function(){return function(){ye.a.cancel(jt.current)}},[]),[Ue.current,Be]}function se(Ve){var Ue=Object(C.useRef)(Ve),pt=Object(C.useRef)(null);function Ut(){window.clearTimeout(pt.current)}function Et(Ze){Ue.current=Ze,Ut(),pt.current=window.setTimeout(function(){Ue.current=null,pt.current=null},100)}function jt(){return Ue.current}return Object(C.useEffect)(function(){return Ut},[]),[Et,jt]}function $(Ve,Ue,pt){var Ut=Object(C.useMemo)(function(){for(var Et=[],jt=[],Ze=0,Be=0,Ye=0;Ye<Ue;Ye+=1)if(pt==="rtl"){jt[Ye]=Be,Be+=Ve[Ye]||0;var Ce=Ue-Ye-1;Et[Ce]=Ze,Ze+=Ve[Ce]||0}else{Et[Ye]=Ze,Ze+=Ve[Ye]||0;var Le=Ue-Ye-1;jt[Le]=Be,Be+=Ve[Le]||0}return{left:Et,right:jt}},[Ve,Ue,pt]);return Ut}var me=$;function re(Ve){var Ue=Ve.className,pt=Ve.children;return C.createElement("div",{className:Ue},pt)}var ae=re,Oe=o("n6Qo");function le(Ve){var Ue,pt=Ve.prefixCls,Ut=Ve.record,Et=Ve.onExpand,jt=Ve.expanded,Ze=Ve.expandable,Be="".concat(pt,"-row-expand-icon");if(!Ze)return C.createElement("span",{className:m()(Be,"".concat(pt,"-row-spaced"))});var Ye=function(Le){Et(Ut,Le),Le.stopPropagation()};return C.createElement("span",{className:m()(Be,(Ue={},Object(M.a)(Ue,"".concat(pt,"-row-expanded"),jt),Object(M.a)(Ue,"".concat(pt,"-row-collapsed"),!jt),Ue)),onClick:Ye})}function te(Ve,Ue,pt){var Ut=[];function Et(jt){(jt||[]).forEach(function(Ze,Be){Ut.push(Ue(Ze,Be)),Et(Ze[pt])})}return Et(Ve),Ut}var Q=o("zT1h"),J=o("y0+3"),ve=function(Ue,pt){var Ut,Et,jt=Ue.scrollBodyRef,Ze=Ue.onScroll,Be=Ue.offsetScroll,Ye=C.useContext(s.a),Ce=Ye.prefixCls,Le=((Ut=jt.current)===null||Ut===void 0?void 0:Ut.scrollWidth)||0,He=((Et=jt.current)===null||Et===void 0?void 0:Et.clientWidth)||0,je=Le&&He*(He/Le),Ke=C.useRef(),it=ue({scrollLeft:0,isHiddenScrollBar:!1}),Ct=Object(y.a)(it,2),Ft=Ct[0],Jt=Ct[1],Ht=C.useRef({delta:0,x:0}),Ot=C.useState(!1),Fe=Object(y.a)(Ot,2),at=Fe[0],ot=Fe[1],Pe=function(){ot(!1)},Qe=function(ct){ct.persist(),Ht.current.delta=ct.pageX-Ft.scrollLeft,Ht.current.x=0,ot(!0),ct.preventDefault()},ft=function(ct){var Lt,Zt=ct||((Lt=window)===null||Lt===void 0?void 0:Lt.event),An=Zt.buttons;if(!at||An===0){at&&ot(!1);return}var on=Ht.current.x+ct.pageX-Ht.current.x-Ht.current.delta;on<=0&&(on=0),on+je>=He&&(on=He-je),Ze({scrollLeft:on/He*(Le+2)}),Ht.current.x=ct.pageX},bt=function(){var ct=Object(J.b)(jt.current).top,Lt=ct+jt.current.offsetHeight,Zt=document.documentElement.scrollTop+window.innerHeight;Lt-Object(n.a)()<=Zt||ct>=Zt-Be?Jt(function(An){return Object(g.a)(Object(g.a)({},An),{},{isHiddenScrollBar:!0})}):Jt(function(An){return Object(g.a)(Object(g.a)({},An),{},{isHiddenScrollBar:!1})})},Dt=function(ct){Jt(function(Lt){return Object(g.a)(Object(g.a)({},Lt),{},{scrollLeft:ct/Le*He||0})})};return C.useImperativeHandle(pt,function(){return{setScrollLeft:Dt}}),C.useEffect(function(){var Mt=Object(Q.a)(document.body,"mouseup",Pe,!1),ct=Object(Q.a)(document.body,"mousemove",ft,!1);return bt(),function(){Mt.remove(),ct.remove()}},[je,at]),C.useEffect(function(){var Mt=Object(Q.a)(window,"scroll",bt,!1),ct=Object(Q.a)(window,"resize",bt,!1);return function(){Mt.remove(),ct.remove()}},[]),C.useEffect(function(){Ft.isHiddenScrollBar||Jt(function(Mt){var ct,Lt;return Object(g.a)(Object(g.a)({},Mt),{},{scrollLeft:jt.current.scrollLeft/((ct=jt.current)===null||ct===void 0?void 0:ct.scrollWidth)*((Lt=jt.current)===null||Lt===void 0?void 0:Lt.clientWidth)})})},[Ft.isHiddenScrollBar]),Le<=He||!je||Ft.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(n.a)(),width:He,bottom:Be},className:"".concat(Ce,"-sticky-scroll")},C.createElement("div",{onMouseDown:Qe,ref:Ke,className:m()("".concat(Ce,"-sticky-scroll-bar"),Object(M.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),at)),style:{width:"".concat(je,"px"),transform:"translate3d(".concat(Ft.scrollLeft,"px, 0, 0)")}}))},_e=C.forwardRef(ve);function Ae(Ve,Ue){return C.useMemo(function(){var pt=!!Ve;return{isSticky:pt,stickyClassName:pt?"".concat(Ue,"-sticky-header"):"",offsetHeader:Object(b.a)(Ve)==="object"&&Ve.offsetHeader||0,offsetScroll:Object(b.a)(Ve)==="object"&&Ve.offsetScroll||0}},[Ve,Ue])}var Je=[],tt={},ut="rc-table-internal-hook",ht=C.memo(function(Ve){var Ue=Ve.children;return Ue},function(Ve,Ue){return f()(Ve.props,Ue.props)?Ve.pingLeft!==Ue.pingLeft||Ve.pingRight!==Ue.pingRight:!1});function vt(Ve){var Ue,pt=Ve.prefixCls,Ut=Ve.className,Et=Ve.rowClassName,jt=Ve.style,Ze=Ve.data,Be=Ve.rowKey,Ye=Ve.scroll,Ce=Ve.tableLayout,Le=Ve.direction,He=Ve.title,je=Ve.footer,Ke=Ve.summary,it=Ve.id,Ct=Ve.showHeader,Ft=Ve.components,Jt=Ve.emptyText,Ht=Ve.onRow,Ot=Ve.onHeaderRow,Fe=Ve.internalHooks,at=Ve.transformColumns,ot=Ve.internalRefs,Pe=Ve.sticky,Qe=Ze||Je,ft=!!Qe.length,bt=C.useState(0),Dt=Object(y.a)(bt,2),Mt=Dt[0],ct=Dt[1];C.useEffect(function(){ct(Object(n.a)())});var Lt=C.useMemo(function(){return Object(w.c)(Ft,{})},[Ft]),Zt=C.useCallback(function(Kt,en){return Object(w.b)(Lt,Kt)||en},[Lt]),An=C.useMemo(function(){return typeof Be=="function"?Be:function(Kt){var en=Kt&&Kt[Be];return en}},[Be]),on=Object(S.c)(Ve),Tn=on.expandIcon,Ln=on.expandedRowKeys,Nn=on.defaultExpandedRowKeys,ln=on.defaultExpandAllRows,ar=on.expandedRowRender,xr=on.onExpand,Cr=on.onExpandedRowsChange,Yn=on.expandRowByClick,Or=on.rowExpandable,cr=on.expandIconColumnIndex,sn=on.expandedRowClassName,qt=on.childrenColumnName,On=on.indentSize,Ir=Tn||le,Ar=qt||"children",yr=C.useMemo(function(){return ar?"row":Ve.expandable&&Fe===ut&&Ve.expandable.__PARENT_RENDER_ICON__||Qe.some(function(Kt){return Kt&&Object(b.a)(Kt)==="object"&&Kt[Ar]})?"nest":!1},[!!ar,Qe]),pr=C.useState(function(){return Nn||(ln?te(Qe,An,Ar):[])}),pe=Object(y.a)(pr,2),X=pe[0],q=pe[1],oe=C.useMemo(function(){return new Set(Ln||X||[])},[Ln,X]),De=C.useCallback(function(Kt){var en=An(Kt,Qe.indexOf(Kt)),Yt,Xn=oe.has(en);Xn?(oe.delete(en),Yt=Object(A.a)(oe)):Yt=[].concat(Object(A.a)(oe),[en]),q(Yt),xr&&xr(!Xn,Kt),Cr&&Cr(Yt)},[An,oe,Qe,xr,Cr]),fe=C.useState(0),st=Object(y.a)(fe,2),Qt=st[0],In=st[1],Vn=Object(ce.b)(Object(g.a)(Object(g.a)(Object(g.a)({},Ve),on),{},{expandable:!!ar,expandedKeys:oe,getRowKey:An,onTriggerExpand:De,expandIcon:Ir,expandIconColumnIndex:cr,direction:Le}),Fe===ut?at:null),$t=Object(y.a)(Vn,2),bn=$t[0],cn=$t[1],Br=C.useMemo(function(){return{columns:bn,flattenColumns:cn}},[bn,cn]),ra=C.useRef(),oa=C.useRef(),er=C.useRef(),Ba=C.useState(!1),Ea=Object(y.a)(Ba,2),ca=Ea[0],Ka=Ea[1],Ta=C.useState(!1),Ja=Object(y.a)(Ta,2),Ua=Ja[0],li=Ja[1],oi=ue(new Map),fa=Object(y.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(w.a)(cn),lt=xe.map(function(Kt){return ma.get(Kt)}),Rt=C.useMemo(function(){return lt},[lt.join("_")]),wt=me(Rt,cn.length,Le),Wt=Ye&&Object(w.d)(Ye.y),It=Ye&&Object(w.d)(Ye.x),Vt=It&&cn.some(function(Kt){var en=Kt.fixed;return en}),rn=C.useRef(),yn=Ae(Pe,pt),gn=yn.isSticky,jn=yn.offsetHeader,Dn=yn.offsetScroll,an=yn.stickyClassName,Mn,_n,Bn;Wt&&(_n={overflowY:"scroll",maxHeight:Ye.y}),It&&(Mn={overflowX:"auto"},Wt||(_n={overflowY:"hidden"}),Bn={width:Ye.x===!0?"auto":Ye.x,minWidth:"100%"});var Pn=C.useCallback(function(Kt,en){la(function(Yt){var Xn=new Map(Yt);return Xn.set(Kt,en),Xn})},[]),Jn=se(null),fr=Object(y.a)(Jn,2),Fr=fr[0],Cn=fr[1];function Xt(Kt,en){if(!en)return;typeof en=="function"?en(Kt):en.scrollLeft!==Kt&&(en.scrollLeft=Kt)}var hn=function(en){var Yt=en.currentTarget,Xn=en.scrollLeft,$n=typeof Xn=="number"?Xn:Yt.scrollLeft,Un=Yt||tt;if(!Cn()||Cn()===Un){var rr;Fr(Un),Xt($n,oa.current),Xt($n,er.current),Xt($n,(rr=rn.current)===null||rr===void 0?void 0:rr.setScrollLeft)}if(Yt){var ur=Yt.scrollWidth,or=Yt.clientWidth;Ka($n>0),li($n<ur-or)}},Rn=function(){er.current&&hn({currentTarget:er.current})},tn=function(en){var Yt=en.width;Rn(),In(ra.current?ra.current.offsetWidth:Yt)};C.useEffect(function(){return Rn},[]),C.useEffect(function(){It&&Rn()},[It]),C.useEffect(function(){Fe===ut&&ot&&(ot.body.current=er.current)});var Sn=Zt(["table"],"table"),vn=C.useMemo(function(){return Ce||(Vt?Ye.x==="max-content"?"auto":"fixed":Wt||cn.some(function(Kt){var en=Kt.ellipsis;return en})?"fixed":"auto")},[Wt,Vt,cn,Ce]),kn,Fn={colWidths:Rt,columCount:cn.length,stickyOffsets:wt,onHeaderRow:Ot,fixHeader:Wt},ir=C.useMemo(function(){return ft?null:typeof Jt=="function"?Jt():Jt},[ft,Jt]),qn=C.createElement(Te,{data:Qe,measureColumnWidth:Wt||It||gn,expandedKeys:oe,rowExpandable:Or,getRowKey:An,onRow:Ht,emptyNode:ir,childrenColumnName:Ar}),Rr=C.createElement(T,{colWidths:cn.map(function(Kt){var en=Kt.width;return en}),columns:cn}),Lr=Ke&&C.createElement(Oe.b,null,Ke(Qe)),Qn=Zt(["body"]);if(Wt||gn){var Dr;typeof Qn=="function"?(Dr=Qn(Qe,{scrollbarSize:Mt,ref:er,onScroll:hn}),Fn.colWidths=cn.map(function(Kt,en){var Yt=Kt.width,Xn=en===bn.length-1?Yt-Mt:Yt;return typeof Xn=="number"&&!Number.isNaN(Xn)?Xn:(Object(a.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Dr=C.createElement("div",{style:Object(g.a)(Object(g.a)({},Mn),_n),onScroll:hn,ref:er,className:m()("".concat(pt,"-body"))},C.createElement(Sn,{style:Object(g.a)(Object(g.a)({},Bn),{},{tableLayout:vn})},Rr,qn,Lr),gn&&C.createElement(_e,{ref:rn,offsetScroll:Dn,scrollBodyRef:er,onScroll:hn})),kn=C.createElement(C.Fragment,null,Ct!==!1&&C.createElement(N,Object.assign({noData:!Qe.length},Fn,Br,{direction:Le,offsetHeader:jn,stickyClassName:an,ref:oa,onScroll:hn})),Dr)}else kn=C.createElement("div",{style:Object(g.a)(Object(g.a)({},Mn),_n),className:m()("".concat(pt,"-content")),onScroll:hn,ref:er},C.createElement(Sn,{style:Object(g.a)(Object(g.a)({},Bn),{},{tableLayout:vn})},Rr,Ct!==!1&&C.createElement(x,Object.assign({},Fn,Br)),qn,Lr));var mr=Object(S.b)(Ve),zr=C.createElement("div",Object.assign({className:m()(pt,Ut,(Ue={},Object(M.a)(Ue,"".concat(pt,"-rtl"),Le==="rtl"),Object(M.a)(Ue,"".concat(pt,"-ping-left"),ca),Object(M.a)(Ue,"".concat(pt,"-ping-right"),Ua),Object(M.a)(Ue,"".concat(pt,"-layout-fixed"),Ce==="fixed"),Object(M.a)(Ue,"".concat(pt,"-fixed-header"),Wt),Object(M.a)(Ue,"".concat(pt,"-fixed-column"),Vt),Object(M.a)(Ue,"".concat(pt,"-scroll-horizontal"),It),Object(M.a)(Ue,"".concat(pt,"-has-fix-left"),cn[0]&&cn[0].fixed),Object(M.a)(Ue,"".concat(pt,"-has-fix-right"),cn[cn.length-1]&&cn[cn.length-1].fixed==="right"),Ue)),style:jt,id:it,ref:ra},mr),C.createElement(ht,{pingLeft:ca,pingRight:Ua,props:Object(g.a)(Object(g.a)({},Ve),{},{stickyOffsets:wt,mergedExpandedKeys:oe})},He&&C.createElement(ae,{className:"".concat(pt,"-title")},He(Qe)),C.createElement("div",{className:"".concat(pt,"-container")},kn),je&&C.createElement(ae,{className:"".concat(pt,"-footer")},je(Qe))));It&&(zr=C.createElement(u.a,{onResize:tn},zr));var Nr=C.useMemo(function(){return{prefixCls:pt,getComponent:Zt,scrollbarSize:Mt,direction:Le,fixedInfoList:cn.map(function(Kt,en){return l(en,en,cn,wt,Le)}),isSticky:gn}},[pt,Zt,Mt,Le,cn,wt,Le,gn]),$r=C.useMemo(function(){return Object(g.a)(Object(g.a)({},Br),{},{tableLayout:vn,rowClassName:Et,expandedRowClassName:sn,componentWidth:Qt,fixHeader:Wt,fixColumn:Vt,horizonScroll:It,expandIcon:Ir,expandableType:yr,expandRowByClick:Yn,expandedRowRender:ar,onTriggerExpand:De,expandIconColumnIndex:cr,indentSize:On})},[Br,vn,Et,sn,Qt,Wt,Vt,It,Ir,yr,Yn,ar,De,cr,On]),nr=C.useMemo(function(){return{onColumnResize:Pn}},[Pn]);return C.createElement(s.a.Provider,{value:Nr},C.createElement(H.Provider,{value:$r},C.createElement(ee.Provider,{value:nr},zr)))}vt.Column=r.a,vt.ColumnGroup=i.a,vt.Summary=Oe.a,vt.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var _t=z.b=vt},wRmb:function(k,z,o){"use strict";o.d(z,"a",function(){return f});var M=o("rePB"),g=o("KQm4"),A=o("VTBJ"),b=o("Ff2n"),y=o("q1tI"),C=o.n(y),O=o("Kwbf"),m=o("Zm9Q"),e=o("hW8S");function f(r){return Object(m.a)(r).filter(function(c){return y.isValidElement(c)}).map(function(c){var h=c.key,d=c.props,s=d.children,l=Object(b.a)(d,["children"]),w=Object(A.a)({key:h},l);return s&&(w.children=f(s)),w})}function a(r){return r.reduce(function(c,h){var d=h.fixed,s=d===!0?"left":d,l=h.children;return l&&l.length>0?[].concat(Object(g.a)(c),Object(g.a)(a(l).map(function(w){return Object(A.a)({fixed:s},w)}))):[].concat(Object(g.a)(c),[Object(A.a)(Object(A.a)({},h),{},{fixed:s})])},[])}function u(r){for(var c=!0,h=0;h<r.length;h+=1){var d=r[h];if(c&&d.fixed!=="left")c=!1;else if(!c&&d.fixed==="left"){Object(O.a)(!1,"Index ".concat(h-1," of `columns` missing `fixed='left'` prop."));break}}for(var s=!0,l=r.length-1;l>=0;l-=1){var w=r[l];if(s&&w.fixed!=="right")s=!1;else if(!s&&w.fixed==="right"){Object(O.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function n(r){return r.map(function(c){var h=c.fixed,d=Object(b.a)(c,["fixed"]),s=h;return h==="left"?s="right":h==="right"&&(s="left"),Object(A.a)({fixed:s},d)})}function i(r,c){var h=r.prefixCls,d=r.columns,s=r.children,l=r.expandable,w=r.expandedKeys,E=r.getRowKey,_=r.onTriggerExpand,P=r.expandIcon,R=r.rowExpandable,x=r.expandIconColumnIndex,S=r.direction,v=r.expandRowByClick,T=y.useMemo(function(){return d||f(s)},[d,s]),U=y.useMemo(function(){if(l){var V,H=x||0,D=T[H],W=(V={},Object(M.a)(V,e.a,{className:"".concat(h,"-expand-icon-col")}),Object(M.a)(V,"title",""),Object(M.a)(V,"fixed",D?D.fixed:null),Object(M.a)(V,"className","".concat(h,"-row-expand-icon-cell")),Object(M.a)(V,"render",function(K,ee,he){var de=E(ee,he),Se=w.has(de),Te=R?R(ee):!0,ce=P({prefixCls:h,expanded:Se,expandable:Te,record:ee,onExpand:_});return v?y.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},ce):ce}),V),F=T.slice();return H>=0&&F.splice(H,0,W),F}return T},[l,T,E,w,P,S]),L=y.useMemo(function(){var V=U;return c&&(V=c(V)),V.length||(V=[{render:function(){return null}}]),V},[c,U,S]),N=y.useMemo(function(){return S==="rtl"?n(a(L)):a(L)},[L,S]);return[L,N]}z.b=i},wZgz:function(k,z,o){(function(M,g,A){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.BlockCipher,y=g.algo,C=[],O=[],m=[],e=[],f=[],a=[],u=[],n=[],i=[],r=[];(function(){for(var d=[],s=0;s<256;s++)s<128?d[s]=s<<1:d[s]=s<<1^283;for(var l=0,w=0,s=0;s<256;s++){var E=w^w<<1^w<<2^w<<3^w<<4;E=E>>>8^E&255^99,C[l]=E,O[E]=l;var _=d[l],P=d[_],R=d[P],x=d[E]*257^E*16843008;m[l]=x<<24|x>>>8,e[l]=x<<16|x>>>16,f[l]=x<<8|x>>>24,a[l]=x;var x=R*16843009^P*65537^_*257^l*16843008;u[E]=x<<24|x>>>8,n[E]=x<<16|x>>>16,i[E]=x<<8|x>>>24,r[E]=x,l?(l=_^d[d[d[R^_]]],w^=d[d[w]]):l=w=1}})();var c=[0,1,2,4,8,16,32,64,128,27,54],h=y.AES=b.extend({_doReset:function(){var d;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var s=this._keyPriorReset=this._key,l=s.words,w=s.sigBytes/4,E=this._nRounds=w+6,_=(E+1)*4,P=this._keySchedule=[],R=0;R<_;R++)R<w?P[R]=l[R]:(d=P[R-1],R%w?w>6&&R%w==4&&(d=C[d>>>24]<<24|C[d>>>16&255]<<16|C[d>>>8&255]<<8|C[d&255]):(d=d<<8|d>>>24,d=C[d>>>24]<<24|C[d>>>16&255]<<16|C[d>>>8&255]<<8|C[d&255],d^=c[R/w|0]<<24),P[R]=P[R-w]^d);for(var x=this._invKeySchedule=[],S=0;S<_;S++){var R=_-S;if(S%4)var d=P[R];else var d=P[R-4];S<4||R<=4?x[S]=d:x[S]=u[C[d>>>24]]^n[C[d>>>16&255]]^i[C[d>>>8&255]]^r[C[d&255]]}},encryptBlock:function(d,s){this._doCryptBlock(d,s,this._keySchedule,m,e,f,a,C)},decryptBlock:function(d,s){var l=d[s+1];d[s+1]=d[s+3],d[s+3]=l,this._doCryptBlock(d,s,this._invKeySchedule,u,n,i,r,O);var l=d[s+1];d[s+1]=d[s+3],d[s+3]=l},_doCryptBlock:function(d,s,l,w,E,_,P,R){for(var x=this._nRounds,S=d[s]^l[0],v=d[s+1]^l[1],T=d[s+2]^l[2],U=d[s+3]^l[3],L=4,N=1;N<x;N++){var V=w[S>>>24]^E[v>>>16&255]^_[T>>>8&255]^P[U&255]^l[L++],H=w[v>>>24]^E[T>>>16&255]^_[U>>>8&255]^P[S&255]^l[L++],D=w[T>>>24]^E[U>>>16&255]^_[S>>>8&255]^P[v&255]^l[L++],W=w[U>>>24]^E[S>>>16&255]^_[v>>>8&255]^P[T&255]^l[L++];S=V,v=H,T=D,U=W}var V=(R[S>>>24]<<24|R[v>>>16&255]<<16|R[T>>>8&255]<<8|R[U&255])^l[L++],H=(R[v>>>24]<<24|R[T>>>16&255]<<16|R[U>>>8&255]<<8|R[S&255])^l[L++],D=(R[T>>>24]<<24|R[U>>>16&255]<<16|R[S>>>8&255]<<8|R[v&255])^l[L++],W=(R[U>>>24]<<24|R[S>>>16&255]<<16|R[v>>>8&255]<<8|R[T&255])^l[L++];d[s]=V,d[s+1]=H,d[s+2]=D,d[s+3]=W},keySize:256/32});g.AES=b._createHelper(h)}(),M.AES})},wbyO:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,A=g.lib,b=A.WordArray,y=g.enc,C=y.Base64url={stringify:function(m,e=!0){var f=m.words,a=m.sigBytes,u=e?this._safe_map:this._map;m.clamp();for(var n=[],i=0;i<a;i+=3)for(var r=f[i>>>2]>>>24-i%4*8&255,c=f[i+1>>>2]>>>24-(i+1)%4*8&255,h=f[i+2>>>2]>>>24-(i+2)%4*8&255,d=r<<16|c<<8|h,s=0;s<4&&i+s*.75<a;s++)n.push(u.charAt(d>>>6*(3-s)&63));var l=u.charAt(64);if(l)for(;n.length%4;)n.push(l);return n.join("")},parse:function(m,e=!0){var f=m.length,a=e?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var n=0;n<a.length;n++)u[a.charCodeAt(n)]=n}var i=a.charAt(64);if(i){var r=m.indexOf(i);r!==-1&&(f=r)}return O(m,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function O(m,e,f){for(var a=[],u=0,n=0;n<e;n++)if(n%4){var i=f[m.charCodeAt(n-1)]<<n%4*2,r=f[m.charCodeAt(n)]>>>6-n%4*2,c=i|r;a[u>>>2]|=c<<24-u%4*8,u++}return b.create(a,u)}}(),M.enc.Base64url})},xiVL:function(k,z){k.exports="data:image/png;base64,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"},xrsn:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return a}),o.d(z,"b",function(){return n});var M=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},A={cssFloat:1,styleFloat:1,float:1};function b(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function y(i,r,c){if(r=r.toLowerCase(),c==="auto"){if(r==="height")return i.offsetHeight;if(r==="width")return i.offsetWidth}return r in g||(g[r]=M.test(r)),g[r]?parseFloat(c)||0:c}function C(i,r){var c=arguments.length,h=b(i);return r=A[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,c===1?h:y(i,r,h[r]||i.style[r])}function O(i,r,c){var h=arguments.length;if(r=A[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,h===3)return typeof c=="number"&&M.test(r)&&(c="".concat(c,"px")),i.style[r]=c,c;for(var d in r)r.hasOwnProperty(d)&&O(i,d,r[d]);return b(i)}function m(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function e(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function f(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:r}}function a(){var i=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:r}}function u(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function n(i){var r=i.getBoundingClientRect(),c=document.documentElement;return{left:r.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}},yDYP:function(k,z,o){k.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(k,z,o){k.exports=o.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg=="},yslc:function(k,z){k.exports="data:image/png;base64,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"},z4EP:function(k,z){k.exports="data:image/png;base64,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"}}]);